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")
},
MinHealthyPercent = 100,
SecurityGroups = new [] { securityGroup }
});
Synopsis
Constructors
Network |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Network |
Used by jsii to construct an instance of this class from DeputyProps |
Network |
Constructs a new instance of the NetworkLoadBalancedFargateService class. |
Properties
Assign |
|
Service | The Fargate service in this construct. |
Task |
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. By Ref Value 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. Deputy Base. Deputy Props 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 INetwork
Load Balanced Fargate Service Props
Properties
AssignPublicIp
public virtual bool AssignPublicIp { get; }
Property Value
System.
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