@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-17T17:31:22.203Z") @Stability(value=Stable) public abstract class QueueProcessingServiceBase extends Construct
software.constructs.Construct.Builder
software.amazon.jsii.JsiiObject.InitializationMode
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
QueueProcessingServiceBase(software.constructs.Construct scope,
String id,
QueueProcessingServiceBaseProps props)
Constructs a new instance of the QueueProcessingServiceBase class.
|
protected |
QueueProcessingServiceBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
QueueProcessingServiceBase(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureAutoscalingForService(BaseService service)
Configure autoscaling based off of CPU utilization as well as the number of messages visible in the SQS queue.
|
ICluster |
getCluster()
The cluster where your service will be deployed.
|
IQueue |
getDeadLetterQueue()
The dead letter queue for the primary SQS queue.
|
protected Cluster |
getDefaultCluster(software.constructs.Construct scope)
Returns the default cluster.
|
protected Cluster |
getDefaultCluster(software.constructs.Construct scope,
IVpc vpc)
Returns the default cluster.
|
Number |
getDesiredCount()
Deprecated.
- Use `minCapacity` instead.
|
Map<String,String> |
getEnvironment()
Environment variables that will include the queue name.
|
LogDriver |
getLogDriver()
The AwsLogDriver to use for logging if logging is enabled.
|
Number |
getMaxCapacity()
The maximum number of instances for autoscaling to scale up to.
|
Number |
getMinCapacity()
The minimum number of instances for autoscaling to scale down to.
|
List<ScalingInterval> |
getScalingSteps()
The scaling interval for autoscaling based off an SQS Queue size.
|
Map<String,Secret> |
getSecrets()
The secret environment variables.
|
IQueue |
getSqsQueue()
The SQS queue that the service will process from.
|
protected void |
grantPermissionsToService(BaseService service)
Grant SQS permissions to an ECS service.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected QueueProcessingServiceBase(software.amazon.jsii.JsiiObjectRef objRef)
protected QueueProcessingServiceBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected QueueProcessingServiceBase(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull QueueProcessingServiceBaseProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.@Stability(value=Stable) protected void configureAutoscalingForService(@NotNull BaseService service)
service
- the ECS/Fargate service for which to apply the autoscaling rules to. This parameter is required.@Stability(value=Stable) @NotNull protected Cluster getDefaultCluster(@NotNull software.constructs.Construct scope, @Nullable IVpc vpc)
scope
- This parameter is required.vpc
- @Stability(value=Stable) @NotNull protected Cluster getDefaultCluster(@NotNull software.constructs.Construct scope)
scope
- This parameter is required.@Stability(value=Stable) protected void grantPermissionsToService(@NotNull BaseService service)
service
- the ECS/Fargate service to which to grant SQS permissions. This parameter is required.@Stability(value=Stable) @NotNull public ICluster getCluster()
@Stability(value=Deprecated) @Deprecated @NotNull public Number getDesiredCount()
@Stability(value=Stable) @NotNull public Map<String,String> getEnvironment()
@Stability(value=Stable) @NotNull public Number getMaxCapacity()
@Stability(value=Stable) @NotNull public Number getMinCapacity()
@Stability(value=Stable) @NotNull public List<ScalingInterval> getScalingSteps()
@Stability(value=Stable) @NotNull public IQueue getSqsQueue()
@Stability(value=Stable) @Nullable public IQueue getDeadLetterQueue()
@Stability(value=Stable) @Nullable public LogDriver getLogDriver()
Copyright © 2022. All rights reserved.