Skip to main content

lifecycle_policy

Gets an individual lifecycle_policy resource

Overview

Namelifecycle_policy
TypeResource
Descriptionlifecycle_policy
Idawscc.imagebuilder.lifecycle_policy

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the lifecycle policy.
namestringThe name of the lifecycle policy.
descriptionstringThe description of the lifecycle policy.
statusstringThe status of the lifecycle policy.
execution_rolestringThe execution role of the lifecycle policy.
resource_typestringThe resource type of the lifecycle policy.
policy_detailsarrayThe policy details of the lifecycle policy.
resource_selectionobjectThe resource selection of the lifecycle policy.
tagsobjectThe tags associated with the lifecycle policy.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
arn,
name,
description,
status,
execution_role,
resource_type,
policy_details,
resource_selection,
tags
FROM awscc.imagebuilder.lifecycle_policy
WHERE data__Identifier = '<Arn>';

Permissions

To operate on the lifecycle_policy resource, the following permissions are required:

Update

iam:PassRole,
imagebuilder:GetLifecyclePolicy,
imagebuilder:UpdateLifecyclePolicy

Read

imagebuilder:GetLifecyclePolicy

Delete

imagebuilder:GetLifecyclePolicy,
imagebuilder:DeleteLifecyclePolicy,
imagebuilder:UnTagResource