CloudMapOptions¶
-
class
aws_cdk.aws_ecs.
CloudMapOptions
(*, cloud_map_namespace=None, dns_record_type=None, dns_ttl=None, failure_threshold=None, name=None)¶ Bases:
object
The options to enabling AWS Cloud Map for an Amazon ECS service.
- Parameters
cloud_map_namespace (
Optional
[INamespace
]) – The service discovery namespace for the Cloud Map service to attach to the ECS service. Default: - the defaultCloudMapNamespace associated to the clusterdns_record_type (
Optional
[DnsRecordType
]) – 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.SRVdns_ttl (
Optional
[Duration
]) – The amount of time that you want DNS resolvers to cache the settings for this record. Default: 60failure_threshold (
Union
[int
,float
,None
]) – 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 HealthCheckCustomConfigname (
Optional
[str
]) – The name of the Cloud Map service to attach to the ECS service. Default: CloudFormation-generated name
Attributes
-
cloud_map_namespace
¶ The service discovery namespace for the Cloud Map service to attach to the ECS service.
- Default
the defaultCloudMapNamespace associated to the cluster
- Return type
Optional
[INamespace
]
-
dns_record_type
¶ 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
- Return type
Optional
[DnsRecordType
]
-
dns_ttl
¶ The amount of time that you want DNS resolvers to cache the settings for this record.
- Default
60
- Return type
Optional
[Duration
]
-
failure_threshold
¶ 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
- Return type
Union
[int
,float
,None
]
-
name
¶ The name of the Cloud Map service to attach to the ECS service.
- Default
CloudFormation-generated name
- Return type
Optional
[str
]