AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::ImageBuilder::LifecyclePolicy

CfnLifecyclePolicy

Create a lifecycle policy resource.

Import

import { CfnLifecyclePolicy } from 'aws-cdk-lib/aws-imagebuilder';

Or use the module namespace:

import * as imagebuilder from 'aws-cdk-lib/aws-imagebuilder';
// imagebuilder.CfnLifecyclePolicy

Properties

Configuration passed to the constructor as CfnLifecyclePolicyProps.

executionRoleRequired
string

The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.

nameRequired
string

The name of the lifecycle policy to create.

policyDetailsRequired
IResolvable | IResolvable | PolicyDetailProperty[]

Configuration details for the lifecycle policy rules.

resourceSelectionRequired
IResolvable | ResourceSelectionProperty

Selection criteria for the resources that the lifecycle policy applies to.

resourceTypeRequired
string

The type of Image Builder resource that the lifecycle policy applies to.

descriptionOptional
string

Optional description for the lifecycle policy.

statusOptional
string

Indicates whether the lifecycle policy resource is enabled.

tagsOptional
{ [key: string]: string }

Tags to apply to the lifecycle policy resource.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter