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

com.pulumi.awsnative.iotfleethub.kotlin.ApplicationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iotfleethub.kotlin

import com.pulumi.awsnative.iotfleethub.ApplicationArgs.builder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::IoTFleetHub::Application
 * @property applicationDescription Application Description, should be between 1 and 2048 characters.
 * @property applicationName Application Name, should be between 1 and 256 characters.
 * @property roleArn The ARN of the role that the web application assumes when it interacts with AWS IoT Core. For more info on configuring this attribute, see https://docs.aws.amazon.com/iot/latest/apireference/API_iotfleethub_CreateApplication.html#API_iotfleethub_CreateApplication_RequestSyntax
 * @property tags A list of key-value pairs that contain metadata for the application.
 */
public data class ApplicationArgs(
    public val applicationDescription: Output? = null,
    public val applicationName: Output? = null,
    public val roleArn: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotfleethub.ApplicationArgs =
        com.pulumi.awsnative.iotfleethub.ApplicationArgs.builder()
            .applicationDescription(applicationDescription?.applyValue({ args0 -> args0 }))
            .applicationName(applicationName?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ApplicationArgs].
 */
@PulumiTagMarker
public class ApplicationArgsBuilder internal constructor() {
    private var applicationDescription: Output? = null

    private var applicationName: Output? = null

    private var roleArn: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Application Description, should be between 1 and 2048 characters.
     */
    @JvmName("yxmvvdpnrmbvilaa")
    public suspend fun applicationDescription(`value`: Output) {
        this.applicationDescription = value
    }

    /**
     * @param value Application Name, should be between 1 and 256 characters.
     */
    @JvmName("pattrijfjimvsclq")
    public suspend fun applicationName(`value`: Output) {
        this.applicationName = value
    }

    /**
     * @param value The ARN of the role that the web application assumes when it interacts with AWS IoT Core. For more info on configuring this attribute, see https://docs.aws.amazon.com/iot/latest/apireference/API_iotfleethub_CreateApplication.html#API_iotfleethub_CreateApplication_RequestSyntax
     */
    @JvmName("euxyiehaxcrbcbqq")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value A list of key-value pairs that contain metadata for the application.
     */
    @JvmName("rbjvkyrmbmdhjfqs")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A list of key-value pairs that contain metadata for the application.
     */
    @JvmName("ffkbiinosbsnwlas")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Application Description, should be between 1 and 2048 characters.
     */
    @JvmName("lmeopljtjcurpbqj")
    public suspend fun applicationDescription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationDescription = mapped
    }

    /**
     * @param value Application Name, should be between 1 and 256 characters.
     */
    @JvmName("hsqyuqpfrgxcojad")
    public suspend fun applicationName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationName = mapped
    }

    /**
     * @param value The ARN of the role that the web application assumes when it interacts with AWS IoT Core. For more info on configuring this attribute, see https://docs.aws.amazon.com/iot/latest/apireference/API_iotfleethub_CreateApplication.html#API_iotfleethub_CreateApplication_RequestSyntax
     */
    @JvmName("cndcndakdwnkbbsx")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value A list of key-value pairs that contain metadata for the application.
     */
    @JvmName("wgqbjafksjmxlmjf")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the application.
     */
    @JvmName("udqsxrdsyfnghfse")
    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 A list of key-value pairs that contain metadata for the application.
     */
    @JvmName("aoawjkptgkagtfve")
    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 A list of key-value pairs that contain metadata for the application.
     */
    @JvmName("lhpvsinohigqtjxj")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A list of key-value pairs that contain metadata for the application.
     */
    @JvmName("vutnbqodtnwpaord")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ApplicationArgs = ApplicationArgs(
        applicationDescription = applicationDescription,
        applicationName = applicationName,
        roleArn = roleArn,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy