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

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

package com.pulumi.aws.iot.kotlin.inputs

import com.pulumi.aws.iot.inputs.ProvisioningTemplatePreProvisioningHookArgs.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 payloadVersion The version of the payload that was sent to the target function. The only valid (and the default) payload version is `"2020-04-01"`.
 * @property targetArn The ARN of the target function.
 */
public data class ProvisioningTemplatePreProvisioningHookArgs(
    public val payloadVersion: Output? = null,
    public val targetArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.iot.inputs.ProvisioningTemplatePreProvisioningHookArgs =
        com.pulumi.aws.iot.inputs.ProvisioningTemplatePreProvisioningHookArgs.builder()
            .payloadVersion(payloadVersion?.applyValue({ args0 -> args0 }))
            .targetArn(targetArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ProvisioningTemplatePreProvisioningHookArgs].
 */
@PulumiTagMarker
public class ProvisioningTemplatePreProvisioningHookArgsBuilder internal constructor() {
    private var payloadVersion: Output? = null

    private var targetArn: Output? = null

    /**
     * @param value The version of the payload that was sent to the target function. The only valid (and the default) payload version is `"2020-04-01"`.
     */
    @JvmName("ggfxillnyfjqgsap")
    public suspend fun payloadVersion(`value`: Output) {
        this.payloadVersion = value
    }

    /**
     * @param value The ARN of the target function.
     */
    @JvmName("nhrldpalcsnojbrv")
    public suspend fun targetArn(`value`: Output) {
        this.targetArn = value
    }

    /**
     * @param value The version of the payload that was sent to the target function. The only valid (and the default) payload version is `"2020-04-01"`.
     */
    @JvmName("cjppdeyrwrivpmmr")
    public suspend fun payloadVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.payloadVersion = mapped
    }

    /**
     * @param value The ARN of the target function.
     */
    @JvmName("wenmblbytnhyicst")
    public suspend fun targetArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetArn = mapped
    }

    internal fun build(): ProvisioningTemplatePreProvisioningHookArgs =
        ProvisioningTemplatePreProvisioningHookArgs(
            payloadVersion = payloadVersion,
            targetArn = targetArn ?: throw PulumiNullFieldException("targetArn"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy