@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:20:05.438Z") public class ExternalService extends BaseService implements IExternalService
Example:
Cluster cluster; TaskDefinition taskDefinition; ExternalService service = ExternalService.Builder.create(this, "Service") .cluster(cluster) .taskDefinition(taskDefinition) .desiredCount(5) .build();
Modifier and Type | Class and Description |
---|---|
static class |
ExternalService.Builder
A fluent builder for
ExternalService . |
IExternalService.Jsii$Default, IExternalService.Jsii$Proxy
IBaseService.Jsii$Default
IApplicationLoadBalancerTarget.Jsii$Default
INetworkLoadBalancerTarget.Jsii$Default
ILoadBalancerTarget.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
ExternalService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ExternalService(software.amazon.jsii.JsiiObjectRef objRef) |
|
ExternalService(software.constructs.Construct scope,
java.lang.String id,
ExternalServiceProps props)
Constructs a new instance of the ExternalService class.
|
Modifier and Type | Method and Description |
---|---|
void |
associateCloudMapService(AssociateCloudMapServiceOptions _options)
Overriden method to throw error as `associateCloudMapService` is not supported for external service.
|
LoadBalancerTargetProps |
attachToApplicationTargetGroup(IApplicationTargetGroup _targetGroup)
Overriden method to throw error as `attachToApplicationTargetGroup` is not supported for external service.
|
ScalableTaskCount |
autoScaleTaskCount(EnableScalingProps _props)
Overriden method to throw error as `autoScaleTaskCount` is not supported for external service.
|
protected void |
configureAwsVpcNetworkingWithSecurityGroups(IVpc _vpc)
Overriden method to throw error as `configureAwsVpcNetworkingWithSecurityGroups` is not supported for external service.
|
protected void |
configureAwsVpcNetworkingWithSecurityGroups(IVpc _vpc,
java.lang.Boolean _assignPublicIp)
Overriden method to throw error as `configureAwsVpcNetworkingWithSecurityGroups` is not supported for external service.
|
protected void |
configureAwsVpcNetworkingWithSecurityGroups(IVpc _vpc,
java.lang.Boolean _assignPublicIp,
SubnetSelection _vpcSubnets)
Overriden method to throw error as `configureAwsVpcNetworkingWithSecurityGroups` is not supported for external service.
|
protected void |
configureAwsVpcNetworkingWithSecurityGroups(IVpc _vpc,
java.lang.Boolean _assignPublicIp,
SubnetSelection _vpcSubnets,
java.util.List<ISecurityGroup> _securityGroups)
Overriden method to throw error as `configureAwsVpcNetworkingWithSecurityGroups` is not supported for external service.
|
Service |
enableCloudMap(CloudMapOptions _options)
Overriden method to throw error as `enableCloudMap` is not supported for external service.
|
static IExternalService |
fromExternalServiceArn(software.constructs.Construct scope,
java.lang.String id,
java.lang.String externalServiceArn)
Imports from the specified service ARN.
|
static IBaseService |
fromExternalServiceAttributes(software.constructs.Construct scope,
java.lang.String id,
ExternalServiceAttributes attrs)
Imports from the specified service attrributes.
|
IEcsLoadBalancerTarget |
loadBalancerTarget(LoadBalancerTargetOptions _options)
Overriden method to throw error as `loadBalancerTarget` is not supported for external service.
|
void |
registerLoadBalancerTargets(EcsTarget... _targets)
Overriden method to throw error as `registerLoadBalancerTargets` is not supported for external service.
|
attachToClassicLB, attachToNetworkTargetGroup, configureAwsVpcNetworking, configureAwsVpcNetworking, configureAwsVpcNetworking, configureAwsVpcNetworking, fromServiceArnWithCluster, getCloudmapService, getCloudMapService, getCluster, getConnections, getLoadBalancers, getNetworkConfiguration, getServiceArn, getServiceName, getServiceRegistries, getTaskDefinition, metric, metric, metricCpuUtilization, metricCpuUtilization, metricMemoryUtilization, metricMemoryUtilization, 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 ExternalService(software.amazon.jsii.JsiiObjectRef objRef)
protected ExternalService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public ExternalService(software.constructs.Construct scope, java.lang.String id, ExternalServiceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IExternalService fromExternalServiceArn(software.constructs.Construct scope, java.lang.String id, java.lang.String externalServiceArn)
scope
- This parameter is required.id
- This parameter is required.externalServiceArn
- This parameter is required.public static IBaseService fromExternalServiceAttributes(software.constructs.Construct scope, java.lang.String id, ExternalServiceAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.public void associateCloudMapService(AssociateCloudMapServiceOptions _options)
associateCloudMapService
in class BaseService
_options
- This parameter is required.public LoadBalancerTargetProps attachToApplicationTargetGroup(IApplicationTargetGroup _targetGroup)
attachToApplicationTargetGroup
in interface IApplicationLoadBalancerTarget
attachToApplicationTargetGroup
in class BaseService
_targetGroup
- This parameter is required.public ScalableTaskCount autoScaleTaskCount(EnableScalingProps _props)
autoScaleTaskCount
in class BaseService
_props
- This parameter is required.protected void configureAwsVpcNetworkingWithSecurityGroups(IVpc _vpc, java.lang.Boolean _assignPublicIp, SubnetSelection _vpcSubnets, java.util.List<ISecurityGroup> _securityGroups)
configureAwsVpcNetworkingWithSecurityGroups
in class BaseService
_vpc
- This parameter is required._assignPublicIp
- _vpcSubnets
- _securityGroups
- protected void configureAwsVpcNetworkingWithSecurityGroups(IVpc _vpc, java.lang.Boolean _assignPublicIp, SubnetSelection _vpcSubnets)
configureAwsVpcNetworkingWithSecurityGroups
in class BaseService
_vpc
- This parameter is required._assignPublicIp
- _vpcSubnets
- protected void configureAwsVpcNetworkingWithSecurityGroups(IVpc _vpc, java.lang.Boolean _assignPublicIp)
configureAwsVpcNetworkingWithSecurityGroups
in class BaseService
_vpc
- This parameter is required._assignPublicIp
- protected void configureAwsVpcNetworkingWithSecurityGroups(IVpc _vpc)
configureAwsVpcNetworkingWithSecurityGroups
in class BaseService
_vpc
- This parameter is required.public Service enableCloudMap(CloudMapOptions _options)
enableCloudMap
in class BaseService
_options
- This parameter is required.public IEcsLoadBalancerTarget loadBalancerTarget(LoadBalancerTargetOptions _options)
loadBalancerTarget
in class BaseService
_options
- This parameter is required.public void registerLoadBalancerTargets(EcsTarget... _targets)
registerLoadBalancerTargets
in class BaseService
_targets
- This parameter is required.