Class NetworkLoadBalancedFargateService
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedServiceBase
software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedFargateService
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:09.861Z")
@Stability(Stable)
public class NetworkLoadBalancedFargateService
extends NetworkLoadBalancedServiceBase
A Fargate service running on an ECS cluster fronted by a network load balancer.
Example:
Vpc vpc;
SecurityGroup securityGroup;
NetworkLoadBalancedFargateService queueProcessingFargateService = NetworkLoadBalancedFargateService.Builder.create(this, "Service")
.vpc(vpc)
.memoryLimitMiB(512)
.taskImageOptions(NetworkLoadBalancedTaskImageOptions.builder()
.image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample"))
.build())
.minHealthyPercent(100)
.securityGroups(List.of(securityGroup))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forNetworkLoadBalancedFargateService.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNetworkLoadBalancedFargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedNetworkLoadBalancedFargateService(software.amazon.jsii.JsiiObjectRef objRef) NetworkLoadBalancedFargateService(software.constructs.Construct scope, String id) Constructs a new instance of the NetworkLoadBalancedFargateService class.NetworkLoadBalancedFargateService(software.constructs.Construct scope, String id, NetworkLoadBalancedFargateServiceProps props) Constructs a new instance of the NetworkLoadBalancedFargateService class. -
Method Summary
Modifier and TypeMethodDescriptionThe Fargate service in this construct.The Fargate task definition in this construct.Methods inherited from class software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedServiceBase
addServiceAsTarget, createAWSLogDriver, getCluster, getDefaultCluster, getDefaultCluster, getInternalDesiredCount, getListener, getLoadBalancer, getTargetGroupMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
NetworkLoadBalancedFargateService
protected NetworkLoadBalancedFargateService(software.amazon.jsii.JsiiObjectRef objRef) -
NetworkLoadBalancedFargateService
protected NetworkLoadBalancedFargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
NetworkLoadBalancedFargateService
@Stability(Stable) public NetworkLoadBalancedFargateService(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable NetworkLoadBalancedFargateServiceProps props) Constructs a new instance of the NetworkLoadBalancedFargateService class.- Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
NetworkLoadBalancedFargateService
@Stability(Stable) public NetworkLoadBalancedFargateService(@NotNull software.constructs.Construct scope, @NotNull String id) Constructs a new instance of the NetworkLoadBalancedFargateService class.- Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
getAssignPublicIp
-
getService
The Fargate service in this construct. -
getTaskDefinition
The Fargate task definition in this construct.
-