@Stability(value=Experimental) public static final class CloudMapOptions.Builder extends Object implements software.amazon.jsii.Builder<CloudMapOptions>
CloudMapOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CloudMapOptions |
build()
Builds the configured instance.
|
CloudMapOptions.Builder |
cloudMapNamespace(INamespace cloudMapNamespace)
Sets the value of
CloudMapOptions.getCloudMapNamespace() |
CloudMapOptions.Builder |
container(ContainerDefinition container)
Sets the value of
CloudMapOptions.getContainer() |
CloudMapOptions.Builder |
containerPort(Number containerPort)
Sets the value of
CloudMapOptions.getContainerPort() |
CloudMapOptions.Builder |
dnsRecordType(DnsRecordType dnsRecordType)
Sets the value of
CloudMapOptions.getDnsRecordType() |
CloudMapOptions.Builder |
dnsTtl(Duration dnsTtl)
Sets the value of
CloudMapOptions.getDnsTtl() |
CloudMapOptions.Builder |
failureThreshold(Number failureThreshold)
Sets the value of
CloudMapOptions.getFailureThreshold() |
CloudMapOptions.Builder |
name(String name)
Sets the value of
CloudMapOptions.getName() |
@Stability(value=Experimental) public CloudMapOptions.Builder cloudMapNamespace(INamespace cloudMapNamespace)
CloudMapOptions.getCloudMapNamespace()cloudMapNamespace - The service discovery namespace for the Cloud Map service to attach to the ECS service.this@Stability(value=Experimental) public CloudMapOptions.Builder container(ContainerDefinition container)
CloudMapOptions.getContainer()container - The container to point to for a SRV record.this@Stability(value=Experimental) public CloudMapOptions.Builder containerPort(Number containerPort)
CloudMapOptions.getContainerPort()containerPort - The port to point to for a SRV record.this@Stability(value=Experimental) public CloudMapOptions.Builder dnsRecordType(DnsRecordType dnsRecordType)
CloudMapOptions.getDnsRecordType()dnsRecordType - The DNS record type that you want AWS Cloud Map to create.
The supported record types are A or SRV.this@Stability(value=Experimental) public CloudMapOptions.Builder dnsTtl(Duration dnsTtl)
CloudMapOptions.getDnsTtl()dnsTtl - The amount of time that you want DNS resolvers to cache the settings for this record.this@Stability(value=Experimental) public CloudMapOptions.Builder failureThreshold(Number failureThreshold)
CloudMapOptions.getFailureThreshold()failureThreshold - The number of 30-second intervals that you want Cloud Map to wait after receiving an UpdateInstanceCustomHealthStatus request before it changes the health status of a service instance.
NOTE: This is used for HealthCheckCustomConfigthis@Stability(value=Experimental) public CloudMapOptions.Builder name(String name)
CloudMapOptions.getName()name - The name of the Cloud Map service to attach to the ECS service.this@Stability(value=Experimental) public CloudMapOptions build()
build in interface software.amazon.jsii.Builder<CloudMapOptions>CloudMapOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.