Skip to content

aws.imagebuilder.list_lifecycle_policies

Example SQL Queries

SELECT * FROM
aws.imagebuilder.list_lifecycle_policies;

Description

Get a list of lifecycle policies in your Amazon Web Services account.

Table Definition

Column NameColumn Data Type
filters Input Column

Streamline results based on one of the following values: Name, Status.

STRUCT(
"name" VARCHAR,
"values" VARCHAR[]
)[]
Show child fields
filters[]
Show child fields
filters[].name

The name of the filter. Filter names are case-sensitive.

filters[].values[]
max_results Input Column

The maximum items to return in a request.

BIGINT
next_token Input Column

The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

lifecycle_policy_summary_list

A list of lifecycle policies in your Amazon Web Services account that meet the criteria specified in the request.

STRUCT(
"arn" VARCHAR,
"name" VARCHAR,
"description" VARCHAR,
"status" VARCHAR,
"execution_role" VARCHAR,
"resource_type" VARCHAR,
"date_created" TIMESTAMP_S,
"date_updated" TIMESTAMP_S,
"date_last_run" TIMESTAMP_S,
"tags" MAP(VARCHAR, VARCHAR)
)[]
Show child fields
lifecycle_policy_summary_list[]
Show child fields
lifecycle_policy_summary_list[].arn

The Amazon Resource Name (ARN) of the lifecycle policy summary resource.

lifecycle_policy_summary_list[].date_created

The timestamp when Image Builder created the lifecycle policy resource.

lifecycle_policy_summary_list[].date_last_run

The timestamp for the last time Image Builder ran the lifecycle policy.

lifecycle_policy_summary_list[].date_updated

The timestamp when Image Builder updated the lifecycle policy resource.

lifecycle_policy_summary_list[].description

Optional description for the lifecycle policy.

lifecycle_policy_summary_list[].execution_role

The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy.

lifecycle_policy_summary_list[].name

The name of the lifecycle policy.

lifecycle_policy_summary_list[].resource_type

The type of resources the lifecycle policy targets.

lifecycle_policy_summary_list[].status

The lifecycle policy resource status.

lifecycle_policy_summary_list[].tags

To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags. Each tag consists of a key and an optional value, both of which you define.