com.pulumi.aws.ec2.kotlin.outputs.InstancePrivateDnsNameOptions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.ec2.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @property enableResourceNameDnsARecord Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
* @property enableResourceNameDnsAaaaRecord Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
* @property hostnameType Type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: `ip-name` and `resource-name`.
*/
public data class InstancePrivateDnsNameOptions(
public val enableResourceNameDnsARecord: Boolean? = null,
public val enableResourceNameDnsAaaaRecord: Boolean? = null,
public val hostnameType: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.aws.ec2.outputs.InstancePrivateDnsNameOptions): InstancePrivateDnsNameOptions = InstancePrivateDnsNameOptions(
enableResourceNameDnsARecord = javaType.enableResourceNameDnsARecord().map({ args0 ->
args0
}).orElse(null),
enableResourceNameDnsAaaaRecord = javaType.enableResourceNameDnsAaaaRecord().map({ args0 ->
args0
}).orElse(null),
hostnameType = javaType.hostnameType().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy