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