Skip to main content

aws_sdk_eks/operation/create_cluster/
_create_cluster_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct CreateClusterInput {
6    /// <p>The 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.</p>
7    pub name: ::std::option::Option<::std::string::String>,
8    /// <p>The desired Kubernetes version for your cluster. If you don't specify a value here, the default version available in Amazon EKS is used.</p><note>
9    /// <p>The default version might not be the latest version available.</p>
10    /// </note>
11    pub version: ::std::option::Option<::std::string::String>,
12    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/service_IAM_role.html">Amazon EKS Service IAM Role</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p>
13    pub role_arn: ::std::option::Option<::std::string::String>,
14    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html">Cluster VPC Considerations</a> and <a href="https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html">Cluster Security Group Considerations</a> in the <i>Amazon EKS User Guide</i>. 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.</p>
15    pub resources_vpc_config: ::std::option::Option<crate::types::VpcConfigRequest>,
16    /// <p>The Kubernetes network configuration for the cluster.</p>
17    pub kubernetes_network_config: ::std::option::Option<crate::types::KubernetesNetworkConfigRequest>,
18    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html">Amazon EKS Cluster control plane logs</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p><note>
19    /// <p>CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see <a href="http://aws.amazon.com/cloudwatch/pricing/">CloudWatch Pricing</a>.</p>
20    /// </note>
21    pub logging: ::std::option::Option<crate::types::Logging>,
22    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
23    pub client_request_token: ::std::option::Option<::std::string::String>,
24    /// <p>Metadata 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.</p>
25    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
26    /// <p>The encryption configuration for the cluster.</p>
27    pub encryption_config: ::std::option::Option<::std::vec::Vec<crate::types::EncryptionConfig>>,
28    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/eks-outposts-local-cluster-overview.html">Local clusters for Amazon EKS on Amazon Web Services Outposts</a> in the <i>Amazon EKS User Guide</i>. This object isn't available for creating Amazon EKS clusters on the Amazon Web Services cloud.</p>
29    pub outpost_config: ::std::option::Option<crate::types::OutpostConfigRequest>,
30    /// <p>The access configuration for the cluster.</p>
31    pub access_config: ::std::option::Option<crate::types::CreateAccessConfigRequest>,
32    /// <p>If you set this value to <code>False</code> when creating a cluster, the default networking add-ons will not be installed.</p>
33    /// <p>The default networking add-ons include <code>vpc-cni</code>, <code>coredns</code>, and <code>kube-proxy</code>.</p>
34    /// <p>Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.</p>
35    pub bootstrap_self_managed_addons: ::std::option::Option<bool>,
36    /// <p>New clusters, by default, have extended support enabled. You can disable extended support when creating a cluster by setting this value to <code>STANDARD</code>.</p>
37    pub upgrade_policy: ::std::option::Option<crate::types::UpgradePolicyRequest>,
38    /// <p>Enable or disable ARC zonal shift for the cluster. If zonal shift is enabled, Amazon Web Services configures zonal autoshift for the cluster.</p>
39    /// <p>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.</p>
40    /// <p>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 <i>zonal autoshift</i>. 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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/zone-shift.html">Learn about Amazon Application Recovery Controller (ARC) Zonal Shift in Amazon EKS</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p>
41    pub zonal_shift_config: ::std::option::Option<crate::types::ZonalShiftConfigRequest>,
42    /// <p>The configuration in the cluster for EKS Hybrid Nodes. You can add, change, or remove this configuration after the cluster is created.</p>
43    pub remote_network_config: ::std::option::Option<crate::types::RemoteNetworkConfigRequest>,
44    /// <p>Enable 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</p>
45    pub compute_config: ::std::option::Option<crate::types::ComputeConfigRequest>,
46    /// <p>Enable 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.</p>
47    pub storage_config: ::std::option::Option<crate::types::StorageConfigRequest>,
48    /// <p>Indicates whether to enable deletion protection for the cluster. When enabled, the cluster cannot be deleted unless deletion protection is first disabled. This helps prevent accidental cluster deletion. Default value is <code>false</code>.</p>
49    pub deletion_protection: ::std::option::Option<bool>,
50    /// <p>The control plane scaling tier configuration. For more information, see EKS Provisioned Control Plane in the Amazon EKS User Guide.</p>
51    pub control_plane_scaling_config: ::std::option::Option<crate::types::ControlPlaneScalingConfig>,
52    /// <p>The Kubernetes API server configuration for the new cluster.</p>
53    pub kube_api_server_config: ::std::option::Option<crate::types::KubeApiServerConfigRequest>,
54    /// <p>The Kubernetes scheduler configuration for the new cluster.</p>
55    pub kube_scheduler_config: ::std::option::Option<crate::types::KubeSchedulerConfigRequest>,
56    /// <p>The Kubernetes controller manager configuration for the new cluster.</p>
57    pub kube_controller_manager_config: ::std::option::Option<crate::types::KubeControllerManagerConfigRequest>,
58}
59impl CreateClusterInput {
60    /// <p>The 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.</p>
61    pub fn name(&self) -> ::std::option::Option<&str> {
62        self.name.as_deref()
63    }
64    /// <p>The desired Kubernetes version for your cluster. If you don't specify a value here, the default version available in Amazon EKS is used.</p><note>
65    /// <p>The default version might not be the latest version available.</p>
66    /// </note>
67    pub fn version(&self) -> ::std::option::Option<&str> {
68        self.version.as_deref()
69    }
70    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/service_IAM_role.html">Amazon EKS Service IAM Role</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p>
71    pub fn role_arn(&self) -> ::std::option::Option<&str> {
72        self.role_arn.as_deref()
73    }
74    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html">Cluster VPC Considerations</a> and <a href="https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html">Cluster Security Group Considerations</a> in the <i>Amazon EKS User Guide</i>. 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.</p>
75    pub fn resources_vpc_config(&self) -> ::std::option::Option<&crate::types::VpcConfigRequest> {
76        self.resources_vpc_config.as_ref()
77    }
78    /// <p>The Kubernetes network configuration for the cluster.</p>
79    pub fn kubernetes_network_config(&self) -> ::std::option::Option<&crate::types::KubernetesNetworkConfigRequest> {
80        self.kubernetes_network_config.as_ref()
81    }
82    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html">Amazon EKS Cluster control plane logs</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p><note>
83    /// <p>CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see <a href="http://aws.amazon.com/cloudwatch/pricing/">CloudWatch Pricing</a>.</p>
84    /// </note>
85    pub fn logging(&self) -> ::std::option::Option<&crate::types::Logging> {
86        self.logging.as_ref()
87    }
88    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
89    pub fn client_request_token(&self) -> ::std::option::Option<&str> {
90        self.client_request_token.as_deref()
91    }
92    /// <p>Metadata 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.</p>
93    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
94        self.tags.as_ref()
95    }
96    /// <p>The encryption configuration for the cluster.</p>
97    ///
98    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.encryption_config.is_none()`.
99    pub fn encryption_config(&self) -> &[crate::types::EncryptionConfig] {
100        self.encryption_config.as_deref().unwrap_or_default()
101    }
102    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/eks-outposts-local-cluster-overview.html">Local clusters for Amazon EKS on Amazon Web Services Outposts</a> in the <i>Amazon EKS User Guide</i>. This object isn't available for creating Amazon EKS clusters on the Amazon Web Services cloud.</p>
103    pub fn outpost_config(&self) -> ::std::option::Option<&crate::types::OutpostConfigRequest> {
104        self.outpost_config.as_ref()
105    }
106    /// <p>The access configuration for the cluster.</p>
107    pub fn access_config(&self) -> ::std::option::Option<&crate::types::CreateAccessConfigRequest> {
108        self.access_config.as_ref()
109    }
110    /// <p>If you set this value to <code>False</code> when creating a cluster, the default networking add-ons will not be installed.</p>
111    /// <p>The default networking add-ons include <code>vpc-cni</code>, <code>coredns</code>, and <code>kube-proxy</code>.</p>
112    /// <p>Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.</p>
113    pub fn bootstrap_self_managed_addons(&self) -> ::std::option::Option<bool> {
114        self.bootstrap_self_managed_addons
115    }
116    /// <p>New clusters, by default, have extended support enabled. You can disable extended support when creating a cluster by setting this value to <code>STANDARD</code>.</p>
117    pub fn upgrade_policy(&self) -> ::std::option::Option<&crate::types::UpgradePolicyRequest> {
118        self.upgrade_policy.as_ref()
119    }
120    /// <p>Enable or disable ARC zonal shift for the cluster. If zonal shift is enabled, Amazon Web Services configures zonal autoshift for the cluster.</p>
121    /// <p>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.</p>
122    /// <p>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 <i>zonal autoshift</i>. 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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/zone-shift.html">Learn about Amazon Application Recovery Controller (ARC) Zonal Shift in Amazon EKS</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p>
123    pub fn zonal_shift_config(&self) -> ::std::option::Option<&crate::types::ZonalShiftConfigRequest> {
124        self.zonal_shift_config.as_ref()
125    }
126    /// <p>The configuration in the cluster for EKS Hybrid Nodes. You can add, change, or remove this configuration after the cluster is created.</p>
127    pub fn remote_network_config(&self) -> ::std::option::Option<&crate::types::RemoteNetworkConfigRequest> {
128        self.remote_network_config.as_ref()
129    }
130    /// <p>Enable 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</p>
131    pub fn compute_config(&self) -> ::std::option::Option<&crate::types::ComputeConfigRequest> {
132        self.compute_config.as_ref()
133    }
134    /// <p>Enable 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.</p>
135    pub fn storage_config(&self) -> ::std::option::Option<&crate::types::StorageConfigRequest> {
136        self.storage_config.as_ref()
137    }
138    /// <p>Indicates whether to enable deletion protection for the cluster. When enabled, the cluster cannot be deleted unless deletion protection is first disabled. This helps prevent accidental cluster deletion. Default value is <code>false</code>.</p>
139    pub fn deletion_protection(&self) -> ::std::option::Option<bool> {
140        self.deletion_protection
141    }
142    /// <p>The control plane scaling tier configuration. For more information, see EKS Provisioned Control Plane in the Amazon EKS User Guide.</p>
143    pub fn control_plane_scaling_config(&self) -> ::std::option::Option<&crate::types::ControlPlaneScalingConfig> {
144        self.control_plane_scaling_config.as_ref()
145    }
146    /// <p>The Kubernetes API server configuration for the new cluster.</p>
147    pub fn kube_api_server_config(&self) -> ::std::option::Option<&crate::types::KubeApiServerConfigRequest> {
148        self.kube_api_server_config.as_ref()
149    }
150    /// <p>The Kubernetes scheduler configuration for the new cluster.</p>
151    pub fn kube_scheduler_config(&self) -> ::std::option::Option<&crate::types::KubeSchedulerConfigRequest> {
152        self.kube_scheduler_config.as_ref()
153    }
154    /// <p>The Kubernetes controller manager configuration for the new cluster.</p>
155    pub fn kube_controller_manager_config(&self) -> ::std::option::Option<&crate::types::KubeControllerManagerConfigRequest> {
156        self.kube_controller_manager_config.as_ref()
157    }
158}
159impl CreateClusterInput {
160    /// Creates a new builder-style object to manufacture [`CreateClusterInput`](crate::operation::create_cluster::CreateClusterInput).
161    pub fn builder() -> crate::operation::create_cluster::builders::CreateClusterInputBuilder {
162        crate::operation::create_cluster::builders::CreateClusterInputBuilder::default()
163    }
164}
165
166/// A builder for [`CreateClusterInput`](crate::operation::create_cluster::CreateClusterInput).
167#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
168#[non_exhaustive]
169pub struct CreateClusterInputBuilder {
170    pub(crate) name: ::std::option::Option<::std::string::String>,
171    pub(crate) version: ::std::option::Option<::std::string::String>,
172    pub(crate) role_arn: ::std::option::Option<::std::string::String>,
173    pub(crate) resources_vpc_config: ::std::option::Option<crate::types::VpcConfigRequest>,
174    pub(crate) kubernetes_network_config: ::std::option::Option<crate::types::KubernetesNetworkConfigRequest>,
175    pub(crate) logging: ::std::option::Option<crate::types::Logging>,
176    pub(crate) client_request_token: ::std::option::Option<::std::string::String>,
177    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
178    pub(crate) encryption_config: ::std::option::Option<::std::vec::Vec<crate::types::EncryptionConfig>>,
179    pub(crate) outpost_config: ::std::option::Option<crate::types::OutpostConfigRequest>,
180    pub(crate) access_config: ::std::option::Option<crate::types::CreateAccessConfigRequest>,
181    pub(crate) bootstrap_self_managed_addons: ::std::option::Option<bool>,
182    pub(crate) upgrade_policy: ::std::option::Option<crate::types::UpgradePolicyRequest>,
183    pub(crate) zonal_shift_config: ::std::option::Option<crate::types::ZonalShiftConfigRequest>,
184    pub(crate) remote_network_config: ::std::option::Option<crate::types::RemoteNetworkConfigRequest>,
185    pub(crate) compute_config: ::std::option::Option<crate::types::ComputeConfigRequest>,
186    pub(crate) storage_config: ::std::option::Option<crate::types::StorageConfigRequest>,
187    pub(crate) deletion_protection: ::std::option::Option<bool>,
188    pub(crate) control_plane_scaling_config: ::std::option::Option<crate::types::ControlPlaneScalingConfig>,
189    pub(crate) kube_api_server_config: ::std::option::Option<crate::types::KubeApiServerConfigRequest>,
190    pub(crate) kube_scheduler_config: ::std::option::Option<crate::types::KubeSchedulerConfigRequest>,
191    pub(crate) kube_controller_manager_config: ::std::option::Option<crate::types::KubeControllerManagerConfigRequest>,
192}
193impl CreateClusterInputBuilder {
194    /// <p>The 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.</p>
195    /// This field is required.
196    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
197        self.name = ::std::option::Option::Some(input.into());
198        self
199    }
200    /// <p>The 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.</p>
201    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
202        self.name = input;
203        self
204    }
205    /// <p>The 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.</p>
206    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
207        &self.name
208    }
209    /// <p>The desired Kubernetes version for your cluster. If you don't specify a value here, the default version available in Amazon EKS is used.</p><note>
210    /// <p>The default version might not be the latest version available.</p>
211    /// </note>
212    pub fn version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
213        self.version = ::std::option::Option::Some(input.into());
214        self
215    }
216    /// <p>The desired Kubernetes version for your cluster. If you don't specify a value here, the default version available in Amazon EKS is used.</p><note>
217    /// <p>The default version might not be the latest version available.</p>
218    /// </note>
219    pub fn set_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
220        self.version = input;
221        self
222    }
223    /// <p>The desired Kubernetes version for your cluster. If you don't specify a value here, the default version available in Amazon EKS is used.</p><note>
224    /// <p>The default version might not be the latest version available.</p>
225    /// </note>
226    pub fn get_version(&self) -> &::std::option::Option<::std::string::String> {
227        &self.version
228    }
229    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/service_IAM_role.html">Amazon EKS Service IAM Role</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p>
230    /// This field is required.
231    pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
232        self.role_arn = ::std::option::Option::Some(input.into());
233        self
234    }
235    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/service_IAM_role.html">Amazon EKS Service IAM Role</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p>
236    pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
237        self.role_arn = input;
238        self
239    }
240    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/service_IAM_role.html">Amazon EKS Service IAM Role</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p>
241    pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
242        &self.role_arn
243    }
244    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html">Cluster VPC Considerations</a> and <a href="https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html">Cluster Security Group Considerations</a> in the <i>Amazon EKS User Guide</i>. 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.</p>
245    /// This field is required.
246    pub fn resources_vpc_config(mut self, input: crate::types::VpcConfigRequest) -> Self {
247        self.resources_vpc_config = ::std::option::Option::Some(input);
248        self
249    }
250    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html">Cluster VPC Considerations</a> and <a href="https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html">Cluster Security Group Considerations</a> in the <i>Amazon EKS User Guide</i>. 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.</p>
251    pub fn set_resources_vpc_config(mut self, input: ::std::option::Option<crate::types::VpcConfigRequest>) -> Self {
252        self.resources_vpc_config = input;
253        self
254    }
255    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html">Cluster VPC Considerations</a> and <a href="https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html">Cluster Security Group Considerations</a> in the <i>Amazon EKS User Guide</i>. 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.</p>
256    pub fn get_resources_vpc_config(&self) -> &::std::option::Option<crate::types::VpcConfigRequest> {
257        &self.resources_vpc_config
258    }
259    /// <p>The Kubernetes network configuration for the cluster.</p>
260    pub fn kubernetes_network_config(mut self, input: crate::types::KubernetesNetworkConfigRequest) -> Self {
261        self.kubernetes_network_config = ::std::option::Option::Some(input);
262        self
263    }
264    /// <p>The Kubernetes network configuration for the cluster.</p>
265    pub fn set_kubernetes_network_config(mut self, input: ::std::option::Option<crate::types::KubernetesNetworkConfigRequest>) -> Self {
266        self.kubernetes_network_config = input;
267        self
268    }
269    /// <p>The Kubernetes network configuration for the cluster.</p>
270    pub fn get_kubernetes_network_config(&self) -> &::std::option::Option<crate::types::KubernetesNetworkConfigRequest> {
271        &self.kubernetes_network_config
272    }
273    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html">Amazon EKS Cluster control plane logs</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p><note>
274    /// <p>CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see <a href="http://aws.amazon.com/cloudwatch/pricing/">CloudWatch Pricing</a>.</p>
275    /// </note>
276    pub fn logging(mut self, input: crate::types::Logging) -> Self {
277        self.logging = ::std::option::Option::Some(input);
278        self
279    }
280    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html">Amazon EKS Cluster control plane logs</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p><note>
281    /// <p>CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see <a href="http://aws.amazon.com/cloudwatch/pricing/">CloudWatch Pricing</a>.</p>
282    /// </note>
283    pub fn set_logging(mut self, input: ::std::option::Option<crate::types::Logging>) -> Self {
284        self.logging = input;
285        self
286    }
287    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html">Amazon EKS Cluster control plane logs</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p><note>
288    /// <p>CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see <a href="http://aws.amazon.com/cloudwatch/pricing/">CloudWatch Pricing</a>.</p>
289    /// </note>
290    pub fn get_logging(&self) -> &::std::option::Option<crate::types::Logging> {
291        &self.logging
292    }
293    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
294    pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
295        self.client_request_token = ::std::option::Option::Some(input.into());
296        self
297    }
298    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
299    pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
300        self.client_request_token = input;
301        self
302    }
303    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
304    pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
305        &self.client_request_token
306    }
307    /// Adds a key-value pair to `tags`.
308    ///
309    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
310    ///
311    /// <p>Metadata 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.</p>
312    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
313        let mut hash_map = self.tags.unwrap_or_default();
314        hash_map.insert(k.into(), v.into());
315        self.tags = ::std::option::Option::Some(hash_map);
316        self
317    }
318    /// <p>Metadata 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.</p>
319    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
320        self.tags = input;
321        self
322    }
323    /// <p>Metadata 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.</p>
324    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
325        &self.tags
326    }
327    /// Appends an item to `encryption_config`.
328    ///
329    /// To override the contents of this collection use [`set_encryption_config`](Self::set_encryption_config).
330    ///
331    /// <p>The encryption configuration for the cluster.</p>
332    pub fn encryption_config(mut self, input: crate::types::EncryptionConfig) -> Self {
333        let mut v = self.encryption_config.unwrap_or_default();
334        v.push(input);
335        self.encryption_config = ::std::option::Option::Some(v);
336        self
337    }
338    /// <p>The encryption configuration for the cluster.</p>
339    pub fn set_encryption_config(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::EncryptionConfig>>) -> Self {
340        self.encryption_config = input;
341        self
342    }
343    /// <p>The encryption configuration for the cluster.</p>
344    pub fn get_encryption_config(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::EncryptionConfig>> {
345        &self.encryption_config
346    }
347    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/eks-outposts-local-cluster-overview.html">Local clusters for Amazon EKS on Amazon Web Services Outposts</a> in the <i>Amazon EKS User Guide</i>. This object isn't available for creating Amazon EKS clusters on the Amazon Web Services cloud.</p>
348    pub fn outpost_config(mut self, input: crate::types::OutpostConfigRequest) -> Self {
349        self.outpost_config = ::std::option::Option::Some(input);
350        self
351    }
352    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/eks-outposts-local-cluster-overview.html">Local clusters for Amazon EKS on Amazon Web Services Outposts</a> in the <i>Amazon EKS User Guide</i>. This object isn't available for creating Amazon EKS clusters on the Amazon Web Services cloud.</p>
353    pub fn set_outpost_config(mut self, input: ::std::option::Option<crate::types::OutpostConfigRequest>) -> Self {
354        self.outpost_config = input;
355        self
356    }
357    /// <p>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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/eks-outposts-local-cluster-overview.html">Local clusters for Amazon EKS on Amazon Web Services Outposts</a> in the <i>Amazon EKS User Guide</i>. This object isn't available for creating Amazon EKS clusters on the Amazon Web Services cloud.</p>
358    pub fn get_outpost_config(&self) -> &::std::option::Option<crate::types::OutpostConfigRequest> {
359        &self.outpost_config
360    }
361    /// <p>The access configuration for the cluster.</p>
362    pub fn access_config(mut self, input: crate::types::CreateAccessConfigRequest) -> Self {
363        self.access_config = ::std::option::Option::Some(input);
364        self
365    }
366    /// <p>The access configuration for the cluster.</p>
367    pub fn set_access_config(mut self, input: ::std::option::Option<crate::types::CreateAccessConfigRequest>) -> Self {
368        self.access_config = input;
369        self
370    }
371    /// <p>The access configuration for the cluster.</p>
372    pub fn get_access_config(&self) -> &::std::option::Option<crate::types::CreateAccessConfigRequest> {
373        &self.access_config
374    }
375    /// <p>If you set this value to <code>False</code> when creating a cluster, the default networking add-ons will not be installed.</p>
376    /// <p>The default networking add-ons include <code>vpc-cni</code>, <code>coredns</code>, and <code>kube-proxy</code>.</p>
377    /// <p>Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.</p>
378    pub fn bootstrap_self_managed_addons(mut self, input: bool) -> Self {
379        self.bootstrap_self_managed_addons = ::std::option::Option::Some(input);
380        self
381    }
382    /// <p>If you set this value to <code>False</code> when creating a cluster, the default networking add-ons will not be installed.</p>
383    /// <p>The default networking add-ons include <code>vpc-cni</code>, <code>coredns</code>, and <code>kube-proxy</code>.</p>
384    /// <p>Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.</p>
385    pub fn set_bootstrap_self_managed_addons(mut self, input: ::std::option::Option<bool>) -> Self {
386        self.bootstrap_self_managed_addons = input;
387        self
388    }
389    /// <p>If you set this value to <code>False</code> when creating a cluster, the default networking add-ons will not be installed.</p>
390    /// <p>The default networking add-ons include <code>vpc-cni</code>, <code>coredns</code>, and <code>kube-proxy</code>.</p>
391    /// <p>Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.</p>
392    pub fn get_bootstrap_self_managed_addons(&self) -> &::std::option::Option<bool> {
393        &self.bootstrap_self_managed_addons
394    }
395    /// <p>New clusters, by default, have extended support enabled. You can disable extended support when creating a cluster by setting this value to <code>STANDARD</code>.</p>
396    pub fn upgrade_policy(mut self, input: crate::types::UpgradePolicyRequest) -> Self {
397        self.upgrade_policy = ::std::option::Option::Some(input);
398        self
399    }
400    /// <p>New clusters, by default, have extended support enabled. You can disable extended support when creating a cluster by setting this value to <code>STANDARD</code>.</p>
401    pub fn set_upgrade_policy(mut self, input: ::std::option::Option<crate::types::UpgradePolicyRequest>) -> Self {
402        self.upgrade_policy = input;
403        self
404    }
405    /// <p>New clusters, by default, have extended support enabled. You can disable extended support when creating a cluster by setting this value to <code>STANDARD</code>.</p>
406    pub fn get_upgrade_policy(&self) -> &::std::option::Option<crate::types::UpgradePolicyRequest> {
407        &self.upgrade_policy
408    }
409    /// <p>Enable or disable ARC zonal shift for the cluster. If zonal shift is enabled, Amazon Web Services configures zonal autoshift for the cluster.</p>
410    /// <p>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.</p>
411    /// <p>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 <i>zonal autoshift</i>. 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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/zone-shift.html">Learn about Amazon Application Recovery Controller (ARC) Zonal Shift in Amazon EKS</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p>
412    pub fn zonal_shift_config(mut self, input: crate::types::ZonalShiftConfigRequest) -> Self {
413        self.zonal_shift_config = ::std::option::Option::Some(input);
414        self
415    }
416    /// <p>Enable or disable ARC zonal shift for the cluster. If zonal shift is enabled, Amazon Web Services configures zonal autoshift for the cluster.</p>
417    /// <p>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.</p>
418    /// <p>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 <i>zonal autoshift</i>. 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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/zone-shift.html">Learn about Amazon Application Recovery Controller (ARC) Zonal Shift in Amazon EKS</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p>
419    pub fn set_zonal_shift_config(mut self, input: ::std::option::Option<crate::types::ZonalShiftConfigRequest>) -> Self {
420        self.zonal_shift_config = input;
421        self
422    }
423    /// <p>Enable or disable ARC zonal shift for the cluster. If zonal shift is enabled, Amazon Web Services configures zonal autoshift for the cluster.</p>
424    /// <p>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.</p>
425    /// <p>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 <i>zonal autoshift</i>. 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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/zone-shift.html">Learn about Amazon Application Recovery Controller (ARC) Zonal Shift in Amazon EKS</a> in the <i> <i>Amazon EKS User Guide</i> </i>.</p>
426    pub fn get_zonal_shift_config(&self) -> &::std::option::Option<crate::types::ZonalShiftConfigRequest> {
427        &self.zonal_shift_config
428    }
429    /// <p>The configuration in the cluster for EKS Hybrid Nodes. You can add, change, or remove this configuration after the cluster is created.</p>
430    pub fn remote_network_config(mut self, input: crate::types::RemoteNetworkConfigRequest) -> Self {
431        self.remote_network_config = ::std::option::Option::Some(input);
432        self
433    }
434    /// <p>The configuration in the cluster for EKS Hybrid Nodes. You can add, change, or remove this configuration after the cluster is created.</p>
435    pub fn set_remote_network_config(mut self, input: ::std::option::Option<crate::types::RemoteNetworkConfigRequest>) -> Self {
436        self.remote_network_config = input;
437        self
438    }
439    /// <p>The configuration in the cluster for EKS Hybrid Nodes. You can add, change, or remove this configuration after the cluster is created.</p>
440    pub fn get_remote_network_config(&self) -> &::std::option::Option<crate::types::RemoteNetworkConfigRequest> {
441        &self.remote_network_config
442    }
443    /// <p>Enable 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</p>
444    pub fn compute_config(mut self, input: crate::types::ComputeConfigRequest) -> Self {
445        self.compute_config = ::std::option::Option::Some(input);
446        self
447    }
448    /// <p>Enable 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</p>
449    pub fn set_compute_config(mut self, input: ::std::option::Option<crate::types::ComputeConfigRequest>) -> Self {
450        self.compute_config = input;
451        self
452    }
453    /// <p>Enable 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</p>
454    pub fn get_compute_config(&self) -> &::std::option::Option<crate::types::ComputeConfigRequest> {
455        &self.compute_config
456    }
457    /// <p>Enable 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.</p>
458    pub fn storage_config(mut self, input: crate::types::StorageConfigRequest) -> Self {
459        self.storage_config = ::std::option::Option::Some(input);
460        self
461    }
462    /// <p>Enable 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.</p>
463    pub fn set_storage_config(mut self, input: ::std::option::Option<crate::types::StorageConfigRequest>) -> Self {
464        self.storage_config = input;
465        self
466    }
467    /// <p>Enable 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.</p>
468    pub fn get_storage_config(&self) -> &::std::option::Option<crate::types::StorageConfigRequest> {
469        &self.storage_config
470    }
471    /// <p>Indicates whether to enable deletion protection for the cluster. When enabled, the cluster cannot be deleted unless deletion protection is first disabled. This helps prevent accidental cluster deletion. Default value is <code>false</code>.</p>
472    pub fn deletion_protection(mut self, input: bool) -> Self {
473        self.deletion_protection = ::std::option::Option::Some(input);
474        self
475    }
476    /// <p>Indicates whether to enable deletion protection for the cluster. When enabled, the cluster cannot be deleted unless deletion protection is first disabled. This helps prevent accidental cluster deletion. Default value is <code>false</code>.</p>
477    pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
478        self.deletion_protection = input;
479        self
480    }
481    /// <p>Indicates whether to enable deletion protection for the cluster. When enabled, the cluster cannot be deleted unless deletion protection is first disabled. This helps prevent accidental cluster deletion. Default value is <code>false</code>.</p>
482    pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
483        &self.deletion_protection
484    }
485    /// <p>The control plane scaling tier configuration. For more information, see EKS Provisioned Control Plane in the Amazon EKS User Guide.</p>
486    pub fn control_plane_scaling_config(mut self, input: crate::types::ControlPlaneScalingConfig) -> Self {
487        self.control_plane_scaling_config = ::std::option::Option::Some(input);
488        self
489    }
490    /// <p>The control plane scaling tier configuration. For more information, see EKS Provisioned Control Plane in the Amazon EKS User Guide.</p>
491    pub fn set_control_plane_scaling_config(mut self, input: ::std::option::Option<crate::types::ControlPlaneScalingConfig>) -> Self {
492        self.control_plane_scaling_config = input;
493        self
494    }
495    /// <p>The control plane scaling tier configuration. For more information, see EKS Provisioned Control Plane in the Amazon EKS User Guide.</p>
496    pub fn get_control_plane_scaling_config(&self) -> &::std::option::Option<crate::types::ControlPlaneScalingConfig> {
497        &self.control_plane_scaling_config
498    }
499    /// <p>The Kubernetes API server configuration for the new cluster.</p>
500    pub fn kube_api_server_config(mut self, input: crate::types::KubeApiServerConfigRequest) -> Self {
501        self.kube_api_server_config = ::std::option::Option::Some(input);
502        self
503    }
504    /// <p>The Kubernetes API server configuration for the new cluster.</p>
505    pub fn set_kube_api_server_config(mut self, input: ::std::option::Option<crate::types::KubeApiServerConfigRequest>) -> Self {
506        self.kube_api_server_config = input;
507        self
508    }
509    /// <p>The Kubernetes API server configuration for the new cluster.</p>
510    pub fn get_kube_api_server_config(&self) -> &::std::option::Option<crate::types::KubeApiServerConfigRequest> {
511        &self.kube_api_server_config
512    }
513    /// <p>The Kubernetes scheduler configuration for the new cluster.</p>
514    pub fn kube_scheduler_config(mut self, input: crate::types::KubeSchedulerConfigRequest) -> Self {
515        self.kube_scheduler_config = ::std::option::Option::Some(input);
516        self
517    }
518    /// <p>The Kubernetes scheduler configuration for the new cluster.</p>
519    pub fn set_kube_scheduler_config(mut self, input: ::std::option::Option<crate::types::KubeSchedulerConfigRequest>) -> Self {
520        self.kube_scheduler_config = input;
521        self
522    }
523    /// <p>The Kubernetes scheduler configuration for the new cluster.</p>
524    pub fn get_kube_scheduler_config(&self) -> &::std::option::Option<crate::types::KubeSchedulerConfigRequest> {
525        &self.kube_scheduler_config
526    }
527    /// <p>The Kubernetes controller manager configuration for the new cluster.</p>
528    pub fn kube_controller_manager_config(mut self, input: crate::types::KubeControllerManagerConfigRequest) -> Self {
529        self.kube_controller_manager_config = ::std::option::Option::Some(input);
530        self
531    }
532    /// <p>The Kubernetes controller manager configuration for the new cluster.</p>
533    pub fn set_kube_controller_manager_config(mut self, input: ::std::option::Option<crate::types::KubeControllerManagerConfigRequest>) -> Self {
534        self.kube_controller_manager_config = input;
535        self
536    }
537    /// <p>The Kubernetes controller manager configuration for the new cluster.</p>
538    pub fn get_kube_controller_manager_config(&self) -> &::std::option::Option<crate::types::KubeControllerManagerConfigRequest> {
539        &self.kube_controller_manager_config
540    }
541    /// Consumes the builder and constructs a [`CreateClusterInput`](crate::operation::create_cluster::CreateClusterInput).
542    pub fn build(
543        self,
544    ) -> ::std::result::Result<crate::operation::create_cluster::CreateClusterInput, ::aws_smithy_types::error::operation::BuildError> {
545        ::std::result::Result::Ok(crate::operation::create_cluster::CreateClusterInput {
546            name: self.name,
547            version: self.version,
548            role_arn: self.role_arn,
549            resources_vpc_config: self.resources_vpc_config,
550            kubernetes_network_config: self.kubernetes_network_config,
551            logging: self.logging,
552            client_request_token: self.client_request_token,
553            tags: self.tags,
554            encryption_config: self.encryption_config,
555            outpost_config: self.outpost_config,
556            access_config: self.access_config,
557            bootstrap_self_managed_addons: self.bootstrap_self_managed_addons,
558            upgrade_policy: self.upgrade_policy,
559            zonal_shift_config: self.zonal_shift_config,
560            remote_network_config: self.remote_network_config,
561            compute_config: self.compute_config,
562            storage_config: self.storage_config,
563            deletion_protection: self.deletion_protection,
564            control_plane_scaling_config: self.control_plane_scaling_config,
565            kube_api_server_config: self.kube_api_server_config,
566            kube_scheduler_config: self.kube_scheduler_config,
567            kube_controller_manager_config: self.kube_controller_manager_config,
568        })
569    }
570}