AWS::ImageBuilder::LifecyclePolicyCreate a lifecycle policy resource.
import { CfnLifecyclePolicy } from 'aws-cdk-lib/aws-imagebuilder';Or use the module namespace:
import * as imagebuilder from 'aws-cdk-lib/aws-imagebuilder';
// imagebuilder.CfnLifecyclePolicyConfiguration passed to the constructor as CfnLifecyclePolicyProps.
executionRoleRequiredstringThe name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.
nameRequiredstringThe name of the lifecycle policy to create.
policyDetailsRequiredIResolvable | IResolvable | PolicyDetailProperty[]Configuration details for the lifecycle policy rules.
resourceSelectionRequiredIResolvable | ResourceSelectionPropertySelection criteria for the resources that the lifecycle policy applies to.
resourceTypeRequiredstringThe type of Image Builder resource that the lifecycle policy applies to.
descriptionOptionalstringOptional description for the lifecycle policy.
statusOptionalstringIndicates whether the lifecycle policy resource is enabled.
tagsOptional{ [key: string]: string }Tags to apply to the lifecycle policy resource.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-imagebuilderAWS::ImageBuilder::LifecyclePolicy