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

com.pulumi.awsnative.iot.kotlin.DimensionArgs.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.11.0.0
Show newest version
@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>) {
        this.stringValues = Output.all(values)
    }

    /**
     * @param value Metadata that can be used to manage the dimension.
     */
    @JvmName("dygphttjkbjujmhr")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("keimhmltaxosevup")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values Metadata that can be used to manage the dimension.
     */
    @JvmName("ofhfkmpfmwbcvbbd")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Specifies the type of the dimension.
     */
    @JvmName("pgbnquhvnkrurcgo")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value A unique identifier for the dimension.
     */
    @JvmName("yekwdfwrataiancs")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies the value or list of values for the dimension.
     */
    @JvmName("tqqqfgksjlwhwked")
    public suspend fun stringValues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stringValues = mapped
    }

    /**
     * @param values Specifies the value or list of values for the dimension.
     */
    @JvmName("lcgeaknucedwhklb")
    public suspend fun stringValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.stringValues = mapped
    }

    /**
     * @param value Metadata that can be used to manage the dimension.
     */
    @JvmName("ebbcxshvcqtyxdhn")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Metadata that can be used to manage the dimension.
     */
    @JvmName("uhplkupnrdlwfqnb")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata that can be used to manage the dimension.
     */
    @JvmName("auagunvlesmsbnvn")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata that can be used to manage the dimension.
     */
    @JvmName("piituutmxvjftiej")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Metadata that can be used to manage the dimension.
     */
    @JvmName("jgsfcvyjmiblgrul")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Specifies the type of the dimension.
     */
    @JvmName("begkwlaumjucjmyy")
    public suspend fun type(`value`: DimensionType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): DimensionArgs = DimensionArgs(
        name = name,
        stringValues = stringValues,
        tags = tags,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy