LifecyclePolicy
¶
Source code in docs_src/capo_imagebuilder/types/lifecycle_policy.py
arn
instance-attribute
¶
arn: NotRequired[LifecyclePolicyArn]
The Amazon Resource Name (ARN) of the lifecycle policy resource.
date_created
instance-attribute
¶
date_created: NotRequired[DateTimeTimestamp]
The timestamp when Image Builder created the lifecycle policy resource.
date_last_run
instance-attribute
¶
date_last_run: NotRequired[DateTimeTimestamp]
The timestamp for the last time Image Builder ran the lifecycle policy.
date_updated
instance-attribute
¶
date_updated: NotRequired[DateTimeTimestamp]
The timestamp when Image Builder updated the lifecycle policy resource.
description
instance-attribute
¶
description: NotRequired[NonEmptyString]
Optional description for the lifecycle policy.
execution_role
instance-attribute
¶
execution_role: NotRequired[RoleNameOrArn]
The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy. This is a custom role that you create.
policy_details
instance-attribute
¶
policy_details: NotRequired[LifecyclePolicyDetails]
The list of rules for the lifecycle policy. Each rule pairs an action with a filter and optional exclusion rules. A policy can contain at most one rule per action type.
resource_selection
instance-attribute
¶
resource_selection: NotRequired[LifecyclePolicyResourceSelection]
Resource selection criteria used to run the lifecycle policy.
resource_type
instance-attribute
¶
resource_type: NotRequired[LifecyclePolicyResourceType]
The type of resources the lifecycle policy targets.
status
instance-attribute
¶
status: NotRequired[LifecyclePolicyStatus]
Indicates whether the lifecycle policy resource is enabled. Only enabled policies run on their schedule. Disabling or deleting a policy removes its schedule and cancels any in-flight lifecycle execution.