Skip to content
v2.275.0

AssociateCloudMapServiceOptions Struct ​

The options for using a cloudmap service.

Example ​

ts
declare const cloudMapService: cloudmap.Service;
declare const ecsService: ecs.FargateService;

ecsService.associateCloudMapService({
  service: cloudMapService,
});

Properties ​

containeroptionalContainerDefinitioncontaineroptionalContainerDefinitioncontaineroptionalContainerDefinitionContaineroptionalContainerDefinitionContaineroptionalContainerDefinition#
The container to point to for a SRV record.

Default: the task definition's default container

containerPortoptionalnumbercontainer_portoptionalint | floatcontainerPortoptionalNumberContainerPortoptionaldoubleContainerPortoptional*float64#
The port to point to for a SRV record.

Default: the default port of the task definition's default container

serviceIServiceserviceIServiceserviceIServiceServiceIServiceServiceIServicerequired#
The cloudmap service to register with.