Ec2ServiceAttributes

class aws_cdk.aws_ecs.Ec2ServiceAttributes(*, cluster, service_arn=None, service_name=None)

Bases: object

The properties to import from the service using the EC2 launch type.

Parameters
  • cluster (ICluster) – The cluster that hosts the service.

  • service_arn (Optional[str]) – The service ARN. Default: - either this, or {@link serviceName}, is required

  • service_name (Optional[str]) – The name of the service. Default: - either this, or {@link serviceArn}, is required

Attributes

cluster

The cluster that hosts the service.

Return type

ICluster

service_arn

The service ARN.

Default
  • either this, or {@link serviceName}, is required

Return type

Optional[str]

service_name

The name of the service.

Default
  • either this, or {@link serviceArn}, is required

Return type

Optional[str]