Struct aws_sdk_eks::Client
source · pub struct Client { /* 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::retry::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§
source§impl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
source§impl Client
impl Client
sourcepub fn associate_encryption_config(&self) -> AssociateEncryptionConfig
pub fn associate_encryption_config(&self) -> AssociateEncryptionConfig
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>
sourcepub fn associate_identity_provider_config(
&self
) -> AssociateIdentityProviderConfig
pub fn associate_identity_provider_config(
&self
) -> AssociateIdentityProviderConfig
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 representing 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>
sourcepub fn create_addon(&self) -> CreateAddon
pub fn create_addon(&self) -> CreateAddon
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 that
DescribeAddonVersions
returns.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 field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you choose:
-
None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn’t change the value. Creation of the add-on might fail.
-
Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value.
-
Preserve – Not supported. You can set this value when updating an add-on though. For more information, see UpdateAddon.
If you don’t currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify.
-
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.
configuration_values(impl Into<String>)
/set_configuration_values(Option<String>)
:The set of configuration values for the add-on that’s created. The values that you provide are validated against the schema in
DescribeAddonConfiguration
.
- 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>
sourcepub fn create_cluster(&self) -> CreateCluster
pub fn create_cluster(&self) -> CreateCluster
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 default version available in Amazon EKS is used.
The default version might not be the latest version available.
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.
outpost_config(OutpostConfigRequest)
/set_outpost_config(Option<OutpostConfigRequest>)
:An object representing the configuration of your local Amazon EKS cluster on an Amazon Web Services Outpost. Before creating a local cluster on an Outpost, review Local clusters for Amazon EKS on Amazon Web Services Outposts in the Amazon EKS User Guide. This object isn’t available for creating Amazon EKS clusters on the Amazon Web Services cloud.
- On success, responds with
CreateClusterOutput
with field(s):cluster(Option<Cluster>)
:The full description of your new cluster.
- On failure, responds with
SdkError<CreateClusterError>
sourcepub fn create_fargate_profile(&self) -> CreateFargateProfile
pub fn create_fargate_profile(&self) -> CreateFargateProfile
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>
sourcepub fn create_nodegroup(&self) -> CreateNodegroup
pub fn create_nodegroup(&self) -> CreateNodegroup
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 for Linux and Bottlerocket. The default disk size is 50 GiB for Windows. 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, make sure to also specify an applicable GPU AMI type with the
amiType
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. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don’t specifyamiType
, or the node group deployment will fail. If your launch template uses a Windows custom AMI, then addeks:kube-proxy-windows
to your Windows nodesrolearn
in theaws-auth
ConfigMap
. 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 configuration to use with your node group. For Linux, the protocol is SSH. For Windows, the protocol is RDP. 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. For more information, see Node taints on managed node groups.
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 information about Linux versions, see Amazon EKS optimized Amazon Linux AMI versions in the Amazon EKS User Guide. Amazon EKS managed node groups support the November 2022 and later releases of the Windows AMIs. For information about Windows versions, see Amazon EKS optimized Windows 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>
sourcepub fn delete_addon(&self) -> DeleteAddon
pub fn delete_addon(&self) -> DeleteAddon
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 isn’t 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>
sourcepub fn delete_cluster(&self) -> DeleteCluster
pub fn delete_cluster(&self) -> DeleteCluster
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>
sourcepub fn delete_fargate_profile(&self) -> DeleteFargateProfile
pub fn delete_fargate_profile(&self) -> DeleteFargateProfile
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>
sourcepub fn delete_nodegroup(&self) -> DeleteNodegroup
pub fn delete_nodegroup(&self) -> DeleteNodegroup
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>
sourcepub fn deregister_cluster(&self) -> DeregisterCluster
pub fn deregister_cluster(&self) -> DeregisterCluster
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>
sourcepub fn describe_addon(&self) -> DescribeAddon
pub fn describe_addon(&self) -> DescribeAddon
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>
sourcepub fn describe_addon_configuration(&self) -> DescribeAddonConfiguration
pub fn describe_addon_configuration(&self) -> DescribeAddonConfiguration
Constructs a fluent builder for the DescribeAddonConfiguration
operation.
- The fluent builder is configurable:
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:The name of the add-on. The name must match one of the names that
DescribeAddonVersions
returns.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
.
- On success, responds with
DescribeAddonConfigurationOutput
with field(s):addon_name(Option<String>)
:The name of the add-on.
addon_version(Option<String>)
:The version of the add-on. The version must match one of the versions returned by
DescribeAddonVersions
.configuration_schema(Option<String>)
:A JSON schema that’s used to validate the configuration values that you provide when an addon is created or updated.
- On failure, responds with
SdkError<DescribeAddonConfigurationError>
sourcepub fn describe_addon_versions(&self) -> DescribeAddonVersions
pub fn describe_addon_versions(&self) -> DescribeAddonVersions
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 you can use the add-on 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
.types(Vec<String>)
/set_types(Option<Vec<String>>)
:The type of the add-on. For valid
types
, don’t specify a value for this property.publishers(Vec<String>)
/set_publishers(Option<Vec<String>>)
:The publisher of the add-on. For valid
publishers
, don’t specify a value for this property.owners(Vec<String>)
/set_owners(Option<Vec<String>>)
:The owner of the add-on. For valid
owners
, don’t specify a value for this property.
- On success, responds with
DescribeAddonVersionsOutput
with field(s):addons(Option<Vec<AddonInfo>>)
:The list of available versions with Kubernetes version compatibility and other properties.
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>
sourcepub fn describe_cluster(&self) -> DescribeCluster
pub fn describe_cluster(&self) -> DescribeCluster
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>
sourcepub fn describe_fargate_profile(&self) -> DescribeFargateProfile
pub fn describe_fargate_profile(&self) -> DescribeFargateProfile
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>
sourcepub fn describe_identity_provider_config(
&self
) -> DescribeIdentityProviderConfig
pub fn describe_identity_provider_config(
&self
) -> DescribeIdentityProviderConfig
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 representing 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>
sourcepub fn describe_nodegroup(&self) -> DescribeNodegroup
pub fn describe_nodegroup(&self) -> DescribeNodegroup
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>
sourcepub fn describe_update(&self) -> DescribeUpdate
pub fn describe_update(&self) -> DescribeUpdate
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. This parameter is required if the update is a node group 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
. This parameter is required if the update is an add-on update.
- On success, responds with
DescribeUpdateOutput
with field(s):update(Option<Update>)
:The full description of the specified update.
- On failure, responds with
SdkError<DescribeUpdateError>
sourcepub fn disassociate_identity_provider_config(
&self
) -> DisassociateIdentityProviderConfig
pub fn disassociate_identity_provider_config(
&self
) -> DisassociateIdentityProviderConfig
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 representing 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>
sourcepub fn list_addons(&self) -> ListAddons
pub fn list_addons(&self) -> ListAddons
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>
sourcepub fn list_clusters(&self) -> ListClusters
pub fn list_clusters(&self) -> ListClusters
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>
sourcepub fn list_fargate_profiles(&self) -> ListFargateProfiles
pub fn list_fargate_profiles(&self) -> ListFargateProfiles
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>
sourcepub fn list_identity_provider_configs(&self) -> ListIdentityProviderConfigs
pub fn list_identity_provider_configs(&self) -> ListIdentityProviderConfigs
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>
sourcepub fn list_nodegroups(&self) -> ListNodegroups
pub fn list_nodegroups(&self) -> ListNodegroups
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>
sourcepub fn list_updates(&self) -> ListUpdates
pub fn list_updates(&self) -> ListUpdates
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>
sourcepub fn register_cluster(&self) -> RegisterCluster
pub fn register_cluster(&self) -> RegisterCluster
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>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
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>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
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>
sourcepub fn update_addon(&self) -> UpdateAddon
pub fn update_addon(&self) -> UpdateAddon
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 field value conflicts for an Amazon EKS add-on if you’ve changed a value from the Amazon EKS default value. Conflicts are handled based on the option you choose:
-
None – Amazon EKS doesn’t change the value. The update might fail.
-
Overwrite – Amazon EKS overwrites the changed value back to the Amazon EKS default value.
-
Preserve – Amazon EKS preserves the value. If you choose this option, we recommend that you test any field and value changes on a non-production cluster before updating the add-on on your production 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.
configuration_values(impl Into<String>)
/set_configuration_values(Option<String>)
:The set of configuration values for the add-on that’s created. The values that you provide are validated against the schema in DescribeAddonConfiguration.
- On success, responds with
UpdateAddonOutput
with field(s):update(Option<Update>)
:An object representing an asynchronous update.
- On failure, responds with
SdkError<UpdateAddonError>
sourcepub fn update_cluster_config(&self) -> UpdateClusterConfig
pub fn update_cluster_config(&self) -> UpdateClusterConfig
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>
sourcepub fn update_cluster_version(&self) -> UpdateClusterVersion
pub fn update_cluster_version(&self) -> UpdateClusterVersion
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>
sourcepub fn update_nodegroup_config(&self) -> UpdateNodegroupConfig
pub fn update_nodegroup_config(&self) -> UpdateNodegroupConfig
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. For more information, see Node taints on managed node groups.
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>
sourcepub fn update_nodegroup_version(&self) -> UpdateNodegroupVersion
pub fn update_nodegroup_version(&self) -> UpdateNodegroupVersion
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 information about Linux versions, see Amazon EKS optimized Amazon Linux AMI versions in the Amazon EKS User Guide. Amazon EKS managed node groups support the November 2022 and later releases of the Windows AMIs. For information about Windows versions, see Amazon EKS optimized Windows 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>
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
Panics
- This method will panic if the
sdk_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it.
sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
Panics
- This method will panic if the
conf
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
conf
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it.