interface DeploymentLifecycleHookTargetConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.DeploymentLifecycleHookTargetConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#DeploymentLifecycleHookTargetConfig |
Java | software.amazon.awscdk.services.ecs.DeploymentLifecycleHookTargetConfig |
Python | aws_cdk.aws_ecs.DeploymentLifecycleHookTargetConfig |
TypeScript (source) | aws-cdk-lib » aws_ecs » DeploymentLifecycleHookTargetConfig |
Obtainable from
Deployment.bind()
Configuration for a deployment lifecycle hook target.
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';
import { aws_iam as iam } from 'aws-cdk-lib';
declare const role: iam.Role;
const deploymentLifecycleHookTargetConfig: ecs.DeploymentLifecycleHookTargetConfig = {
lifecycleStages: [ecs.DeploymentLifecycleStage.RECONCILE_SERVICE],
targetArn: 'targetArn',
// the properties below are optional
role: role,
};
Properties
| Name | Type | Description |
|---|---|---|
| lifecycle | Deployment[] | The lifecycle stages when this hook should be executed. |
| target | string | The ARN of the target resource. |
| role? | IRole | The IAM role that grants permissions to invoke the target. |
lifecycleStages
Type:
Deployment[]
The lifecycle stages when this hook should be executed.
targetArn
Type:
string
The ARN of the target resource.
role?
Type:
IRole
(optional, default: a role will be created automatically)
The IAM role that grants permissions to invoke the target.

.NET
Go
Java
Python
TypeScript (