OpenSearchServiceServerless / Client / list_access_policies
list_access_policies#
- OpenSearchServiceServerless.Client.list_access_policies(**kwargs)#
Returns information about a list of OpenSearch Serverless access policies.
See also: AWS API Documentation
Request Syntax
response = client.list_access_policies( maxResults=123, nextToken='string', resource=[ 'string', ], type='data' )
- 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
ListAccessPolicies
operation returns anextToken
, you can include the returnednextToken
in subsequentListAccessPolicies
operations, which returns results in the next page.resource (list) –
Resource filters (can be collections or indexes) that policies can apply to.
(string) –
type (string) –
[REQUIRED]
The type of access policy.
- Return type:
dict
- Returns:
Response Syntax
{ 'accessPolicySummaries': [ { 'createdDate': 123, 'description': 'string', 'lastModifiedDate': 123, 'name': 'string', 'policyVersion': 'string', 'type': 'data' }, ], 'nextToken': 'string' }
Response Structure
(dict) –
accessPolicySummaries (list) –
Details about the requested access policies.
(dict) –
A summary of the data access policy.
createdDate (integer) –
The Epoch time when the access policy was created.
description (string) –
The description of the access policy.
lastModifiedDate (integer) –
The date and time when the collection was last modified.
name (string) –
The name of the access policy.
policyVersion (string) –
The version of the policy.
type (string) –
The type of access policy. Currently the only available type is
data
.
nextToken (string) –
When
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
Exceptions
OpenSearchServiceServerless.Client.exceptions.InternalServerException
OpenSearchServiceServerless.Client.exceptions.ValidationException