Class QueueProcessingFargateService
Class to create a queue processing Fargate service.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class QueueProcessingFargateService : QueueProcessingServiceBase
Syntax (vb)
Public Class QueueProcessingFargateService
Inherits QueueProcessingServiceBase
Remarks
ExampleMetadata: infused
Examples
Cluster cluster;
cluster.EnableFargateCapacityProviders();
var queueProcessingFargateService = new QueueProcessingFargateService(this, "Service", new QueueProcessingFargateServiceProps {
Cluster = cluster,
MemoryLimitMiB = 512,
Image = ContainerImage.FromRegistry("test"),
CapacityProviderStrategies = new [] { new CapacityProviderStrategy {
CapacityProvider = "FARGATE_SPOT",
Weight = 2
}, new CapacityProviderStrategy {
CapacityProvider = "FARGATE",
Weight = 1
} }
});
Synopsis
Constructors
QueueProcessingFargateService(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
QueueProcessingFargateService(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
QueueProcessingFargateService(Construct, String, IQueueProcessingFargateServiceProps) | Constructs a new instance of the QueueProcessingFargateService class. |
Properties
Service | The Fargate service in this construct. |
TaskDefinition | The Fargate task definition in this construct. |
Constructors
QueueProcessingFargateService(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected QueueProcessingFargateService(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
QueueProcessingFargateService(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected QueueProcessingFargateService(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
QueueProcessingFargateService(Construct, String, IQueueProcessingFargateServiceProps)
Constructs a new instance of the QueueProcessingFargateService class.
public QueueProcessingFargateService(Construct scope, string id, IQueueProcessingFargateServiceProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props IQueueProcessingFargateServiceProps
Properties
Service
The Fargate service in this construct.
public virtual FargateService Service { get; }
Property Value
TaskDefinition
The Fargate task definition in this construct.
public virtual FargateTaskDefinition TaskDefinition { get; }
Property Value