@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:49.683Z") public class FargateService extends BaseService implements IFargateService
Example:
Cluster cluster; TaskDefinition taskDefinition; Vpc vpc; FargateService service = FargateService.Builder.create(this, "Service").cluster(cluster).taskDefinition(taskDefinition).build(); ApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, "LB").vpc(vpc).internetFacing(true).build(); ApplicationListener listener = lb.addListener("Listener", BaseApplicationListenerProps.builder().port(80).build()); service.registerLoadBalancerTargets(EcsTarget.builder() .containerName("web") .containerPort(80) .newTargetGroupId("ECS") .listener(ListenerConfig.applicationListener(listener, AddApplicationTargetsProps.builder() .protocol(ApplicationProtocol.HTTPS) .build())) .build());
Modifier and Type | Class and Description |
---|---|
static class |
FargateService.Builder
A fluent builder for
FargateService . |
IFargateService.Jsii$Default, IFargateService.Jsii$Proxy
IBaseService.Jsii$Default
IApplicationLoadBalancerTarget.Jsii$Default
INetworkLoadBalancerTarget.Jsii$Default
ILoadBalancerTarget.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
FargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FargateService(software.amazon.jsii.JsiiObjectRef objRef) |
|
FargateService(software.constructs.Construct scope,
java.lang.String id,
FargateServiceProps props)
Constructs a new instance of the FargateService class.
|
Modifier and Type | Method and Description |
---|---|
static IFargateService |
fromFargateServiceArn(software.constructs.Construct scope,
java.lang.String id,
java.lang.String fargateServiceArn)
Imports from the specified service ARN.
|
static IBaseService |
fromFargateServiceAttributes(software.constructs.Construct scope,
java.lang.String id,
FargateServiceAttributes attrs)
Imports from the specified service attributes.
|
associateCloudMapService, attachToApplicationTargetGroup, attachToClassicLB, attachToNetworkTargetGroup, autoScaleTaskCount, configureAwsVpcNetworking, configureAwsVpcNetworking, configureAwsVpcNetworking, configureAwsVpcNetworking, configureAwsVpcNetworkingWithSecurityGroups, configureAwsVpcNetworkingWithSecurityGroups, configureAwsVpcNetworkingWithSecurityGroups, configureAwsVpcNetworkingWithSecurityGroups, enableCloudMap, fromServiceArnWithCluster, getCloudmapService, getCloudMapService, getCluster, getConnections, getLoadBalancers, getNetworkConfiguration, getServiceArn, getServiceName, getServiceRegistries, getTaskDefinition, loadBalancerTarget, metric, metric, metricCpuUtilization, metricCpuUtilization, metricMemoryUtilization, metricMemoryUtilization, registerLoadBalancerTargets, setCloudmapService, setLoadBalancers, setNetworkConfiguration, setServiceRegistries
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getServiceArn, getServiceName
applyRemovalPolicy, getEnv, getStack
getNode
protected FargateService(software.amazon.jsii.JsiiObjectRef objRef)
protected FargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public FargateService(software.constructs.Construct scope, java.lang.String id, FargateServiceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IFargateService fromFargateServiceArn(software.constructs.Construct scope, java.lang.String id, java.lang.String fargateServiceArn)
scope
- This parameter is required.id
- This parameter is required.fargateServiceArn
- This parameter is required.public static IBaseService fromFargateServiceAttributes(software.constructs.Construct scope, java.lang.String id, FargateServiceAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.