Amazon OpenSearchServerless security policy resource
# Encryption SecurityPolicy
resource "awscc_opensearchserverless_security_policy" "security_policy" {
name = "awscc-security-policy"
description = "created via awscc"
type = "encryption"
policy = jsonencode({
"Rules" = [
{
"ResourceType" = "collection",
"Resource" = [
"collection/awscc-collection"
]
}
],
"AWSOwnedKey" = true
})
}
name
(String) The name of the policypolicy
(String) The JSON policy document that is the content for the policytype
(String) The possible types for the network policydescription
(String) The description of the policyid
(String) Uniquely identifies the resource.Import is supported using the following syntax:
$ terraform import awscc_opensearchserverless_security_policy.example <resource ID>