v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1446252177.2 KB

Creates a data access policy for OpenSearch Serverless. Access policies limit access to collections and the resources within them, and allow a user to access that data irrespective of the access mechanism or network source. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html">Data access control for Amazon OpenSearch Serverless</a>.

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

Headers

X-Amz-Target'OpenSearchServerless.CreateAccessPolicy' required

Request body

type'data' required

The type of policy.

namestring required

The name of the policy.

descriptionstring

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

policystring required

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

clientTokenstring

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

Response

Success