Struct aws_sdk_eks::client::Client
source · [−]pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Client for Amazon Elastic Kubernetes Service
Client for invoking operations on Amazon Elastic Kubernetes Service. Each operation on Amazon Elastic Kubernetes Service is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_eks::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_eks::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_eks::Client::from_conf(config);
Implementations
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
Constructs a fluent builder for the AssociateEncryptionConfig
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the cluster that you are associating with encryption configuration.
encryption_config(Vec<EncryptionConfig>)
/set_encryption_config(Option<Vec<EncryptionConfig>>)
:The configuration you are using for encryption.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:The client request token you are using with the encryption configuration.
- On success, responds with
AssociateEncryptionConfigOutput
with field(s):update(Option<Update>)
:An object representing an asynchronous update.
- On failure, responds with
SdkError<AssociateEncryptionConfigError>
Constructs a fluent builder for the AssociateIdentityProviderConfig
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the cluster to associate the configuration to.
oidc(OidcIdentityProviderConfigRequest)
/set_oidc(Option<OidcIdentityProviderConfigRequest>)
:An object that represents an OpenID Connect (OIDC) identity provider configuration.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The metadata to apply to the configuration to assist with categorization and organization. Each tag consists of a key and an optional value. You define both.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- On success, responds with
AssociateIdentityProviderConfigOutput
with field(s):update(Option<Update>)
:An object representing an asynchronous update.
tags(Option<HashMap<String, String>>)
:The tags for the resource.
- On failure, responds with
SdkError<AssociateIdentityProviderConfigError>
Constructs a fluent builder for the CreateAddon
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the cluster to create the add-on for.
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:The name of the add-on. The name must match one of the names returned by
DescribeAddonVersions
.addon_version(impl Into<String>)
/set_addon_version(Option<String>)
:The version of the add-on. The version must match one of the versions returned by
DescribeAddonVersions
.service_account_role_arn(impl Into<String>)
/set_service_account_role_arn(Option<String>)
:The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on’s service account. The role must be assigned the IAM permissions required by the add-on. If you don’t specify an existing IAM role, then the add-on uses the permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide.
To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. For more information, see Enabling IAM roles for service accounts on your cluster in the Amazon EKS User Guide.
resolve_conflicts(ResolveConflicts)
/set_resolve_conflicts(Option<ResolveConflicts>)
:How to resolve parameter value conflicts when migrating an existing add-on to an Amazon EKS add-on.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The metadata to apply to the cluster to assist with categorization and organization. Each tag consists of a key and an optional value. You define both.
- On success, responds with
CreateAddonOutput
with field(s):addon(Option<Addon>)
:An Amazon EKS add-on. For more information, see Amazon EKS add-ons in the Amazon EKS User Guide.
- On failure, responds with
SdkError<CreateAddonError>
Constructs a fluent builder for the CreateCluster
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The unique name to give to your cluster.
version(impl Into<String>)
/set_version(Option<String>)
:The desired Kubernetes version for your cluster. If you don’t specify a value here, the latest version available in Amazon EKS is used.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to Amazon Web Services API operations on your behalf. For more information, see Amazon EKS Service IAM Role in the Amazon EKS User Guide .
resources_vpc_config(VpcConfigRequest)
/set_resources_vpc_config(Option<VpcConfigRequest>)
:The VPC configuration that’s used by the cluster control plane. Amazon EKS VPC resources have specific requirements to work properly with Kubernetes. For more information, see Cluster VPC Considerations and Cluster Security Group Considerations in the Amazon EKS User Guide. You must specify at least two subnets. You can specify up to five security groups. However, we recommend that you use a dedicated security group for your cluster control plane.
kubernetes_network_config(KubernetesNetworkConfigRequest)
/set_kubernetes_network_config(Option<KubernetesNetworkConfigRequest>)
:The Kubernetes network configuration for the cluster.
logging(Logging)
/set_logging(Option<Logging>)
: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 CloudWatch Pricing.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The metadata to apply to the cluster to assist with categorization and organization. Each tag consists of a key and an optional value. You define both.
encryption_config(Vec<EncryptionConfig>)
/set_encryption_config(Option<Vec<EncryptionConfig>>)
:The encryption configuration for the cluster.
- On success, responds with
CreateClusterOutput
with field(s):cluster(Option<Cluster>)
:The full description of your new cluster.
- On failure, responds with
SdkError<CreateClusterError>
Constructs a fluent builder for the CreateFargateProfile
operation.
- The fluent builder is configurable:
fargate_profile_name(impl Into<String>)
/set_fargate_profile_name(Option<String>)
:The name of the Fargate profile.
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the Amazon EKS cluster to apply the Fargate profile to.
pod_execution_role_arn(impl Into<String>)
/set_pod_execution_role_arn(Option<String>)
:The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate profile. The pod execution role allows Fargate infrastructure to register with your cluster as a node, and it provides read access to Amazon ECR image repositories. For more information, see Pod Execution Role in the Amazon EKS User Guide.
subnets(Vec<String>)
/set_subnets(Option<Vec<String>>)
:The IDs of subnets to launch your pods into. At this time, pods running on Fargate are not assigned public IP addresses, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.
selectors(Vec<FargateProfileSelector>)
/set_selectors(Option<Vec<FargateProfileSelector>>)
:The selectors to match for pods to use this Fargate profile. Each selector must have an associated namespace. Optionally, you can also specify labels for a namespace. You may specify up to five selectors in a Fargate profile.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The metadata to apply to the Fargate profile to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Fargate profile tags do not propagate to any other resources associated with the Fargate profile, such as the pods that are scheduled with it.
- On success, responds with
CreateFargateProfileOutput
with field(s):fargate_profile(Option<FargateProfile>)
:The full description of your new Fargate profile.
- On failure, responds with
SdkError<CreateFargateProfileError>
Constructs a fluent builder for the CreateNodegroup
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the cluster to create the node group in.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:The unique name to give your node group.
scaling_config(NodegroupScalingConfig)
/set_scaling_config(Option<NodegroupScalingConfig>)
:The scaling configuration details for the Auto Scaling group that is created for your node group.
disk_size(i32)
/set_disk_size(Option<i32>)
:The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB. If you specify
launchTemplate
, then don’t specifydiskSize
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.subnets(Vec<String>)
/set_subnets(Option<Vec<String>>)
:The subnets to use for the Auto Scaling group that is created for your node group. If you specify
launchTemplate
, then don’t specifySubnetId
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.instance_types(Vec<String>)
/set_instance_types(Option<Vec<String>>)
:Specify the instance types for a node group. If you specify a GPU instance type, be sure to specify
AL2_x86_64_GPU
with theamiType
parameter. If you specifylaunchTemplate
, then you can specify zero or one instance type in your launch template or you can specify 0-20 instance types forinstanceTypes
. If however, you specify an instance type in your launch template and specify anyinstanceTypes
, the node group deployment will fail. If you don’t specify an instance type in a launch template or forinstanceTypes
, thent3.medium
is used, by default. If you specifySpot
forcapacityType
, then we recommend specifying multiple values forinstanceTypes
. For more information, see Managed node group capacity types and Launch template support in the Amazon EKS User Guide.ami_type(AmiTypes)
/set_ami_type(Option<AmiTypes>)
:The AMI type for your node group. GPU instance types should use the
AL2_x86_64_GPU
AMI type. Non-GPU instances should use theAL2_x86_64
AMI type. Arm instances should use theAL2_ARM_64
AMI type. All types use the Amazon EKS optimized Amazon Linux 2 AMI. If you specifylaunchTemplate
, and your launch template uses a custom AMI, then don’t specifyamiType
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.remote_access(RemoteAccessConfig)
/set_remote_access(Option<RemoteAccessConfig>)
:The remote access (SSH) configuration to use with your node group. If you specify
launchTemplate
, then don’t specifyremoteAccess
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.node_role(impl Into<String>)
/set_node_role(Option<String>)
:The Amazon Resource Name (ARN) of the IAM role to associate with your node group. The Amazon EKS worker node
kubelet
daemon makes calls to Amazon Web Services APIs on your behalf. Nodes receive permissions for these API calls through an IAM instance profile and associated policies. Before you can launch nodes and register them into a cluster, you must create an IAM role for those nodes to use when they are launched. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide . If you specifylaunchTemplate
, then don’t specifyIamInstanceProfile
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.labels(HashMap<String, String>)
/set_labels(Option<HashMap<String, String>>)
:The Kubernetes labels to be applied to the nodes in the node group when they are created.
taints(Vec<Taint>)
/set_taints(Option<Vec<Taint>>)
:The Kubernetes taints to be applied to the nodes in the node group.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The metadata to apply to the node group to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Node group tags do not propagate to any other resources associated with the node group, such as the Amazon EC2 instances or subnets.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
launch_template(LaunchTemplateSpecification)
/set_launch_template(Option<LaunchTemplateSpecification>)
:An object representing a node group’s launch template specification. If specified, then do not specify
instanceTypes
,diskSize
, orremoteAccess
and make sure that the launch template meets the requirements inlaunchTemplateSpecification
.update_config(NodegroupUpdateConfig)
/set_update_config(Option<NodegroupUpdateConfig>)
:The node group update configuration.
capacity_type(CapacityTypes)
/set_capacity_type(Option<CapacityTypes>)
:The capacity type for your node group.
version(impl Into<String>)
/set_version(Option<String>)
:The Kubernetes version to use for your managed nodes. By default, the Kubernetes version of the cluster is used, and this is the only accepted specified value. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don’t specifyversion
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.release_version(impl Into<String>)
/set_release_version(Option<String>)
:The AMI version of the Amazon EKS optimized AMI to use with your node group. By default, the latest available AMI version for the node group’s current Kubernetes version is used. For more information, see Amazon EKS optimized Amazon Linux 2 AMI versions in the Amazon EKS User Guide. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don’t specifyreleaseVersion
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
- On success, responds with
CreateNodegroupOutput
with field(s):nodegroup(Option<Nodegroup>)
:The full description of your new node group.
- On failure, responds with
SdkError<CreateNodegroupError>
Constructs a fluent builder for the DeleteAddon
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the cluster to delete the add-on from.
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:The name of the add-on. The name must match one of the names returned by
ListAddons
.preserve(bool)
/set_preserve(bool)
:Specifying this option preserves the add-on software on your cluster but Amazon EKS stops managing any settings for the add-on. If an IAM account is associated with the add-on, it is not removed.
- On success, responds with
DeleteAddonOutput
with field(s):addon(Option<Addon>)
:An Amazon EKS add-on. For more information, see Amazon EKS add-ons in the Amazon EKS User Guide.
- On failure, responds with
SdkError<DeleteAddonError>
Constructs a fluent builder for the DeleteCluster
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the cluster to delete.
- On success, responds with
DeleteClusterOutput
with field(s):cluster(Option<Cluster>)
:The full description of the cluster to delete.
- On failure, responds with
SdkError<DeleteClusterError>
Constructs a fluent builder for the DeleteFargateProfile
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the Amazon EKS cluster associated with the Fargate profile to delete.
fargate_profile_name(impl Into<String>)
/set_fargate_profile_name(Option<String>)
:The name of the Fargate profile to delete.
- On success, responds with
DeleteFargateProfileOutput
with field(s):fargate_profile(Option<FargateProfile>)
:The deleted Fargate profile.
- On failure, responds with
SdkError<DeleteFargateProfileError>
Constructs a fluent builder for the DeleteNodegroup
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the Amazon EKS cluster that is associated with your node group.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:The name of the node group to delete.
- On success, responds with
DeleteNodegroupOutput
with field(s):nodegroup(Option<Nodegroup>)
:The full description of your deleted node group.
- On failure, responds with
SdkError<DeleteNodegroupError>
Constructs a fluent builder for the DeregisterCluster
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the connected cluster to deregister.
- On success, responds with
DeregisterClusterOutput
with field(s):cluster(Option<Cluster>)
:An object representing an Amazon EKS cluster.
- On failure, responds with
SdkError<DeregisterClusterError>
Constructs a fluent builder for the DescribeAddon
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the cluster.
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:The name of the add-on. The name must match one of the names returned by
ListAddons
.
- On success, responds with
DescribeAddonOutput
with field(s):addon(Option<Addon>)
:An Amazon EKS add-on. For more information, see Amazon EKS add-ons in the Amazon EKS User Guide.
- On failure, responds with
SdkError<DescribeAddonError>
Constructs a fluent builder for the DescribeAddonVersions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
kubernetes_version(impl Into<String>)
/set_kubernetes_version(Option<String>)
:The Kubernetes versions that the add-on can be used with.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The
nextToken
value returned from a previous paginatedDescribeAddonVersionsRequest
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.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.
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:The name of the add-on. The name must match one of the names returned by
ListAddons
.
- On success, responds with
DescribeAddonVersionsOutput
with field(s):addons(Option<Vec<AddonInfo>>)
:The list of available versions with Kubernetes version compatibility.
next_token(Option<String>)
:The
nextToken
value returned from a previous paginatedDescribeAddonVersionsResponse
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.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.
- On failure, responds with
SdkError<DescribeAddonVersionsError>
Constructs a fluent builder for the DescribeCluster
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the cluster to describe.
- On success, responds with
DescribeClusterOutput
with field(s):cluster(Option<Cluster>)
:The full description of your specified cluster.
- On failure, responds with
SdkError<DescribeClusterError>
Constructs a fluent builder for the DescribeFargateProfile
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the Amazon EKS cluster associated with the Fargate profile.
fargate_profile_name(impl Into<String>)
/set_fargate_profile_name(Option<String>)
:The name of the Fargate profile to describe.
- On success, responds with
DescribeFargateProfileOutput
with field(s):fargate_profile(Option<FargateProfile>)
:The full description of your Fargate profile.
- On failure, responds with
SdkError<DescribeFargateProfileError>
Constructs a fluent builder for the DescribeIdentityProviderConfig
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The cluster name that the identity provider configuration is associated to.
identity_provider_config(IdentityProviderConfig)
/set_identity_provider_config(Option<IdentityProviderConfig>)
:An object that represents an identity provider configuration.
- On success, responds with
DescribeIdentityProviderConfigOutput
with field(s):identity_provider_config(Option<IdentityProviderConfigResponse>)
:The object that represents an OpenID Connect (OIDC) identity provider configuration.
- On failure, responds with
SdkError<DescribeIdentityProviderConfigError>
Constructs a fluent builder for the DescribeNodegroup
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the Amazon EKS cluster associated with the node group.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:The name of the node group to describe.
- On success, responds with
DescribeNodegroupOutput
with field(s):nodegroup(Option<Nodegroup>)
:The full description of your node group.
- On failure, responds with
SdkError<DescribeNodegroupError>
Constructs a fluent builder for the DescribeUpdate
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the Amazon EKS cluster associated with the update.
update_id(impl Into<String>)
/set_update_id(Option<String>)
:The ID of the update to describe.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:The name of the Amazon EKS node group associated with the update.
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:The name of the add-on. The name must match one of the names returned by
ListAddons
.
- On success, responds with
DescribeUpdateOutput
with field(s):update(Option<Update>)
:The full description of the specified update.
- On failure, responds with
SdkError<DescribeUpdateError>
pub fn disassociate_identity_provider_config(
&self
) -> DisassociateIdentityProviderConfig<C, M, R>
pub fn disassociate_identity_provider_config(
&self
) -> DisassociateIdentityProviderConfig<C, M, R>
Constructs a fluent builder for the DisassociateIdentityProviderConfig
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the cluster to disassociate an identity provider from.
identity_provider_config(IdentityProviderConfig)
/set_identity_provider_config(Option<IdentityProviderConfig>)
:An object that represents an identity provider configuration.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- On success, responds with
DisassociateIdentityProviderConfigOutput
with field(s):update(Option<Update>)
:An object representing an asynchronous update.
- On failure, responds with
SdkError<DisassociateIdentityProviderConfigError>
Constructs a fluent builder for the ListAddons
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the cluster.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of add-on results returned by
ListAddonsRequest
in paginated output. When you use this parameter,ListAddonsRequest
returns onlymaxResults
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListAddonsRequest
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListAddonsRequest
returns up to 100 results and anextToken
value, if applicable.next_token(impl Into<String>)
/set_next_token(Option<String>)
:The
nextToken
value returned from a previous paginatedListAddonsRequest
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.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.
- On success, responds with
ListAddonsOutput
with field(s):addons(Option<Vec<String>>)
:A list of available add-ons.
next_token(Option<String>)
:The
nextToken
value returned from a previous paginatedListAddonsResponse
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.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.
- On failure, responds with
SdkError<ListAddonsError>
Constructs a fluent builder for the ListClusters
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of cluster results returned by
ListClusters
in paginated output. When you use this parameter,ListClusters
returns onlymaxResults
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListClusters
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListClusters
returns up to 100 results and anextToken
value if applicable.next_token(impl Into<String>)
/set_next_token(Option<String>)
:The
nextToken
value returned from a previous paginatedListClusters
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.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.
include(Vec<String>)
/set_include(Option<Vec<String>>)
:Indicates whether external clusters are included in the returned list. Use ‘
all
’ to return connected clusters, or blank to return only Amazon EKS clusters. ‘all
’ must be in lowercase otherwise an error occurs.
- On success, responds with
ListClustersOutput
with field(s):clusters(Option<Vec<String>>)
:A list of all of the clusters for your account in the specified Region.
next_token(Option<String>)
:The
nextToken
value to include in a futureListClusters
request. When the results of aListClusters
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.
- On failure, responds with
SdkError<ListClustersError>
Constructs a fluent builder for the ListFargateProfiles
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the Amazon EKS cluster that you would like to list Fargate profiles in.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of Fargate profile results returned by
ListFargateProfiles
in paginated output. When you use this parameter,ListFargateProfiles
returns onlymaxResults
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListFargateProfiles
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListFargateProfiles
returns up to 100 results and anextToken
value if applicable.next_token(impl Into<String>)
/set_next_token(Option<String>)
:The
nextToken
value returned from a previous paginatedListFargateProfiles
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.
- On success, responds with
ListFargateProfilesOutput
with field(s):fargate_profile_names(Option<Vec<String>>)
:A list of all of the Fargate profiles associated with the specified cluster.
next_token(Option<String>)
:The
nextToken
value to include in a futureListFargateProfiles
request. When the results of aListFargateProfiles
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.
- On failure, responds with
SdkError<ListFargateProfilesError>
Constructs a fluent builder for the ListIdentityProviderConfigs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The cluster name that you want to list identity provider configurations for.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of identity provider configurations returned by
ListIdentityProviderConfigs
in paginated output. When you use this parameter,ListIdentityProviderConfigs
returns onlymaxResults
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListIdentityProviderConfigs
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListIdentityProviderConfigs
returns up to 100 results and anextToken
value, if applicable.next_token(impl Into<String>)
/set_next_token(Option<String>)
:The
nextToken
value returned from a previous paginatedIdentityProviderConfigsRequest
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.
- On success, responds with
ListIdentityProviderConfigsOutput
with field(s):identity_provider_configs(Option<Vec<IdentityProviderConfig>>)
:The identity provider configurations for the cluster.
next_token(Option<String>)
:The
nextToken
value returned from a previous paginatedListIdentityProviderConfigsResponse
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.
- On failure, responds with
SdkError<ListIdentityProviderConfigsError>
Constructs a fluent builder for the ListNodegroups
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the Amazon EKS cluster that you would like to list node groups in.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of node group results returned by
ListNodegroups
in paginated output. When you use this parameter,ListNodegroups
returns onlymaxResults
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListNodegroups
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListNodegroups
returns up to 100 results and anextToken
value if applicable.next_token(impl Into<String>)
/set_next_token(Option<String>)
:The
nextToken
value returned from a previous paginatedListNodegroups
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.
- On success, responds with
ListNodegroupsOutput
with field(s):nodegroups(Option<Vec<String>>)
:A list of all of the node groups associated with the specified cluster.
next_token(Option<String>)
:The
nextToken
value to include in a futureListNodegroups
request. When the results of aListNodegroups
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.
- On failure, responds with
SdkError<ListNodegroupsError>
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the supported resources are Amazon EKS clusters and managed node groups.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<HashMap<String, String>>)
:The tags for the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
Constructs a fluent builder for the ListUpdates
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the Amazon EKS cluster to list updates for.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:The name of the Amazon EKS managed node group to list updates for.
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:The names of the installed add-ons that have available updates.
next_token(impl Into<String>)
/set_next_token(Option<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.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of update results returned by
ListUpdates
in paginated output. When you use this parameter,ListUpdates
returns onlymaxResults
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListUpdates
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListUpdates
returns up to 100 results and anextToken
value if applicable.
- On success, responds with
ListUpdatesOutput
with field(s):update_ids(Option<Vec<String>>)
:A list of all the updates for the specified cluster and Region.
next_token(Option<String>)
:The
nextToken
value to include in a futureListUpdates
request. When the results of aListUpdates
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.
- On failure, responds with
SdkError<ListUpdatesError>
Constructs a fluent builder for the RegisterCluster
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:Define a unique name for this cluster for your Region.
connector_config(ConnectorConfigRequest)
/set_connector_config(Option<ConnectorConfigRequest>)
:The configuration settings required to connect the Kubernetes cluster to the Amazon EKS control plane.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The metadata that you apply to the cluster to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Cluster tags do not propagate to any other resources associated with the cluster.
- On success, responds with
RegisterClusterOutput
with field(s):cluster(Option<Cluster>)
:An object representing an Amazon EKS cluster.
- On failure, responds with
SdkError<RegisterClusterError>
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource to which to add tags. Currently, the supported resources are Amazon EKS clusters and managed node groups.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The tags to add to the resource. A tag is an array of key-value pairs.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource from which to delete tags. Currently, the supported resources are Amazon EKS clusters and managed node groups.
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
:The keys of the tags to be removed.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Constructs a fluent builder for the UpdateAddon
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the cluster.
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:The name of the add-on. The name must match one of the names returned by
ListAddons
.addon_version(impl Into<String>)
/set_addon_version(Option<String>)
:The version of the add-on. The version must match one of the versions returned by
DescribeAddonVersions
.service_account_role_arn(impl Into<String>)
/set_service_account_role_arn(Option<String>)
:The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on’s service account. The role must be assigned the IAM permissions required by the add-on. If you don’t specify an existing IAM role, then the add-on uses the permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide.
To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. For more information, see Enabling IAM roles for service accounts on your cluster in the Amazon EKS User Guide.
resolve_conflicts(ResolveConflicts)
/set_resolve_conflicts(Option<ResolveConflicts>)
:How to resolve parameter value conflicts when applying the new version of the add-on to the cluster.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- On success, responds with
UpdateAddonOutput
with field(s):update(Option<Update>)
:An object representing an asynchronous update.
- On failure, responds with
SdkError<UpdateAddonError>
Constructs a fluent builder for the UpdateClusterConfig
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the Amazon EKS cluster to update.
resources_vpc_config(VpcConfigRequest)
/set_resources_vpc_config(Option<VpcConfigRequest>)
:An object representing the VPC configuration to use for an Amazon EKS cluster.
logging(Logging)
/set_logging(Option<Logging>)
: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 CloudWatch Pricing.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- On success, responds with
UpdateClusterConfigOutput
with field(s):update(Option<Update>)
:An object representing an asynchronous update.
- On failure, responds with
SdkError<UpdateClusterConfigError>
Constructs a fluent builder for the UpdateClusterVersion
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the Amazon EKS cluster to update.
version(impl Into<String>)
/set_version(Option<String>)
:The desired Kubernetes version following a successful update.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- On success, responds with
UpdateClusterVersionOutput
with field(s):update(Option<Update>)
:The full description of the specified update
- On failure, responds with
SdkError<UpdateClusterVersionError>
Constructs a fluent builder for the UpdateNodegroupConfig
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the Amazon EKS cluster that the managed node group resides in.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:The name of the managed node group to update.
labels(UpdateLabelsPayload)
/set_labels(Option<UpdateLabelsPayload>)
:The Kubernetes labels to be applied to the nodes in the node group after the update.
taints(UpdateTaintsPayload)
/set_taints(Option<UpdateTaintsPayload>)
:The Kubernetes taints to be applied to the nodes in the node group after the update.
scaling_config(NodegroupScalingConfig)
/set_scaling_config(Option<NodegroupScalingConfig>)
:The scaling configuration details for the Auto Scaling group after the update.
update_config(NodegroupUpdateConfig)
/set_update_config(Option<NodegroupUpdateConfig>)
:The node group update configuration.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- On success, responds with
UpdateNodegroupConfigOutput
with field(s):update(Option<Update>)
:An object representing an asynchronous update.
- On failure, responds with
SdkError<UpdateNodegroupConfigError>
Constructs a fluent builder for the UpdateNodegroupVersion
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:The name of the Amazon EKS cluster that is associated with the managed node group to update.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:The name of the managed node group to update.
version(impl Into<String>)
/set_version(Option<String>)
:The Kubernetes version to update to. If no version is specified, then the Kubernetes version of the node group does not change. You can specify the Kubernetes version of the cluster to update the node group to the latest AMI version of the cluster’s Kubernetes version. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don’t specifyversion
, or the node group update will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.release_version(impl Into<String>)
/set_release_version(Option<String>)
:The AMI version of the Amazon EKS optimized AMI to use for the update. By default, the latest available AMI version for the node group’s Kubernetes version is used. For more information, see Amazon EKS optimized Amazon Linux 2 AMI versions in the Amazon EKS User Guide. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don’t specifyreleaseVersion
, or the node group update will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.launch_template(LaunchTemplateSpecification)
/set_launch_template(Option<LaunchTemplateSpecification>)
:An object representing a node group’s launch template specification. You can only update a node group using a launch template if the node group was originally deployed with a launch template.
force(bool)
/set_force(bool)
:Force the update if the existing node group’s pods are unable to be drained due to a pod disruption budget issue. If an update fails because pods could not be drained, you can force the update after it fails to terminate the old node whether or not any pods are running on the node.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- On success, responds with
UpdateNodegroupVersionOutput
with field(s):update(Option<Update>)
:An object representing an asynchronous update.
- On failure, responds with
SdkError<UpdateNodegroupVersionError>
Creates a client with the given service config and connector override.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for Client<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for Client<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more