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(
maxResults=123,
nextToken='string',
resource=[
'string',
],
type='encryption'|'network'
)
nextToken
to get the next page of results. The default is 20.ListSecurityPolicies
operation returns a nextToken
, you can include the returned nextToken
in subsequent ListSecurityPolicies
operations, which returns results in the next page.Resource filters (can be collection or indexes) that policies can apply to.
[REQUIRED]
The type of policy.
dict
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