:doc:`OpenSearchServiceServerless <../../opensearchserverless>` / Client / list_security_policies

**********************
list_security_policies
**********************



.. py:method:: OpenSearchServiceServerless.Client.list_security_policies(**kwargs)

  

  Returns information about configured OpenSearch Serverless security policies.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/ListSecurityPolicies>`_  


  **Request Syntax**
  ::

    response = client.list_security_policies(
        type='encryption'|'network',
        resource=[
            'string',
        ],
        nextToken='string',
        maxResults=123
    )
    
  :type type: string
  :param type: **[REQUIRED]** 

    The type of policy.

    

  
  :type resource: list
  :param resource: 

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

    

  
    - *(string) --* 

    

  :type nextToken: string
  :param nextToken: 

    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.

    

  
  :type maxResults: integer
  :param maxResults: 

    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.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

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

    

    - *(dict) --* 
      

      - **securityPolicySummaries** *(list) --* 

        Details about the security policies in your account.

        
        

        - *(dict) --* 

          A summary of a security policy for OpenSearch Serverless.

          
          

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

            
          

          - **createdDate** *(integer) --* 

            The date the policy was created.

            
          

          - **lastModifiedDate** *(integer) --* 

            The timestamp of when the policy was last modified.

            
      
    
      

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

        
  
  **Exceptions**
  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.InternalServerException`

  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.ValidationException`

  