@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonEKSClient extends AmazonWebServiceClient implements AmazonEKS
Amazon Elastic Container Service for Kubernetes (Amazon EKS) is a managed service that makes it easy for you to run Kubernetes on AWS without needing to stand up or maintain your own Kubernetes control plane. Kubernetes is an open-source system for automating the deployment, scaling, and management of containerized applications.
Amazon EKS runs up-to-date versions of the open-source Kubernetes software, so you can use all the existing plugins and tooling from the Kubernetes community. Applications running on Amazon EKS are fully compatible with applications running on any standard Kubernetes environment, whether running in on-premises data centers or public clouds. This means that you can easily migrate any standard Kubernetes application to Amazon EKS without any code modification required.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonEKSClientBuilder |
builder() |
CreateClusterResult |
createCluster(CreateClusterRequest request)
Creates an Amazon EKS control plane.
|
DeleteClusterResult |
deleteCluster(DeleteClusterRequest request)
Deletes the Amazon EKS cluster control plane.
|
DescribeClusterResult |
describeCluster(DescribeClusterRequest request)
Returns descriptive information about an Amazon EKS cluster.
|
DescribeUpdateResult |
describeUpdate(DescribeUpdateRequest request)
Returns descriptive information about an update against your Amazon EKS cluster.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
ListClustersResult |
listClusters(ListClustersRequest request)
Lists the Amazon EKS clusters in your AWS account in the specified Region.
|
ListUpdatesResult |
listUpdates(ListUpdatesRequest request)
Lists the updates associated with an Amazon EKS cluster in your AWS account, in the specified Region.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
UpdateClusterConfigResult |
updateClusterConfig(UpdateClusterConfigRequest request)
Updates an Amazon EKS cluster configuration.
|
UpdateClusterVersionResult |
updateClusterVersion(UpdateClusterVersionRequest request)
Updates an Amazon EKS cluster to the specified Kubernetes version.
|
AmazonEKSWaiters |
waiters() |
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AmazonEKSClientBuilder builder()
public CreateClusterResult createCluster(CreateClusterRequest request)
Creates an Amazon EKS control plane.
The Amazon EKS control plane consists of control plane instances that run the Kubernetes software, such as
etcd
and the API server. The control plane runs in an account managed by AWS, and the Kubernetes API
is exposed via the Amazon EKS API server endpoint. Each Amazon EKS cluster control plane is single-tenant and
unique and runs on its own set of Amazon EC2 instances.
The cluster control plane is provisioned across multiple Availability Zones and fronted by an Elastic Load
Balancing Network Load Balancer. Amazon EKS also provisions elastic network interfaces in your VPC subnets to
provide connectivity from the control plane instances to the worker nodes (for example, to support
kubectl exec
, logs
, and proxy
data flows).
Amazon EKS worker nodes run in your AWS account and connect to your cluster's control plane via the Kubernetes API server endpoint and a certificate file that is created for your cluster.
You can use the endpointPublicAccess
and endpointPrivateAccess
parameters to enable or
disable public and private access to your cluster's Kubernetes API server endpoint. By default, public access is
enabled, and private access is disabled. For more information, see Amazon EKS Cluster Endpoint Access
Control in the Amazon EKS User Guide .
You can use the logging
parameter to enable or disable exporting the Kubernetes control plane logs
for your cluster to CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs.
For more information, see Amazon EKS Cluster Control Plane
Logs in the Amazon EKS User Guide .
CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see Amazon CloudWatch Pricing.
Cluster creation typically takes between 10 and 15 minutes. After you create an Amazon EKS cluster, you must configure your Kubernetes tooling to communicate with the API server and launch worker nodes into your cluster. For more information, see Managing Cluster Authentication and Launching Amazon EKS Worker Nodes in the Amazon EKS User Guide.
createCluster
in interface AmazonEKS
createClusterRequest
- ResourceInUseException
- The specified resource is in use.ResourceLimitExceededException
- You have encountered a service limit on the specified resource.InvalidParameterException
- The specified parameter is invalid. Review the available parameters for the API request.ClientException
- These errors are usually caused by a client action. Actions can include using an action or resource on
behalf of a user that doesn't have permissions to use the action or resource or specifying an identifier
that is not valid.ServerException
- These errors are usually caused by a server-side issue.ServiceUnavailableException
- The service is unavailable. Back off and retry the operation.UnsupportedAvailabilityZoneException
- At least one of your specified cluster subnets is in an Availability Zone that does not support Amazon
EKS. The exception output specifies the supported Availability Zones for your account, from which you can
choose subnets for your cluster.public DeleteClusterResult deleteCluster(DeleteClusterRequest request)
Deletes the Amazon EKS cluster control plane.
If you have active services in your cluster that are associated with a load balancer, you must delete those services before deleting the cluster so that the load balancers are deleted properly. Otherwise, you can have orphaned resources in your VPC that prevent you from being able to delete the VPC. For more information, see Deleting a Cluster in the Amazon EKS User Guide.
deleteCluster
in interface AmazonEKS
deleteClusterRequest
- ResourceInUseException
- The specified resource is in use.ResourceNotFoundException
- The specified resource could not be found. You can view your available clusters with ListClusters.
Amazon EKS clusters are Region-specific.ClientException
- These errors are usually caused by a client action. Actions can include using an action or resource on
behalf of a user that doesn't have permissions to use the action or resource or specifying an identifier
that is not valid.ServerException
- These errors are usually caused by a server-side issue.ServiceUnavailableException
- The service is unavailable. Back off and retry the operation.public DescribeClusterResult describeCluster(DescribeClusterRequest request)
Returns descriptive information about an Amazon EKS cluster.
The API server endpoint and certificate authority data returned by this operation are required for
kubelet
and kubectl
to communicate with your Kubernetes API server. For more
information, see Create a
kubeconfig for Amazon EKS.
The API server endpoint and certificate authority data aren't available until the cluster reaches the
ACTIVE
state.
describeCluster
in interface AmazonEKS
describeClusterRequest
- ResourceNotFoundException
- The specified resource could not be found. You can view your available clusters with ListClusters.
Amazon EKS clusters are Region-specific.ClientException
- These errors are usually caused by a client action. Actions can include using an action or resource on
behalf of a user that doesn't have permissions to use the action or resource or specifying an identifier
that is not valid.ServerException
- These errors are usually caused by a server-side issue.ServiceUnavailableException
- The service is unavailable. Back off and retry the operation.public DescribeUpdateResult describeUpdate(DescribeUpdateRequest request)
Returns descriptive information about an update against your Amazon EKS cluster.
When the status of the update is Succeeded
, the update is complete. If an update fails, the status
is Failed
, and an error detail explains the reason for the failure.
describeUpdate
in interface AmazonEKS
describeUpdateRequest
- InvalidParameterException
- The specified parameter is invalid. Review the available parameters for the API request.ClientException
- These errors are usually caused by a client action. Actions can include using an action or resource on
behalf of a user that doesn't have permissions to use the action or resource or specifying an identifier
that is not valid.ServerException
- These errors are usually caused by a server-side issue.ResourceNotFoundException
- The specified resource could not be found. You can view your available clusters with ListClusters.
Amazon EKS clusters are Region-specific.public ListClustersResult listClusters(ListClustersRequest request)
Lists the Amazon EKS clusters in your AWS account in the specified Region.
listClusters
in interface AmazonEKS
listClustersRequest
- InvalidParameterException
- The specified parameter is invalid. Review the available parameters for the API request.ClientException
- These errors are usually caused by a client action. Actions can include using an action or resource on
behalf of a user that doesn't have permissions to use the action or resource or specifying an identifier
that is not valid.ServerException
- These errors are usually caused by a server-side issue.ServiceUnavailableException
- The service is unavailable. Back off and retry the operation.public ListUpdatesResult listUpdates(ListUpdatesRequest request)
Lists the updates associated with an Amazon EKS cluster in your AWS account, in the specified Region.
listUpdates
in interface AmazonEKS
listUpdatesRequest
- InvalidParameterException
- The specified parameter is invalid. Review the available parameters for the API request.ClientException
- These errors are usually caused by a client action. Actions can include using an action or resource on
behalf of a user that doesn't have permissions to use the action or resource or specifying an identifier
that is not valid.ServerException
- These errors are usually caused by a server-side issue.ResourceNotFoundException
- The specified resource could not be found. You can view your available clusters with ListClusters.
Amazon EKS clusters are Region-specific.public UpdateClusterConfigResult updateClusterConfig(UpdateClusterConfigRequest request)
Updates an Amazon EKS cluster configuration. Your cluster continues to function during the update. The response output includes an update ID that you can use to track the status of your cluster update with the DescribeUpdate API operation.
You can use this API operation to enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more information, see Amazon EKS Cluster Control Plane Logs in the Amazon EKS User Guide .
CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see Amazon CloudWatch Pricing.
You can also use this API operation to enable or disable public and private access to your cluster's Kubernetes API server endpoint. By default, public access is enabled, and private access is disabled. For more information, see Amazon EKS Cluster Endpoint Access Control in the Amazon EKS User Guide .
At this time, you can not update the subnets or security group IDs for an existing cluster.
Cluster updates are asynchronous, and they should finish within a few minutes. During an update, the cluster
status moves to UPDATING
(this status transition is eventually consistent). When the update is
complete (either Failed
or Successful
), the cluster status moves to Active
.
updateClusterConfig
in interface AmazonEKS
updateClusterConfigRequest
- InvalidParameterException
- The specified parameter is invalid. Review the available parameters for the API request.ClientException
- These errors are usually caused by a client action. Actions can include using an action or resource on
behalf of a user that doesn't have permissions to use the action or resource or specifying an identifier
that is not valid.ServerException
- These errors are usually caused by a server-side issue.ResourceInUseException
- The specified resource is in use.ResourceNotFoundException
- The specified resource could not be found. You can view your available clusters with ListClusters.
Amazon EKS clusters are Region-specific.InvalidRequestException
- The request is invalid given the state of the cluster. Check the state of the cluster and the associated
operations.public UpdateClusterVersionResult updateClusterVersion(UpdateClusterVersionRequest request)
Updates an Amazon EKS cluster to the specified Kubernetes version. Your cluster continues to function during the update. The response output includes an update ID that you can use to track the status of your cluster update with the DescribeUpdate API operation.
Cluster updates are asynchronous, and they should finish within a few minutes. During an update, the cluster
status moves to UPDATING
(this status transition is eventually consistent). When the update is
complete (either Failed
or Successful
), the cluster status moves to Active
.
updateClusterVersion
in interface AmazonEKS
updateClusterVersionRequest
- InvalidParameterException
- The specified parameter is invalid. Review the available parameters for the API request.ClientException
- These errors are usually caused by a client action. Actions can include using an action or resource on
behalf of a user that doesn't have permissions to use the action or resource or specifying an identifier
that is not valid.ServerException
- These errors are usually caused by a server-side issue.ResourceInUseException
- The specified resource is in use.ResourceNotFoundException
- The specified resource could not be found. You can view your available clusters with ListClusters.
Amazon EKS clusters are Region-specific.InvalidRequestException
- The request is invalid given the state of the cluster. Check the state of the cluster and the associated
operations.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AmazonEKS
request
- The originally executed requestpublic AmazonEKSWaiters waiters()
public void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonEKS
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.