
com.pulumi.awsnative.cloudwatch.kotlin.outputs.GetMetricStreamResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cloudwatch.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property arn Amazon Resource Name of the metric stream.
* @property creationDate The date of creation of the metric stream.
* @property excludeFilters Define which metrics will be not streamed. Metrics matched by multiple instances of MetricStreamFilter are joined with an OR operation by default. If both IncludeFilters and ExcludeFilters are omitted, all metrics in the account will be streamed. IncludeFilters and ExcludeFilters are mutually exclusive. Default to null.
* @property firehoseArn The ARN of the Kinesis Firehose where to stream the data.
* @property includeFilters Define which metrics will be streamed. Metrics matched by multiple instances of MetricStreamFilter are joined with an OR operation by default. If both IncludeFilters and ExcludeFilters are omitted, all metrics in the account will be streamed. IncludeFilters and ExcludeFilters are mutually exclusive. Default to null.
* @property includeLinkedAccountsMetrics If you are creating a metric stream in a monitoring account, specify true to include metrics from source accounts that are linked to this monitoring account, in the metric stream. The default is false.
* @property lastUpdateDate The date of the last update of the metric stream.
* @property outputFormat The output format of the data streamed to the Kinesis Firehose.
* @property roleArn The ARN of the role that provides access to the Kinesis Firehose.
* @property state Displays the state of the Metric Stream.
* @property statisticsConfigurations By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT statistics for each metric that is streamed. You can use this parameter to have the metric stream also send additional statistics in the stream. This array can have up to 100 members.
*/
public data class GetMetricStreamResult(
public val arn: String? = null,
public val creationDate: String? = null,
public val excludeFilters: List? = null,
public val firehoseArn: String? = null,
public val includeFilters: List? = null,
public val includeLinkedAccountsMetrics: Boolean? = null,
public val lastUpdateDate: String? = null,
public val outputFormat: String? = null,
public val roleArn: String? = null,
public val state: String? = null,
public val statisticsConfigurations: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.cloudwatch.outputs.GetMetricStreamResult): GetMetricStreamResult = GetMetricStreamResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
creationDate = javaType.creationDate().map({ args0 -> args0 }).orElse(null),
excludeFilters = javaType.excludeFilters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.cloudwatch.kotlin.outputs.MetricStreamFilter.Companion.toKotlin(args0)
})
}),
firehoseArn = javaType.firehoseArn().map({ args0 -> args0 }).orElse(null),
includeFilters = javaType.includeFilters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.cloudwatch.kotlin.outputs.MetricStreamFilter.Companion.toKotlin(args0)
})
}),
includeLinkedAccountsMetrics = javaType.includeLinkedAccountsMetrics().map({ args0 ->
args0
}).orElse(null),
lastUpdateDate = javaType.lastUpdateDate().map({ args0 -> args0 }).orElse(null),
outputFormat = javaType.outputFormat().map({ args0 -> args0 }).orElse(null),
roleArn = javaType.roleArn().map({ args0 -> args0 }).orElse(null),
state = javaType.state().map({ args0 -> args0 }).orElse(null),
statisticsConfigurations = javaType.statisticsConfigurations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.cloudwatch.kotlin.outputs.MetricStreamStatisticsConfiguration.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy