interface CfnExpressGatewayServiceProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.CfnExpressGatewayServiceProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnExpressGatewayServiceProps |
Java | software.amazon.awscdk.services.ecs.CfnExpressGatewayServiceProps |
Python | aws_cdk.aws_ecs.CfnExpressGatewayServiceProps |
TypeScript | aws-cdk-lib » aws_ecs » CfnExpressGatewayServiceProps |
Properties for defining a CfnExpressGatewayService.
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';
const cfnExpressGatewayServiceProps: ecs.CfnExpressGatewayServiceProps = {
executionRoleArn: 'executionRoleArn',
infrastructureRoleArn: 'infrastructureRoleArn',
primaryContainer: {
image: 'image',
// the properties below are optional
awsLogsConfiguration: {
logGroup: 'logGroup',
logStreamPrefix: 'logStreamPrefix',
},
command: ['command'],
containerPort: 123,
environment: [{
name: 'name',
value: 'value',
}],
repositoryCredentials: {
credentialsParameter: 'credentialsParameter',
},
secrets: [{
name: 'name',
valueFrom: 'valueFrom',
}],
},
// the properties below are optional
cluster: 'cluster',
cpu: 'cpu',
healthCheckPath: 'healthCheckPath',
memory: 'memory',
networkConfiguration: {
securityGroups: ['securityGroups'],
subnets: ['subnets'],
},
scalingTarget: {
autoScalingMetric: 'autoScalingMetric',
autoScalingTargetValue: 123,
maxTaskCount: 123,
minTaskCount: 123,
},
serviceName: 'serviceName',
tags: [{
key: 'key',
value: 'value',
}],
taskRoleArn: 'taskRoleArn',
};
Properties
| Name | Type | Description |
|---|---|---|
| execution | string | The ARN of the task execution role for the service revision. |
| infrastructure | string | The ARN of the infrastructure role that manages AWS resources for the Express service. |
| primary | IResolvable | Express | The primary container configuration for this service revision. |
| cluster? | string | The short name or full ARN of the cluster that hosts the Express service. |
| cpu? | string | The CPU allocation for tasks in this service revision. |
| health | string | The health check path for this service revision. |
| memory? | string | The memory allocation for tasks in this service revision. |
| network | IResolvable | Express | The network configuration for tasks in this service revision. |
| scaling | IResolvable | Express | The auto-scaling configuration for this service revision. |
| service | string | The name of the Express service. |
| tags? | Cfn[] | The metadata applied to the Express service. |
| task | string | The ARN of the task role for the service revision. |
executionRoleArn
Type:
string
The ARN of the task execution role for the service revision.
infrastructureRoleArn
Type:
string
The ARN of the infrastructure role that manages AWS resources for the Express service.
primaryContainer
Type:
IResolvable | Express
The primary container configuration for this service revision.
cluster?
Type:
string
(optional, default: "default")
The short name or full ARN of the cluster that hosts the Express service.
cpu?
Type:
string
(optional, default: "256")
The CPU allocation for tasks in this service revision.
healthCheckPath?
Type:
string
(optional, default: "HTTP:80/ping")
The health check path for this service revision.
memory?
Type:
string
(optional, default: "512")
The memory allocation for tasks in this service revision.
networkConfiguration?
Type:
IResolvable | Express
(optional)
The network configuration for tasks in this service revision.
scalingTarget?
Type:
IResolvable | Express
(optional)
The auto-scaling configuration for this service revision.
serviceName?
Type:
string
(optional)
The name of the Express service.
tags?
Type:
Cfn[]
(optional)
The metadata applied to the Express service.
taskRoleArn?
Type:
string
(optional)
The ARN of the task role for the service revision.

.NET
Go
Java
Python
TypeScript