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.104.0 (build e79254c)", date="2024-11-06T23:25:09.741Z") @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:

 FargateCluster cluster = FargateCluster.Builder.create(this, "MyCluster")
         .version(KubernetesVersion.V1_31)
         .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.