Class CfnClusterMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterMixinProps>
- Enclosing interface:
CfnClusterMixinProps
CfnClusterMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessConfig(CfnClusterPropsMixin.AccessConfigProperty accessConfig) Sets the value ofCfnClusterMixinProps.getAccessConfig()accessConfig(IResolvable accessConfig) Sets the value ofCfnClusterMixinProps.getAccessConfig()bootstrapSelfManagedAddons(Boolean bootstrapSelfManagedAddons) Sets the value ofCfnClusterMixinProps.getBootstrapSelfManagedAddons()bootstrapSelfManagedAddons(IResolvable bootstrapSelfManagedAddons) Sets the value ofCfnClusterMixinProps.getBootstrapSelfManagedAddons()build()Builds the configured instance.computeConfig(CfnClusterPropsMixin.ComputeConfigProperty computeConfig) Sets the value ofCfnClusterMixinProps.getComputeConfig()computeConfig(IResolvable computeConfig) Sets the value ofCfnClusterMixinProps.getComputeConfig()controlPlaneScalingConfig(CfnClusterPropsMixin.ControlPlaneScalingConfigProperty controlPlaneScalingConfig) Sets the value ofCfnClusterMixinProps.getControlPlaneScalingConfig()controlPlaneScalingConfig(IResolvable controlPlaneScalingConfig) Sets the value ofCfnClusterMixinProps.getControlPlaneScalingConfig()deletionProtection(Boolean deletionProtection) Sets the value ofCfnClusterMixinProps.getDeletionProtection()deletionProtection(IResolvable deletionProtection) Sets the value ofCfnClusterMixinProps.getDeletionProtection()encryptionConfig(List<? extends Object> encryptionConfig) Sets the value ofCfnClusterMixinProps.getEncryptionConfig()encryptionConfig(IResolvable encryptionConfig) Sets the value ofCfnClusterMixinProps.getEncryptionConfig()Sets the value ofCfnClusterMixinProps.getForce()force(IResolvable force) Sets the value ofCfnClusterMixinProps.getForce()kubernetesNetworkConfig(CfnClusterPropsMixin.KubernetesNetworkConfigProperty kubernetesNetworkConfig) Sets the value ofCfnClusterMixinProps.getKubernetesNetworkConfig()kubernetesNetworkConfig(IResolvable kubernetesNetworkConfig) Sets the value ofCfnClusterMixinProps.getKubernetesNetworkConfig()Sets the value ofCfnClusterMixinProps.getLogging()logging(IResolvable logging) Sets the value ofCfnClusterMixinProps.getLogging()Sets the value ofCfnClusterMixinProps.getName()outpostConfig(CfnClusterPropsMixin.OutpostConfigProperty outpostConfig) Sets the value ofCfnClusterMixinProps.getOutpostConfig()outpostConfig(IResolvable outpostConfig) Sets the value ofCfnClusterMixinProps.getOutpostConfig()remoteNetworkConfig(CfnClusterPropsMixin.RemoteNetworkConfigProperty remoteNetworkConfig) Sets the value ofCfnClusterMixinProps.getRemoteNetworkConfig()remoteNetworkConfig(IResolvable remoteNetworkConfig) Sets the value ofCfnClusterMixinProps.getRemoteNetworkConfig()resourcesVpcConfig(CfnClusterPropsMixin.ResourcesVpcConfigProperty resourcesVpcConfig) Sets the value ofCfnClusterMixinProps.getResourcesVpcConfig()resourcesVpcConfig(IResolvable resourcesVpcConfig) Sets the value ofCfnClusterMixinProps.getResourcesVpcConfig()Sets the value ofCfnClusterMixinProps.getRoleArn()Sets the value ofCfnClusterMixinProps.getRoleArn()storageConfig(CfnClusterPropsMixin.StorageConfigProperty storageConfig) Sets the value ofCfnClusterMixinProps.getStorageConfig()storageConfig(IResolvable storageConfig) Sets the value ofCfnClusterMixinProps.getStorageConfig()Sets the value ofCfnClusterMixinProps.getTags()upgradePolicy(CfnClusterPropsMixin.UpgradePolicyProperty upgradePolicy) Sets the value ofCfnClusterMixinProps.getUpgradePolicy()upgradePolicy(IResolvable upgradePolicy) Sets the value ofCfnClusterMixinProps.getUpgradePolicy()Sets the value ofCfnClusterMixinProps.getVersion()zonalShiftConfig(CfnClusterPropsMixin.ZonalShiftConfigProperty zonalShiftConfig) Sets the value ofCfnClusterMixinProps.getZonalShiftConfig()zonalShiftConfig(IResolvable zonalShiftConfig) Sets the value ofCfnClusterMixinProps.getZonalShiftConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessConfig
Sets the value ofCfnClusterMixinProps.getAccessConfig()- Parameters:
accessConfig- The access configuration for the cluster.- Returns:
this
-
accessConfig
@Stability(Stable) public CfnClusterMixinProps.Builder accessConfig(CfnClusterPropsMixin.AccessConfigProperty accessConfig) Sets the value ofCfnClusterMixinProps.getAccessConfig()- Parameters:
accessConfig- The access configuration for the cluster.- Returns:
this
-
bootstrapSelfManagedAddons
@Stability(Stable) public CfnClusterMixinProps.Builder bootstrapSelfManagedAddons(Boolean bootstrapSelfManagedAddons) Sets the value ofCfnClusterMixinProps.getBootstrapSelfManagedAddons()- Parameters:
bootstrapSelfManagedAddons- If you set this value toFalsewhen creating a cluster, the default networking add-ons will not be installed. The default networking add-ons includevpc-cni,coredns, andkube-proxy.Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.
- Returns:
this
-
bootstrapSelfManagedAddons
@Stability(Stable) public CfnClusterMixinProps.Builder bootstrapSelfManagedAddons(IResolvable bootstrapSelfManagedAddons) Sets the value ofCfnClusterMixinProps.getBootstrapSelfManagedAddons()- Parameters:
bootstrapSelfManagedAddons- If you set this value toFalsewhen creating a cluster, the default networking add-ons will not be installed. The default networking add-ons includevpc-cni,coredns, andkube-proxy.Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.
- Returns:
this
-
computeConfig
Sets the value ofCfnClusterMixinProps.getComputeConfig()- Parameters:
computeConfig- Indicates the current configuration of the compute capability on your EKS Auto Mode cluster. For example, if the capability is enabled or disabled. If the compute capability is enabled, EKS Auto Mode will create and delete EC2 Managed Instances in your AWS account. For more information, see EKS Auto Mode compute capability in the Amazon EKS User Guide .- Returns:
this
-
computeConfig
@Stability(Stable) public CfnClusterMixinProps.Builder computeConfig(CfnClusterPropsMixin.ComputeConfigProperty computeConfig) Sets the value ofCfnClusterMixinProps.getComputeConfig()- Parameters:
computeConfig- Indicates the current configuration of the compute capability on your EKS Auto Mode cluster. For example, if the capability is enabled or disabled. If the compute capability is enabled, EKS Auto Mode will create and delete EC2 Managed Instances in your AWS account. For more information, see EKS Auto Mode compute capability in the Amazon EKS User Guide .- Returns:
this
-
controlPlaneScalingConfig
@Stability(Stable) public CfnClusterMixinProps.Builder controlPlaneScalingConfig(IResolvable controlPlaneScalingConfig) Sets the value ofCfnClusterMixinProps.getControlPlaneScalingConfig()- Parameters:
controlPlaneScalingConfig- The control plane scaling tier configuration. For more information, see EKS Provisioned Control Plane in the Amazon EKS User Guide.- Returns:
this
-
controlPlaneScalingConfig
@Stability(Stable) public CfnClusterMixinProps.Builder controlPlaneScalingConfig(CfnClusterPropsMixin.ControlPlaneScalingConfigProperty controlPlaneScalingConfig) Sets the value ofCfnClusterMixinProps.getControlPlaneScalingConfig()- Parameters:
controlPlaneScalingConfig- The control plane scaling tier configuration. For more information, see EKS Provisioned Control Plane in the Amazon EKS User Guide.- Returns:
this
-
deletionProtection
@Stability(Stable) public CfnClusterMixinProps.Builder deletionProtection(Boolean deletionProtection) Sets the value ofCfnClusterMixinProps.getDeletionProtection()- Parameters:
deletionProtection- The current deletion protection setting for the cluster. Whentrue, deletion protection is enabled and the cluster cannot be deleted until protection is disabled. Whenfalse, the cluster can be deleted normally. This setting only applies to clusters in an active state.- Returns:
this
-
deletionProtection
@Stability(Stable) public CfnClusterMixinProps.Builder deletionProtection(IResolvable deletionProtection) Sets the value ofCfnClusterMixinProps.getDeletionProtection()- Parameters:
deletionProtection- The current deletion protection setting for the cluster. Whentrue, deletion protection is enabled and the cluster cannot be deleted until protection is disabled. Whenfalse, the cluster can be deleted normally. This setting only applies to clusters in an active state.- Returns:
this
-
encryptionConfig
@Stability(Stable) public CfnClusterMixinProps.Builder encryptionConfig(IResolvable encryptionConfig) Sets the value ofCfnClusterMixinProps.getEncryptionConfig()- Parameters:
encryptionConfig- The encryption configuration for the cluster.- Returns:
this
-
encryptionConfig
@Stability(Stable) public CfnClusterMixinProps.Builder encryptionConfig(List<? extends Object> encryptionConfig) Sets the value ofCfnClusterMixinProps.getEncryptionConfig()- Parameters:
encryptionConfig- The encryption configuration for the cluster.- Returns:
this
-
force
Sets the value ofCfnClusterMixinProps.getForce()- Parameters:
force- Set this value totrueto override upgrade-blocking readiness checks when updating a cluster.- Returns:
this
-
force
Sets the value ofCfnClusterMixinProps.getForce()- Parameters:
force- Set this value totrueto override upgrade-blocking readiness checks when updating a cluster.- Returns:
this
-
kubernetesNetworkConfig
@Stability(Stable) public CfnClusterMixinProps.Builder kubernetesNetworkConfig(IResolvable kubernetesNetworkConfig) Sets the value ofCfnClusterMixinProps.getKubernetesNetworkConfig()- Parameters:
kubernetesNetworkConfig- The Kubernetes network configuration for the cluster.- Returns:
this
-
kubernetesNetworkConfig
@Stability(Stable) public CfnClusterMixinProps.Builder kubernetesNetworkConfig(CfnClusterPropsMixin.KubernetesNetworkConfigProperty kubernetesNetworkConfig) Sets the value ofCfnClusterMixinProps.getKubernetesNetworkConfig()- Parameters:
kubernetesNetworkConfig- The Kubernetes network configuration for the cluster.- Returns:
this
-
logging
Sets the value ofCfnClusterMixinProps.getLogging()- Parameters:
logging- The logging configuration for your cluster.- Returns:
this
-
logging
@Stability(Stable) public CfnClusterMixinProps.Builder logging(CfnClusterPropsMixin.LoggingProperty logging) Sets the value ofCfnClusterMixinProps.getLogging()- Parameters:
logging- The logging configuration for your cluster.- Returns:
this
-
name
Sets the value ofCfnClusterMixinProps.getName()- Parameters:
name- The unique name to give to your cluster. The name can contain only alphanumeric characters (case-sensitive) and hyphens. It must start with an alphanumeric character and can't be longer than 100 characters. The name must be unique within the AWS Region and AWS account that you're creating the cluster in. Note that underscores can't be used in CloudFormation .- Returns:
this
-
outpostConfig
Sets the value ofCfnClusterMixinProps.getOutpostConfig()- Parameters:
outpostConfig- An object representing the configuration of your local Amazon EKS cluster on an AWS Outpost. This object isn't available for clusters on the AWS cloud.- Returns:
this
-
outpostConfig
@Stability(Stable) public CfnClusterMixinProps.Builder outpostConfig(CfnClusterPropsMixin.OutpostConfigProperty outpostConfig) Sets the value ofCfnClusterMixinProps.getOutpostConfig()- Parameters:
outpostConfig- An object representing the configuration of your local Amazon EKS cluster on an AWS Outpost. This object isn't available for clusters on the AWS cloud.- Returns:
this
-
remoteNetworkConfig
@Stability(Stable) public CfnClusterMixinProps.Builder remoteNetworkConfig(IResolvable remoteNetworkConfig) Sets the value ofCfnClusterMixinProps.getRemoteNetworkConfig()- Parameters:
remoteNetworkConfig- The configuration in the cluster for EKS Hybrid Nodes. You can add, change, or remove this configuration after the cluster is created.- Returns:
this
-
remoteNetworkConfig
@Stability(Stable) public CfnClusterMixinProps.Builder remoteNetworkConfig(CfnClusterPropsMixin.RemoteNetworkConfigProperty remoteNetworkConfig) Sets the value ofCfnClusterMixinProps.getRemoteNetworkConfig()- Parameters:
remoteNetworkConfig- The configuration in the cluster for EKS Hybrid Nodes. You can add, change, or remove this configuration after the cluster is created.- Returns:
this
-
resourcesVpcConfig
@Stability(Stable) public CfnClusterMixinProps.Builder resourcesVpcConfig(IResolvable resourcesVpcConfig) Sets the value ofCfnClusterMixinProps.getResourcesVpcConfig()- 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, but we recommend that you use a dedicated security group for your cluster control plane.- Returns:
this
-
resourcesVpcConfig
@Stability(Stable) public CfnClusterMixinProps.Builder resourcesVpcConfig(CfnClusterPropsMixin.ResourcesVpcConfigProperty resourcesVpcConfig) Sets the value ofCfnClusterMixinProps.getResourcesVpcConfig()- 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, but we recommend that you use a dedicated security group for your cluster control plane.- Returns:
this
-
roleArn
Sets the value ofCfnClusterMixinProps.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf. For more information, see Amazon EKS Service IAM Role in the Amazon EKS User Guide .- Returns:
this
-
roleArn
Sets the value ofCfnClusterMixinProps.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf. For more information, see Amazon EKS Service IAM Role in the Amazon EKS User Guide .- Returns:
this
-
storageConfig
Sets the value ofCfnClusterMixinProps.getStorageConfig()- Parameters:
storageConfig- Indicates the current configuration of the block storage capability on your EKS Auto Mode cluster. For example, if the capability is enabled or disabled. If the block storage capability is enabled, EKS Auto Mode will create and delete EBS volumes in your AWS account. For more information, see EKS Auto Mode block storage capability in the Amazon EKS User Guide .- Returns:
this
-
storageConfig
@Stability(Stable) public CfnClusterMixinProps.Builder storageConfig(CfnClusterPropsMixin.StorageConfigProperty storageConfig) Sets the value ofCfnClusterMixinProps.getStorageConfig()- Parameters:
storageConfig- Indicates the current configuration of the block storage capability on your EKS Auto Mode cluster. For example, if the capability is enabled or disabled. If the block storage capability is enabled, EKS Auto Mode will create and delete EBS volumes in your AWS account. For more information, see EKS Auto Mode block storage capability in the Amazon EKS User Guide .- Returns:
this
-
tags
Sets the value ofCfnClusterMixinProps.getTags()- Parameters:
tags- The metadata that you apply to the cluster to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Cluster tags don't propagate to any other resources associated with the cluster.You must have the
eks:TagResourceandeks:UntagResourcepermissions for your IAM principal to manage the CloudFormation stack. If you don't have these permissions, there might be unexpected behavior with stack-level tags propagating to the resource during resource creation and update.- Returns:
this
-
upgradePolicy
Sets the value ofCfnClusterMixinProps.getUpgradePolicy()- Parameters:
upgradePolicy- This value indicates if extended support is enabled or disabled for the cluster. Learn more about EKS Extended Support in the Amazon EKS User Guide .- Returns:
this
-
upgradePolicy
@Stability(Stable) public CfnClusterMixinProps.Builder upgradePolicy(CfnClusterPropsMixin.UpgradePolicyProperty upgradePolicy) Sets the value ofCfnClusterMixinProps.getUpgradePolicy()- Parameters:
upgradePolicy- This value indicates if extended support is enabled or disabled for the cluster. Learn more about EKS Extended Support in the Amazon EKS User Guide .- Returns:
this
-
version
Sets the value ofCfnClusterMixinProps.getVersion()- 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:
this
-
zonalShiftConfig
@Stability(Stable) public CfnClusterMixinProps.Builder zonalShiftConfig(IResolvable zonalShiftConfig) Sets the value ofCfnClusterMixinProps.getZonalShiftConfig()- Parameters:
zonalShiftConfig- The configuration for zonal shift for the cluster.- Returns:
this
-
zonalShiftConfig
@Stability(Stable) public CfnClusterMixinProps.Builder zonalShiftConfig(CfnClusterPropsMixin.ZonalShiftConfigProperty zonalShiftConfig) Sets the value ofCfnClusterMixinProps.getZonalShiftConfig()- Parameters:
zonalShiftConfig- The configuration for zonal shift for the cluster.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterMixinProps>- Returns:
- a new instance of
CfnClusterMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-