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 TypeMethodDescriptiondefault CreateClusterRequest.BuilderaccessConfig(Consumer<CreateAccessConfigRequest.Builder> accessConfig) The access configuration for the cluster.accessConfig(CreateAccessConfigRequest accessConfig) The access configuration for the cluster.bootstrapSelfManagedAddons(Boolean bootstrapSelfManagedAddons) If you set this value toFalsewhen creating a cluster, the default networking add-ons will not be installed.clientRequestToken(String clientRequestToken) A 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.BuilderkubernetesNetworkConfig(Consumer<KubernetesNetworkConfigRequest.Builder> kubernetesNetworkConfig) The Kubernetes network configuration for the cluster.kubernetesNetworkConfig(KubernetesNetworkConfigRequest kubernetesNetworkConfig) The Kubernetes network configuration for the cluster.default CreateClusterRequest.Builderlogging(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.BuilderoutpostConfig(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.BuilderresourcesVpcConfig(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.Metadata that assists with categorization and organization.default CreateClusterRequest.BuilderupgradePolicy(Consumer<UpgradePolicyRequest.Builder> upgradePolicy) New clusters, by default, have extended support enabled.upgradePolicy(UpgradePolicyRequest upgradePolicy) New clusters, by default, have extended support enabled.The desired Kubernetes version for your cluster.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.eks.model.EksRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaVpcConfigRequest.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaKubernetesNetworkConfigRequest.builder().When the
Consumercompletes,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 .
This is a convenience method that creates an instance of theCloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see CloudWatch Pricing.
Logging.Builderavoiding the need to create one manually viaLogging.builder().When the
Consumercompletes,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
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- Parameters:
clientRequestToken- A 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
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.
- Parameters:
tags- 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.- 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.Builderavoiding the need to create one manually viaEncryptionConfig.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaOutpostConfigRequest.builder().When the
Consumercompletes,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:
-
accessConfig
The access configuration for the cluster.
- Parameters:
accessConfig- The access configuration for the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessConfig
default CreateClusterRequest.Builder accessConfig(Consumer<CreateAccessConfigRequest.Builder> accessConfig) The access configuration for the cluster.
This is a convenience method that creates an instance of theCreateAccessConfigRequest.Builderavoiding the need to create one manually viaCreateAccessConfigRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccessConfig(CreateAccessConfigRequest).- Parameters:
accessConfig- a consumer that will call methods onCreateAccessConfigRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bootstrapSelfManagedAddons
If you set this value to
Falsewhen creating a cluster, the default networking add-ons will not be installed.The default networking addons include vpc-cni, coredns, and kube-proxy.
Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.
- Parameters:
bootstrapSelfManagedAddons- If you set this value toFalsewhen creating a cluster, the default networking add-ons will not be installed.The default networking addons include vpc-cni, coredns, and kube-proxy.
Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upgradePolicy
New clusters, by default, have extended support enabled. You can disable extended support when creating a cluster by setting this value to
STANDARD.- Parameters:
upgradePolicy- New clusters, by default, have extended support enabled. You can disable extended support when creating a cluster by setting this value toSTANDARD.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upgradePolicy
default CreateClusterRequest.Builder upgradePolicy(Consumer<UpgradePolicyRequest.Builder> upgradePolicy) New clusters, by default, have extended support enabled. You can disable extended support when creating a cluster by setting this value to
This is a convenience method that creates an instance of theSTANDARD.UpgradePolicyRequest.Builderavoiding the need to create one manually viaUpgradePolicyRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toupgradePolicy(UpgradePolicyRequest).- Parameters:
upgradePolicy- a consumer that will call methods onUpgradePolicyRequest.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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-