Interface CfnService.DnsConfigProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnService.DnsConfigProperty.Jsii$Proxy
Enclosing class:
CfnService

@Stability(Stable) public static interface CfnService.DnsConfigProperty extends software.amazon.jsii.JsiiSerializable
A complex type that contains information about the Amazon Route 53 DNS records that you want AWS Cloud Map to create when you register an instance.

The record types of a service can only be changed by deleting the service and recreating it with a new Dnsconfig .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.servicediscovery.*;
 DnsConfigProperty dnsConfigProperty = DnsConfigProperty.builder()
         .dnsRecords(List.of(DnsRecordProperty.builder()
                 .ttl(123)
                 .type("type")
                 .build()))
         // the properties below are optional
         .namespaceId("namespaceId")
         .routingPolicy("routingPolicy")
         .build();
 

See Also: