class CfnExpressGatewayServicePropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ECS.Mixins.CfnExpressGatewayServicePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsecs/mixins#CfnExpressGatewayServicePropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.ecs.mixins.CfnExpressGatewayServicePropsMixin |
Python | aws_cdk.mixins_preview.aws_ecs.mixins.CfnExpressGatewayServicePropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_ecs » mixins » CfnExpressGatewayServicePropsMixin |
Implements
IMixin
Extends
Mixin
Creates an Express service that simplifies deploying containerized web applications on Amazon ECS with managed AWS infrastructure.
This operation provisions and configures Application Load Balancers, target groups, security groups, and auto-scaling policies automatically.
Specify a primary container configuration with your application image and basic settings. Amazon ECS creates the necessary AWS resources for traffic distribution, health monitoring, network access control, and capacity management.
Provide an execution role for task operations and an infrastructure role for managing AWS resources on your behalf.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as ecs_mixins } from '@aws-cdk/mixins-preview/aws-ecs';
const cfnExpressGatewayServicePropsMixin = new ecs_mixins.CfnExpressGatewayServicePropsMixin({
cluster: 'cluster',
cpu: 'cpu',
executionRoleArn: 'executionRoleArn',
healthCheckPath: 'healthCheckPath',
infrastructureRoleArn: 'infrastructureRoleArn',
memory: 'memory',
networkConfiguration: {
securityGroups: ['securityGroups'],
subnets: ['subnets'],
},
primaryContainer: {
awsLogsConfiguration: {
logGroup: 'logGroup',
logStreamPrefix: 'logStreamPrefix',
},
command: ['command'],
containerPort: 123,
environment: [{
name: 'name',
value: 'value',
}],
image: 'image',
repositoryCredentials: {
credentialsParameter: 'credentialsParameter',
},
secrets: [{
name: 'name',
valueFrom: 'valueFrom',
}],
},
scalingTarget: {
autoScalingMetric: 'autoScalingMetric',
autoScalingTargetValue: 123,
maxTaskCount: 123,
minTaskCount: 123,
},
serviceName: 'serviceName',
tags: [{
key: 'key',
value: 'value',
}],
taskRoleArn: 'taskRoleArn',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnExpressGatewayServicePropsMixin(props: CfnExpressGatewayServiceMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Express Gateway Service Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::ECS::ExpressGatewayService.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript