v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1446252177.2 KB

Updates an OpenSearch Serverless security policy. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-network.html">Network access for Amazon OpenSearch Serverless</a> and <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-encryption.html">Encryption at rest for Amazon OpenSearch Serverless</a>.

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

Headers

X-Amz-Target'OpenSearchServerless.UpdateSecurityPolicy' required

Request body

type'encryption' | 'network' required

The type of access policy.

namestring required

The name of the policy.

policyVersionstring required

The version of the policy being updated.

descriptionstring

A description of the policy. Typically used to store information about the permissions defined in the policy.

policystring

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

clientTokenstring

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

Response

Success