aws-cdk-lib.aws_ecs.AssociateCloudMapServiceOptions

interface AssociateCloudMapServiceOptions

LanguageType name
.NETAmazon.CDK.AWS.ECS.AssociateCloudMapServiceOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#AssociateCloudMapServiceOptions
Javasoftware.amazon.awscdk.services.ecs.AssociateCloudMapServiceOptions
Pythonaws_cdk.aws_ecs.AssociateCloudMapServiceOptions
TypeScript (source)aws-cdk-lib » aws_ecs » AssociateCloudMapServiceOptions

The options for using a cloudmap service.

Example

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

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

Properties

NameTypeDescription
serviceIServiceThe cloudmap service to register with.
container?ContainerDefinitionThe container to point to for a SRV record.
containerPort?numberThe port to point to for a SRV record.

service

Type: IService

The cloudmap service to register with.


container?

Type: ContainerDefinition (optional, default: the task definition's default container)

The container to point to for a SRV record.


containerPort?

Type: number (optional, default: the default port of the task definition's default container)

The port to point to for a SRV record.