@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:50.923Z") public class QueueProcessingEc2Service extends QueueProcessingServiceBase
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();
Modifier and Type | Class and Description |
---|---|
static class |
QueueProcessingEc2Service.Builder
A fluent builder for
QueueProcessingEc2Service . |
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
QueueProcessingEc2Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
QueueProcessingEc2Service(software.amazon.jsii.JsiiObjectRef objRef) |
|
QueueProcessingEc2Service(software.constructs.Construct scope,
java.lang.String id,
QueueProcessingEc2ServiceProps props)
Constructs a new instance of the QueueProcessingEc2Service class.
|
Modifier and Type | Method and Description |
---|---|
Ec2Service |
getService()
The EC2 service in this construct.
|
Ec2TaskDefinition |
getTaskDefinition()
The EC2 task definition in this construct.
|
configureAutoscalingForService, getCluster, getDeadLetterQueue, getDefaultCluster, getDefaultCluster, getDesiredCount, getEnvironment, getLogDriver, getMaxCapacity, getMinCapacity, getScalingSteps, getSecrets, getSqsQueue, grantPermissionsToService
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected QueueProcessingEc2Service(software.amazon.jsii.JsiiObjectRef objRef)
protected QueueProcessingEc2Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public QueueProcessingEc2Service(software.constructs.Construct scope, java.lang.String id, QueueProcessingEc2ServiceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public Ec2Service getService()
public Ec2TaskDefinition getTaskDefinition()