@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.819Z") @Stability(value=Stable) 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. |
| Modifier | Constructor and Description |
|---|---|
|
QueueProcessingEc2Service(software.constructs.Construct scope,
String id,
QueueProcessingEc2ServiceProps props)
Constructs a new instance of the QueueProcessingEc2Service class.
|
protected |
QueueProcessingEc2Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
QueueProcessingEc2Service(software.amazon.jsii.JsiiObjectRef objRef) |
| 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, getEnvironment, getLogDriver, getMaxCapacity, getMinCapacity, getScalingSteps, getSecrets, getSqsQueue, grantPermissionsToServicejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected QueueProcessingEc2Service(software.amazon.jsii.JsiiObjectRef objRef)
protected QueueProcessingEc2Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public QueueProcessingEc2Service(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
QueueProcessingEc2ServiceProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public Ec2Service getService()
@Stability(value=Stable) @NotNull public Ec2TaskDefinition getTaskDefinition()
Copyright © 2022. All rights reserved.