lifecycle_policy
Gets an individual lifecycle_policy
resource
Overview
Name | lifecycle_policy |
Type | Resource |
Description | lifecycle_policy |
Id | awscc.imagebuilder.lifecycle_policy |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | The Amazon Resource Name (ARN) of the lifecycle policy. |
name | string | The name of the lifecycle policy. |
description | string | The description of the lifecycle policy. |
status | string | The status of the lifecycle policy. |
execution_role | string | The execution role of the lifecycle policy. |
resource_type | string | The resource type of the lifecycle policy. |
policy_details | array | The policy details of the lifecycle policy. |
resource_selection | object | The resource selection of the lifecycle policy. |
tags | object | The tags associated with the lifecycle policy. |
region | string | AWS 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