Class QueueProcessingFargateService

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.ecs.patterns.QueueProcessingServiceBase
software.amazon.awscdk.services.ecs.patterns.QueueProcessingFargateService
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-27T16:50:57.200Z") @Stability(Stable) public class QueueProcessingFargateService extends QueueProcessingServiceBase
Class to create a queue processing Fargate service.

Example:

 Cluster cluster;
 cluster.enableFargateCapacityProviders();
 QueueProcessingFargateService queueProcessingFargateService = QueueProcessingFargateService.Builder.create(this, "Service")
         .cluster(cluster)
         .memoryLimitMiB(512)
         .image(ContainerImage.fromRegistry("test"))
         .capacityProviderStrategies(List.of(CapacityProviderStrategy.builder()
                 .capacityProvider("FARGATE_SPOT")
                 .weight(2)
                 .build(), CapacityProviderStrategy.builder()
                 .capacityProvider("FARGATE")
                 .weight(1)
                 .build()))
         .build();
 
  • Constructor Details

    • QueueProcessingFargateService

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

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

      @Stability(Stable) public QueueProcessingFargateService(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable QueueProcessingFargateServiceProps props)
      Constructs a new instance of the QueueProcessingFargateService class.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • QueueProcessingFargateService

      @Stability(Stable) public QueueProcessingFargateService(@NotNull software.constructs.Construct scope, @NotNull String id)
      Constructs a new instance of the QueueProcessingFargateService class.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • getService

      @Stability(Stable) @NotNull public FargateService getService()
      The Fargate service in this construct.
    • getTaskDefinition

      @Stability(Stable) @NotNull public FargateTaskDefinition getTaskDefinition()
      The Fargate task definition in this construct.