All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.iot.kotlin.outputs.TopicRuleCloudwatchMetricAction.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iot.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property metricName The CloudWatch metric name.
 * @property metricNamespace The CloudWatch metric namespace name.
 * @property metricTimestamp An optional [Unix timestamp](https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp) .
 * @property metricUnit The [metric unit](https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit) supported by CloudWatch.
 * @property metricValue The CloudWatch metric value.
 * @property roleArn The IAM role that allows access to the CloudWatch metric.
 */
public data class TopicRuleCloudwatchMetricAction(
    public val metricName: String,
    public val metricNamespace: String,
    public val metricTimestamp: String? = null,
    public val metricUnit: String,
    public val metricValue: String,
    public val roleArn: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iot.outputs.TopicRuleCloudwatchMetricAction): TopicRuleCloudwatchMetricAction = TopicRuleCloudwatchMetricAction(
            metricName = javaType.metricName(),
            metricNamespace = javaType.metricNamespace(),
            metricTimestamp = javaType.metricTimestamp().map({ args0 -> args0 }).orElse(null),
            metricUnit = javaType.metricUnit(),
            metricValue = javaType.metricValue(),
            roleArn = javaType.roleArn(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy