Show / Hide Table of Contents

Class ApplicationMultipleTargetGroupsFargateService

A Fargate service running on an ECS cluster fronted by an application load balancer.

Inheritance
System.Object
Construct
ApplicationMultipleTargetGroupsServiceBase
ApplicationMultipleTargetGroupsFargateService
Implements
IConstruct
Constructs.IConstruct
IDependable
Inherited Members
ApplicationMultipleTargetGroupsServiceBase.AddPortMappingForTargets(ContainerDefinition, IApplicationTargetProps[])
ApplicationMultipleTargetGroupsServiceBase.CreateAWSLogDriver(String)
ApplicationMultipleTargetGroupsServiceBase.FindListener(String)
ApplicationMultipleTargetGroupsServiceBase.GetDefaultCluster(Construct, IVpc)
ApplicationMultipleTargetGroupsServiceBase.RegisterECSTargets(BaseService, ContainerDefinition, IApplicationTargetProps[])
ApplicationMultipleTargetGroupsServiceBase.Cluster
ApplicationMultipleTargetGroupsServiceBase.DesiredCount
ApplicationMultipleTargetGroupsServiceBase.Listener
ApplicationMultipleTargetGroupsServiceBase.LoadBalancer
ApplicationMultipleTargetGroupsServiceBase.InternalDesiredCount
ApplicationMultipleTargetGroupsServiceBase.Listeners
ApplicationMultipleTargetGroupsServiceBase.TargetGroups
ApplicationMultipleTargetGroupsServiceBase.LogDriver
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.AWS.ECS.Patterns.dll
Syntax (csharp)
public class ApplicationMultipleTargetGroupsFargateService : ApplicationMultipleTargetGroupsServiceBase, IConstruct, IDependable
Syntax (vb)
Public Class ApplicationMultipleTargetGroupsFargateService
    Inherits ApplicationMultipleTargetGroupsServiceBase
    Implements IConstruct, IDependable
Remarks

ExampleMetadata: infused

Examples
// One application load balancer with one listener and two target groups.
Cluster cluster;

var loadBalancedFargateService = new ApplicationMultipleTargetGroupsFargateService(this, "Service", new ApplicationMultipleTargetGroupsFargateServiceProps {
    Cluster = cluster,
    MemoryLimitMiB = 1024,
    Cpu = 512,
    TaskImageOptions = new ApplicationLoadBalancedTaskImageProps {
        Image = ContainerImage.FromRegistry("amazon/amazon-ecs-sample")
    },
    TargetGroups = new [] { new ApplicationTargetProps {
        ContainerPort = 80
    }, new ApplicationTargetProps {
        ContainerPort = 90,
        PathPattern = "a/b/c",
        Priority = 10
    } }
});

Synopsis

Constructors

ApplicationMultipleTargetGroupsFargateService(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

ApplicationMultipleTargetGroupsFargateService(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

ApplicationMultipleTargetGroupsFargateService(Construct, String, IApplicationMultipleTargetGroupsFargateServiceProps)

Constructs a new instance of the ApplicationMultipleTargetGroupsFargateService class.

Properties

AssignPublicIp

Determines whether the service will be assigned a public IP address.

Service

The Fargate service in this construct.

TargetGroup

The default target group for the service.

TaskDefinition

The Fargate task definition in this construct.

Constructors

ApplicationMultipleTargetGroupsFargateService(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected ApplicationMultipleTargetGroupsFargateService(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

ApplicationMultipleTargetGroupsFargateService(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected ApplicationMultipleTargetGroupsFargateService(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

ApplicationMultipleTargetGroupsFargateService(Construct, String, IApplicationMultipleTargetGroupsFargateServiceProps)

Constructs a new instance of the ApplicationMultipleTargetGroupsFargateService class.

public ApplicationMultipleTargetGroupsFargateService(Construct scope, string id, IApplicationMultipleTargetGroupsFargateServiceProps props = null)
Parameters
scope Constructs.Construct
id System.String
props IApplicationMultipleTargetGroupsFargateServiceProps

Properties

AssignPublicIp

Determines whether the service will be assigned a public IP address.

public virtual bool AssignPublicIp { get; }
Property Value

System.Boolean

Service

The Fargate service in this construct.

public virtual FargateService Service { get; }
Property Value

FargateService

TargetGroup

The default target group for the service.

public virtual ApplicationTargetGroup TargetGroup { get; }
Property Value

ApplicationTargetGroup

TaskDefinition

The Fargate task definition in this construct.

public virtual FargateTaskDefinition TaskDefinition { get; }
Property Value

FargateTaskDefinition

Implements

IConstruct
Constructs.IConstruct
IDependable
Back to top Generated by DocFX