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.
§Constructing a Client
A Config
is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env()
, since this will resolve an SdkConfig
which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env()
instead, which returns a ConfigLoader
that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_eks::Client::new(&config);
Occasionally, SDKs may have additional service-specific values that can be set on the Config
that
is absent from SdkConfig
, or slightly different settings for a specific client may be desired.
The Builder
struct implements From<&SdkConfig>
, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_eks::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();
See the aws-config
docs and Config
for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the AssociateAccessPolicy
operation has
a Client::associate_access_policy
, function which returns a builder for that operation.
The fluent builder ultimately has a send()
function that returns an async future that
returns a result, as illustrated below:
let result = client.associate_access_policy()
.cluster_name("example")
.send()
.await;
The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize
module for more
information.
§Waiters
This client provides wait_until
methods behind the Waiters
trait.
To use them, simply import the trait, and then call one of the wait_until
methods. This will
return a waiter fluent builder that takes various parameters, which are documented on the builder
type. Once parameters have been provided, the wait
method can be called to initiate waiting.
For example, if there was a wait_until_thing
method, it could look like:
let result = client.wait_until_thing()
.thing_id("someId")
.wait(Duration::from_secs(120))
.await;
Implementations§
Source§impl Client
impl Client
Sourcepub fn associate_access_policy(&self) -> AssociateAccessPolicyFluentBuilder
pub fn associate_access_policy(&self) -> AssociateAccessPolicyFluentBuilder
Constructs a fluent builder for the AssociateAccessPolicy
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
principal_arn(impl Into<String>)
/set_principal_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the IAM user or role for the
AccessEntry
that you’re associating the access policy to.policy_arn(impl Into<String>)
/set_policy_arn(Option<String>)
:
required: trueThe ARN of the
AccessPolicy
that you’re associating. For a list of ARNs, useListAccessPolicies
.access_scope(AccessScope)
/set_access_scope(Option<AccessScope>)
:
required: trueThe scope for the
AccessPolicy
. You can scope access policies to an entire cluster or to specific Kubernetes namespaces.
- On success, responds with
AssociateAccessPolicyOutput
with field(s):cluster_name(Option<String>)
:The name of your cluster.
principal_arn(Option<String>)
:The ARN of the IAM principal for the
AccessEntry
.associated_access_policy(Option<AssociatedAccessPolicy>)
:The
AccessPolicy
and scope associated to theAccessEntry
.
- On failure, responds with
SdkError<AssociateAccessPolicyError>
Source§impl Client
impl Client
Sourcepub fn associate_encryption_config(
&self,
) -> AssociateEncryptionConfigFluentBuilder
pub fn associate_encryption_config( &self, ) -> AssociateEncryptionConfigFluentBuilder
Constructs a fluent builder for the AssociateEncryptionConfig
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
encryption_config(EncryptionConfig)
/set_encryption_config(Option<Vec::<EncryptionConfig>>)
:
required: trueThe configuration you are using for encryption.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- On success, responds with
AssociateEncryptionConfigOutput
with field(s):update(Option<Update>)
:An object representing an asynchronous update.
- On failure, responds with
SdkError<AssociateEncryptionConfigError>
Source§impl Client
impl Client
Sourcepub fn associate_identity_provider_config(
&self,
) -> AssociateIdentityProviderConfigFluentBuilder
pub fn associate_identity_provider_config( &self, ) -> AssociateIdentityProviderConfigFluentBuilder
Constructs a fluent builder for the AssociateIdentityProviderConfig
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
oidc(OidcIdentityProviderConfigRequest)
/set_oidc(Option<OidcIdentityProviderConfigRequest>)
:
required: trueAn object representing an OpenID Connect (OIDC) identity provider configuration.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseMetadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don’t propagate to any other cluster or Amazon Web Services resources.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseA 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>
Source§impl Client
impl Client
Sourcepub fn create_access_entry(&self) -> CreateAccessEntryFluentBuilder
pub fn create_access_entry(&self) -> CreateAccessEntryFluentBuilder
Constructs a fluent builder for the CreateAccessEntry
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
principal_arn(impl Into<String>)
/set_principal_arn(Option<String>)
:
required: trueThe ARN of the IAM principal for the
AccessEntry
. You can specify one ARN for each access entry. You can’t specify the same ARN in more than one access entry. This value can’t be changed after access entry creation.The valid principals differ depending on the type of the access entry in the
type
field. ForSTANDARD
access entries, you can use every IAM principal type. For nodes (EC2
(for EKS Auto Mode),EC2_LINUX
,EC2_WINDOWS
,FARGATE_LINUX
, andHYBRID_LINUX
), the only valid ARN is IAM roles. You can’t use the STS session principal type with access entries because this is a temporary principal for each session and not a permanent identity that can be assigned permissions.IAM best practices recommend using IAM roles with temporary credentials, rather than IAM users with long-term credentials.
kubernetes_groups(impl Into<String>)
/set_kubernetes_groups(Option<Vec::<String>>)
:
required: falseThe value for
name
that you’ve specified forkind: Group
as asubject
in a KubernetesRoleBinding
orClusterRoleBinding
object. Amazon EKS doesn’t confirm that the value forname
exists in any bindings on your cluster. You can specify one or more names.Kubernetes authorizes the
principalArn
of the access entry to access any cluster objects that you’ve specified in a KubernetesRole
orClusterRole
object that is also specified in a binding’sroleRef
. For more information about creating KubernetesRoleBinding
,ClusterRoleBinding
,Role
, orClusterRole
objects, see Using RBAC Authorization in the Kubernetes documentation.If you want Amazon EKS to authorize the
principalArn
(instead of, or in addition to Kubernetes authorizing theprincipalArn
), you can associate one or more access policies to the access entry usingAssociateAccessPolicy
. If you associate any access policies, theprincipalARN
has all permissions assigned in the associated access policies and all permissions in any KubernetesRole
orClusterRole
objects that the group names are bound to.tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseMetadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don’t propagate to any other cluster or Amazon Web Services resources.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
username(impl Into<String>)
/set_username(Option<String>)
:
required: falseThe username to authenticate to Kubernetes with. We recommend not specifying a username and letting Amazon EKS specify it for you. For more information about the value Amazon EKS specifies for you, or constraints before specifying your own username, see Creating access entries in the Amazon EKS User Guide.
r#type(impl Into<String>)
/set_type(Option<String>)
:
required: falseThe type of the new access entry. Valid values are
STANDARD
,FARGATE_LINUX
,EC2_LINUX
,EC2_WINDOWS
,EC2
(for EKS Auto Mode),HYBRID_LINUX
, andHYPERPOD_LINUX
.If the
principalArn
is for an IAM role that’s used for self-managed Amazon EC2 nodes, specifyEC2_LINUX
orEC2_WINDOWS
. Amazon EKS grants the necessary permissions to the node for you. If theprincipalArn
is for any other purpose, specifySTANDARD
. If you don’t specify a value, Amazon EKS sets the value toSTANDARD
. If you have the access mode of the cluster set toAPI_AND_CONFIG_MAP
, it’s unnecessary to create access entries for IAM roles used with Fargate profiles or managed Amazon EC2 nodes, because Amazon EKS creates entries in theaws-auth
ConfigMap
for the roles. You can’t change this value once you’ve created the access entry.If you set the value to
EC2_LINUX
orEC2_WINDOWS
, you can’t specify values forkubernetesGroups
, or associate anAccessPolicy
to the access entry.
- On success, responds with
CreateAccessEntryOutput
with field(s):access_entry(Option<AccessEntry>)
:An access entry allows an IAM principal (user or role) to access your cluster. Access entries can replace the need to maintain the
aws-auth
ConfigMap
for authentication. For more information about access entries, see Access entries in the Amazon EKS User Guide.
- On failure, responds with
SdkError<CreateAccessEntryError>
Source§impl Client
impl Client
Sourcepub fn create_addon(&self) -> CreateAddonFluentBuilder
pub fn create_addon(&self) -> CreateAddonFluentBuilder
Constructs a fluent builder for the CreateAddon
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:
required: trueThe 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>)
:
required: falseThe 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>)
:
required: falseThe 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>)
:
required: falseHow 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 – This is similar to the NONE option. If the self-managed version of the add-on is installed on your cluster Amazon EKS doesn’t change the add-on resource properties. Creation of the add-on might fail if conflicts are detected. This option works differently during the update operation. 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>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseMetadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don’t propagate to any other cluster or Amazon Web Services resources.
configuration_values(impl Into<String>)
/set_configuration_values(Option<String>)
:
required: falseThe set of configuration values for the add-on that’s created. The values that you provide are validated against the schema returned by
DescribeAddonConfiguration
.pod_identity_associations(AddonPodIdentityAssociations)
/set_pod_identity_associations(Option<Vec::<AddonPodIdentityAssociations>>)
:
required: falseAn array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes service account to an IAM Role.
For more information, see Attach an IAM Role to an Amazon EKS add-on using Pod Identity in the Amazon EKS User Guide.
- 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>
Source§impl Client
impl Client
Sourcepub fn create_cluster(&self) -> CreateClusterFluentBuilder
pub fn create_cluster(&self) -> CreateClusterFluentBuilder
Constructs a fluent builder for the CreateCluster
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe unique name to give to your cluster. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphanumeric character and can’t be longer than 100 characters. The name must be unique within the Amazon Web Services Region and Amazon Web Services account that you’re creating the cluster in.
version(impl Into<String>)
/set_version(Option<String>)
:
required: falseThe 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>)
:
required: trueThe 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>)
:
required: trueThe 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>)
:
required: falseThe Kubernetes network configuration for the cluster.
logging(Logging)
/set_logging(Option<Logging>)
:
required: falseEnable 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>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseMetadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don’t propagate to any other cluster or Amazon Web Services resources.
encryption_config(EncryptionConfig)
/set_encryption_config(Option<Vec::<EncryptionConfig>>)
:
required: falseThe encryption configuration for the cluster.
outpost_config(OutpostConfigRequest)
/set_outpost_config(Option<OutpostConfigRequest>)
:
required: falseAn 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.
access_config(CreateAccessConfigRequest)
/set_access_config(Option<CreateAccessConfigRequest>)
:
required: falseThe access configuration for the cluster.
bootstrap_self_managed_addons(bool)
/set_bootstrap_self_managed_addons(Option<bool>)
:
required: falseIf you set this value to
False
when creating a cluster, the default networking add-ons will not be installed.The default networking addons include vpc-cni, coredns, and kube-proxy.
Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.
upgrade_policy(UpgradePolicyRequest)
/set_upgrade_policy(Option<UpgradePolicyRequest>)
:
required: falseNew clusters, by default, have extended support enabled. You can disable extended support when creating a cluster by setting this value to
STANDARD
.zonal_shift_config(ZonalShiftConfigRequest)
/set_zonal_shift_config(Option<ZonalShiftConfigRequest>)
:
required: falseEnable or disable ARC zonal shift for the cluster. If zonal shift is enabled, Amazon Web Services configures zonal autoshift for the cluster.
Zonal shift is a feature of Amazon Application Recovery Controller (ARC). ARC zonal shift is designed to be a temporary measure that allows you to move traffic for a resource away from an impaired AZ until the zonal shift expires or you cancel it. You can extend the zonal shift if necessary.
You can start a zonal shift for an Amazon EKS cluster, or you can allow Amazon Web Services to do it for you by enabling zonal autoshift. This shift updates the flow of east-to-west network traffic in your cluster to only consider network endpoints for Pods running on worker nodes in healthy AZs. Additionally, any ALB or NLB handling ingress traffic for applications in your Amazon EKS cluster will automatically route traffic to targets in the healthy AZs. For more information about zonal shift in EKS, see Learn about Amazon Application Recovery Controller (ARC) Zonal Shift in Amazon EKS in the Amazon EKS User Guide .
remote_network_config(RemoteNetworkConfigRequest)
/set_remote_network_config(Option<RemoteNetworkConfigRequest>)
:
required: falseThe configuration in the cluster for EKS Hybrid Nodes. You can add, change, or remove this configuration after the cluster is created.
compute_config(ComputeConfigRequest)
/set_compute_config(Option<ComputeConfigRequest>)
:
required: falseEnable or disable the compute capability of EKS Auto Mode when creating your EKS Auto Mode cluster. If the compute capability is enabled, EKS Auto Mode will create and delete EC2 Managed Instances in your Amazon Web Services account
storage_config(StorageConfigRequest)
/set_storage_config(Option<StorageConfigRequest>)
:
required: falseEnable or disable the block storage capability of EKS Auto Mode when creating your EKS Auto Mode cluster. If the block storage capability is enabled, EKS Auto Mode will create and delete EBS volumes in your Amazon Web Services account.
- On success, responds with
CreateClusterOutput
with field(s):cluster(Option<Cluster>)
:The full description of your new cluster.
- On failure, responds with
SdkError<CreateClusterError>
Source§impl Client
impl Client
Sourcepub fn create_eks_anywhere_subscription(
&self,
) -> CreateEksAnywhereSubscriptionFluentBuilder
pub fn create_eks_anywhere_subscription( &self, ) -> CreateEksAnywhereSubscriptionFluentBuilder
Constructs a fluent builder for the CreateEksAnywhereSubscription
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe unique name for your subscription. It must be unique in your Amazon Web Services account in the Amazon Web Services Region you’re creating the subscription in. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphabetic character and can’t be longer than 100 characters.
term(EksAnywhereSubscriptionTerm)
/set_term(Option<EksAnywhereSubscriptionTerm>)
:
required: trueAn object representing the term duration and term unit type of your subscription. This determines the term length of your subscription. Valid values are MONTHS for term unit and 12 or 36 for term duration, indicating a 12 month or 36 month subscription. This value cannot be changed after creating the subscription.
license_quantity(i32)
/set_license_quantity(Option<i32>)
:
required: falseThe number of licenses to purchase with the subscription. Valid values are between 1 and 100. This value can’t be changed after creating the subscription.
license_type(EksAnywhereSubscriptionLicenseType)
/set_license_type(Option<EksAnywhereSubscriptionLicenseType>)
:
required: falseThe license type for all licenses in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.
auto_renew(bool)
/set_auto_renew(Option<bool>)
:
required: falseA boolean indicating whether the subscription auto renews at the end of the term.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseThe metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags don’t propagate to any other resources associated with the subscription.
- On success, responds with
CreateEksAnywhereSubscriptionOutput
with field(s):subscription(Option<EksAnywhereSubscription>)
:The full description of the subscription.
- On failure, responds with
SdkError<CreateEksAnywhereSubscriptionError>
Source§impl Client
impl Client
Sourcepub fn create_fargate_profile(&self) -> CreateFargateProfileFluentBuilder
pub fn create_fargate_profile(&self) -> CreateFargateProfileFluentBuilder
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>)
:
required: trueThe name of the Fargate profile.
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
pod_execution_role_arn(impl Into<String>)
/set_pod_execution_role_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the
Pod
execution role to use for aPod
that matches the selectors in the Fargate profile. ThePod
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, seePod
execution role in the Amazon EKS User Guide.subnets(impl Into<String>)
/set_subnets(Option<Vec::<String>>)
:
required: falseThe IDs of subnets to launch a
Pod
into. APod
running on Fargate isn’t assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.selectors(FargateProfileSelector)
/set_selectors(Option<Vec::<FargateProfileSelector>>)
:
required: falseThe selectors to match for a
Pod
to use this Fargate profile. Each selector must have an associated Kubernetesnamespace
. Optionally, you can also specifylabels
for anamespace
. You may specify up to five selectors in a Fargate profile.client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseMetadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don’t propagate to any other cluster or Amazon Web Services resources.
- 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>
Source§impl Client
impl Client
Sourcepub fn create_nodegroup(&self) -> CreateNodegroupFluentBuilder
pub fn create_nodegroup(&self) -> CreateNodegroupFluentBuilder
Constructs a fluent builder for the CreateNodegroup
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:
required: trueThe unique name to give your node group.
scaling_config(NodegroupScalingConfig)
/set_scaling_config(Option<NodegroupScalingConfig>)
:
required: falseThe scaling configuration details for the Auto Scaling group that is created for your node group.
disk_size(i32)
/set_disk_size(Option<i32>)
:
required: falseThe 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 Customizing managed nodes with launch templates in the Amazon EKS User Guide.subnets(impl Into<String>)
/set_subnets(Option<Vec::<String>>)
:
required: trueThe 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 Customizing managed nodes with launch templates in the Amazon EKS User Guide.instance_types(impl Into<String>)
/set_instance_types(Option<Vec::<String>>)
:
required: falseSpecify 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 Customizing managed nodes with launch templates in the Amazon EKS User Guide.ami_type(AmiTypes)
/set_ami_type(Option<AmiTypes>)
:
required: falseThe 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 Customizing managed nodes with launch templates in the Amazon EKS User Guide.remote_access(RemoteAccessConfig)
/set_remote_access(Option<RemoteAccessConfig>)
:
required: falseThe 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 Customizing managed nodes with launch templates in the Amazon EKS User Guide.node_role(impl Into<String>)
/set_node_role(Option<String>)
:
required: trueThe 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 Customizing managed nodes with launch templates in the Amazon EKS User Guide.labels(impl Into<String>, impl Into<String>)
/set_labels(Option<HashMap::<String, String>>)
:
required: falseThe Kubernetes
labels
to apply to the nodes in the node group when they are created.taints(Taint)
/set_taints(Option<Vec::<Taint>>)
:
required: falseThe Kubernetes taints to be applied to the nodes in the node group. For more information, see Node taints on managed node groups.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseMetadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don’t propagate to any other cluster or Amazon Web Services resources.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
launch_template(LaunchTemplateSpecification)
/set_launch_template(Option<LaunchTemplateSpecification>)
:
required: falseAn object representing a node group’s launch template specification. When using this object, don’t directly specify
instanceTypes
,diskSize
, orremoteAccess
. You cannot later specify a different launch template ID or name than what was used to create the node group.Make sure that the launch template meets the requirements in
launchTemplateSpecification
. Also refer to Customizing managed nodes with launch templates in the Amazon EKS User Guide.update_config(NodegroupUpdateConfig)
/set_update_config(Option<NodegroupUpdateConfig>)
:
required: falseThe node group update configuration.
node_repair_config(NodeRepairConfig)
/set_node_repair_config(Option<NodeRepairConfig>)
:
required: falseThe node auto repair configuration for the node group.
capacity_type(CapacityTypes)
/set_capacity_type(Option<CapacityTypes>)
:
required: falseThe capacity type for your node group.
version(impl Into<String>)
/set_version(Option<String>)
:
required: falseThe 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 Customizing managed nodes with launch templates in the Amazon EKS User Guide.release_version(impl Into<String>)
/set_release_version(Option<String>)
:
required: falseThe 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 Customizing managed nodes with launch templates 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>
Source§impl Client
impl Client
Sourcepub fn create_pod_identity_association(
&self,
) -> CreatePodIdentityAssociationFluentBuilder
pub fn create_pod_identity_association( &self, ) -> CreatePodIdentityAssociationFluentBuilder
Constructs a fluent builder for the CreatePodIdentityAssociation
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of the cluster to create the association in.
namespace(impl Into<String>)
/set_namespace(Option<String>)
:
required: trueThe name of the Kubernetes namespace inside the cluster to create the association in. The service account and the pods that use the service account must be in this namespace.
service_account(impl Into<String>)
/set_service_account(Option<String>)
:
required: trueThe name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity agent manages credentials to assume this role for applications in the containers in the pods that use this service account.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseMetadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don’t propagate to any other cluster or Amazon Web Services resources.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource – 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length – 128 Unicode characters in UTF-8
-
Maximum value length – 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
-
- On success, responds with
CreatePodIdentityAssociationOutput
with field(s):association(Option<PodIdentityAssociation>)
:The full description of your new association.
The description includes an ID for the association. Use the ID of the association in further actions to manage the association.
- On failure, responds with
SdkError<CreatePodIdentityAssociationError>
Source§impl Client
impl Client
Sourcepub fn delete_access_entry(&self) -> DeleteAccessEntryFluentBuilder
pub fn delete_access_entry(&self) -> DeleteAccessEntryFluentBuilder
Constructs a fluent builder for the DeleteAccessEntry
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
principal_arn(impl Into<String>)
/set_principal_arn(Option<String>)
:
required: trueThe ARN of the IAM principal for the
AccessEntry
.
- On success, responds with
DeleteAccessEntryOutput
- On failure, responds with
SdkError<DeleteAccessEntryError>
Source§impl Client
impl Client
Sourcepub fn delete_addon(&self) -> DeleteAddonFluentBuilder
pub fn delete_addon(&self) -> DeleteAddonFluentBuilder
Constructs a fluent builder for the DeleteAddon
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:
required: trueThe name of the add-on. The name must match one of the names returned by
ListAddons
.preserve(bool)
/set_preserve(Option<bool>)
:
required: falseSpecifying 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>
Source§impl Client
impl Client
Sourcepub fn delete_cluster(&self) -> DeleteClusterFluentBuilder
pub fn delete_cluster(&self) -> DeleteClusterFluentBuilder
Constructs a fluent builder for the DeleteCluster
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe 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>
Source§impl Client
impl Client
Sourcepub fn delete_eks_anywhere_subscription(
&self,
) -> DeleteEksAnywhereSubscriptionFluentBuilder
pub fn delete_eks_anywhere_subscription( &self, ) -> DeleteEksAnywhereSubscriptionFluentBuilder
Constructs a fluent builder for the DeleteEksAnywhereSubscription
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the subscription.
- On success, responds with
DeleteEksAnywhereSubscriptionOutput
with field(s):subscription(Option<EksAnywhereSubscription>)
:The full description of the subscription to be deleted.
- On failure, responds with
SdkError<DeleteEksAnywhereSubscriptionError>
Source§impl Client
impl Client
Sourcepub fn delete_fargate_profile(&self) -> DeleteFargateProfileFluentBuilder
pub fn delete_fargate_profile(&self) -> DeleteFargateProfileFluentBuilder
Constructs a fluent builder for the DeleteFargateProfile
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
fargate_profile_name(impl Into<String>)
/set_fargate_profile_name(Option<String>)
:
required: trueThe 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>
Source§impl Client
impl Client
Sourcepub fn delete_nodegroup(&self) -> DeleteNodegroupFluentBuilder
pub fn delete_nodegroup(&self) -> DeleteNodegroupFluentBuilder
Constructs a fluent builder for the DeleteNodegroup
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:
required: trueThe 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>
Source§impl Client
impl Client
Sourcepub fn delete_pod_identity_association(
&self,
) -> DeletePodIdentityAssociationFluentBuilder
pub fn delete_pod_identity_association( &self, ) -> DeletePodIdentityAssociationFluentBuilder
Constructs a fluent builder for the DeletePodIdentityAssociation
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe cluster name that
association_id(impl Into<String>)
/set_association_id(Option<String>)
:
required: trueThe ID of the association to be deleted.
- On success, responds with
DeletePodIdentityAssociationOutput
with field(s):association(Option<PodIdentityAssociation>)
:The full description of the EKS Pod Identity association that was deleted.
- On failure, responds with
SdkError<DeletePodIdentityAssociationError>
Source§impl Client
impl Client
Sourcepub fn deregister_cluster(&self) -> DeregisterClusterFluentBuilder
pub fn deregister_cluster(&self) -> DeregisterClusterFluentBuilder
Constructs a fluent builder for the DeregisterCluster
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe 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>
Source§impl Client
impl Client
Sourcepub fn describe_access_entry(&self) -> DescribeAccessEntryFluentBuilder
pub fn describe_access_entry(&self) -> DescribeAccessEntryFluentBuilder
Constructs a fluent builder for the DescribeAccessEntry
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
principal_arn(impl Into<String>)
/set_principal_arn(Option<String>)
:
required: trueThe ARN of the IAM principal for the
AccessEntry
.
- On success, responds with
DescribeAccessEntryOutput
with field(s):access_entry(Option<AccessEntry>)
:Information about the access entry.
- On failure, responds with
SdkError<DescribeAccessEntryError>
Source§impl Client
impl Client
Sourcepub fn describe_addon(&self) -> DescribeAddonFluentBuilder
pub fn describe_addon(&self) -> DescribeAddonFluentBuilder
Constructs a fluent builder for the DescribeAddon
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:
required: trueThe 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>
Source§impl Client
impl Client
Sourcepub fn describe_addon_configuration(
&self,
) -> DescribeAddonConfigurationFluentBuilder
pub fn describe_addon_configuration( &self, ) -> DescribeAddonConfigurationFluentBuilder
Constructs a fluent builder for the DescribeAddonConfiguration
operation.
- The fluent builder is configurable:
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:
required: trueThe 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>)
:
required: trueThe 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 you provide when an add-on is created or updated.
pod_identity_configuration(Option<Vec::<AddonPodIdentityConfiguration>>)
:The Kubernetes service account name used by the addon, and any suggested IAM policies. Use this information to create an IAM Role for the Addon.
- On failure, responds with
SdkError<DescribeAddonConfigurationError>
Source§impl Client
impl Client
Sourcepub fn describe_addon_versions(&self) -> DescribeAddonVersionsFluentBuilder
pub fn describe_addon_versions(&self) -> DescribeAddonVersionsFluentBuilder
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>)
:
required: falseThe Kubernetes versions that you can use the add-on with.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results, returned in paginated output. You receive
maxResults
in a single page, along with anextToken
response element. You can see the remaining results of the initial request by sending another request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter, 100 results and anextToken
value, if applicable, are returned.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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>)
:
required: falseThe name of the add-on. The name must match one of the names returned by
ListAddons
.types(impl Into<String>)
/set_types(Option<Vec::<String>>)
:
required: falseThe type of the add-on. For valid
types
, don’t specify a value for this property.publishers(impl Into<String>)
/set_publishers(Option<Vec::<String>>)
:
required: falseThe publisher of the add-on. For valid
publishers
, don’t specify a value for this property.owners(impl Into<String>)
/set_owners(Option<Vec::<String>>)
:
required: falseThe 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 to include in a futureDescribeAddonVersions
request. When the results of aDescribeAddonVersions
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.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>
Source§impl Client
impl Client
Sourcepub fn describe_cluster(&self) -> DescribeClusterFluentBuilder
pub fn describe_cluster(&self) -> DescribeClusterFluentBuilder
Constructs a fluent builder for the DescribeCluster
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of your cluster.
- On success, responds with
DescribeClusterOutput
with field(s):cluster(Option<Cluster>)
:The full description of your specified cluster.
- On failure, responds with
SdkError<DescribeClusterError>
Source§impl Client
impl Client
Sourcepub fn describe_cluster_versions(&self) -> DescribeClusterVersionsFluentBuilder
pub fn describe_cluster_versions(&self) -> DescribeClusterVersionsFluentBuilder
Constructs a fluent builder for the DescribeClusterVersions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
cluster_type(impl Into<String>)
/set_cluster_type(Option<String>)
:
required: falseThe type of cluster to filter versions by.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseMaximum number of results to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falsePagination token for the next set of results.
default_only(bool)
/set_default_only(Option<bool>)
:
required: falseFilter to show only default versions.
include_all(bool)
/set_include_all(Option<bool>)
:
required: falseInclude all available versions in the response.
cluster_versions(impl Into<String>)
/set_cluster_versions(Option<Vec::<String>>)
:
required: falseList of specific cluster versions to describe.
status(ClusterVersionStatus)
/set_status(Option<ClusterVersionStatus>)
:
required: falseThis field is deprecated. Use
versionStatus
instead, as that field matches for input and output of this action.Filter versions by their current status.
version_status(VersionStatus)
/set_version_status(Option<VersionStatus>)
:
required: falseFilter versions by their current status.
- On success, responds with
DescribeClusterVersionsOutput
with field(s):next_token(Option<String>)
:Pagination token for the next set of results.
cluster_versions(Option<Vec::<ClusterVersionInformation>>)
:List of cluster version information objects.
- On failure, responds with
SdkError<DescribeClusterVersionsError>
Source§impl Client
impl Client
Sourcepub fn describe_eks_anywhere_subscription(
&self,
) -> DescribeEksAnywhereSubscriptionFluentBuilder
pub fn describe_eks_anywhere_subscription( &self, ) -> DescribeEksAnywhereSubscriptionFluentBuilder
Constructs a fluent builder for the DescribeEksAnywhereSubscription
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the subscription.
- On success, responds with
DescribeEksAnywhereSubscriptionOutput
with field(s):subscription(Option<EksAnywhereSubscription>)
:The full description of the subscription.
- On failure, responds with
SdkError<DescribeEksAnywhereSubscriptionError>
Source§impl Client
impl Client
Sourcepub fn describe_fargate_profile(&self) -> DescribeFargateProfileFluentBuilder
pub fn describe_fargate_profile(&self) -> DescribeFargateProfileFluentBuilder
Constructs a fluent builder for the DescribeFargateProfile
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
fargate_profile_name(impl Into<String>)
/set_fargate_profile_name(Option<String>)
:
required: trueThe 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>
Source§impl Client
impl Client
Sourcepub fn describe_identity_provider_config(
&self,
) -> DescribeIdentityProviderConfigFluentBuilder
pub fn describe_identity_provider_config( &self, ) -> DescribeIdentityProviderConfigFluentBuilder
Constructs a fluent builder for the DescribeIdentityProviderConfig
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
identity_provider_config(IdentityProviderConfig)
/set_identity_provider_config(Option<IdentityProviderConfig>)
:
required: trueAn 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>
Source§impl Client
impl Client
Sourcepub fn describe_insight(&self) -> DescribeInsightFluentBuilder
pub fn describe_insight(&self) -> DescribeInsightFluentBuilder
Constructs a fluent builder for the DescribeInsight
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of the cluster to describe the insight for.
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe identity of the insight to describe.
- On success, responds with
DescribeInsightOutput
with field(s):insight(Option<Insight>)
:The full description of the insight.
- On failure, responds with
SdkError<DescribeInsightError>
Source§impl Client
impl Client
Sourcepub fn describe_nodegroup(&self) -> DescribeNodegroupFluentBuilder
pub fn describe_nodegroup(&self) -> DescribeNodegroupFluentBuilder
Constructs a fluent builder for the DescribeNodegroup
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:
required: trueThe 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>
Source§impl Client
impl Client
Sourcepub fn describe_pod_identity_association(
&self,
) -> DescribePodIdentityAssociationFluentBuilder
pub fn describe_pod_identity_association( &self, ) -> DescribePodIdentityAssociationFluentBuilder
Constructs a fluent builder for the DescribePodIdentityAssociation
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of the cluster that the association is in.
association_id(impl Into<String>)
/set_association_id(Option<String>)
:
required: trueThe ID of the association that you want the description of.
- On success, responds with
DescribePodIdentityAssociationOutput
with field(s):association(Option<PodIdentityAssociation>)
:The full description of the EKS Pod Identity association.
- On failure, responds with
SdkError<DescribePodIdentityAssociationError>
Source§impl Client
impl Client
Sourcepub fn describe_update(&self) -> DescribeUpdateFluentBuilder
pub fn describe_update(&self) -> DescribeUpdateFluentBuilder
Constructs a fluent builder for the DescribeUpdate
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the Amazon EKS cluster associated with the update.
update_id(impl Into<String>)
/set_update_id(Option<String>)
:
required: trueThe ID of the update to describe.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:
required: falseThe 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>)
:
required: falseThe 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>
Source§impl Client
impl Client
Sourcepub fn disassociate_access_policy(
&self,
) -> DisassociateAccessPolicyFluentBuilder
pub fn disassociate_access_policy( &self, ) -> DisassociateAccessPolicyFluentBuilder
Constructs a fluent builder for the DisassociateAccessPolicy
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
principal_arn(impl Into<String>)
/set_principal_arn(Option<String>)
:
required: trueThe ARN of the IAM principal for the
AccessEntry
.policy_arn(impl Into<String>)
/set_policy_arn(Option<String>)
:
required: trueThe ARN of the policy to disassociate from the access entry. For a list of associated policies ARNs, use
ListAssociatedAccessPolicies
.
- On success, responds with
DisassociateAccessPolicyOutput
- On failure, responds with
SdkError<DisassociateAccessPolicyError>
Source§impl Client
impl Client
Sourcepub fn disassociate_identity_provider_config(
&self,
) -> DisassociateIdentityProviderConfigFluentBuilder
pub fn disassociate_identity_provider_config( &self, ) -> DisassociateIdentityProviderConfigFluentBuilder
Constructs a fluent builder for the DisassociateIdentityProviderConfig
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
identity_provider_config(IdentityProviderConfig)
/set_identity_provider_config(Option<IdentityProviderConfig>)
:
required: trueAn object representing an identity provider configuration.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseA 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>
Source§impl Client
impl Client
Sourcepub fn list_access_entries(&self) -> ListAccessEntriesFluentBuilder
pub fn list_access_entries(&self) -> ListAccessEntriesFluentBuilder
Constructs a fluent builder for the ListAccessEntries
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
associated_policy_arn(impl Into<String>)
/set_associated_policy_arn(Option<String>)
:
required: falseThe ARN of an
AccessPolicy
. When you specify an access policy ARN, only the access entries associated to that access policy are returned. For a list of available policy ARNs, useListAccessPolicies
.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results, returned in paginated output. You receive
maxResults
in a single page, along with anextToken
response element. You can see the remaining results of the initial request by sending another request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter, 100 results and anextToken
value, if applicable, are returned.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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
ListAccessEntriesOutput
with field(s):access_entries(Option<Vec::<String>>)
:The list of access entries that exist for the cluster.
next_token(Option<String>)
:The
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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<ListAccessEntriesError>
Source§impl Client
impl Client
Sourcepub fn list_access_policies(&self) -> ListAccessPoliciesFluentBuilder
pub fn list_access_policies(&self) -> ListAccessPoliciesFluentBuilder
Constructs a fluent builder for the ListAccessPolicies
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results, returned in paginated output. You receive
maxResults
in a single page, along with anextToken
response element. You can see the remaining results of the initial request by sending another request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter, 100 results and anextToken
value, if applicable, are returned.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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
ListAccessPoliciesOutput
with field(s):access_policies(Option<Vec::<AccessPolicy>>)
:The list of available access policies. You can’t view the contents of an access policy using the API. To view the contents, see Access policy permissions in the Amazon EKS User Guide.
next_token(Option<String>)
:The
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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<ListAccessPoliciesError>
Source§impl Client
impl Client
Sourcepub fn list_addons(&self) -> ListAddonsFluentBuilder
pub fn list_addons(&self) -> ListAddonsFluentBuilder
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>)
:
required: trueThe name of your cluster.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results, returned in paginated output. You receive
maxResults
in a single page, along with anextToken
response element. You can see the remaining results of the initial request by sending another request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter, 100 results and anextToken
value, if applicable, are returned.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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 installed add-ons.
next_token(Option<String>)
:The
nextToken
value to include in a futureListAddons
request. When the results of aListAddons
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.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>
Source§impl Client
impl Client
Sourcepub fn list_associated_access_policies(
&self,
) -> ListAssociatedAccessPoliciesFluentBuilder
pub fn list_associated_access_policies( &self, ) -> ListAssociatedAccessPoliciesFluentBuilder
Constructs a fluent builder for the ListAssociatedAccessPolicies
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
principal_arn(impl Into<String>)
/set_principal_arn(Option<String>)
:
required: trueThe ARN of the IAM principal for the
AccessEntry
.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results, returned in paginated output. You receive
maxResults
in a single page, along with anextToken
response element. You can see the remaining results of the initial request by sending another request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter, 100 results and anextToken
value, if applicable, are returned.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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
ListAssociatedAccessPoliciesOutput
with field(s):cluster_name(Option<String>)
:The name of your cluster.
principal_arn(Option<String>)
:The ARN of the IAM principal for the
AccessEntry
.next_token(Option<String>)
:The
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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.
associated_access_policies(Option<Vec::<AssociatedAccessPolicy>>)
:The list of access policies associated with the access entry.
- On failure, responds with
SdkError<ListAssociatedAccessPoliciesError>
Source§impl Client
impl Client
Sourcepub fn list_clusters(&self) -> ListClustersFluentBuilder
pub fn list_clusters(&self) -> ListClustersFluentBuilder
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>)
:
required: falseThe maximum number of results, returned in paginated output. You receive
maxResults
in a single page, along with anextToken
response element. You can see the remaining results of the initial request by sending another request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter, 100 results and anextToken
value, if applicable, are returned.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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(impl Into<String>)
/set_include(Option<Vec::<String>>)
:
required: falseIndicates whether external clusters are included in the returned list. Use ‘
all
’ to return https://docs.aws.amazon.com/eks/latest/userguide/eks-connector.htmlconnected 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 Amazon Web Services Region .
next_token(Option<String>)
:The
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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<ListClustersError>
Source§impl Client
impl Client
Sourcepub fn list_eks_anywhere_subscriptions(
&self,
) -> ListEksAnywhereSubscriptionsFluentBuilder
pub fn list_eks_anywhere_subscriptions( &self, ) -> ListEksAnywhereSubscriptionsFluentBuilder
Constructs a fluent builder for the ListEksAnywhereSubscriptions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of cluster results returned by ListEksAnywhereSubscriptions in paginated output. When you use this parameter, ListEksAnywhereSubscriptions returns only maxResults results in a single page along with a nextToken response element. You can see the remaining results of the initial request by sending another ListEksAnywhereSubscriptions request with the returned nextToken value. This value can be between 1 and 100. If you don’t use this parameter, ListEksAnywhereSubscriptions returns up to 10 results and a nextToken value if applicable.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginatedListEksAnywhereSubscriptions
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.include_status(EksAnywhereSubscriptionStatus)
/set_include_status(Option<Vec::<EksAnywhereSubscriptionStatus>>)
:
required: falseAn array of subscription statuses to filter on.
- On success, responds with
ListEksAnywhereSubscriptionsOutput
with field(s):subscriptions(Option<Vec::<EksAnywhereSubscription>>)
:A list of all subscription objects in the region, filtered by includeStatus and paginated by nextToken and maxResults.
next_token(Option<String>)
:The nextToken value to include in a future ListEksAnywhereSubscriptions request. When the results of a ListEksAnywhereSubscriptions request exceed maxResults, you can use this value to retrieve the next page of results. This value is null when there are no more results to return.
- On failure, responds with
SdkError<ListEksAnywhereSubscriptionsError>
Source§impl Client
impl Client
Sourcepub fn list_fargate_profiles(&self) -> ListFargateProfilesFluentBuilder
pub fn list_fargate_profiles(&self) -> ListFargateProfilesFluentBuilder
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>)
:
required: trueThe name of your cluster.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results, returned in paginated output. You receive
maxResults
in a single page, along with anextToken
response element. You can see the remaining results of the initial request by sending another request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter, 100 results and anextToken
value, if applicable, are returned.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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
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 returned from a previous paginated 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 value is null when there are no more results to return.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<ListFargateProfilesError>
Source§impl Client
impl Client
Sourcepub fn list_identity_provider_configs(
&self,
) -> ListIdentityProviderConfigsFluentBuilder
pub fn list_identity_provider_configs( &self, ) -> ListIdentityProviderConfigsFluentBuilder
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>)
:
required: trueThe name of your cluster.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results, returned in paginated output. You receive
maxResults
in a single page, along with anextToken
response element. You can see the remaining results of the initial request by sending another request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter, 100 results and anextToken
value, if applicable, are returned.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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
ListIdentityProviderConfigsOutput
with field(s):identity_provider_configs(Option<Vec::<IdentityProviderConfig>>)
:The identity provider configurations for the cluster.
next_token(Option<String>)
:The
nextToken
value to include in a futureListIdentityProviderConfigsResponse
request. When the results of aListIdentityProviderConfigsResponse
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.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<ListIdentityProviderConfigsError>
Source§impl Client
impl Client
Sourcepub fn list_insights(&self) -> ListInsightsFluentBuilder
pub fn list_insights(&self) -> ListInsightsFluentBuilder
Constructs a fluent builder for the ListInsights
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of the Amazon EKS cluster associated with the insights.
filter(InsightsFilter)
/set_filter(Option<InsightsFilter>)
:
required: falseThe criteria to filter your list of insights for your cluster. You can filter which insights are returned by category, associated Kubernetes version, and status.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of identity provider configurations returned by
ListInsights
in paginated output. When you use this parameter,ListInsights
returns onlymaxResults
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListInsights
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListInsights
returns up to 100 results and anextToken
value, if applicable.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginatedListInsights
request. When the results of aListInsights
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 success, responds with
ListInsightsOutput
with field(s):insights(Option<Vec::<InsightSummary>>)
:The returned list of insights.
next_token(Option<String>)
:The
nextToken
value to include in a futureListInsights
request. When the results of aListInsights
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<ListInsightsError>
Source§impl Client
impl Client
Sourcepub fn list_nodegroups(&self) -> ListNodegroupsFluentBuilder
pub fn list_nodegroups(&self) -> ListNodegroupsFluentBuilder
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>)
:
required: trueThe name of your cluster.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results, returned in paginated output. You receive
maxResults
in a single page, along with anextToken
response element. You can see the remaining results of the initial request by sending another request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter, 100 results and anextToken
value, if applicable, are returned.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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
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 returned from a previous paginated 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 value is null when there are no more results to return.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<ListNodegroupsError>
Source§impl Client
impl Client
Sourcepub fn list_pod_identity_associations(
&self,
) -> ListPodIdentityAssociationsFluentBuilder
pub fn list_pod_identity_associations( &self, ) -> ListPodIdentityAssociationsFluentBuilder
Constructs a fluent builder for the ListPodIdentityAssociations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of the cluster that the associations are in.
namespace(impl Into<String>)
/set_namespace(Option<String>)
:
required: falseThe name of the Kubernetes namespace inside the cluster that the associations are in.
service_account(impl Into<String>)
/set_service_account(Option<String>)
:
required: falseThe name of the Kubernetes service account that the associations use.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of EKS Pod Identity association results returned by
ListPodIdentityAssociations
in paginated output. When you use this parameter,ListPodIdentityAssociations
returns onlymaxResults
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListPodIdentityAssociations
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListPodIdentityAssociations
returns up to 100 results and anextToken
value if applicable.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
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.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
ListPodIdentityAssociationsOutput
with field(s):associations(Option<Vec::<PodIdentityAssociationSummary>>)
:The list of summarized descriptions of the associations that are in the cluster and match any filters that you provided.
Each summary is simplified by removing these fields compared to the full
PodIdentityAssociation
:-
The IAM role:
roleArn
-
The timestamp that the association was created at:
createdAt
-
The most recent timestamp that the association was modified at:.
modifiedAt
-
The tags on the association:
tags
-
next_token(Option<String>)
:The
nextToken
value to include in a futureListPodIdentityAssociations
request. When the results of aListPodIdentityAssociations
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.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<ListPodIdentityAssociationsError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) that identifies the resource to list tags for.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<HashMap::<String, String>>)
:The tags for the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
Source§impl Client
impl Client
Sourcepub fn list_updates(&self) -> ListUpdatesFluentBuilder
pub fn list_updates(&self) -> ListUpdatesFluentBuilder
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>)
:
required: trueThe name of the Amazon EKS cluster to list updates for.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:
required: falseThe name of the Amazon EKS managed node group to list updates for.
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:
required: falseThe names of the installed add-ons that have available updates.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginated 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 value is null when there are no more results to return.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.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results, returned in paginated output. You receive
maxResults
in a single page, along with anextToken
response element. You can see the remaining results of the initial request by sending another request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter, 100 results and anextToken
value, if applicable, are returned.
- 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 returned from a previous paginated 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 value is null when there are no more results to return.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<ListUpdatesError>
Source§impl Client
impl Client
Sourcepub fn register_cluster(&self) -> RegisterClusterFluentBuilder
pub fn register_cluster(&self) -> RegisterClusterFluentBuilder
Constructs a fluent builder for the RegisterCluster
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueA unique name for this cluster in your Amazon Web Services Region.
connector_config(ConnectorConfigRequest)
/set_connector_config(Option<ConnectorConfigRequest>)
:
required: trueThe 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>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseMetadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don’t propagate to any other cluster or Amazon Web Services resources.
- On success, responds with
RegisterClusterOutput
with field(s):cluster(Option<Cluster>)
:An object representing an Amazon EKS cluster.
- On failure, responds with
SdkError<RegisterClusterError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource to add tags to.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: trueMetadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don’t propagate to any other cluster or Amazon Web Services resources.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource to delete tags from.
tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec::<String>>)
:
required: trueThe keys of the tags to remove.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_access_entry(&self) -> UpdateAccessEntryFluentBuilder
pub fn update_access_entry(&self) -> UpdateAccessEntryFluentBuilder
Constructs a fluent builder for the UpdateAccessEntry
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
principal_arn(impl Into<String>)
/set_principal_arn(Option<String>)
:
required: trueThe ARN of the IAM principal for the
AccessEntry
.kubernetes_groups(impl Into<String>)
/set_kubernetes_groups(Option<Vec::<String>>)
:
required: falseThe value for
name
that you’ve specified forkind: Group
as asubject
in a KubernetesRoleBinding
orClusterRoleBinding
object. Amazon EKS doesn’t confirm that the value forname
exists in any bindings on your cluster. You can specify one or more names.Kubernetes authorizes the
principalArn
of the access entry to access any cluster objects that you’ve specified in a KubernetesRole
orClusterRole
object that is also specified in a binding’sroleRef
. For more information about creating KubernetesRoleBinding
,ClusterRoleBinding
,Role
, orClusterRole
objects, see Using RBAC Authorization in the Kubernetes documentation.If you want Amazon EKS to authorize the
principalArn
(instead of, or in addition to Kubernetes authorizing theprincipalArn
), you can associate one or more access policies to the access entry usingAssociateAccessPolicy
. If you associate any access policies, theprincipalARN
has all permissions assigned in the associated access policies and all permissions in any KubernetesRole
orClusterRole
objects that the group names are bound to.client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
username(impl Into<String>)
/set_username(Option<String>)
:
required: falseThe username to authenticate to Kubernetes with. We recommend not specifying a username and letting Amazon EKS specify it for you. For more information about the value Amazon EKS specifies for you, or constraints before specifying your own username, see Creating access entries in the Amazon EKS User Guide.
- On success, responds with
UpdateAccessEntryOutput
with field(s):access_entry(Option<AccessEntry>)
:The ARN of the IAM principal for the
AccessEntry
.
- On failure, responds with
SdkError<UpdateAccessEntryError>
Source§impl Client
impl Client
Sourcepub fn update_addon(&self) -> UpdateAddonFluentBuilder
pub fn update_addon(&self) -> UpdateAddonFluentBuilder
Constructs a fluent builder for the UpdateAddon
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
addon_name(impl Into<String>)
/set_addon_name(Option<String>)
:
required: trueThe 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>)
:
required: falseThe 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>)
:
required: falseThe 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>)
:
required: falseHow 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>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
configuration_values(impl Into<String>)
/set_configuration_values(Option<String>)
:
required: falseThe set of configuration values for the add-on that’s created. The values that you provide are validated against the schema returned by
DescribeAddonConfiguration
.pod_identity_associations(AddonPodIdentityAssociations)
/set_pod_identity_associations(Option<Vec::<AddonPodIdentityAssociations>>)
:
required: falseAn array of Pod Identity Assocations to be updated. Each EKS Pod Identity association maps a Kubernetes service account to an IAM Role. If this value is left blank, no change. If an empty array is provided, existing Pod Identity Assocations owned by the Addon are deleted.
For more information, see Attach an IAM Role to an Amazon EKS add-on using Pod Identity in the Amazon EKS User Guide.
- On success, responds with
UpdateAddonOutput
with field(s):update(Option<Update>)
:An object representing an asynchronous update.
- On failure, responds with
SdkError<UpdateAddonError>
Source§impl Client
impl Client
Sourcepub fn update_cluster_config(&self) -> UpdateClusterConfigFluentBuilder
pub fn update_cluster_config(&self) -> UpdateClusterConfigFluentBuilder
Constructs a fluent builder for the UpdateClusterConfig
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the Amazon EKS cluster to update.
resources_vpc_config(VpcConfigRequest)
/set_resources_vpc_config(Option<VpcConfigRequest>)
:
required: falseAn object representing the VPC configuration to use for an Amazon EKS cluster.
logging(Logging)
/set_logging(Option<Logging>)
:
required: falseEnable 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>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
access_config(UpdateAccessConfigRequest)
/set_access_config(Option<UpdateAccessConfigRequest>)
:
required: falseThe access configuration for the cluster.
upgrade_policy(UpgradePolicyRequest)
/set_upgrade_policy(Option<UpgradePolicyRequest>)
:
required: falseYou can enable or disable extended support for clusters currently on standard support. You cannot disable extended support once it starts. You must enable extended support before your cluster exits standard support.
zonal_shift_config(ZonalShiftConfigRequest)
/set_zonal_shift_config(Option<ZonalShiftConfigRequest>)
:
required: falseEnable or disable ARC zonal shift for the cluster. If zonal shift is enabled, Amazon Web Services configures zonal autoshift for the cluster.
Zonal shift is a feature of Amazon Application Recovery Controller (ARC). ARC zonal shift is designed to be a temporary measure that allows you to move traffic for a resource away from an impaired AZ until the zonal shift expires or you cancel it. You can extend the zonal shift if necessary.
You can start a zonal shift for an EKS cluster, or you can allow Amazon Web Services to do it for you by enabling zonal autoshift. This shift updates the flow of east-to-west network traffic in your cluster to only consider network endpoints for Pods running on worker nodes in healthy AZs. Additionally, any ALB or NLB handling ingress traffic for applications in your EKS cluster will automatically route traffic to targets in the healthy AZs. For more information about zonal shift in EKS, see Learn about Amazon Application Recovery Controller (ARC) Zonal Shift in Amazon EKS in the Amazon EKS User Guide .
compute_config(ComputeConfigRequest)
/set_compute_config(Option<ComputeConfigRequest>)
:
required: falseUpdate the configuration of the compute capability of your EKS Auto Mode cluster. For example, enable the capability.
kubernetes_network_config(KubernetesNetworkConfigRequest)
/set_kubernetes_network_config(Option<KubernetesNetworkConfigRequest>)
:
required: falseThe Kubernetes network configuration for the cluster.
storage_config(StorageConfigRequest)
/set_storage_config(Option<StorageConfigRequest>)
:
required: falseUpdate the configuration of the block storage capability of your EKS Auto Mode cluster. For example, enable the capability.
remote_network_config(RemoteNetworkConfigRequest)
/set_remote_network_config(Option<RemoteNetworkConfigRequest>)
:
required: falseThe configuration in the cluster for EKS Hybrid Nodes. You can add, change, or remove this configuration after the cluster is created.
- On success, responds with
UpdateClusterConfigOutput
with field(s):update(Option<Update>)
:An object representing an asynchronous update.
- On failure, responds with
SdkError<UpdateClusterConfigError>
Source§impl Client
impl Client
Sourcepub fn update_cluster_version(&self) -> UpdateClusterVersionFluentBuilder
pub fn update_cluster_version(&self) -> UpdateClusterVersionFluentBuilder
Constructs a fluent builder for the UpdateClusterVersion
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the Amazon EKS cluster to update.
version(impl Into<String>)
/set_version(Option<String>)
:
required: trueThe desired Kubernetes version following a successful update.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
force(bool)
/set_force(Option<bool>)
:
required: falseSet this value to
true
to override upgrade-blocking readiness checks when updating a cluster.
- On success, responds with
UpdateClusterVersionOutput
with field(s):update(Option<Update>)
:The full description of the specified update
- On failure, responds with
SdkError<UpdateClusterVersionError>
Source§impl Client
impl Client
Sourcepub fn update_eks_anywhere_subscription(
&self,
) -> UpdateEksAnywhereSubscriptionFluentBuilder
pub fn update_eks_anywhere_subscription( &self, ) -> UpdateEksAnywhereSubscriptionFluentBuilder
Constructs a fluent builder for the UpdateEksAnywhereSubscription
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the subscription.
auto_renew(bool)
/set_auto_renew(Option<bool>)
:
required: trueA boolean indicating whether or not to automatically renew the subscription.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseUnique, case-sensitive identifier to ensure the idempotency of the request.
- On success, responds with
UpdateEksAnywhereSubscriptionOutput
with field(s):subscription(Option<EksAnywhereSubscription>)
:The full description of the updated subscription.
- On failure, responds with
SdkError<UpdateEksAnywhereSubscriptionError>
Source§impl Client
impl Client
Sourcepub fn update_nodegroup_config(&self) -> UpdateNodegroupConfigFluentBuilder
pub fn update_nodegroup_config(&self) -> UpdateNodegroupConfigFluentBuilder
Constructs a fluent builder for the UpdateNodegroupConfig
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:
required: trueThe name of the managed node group to update.
labels(UpdateLabelsPayload)
/set_labels(Option<UpdateLabelsPayload>)
:
required: falseThe Kubernetes
labels
to apply to the nodes in the node group after the update.taints(UpdateTaintsPayload)
/set_taints(Option<UpdateTaintsPayload>)
:
required: falseThe 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>)
:
required: falseThe scaling configuration details for the Auto Scaling group after the update.
update_config(NodegroupUpdateConfig)
/set_update_config(Option<NodegroupUpdateConfig>)
:
required: falseThe node group update configuration.
node_repair_config(NodeRepairConfig)
/set_node_repair_config(Option<NodeRepairConfig>)
:
required: falseThe node auto repair configuration for the node group.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseA 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>
Source§impl Client
impl Client
Sourcepub fn update_nodegroup_version(&self) -> UpdateNodegroupVersionFluentBuilder
pub fn update_nodegroup_version(&self) -> UpdateNodegroupVersionFluentBuilder
Constructs a fluent builder for the UpdateNodegroupVersion
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of your cluster.
nodegroup_name(impl Into<String>)
/set_nodegroup_name(Option<String>)
:
required: trueThe name of the managed node group to update.
version(impl Into<String>)
/set_version(Option<String>)
:
required: falseThe 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 Customizing managed nodes with launch templates in the Amazon EKS User Guide.release_version(impl Into<String>)
/set_release_version(Option<String>)
:
required: falseThe 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 Customizing managed nodes with launch templates in the Amazon EKS User Guide.launch_template(LaunchTemplateSpecification)
/set_launch_template(Option<LaunchTemplateSpecification>)
:
required: falseAn 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. When updating, you must specify the same launch template ID or name that was used to create the node group.
force(bool)
/set_force(Option<bool>)
:
required: falseForce the update if any
Pod
on the existing node group can’t be drained due to aPod
disruption budget issue. If an update fails because all Pods can’t be drained, you can force the update after it fails to terminate the old node whether or not anyPod
is running on the node.client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseA 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 update_pod_identity_association(
&self,
) -> UpdatePodIdentityAssociationFluentBuilder
pub fn update_pod_identity_association( &self, ) -> UpdatePodIdentityAssociationFluentBuilder
Constructs a fluent builder for the UpdatePodIdentityAssociation
operation.
- The fluent builder is configurable:
cluster_name(impl Into<String>)
/set_cluster_name(Option<String>)
:
required: trueThe name of the cluster that you want to update the association in.
association_id(impl Into<String>)
/set_association_id(Option<String>)
:
required: trueThe ID of the association to be updated.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:
required: falseThe new IAM role to change the
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- On success, responds with
UpdatePodIdentityAssociationOutput
with field(s):association(Option<PodIdentityAssociation>)
:The full description of the EKS Pod Identity association that was updated.
- On failure, responds with
SdkError<UpdatePodIdentityAssociationError>
Source§impl Client
impl Client
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 in the following cases:
- Retries or timeouts are enabled without a
sleep_impl
configured. - Identity caching is enabled without a
sleep_impl
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
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. - This method will panic if no
BehaviorVersion
is provided. If you experience this panic, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
Source§impl Waiters for Client
impl Waiters for Client
Source§fn wait_until_addon_active(&self) -> AddonActiveFluentBuilder
fn wait_until_addon_active(&self) -> AddonActiveFluentBuilder
addon_active
Source§fn wait_until_addon_deleted(&self) -> AddonDeletedFluentBuilder
fn wait_until_addon_deleted(&self) -> AddonDeletedFluentBuilder
addon_deleted
Source§fn wait_until_cluster_active(&self) -> ClusterActiveFluentBuilder
fn wait_until_cluster_active(&self) -> ClusterActiveFluentBuilder
cluster_active
Source§fn wait_until_cluster_deleted(&self) -> ClusterDeletedFluentBuilder
fn wait_until_cluster_deleted(&self) -> ClusterDeletedFluentBuilder
cluster_deleted
Source§fn wait_until_fargate_profile_active(&self) -> FargateProfileActiveFluentBuilder
fn wait_until_fargate_profile_active(&self) -> FargateProfileActiveFluentBuilder
fargate_profile_active
Source§fn wait_until_fargate_profile_deleted(
&self,
) -> FargateProfileDeletedFluentBuilder
fn wait_until_fargate_profile_deleted( &self, ) -> FargateProfileDeletedFluentBuilder
fargate_profile_deleted
Source§fn wait_until_nodegroup_active(&self) -> NodegroupActiveFluentBuilder
fn wait_until_nodegroup_active(&self) -> NodegroupActiveFluentBuilder
nodegroup_active
Source§fn wait_until_nodegroup_deleted(&self) -> NodegroupDeletedFluentBuilder
fn wait_until_nodegroup_deleted(&self) -> NodegroupDeletedFluentBuilder
nodegroup_deleted
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);