Class QueueProcessingEc2Service

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.ecs.patterns.QueueProcessingServiceBase
software.amazon.awscdk.services.ecs.patterns.QueueProcessingEc2Service
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-06T23:25:09.560Z") @Stability(Stable) public class QueueProcessingEc2Service extends QueueProcessingServiceBase
Class to create a queue processing EC2 service.

Example:

 Cluster cluster;
 QueueProcessingEc2Service queueProcessingEc2Service = QueueProcessingEc2Service.Builder.create(this, "Service")
         .cluster(cluster)
         .memoryLimitMiB(1024)
         .image(ContainerImage.fromRegistry("test"))
         .command(List.of("-c", "4", "amazon.com"))
         .enableLogging(false)
         .desiredTaskCount(2)
         .environment(Map.of(
                 "TEST_ENVIRONMENT_VARIABLE1", "test environment variable 1 value",
                 "TEST_ENVIRONMENT_VARIABLE2", "test environment variable 2 value"))
         .maxScalingCapacity(5)
         .containerName("test")
         .build();
 
  • Constructor Details

    • QueueProcessingEc2Service

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

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

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

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

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

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

    • getService

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

      @Stability(Stable) @NotNull public Ec2TaskDefinition getTaskDefinition()
      The EC2 task definition in this construct.