public static final class ServiceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ServiceProps
ServiceProps
ServiceProps.Builder, ServiceProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
HealthCheckCustomConfig |
getCustomHealthCheck()
Structure containing failure threshold for a custom health checker.
|
java.lang.String |
getDescription()
A description of the service.
|
DnsRecordType |
getDnsRecordType()
The DNS type of the record that you want AWS Cloud Map to create.
|
Duration |
getDnsTtl()
The amount of time, in seconds, that you want DNS resolvers to cache the settings for this record.
|
HealthCheckConfig |
getHealthCheck()
Settings for an optional health check.
|
java.lang.Boolean |
getLoadBalancer()
Whether or not this service will have an Elastic LoadBalancer registered to it as an AliasTargetInstance.
|
java.lang.String |
getName()
A name for the Service.
|
INamespace |
getNamespace()
The namespace that you want to use for DNS configuration.
|
RoutingPolicy |
getRoutingPolicy()
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.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final INamespace getNamespace()
ServiceProps
getNamespace
in interface ServiceProps
public final DnsRecordType getDnsRecordType()
DnsServiceProps
Supported record types include A, AAAA, A and AAAA (A_AAAA), CNAME, and SRV.
Default: A
getDnsRecordType
in interface DnsServiceProps
public final Duration getDnsTtl()
DnsServiceProps
Default: Duration.minutes(1)
getDnsTtl
in interface DnsServiceProps
public final java.lang.Boolean getLoadBalancer()
DnsServiceProps
Setting this to true
correctly configures the routingPolicy
and performs some additional validation.
Default: false
getLoadBalancer
in interface DnsServiceProps
public final RoutingPolicy getRoutingPolicy()
DnsServiceProps
Default: WEIGHTED for CNAME records and when loadBalancer is true, MULTIVALUE otherwise
getRoutingPolicy
in interface DnsServiceProps
public final HealthCheckCustomConfig getCustomHealthCheck()
BaseServiceProps
Only one of healthCheckConfig or healthCheckCustomConfig can be specified. See: https://docs.aws.amazon.com/cloud-map/latest/api/API_HealthCheckCustomConfig.html
Default: none
getCustomHealthCheck
in interface BaseServiceProps
public final java.lang.String getDescription()
BaseServiceProps
Default: none
getDescription
in interface BaseServiceProps
public final HealthCheckConfig getHealthCheck()
BaseServiceProps
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.
Default: none
getHealthCheck
in interface BaseServiceProps
public final java.lang.String getName()
BaseServiceProps
Default: CloudFormation-generated name
getName
in interface BaseServiceProps
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()