EcsDeploymentGroupAttributes Struct
Properties of a reference to a CodeDeploy ECS Deployment Group.
Example
ts
declare const application: codedeploy.EcsApplication;
const deploymentGroup = codedeploy.EcsDeploymentGroup.fromEcsDeploymentGroupAttributes(this, 'ExistingCodeDeployDeploymentGroup', {
application,
deploymentGroupName: 'MyExistingDeploymentGroup',
});
python
# application: codedeploy.EcsApplication
deployment_group = codedeploy.EcsDeploymentGroup.from_ecs_deployment_group_attributes(self, "ExistingCodeDeployDeploymentGroup",
application=application,
deployment_group_name="MyExistingDeploymentGroup"
)
java
EcsApplication application;
IEcsDeploymentGroup deploymentGroup = EcsDeploymentGroup.fromEcsDeploymentGroupAttributes(this, "ExistingCodeDeployDeploymentGroup", EcsDeploymentGroupAttributes.builder()
.application(application)
.deploymentGroupName("MyExistingDeploymentGroup")
.build());
csharp
// Install: dotnet add package Amazon.CDK.Lib
EcsApplication application;
var deploymentGroup = EcsDeploymentGroup.FromEcsDeploymentGroupAttributes(this, "ExistingCodeDeployDeploymentGroup", new EcsDeploymentGroupAttributes {
Application = application,
DeploymentGroupName = "MyExistingDeploymentGroup"
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var application EcsApplication
deploymentGroup := codedeploy.EcsDeploymentGroup_FromEcsDeploymentGroupAttributes(this, jsii.String("ExistingCodeDeployDeploymentGroup"), &EcsDeploymentGroupAttributes{
Application: Application,
DeploymentGroupName: jsii.String("MyExistingDeploymentGroup"),
})
Properties
applicationIApplicationRefapplicationIApplicationRefapplicationIApplicationRefApplicationIApplicationRefApplicationIApplicationRefrequired#The reference to the CodeDeploy ECS Application that this Deployment Group belongs to.
deploymentConfigoptionalIDeploymentConfigRefdeployment_configoptionalIDeploymentConfigRefdeploymentConfigoptionalIDeploymentConfigRefDeploymentConfigoptionalIDeploymentConfigRefDeploymentConfigoptionalIDeploymentConfigRef= EcsDeploymentConfig.ALL_AT_ONCE#The Deployment Configuration this Deployment Group uses.
deploymentGroupNamestringdeployment_group_namestrdeploymentGroupNameStringDeploymentGroupNamestringDeploymentGroupName*stringrequired#The physical, human-readable name of the CodeDeploy ECS Deployment Group that we are referencing.