interface ExternalServiceAttributes
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.ExternalServiceAttributes |
Java | software.amazon.awscdk.services.ecs.ExternalServiceAttributes |
Python | aws_cdk.aws_ecs.ExternalServiceAttributes |
TypeScript (source) | @aws-cdk/aws-ecs » ExternalServiceAttributes |
The properties to import from the service using the External launch type.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ecs from '@aws-cdk/aws-ecs';
declare const cluster: ecs.Cluster;
const externalServiceAttributes: ecs.ExternalServiceAttributes = {
cluster: cluster,
// the properties below are optional
serviceArn: 'serviceArn',
serviceName: 'serviceName',
};
Properties
Name | Type | Description |
---|---|---|
cluster | ICluster | The cluster that hosts the service. |
service | string | The service ARN. |
service | string | The name of the service. |
cluster
Type:
ICluster
The cluster that hosts the service.
serviceArn?
Type:
string
(optional, default: either this, or {@link serviceName}, is required)
The service ARN.
serviceName?
Type:
string
(optional, default: either this, or {@link serviceArn}, is required)
The name of the service.