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 only- maxResultsresults in a single page along with a- nextTokenresponse element. You can see the remaining results of the initial request by sending another- ListPodIdentityAssociationsrequest with the returned- nextTokenvalue. This value can be between 1 and 100. If you don’t use this parameter,- ListPodIdentityAssociationsreturns up to 100 results and a- nextTokenvalue if applicable.
- nextToken (string) – - The - nextTokenvalue returned from a previous paginated- ListUpdatesrequest where- maxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the- nextTokenvalue.- 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 association is owned by an Amazon EKS add-on. 
 
 
- nextToken (string) – - The - nextTokenvalue to include in a future- ListPodIdentityAssociationsrequest. When the results of a- ListPodIdentityAssociationsrequest exceed- maxResults, you can use this value to retrieve the next page of results. This value is- nullwhen 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