@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:37:00.274Z")
public interface CloudMapOptions
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 java.lang.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 java.lang.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 java.lang.String |
getName()
The name of the Cloud Map service to attach to the ECS service.
|
default INamespace getCloudMapNamespace()
Default: - the defaultCloudMapNamespace associated to the cluster
default ContainerDefinition getContainer()
Default: - the task definition's default container
default java.lang.Number getContainerPort()
Default: - the default port of the task definition's default container
default DnsRecordType getDnsRecordType()
The supported record types are A or SRV.
Default: - DnsRecordType.A if TaskDefinition.networkMode = AWS_VPC, otherwise DnsRecordType.SRV
default Duration getDnsTtl()
Default: Duration.minutes(1)
default java.lang.Number getFailureThreshold()
NOTE: This is used for HealthCheckCustomConfig
default java.lang.String getName()
Default: CloudFormation-generated name
static CloudMapOptions.Builder builder()
CloudMapOptions.Builder
of CloudMapOptions