# AWS::OpenSearchServerless::SecurityPolicy Amazon OpenSearchServerless security policy resource ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{ "Type" : "AWS::OpenSearchServerless::SecurityPolicy", "Properties" : { "Description" : String, "Policy" : String, "Name" : String, "Type" : String } }### YAML
Type: AWS::OpenSearchServerless::SecurityPolicy Properties: Description: String Policy: String Name: String Type: String## Properties #### 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)
#### 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 network policy
_Required_: Yes
_Type_: String
_Allowed Values_: encryption
| network
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)