@Stability(value=Experimental) public static final class DnsServiceProps.Builder extends Object implements software.amazon.jsii.Builder<DnsServiceProps>
DnsServiceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public DnsServiceProps.Builder dnsRecordType(DnsRecordType dnsRecordType)
DnsServiceProps.getDnsRecordType()dnsRecordType - The DNS type of the record that you want AWS Cloud Map to create.
Supported record types
include A, AAAA, A and AAAA (A_AAAA), CNAME, and SRV.this@Stability(value=Experimental) public DnsServiceProps.Builder dnsTtl(Duration dnsTtl)
DnsServiceProps.getDnsTtl()dnsTtl - The amount of time, in seconds, that you want DNS resolvers to cache the settings for this record.this@Stability(value=Experimental) public DnsServiceProps.Builder loadBalancer(Boolean loadBalancer)
DnsServiceProps.getLoadBalancer()loadBalancer - Whether or not this service will have an Elastic LoadBalancer registered to it as an AliasTargetInstance.
Setting this to true correctly configures the routingPolicy
and performs some additional validation.this@Stability(value=Experimental) public DnsServiceProps.Builder routingPolicy(RoutingPolicy routingPolicy)
DnsServiceProps.getRoutingPolicy()routingPolicy - The routing policy that you want to apply to all DNS records that AWS Cloud Map creates when you register an instance and specify this service.this@Stability(value=Experimental) public DnsServiceProps.Builder customHealthCheck(HealthCheckCustomConfig customHealthCheck)
BaseServiceProps.getCustomHealthCheck()customHealthCheck - Structure containing failure threshold for a custom health checker.
Only one of healthCheckConfig or healthCheckCustomConfig can be specified.
See: https://docs.aws.amazon.com/cloud-map/latest/api/API_HealthCheckCustomConfig.htmlthis@Stability(value=Experimental) public DnsServiceProps.Builder description(String description)
BaseServiceProps.getDescription()description - A description of the service.this@Stability(value=Experimental) public DnsServiceProps.Builder healthCheck(HealthCheckConfig healthCheck)
BaseServiceProps.getHealthCheck()healthCheck - Settings for an optional health check.
If you specify health check settings, AWS Cloud Map associates the health
check with the records that you specify in DnsConfig. Only one of healthCheckConfig or healthCheckCustomConfig can
be specified. Not valid for PrivateDnsNamespaces. If you use healthCheck, you can only register IP instances to
this service.this@Stability(value=Experimental) public DnsServiceProps.Builder name(String name)
BaseServiceProps.getName()name - A name for the Service.this@Stability(value=Experimental) public DnsServiceProps build()
build in interface software.amazon.jsii.Builder<DnsServiceProps>DnsServicePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.