Class NetworkLoadBalancedFargateService
A Fargate service running on an ECS cluster fronted by a network load balancer.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class NetworkLoadBalancedFargateService : NetworkLoadBalancedServiceBase
Syntax (vb)
Public Class NetworkLoadBalancedFargateService
Inherits NetworkLoadBalancedServiceBase
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
SecurityGroup securityGroup;
var queueProcessingFargateService = new NetworkLoadBalancedFargateService(this, "Service", new NetworkLoadBalancedFargateServiceProps {
Vpc = vpc,
MemoryLimitMiB = 512,
TaskImageOptions = new NetworkLoadBalancedTaskImageOptions {
Image = ContainerImage.FromRegistry("amazon/amazon-ecs-sample")
},
SecurityGroups = new [] { securityGroup }
});
Synopsis
Constructors
NetworkLoadBalancedFargateService(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
NetworkLoadBalancedFargateService(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
NetworkLoadBalancedFargateService(Construct, String, INetworkLoadBalancedFargateServiceProps) | Constructs a new instance of the NetworkLoadBalancedFargateService class. |
Properties
AssignPublicIp | |
Service | The Fargate service in this construct. |
TaskDefinition | The Fargate task definition in this construct. |
Constructors
NetworkLoadBalancedFargateService(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected NetworkLoadBalancedFargateService(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
NetworkLoadBalancedFargateService(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected NetworkLoadBalancedFargateService(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
NetworkLoadBalancedFargateService(Construct, String, INetworkLoadBalancedFargateServiceProps)
Constructs a new instance of the NetworkLoadBalancedFargateService class.
public NetworkLoadBalancedFargateService(Construct scope, string id, INetworkLoadBalancedFargateServiceProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props INetworkLoadBalancedFargateServiceProps
Properties
AssignPublicIp
public virtual bool AssignPublicIp { get; }
Property Value
System.Boolean
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