PublicIpDnsNameOptionsProperty Struct
Public hostname type options.
For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide .
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const publicIpDnsNameOptionsProperty: ec2.CfnNetworkInterface.PublicIpDnsNameOptionsProperty = {
dnsHostnameType: 'dnsHostnameType',
publicDualStackDnsName: 'publicDualStackDnsName',
publicIpv4DnsName: 'publicIpv4DnsName',
publicIpv6DnsName: 'publicIpv6DnsName',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
public_ip_dns_name_options_property = ec2.CfnNetworkInterface.PublicIpDnsNameOptionsProperty(
dns_hostname_type="dnsHostnameType",
public_dual_stack_dns_name="publicDualStackDnsName",
public_ipv4_dns_name="publicIpv4DnsName",
public_ipv6_dns_name="publicIpv6DnsName"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
PublicIpDnsNameOptionsProperty publicIpDnsNameOptionsProperty = PublicIpDnsNameOptionsProperty.builder()
.dnsHostnameType("dnsHostnameType")
.publicDualStackDnsName("publicDualStackDnsName")
.publicIpv4DnsName("publicIpv4DnsName")
.publicIpv6DnsName("publicIpv6DnsName")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var publicIpDnsNameOptionsProperty = new PublicIpDnsNameOptionsProperty {
DnsHostnameType = "dnsHostnameType",
PublicDualStackDnsName = "publicDualStackDnsName",
PublicIpv4DnsName = "publicIpv4DnsName",
PublicIpv6DnsName = "publicIpv6DnsName"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
publicIpDnsNameOptionsProperty := &PublicIpDnsNameOptionsProperty{
DnsHostnameType: jsii.String("dnsHostnameType"),
PublicDualStackDnsName: jsii.String("publicDualStackDnsName"),
PublicIpv4DnsName: jsii.String("publicIpv4DnsName"),
PublicIpv6DnsName: jsii.String("publicIpv6DnsName"),
}
Properties
dnsHostnameTypeoptionalstringdns_hostname_typeoptionalstrdnsHostnameTypeoptionalStringDnsHostnameTypeoptionalstringDnsHostnameTypeoptional*string #For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide .
publicDualStackDnsNameoptionalstringpublic_dual_stack_dns_nameoptionalstrpublicDualStackDnsNameoptionalStringPublicDualStackDnsNameoptionalstringPublicDualStackDnsNameoptional*string #notes
Requests from within the VPC resolve to both the private IPv4 address and the IPv6 Global Unicast Address of the network interface. Requests from the internet resolve to both the public IPv4 and the IPv6 GUA address of the network interface.
publicIpv4DnsNameoptionalstringpublic_ipv4_dns_nameoptionalstrpublicIpv4DnsNameoptionalStringPublicIpv4DnsNameoptionalstringPublicIpv4DnsNameoptional*string #Requests from within the VPC resolve to the private primary IPv4 address of the network interface. Requests from the internet resolve to the public IPv4 address of the network interface.
publicIpv6DnsNameoptionalstringpublic_ipv6_dns_nameoptionalstrpublicIpv6DnsNameoptionalStringPublicIpv6DnsNameoptionalstringPublicIpv6DnsNameoptional*string #Requests from within the VPC or from the internet resolve to the IPv6 GUA of the network interface.