OpenSearchServiceServerless / Client / get_security_policy
get_security_policy¶
- OpenSearchServiceServerless.Client.get_security_policy(**kwargs)¶
- Returns information about a configured OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless. - See also: AWS API Documentation - Request Syntax- response = client.get_security_policy( type='encryption'|'network', name='string' ) - Parameters:
- type (string) – - [REQUIRED] - The type of security policy. 
- name (string) – - [REQUIRED] - The name of the security policy. 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'securityPolicyDetail': { 'type': 'encryption'|'network', 'name': 'string', 'policyVersion': 'string', 'description': 'string', 'policy': {...}|[...]|123|123.4|'string'|True|None, 'createdDate': 123, 'lastModifiedDate': 123 } } - Response Structure- (dict) – - securityPolicyDetail (dict) – - Details about the requested security policy. - type (string) – - The type of security policy. 
- name (string) – - The name of the policy. 
- policyVersion (string) – - The version of the policy. 
- description (string) – - The description of the security policy. 
- policy (document) – - The JSON policy document without any whitespaces. 
- createdDate (integer) – - The date the policy was created. 
- lastModifiedDate (integer) – - The timestamp of when the policy was last modified. 
 
 
 
 - Exceptions