Struct aws_sdk_eks::client::fluent_builders::CreateCluster
source · pub struct CreateCluster { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateCluster
.
Creates an Amazon EKS control plane.
The Amazon EKS control plane consists of control plane instances that run the Kubernetes software, such as etcd
and the API server. The control plane runs in an account managed by Amazon Web Services, and the Kubernetes API is exposed by the Amazon EKS API server endpoint. Each Amazon EKS cluster control plane is single tenant and unique. It runs on its own set of Amazon EC2 instances.
The cluster control plane is provisioned across multiple Availability Zones and fronted by an Elastic Load Balancing Network Load Balancer. Amazon EKS also provisions elastic network interfaces in your VPC subnets to provide connectivity from the control plane instances to the nodes (for example, to support kubectl exec
, logs
, and proxy
data flows).
Amazon EKS nodes run in your Amazon Web Services account and connect to your cluster's control plane over the Kubernetes API server endpoint and a certificate file that is created for your cluster.
In most cases, it takes several minutes to create a cluster. After you create an Amazon EKS cluster, you must configure your Kubernetes tooling to communicate with the API server and launch nodes into your cluster. For more information, see Managing Cluster Authentication and Launching Amazon EKS nodes in the Amazon EKS User Guide.
Implementations§
source§impl CreateCluster
impl CreateCluster
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateCluster, AwsResponseRetryClassifier>, SdkError<CreateClusterError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateCluster, AwsResponseRetryClassifier>, SdkError<CreateClusterError>>
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<CreateClusterOutput, SdkError<CreateClusterError>>
pub async fn send(
self
) -> Result<CreateClusterOutput, SdkError<CreateClusterError>>
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 version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
The desired Kubernetes version for your cluster. If you don't specify a value here, the default version available in Amazon EKS is used.
The default version might not be the latest version available.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The desired Kubernetes version for your cluster. If you don't specify a value here, the default version available in Amazon EKS is used.
The default version might not be the latest version available.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to Amazon Web Services API operations on your behalf. For more information, see Amazon EKS Service IAM Role in the Amazon EKS User Guide .
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to Amazon Web Services API operations on your behalf. For more information, see Amazon EKS Service IAM Role in the Amazon EKS User Guide .
sourcepub fn resources_vpc_config(self, input: VpcConfigRequest) -> Self
pub fn resources_vpc_config(self, input: VpcConfigRequest) -> Self
The VPC configuration that's used by the cluster control plane. Amazon EKS VPC resources have specific requirements to work properly with Kubernetes. For more information, see Cluster VPC Considerations and Cluster Security Group Considerations in the Amazon EKS User Guide. You must specify at least two subnets. You can specify up to five security groups. However, we recommend that you use a dedicated security group for your cluster control plane.
sourcepub fn set_resources_vpc_config(self, input: Option<VpcConfigRequest>) -> Self
pub fn set_resources_vpc_config(self, input: Option<VpcConfigRequest>) -> Self
The VPC configuration that's used by the cluster control plane. Amazon EKS VPC resources have specific requirements to work properly with Kubernetes. For more information, see Cluster VPC Considerations and Cluster Security Group Considerations in the Amazon EKS User Guide. You must specify at least two subnets. You can specify up to five security groups. However, we recommend that you use a dedicated security group for your cluster control plane.
sourcepub fn kubernetes_network_config(
self,
input: KubernetesNetworkConfigRequest
) -> Self
pub fn kubernetes_network_config(
self,
input: KubernetesNetworkConfigRequest
) -> Self
The Kubernetes network configuration for the cluster.
sourcepub fn set_kubernetes_network_config(
self,
input: Option<KubernetesNetworkConfigRequest>
) -> Self
pub fn set_kubernetes_network_config(
self,
input: Option<KubernetesNetworkConfigRequest>
) -> Self
The Kubernetes network configuration for the cluster.
sourcepub fn logging(self, input: Logging) -> Self
pub fn logging(self, input: Logging) -> Self
Enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more information, see Amazon EKS Cluster control plane logs in the Amazon EKS User Guide .
CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see CloudWatch Pricing.
sourcepub fn set_logging(self, input: Option<Logging>) -> Self
pub fn set_logging(self, input: Option<Logging>) -> Self
Enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more information, see Amazon EKS Cluster control plane logs in the Amazon EKS User Guide .
CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see CloudWatch Pricing.
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.
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 encryption_config(self, input: EncryptionConfig) -> Self
pub fn encryption_config(self, input: EncryptionConfig) -> Self
Appends an item to encryptionConfig
.
To override the contents of this collection use set_encryption_config
.
The encryption configuration for the cluster.
sourcepub fn set_encryption_config(self, input: Option<Vec<EncryptionConfig>>) -> Self
pub fn set_encryption_config(self, input: Option<Vec<EncryptionConfig>>) -> Self
The encryption configuration for the cluster.
sourcepub fn outpost_config(self, input: OutpostConfigRequest) -> Self
pub fn outpost_config(self, input: OutpostConfigRequest) -> Self
An object representing the configuration of your local Amazon EKS cluster on an Amazon Web Services Outpost. Before creating a local cluster on an Outpost, review Local clusters for Amazon EKS on Amazon Web Services Outposts in the Amazon EKS User Guide. This object isn't available for creating Amazon EKS clusters on the Amazon Web Services cloud.
sourcepub fn set_outpost_config(self, input: Option<OutpostConfigRequest>) -> Self
pub fn set_outpost_config(self, input: Option<OutpostConfigRequest>) -> Self
An object representing the configuration of your local Amazon EKS cluster on an Amazon Web Services Outpost. Before creating a local cluster on an Outpost, review Local clusters for Amazon EKS on Amazon Web Services Outposts in the Amazon EKS User Guide. This object isn't available for creating Amazon EKS clusters on the Amazon Web Services cloud.
Trait Implementations§
source§impl Clone for CreateCluster
impl Clone for CreateCluster
source§fn clone(&self) -> CreateCluster
fn clone(&self) -> CreateCluster
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more