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

com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleStepFunctionsActionArgs.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.TopicRuleStepFunctionsActionArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property executionNamePrefix (Optional) A name will be given to the state machine execution consisting of this prefix followed by a UUID. Step Functions automatically creates a unique name for each state machine execution if one is not provided.
 * @property roleArn The ARN of the role that grants IoT permission to start execution of a state machine ("Action":"states:StartExecution").
 * @property stateMachineName The name of the Step Functions state machine whose execution will be started.
 */
public data class TopicRuleStepFunctionsActionArgs(
    public val executionNamePrefix: Output? = null,
    public val roleArn: Output,
    public val stateMachineName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleStepFunctionsActionArgs =
        com.pulumi.awsnative.iot.inputs.TopicRuleStepFunctionsActionArgs.builder()
            .executionNamePrefix(executionNamePrefix?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn.applyValue({ args0 -> args0 }))
            .stateMachineName(stateMachineName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TopicRuleStepFunctionsActionArgs].
 */
@PulumiTagMarker
public class TopicRuleStepFunctionsActionArgsBuilder internal constructor() {
    private var executionNamePrefix: Output? = null

    private var roleArn: Output? = null

    private var stateMachineName: Output? = null

    /**
     * @param value (Optional) A name will be given to the state machine execution consisting of this prefix followed by a UUID. Step Functions automatically creates a unique name for each state machine execution if one is not provided.
     */
    @JvmName("spebsgjcufgbxsyy")
    public suspend fun executionNamePrefix(`value`: Output) {
        this.executionNamePrefix = value
    }

    /**
     * @param value The ARN of the role that grants IoT permission to start execution of a state machine ("Action":"states:StartExecution").
     */
    @JvmName("bpumydltupuhqoxn")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The name of the Step Functions state machine whose execution will be started.
     */
    @JvmName("ylfeffyoceienxog")
    public suspend fun stateMachineName(`value`: Output) {
        this.stateMachineName = value
    }

    /**
     * @param value (Optional) A name will be given to the state machine execution consisting of this prefix followed by a UUID. Step Functions automatically creates a unique name for each state machine execution if one is not provided.
     */
    @JvmName("kdhxhfdnfrkduwcj")
    public suspend fun executionNamePrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.executionNamePrefix = mapped
    }

    /**
     * @param value The ARN of the role that grants IoT permission to start execution of a state machine ("Action":"states:StartExecution").
     */
    @JvmName("lavfaksxpnnsdtls")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The name of the Step Functions state machine whose execution will be started.
     */
    @JvmName("quxohgplomcccmwv")
    public suspend fun stateMachineName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.stateMachineName = mapped
    }

    internal fun build(): TopicRuleStepFunctionsActionArgs = TopicRuleStepFunctionsActionArgs(
        executionNamePrefix = executionNamePrefix,
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        stateMachineName = stateMachineName ?: throw PulumiNullFieldException("stateMachineName"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy