Class ApplicationLoadBalancedEc2Service
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancedServiceBase
software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancedEc2Service
- All Implemented Interfaces:
IConstruct,IDependable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:48.667Z")
@Stability(Stable)
public class ApplicationLoadBalancedEc2Service
extends ApplicationLoadBalancedServiceBase
An EC2 service running on an ECS cluster fronted by an application load balancer.
Example:
Cluster cluster;
ApplicationLoadBalancedEc2Service loadBalancedEcsService = ApplicationLoadBalancedEc2Service.Builder.create(this, "Service")
.cluster(cluster)
.memoryLimitMiB(1024)
.taskImageOptions(ApplicationLoadBalancedTaskImageOptions.builder()
.image(ContainerImage.fromRegistry("test"))
.environment(Map.of(
"TEST_ENVIRONMENT_VARIABLE1", "test environment variable 1 value",
"TEST_ENVIRONMENT_VARIABLE2", "test environment variable 2 value"))
.build())
.desiredCount(2)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forApplicationLoadBalancedEc2Service.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedApplicationLoadBalancedEc2Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedApplicationLoadBalancedEc2Service(software.amazon.jsii.JsiiObjectRef objRef) ApplicationLoadBalancedEc2Service(software.constructs.Construct scope, String id) Constructs a new instance of the ApplicationLoadBalancedEc2Service class.ApplicationLoadBalancedEc2Service(software.constructs.Construct scope, String id, ApplicationLoadBalancedEc2ServiceProps props) Constructs a new instance of the ApplicationLoadBalancedEc2Service class. -
Method Summary
Modifier and TypeMethodDescriptionThe EC2 service in this construct.The EC2 Task Definition in this construct.Methods inherited from class software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancedServiceBase
addServiceAsTarget, createAWSLogDriver, getCertificate, getCluster, getDefaultCluster, getDefaultCluster, getDesiredCount, getInternalDesiredCount, getListener, getLoadBalancer, getRedirectListener, getTargetGroupMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
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
-
Constructor Details
-
ApplicationLoadBalancedEc2Service
protected ApplicationLoadBalancedEc2Service(software.amazon.jsii.JsiiObjectRef objRef) -
ApplicationLoadBalancedEc2Service
protected ApplicationLoadBalancedEc2Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ApplicationLoadBalancedEc2Service
@Stability(Stable) public ApplicationLoadBalancedEc2Service(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ApplicationLoadBalancedEc2ServiceProps props) Constructs a new instance of the ApplicationLoadBalancedEc2Service class.- Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
ApplicationLoadBalancedEc2Service
@Stability(Stable) public ApplicationLoadBalancedEc2Service(@NotNull software.constructs.Construct scope, @NotNull String id) Constructs a new instance of the ApplicationLoadBalancedEc2Service class.- Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
getService
The EC2 service in this construct. -
getTaskDefinition
The EC2 Task Definition in this construct.
-