@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:07.987Z") @Stability(value=Experimental) public class ApplicationMultipleTargetGroupsFargateService extends ApplicationMultipleTargetGroupsServiceBase
Example:
// One application load balancer with one listener and two target groups.
Cluster cluster;
ApplicationMultipleTargetGroupsFargateService loadBalancedFargateService = ApplicationMultipleTargetGroupsFargateService.Builder.create(this, "Service")
.cluster(cluster)
.memoryLimitMiB(1024)
.cpu(512)
.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 |
ApplicationMultipleTargetGroupsFargateService.Builder
(experimental) A fluent builder for
ApplicationMultipleTargetGroupsFargateService. |
software.amazon.jsii.JsiiObject.InitializationModeIConstruct.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
ApplicationMultipleTargetGroupsFargateService(software.constructs.Construct scope,
String id)
(experimental) Constructs a new instance of the ApplicationMultipleTargetGroupsFargateService class.
|
|
ApplicationMultipleTargetGroupsFargateService(software.constructs.Construct scope,
String id,
ApplicationMultipleTargetGroupsFargateServiceProps props)
(experimental) Constructs a new instance of the ApplicationMultipleTargetGroupsFargateService class.
|
protected |
ApplicationMultipleTargetGroupsFargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ApplicationMultipleTargetGroupsFargateService(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAssignPublicIp()
(experimental) Determines whether the service will be assigned a public IP address.
|
FargateService |
getService()
(experimental) The Fargate service in this construct.
|
ApplicationTargetGroup |
getTargetGroup()
(experimental) The default target group for the service.
|
FargateTaskDefinition |
getTaskDefinition()
(experimental) The Fargate task definition in this construct.
|
addPortMappingForTargets, createAWSLogDriver, findListener, findListener, getCluster, getDefaultCluster, getDefaultCluster, getDesiredCount, getInternalDesiredCount, getListener, getListeners, getLoadBalancer, getLogDriver, getTargetGroups, registerECSTargets, setListeners, setLogDriver, setTargetGroupsgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ApplicationMultipleTargetGroupsFargateService(software.amazon.jsii.JsiiObjectRef objRef)
protected ApplicationMultipleTargetGroupsFargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public ApplicationMultipleTargetGroupsFargateService(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ApplicationMultipleTargetGroupsFargateServiceProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public ApplicationMultipleTargetGroupsFargateService(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public Boolean getAssignPublicIp()
@Stability(value=Experimental) @NotNull public FargateService getService()
@Stability(value=Experimental) @NotNull public ApplicationTargetGroup getTargetGroup()
@Stability(value=Experimental) @NotNull public FargateTaskDefinition getTaskDefinition()
Copyright © 2022. All rights reserved.