v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1446252177.2 KB

Updates an OpenSearch Serverless access policy. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-lifecycle.html#serverless-lifecycle-update">Updating data lifecycle policies</a>.

post/#X-Amz-Target=OpenSearchServerless.UpdateLifecyclePolicy

Headers

X-Amz-Target'OpenSearchServerless.UpdateLifecyclePolicy' required

Request body

type'retention' required

The type of lifecycle policy.

namestring required

The name of the policy.

policyVersionstring required

The version of the policy being updated.

descriptionstring

A description of the lifecycle policy.

policystring

The JSON policy document to use as the content for the lifecycle policy.

clientTokenstring

A unique, case-sensitive identifier to ensure idempotency of the request.

Response

Success