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
ListPodIdentityAssociations
in paginated output. When you use this parameter,ListPodIdentityAssociations
returns onlymaxResults
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListPodIdentityAssociations
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListPodIdentityAssociations
returns up to 100 results and anextToken
value if applicable.nextToken (string) –
The
nextToken
value returned from a previous paginatedListUpdates
request wheremaxResults
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value.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:
roleArn
The timestamp that the association was created at:
createdAt
The most recent timestamp that the association was modified at:.
modifiedAt
The 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:
roleArn
The timestamp that the association was created at:
createdAt
The most recent timestamp that the association was modified at:.
modifiedAt
The 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
nextToken
value to include in a futureListPodIdentityAssociations
request. When the results of aListPodIdentityAssociations
request exceedmaxResults
, you can use this value to retrieve the next page of results. This value isnull
when 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.ServerException
EKS.Client.exceptions.ResourceNotFoundException
EKS.Client.exceptions.InvalidRequestException
EKS.Client.exceptions.InvalidParameterException