@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.780Z") @Stability(value=Stable) public class ApplicationLoadBalancedFargateService extends ApplicationLoadBalancedServiceBase
Example:
Cluster cluster;
ApplicationLoadBalancedFargateService loadBalancedFargateService = ApplicationLoadBalancedFargateService.Builder.create(this, "Service")
.cluster(cluster)
.memoryLimitMiB(1024)
.desiredCount(1)
.cpu(512)
.taskImageOptions(ApplicationLoadBalancedTaskImageOptions.builder()
.image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample"))
.build())
.taskSubnets(SubnetSelection.builder()
.subnets(List.of(Subnet.fromSubnetId(this, "subnet", "VpcISOLATEDSubnet1Subnet80F07FA0")))
.build())
.loadBalancerName("application-lb-name")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
ApplicationLoadBalancedFargateService.Builder
A fluent builder for
ApplicationLoadBalancedFargateService. |
| Modifier | Constructor and Description |
|---|---|
|
ApplicationLoadBalancedFargateService(software.constructs.Construct scope,
String id)
Constructs a new instance of the ApplicationLoadBalancedFargateService class.
|
|
ApplicationLoadBalancedFargateService(software.constructs.Construct scope,
String id,
ApplicationLoadBalancedFargateServiceProps props)
Constructs a new instance of the ApplicationLoadBalancedFargateService class.
|
protected |
ApplicationLoadBalancedFargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ApplicationLoadBalancedFargateService(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAssignPublicIp()
Determines whether the service will be assigned a public IP address.
|
FargateService |
getService()
The Fargate service in this construct.
|
FargateTaskDefinition |
getTaskDefinition()
The Fargate task definition in this construct.
|
addServiceAsTarget, createAWSLogDriver, getCertificate, getCluster, getDefaultCluster, getDefaultCluster, getInternalDesiredCount, getListener, getLoadBalancer, getRedirectListener, getTargetGroupjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ApplicationLoadBalancedFargateService(software.amazon.jsii.JsiiObjectRef objRef)
protected ApplicationLoadBalancedFargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public ApplicationLoadBalancedFargateService(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ApplicationLoadBalancedFargateServiceProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public ApplicationLoadBalancedFargateService(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public Boolean getAssignPublicIp()
@Stability(value=Stable) @NotNull public FargateService getService()
@Stability(value=Stable) @NotNull public FargateTaskDefinition getTaskDefinition()
Copyright © 2022. All rights reserved.