@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.886Z") @Stability(value=Experimental) public abstract class QueueProcessingServiceBase extends software.constructs.Construct
| Modifier | Constructor and Description |
|---|---|
protected |
QueueProcessingServiceBase(software.constructs.Construct scope,
String id,
QueueProcessingServiceBaseProps props)
(experimental) 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)
(experimental) Configure autoscaling based off of CPU utilization as well as the number of messages visible in the SQS queue.
|
ICluster |
getCluster()
(experimental) The cluster where your service will be deployed.
|
IQueue |
getDeadLetterQueue()
(experimental) The dead letter queue for the primary SQS queue.
|
protected Cluster |
getDefaultCluster(software.constructs.Construct scope)
(experimental) Returns the default cluster.
|
protected Cluster |
getDefaultCluster(software.constructs.Construct scope,
IVpc vpc)
(experimental) Returns the default cluster.
|
Map<String,String> |
getEnvironment()
(experimental) Environment variables that will include the queue name.
|
LogDriver |
getLogDriver()
(experimental) The AwsLogDriver to use for logging if logging is enabled.
|
Number |
getMaxCapacity()
(experimental) The maximum number of instances for autoscaling to scale up to.
|
Number |
getMinCapacity()
(experimental) The minimum number of instances for autoscaling to scale down to.
|
List<ScalingInterval> |
getScalingSteps()
(experimental) The scaling interval for autoscaling based off an SQS Queue size.
|
Map<String,Secret> |
getSecrets()
(experimental) The secret environment variables.
|
IQueue |
getSqsQueue()
(experimental) The SQS queue that the service will process from.
|
protected void |
grantPermissionsToService(BaseService service)
(experimental) Grant SQS permissions to an ECS service.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected QueueProcessingServiceBase(software.amazon.jsii.JsiiObjectRef objRef)
protected QueueProcessingServiceBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
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=Experimental)
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=Experimental) @NotNull protected Cluster getDefaultCluster(@NotNull software.constructs.Construct scope, @Nullable IVpc vpc)
scope - This parameter is required.vpc - @Stability(value=Experimental) @NotNull protected Cluster getDefaultCluster(@NotNull software.constructs.Construct scope)
scope - This parameter is required.@Stability(value=Experimental)
protected void grantPermissionsToService(@NotNull
BaseService service)
service - the ECS/Fargate service to which to grant SQS permissions. This parameter is required.@Stability(value=Experimental) @NotNull public ICluster getCluster()
@Stability(value=Experimental) @NotNull public Map<String,String> getEnvironment()
@Stability(value=Experimental) @NotNull public Number getMaxCapacity()
@Stability(value=Experimental) @NotNull public Number getMinCapacity()
@Stability(value=Experimental) @NotNull public List<ScalingInterval> getScalingSteps()
@Stability(value=Experimental) @NotNull public IQueue getSqsQueue()
@Stability(value=Experimental) @Nullable public IQueue getDeadLetterQueue()
@Stability(value=Experimental) @Nullable public LogDriver getLogDriver()
Copyright © 2021. All rights reserved.