Interface ClusterProps

All Superinterfaces:
ClusterOptions, CommonClusterOptions,
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.582Z") @Stability(Stable) public interface ClusterProps extends, ClusterOptions
Common configuration props for EKS clusters.


 Vpc vpc;
 Cluster.Builder.create(this, "HelloEKS")
  • Method Details

    • getClusterLogging

      @Stability(Stable) @Nullable default List<ClusterLoggingTypes> getClusterLogging()
      The cluster log types which you want to enable.

      Default: - none

    • getDefaultCapacity

      @Stability(Stable) @Nullable default Number getDefaultCapacity()
      Number of instances to allocate as an initial capacity for this cluster.

      Instance type can be configured through defaultCapacityInstanceType, which defaults to m5.large.

      Use cluster.addAutoScalingGroupCapacity to add additional customized capacity. Set this to 0 is you wish to avoid the initial capacity allocation.

      Default: 2

    • getDefaultCapacityInstance

      @Stability(Stable) @Nullable default InstanceType getDefaultCapacityInstance()
      The instance type to use for the default capacity.

      This will only be taken into account if defaultCapacity is > 0.

      Default: m5.large

    • getDefaultCapacityType

      @Stability(Stable) @Nullable default DefaultCapacityType getDefaultCapacityType()
      The default capacity type for the cluster.

      Default: NODEGROUP

    • getKubectlLambdaRole

      @Stability(Stable) @Nullable default IRole getKubectlLambdaRole()
      The IAM role to pass to the Kubectl Lambda Handler.

      Default: - Default Lambda IAM Execution Role

    • getTags

      @Stability(Stable) @Nullable default Map<String,String> getTags()
      The tags assigned to the EKS cluster.

      Default: - none

    • builder

      @Stability(Stable) static ClusterProps.Builder builder()
      a ClusterProps.Builder of ClusterProps