enum LifecyclePolicyStatus
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.LifecyclePolicyStatus |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#LifecyclePolicyStatus |
Java | software.amazon.awscdk.services.imagebuilder.alpha.LifecyclePolicyStatus |
Python | aws_cdk.aws_imagebuilder_alpha.LifecyclePolicyStatus |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha ยป LifecyclePolicyStatus |
The status of the lifecycle policy, indicating whether it will run.
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 |
|---|---|
| ENABLED | Indicates that the lifecycle policy should be enabled. |
| DISABLED | Indicates that the lifecycle policy should be disabled. |
ENABLED
Indicates that the lifecycle policy should be enabled.
DISABLED
Indicates that the lifecycle policy should be disabled.

.NET
Go
Java
Python
TypeScript (