@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.673Z") @Stability(value=Stable) public interface CloudMapOptions extends software.amazon.jsii.JsiiSerializable
Example:
TaskDefinition taskDefinition;
Cluster cluster;
Ec2Service service = Ec2Service.Builder.create(this, "Service")
.cluster(cluster)
.taskDefinition(taskDefinition)
.cloudMapOptions(CloudMapOptions.builder()
// Create A records - useful for AWSVPC network mode.
.dnsRecordType(DnsRecordType.A)
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CloudMapOptions.Builder
A builder for
CloudMapOptions |
static class |
CloudMapOptions.Jsii$Proxy
An implementation for
CloudMapOptions |
| Modifier and Type | Method and Description |
|---|---|
static CloudMapOptions.Builder |
builder() |
default INamespace |
getCloudMapNamespace()
The service discovery namespace for the Cloud Map service to attach to the ECS service.
|
default ContainerDefinition |
getContainer()
The container to point to for a SRV record.
|
default Number |
getContainerPort()
The port to point to for a SRV record.
|
default DnsRecordType |
getDnsRecordType()
The DNS record type that you want AWS Cloud Map to create.
|
default Duration |
getDnsTtl()
The amount of time that you want DNS resolvers to cache the settings for this record.
|
default Number |
getFailureThreshold()
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.
|
default String |
getName()
The name of the Cloud Map service to attach to the ECS service.
|
@Stability(value=Stable) @Nullable default INamespace getCloudMapNamespace()
Default: - the defaultCloudMapNamespace associated to the cluster
@Stability(value=Stable) @Nullable default ContainerDefinition getContainer()
Default: - the task definition's default container
@Stability(value=Stable) @Nullable default Number getContainerPort()
Default: - the default port of the task definition's default container
@Stability(value=Stable) @Nullable default DnsRecordType getDnsRecordType()
The supported record types are A or SRV.
Default: - DnsRecordType.A if TaskDefinition.networkMode = AWS_VPC, otherwise DnsRecordType.SRV
@Stability(value=Stable) @Nullable default Duration getDnsTtl()
Default: Duration.minutes(1)
@Stability(value=Stable) @Nullable default Number getFailureThreshold()
NOTE: This is used for HealthCheckCustomConfig
@Stability(value=Stable) @Nullable default String getName()
Default: CloudFormation-generated name
@Stability(value=Stable) static CloudMapOptions.Builder builder()
CloudMapOptions.Builder of CloudMapOptionsCopyright © 2022. All rights reserved.