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

com.pulumi.awsnative.iot.kotlin.ProvisioningTemplateArgs.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.24.0.0
Show newest version
@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("rrmlfulxmwngnaso")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

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

    /**
     * @param value Creates a pre-provisioning hook template.
     */
    @JvmName("rmdgkheocftkogej")
    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("vtdovywsbejpynvd")
    public suspend fun provisioningRoleArn(`value`: Output) {
        this.provisioningRoleArn = value
    }

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

    @JvmName("sxekxrecmupcwwpf")
    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("lfhqgpahdqcswfps")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

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

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

    /**
     * @param value The description of the fleet provisioning template.
     */
    @JvmName("tehmtyguympgeuti")
    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("xmgtspwomlprrprv")
    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("yukakbxrgxyadpjc")
    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("jnsuxdjvfpxgrwre")
    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("aomcdwnqdphxmjrs")
    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("oyqucwekqbyeoqpd")
    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("pbihivwclmrtyxcl")
    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("eayskrngafsoityi")
    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("oftjkotbtynrmlau")
    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("amwcwiuuhmsgmrmk")
    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("asxwwglojpbiefmt")
    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("kbjjrydmyhthkasq")
    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("jxiaipcylrkvkbhe")
    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