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

__init__(*, cloud_map_namespace=None, dns_record_type=None, dns_ttl=None, failure_threshold=None, name=None)

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 cluster

  • dns_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

  • dns_ttl (Optional[Duration]) – The amount of time that you want DNS resolvers to cache the settings for this record. Default: 60

  • failure_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 HealthCheckCustomConfig

  • name (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 :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 :default: DnsRecordType.A

Return type

Optional[DnsRecordType]

dns_ttl

The amount of time that you want DNS resolvers to cache the settings for this record.

default :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 :default: CloudFormation-generated name

Return type

Optional[str]