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(
    name='string',
    type='encryption'|'network'
)
Parameters:
  • name (string) –

    [REQUIRED]

    The name of the security policy.

  • type (string) –

    [REQUIRED]

    The type of security policy.

Return type:

dict

Returns:

Response Syntax

{
    'securityPolicyDetail': {
        'createdDate': 123,
        'description': 'string',
        'lastModifiedDate': 123,
        'name': 'string',
        'policy': {...}|[...]|123|123.4|'string'|True|None,
        'policyVersion': 'string',
        'type': 'encryption'|'network'
    }
}

Response Structure

  • (dict) –

    • securityPolicyDetail (dict) –

      Details about the requested security policy.

      • createdDate (integer) –

        The date the policy was created.

      • description (string) –

        The description of the security policy.

      • lastModifiedDate (integer) –

        The timestamp of when the policy was last modified.

      • name (string) –

        The name of the policy.

      • policy (document) –

        The JSON policy document without any whitespaces.

      • policyVersion (string) –

        The version of the policy.

      • type (string) –

        The type of security policy.

Exceptions