@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:30.090Z") 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
A fluent builder for
ApplicationLoadBalancedEc2Service . |
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
ApplicationLoadBalancedEc2Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ApplicationLoadBalancedEc2Service(software.amazon.jsii.JsiiObjectRef objRef) |
|
ApplicationLoadBalancedEc2Service(software.constructs.Construct scope,
java.lang.String id)
Constructs a new instance of the ApplicationLoadBalancedEc2Service class.
|
|
ApplicationLoadBalancedEc2Service(software.constructs.Construct scope,
java.lang.String id,
ApplicationLoadBalancedEc2ServiceProps props)
Constructs a new instance of the ApplicationLoadBalancedEc2Service class.
|
Modifier and Type | Method and Description |
---|---|
Ec2Service |
getService()
The EC2 service in this construct.
|
Ec2TaskDefinition |
getTaskDefinition()
The EC2 Task Definition in this construct.
|
addServiceAsTarget, createAWSLogDriver, getCertificate, getCluster, getDefaultCluster, getDefaultCluster, getDesiredCount, getInternalDesiredCount, getListener, getLoadBalancer, getRedirectListener, getTargetGroup
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected ApplicationLoadBalancedEc2Service(software.amazon.jsii.JsiiObjectRef objRef)
protected ApplicationLoadBalancedEc2Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public ApplicationLoadBalancedEc2Service(software.constructs.Construct scope, java.lang.String id, ApplicationLoadBalancedEc2ServiceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- public ApplicationLoadBalancedEc2Service(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public Ec2Service getService()
public Ec2TaskDefinition getTaskDefinition()