EKS / Client / list_pod_identity_associations
list_pod_identity_associations#
- EKS.Client.list_pod_identity_associations(**kwargs)#
List the EKS Pod Identity associations in a cluster. You can filter the list by the namespace that the association is in or the service account that the association uses.
See also: AWS API Documentation
Request Syntax
response = client.list_pod_identity_associations( clusterName='string', namespace='string', serviceAccount='string', maxResults=123, nextToken='string' )
- Parameters:
clusterName (string) –
[REQUIRED]
The name of the cluster that the associations are in.
namespace (string) – The name of the Kubernetes namespace inside the cluster that the associations are in.
serviceAccount (string) – The name of the Kubernetes service account that the associations use.
maxResults (integer) – The maximum number of EKS Pod Identity association results returned by
ListPodIdentityAssociationsin paginated output. When you use this parameter,ListPodIdentityAssociationsreturns onlymaxResultsresults in a single page along with anextTokenresponse element. You can see the remaining results of the initial request by sending anotherListPodIdentityAssociationsrequest with the returnednextTokenvalue. This value can be between 1 and 100. If you don’t use this parameter,ListPodIdentityAssociationsreturns up to 100 results and anextTokenvalue if applicable.nextToken (string) –
The
nextTokenvalue returned from a previous paginatedListUpdatesrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue.Note
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.
- Return type:
dict
- Returns:
Response Syntax
{ 'associations': [ { 'clusterName': 'string', 'namespace': 'string', 'serviceAccount': 'string', 'associationArn': 'string', 'associationId': 'string', 'ownerArn': 'string' }, ], 'nextToken': 'string' }
Response Structure
(dict) –
associations (list) –
The list of summarized descriptions of the associations that are in the cluster and match any filters that you provided.
Each summary is simplified by removing these fields compared to the full ``PodIdentityAssociation ``:
The IAM role:
roleArnThe timestamp that the association was created at:
createdAtThe most recent timestamp that the association was modified at:.
modifiedAtThe tags on the association:
tags
(dict) –
The summarized description of the association.
Each summary is simplified by removing these fields compared to the full ``PodIdentityAssociation ``:
The IAM role:
roleArnThe timestamp that the association was created at:
createdAtThe most recent timestamp that the association was modified at:.
modifiedAtThe tags on the association:
tags
clusterName (string) –
The name of the cluster that the association is in.
namespace (string) –
The name of the Kubernetes namespace inside the cluster to create the association in. The service account and the pods that use the service account must be in this namespace.
serviceAccount (string) –
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
associationArn (string) –
The Amazon Resource Name (ARN) of the association.
associationId (string) –
The ID of the association.
ownerArn (string) –
If defined, the Pod Identity Association is owned by an Amazon EKS Addon.
nextToken (string) –
The
nextTokenvalue to include in a futureListPodIdentityAssociationsrequest. When the results of aListPodIdentityAssociationsrequest exceedmaxResults, you can use this value to retrieve the next page of results. This value isnullwhen there are no more results to return.Note
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.
Exceptions
EKS.Client.exceptions.ServerExceptionEKS.Client.exceptions.ResourceNotFoundExceptionEKS.Client.exceptions.InvalidRequestExceptionEKS.Client.exceptions.InvalidParameterException