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 container

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

Attributes

container

The container to point to for a SRV record.

Default
  • the task definition’s default container

Return type

Optional[ContainerDefinition]

container_port

The port to point to for a SRV record.

Default
  • the default port of the task definition’s default container

Return type

Union[int, float, None]

service

The cloudmap service to register with.

Return type

IService