@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:50.898Z") public class NetworkLoadBalancedFargateService extends NetworkLoadBalancedServiceBase
Example:
Cluster cluster; NetworkLoadBalancedFargateService loadBalancedFargateService = NetworkLoadBalancedFargateService.Builder.create(this, "Service") .cluster(cluster) .memoryLimitMiB(1024) .cpu(512) .taskImageOptions(NetworkLoadBalancedTaskImageOptions.builder() .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample")) .build()) .build();
Modifier and Type | Class and Description |
---|---|
static class |
NetworkLoadBalancedFargateService.Builder
A fluent builder for
NetworkLoadBalancedFargateService . |
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
NetworkLoadBalancedFargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
NetworkLoadBalancedFargateService(software.amazon.jsii.JsiiObjectRef objRef) |
|
NetworkLoadBalancedFargateService(software.constructs.Construct scope,
java.lang.String id)
Constructs a new instance of the NetworkLoadBalancedFargateService class.
|
|
NetworkLoadBalancedFargateService(software.constructs.Construct scope,
java.lang.String id,
NetworkLoadBalancedFargateServiceProps props)
Constructs a new instance of the NetworkLoadBalancedFargateService class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getAssignPublicIp() |
FargateService |
getService()
The Fargate service in this construct.
|
FargateTaskDefinition |
getTaskDefinition()
The Fargate task definition in this construct.
|
addServiceAsTarget, createAWSLogDriver, getCluster, getDefaultCluster, getDefaultCluster, getDesiredCount, getInternalDesiredCount, getListener, getLoadBalancer, getTargetGroup
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected NetworkLoadBalancedFargateService(software.amazon.jsii.JsiiObjectRef objRef)
protected NetworkLoadBalancedFargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public NetworkLoadBalancedFargateService(software.constructs.Construct scope, java.lang.String id, NetworkLoadBalancedFargateServiceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- public NetworkLoadBalancedFargateService(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public java.lang.Boolean getAssignPublicIp()
public FargateService getService()
public FargateTaskDefinition getTaskDefinition()