ServerDeploymentGroupAttributes Struct
Properties of a reference to a CodeDeploy EC2/on-premise Deployment Group.
Example
ts
declare const application: codedeploy.ServerApplication;
const deploymentGroup = codedeploy.ServerDeploymentGroup.fromServerDeploymentGroupAttributes(
this,
'ExistingCodeDeployDeploymentGroup', {
application,
deploymentGroupName: 'MyExistingDeploymentGroup',
},
);
python
# application: codedeploy.ServerApplication
deployment_group = codedeploy.ServerDeploymentGroup.from_server_deployment_group_attributes(self, "ExistingCodeDeployDeploymentGroup",
application=application,
deployment_group_name="MyExistingDeploymentGroup"
)
java
ServerApplication application;
IServerDeploymentGroup deploymentGroup = ServerDeploymentGroup.fromServerDeploymentGroupAttributes(this, "ExistingCodeDeployDeploymentGroup", ServerDeploymentGroupAttributes.builder()
.application(application)
.deploymentGroupName("MyExistingDeploymentGroup")
.build());
csharp
// Install: dotnet add package Amazon.CDK.Lib
ServerApplication application;
var deploymentGroup = ServerDeploymentGroup.FromServerDeploymentGroupAttributes(this, "ExistingCodeDeployDeploymentGroup", new ServerDeploymentGroupAttributes {
Application = application,
DeploymentGroupName = "MyExistingDeploymentGroup"
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var application ServerApplication
deploymentGroup := codedeploy.ServerDeploymentGroup_FromServerDeploymentGroupAttributes(this, jsii.String("ExistingCodeDeployDeploymentGroup"), &ServerDeploymentGroupAttributes{
Application: Application,
DeploymentGroupName: jsii.String("MyExistingDeploymentGroup"),
})
Properties
applicationIApplicationRefapplicationIApplicationRefapplicationIApplicationRefApplicationIApplicationRefApplicationIApplicationRefrequired#The reference to the CodeDeploy EC2/on-premise Application that this Deployment Group belongs to.
deploymentConfigoptionalIDeploymentConfigRefdeployment_configoptionalIDeploymentConfigRefdeploymentConfigoptionalIDeploymentConfigRefDeploymentConfigoptionalIDeploymentConfigRefDeploymentConfigoptionalIDeploymentConfigRef#The Deployment Configuration this Deployment Group uses.
Default: ServerDeploymentConfig#OneAtATime
deploymentGroupNamestringdeployment_group_namestrdeploymentGroupNameStringDeploymentGroupNamestringDeploymentGroupName*stringrequired#The physical, human-readable name of the CodeDeploy EC2/on-premise Deployment Group that we are referencing.