OpenSearchServiceServerless / Client / list_security_policies
list_security_policies¶
- OpenSearchServiceServerless.Client.list_security_policies(**kwargs)¶
- Returns information about configured OpenSearch Serverless security policies. - See also: AWS API Documentation - Request Syntax- response = client.list_security_policies( type='encryption'|'network', resource=[ 'string', ], nextToken='string', maxResults=123 ) - Parameters:
- type (string) – - [REQUIRED] - The type of policy. 
- resource (list) – - Resource filters (can be collection or indexes) that policies can apply to. - (string) – 
 
- nextToken (string) – If your initial - ListSecurityPoliciesoperation returns a- nextToken, you can include the returned- nextTokenin subsequent- ListSecurityPoliciesoperations, which returns results in the next page.
- maxResults (integer) – An optional parameter that specifies the maximum number of results to return. You can use - nextTokento get the next page of results. The default is 20.
 
- Return type:
- 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 - nextTokenis returned, there are more results available. The value of- nextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
 
 
 - Exceptions