Interface CreateClusterRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateClusterRequest.Builder,
,CreateClusterRequest> EksRequest.Builder
,SdkBuilder<CreateClusterRequest.Builder,
,CreateClusterRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateClusterRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken
(String clientRequestToken) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.encryptionConfig
(Collection<EncryptionConfig> encryptionConfig) The encryption configuration for the cluster.encryptionConfig
(Consumer<EncryptionConfig.Builder>... encryptionConfig) The encryption configuration for the cluster.encryptionConfig
(EncryptionConfig... encryptionConfig) The encryption configuration for the cluster.default CreateClusterRequest.Builder
kubernetesNetworkConfig
(Consumer<KubernetesNetworkConfigRequest.Builder> kubernetesNetworkConfig) The Kubernetes network configuration for the cluster.kubernetesNetworkConfig
(KubernetesNetworkConfigRequest kubernetesNetworkConfig) The Kubernetes network configuration for the cluster.default CreateClusterRequest.Builder
logging
(Consumer<Logging.Builder> logging) Enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs.Enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs.The unique name to give to your cluster.default CreateClusterRequest.Builder
outpostConfig
(Consumer<OutpostConfigRequest.Builder> outpostConfig) An object representing the configuration of your local Amazon EKS cluster on an Amazon Web Services Outpost.outpostConfig
(OutpostConfigRequest outpostConfig) An object representing the configuration of your local Amazon EKS cluster on an Amazon Web Services Outpost.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateClusterRequest.Builder
resourcesVpcConfig
(Consumer<VpcConfigRequest.Builder> resourcesVpcConfig) The VPC configuration that's used by the cluster control plane.resourcesVpcConfig
(VpcConfigRequest resourcesVpcConfig) The VPC configuration that's used by the cluster control plane.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.The metadata to apply to the cluster to assist with categorization and organization.The desired Kubernetes version for your cluster.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.eks.model.EksRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The unique name to give to your cluster.
- Parameters:
name
- The unique name to give to your cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
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.
- Parameters:
version
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
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 .
- Parameters:
roleArn
- 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 .- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesVpcConfig
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.
- Parameters:
resourcesVpcConfig
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesVpcConfig
default CreateClusterRequest.Builder resourcesVpcConfig(Consumer<VpcConfigRequest.Builder> resourcesVpcConfig) 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.
This is a convenience method that creates an instance of theVpcConfigRequest.Builder
avoiding the need to create one manually viaVpcConfigRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourcesVpcConfig(VpcConfigRequest)
.- Parameters:
resourcesVpcConfig
- a consumer that will call methods onVpcConfigRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
kubernetesNetworkConfig
CreateClusterRequest.Builder kubernetesNetworkConfig(KubernetesNetworkConfigRequest kubernetesNetworkConfig) The Kubernetes network configuration for the cluster.
- Parameters:
kubernetesNetworkConfig
- The Kubernetes network configuration for the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kubernetesNetworkConfig
default CreateClusterRequest.Builder kubernetesNetworkConfig(Consumer<KubernetesNetworkConfigRequest.Builder> kubernetesNetworkConfig) The Kubernetes network configuration for the cluster.
This is a convenience method that creates an instance of theKubernetesNetworkConfigRequest.Builder
avoiding the need to create one manually viaKubernetesNetworkConfigRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tokubernetesNetworkConfig(KubernetesNetworkConfigRequest)
.- Parameters:
kubernetesNetworkConfig
- a consumer that will call methods onKubernetesNetworkConfigRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
logging
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.
- Parameters:
logging
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logging
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.
Logging.Builder
avoiding the need to create one manually viaLogging.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tologging(Logging)
.- Parameters:
logging
- a consumer that will call methods onLogging.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientRequestToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- Parameters:
clientRequestToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionConfig
The encryption configuration for the cluster.
- Parameters:
encryptionConfig
- The encryption configuration for the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionConfig
The encryption configuration for the cluster.
- Parameters:
encryptionConfig
- The encryption configuration for the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionConfig
CreateClusterRequest.Builder encryptionConfig(Consumer<EncryptionConfig.Builder>... encryptionConfig) The encryption configuration for the cluster.
This is a convenience method that creates an instance of theEncryptionConfig.Builder
avoiding the need to create one manually viaEncryptionConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toencryptionConfig(List<EncryptionConfig>)
.- Parameters:
encryptionConfig
- a consumer that will call methods onEncryptionConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outpostConfig
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.
- Parameters:
outpostConfig
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outpostConfig
default CreateClusterRequest.Builder outpostConfig(Consumer<OutpostConfigRequest.Builder> outpostConfig) 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.
This is a convenience method that creates an instance of theOutpostConfigRequest.Builder
avoiding the need to create one manually viaOutpostConfigRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutpostConfig(OutpostConfigRequest)
.- Parameters:
outpostConfig
- a consumer that will call methods onOutpostConfigRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateClusterRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateClusterRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-