Skip to content

Retrieves a list of lifecycle policies in your Amazon Web Services account

Description

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

Usage

imagebuilder_list_lifecycle_policies(filters, maxResults, nextToken)

Arguments

  • filters

    Use the following filters to streamline results: name, resourceType, and status. Filter names are matched exactly as shown.

  • maxResults

    The maximum number of items to return in a single request.

  • nextToken

    A token to specify where to start paginating. Use the nextToken value from a previously truncated response.

Value

A list with the following syntax:

list(
  lifecyclePolicySummaryList = list(
    list(
      arn = "string",
      name = "string",
      description = "string",
      status = "DISABLED"|"ENABLED",
      executionRole = "string",
      resourceType = "AMI_IMAGE"|"CONTAINER_IMAGE",
      dateCreated = as.POSIXct(
        "2015-01-01"
      ),
      dateUpdated = as.POSIXct(
        "2015-01-01"
      ),
      dateLastRun = as.POSIXct(
        "2015-01-01"
      ),
      tags = list(
        "string"
      )
    )
  ),
  nextToken = "string"
)

Request syntax

svc$list_lifecycle_policies(
  filters = list(
    list(
      name = "string",
      values = list(
        "string"
      )
    )
  ),
  maxResults = 123,
  nextToken = "string"
)