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

com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleIotSiteWiseActionArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iot.kotlin.inputs

import com.pulumi.awsnative.iot.inputs.TopicRuleIotSiteWiseActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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

/**
 *
 * @property putAssetPropertyValueEntries A list of asset property value entries.
 * @property roleArn The ARN of the role that grants AWS IoT permission to send an asset property value to AWS IoT SiteWise. ( `"Action": "iotsitewise:BatchPutAssetPropertyValue"` ). The trust policy can restrict access to specific asset hierarchy paths.
 */
public data class TopicRuleIotSiteWiseActionArgs(
    public val putAssetPropertyValueEntries: Output>,
    public val roleArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleIotSiteWiseActionArgs =
        com.pulumi.awsnative.iot.inputs.TopicRuleIotSiteWiseActionArgs.builder()
            .putAssetPropertyValueEntries(
                putAssetPropertyValueEntries.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TopicRuleIotSiteWiseActionArgs].
 */
@PulumiTagMarker
public class TopicRuleIotSiteWiseActionArgsBuilder internal constructor() {
    private var putAssetPropertyValueEntries: Output>? =
        null

    private var roleArn: Output? = null

    /**
     * @param value A list of asset property value entries.
     */
    @JvmName("wubobtslovylnmui")
    public suspend fun putAssetPropertyValueEntries(`value`: Output>) {
        this.putAssetPropertyValueEntries = value
    }

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

    /**
     * @param values A list of asset property value entries.
     */
    @JvmName("tevakxlytqrxvedq")
    public suspend fun putAssetPropertyValueEntries(values: List>) {
        this.putAssetPropertyValueEntries = Output.all(values)
    }

    /**
     * @param value The ARN of the role that grants AWS IoT permission to send an asset property value to AWS IoT SiteWise. ( `"Action": "iotsitewise:BatchPutAssetPropertyValue"` ). The trust policy can restrict access to specific asset hierarchy paths.
     */
    @JvmName("tmeqyqoukqrblulb")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value A list of asset property value entries.
     */
    @JvmName("roaewseycqypcthg")
    public suspend fun putAssetPropertyValueEntries(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.putAssetPropertyValueEntries = mapped
    }

    /**
     * @param argument A list of asset property value entries.
     */
    @JvmName("ctsintwsqnmicnmw")
    public suspend fun putAssetPropertyValueEntries(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TopicRulePutAssetPropertyValueEntryArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.putAssetPropertyValueEntries = mapped
    }

    /**
     * @param argument A list of asset property value entries.
     */
    @JvmName("qbbecsnsixmtothw")
    public suspend fun putAssetPropertyValueEntries(vararg argument: suspend TopicRulePutAssetPropertyValueEntryArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TopicRulePutAssetPropertyValueEntryArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.putAssetPropertyValueEntries = mapped
    }

    /**
     * @param argument A list of asset property value entries.
     */
    @JvmName("prncmgxjqmwpivtq")
    public suspend fun putAssetPropertyValueEntries(argument: suspend TopicRulePutAssetPropertyValueEntryArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TopicRulePutAssetPropertyValueEntryArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.putAssetPropertyValueEntries = mapped
    }

    /**
     * @param values A list of asset property value entries.
     */
    @JvmName("eeuwldephattqoxn")
    public suspend fun putAssetPropertyValueEntries(vararg values: TopicRulePutAssetPropertyValueEntryArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.putAssetPropertyValueEntries = mapped
    }

    /**
     * @param value The ARN of the role that grants AWS IoT permission to send an asset property value to AWS IoT SiteWise. ( `"Action": "iotsitewise:BatchPutAssetPropertyValue"` ). The trust policy can restrict access to specific asset hierarchy paths.
     */
    @JvmName("jcwmsmppkekjqkwh")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    internal fun build(): TopicRuleIotSiteWiseActionArgs = TopicRuleIotSiteWiseActionArgs(
        putAssetPropertyValueEntries = putAssetPropertyValueEntries ?: throw
            PulumiNullFieldException("putAssetPropertyValueEntries"),
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy