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

com.pulumi.awsnative.iot.kotlin.DomainConfigurationArgs.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

import com.pulumi.awsnative.iot.DomainConfigurationArgs.builder
import com.pulumi.awsnative.iot.kotlin.enums.DomainConfigurationServiceType
import com.pulumi.awsnative.iot.kotlin.enums.DomainConfigurationStatus
import com.pulumi.awsnative.iot.kotlin.inputs.DomainConfigurationAuthorizerConfigArgs
import com.pulumi.awsnative.iot.kotlin.inputs.DomainConfigurationAuthorizerConfigArgsBuilder
import com.pulumi.awsnative.iot.kotlin.inputs.DomainConfigurationServerCertificateConfigArgs
import com.pulumi.awsnative.iot.kotlin.inputs.DomainConfigurationServerCertificateConfigArgsBuilder
import com.pulumi.awsnative.iot.kotlin.inputs.DomainConfigurationTlsConfigArgs
import com.pulumi.awsnative.iot.kotlin.inputs.DomainConfigurationTlsConfigArgsBuilder
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

/**
 * Create and manage a Domain Configuration
 * @property authorizerConfig An object that specifies the authorization service for a domain.
 * @property domainConfigurationName The name of the domain configuration. This value must be unique to a region.
 * @property domainConfigurationStatus The status to which the domain configuration should be updated.
 * Valid values: `ENABLED` | `DISABLED`
 * @property domainName The name of the domain.
 * @property serverCertificateArns The ARNs of the certificates that AWS IoT passes to the device during the TLS handshake. Currently you can specify only one certificate ARN. This value is not required for AWS -managed domains.
 * @property serverCertificateConfig The server certificate configuration.
 * For more information, see [Configurable endpoints](https://docs.aws.amazon.com//iot/latest/developerguide/iot-custom-endpoints-configurable.html) from the AWS IoT Core Developer Guide.
 * @property serviceType The type of service delivered by the endpoint.
 * > AWS IoT Core currently supports only the `DATA` service type.
 * @property tags Metadata which can be used to manage the domain configuration.
 * > For URI Request parameters use format: ...key1=value1&key2=value2...
 * >
 * > For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
 * >
 * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
 * @property tlsConfig An object that specifies the TLS configuration for a domain.
 * @property validationCertificateArn The certificate used to validate the server certificate and prove domain name ownership. This certificate must be signed by a public certificate authority. This value is not required for AWS -managed domains.
 */
public data class DomainConfigurationArgs(
    public val authorizerConfig: Output? = null,
    public val domainConfigurationName: Output? = null,
    public val domainConfigurationStatus: Output? = null,
    public val domainName: Output? = null,
    public val serverCertificateArns: Output>? = null,
    public val serverCertificateConfig: Output? =
        null,
    public val serviceType: Output? = null,
    public val tags: Output>? = null,
    public val tlsConfig: Output? = null,
    public val validationCertificateArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.DomainConfigurationArgs =
        com.pulumi.awsnative.iot.DomainConfigurationArgs.builder()
            .authorizerConfig(authorizerConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .domainConfigurationName(domainConfigurationName?.applyValue({ args0 -> args0 }))
            .domainConfigurationStatus(
                domainConfigurationStatus?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .domainName(domainName?.applyValue({ args0 -> args0 }))
            .serverCertificateArns(serverCertificateArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .serverCertificateConfig(
                serverCertificateConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .serviceType(serviceType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .tlsConfig(tlsConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .validationCertificateArn(validationCertificateArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DomainConfigurationArgs].
 */
@PulumiTagMarker
public class DomainConfigurationArgsBuilder internal constructor() {
    private var authorizerConfig: Output? = null

    private var domainConfigurationName: Output? = null

    private var domainConfigurationStatus: Output? = null

    private var domainName: Output? = null

    private var serverCertificateArns: Output>? = null

    private var serverCertificateConfig: Output? =
        null

    private var serviceType: Output? = null

    private var tags: Output>? = null

    private var tlsConfig: Output? = null

    private var validationCertificateArn: Output? = null

    /**
     * @param value An object that specifies the authorization service for a domain.
     */
    @JvmName("hfuccxukjjumqmdq")
    public suspend fun authorizerConfig(`value`: Output) {
        this.authorizerConfig = value
    }

    /**
     * @param value The name of the domain configuration. This value must be unique to a region.
     */
    @JvmName("amwbsmntcypxxrwx")
    public suspend fun domainConfigurationName(`value`: Output) {
        this.domainConfigurationName = value
    }

    /**
     * @param value The status to which the domain configuration should be updated.
     * Valid values: `ENABLED` | `DISABLED`
     */
    @JvmName("gwqlutfwoqiyactj")
    public suspend fun domainConfigurationStatus(`value`: Output) {
        this.domainConfigurationStatus = value
    }

    /**
     * @param value The name of the domain.
     */
    @JvmName("jnseuqmkkhwpnjcf")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value The ARNs of the certificates that AWS IoT passes to the device during the TLS handshake. Currently you can specify only one certificate ARN. This value is not required for AWS -managed domains.
     */
    @JvmName("wqsqrvkhdncktoya")
    public suspend fun serverCertificateArns(`value`: Output>) {
        this.serverCertificateArns = value
    }

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

    /**
     * @param values The ARNs of the certificates that AWS IoT passes to the device during the TLS handshake. Currently you can specify only one certificate ARN. This value is not required for AWS -managed domains.
     */
    @JvmName("wjxqltbvlonpixpw")
    public suspend fun serverCertificateArns(values: List>) {
        this.serverCertificateArns = Output.all(values)
    }

    /**
     * @param value The server certificate configuration.
     * For more information, see [Configurable endpoints](https://docs.aws.amazon.com//iot/latest/developerguide/iot-custom-endpoints-configurable.html) from the AWS IoT Core Developer Guide.
     */
    @JvmName("fqmknceptxdofivx")
    public suspend fun serverCertificateConfig(`value`: Output) {
        this.serverCertificateConfig = value
    }

    /**
     * @param value The type of service delivered by the endpoint.
     * > AWS IoT Core currently supports only the `DATA` service type.
     */
    @JvmName("voxhbkhexrimpsod")
    public suspend fun serviceType(`value`: Output) {
        this.serviceType = value
    }

    /**
     * @param value Metadata which can be used to manage the domain configuration.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("pxvqrhwnnolaefot")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Metadata which can be used to manage the domain configuration.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("tjjhakguqwchklpu")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value An object that specifies the TLS configuration for a domain.
     */
    @JvmName("ayokcqdrbduaqddj")
    public suspend fun tlsConfig(`value`: Output) {
        this.tlsConfig = value
    }

    /**
     * @param value The certificate used to validate the server certificate and prove domain name ownership. This certificate must be signed by a public certificate authority. This value is not required for AWS -managed domains.
     */
    @JvmName("nsagbwfwjaxvsdnt")
    public suspend fun validationCertificateArn(`value`: Output) {
        this.validationCertificateArn = value
    }

    /**
     * @param value An object that specifies the authorization service for a domain.
     */
    @JvmName("osgphhaahjnrsxoi")
    public suspend fun authorizerConfig(`value`: DomainConfigurationAuthorizerConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorizerConfig = mapped
    }

    /**
     * @param argument An object that specifies the authorization service for a domain.
     */
    @JvmName("ygfvpqcvilqwcnld")
    public suspend fun authorizerConfig(argument: suspend DomainConfigurationAuthorizerConfigArgsBuilder.() -> Unit) {
        val toBeMapped = DomainConfigurationAuthorizerConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.authorizerConfig = mapped
    }

    /**
     * @param value The name of the domain configuration. This value must be unique to a region.
     */
    @JvmName("kgecpetxffxkmxch")
    public suspend fun domainConfigurationName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainConfigurationName = mapped
    }

    /**
     * @param value The status to which the domain configuration should be updated.
     * Valid values: `ENABLED` | `DISABLED`
     */
    @JvmName("ywjgsabvgxejlesf")
    public suspend fun domainConfigurationStatus(`value`: DomainConfigurationStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainConfigurationStatus = mapped
    }

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

    /**
     * @param value The ARNs of the certificates that AWS IoT passes to the device during the TLS handshake. Currently you can specify only one certificate ARN. This value is not required for AWS -managed domains.
     */
    @JvmName("dkphwmvgldwafnrw")
    public suspend fun serverCertificateArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverCertificateArns = mapped
    }

    /**
     * @param values The ARNs of the certificates that AWS IoT passes to the device during the TLS handshake. Currently you can specify only one certificate ARN. This value is not required for AWS -managed domains.
     */
    @JvmName("ckqwnipnafwikltn")
    public suspend fun serverCertificateArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serverCertificateArns = mapped
    }

    /**
     * @param value The server certificate configuration.
     * For more information, see [Configurable endpoints](https://docs.aws.amazon.com//iot/latest/developerguide/iot-custom-endpoints-configurable.html) from the AWS IoT Core Developer Guide.
     */
    @JvmName("ygvcyrdvlrlvxkqa")
    public suspend fun serverCertificateConfig(`value`: DomainConfigurationServerCertificateConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverCertificateConfig = mapped
    }

    /**
     * @param argument The server certificate configuration.
     * For more information, see [Configurable endpoints](https://docs.aws.amazon.com//iot/latest/developerguide/iot-custom-endpoints-configurable.html) from the AWS IoT Core Developer Guide.
     */
    @JvmName("ylpjvsutumsbkeuf")
    public suspend fun serverCertificateConfig(argument: suspend DomainConfigurationServerCertificateConfigArgsBuilder.() -> Unit) {
        val toBeMapped = DomainConfigurationServerCertificateConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.serverCertificateConfig = mapped
    }

    /**
     * @param value The type of service delivered by the endpoint.
     * > AWS IoT Core currently supports only the `DATA` service type.
     */
    @JvmName("ssgwfwmcjjrixrhj")
    public suspend fun serviceType(`value`: DomainConfigurationServiceType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceType = mapped
    }

    /**
     * @param value Metadata which can be used to manage the domain configuration.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("ufgkcaqkibthnywx")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Metadata which can be used to manage the domain configuration.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("jrhjahgbhiofpkmp")
    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 which can be used to manage the domain configuration.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("cwwbmybmrkqxwusa")
    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 which can be used to manage the domain configuration.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("kxsoigsncifgyomd")
    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 which can be used to manage the domain configuration.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("jkykjmoknrounkxr")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value An object that specifies the TLS configuration for a domain.
     */
    @JvmName("tqscbwtvlejsddbs")
    public suspend fun tlsConfig(`value`: DomainConfigurationTlsConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tlsConfig = mapped
    }

    /**
     * @param argument An object that specifies the TLS configuration for a domain.
     */
    @JvmName("rdjchrasdgdidcml")
    public suspend fun tlsConfig(argument: suspend DomainConfigurationTlsConfigArgsBuilder.() -> Unit) {
        val toBeMapped = DomainConfigurationTlsConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.tlsConfig = mapped
    }

    /**
     * @param value The certificate used to validate the server certificate and prove domain name ownership. This certificate must be signed by a public certificate authority. This value is not required for AWS -managed domains.
     */
    @JvmName("oyotegobwkofsbxx")
    public suspend fun validationCertificateArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.validationCertificateArn = mapped
    }

    internal fun build(): DomainConfigurationArgs = DomainConfigurationArgs(
        authorizerConfig = authorizerConfig,
        domainConfigurationName = domainConfigurationName,
        domainConfigurationStatus = domainConfigurationStatus,
        domainName = domainName,
        serverCertificateArns = serverCertificateArns,
        serverCertificateConfig = serverCertificateConfig,
        serviceType = serviceType,
        tags = tags,
        tlsConfig = tlsConfig,
        validationCertificateArn = validationCertificateArn,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy