@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-11T17:58:52.472Z") @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 . |
software.amazon.jsii.JsiiObject.InitializationMode
IConstruct.Jsii$Default
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()
The default target group for the service.
|
Ec2TaskDefinition |
getTaskDefinition()
The EC2 Task Definition in this construct.
|
addPortMappingForTargets, createAWSLogDriver, findListener, findListener, getCluster, getDefaultCluster, getDefaultCluster, getDesiredCount, getInternalDesiredCount, getListener, getListeners, getLoadBalancer, getLogDriver, getTargetGroups, registerECSTargets, setListeners, setLogDriver, setTargetGroups
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected 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=Stable) @NotNull public ApplicationTargetGroup getTargetGroup()
@Stability(value=Stable) @NotNull public Ec2TaskDefinition getTaskDefinition()
Copyright © 2022. All rights reserved.