list_associated_access_policies
async
¶
list_associated_access_policies(
cluster_name: String,
principal_arn: String,
*,
config_overrides: Optional[AsyncEKSClientConfig] = None,
max_results: Optional[ListAssociatedAccessPoliciesRequestMaxResults] = None,
next_token: Optional[String] = None,
) -> ListAssociatedAccessPoliciesResponse
Lists the access policies associated with an access entry.
Parameters:
-
cluster_name(String) –The name of your cluster.
-
principal_arn(String) –The ARN of the IAM principal for the
AccessEntry. -
max_results(Optional[ListAssociatedAccessPoliciesRequestMaxResults], default:None) –The maximum number of results, returned in paginated output. You receive
maxResultsin a single page, along with anextTokenresponse element. You can see the remaining results of the initial request by sending another request with the returnednextTokenvalue. This value can be between 1 and 100. If you don't use this parameter, 100 results and anextTokenvalue, if applicable, are returned. -
next_token(Optional[String], default:None) –The
nextTokenvalue returned from a previous paginated request, wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value is null when there are no more results to return.This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes.
Raises:
-
InvalidRequestException–The request is invalid given the state of the cluster. Check the state of the cluster and the associated operations.
-
ResourceNotFoundException–The specified resource could not be found. You can view your available clusters with
ListClusters. You can view your available managed node groups withListNodegroups. Amazon EKS clusters and node groups are Amazon Web Services Region specific. -
ServerException–These errors are usually caused by a server-side issue.
-
UnknownServiceError–The service returned an error code this client does not model.