@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.787Z") @Stability(value=Stable) public class ApplicationMultipleTargetGroupsEc2Service extends ApplicationMultipleTargetGroupsServiceBase
Example:
// One application load balancer with one listener and two target groups.
Cluster cluster;
ApplicationMultipleTargetGroupsEc2Service loadBalancedEc2Service = ApplicationMultipleTargetGroupsEc2Service.Builder.create(this, "Service")
.cluster(cluster)
.memoryLimitMiB(256)
.taskImageOptions(ApplicationLoadBalancedTaskImageProps.builder()
.image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample"))
.build())
.targetGroups(List.of(ApplicationTargetProps.builder()
.containerPort(80)
.build(), ApplicationTargetProps.builder()
.containerPort(90)
.pathPattern("a/b/c")
.priority(10)
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
ApplicationMultipleTargetGroupsEc2Service.Builder
A fluent builder for
ApplicationMultipleTargetGroupsEc2Service. |
| Modifier | Constructor and Description |
|---|---|
|
ApplicationMultipleTargetGroupsEc2Service(software.constructs.Construct scope,
String id)
Constructs a new instance of the ApplicationMultipleTargetGroupsEc2Service class.
|
|
ApplicationMultipleTargetGroupsEc2Service(software.constructs.Construct scope,
String id,
ApplicationMultipleTargetGroupsEc2ServiceProps props)
Constructs a new instance of the ApplicationMultipleTargetGroupsEc2Service class.
|
protected |
ApplicationMultipleTargetGroupsEc2Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ApplicationMultipleTargetGroupsEc2Service(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Ec2Service |
getService()
The EC2 service in this construct.
|
ApplicationTargetGroup |
getTargetGroup()
Deprecated.
- Use `targetGroups` instead.
|
Ec2TaskDefinition |
getTaskDefinition()
The EC2 Task Definition in this construct.
|
addPortMappingForTargets, createAWSLogDriver, findListener, findListener, getCluster, getDefaultCluster, getDefaultCluster, getInternalDesiredCount, getListener, getListeners, getLoadBalancer, getLoadBalancers, getLogDriver, getTargetGroups, registerECSTargets, setLogDriverjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ApplicationMultipleTargetGroupsEc2Service(software.amazon.jsii.JsiiObjectRef objRef)
protected ApplicationMultipleTargetGroupsEc2Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public ApplicationMultipleTargetGroupsEc2Service(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ApplicationMultipleTargetGroupsEc2ServiceProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public ApplicationMultipleTargetGroupsEc2Service(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public Ec2Service getService()
@Stability(value=Deprecated) @Deprecated @NotNull public ApplicationTargetGroup getTargetGroup()
@Stability(value=Stable) @NotNull public Ec2TaskDefinition getTaskDefinition()
Copyright © 2022. All rights reserved.