Struct aws_sdk_eks::client::fluent_builders::UpdateAddon
source · pub struct UpdateAddon { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateAddon
.
Updates an Amazon EKS add-on.
Implementations§
source§impl UpdateAddon
impl UpdateAddon
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateAddon, AwsResponseRetryClassifier>, SdkError<UpdateAddonError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateAddon, AwsResponseRetryClassifier>, SdkError<UpdateAddonError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<UpdateAddonOutput, SdkError<UpdateAddonError>>
pub async fn send(self) -> Result<UpdateAddonOutput, SdkError<UpdateAddonError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn cluster_name(self, input: impl Into<String>) -> Self
pub fn cluster_name(self, input: impl Into<String>) -> Self
The name of the cluster.
sourcepub fn set_cluster_name(self, input: Option<String>) -> Self
pub fn set_cluster_name(self, input: Option<String>) -> Self
The name of the cluster.
sourcepub fn addon_name(self, input: impl Into<String>) -> Self
pub fn addon_name(self, input: impl Into<String>) -> Self
The name of the add-on. The name must match one of the names returned by ListAddons
.
sourcepub fn set_addon_name(self, input: Option<String>) -> Self
pub fn set_addon_name(self, input: Option<String>) -> Self
The name of the add-on. The name must match one of the names returned by ListAddons
.
sourcepub fn addon_version(self, input: impl Into<String>) -> Self
pub fn addon_version(self, input: impl Into<String>) -> Self
The version of the add-on. The version must match one of the versions returned by DescribeAddonVersions
.
sourcepub fn set_addon_version(self, input: Option<String>) -> Self
pub fn set_addon_version(self, input: Option<String>) -> Self
The version of the add-on. The version must match one of the versions returned by DescribeAddonVersions
.
sourcepub fn service_account_role_arn(self, input: impl Into<String>) -> Self
pub fn service_account_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide.
To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. For more information, see Enabling IAM roles for service accounts on your cluster in the Amazon EKS User Guide.
sourcepub fn set_service_account_role_arn(self, input: Option<String>) -> Self
pub fn set_service_account_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide.
To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. For more information, see Enabling IAM roles for service accounts on your cluster in the Amazon EKS User Guide.
sourcepub fn resolve_conflicts(self, input: ResolveConflicts) -> Self
pub fn resolve_conflicts(self, input: ResolveConflicts) -> Self
How to resolve field value conflicts for an Amazon EKS add-on if you've changed a value from the Amazon EKS default value. Conflicts are handled based on the option you choose:
-
None – Amazon EKS doesn't change the value. The update might fail.
-
Overwrite – Amazon EKS overwrites the changed value back to the Amazon EKS default value.
-
Preserve – Amazon EKS preserves the value. If you choose this option, we recommend that you test any field and value changes on a non-production cluster before updating the add-on on your production cluster.
sourcepub fn set_resolve_conflicts(self, input: Option<ResolveConflicts>) -> Self
pub fn set_resolve_conflicts(self, input: Option<ResolveConflicts>) -> Self
How to resolve field value conflicts for an Amazon EKS add-on if you've changed a value from the Amazon EKS default value. Conflicts are handled based on the option you choose:
-
None – Amazon EKS doesn't change the value. The update might fail.
-
Overwrite – Amazon EKS overwrites the changed value back to the Amazon EKS default value.
-
Preserve – Amazon EKS preserves the value. If you choose this option, we recommend that you test any field and value changes on a non-production cluster before updating the add-on on your production cluster.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn configuration_values(self, input: impl Into<String>) -> Self
pub fn configuration_values(self, input: impl Into<String>) -> Self
The set of configuration values for the add-on that's created. The values that you provide are validated against the schema in DescribeAddonConfiguration.
sourcepub fn set_configuration_values(self, input: Option<String>) -> Self
pub fn set_configuration_values(self, input: Option<String>) -> Self
The set of configuration values for the add-on that's created. The values that you provide are validated against the schema in DescribeAddonConfiguration.
Trait Implementations§
source§impl Clone for UpdateAddon
impl Clone for UpdateAddon
source§fn clone(&self) -> UpdateAddon
fn clone(&self) -> UpdateAddon
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more