Class FargateCluster

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.eks.Cluster
software.amazon.awscdk.services.eks.FargateCluster
All Implemented Interfaces:
IResource, IConnectable, ICluster, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.109.0 (build c221850)", date="2025-03-14T03:24:58.080Z") @Stability(Stable) public class FargateCluster extends Cluster
Defines an EKS cluster that runs entirely on AWS Fargate.

The cluster is created with a default Fargate Profile that matches the "default" and "kube-system" namespaces. You can add additional profiles using addFargateProfile.

Example:

 import software.amazon.awscdk.cdk.lambdalayer.kubectl.v32.KubectlV32Layer;
 FargateCluster cluster = FargateCluster.Builder.create(this, "MyCluster")
         .version(KubernetesVersion.V1_32)
         .kubectlLayer(new KubectlV32Layer(this, "kubectl"))
         .build();
 
  • Constructor Details

    • FargateCluster

      protected FargateCluster(software.amazon.jsii.JsiiObjectRef objRef)
    • FargateCluster

      protected FargateCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • FargateCluster

      @Stability(Stable) public FargateCluster(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FargateClusterProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • getDefaultProfile

      @Stability(Stable) @NotNull public FargateProfile getDefaultProfile()
      Fargate Profile that was created with the cluster.