Skip to content
v2.278.0

DnsEntryProperty Struct ​

Describes the DNS information of a service.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_vpclattice as vpclattice } from 'aws-cdk-lib';
const dnsEntryProperty: vpclattice.CfnService.DnsEntryProperty = {
  domainName: 'domainName',
  hostedZoneId: 'hostedZoneId',
};
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_vpclattice as vpclattice

dns_entry_property = vpclattice.CfnService.DnsEntryProperty(
    domain_name="domainName",
    hosted_zone_id="hostedZoneId"
)
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.vpclattice.*;

DnsEntryProperty dnsEntryProperty = DnsEntryProperty.builder()
        .domainName("domainName")
        .hostedZoneId("hostedZoneId")
        .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.VpcLattice;

var dnsEntryProperty = new DnsEntryProperty {
    DomainName = "domainName",
    HostedZoneId = "hostedZoneId"
};
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"

dnsEntryProperty := &DnsEntryProperty{
	DomainName: jsii.String("domainName"),
	HostedZoneId: jsii.String("hostedZoneId"),
}

Properties ​

domainNameoptionalstringdomain_nameoptionalstrdomainNameoptionalStringDomainNameoptionalstringDomainNameoptional*string #
The domain name of the service.
hostedZoneIdoptionalstringhosted_zone_idoptionalstrhostedZoneIdoptionalStringHostedZoneIdoptionalstringHostedZoneIdoptional*string #
The ID of the hosted zone.