@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.703Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIFargateService.Jsii$Default, IFargateService.Jsii$ProxyIBaseService.Jsii$DefaultIApplicationLoadBalancerTarget.Jsii$DefaultINetworkLoadBalancerTarget.Jsii$DefaultILoadBalancerTarget.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
FargateService(software.constructs.Construct scope,
String id,
FargateServiceProps props)
Constructs a new instance of the FargateService class.
|
protected |
FargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FargateService(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IFargateService |
fromFargateServiceArn(software.constructs.Construct scope,
String id,
String fargateServiceArn)
Imports from the specified service ARN.
|
static IBaseService |
fromFargateServiceAttributes(software.constructs.Construct scope,
String id,
FargateServiceAttributes attrs)
Imports from the specified service attributes.
|
associateCloudMapService, attachToApplicationTargetGroup, attachToClassicLB, attachToNetworkTargetGroup, autoScaleTaskCount, 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, setServiceRegistriesapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetServiceArn, getServiceNameapplyRemovalPolicy, getEnv, getStackprotected FargateService(software.amazon.jsii.JsiiObjectRef objRef)
protected FargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public FargateService(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
FargateServiceProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IFargateService fromFargateServiceArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String fargateServiceArn)
scope - This parameter is required.id - This parameter is required.fargateServiceArn - This parameter is required.@Stability(value=Stable) @NotNull public static IBaseService fromFargateServiceAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FargateServiceAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.Copyright © 2022. All rights reserved.