com.pulumi.awsnative.iot.kotlin.DimensionArgs.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.iot.kotlin
import com.pulumi.awsnative.iot.DimensionArgs.builder
import com.pulumi.awsnative.iot.kotlin.enums.DimensionType
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A dimension can be used to limit the scope of a metric used in a security profile for AWS IoT Device Defender.
* ## Example Usage
* ### Example
* No Java example available.
* @property name A unique identifier for the dimension.
* @property stringValues Specifies the value or list of values for the dimension.
* @property tags Metadata that can be used to manage the dimension.
* @property type Specifies the type of the dimension.
*/
public data class DimensionArgs(
public val name: Output? = null,
public val stringValues: Output>? = null,
public val tags: Output>? = null,
public val type: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iot.DimensionArgs =
com.pulumi.awsnative.iot.DimensionArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.stringValues(stringValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DimensionArgs].
*/
@PulumiTagMarker
public class DimensionArgsBuilder internal constructor() {
private var name: Output? = null
private var stringValues: Output>? = null
private var tags: Output>? = null
private var type: Output? = null
/**
* @param value A unique identifier for the dimension.
*/
@JvmName("lnwrsedhhwkaehvy")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Specifies the value or list of values for the dimension.
*/
@JvmName("kfuesfyeyvpgnkhl")
public suspend fun stringValues(`value`: Output>) {
this.stringValues = value
}
@JvmName("kxsoveykbwaglqxj")
public suspend fun stringValues(vararg values: Output) {
this.stringValues = Output.all(values.asList())
}
/**
* @param values Specifies the value or list of values for the dimension.
*/
@JvmName("gweygbkmnoyqjokr")
public suspend fun stringValues(values: List