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

com.pulumi.awsnative.ec2.kotlin.outputs.InstancePrivateDnsNameOptions.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ec2.kotlin.outputs

import com.pulumi.awsnative.ec2.kotlin.enums.InstancePrivateDnsNameOptionsHostnameType
import kotlin.Boolean
import kotlin.Suppress

/**
 *
 * @property enableResourceNameDnsARecord Indicates whether to respond to DNS queries for instance hostnames with DNS A records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
 * @property enableResourceNameDnsAaaaRecord Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
 * @property hostnameType The type of hostnames to assign to instances in the subnet at launch. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only 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. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
 */
public data class InstancePrivateDnsNameOptions(
    public val enableResourceNameDnsARecord: Boolean? = null,
    public val enableResourceNameDnsAaaaRecord: Boolean? = null,
    public val hostnameType: InstancePrivateDnsNameOptionsHostnameType? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.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.let({ args0 ->
                    com.pulumi.awsnative.ec2.kotlin.enums.InstancePrivateDnsNameOptionsHostnameType.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy