com.pulumi.awsnative.iot.kotlin.DomainConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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