interface IBindableDeploymentConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CodeDeploy.IBindableDeploymentConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#IBindableDeploymentConfig |
Java | software.amazon.awscdk.services.codedeploy.IBindableDeploymentConfig |
Python | aws_cdk.aws_codedeploy.IBindableDeploymentConfig |
TypeScript (source) | aws-cdk-lib » aws_codedeploy » IBindableDeploymentConfig |
Implements
IDependable, IConstruct, IEnvironment, IDeployment
Implemented by
Custom
A DeploymentConfig that can specialize itself based on the target group it will be used for.
For example, this is used for AWS-managed deployment configs: these are already present in every region, but we need a region-specific ARN to reference them. Since we might use them in conjunction with cross-region DeploymentGroups, we need to specialize the account and region to the DeploymentGroup before using.
A DeploymentGroup must call bindEnvironment() first if it detects this type,
before reading the DeploymentConfig ARN.
Properties
| Name | Type | Description |
|---|---|---|
| deployment | Deployment | A reference to a DeploymentConfig resource. |
| env | Resource | The environment this resource belongs to. |
| node | Node | The tree node. |
deploymentConfigRef
Type:
Deployment
A reference to a DeploymentConfig resource.
env
Type:
Resource
The environment this resource belongs to.
For resources that are created and managed in a Stack (those created by
creating new class instances like new Role(), new Bucket(), etc.), this
is always the same as the environment of the stack they belong to.
For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be
different than the stack they were imported into.
node
Type:
Node
The tree node.
Methods
| Name | Description |
|---|---|
| bind | Bind the predefined deployment config to the environment of the given resource. |
| with(...mixins) | Applies one or more mixins to this construct. |
bindEnvironment(deploymentGroup)
public bindEnvironment(deploymentGroup: IDeploymentGroupRef): IDeploymentConfigRef
Parameters
- deploymentGroup
IDeploymentGroup Ref
Returns
Bind the predefined deployment config to the environment of the given resource.
with(...mixins)
public with(...mixins: IMixin[]): IConstruct
Parameters
- mixins
IMixin— The mixins to apply.
Returns
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited.

.NET
Go
Java
Python
TypeScript (