Skip to content

Returns one or more configured OpenSearch Serverless lifecycle policies

Description

Returns one or more configured OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.

Usage

opensearchserviceserverless_batch_get_lifecycle_policy(identifiers)

Arguments

  • identifiers

[required] The unique identifiers of policy types and policy names.

Value

A list with the following syntax:

list(
  lifecyclePolicyDetails = list(
    list(
      type = "retention",
      name = "string",
      policyVersion = "string",
      description = "string",
      policy = list(),
      createdDate = 123,
      lastModifiedDate = 123
    )
  ),
  lifecyclePolicyErrorDetails = list(
    list(
      type = "retention",
      name = "string",
      errorMessage = "string",
      errorCode = "string"
    )
  )
)

Request syntax

svc$batch_get_lifecycle_policy(
  identifiers = list(
    list(
      type = "retention",
      name = "string"
    )
  )
)