@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:29.605Z") @Stability(value=Experimental) public class ApplicationLoadBalancedEc2Service extends ApplicationLoadBalancedServiceBase
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
ApplicationLoadBalancedEc2Service.Builder
(experimental) A fluent builder for
ApplicationLoadBalancedEc2Service. |
software.amazon.jsii.JsiiObject.InitializationModeIConstruct.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
ApplicationLoadBalancedEc2Service(software.constructs.Construct scope,
String id)
(experimental) Constructs a new instance of the ApplicationLoadBalancedEc2Service class.
|
|
ApplicationLoadBalancedEc2Service(software.constructs.Construct scope,
String id,
ApplicationLoadBalancedEc2ServiceProps props)
(experimental) Constructs a new instance of the ApplicationLoadBalancedEc2Service class.
|
protected |
ApplicationLoadBalancedEc2Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ApplicationLoadBalancedEc2Service(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Ec2Service |
getService()
(experimental) The EC2 service in this construct.
|
Ec2TaskDefinition |
getTaskDefinition()
(experimental) The EC2 Task Definition in this construct.
|
addServiceAsTarget, createAWSLogDriver, getCertificate, getCluster, getDefaultCluster, getDefaultCluster, getDesiredCount, getInternalDesiredCount, getListener, getLoadBalancer, getRedirectListener, getTargetGroupgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ApplicationLoadBalancedEc2Service(software.amazon.jsii.JsiiObjectRef objRef)
protected ApplicationLoadBalancedEc2Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public ApplicationLoadBalancedEc2Service(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ApplicationLoadBalancedEc2ServiceProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public ApplicationLoadBalancedEc2Service(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public Ec2Service getService()
@Stability(value=Experimental) @NotNull public Ec2TaskDefinition getTaskDefinition()
Copyright © 2022. All rights reserved.