public static final class QueueProcessingEc2ServiceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements QueueProcessingEc2ServiceProps
QueueProcessingEc2ServiceProps
QueueProcessingEc2ServiceProps.Builder, QueueProcessingEc2ServiceProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.util.List<CapacityProviderStrategy> |
getCapacityProviderStrategies()
A list of Capacity Provider strategies used to place a service.
|
DeploymentCircuitBreaker |
getCircuitBreaker()
Whether to enable the deployment circuit breaker.
|
ICluster |
getCluster()
The name of the cluster that hosts the service.
|
java.util.List<java.lang.String> |
getCommand()
The command that is passed to the container.
|
java.lang.String |
getContainerName()
Optional name for the container added.
|
java.lang.Number |
getCpu()
The number of cpu units used by the task.
|
DeploymentController |
getDeploymentController()
Specifies which deployment controller to use for the service.
|
java.lang.Number |
getDesiredTaskCount()
(deprecated) The desired number of instantiations of the task definition to keep running on the service.
|
java.lang.Boolean |
getEnableECSManagedTags()
Specifies whether to enable Amazon ECS managed tags for the tasks within the service.
|
java.lang.Boolean |
getEnableLogging()
Flag to indicate whether to enable logging.
|
java.util.Map<java.lang.String,java.lang.String> |
getEnvironment()
The environment variables to pass to the container.
|
java.lang.String |
getFamily()
The name of a family that the task definition is registered to.
|
java.lang.Number |
getGpuCount()
Gpu count for container in task definition.
|
ContainerImage |
getImage()
The image used to start a container.
|
LogDriver |
getLogDriver()
The log driver to use.
|
java.lang.Number |
getMaxHealthyPercent()
The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment.
|
java.lang.Number |
getMaxReceiveCount()
The maximum number of times that a message can be received by consumers.
|
java.lang.Number |
getMaxScalingCapacity()
Maximum capacity to scale to.
|
java.lang.Number |
getMemoryLimitMiB()
The hard limit (in MiB) of memory to present to the container.
|
java.lang.Number |
getMemoryReservationMiB()
The soft limit (in MiB) of memory to reserve for the container.
|
java.lang.Number |
getMinHealthyPercent()
The minimum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that must continue to run and remain healthy during a deployment.
|
java.lang.Number |
getMinScalingCapacity()
Minimum capacity to scale to.
|
java.util.List<PlacementConstraint> |
getPlacementConstraints()
The placement constraints to use for tasks in the service.
|
java.util.List<PlacementStrategy> |
getPlacementStrategies()
The placement strategies to use for tasks in the service.
|
PropagatedTagSource |
getPropagateTags()
Specifies whether to propagate the tags from the task definition or the service to the tasks in the service.
|
IQueue |
getQueue()
A queue for which to process items from.
|
Duration |
getRetentionPeriod()
The number of seconds that Dead Letter Queue retains a message.
|
java.util.List<ScalingInterval> |
getScalingSteps()
The intervals for scaling based on the SQS queue's ApproximateNumberOfMessagesVisible metric.
|
java.util.Map<java.lang.String,Secret> |
getSecrets()
The secret to expose to the container as an environment variable.
|
java.lang.String |
getServiceName()
The name of the service.
|
Duration |
getVisibilityTimeout()
Timeout of processing a single message.
|
IVpc |
getVpc()
The VPC where the container instances will be launched or the elastic network interfaces (ENIs) will be deployed.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.String getContainerName()
QueueProcessingEc2ServiceProps
Default: - QueueProcessingContainer
getContainerName
in interface QueueProcessingEc2ServiceProps
public final java.lang.Number getCpu()
QueueProcessingEc2ServiceProps
Valid values, which determines your range of valid values for the memory parameter:
256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB
512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB
1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB
2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments
4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments
This default is set in the underlying FargateTaskDefinition construct.
Default: none
getCpu
in interface QueueProcessingEc2ServiceProps
public final java.lang.Number getGpuCount()
QueueProcessingEc2ServiceProps
Set this if you want to use gpu based instances.
Default: - No GPUs assigned.
getGpuCount
in interface QueueProcessingEc2ServiceProps
public final java.lang.Number getMemoryLimitMiB()
QueueProcessingEc2ServiceProps
If your container attempts to exceed the allocated memory, the container is terminated.
At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services.
Default: - No memory limit.
getMemoryLimitMiB
in interface QueueProcessingEc2ServiceProps
public final java.lang.Number getMemoryReservationMiB()
QueueProcessingEc2ServiceProps
When system memory is under contention, Docker attempts to keep the container memory within the limit. If the container requires more memory, it can consume up to the value specified by the Memory property or all of the available memory on the container instance—whichever comes first.
At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services.
Default: - No memory reserved.
getMemoryReservationMiB
in interface QueueProcessingEc2ServiceProps
public final java.util.List<PlacementConstraint> getPlacementConstraints()
QueueProcessingEc2ServiceProps
For more information, see Amazon ECS Task Placement Constraints.
Default: - No constraints.
getPlacementConstraints
in interface QueueProcessingEc2ServiceProps
public final java.util.List<PlacementStrategy> getPlacementStrategies()
QueueProcessingEc2ServiceProps
For more information, see Amazon ECS Task Placement Strategies.
Default: - No strategies.
getPlacementStrategies
in interface QueueProcessingEc2ServiceProps
public final ContainerImage getImage()
QueueProcessingServiceBaseProps
getImage
in interface QueueProcessingServiceBaseProps
public final java.util.List<CapacityProviderStrategy> getCapacityProviderStrategies()
QueueProcessingServiceBaseProps
Default: - undefined
getCapacityProviderStrategies
in interface QueueProcessingServiceBaseProps
public final DeploymentCircuitBreaker getCircuitBreaker()
QueueProcessingServiceBaseProps
If this property is defined, circuit breaker will be implicitly enabled.
Default: - disabled
getCircuitBreaker
in interface QueueProcessingServiceBaseProps
public final ICluster getCluster()
QueueProcessingServiceBaseProps
If a cluster is specified, the vpc construct should be omitted. Alternatively, you can omit both cluster and vpc.
Default: - create a new cluster; if both cluster and vpc are omitted, a new VPC will be created for you.
getCluster
in interface QueueProcessingServiceBaseProps
public final java.util.List<java.lang.String> getCommand()
QueueProcessingServiceBaseProps
If you provide a shell command as a single string, you have to quote command-line arguments.
Default: - CMD value built into container image.
getCommand
in interface QueueProcessingServiceBaseProps
public final DeploymentController getDeploymentController()
QueueProcessingServiceBaseProps
For more information, see Amazon ECS Deployment Types
Default: - Rolling update (ECS)
getDeploymentController
in interface QueueProcessingServiceBaseProps
public final java.lang.Number getDesiredTaskCount()
QueueProcessingServiceBaseProps
Default: - If the feature flag, ECS_REMOVE_DEFAULT_DESIRED_COUNT is false, the default is 1; if true, the minScalingCapacity is 1 for all new services and uses the existing services desired count when updating an existing service.
getDesiredTaskCount
in interface QueueProcessingServiceBaseProps
public final java.lang.Boolean getEnableECSManagedTags()
QueueProcessingServiceBaseProps
For more information, see Tagging Your Amazon ECS Resources
Default: false
getEnableECSManagedTags
in interface QueueProcessingServiceBaseProps
public final java.lang.Boolean getEnableLogging()
QueueProcessingServiceBaseProps
Default: true
getEnableLogging
in interface QueueProcessingServiceBaseProps
public final java.util.Map<java.lang.String,java.lang.String> getEnvironment()
QueueProcessingServiceBaseProps
The variable QUEUE_NAME
with value queue.queueName
will
always be passed.
Default: 'QUEUE_NAME: queue.queueName'
getEnvironment
in interface QueueProcessingServiceBaseProps
public final java.lang.String getFamily()
QueueProcessingServiceBaseProps
A family groups multiple versions of a task definition.
Default: - Automatically generated name.
getFamily
in interface QueueProcessingServiceBaseProps
public final LogDriver getLogDriver()
QueueProcessingServiceBaseProps
Default: - AwsLogDriver if enableLogging is true
getLogDriver
in interface QueueProcessingServiceBaseProps
public final java.lang.Number getMaxHealthyPercent()
QueueProcessingServiceBaseProps
Default: - default from underlying service.
getMaxHealthyPercent
in interface QueueProcessingServiceBaseProps
public final java.lang.Number getMaxReceiveCount()
QueueProcessingServiceBaseProps
When this value is exceeded for a message the message will be automatically sent to the Dead Letter Queue.
Default: 3
getMaxReceiveCount
in interface QueueProcessingServiceBaseProps
public final java.lang.Number getMaxScalingCapacity()
QueueProcessingServiceBaseProps
Default: - If the feature flag, ECS_REMOVE_DEFAULT_DESIRED_COUNT is false, the default is (desiredTaskCount * 2); if true, the default is 2.
getMaxScalingCapacity
in interface QueueProcessingServiceBaseProps
public final java.lang.Number getMinHealthyPercent()
QueueProcessingServiceBaseProps
Default: - default from underlying service.
getMinHealthyPercent
in interface QueueProcessingServiceBaseProps
public final java.lang.Number getMinScalingCapacity()
QueueProcessingServiceBaseProps
Default: - If the feature flag, ECS_REMOVE_DEFAULT_DESIRED_COUNT is false, the default is the desiredTaskCount; if true, the default is 1.
getMinScalingCapacity
in interface QueueProcessingServiceBaseProps
public final PropagatedTagSource getPropagateTags()
QueueProcessingServiceBaseProps
Tags can only be propagated to the tasks within the service during service creation.
Default: - none
getPropagateTags
in interface QueueProcessingServiceBaseProps
public final IQueue getQueue()
QueueProcessingServiceBaseProps
If specified and this is a FIFO queue, the queue name must end in the string '.fifo'. See CreateQueue
Default: 'SQSQueue with CloudFormation-generated name'
getQueue
in interface QueueProcessingServiceBaseProps
public final Duration getRetentionPeriod()
QueueProcessingServiceBaseProps
Default: Duration.days(14)
getRetentionPeriod
in interface QueueProcessingServiceBaseProps
public final java.util.List<ScalingInterval> getScalingSteps()
QueueProcessingServiceBaseProps
Maps a range of metric values to a particular scaling behavior. See Simple and Step Scaling Policies for Amazon EC2 Auto Scaling
Default: [{ upper: 0, change: -1 },{ lower: 100, change: +1 },{ lower: 500, change: +5 }]
getScalingSteps
in interface QueueProcessingServiceBaseProps
public final java.util.Map<java.lang.String,Secret> getSecrets()
QueueProcessingServiceBaseProps
Default: - No secret environment variables.
getSecrets
in interface QueueProcessingServiceBaseProps
public final java.lang.String getServiceName()
QueueProcessingServiceBaseProps
Default: - CloudFormation-generated name.
getServiceName
in interface QueueProcessingServiceBaseProps
public final Duration getVisibilityTimeout()
QueueProcessingServiceBaseProps
After dequeuing, the processor has this much time to handle the message and delete it from the queue before it becomes visible again for dequeueing by another processor. Values must be between 0 and (12 hours).
Default: Duration.seconds(30)
getVisibilityTimeout
in interface QueueProcessingServiceBaseProps
public final IVpc getVpc()
QueueProcessingServiceBaseProps
If a vpc is specified, the cluster construct should be omitted. Alternatively, you can omit both vpc and cluster.
Default: - uses the VPC defined in the cluster or creates a new VPC.
getVpc
in interface QueueProcessingServiceBaseProps
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()