Interface CloudMapOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CloudMapOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.241Z")
@Stability(Stable)
public interface CloudMapOptions
extends software.amazon.jsii.JsiiSerializable
The options to enabling AWS Cloud Map for an Amazon ECS service.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCloudMapOptionsstatic final classAn implementation forCloudMapOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic CloudMapOptions.Builderbuilder()default INamespaceThe service discovery namespace for the Cloud Map service to attach to the ECS service.default ContainerDefinitionThe container to point to for a SRV record.default NumberThe port to point to for a SRV record.default DnsRecordTypeThe DNS record type that you want AWS Cloud Map to create.default DurationThe amount of time that you want DNS resolvers to cache the settings for this record.default NumberThe 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 StringgetName()The name of the Cloud Map service to attach to the ECS service.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCloudMapNamespace
The service discovery namespace for the Cloud Map service to attach to the ECS service.Default: - the defaultCloudMapNamespace associated to the cluster
-
getContainer
The container to point to for a SRV record.Default: - the task definition's default container
-
getContainerPort
The port to point to for a SRV record.Default: - the default port of the task definition's default container
-
getDnsRecordType
The DNS record type that you want AWS Cloud Map to create.The supported record types are A or SRV.
Default: - DnsRecordType.A if TaskDefinition.networkMode = AWS_VPC, otherwise DnsRecordType.SRV
-
getDnsTtl
The amount of time that you want DNS resolvers to cache the settings for this record.Default: Duration.minutes(1)
-
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.NOTE: This is used for HealthCheckCustomConfig
-
getName
The name of the Cloud Map service to attach to the ECS service.Default: CloudFormation-generated name
-
builder
- Returns:
- a
CloudMapOptions.BuilderofCloudMapOptions
-