DnsOptionsSpecificationProperty Struct
Describes the DNS options for an endpoint.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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 dnsOptionsSpecificationProperty: ec2.CfnVPCEndpoint.DnsOptionsSpecificationProperty = {
dnsRecordIpType: 'dnsRecordIpType',
privateDnsOnlyForInboundResolverEndpoint: 'privateDnsOnlyForInboundResolverEndpoint',
privateDnsPreference: 'privateDnsPreference',
privateDnsSpecifiedDomains: ['privateDnsSpecifiedDomains'],
};
python
# 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
dns_options_specification_property = ec2.CfnVPCEndpoint.DnsOptionsSpecificationProperty(
dns_record_ip_type="dnsRecordIpType",
private_dns_only_for_inbound_resolver_endpoint="privateDnsOnlyForInboundResolverEndpoint",
private_dns_preference="privateDnsPreference",
private_dns_specified_domains=["privateDnsSpecifiedDomains"]
)
java
// 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.*;
DnsOptionsSpecificationProperty dnsOptionsSpecificationProperty = DnsOptionsSpecificationProperty.builder()
.dnsRecordIpType("dnsRecordIpType")
.privateDnsOnlyForInboundResolverEndpoint("privateDnsOnlyForInboundResolverEndpoint")
.privateDnsPreference("privateDnsPreference")
.privateDnsSpecifiedDomains(List.of("privateDnsSpecifiedDomains"))
.build();
csharp
// 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 dnsOptionsSpecificationProperty = new DnsOptionsSpecificationProperty {
DnsRecordIpType = "dnsRecordIpType",
PrivateDnsOnlyForInboundResolverEndpoint = "privateDnsOnlyForInboundResolverEndpoint",
PrivateDnsPreference = "privateDnsPreference",
PrivateDnsSpecifiedDomains = new [] { "privateDnsSpecifiedDomains" }
};
go
// 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"
dnsOptionsSpecificationProperty := &DnsOptionsSpecificationProperty{
DnsRecordIpType: jsii.String("dnsRecordIpType"),
PrivateDnsOnlyForInboundResolverEndpoint: jsii.String("privateDnsOnlyForInboundResolverEndpoint"),
PrivateDnsPreference: jsii.String("privateDnsPreference"),
PrivateDnsSpecifiedDomains: []*string{
jsii.String("privateDnsSpecifiedDomains"),
},
}
Properties
dnsRecordIpTypeoptionalstringdns_record_ip_typeoptionalstrdnsRecordIpTypeoptionalStringDnsRecordIpTypeoptionalstringDnsRecordIpTypeoptional*string #The DNS records created for the endpoint.
privateDnsOnlyForInboundResolverEndpointoptionalstringprivate_dns_only_for_inbound_resolver_endpointoptionalstrprivateDnsOnlyForInboundResolverEndpointoptionalStringPrivateDnsOnlyForInboundResolverEndpointoptionalstringPrivateDnsOnlyForInboundResolverEndpointoptional*string #Indicates whether to enable private DNS only for inbound endpoints.
This option is available only for services that support both gateway and interface endpoints. It routes traffic that originates from the VPC to the gateway endpoint and traffic that originates from on-premises to the interface endpoint.
privateDnsPreferenceoptionalstringprivate_dns_preferenceoptionalstrprivateDnsPreferenceoptionalStringPrivateDnsPreferenceoptionalstringPrivateDnsPreferenceoptional*string #The preference for which private domains have a private hosted zone created for and associated with the specified VPC.
Only supported when private DNS is enabled and when the VPC endpoint type is ServiceNetwork or Resource.
privateDnsSpecifiedDomainsoptionalstring[]private_dns_specified_domainsoptionaltyping.List[str]privateDnsSpecifiedDomainsoptionalList<String>PrivateDnsSpecifiedDomainsoptionalstring[]PrivateDnsSpecifiedDomainsoptional*[]*string #Indicates which of the private domains to create private hosted zones for and associate with the specified VPC.
Only supported when private DNS is enabled and the private DNS preference is VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS or SPECIFIED_DOMAINS_ONLY .