Class QueueProcessingEc2Service
Class to create a queue processing EC2 service.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class QueueProcessingEc2Service : QueueProcessingServiceBase
Syntax (vb)
Public Class QueueProcessingEc2Service
Inherits QueueProcessingServiceBase
Remarks
ExampleMetadata: infused
Examples
Cluster cluster;
var queueProcessingEc2Service = new QueueProcessingEc2Service(this, "Service", new QueueProcessingEc2ServiceProps {
Cluster = cluster,
MemoryLimitMiB = 1024,
Image = ContainerImage.FromRegistry("test"),
Command = new [] { "-c", "4", "amazon.com" },
EnableLogging = false,
DesiredTaskCount = 2,
Environment = new Dictionary<string, string> {
{ "TEST_ENVIRONMENT_VARIABLE1", "test environment variable 1 value" },
{ "TEST_ENVIRONMENT_VARIABLE2", "test environment variable 2 value" }
},
MaxScalingCapacity = 5,
ContainerName = "test"
});
Synopsis
Constructors
QueueProcessingEc2Service(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
QueueProcessingEc2Service(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
QueueProcessingEc2Service(Construct, String, IQueueProcessingEc2ServiceProps) | Constructs a new instance of the QueueProcessingEc2Service class. |
Properties
Service | The EC2 service in this construct. |
TaskDefinition | The EC2 task definition in this construct. |
Constructors
QueueProcessingEc2Service(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected QueueProcessingEc2Service(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
QueueProcessingEc2Service(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected QueueProcessingEc2Service(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
QueueProcessingEc2Service(Construct, String, IQueueProcessingEc2ServiceProps)
Constructs a new instance of the QueueProcessingEc2Service class.
public QueueProcessingEc2Service(Construct scope, string id, IQueueProcessingEc2ServiceProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props IQueueProcessingEc2ServiceProps
Properties
Service
The EC2 service in this construct.
public virtual Ec2Service Service { get; }
Property Value
TaskDefinition
The EC2 task definition in this construct.
public virtual Ec2TaskDefinition TaskDefinition { get; }
Property Value