@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.805Z") @Stability(value=Stable) 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
A fluent builder for
NetworkLoadBalancedEc2Service. |
| Modifier | Constructor and Description |
|---|---|
|
NetworkLoadBalancedEc2Service(software.constructs.Construct scope,
String id)
Constructs a new instance of the NetworkLoadBalancedEc2Service class.
|
|
NetworkLoadBalancedEc2Service(software.constructs.Construct scope,
String id,
NetworkLoadBalancedEc2ServiceProps props)
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()
The ECS service in this construct.
|
Ec2TaskDefinition |
getTaskDefinition()
The EC2 Task Definition in this construct.
|
addServiceAsTarget, createAWSLogDriver, getCluster, getDefaultCluster, getDefaultCluster, getInternalDesiredCount, getListener, getLoadBalancer, getTargetGroupjsiiAsyncCall, 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=Stable)
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=Stable)
public NetworkLoadBalancedEc2Service(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public Ec2Service getService()
@Stability(value=Stable) @NotNull public Ec2TaskDefinition getTaskDefinition()
Copyright © 2022. All rights reserved.