Struct aws_sdk_eks::client::fluent_builders::CreateAddon
source · pub struct CreateAddon { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateAddon
.
Creates an Amazon EKS add-on.
Amazon EKS add-ons help to automate the provisioning and lifecycle management of common operational software for Amazon EKS clusters. For more information, see Amazon EKS add-ons in the Amazon EKS User Guide.
Implementations§
source§impl CreateAddon
impl CreateAddon
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateAddon, AwsResponseRetryClassifier>, SdkError<CreateAddonError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateAddon, AwsResponseRetryClassifier>, SdkError<CreateAddonError>>
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<CreateAddonOutput, SdkError<CreateAddonError>>
pub async fn send(self) -> Result<CreateAddonOutput, SdkError<CreateAddonError>>
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 to create the add-on for.
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 to create the add-on for.
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 that DescribeAddonVersions
returns.
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 that DescribeAddonVersions
returns.
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. Conflicts are handled based on the value you choose:
-
None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change the value. Creation of the add-on might fail.
-
Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value.
-
Preserve – Not supported. You can set this value when updating an add-on though. For more information, see UpdateAddon.
If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify.
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. Conflicts are handled based on the value you choose:
-
None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change the value. Creation of the add-on might fail.
-
Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value.
-
Preserve – Not supported. You can set this value when updating an add-on though. For more information, see UpdateAddon.
If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
A 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
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The metadata to apply to the cluster to assist with categorization and organization. Each tag consists of a key and an optional value. You define both.
The metadata to apply to the cluster to assist with categorization and organization. Each tag consists of a key and an optional value. You define both.
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 CreateAddon
impl Clone for CreateAddon
source§fn clone(&self) -> CreateAddon
fn clone(&self) -> CreateAddon
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more