AWS::OpenSearchServerless::AccessPolicyCreates 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 [Data access control for Amazon OpenSearch Serverless](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html) .
import { CfnAccessPolicy } from 'aws-cdk-lib/aws-opensearchserverless';Or use the module namespace:
import * as opensearchserverless from 'aws-cdk-lib/aws-opensearchserverless';
// opensearchserverless.CfnAccessPolicyConfiguration passed to the constructor as CfnAccessPolicyProps.
nameRequiredstringThe name of the policy.
policyRequiredstringThe JSON policy document without any whitespaces.
typeRequiredstringThe type of access policy. Currently the only option is `data` .
descriptionOptionalstringThe description of the policy.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-opensearchserverlessAWS::OpenSearchServerless::AccessPolicy