Use this data source to get information about an AWS OpenSearch Serverless Security Policy.
data "aws_opensearchserverless_security_policy" "example" {
name = "example-security-policy"
type = "encryption"
}
This data source supports the following arguments:
name
- (Required) Name of the policytype
- (Required) Type of security policy. One of encryption
or network
.This data source exports the following attributes in addition to the arguments above:
created_date
- The date the security policy was created.description
- Description of the security policy.last_modified_date
- The date the security policy was last modified.policy
- The JSON policy document without any whitespaces.policy_version
- Version of the policy.