There are more AWS SDK examples available in the AWS Doc SDK Examples
Use ListUpdates with a CLI
The following code examples show how to use ListUpdates.
- CLI
-
- AWS CLI
-
To list the updates for a cluster
This example command lists the current updates for a cluster named
examplein your default region.Command:
aws eks list-updates --nameexampleOutput:
{ "updateIds": [ "10bddb13-a71b-425a-b0a6-71cd03e59161" ] }-
For API details, see ListUpdates
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell V4
-
Example 1: This cmdlet lists the updates associated with an Amazon EKS cluster or managed node group in your AWS account, in the specified Region.
Get-EKSUpdateList -Name "PROD"Output:
ee708232-7d2e-4ed7-9270-d0b5176f0726-
For API details, see ListUpdates in AWS Tools for PowerShell Cmdlet Reference (V4).
-
- Tools for PowerShell V5
-
Example 1: This cmdlet lists the updates associated with an Amazon EKS cluster or managed node group in your AWS account, in the specified Region.
Get-EKSUpdateList -Name "PROD"Output:
ee708232-7d2e-4ed7-9270-d0b5176f0726-
For API details, see ListUpdates in AWS Tools for PowerShell Cmdlet Reference (V5).
-