list_security_policies

list_security_policies(**kwargs)

Returns information about configured OpenSearch Serverless security policies.

See also: AWS API Documentation

Request Syntax

response = client.list_security_policies(
    maxResults=123,
    nextToken='string',
    resource=[
        'string',
    ],
    type='encryption'|'network'
)
Parameters
  • maxResults (integer) -- An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 20.
  • nextToken (string) -- If your initial ListSecurityPolicies operation returns a nextToken , you can include the returned nextToken in subsequent ListSecurityPolicies operations, which returns results in the next page.
  • resource (list) --

    Resource filters (can be collection or indexes) that policies can apply to.

    • (string) --
  • type (string) --

    [REQUIRED]

    The type of policy.

Return type

dict

Returns

Response Syntax

{
    'nextToken': 'string',
    'securityPolicySummaries': [
        {
            'createdDate': 123,
            'description': 'string',
            'lastModifiedDate': 123,
            'name': 'string',
            'policyVersion': 'string',
            'type': 'encryption'|'network'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

    • securityPolicySummaries (list) --

      Details about the security policies in your account.

      • (dict) --

        A summary of a security policy for OpenSearch Serverless.

        • 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.

        • policyVersion (string) --

          The version of the policy.

        • type (string) --

          The type of security policy.

Exceptions

  • OpenSearchServiceServerless.Client.exceptions.InternalServerException
  • OpenSearchServiceServerless.Client.exceptions.ValidationException