Skip to content

LifecyclePolicyDetailAction

Source code in docs_src/capo_imagebuilder/types/lifecycle_policy_detail_action.py
class LifecyclePolicyDetailAction(TypedDict, closed=True):
    type: "capo_imagebuilder.types.lifecycle_policy_detail_action_type.LifecyclePolicyDetailActionType"
    """<p>Specifies the lifecycle action to take. <code>DELETE</code> deletes the image resource and, with <code>includeResources</code>, also removes distributed AMIs, snapshots, or container images. <code>DEPRECATE</code> and <code>DISABLE</code> set the corresponding status on the image resource and, if <code>includeResources.amis</code> is set, on its distributed AMIs.</p>"""
    include_resources: NotRequired[
        "capo_imagebuilder.types.lifecycle_policy_detail_action_include_resources.LifecyclePolicyDetailActionIncludeResources"
    ]
    """<p>Specifies which underlying resources the action extends to beyond the Image Builder image resource itself: distributed AMIs, their snapshots, or distributed container images. <code>DELETE</code> rules can include all three, <code>DEPRECATE</code> and <code>DISABLE</code> rules can include AMIs only, and you can only include snapshots together with AMIs.</p>"""

include_resources instance-attribute

include_resources: NotRequired[LifecyclePolicyDetailActionIncludeResources]

Specifies which underlying resources the action extends to beyond the Image Builder image resource itself: distributed AMIs, their snapshots, or distributed container images. DELETE rules can include all three, DEPRECATE and DISABLE rules can include AMIs only, and you can only include snapshots together with AMIs.

type instance-attribute

Specifies the lifecycle action to take. DELETE deletes the image resource and, with includeResources, also removes distributed AMIs, snapshots, or container images. DEPRECATE and DISABLE set the corresponding status on the image resource and, if includeResources.amis is set, on its distributed AMIs.