enum LifecyclePolicyActionType
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.LifecyclePolicyActionType |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#LifecyclePolicyActionType |
Java | software.amazon.awscdk.services.imagebuilder.alpha.LifecyclePolicyActionType |
Python | aws_cdk.aws_imagebuilder_alpha.LifecyclePolicyActionType |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha ยป LifecyclePolicyActionType |
The action to perform on the resources which the policy applies to.
Example
const disabledPolicy = new imagebuilder.LifecyclePolicy(this, 'DisabledPolicy', {
lifecyclePolicyName: 'my-disabled-policy',
description: 'A lifecycle policy that is temporarily disabled',
status: imagebuilder.LifecyclePolicyStatus.DISABLED,
resourceType: imagebuilder.LifecyclePolicyResourceType.AMI_IMAGE,
details: [
{
action: { type: imagebuilder.LifecyclePolicyActionType.DELETE },
filter: { ageFilter: { age: Duration.days(30) } }
}
],
resourceSelection: {
tags: { Environment: 'testing' }
},
tags: {
Owner: 'DevOps',
CostCenter: 'Engineering'
}
});
Members
| Name | Description |
|---|---|
| DELETE | Indicates that the rule should delete the resource when it is applied. |
| DEPRECATE | Indicates that the rule should deprecate the resource when it is applied. |
| DISABLE | Indicates that the rule should disable the resource when it is applied. |
DELETE
Indicates that the rule should delete the resource when it is applied.
DEPRECATE
Indicates that the rule should deprecate the resource when it is applied.
DISABLE
Indicates that the rule should disable the resource when it is applied.

.NET
Go
Java
Python
TypeScript (