Skip to content

/AWS1/CL_OSS=>LISTLIFECYCLEPOLICIES()

About ListLifecyclePolicies

Returns a list of OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.

Method Signature

IMPORTING

Required arguments:

IV_TYPE TYPE /AWS1/OSSLIFECYCLEPOLICYTYPE /AWS1/OSSLIFECYCLEPOLICYTYPE

The type of lifecycle policy.

Optional arguments:

IT_RESOURCES TYPE /AWS1/CL_OSSLCRESOURCEFILTER_W=>TT_LIFECYCLERESOURCEFILTER TT_LIFECYCLERESOURCEFILTER

Resource filters that policies can apply to. Currently, the only supported resource type is index.

IV_NEXTTOKEN TYPE /AWS1/OSSSTRING /AWS1/OSSSTRING

If your initial ListLifecyclePolicies operation returns a nextToken, you can include the returned nextToken in subsequent ListLifecyclePolicies operations, which returns results in the next page.

IV_MAXRESULTS TYPE /AWS1/OSSINTEGER /AWS1/OSSINTEGER

An optional parameter that specifies the maximum number of results to return. You can use use nextToken to get the next page of results. The default is 10.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_OSSLISTLCPOLRESPONSE /AWS1/CL_OSSLISTLCPOLRESPONSE