ExternalServiceAttributes Struct
The properties to import from the service using the External launch type.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
declare const cluster: ecs.Cluster;
const externalServiceAttributes: ecs.ExternalServiceAttributes = {
cluster: cluster,
// the properties below are optional
serviceArn: 'serviceArn',
serviceName: 'serviceName',
};
Properties
The cluster that hosts the service.
serviceArnoptionalstringservice_arnoptionalstrserviceArnoptionalStringServiceArnoptionalstringServiceArnoptional*string#The service ARN.
Default: either this, or serviceName, is required
serviceNameoptionalstringservice_nameoptionalstrserviceNameoptionalStringServiceNameoptionalstringServiceNameoptional*string#The name of the service.
Default: either this, or serviceArn, is required