Class ApplicationLoadBalancedFargateService
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancedServiceBase
software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancedFargateService
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-27T16:50:57.137Z")
@Stability(Stable)
public class ApplicationLoadBalancedFargateService
extends ApplicationLoadBalancedServiceBase
A Fargate service running on an ECS cluster fronted by an application load balancer.
Example:
Cluster cluster; ApplicationLoadBalancedFargateService loadBalancedFargateService = ApplicationLoadBalancedFargateService.Builder.create(this, "Service") .cluster(cluster) .memoryLimitMiB(1024) .desiredCount(1) .cpu(512) .taskImageOptions(ApplicationLoadBalancedTaskImageOptions.builder() .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample")) .build()) .build(); ScalableTaskCount scalableTarget = loadBalancedFargateService.service.autoScaleTaskCount(EnableScalingProps.builder() .minCapacity(1) .maxCapacity(20) .build()); scalableTarget.scaleOnCpuUtilization("CpuScaling", CpuUtilizationScalingProps.builder() .targetUtilizationPercent(50) .build()); scalableTarget.scaleOnMemoryUtilization("MemoryScaling", MemoryUtilizationScalingProps.builder() .targetUtilizationPercent(50) .build());
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forApplicationLoadBalancedFargateService
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
ApplicationLoadBalancedFargateService
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ApplicationLoadBalancedFargateService
(software.amazon.jsii.JsiiObjectRef objRef) ApplicationLoadBalancedFargateService
(software.constructs.Construct scope, String id) Constructs a new instance of the ApplicationLoadBalancedFargateService class.ApplicationLoadBalancedFargateService
(software.constructs.Construct scope, String id, ApplicationLoadBalancedFargateServiceProps props) Constructs a new instance of the ApplicationLoadBalancedFargateService class. -
Method Summary
Modifier and TypeMethodDescriptionDetermines whether the service will be assigned a public IP address.The Fargate service in this construct.The Fargate task definition in this construct.Methods inherited from class software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancedServiceBase
addServiceAsTarget, createAWSLogDriver, getCertificate, getCluster, getDefaultCluster, getDefaultCluster, getInternalDesiredCount, getListener, getLoadBalancer, getRedirectListener, getTargetGroup
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ApplicationLoadBalancedFargateService
protected ApplicationLoadBalancedFargateService(software.amazon.jsii.JsiiObjectRef objRef) -
ApplicationLoadBalancedFargateService
protected ApplicationLoadBalancedFargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ApplicationLoadBalancedFargateService
@Stability(Stable) public ApplicationLoadBalancedFargateService(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ApplicationLoadBalancedFargateServiceProps props) Constructs a new instance of the ApplicationLoadBalancedFargateService class.- Parameters:
scope
- This parameter is required.id
- This parameter is required.props
-
-
ApplicationLoadBalancedFargateService
@Stability(Stable) public ApplicationLoadBalancedFargateService(@NotNull software.constructs.Construct scope, @NotNull String id) Constructs a new instance of the ApplicationLoadBalancedFargateService class.- Parameters:
scope
- This parameter is required.id
- This parameter is required.
-
-
Method Details
-
getAssignPublicIp
Determines whether the service will be assigned a public IP address. -
getService
The Fargate service in this construct. -
getTaskDefinition
The Fargate task definition in this construct.
-