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

com.pulumi.awsnative.iot.kotlin.ProvisioningTemplateArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iot.kotlin

import com.pulumi.awsnative.iot.ProvisioningTemplateArgs.builder
import com.pulumi.awsnative.iot.kotlin.enums.ProvisioningTemplateTemplateType
import com.pulumi.awsnative.iot.kotlin.inputs.ProvisioningTemplateProvisioningHookArgs
import com.pulumi.awsnative.iot.kotlin.inputs.ProvisioningTemplateProvisioningHookArgsBuilder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Creates a fleet provisioning template.
 * @property description The description of the fleet provisioning template.
 * @property enabled True to enable the fleet provisioning template, otherwise false.
 * @property preProvisioningHook Creates a pre-provisioning hook template.
 * @property provisioningRoleArn The role ARN for the role associated with the fleet provisioning template. This IoT role grants permission to provision a device.
 * @property tags Metadata that can be used to manage the fleet provisioning template.
 * @property templateBody The JSON formatted contents of the fleet provisioning template version.
 * @property templateName The name of the fleet provisioning template.
 * @property templateType The type of the provisioning template.
 */
public data class ProvisioningTemplateArgs(
    public val description: Output? = null,
    public val enabled: Output? = null,
    public val preProvisioningHook: Output? = null,
    public val provisioningRoleArn: Output? = null,
    public val tags: Output>? = null,
    public val templateBody: Output? = null,
    public val templateName: Output? = null,
    public val templateType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.ProvisioningTemplateArgs =
        com.pulumi.awsnative.iot.ProvisioningTemplateArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .preProvisioningHook(
                preProvisioningHook?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .provisioningRoleArn(provisioningRoleArn?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .templateBody(templateBody?.applyValue({ args0 -> args0 }))
            .templateName(templateName?.applyValue({ args0 -> args0 }))
            .templateType(templateType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ProvisioningTemplateArgs].
 */
@PulumiTagMarker
public class ProvisioningTemplateArgsBuilder internal constructor() {
    private var description: Output? = null

    private var enabled: Output? = null

    private var preProvisioningHook: Output? = null

    private var provisioningRoleArn: Output? = null

    private var tags: Output>? = null

    private var templateBody: Output? = null

    private var templateName: Output? = null

    private var templateType: Output? = null

    /**
     * @param value The description of the fleet provisioning template.
     */
    @JvmName("mcmuhrasxjpxurmn")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value True to enable the fleet provisioning template, otherwise false.
     */
    @JvmName("lcfmumaodfemjmph")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Creates a pre-provisioning hook template.
     */
    @JvmName("mqswkvlsqkahdslv")
    public suspend fun preProvisioningHook(`value`: Output) {
        this.preProvisioningHook = value
    }

    /**
     * @param value The role ARN for the role associated with the fleet provisioning template. This IoT role grants permission to provision a device.
     */
    @JvmName("xrppikgqpfbhgilp")
    public suspend fun provisioningRoleArn(`value`: Output) {
        this.provisioningRoleArn = value
    }

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

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

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

    /**
     * @param value The JSON formatted contents of the fleet provisioning template version.
     */
    @JvmName("llcssxkfrhxodvgb")
    public suspend fun templateBody(`value`: Output) {
        this.templateBody = value
    }

    /**
     * @param value The name of the fleet provisioning template.
     */
    @JvmName("emdumekieajmcewe")
    public suspend fun templateName(`value`: Output) {
        this.templateName = value
    }

    /**
     * @param value The type of the provisioning template.
     */
    @JvmName("imyduwuyihhsxjwg")
    public suspend fun templateType(`value`: Output) {
        this.templateType = value
    }

    /**
     * @param value The description of the fleet provisioning template.
     */
    @JvmName("vuqivsudefuyhwdu")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value True to enable the fleet provisioning template, otherwise false.
     */
    @JvmName("kneonqjneuuygiuo")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Creates a pre-provisioning hook template.
     */
    @JvmName("rqdhymudeafthtmj")
    public suspend fun preProvisioningHook(`value`: ProvisioningTemplateProvisioningHookArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preProvisioningHook = mapped
    }

    /**
     * @param argument Creates a pre-provisioning hook template.
     */
    @JvmName("rjmdidlcrdqmcqes")
    public suspend fun preProvisioningHook(argument: suspend ProvisioningTemplateProvisioningHookArgsBuilder.() -> Unit) {
        val toBeMapped = ProvisioningTemplateProvisioningHookArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.preProvisioningHook = mapped
    }

    /**
     * @param value The role ARN for the role associated with the fleet provisioning template. This IoT role grants permission to provision a device.
     */
    @JvmName("qmwndarnvofjrgka")
    public suspend fun provisioningRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisioningRoleArn = mapped
    }

    /**
     * @param value Metadata that can be used to manage the fleet provisioning template.
     */
    @JvmName("edkfkdqpqcogquic")
    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 fleet provisioning template.
     */
    @JvmName("jwdhbyrmjnkwxkcy")
    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 fleet provisioning template.
     */
    @JvmName("oguodyypptuvjakc")
    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 fleet provisioning template.
     */
    @JvmName("ipgtmaljabvhnhpk")
    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 fleet provisioning template.
     */
    @JvmName("dwwjkiciiejguccs")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The JSON formatted contents of the fleet provisioning template version.
     */
    @JvmName("mifdoqtovrdjrveq")
    public suspend fun templateBody(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.templateBody = mapped
    }

    /**
     * @param value The name of the fleet provisioning template.
     */
    @JvmName("rmnmnfytgddnbaun")
    public suspend fun templateName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.templateName = mapped
    }

    /**
     * @param value The type of the provisioning template.
     */
    @JvmName("mfiqnwqvakcewxhv")
    public suspend fun templateType(`value`: ProvisioningTemplateTemplateType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.templateType = mapped
    }

    internal fun build(): ProvisioningTemplateArgs = ProvisioningTemplateArgs(
        description = description,
        enabled = enabled,
        preProvisioningHook = preProvisioningHook,
        provisioningRoleArn = provisioningRoleArn,
        tags = tags,
        templateBody = templateBody,
        templateName = templateName,
        templateType = templateType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy