Skip to main content

EcsServiceSchema

The EcsServiceSchema class is the schema for the EcsService resource, which represents the AWS Elastic Container Service (ECS) Service resource. This resource can create a ecs service in AWS using the AWS JavaScript SDK V3 API. See official sdk docs.

@group

Resources/EcsService

@overrideProperty

parents - This resource has parents.

@overrideProperty

resourceId - The resource id is of format ecs-service-<execution-id>

Hierarchy

  • BaseResourceSchema
    • EcsServiceSchema

Index

Properties

inheritedparents

parents: IResourceReference[]

properties

properties: { assignPublicIp: ENABLED | DISABLED; awsAccountId: string; awsRegionId: string; desiredCount: number; loadBalancers: EcsServiceLoadBalancerSchema[]; serviceName: string } = ...

Input properties.

  • properties.assignPublicIp: The public IP address type. Valid values are ENABLED or DISABLED.
  • properties.awsAccountId: The AWS account ID.
  • properties.awsRegionId: The AWS region ID.
  • properties.desiredCount: The desired number of tasks.
  • properties.loadBalancers: The load balancers to use. See EcsServiceLoadBalancerSchema for options.
  • properties.serviceName: The name of the service.

Type declaration

  • assignPublicIp: ENABLED | DISABLED
  • awsAccountId: string
  • awsRegionId: string
  • desiredCount: number
  • loadBalancers: EcsServiceLoadBalancerSchema[]
  • serviceName: string

inheritedresourceId

resourceId: string

response

response: { serviceArn?: string } = ...

Saved response.

  • response.serviceArn: The ARN of the service.

Type declaration

  • optionalserviceArn?: string

inheritedtags

tags: {}

Type declaration

  • [key string]: string