# AWS::OpenSearchServerless::AccessPolicy Amazon OpenSearchServerless access policy resource ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
"Type" : "AWS::OpenSearchServerless::AccessPolicy",
"Properties" : {
"Name" : String,
"Type" : String,
"Description" : String,
"Policy" : String
}
}
### YAML
Type: AWS::OpenSearchServerless::AccessPolicy
Properties:
Name: String
Type: String
Description: String
Policy: String
## Properties
#### Name
The name of the policy
_Required_: Yes
_Type_: String
_Minimum_: 3
_Maximum_: 32
_Pattern_: ^[a-z][a-z0-9-]{2,31}$
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### Type
The possible types for the access policy
_Required_: Yes
_Type_: String
_Allowed Values_: data
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### Description
The description of the policy
_Required_: No
_Type_: String
_Minimum_: 1
_Maximum_: 1000
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### Policy
The JSON policy document that is the content for the policy
_Required_: Yes
_Type_: String
_Minimum_: 1
_Maximum_: 20480
_Pattern_: [\u0009\u000A\u000D\u0020-\u007E\u00A1-\u00FF]+
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)