interface Ec2ServiceAttributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECS.Ec2ServiceAttributes |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#Ec2ServiceAttributes |
![]() | software.amazon.awscdk.services.ecs.Ec2ServiceAttributes |
![]() | aws_cdk.aws_ecs.Ec2ServiceAttributes |
![]() | aws-cdk-lib » aws_ecs » Ec2ServiceAttributes |
The properties to import from the service using the EC2 launch type.
Example
// 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 ec2ServiceAttributes: ecs.Ec2ServiceAttributes = {
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 serviceName
, is required)
The service ARN.
serviceName?
Type:
string
(optional, default: either this, or serviceArn
, is required)
The name of the service.