AssociateCloudMapServiceOptions
- class aws_cdk.aws_ecs.AssociateCloudMapServiceOptions(*, service, container=None, container_port=None)
Bases:
object
The options for using a cloudmap service.
- Parameters:
service (
IService
) – The cloudmap service to register with.container (
Optional
[ContainerDefinition
]) – The container to point to for a SRV record. Default: - the task definition’s default containercontainer_port (
Union
[int
,float
,None
]) – The port to point to for a SRV record. Default: - the default port of the task definition’s default container
- ExampleMetadata:
infused
Example:
# cloud_map_service: cloudmap.Service # ecs_service: ecs.FargateService ecs_service.associate_cloud_map_service( service=cloud_map_service )
Attributes
- container
The container to point to for a SRV record.
- Default:
the task definition’s default container
- container_port
The port to point to for a SRV record.
- Default:
the default port of the task definition’s default container
- service
The cloudmap service to register with.