interface PublicIpDnsNameOptionsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnNetworkInterface.PublicIpDnsNameOptionsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnNetworkInterface_PublicIpDnsNameOptionsProperty |
Java | software.amazon.awscdk.services.ec2.CfnNetworkInterface.PublicIpDnsNameOptionsProperty |
Python | aws_cdk.aws_ec2.CfnNetworkInterface.PublicIpDnsNameOptionsProperty |
TypeScript | aws-cdk-lib » aws_ec2 » CfnNetworkInterface » PublicIpDnsNameOptionsProperty |
Public hostname type options.
For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide .
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',
};
Properties
| Name | Type | Description |
|---|---|---|
| dns | string | The public hostname type. |
| public | string | A dual-stack public hostname for a network interface. |
| public | string | An IPv4-enabled public hostname for a network interface. |
| public | string | An IPv6-enabled public hostname for a network interface. |
dnsHostnameType?
Type:
string
(optional)
The public hostname type.
For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide .
publicDualStackDnsName?
Type:
string
(optional)
A dual-stack public hostname for a network interface.
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.
publicIpv4DnsName?
Type:
string
(optional)
An IPv4-enabled public hostname for a network interface.
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.
publicIpv6DnsName?
Type:
string
(optional)
An IPv6-enabled public hostname for a network interface.
Requests from within the VPC or from the internet resolve to the IPv6 GUA of the network interface.

.NET
Go
Java
Python
TypeScript