Class ExternalService
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.ecs.BaseService
software.amazon.awscdk.services.ecs.ExternalService
- All Implemented Interfaces:
IConstruct,IDependable,IResource,IConnectable,IBaseService,IExternalService,IService,ILoadBalancerTarget,IApplicationLoadBalancerTarget,INetworkLoadBalancerTarget,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.315Z")
@Stability(Stable)
public class ExternalService
extends BaseService
implements IExternalService
This creates a service using the External launch type on an ECS cluster.
Example:
Cluster cluster;
TaskDefinition taskDefinition;
ExternalService service = ExternalService.Builder.create(this, "Service")
.cluster(cluster)
.taskDefinition(taskDefinition)
.desiredCount(5)
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancerTarget
IApplicationLoadBalancerTarget.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.ecs.IBaseService
IBaseService.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.ecs.IExternalService
IExternalService.Jsii$Default, IExternalService.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticloadbalancing.ILoadBalancerTarget
ILoadBalancerTarget.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancerTarget
INetworkLoadBalancerTarget.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExternalService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedExternalService(software.amazon.jsii.JsiiObjectRef objRef) ExternalService(software.constructs.Construct scope, String id, ExternalServiceProps props) Constructs a new instance of the ExternalService class. -
Method Summary
Modifier and TypeMethodDescriptionvoidOverriden method to throw error asassociateCloudMapServiceis not supported for external service.attachToApplicationTargetGroup(IApplicationTargetGroup _targetGroup) Overriden method to throw error asattachToApplicationTargetGroupis not supported for external service.autoScaleTaskCount(EnableScalingProps _props) Overriden method to throw error asautoScaleTaskCountis not supported for external service.protected voidOverriden method to throw error asconfigureAwsVpcNetworkingWithSecurityGroupsis not supported for external service.protected voidconfigureAwsVpcNetworkingWithSecurityGroups(IVpc _vpc, Boolean _assignPublicIp) Overriden method to throw error asconfigureAwsVpcNetworkingWithSecurityGroupsis not supported for external service.protected voidconfigureAwsVpcNetworkingWithSecurityGroups(IVpc _vpc, Boolean _assignPublicIp, SubnetSelection _vpcSubnets) Overriden method to throw error asconfigureAwsVpcNetworkingWithSecurityGroupsis not supported for external service.protected voidconfigureAwsVpcNetworkingWithSecurityGroups(IVpc _vpc, Boolean _assignPublicIp, SubnetSelection _vpcSubnets, List<ISecurityGroup> _securityGroups) Overriden method to throw error asconfigureAwsVpcNetworkingWithSecurityGroupsis not supported for external service.enableCloudMap(CloudMapOptions _options) Overriden method to throw error asenableCloudMapis not supported for external service.static IExternalServicefromExternalServiceArn(software.constructs.Construct scope, String id, String externalServiceArn) Imports from the specified service ARN.static IBaseServicefromExternalServiceAttributes(software.constructs.Construct scope, String id, ExternalServiceAttributes attrs) Imports from the specified service attributes.loadBalancerTarget(LoadBalancerTargetOptions _options) Overriden method to throw error asloadBalancerTargetis not supported for external service.voidregisterLoadBalancerTargets(@NotNull EcsTarget... _targets) Overriden method to throw error asregisterLoadBalancerTargetsis not supported for external service.Methods inherited from class software.amazon.awscdk.services.ecs.BaseService
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, setServiceRegistriesMethods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.awscdk.services.ecs.IService
getServiceArn, getServiceNameMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ExternalService
protected ExternalService(software.amazon.jsii.JsiiObjectRef objRef) -
ExternalService
protected ExternalService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ExternalService
@Stability(Stable) public ExternalService(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ExternalServiceProps props) Constructs a new instance of the ExternalService class.- Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromExternalServiceArn
@Stability(Stable) @NotNull public static IExternalService fromExternalServiceArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String externalServiceArn) Imports from the specified service ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.externalServiceArn- This parameter is required.
-
fromExternalServiceAttributes
@Stability(Stable) @NotNull public static IBaseService fromExternalServiceAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ExternalServiceAttributes attrs) Imports from the specified service attributes.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
associateCloudMapService
@Stability(Stable) public void associateCloudMapService(@NotNull AssociateCloudMapServiceOptions _options) Overriden method to throw error asassociateCloudMapServiceis not supported for external service.- Overrides:
associateCloudMapServicein classBaseService- Parameters:
_options- This parameter is required.
-
attachToApplicationTargetGroup
@Stability(Stable) @NotNull public LoadBalancerTargetProps attachToApplicationTargetGroup(@NotNull IApplicationTargetGroup _targetGroup) Overriden method to throw error asattachToApplicationTargetGroupis not supported for external service.- Specified by:
attachToApplicationTargetGroupin interfaceIApplicationLoadBalancerTarget- Overrides:
attachToApplicationTargetGroupin classBaseService- Parameters:
_targetGroup- This parameter is required.
-
autoScaleTaskCount
@Stability(Stable) @NotNull public ScalableTaskCount autoScaleTaskCount(@NotNull EnableScalingProps _props) Overriden method to throw error asautoScaleTaskCountis not supported for external service.- Overrides:
autoScaleTaskCountin classBaseService- Parameters:
_props- This parameter is required.
-
configureAwsVpcNetworkingWithSecurityGroups
@Stability(Stable) protected void configureAwsVpcNetworkingWithSecurityGroups(@NotNull IVpc _vpc, @Nullable Boolean _assignPublicIp, @Nullable SubnetSelection _vpcSubnets, @Nullable List<ISecurityGroup> _securityGroups) Overriden method to throw error asconfigureAwsVpcNetworkingWithSecurityGroupsis not supported for external service.- Overrides:
configureAwsVpcNetworkingWithSecurityGroupsin classBaseService- Parameters:
_vpc- This parameter is required._assignPublicIp-_vpcSubnets-_securityGroups-
-
configureAwsVpcNetworkingWithSecurityGroups
@Stability(Stable) protected void configureAwsVpcNetworkingWithSecurityGroups(@NotNull IVpc _vpc, @Nullable Boolean _assignPublicIp, @Nullable SubnetSelection _vpcSubnets) Overriden method to throw error asconfigureAwsVpcNetworkingWithSecurityGroupsis not supported for external service.- Overrides:
configureAwsVpcNetworkingWithSecurityGroupsin classBaseService- Parameters:
_vpc- This parameter is required._assignPublicIp-_vpcSubnets-
-
configureAwsVpcNetworkingWithSecurityGroups
@Stability(Stable) protected void configureAwsVpcNetworkingWithSecurityGroups(@NotNull IVpc _vpc, @Nullable Boolean _assignPublicIp) Overriden method to throw error asconfigureAwsVpcNetworkingWithSecurityGroupsis not supported for external service.- Overrides:
configureAwsVpcNetworkingWithSecurityGroupsin classBaseService- Parameters:
_vpc- This parameter is required._assignPublicIp-
-
configureAwsVpcNetworkingWithSecurityGroups
Overriden method to throw error asconfigureAwsVpcNetworkingWithSecurityGroupsis not supported for external service.- Overrides:
configureAwsVpcNetworkingWithSecurityGroupsin classBaseService- Parameters:
_vpc- This parameter is required.
-
enableCloudMap
Overriden method to throw error asenableCloudMapis not supported for external service.- Overrides:
enableCloudMapin classBaseService- Parameters:
_options- This parameter is required.- Returns:
- The created CloudMap service
-
loadBalancerTarget
@Stability(Stable) @NotNull public IEcsLoadBalancerTarget loadBalancerTarget(@NotNull LoadBalancerTargetOptions _options) Overriden method to throw error asloadBalancerTargetis not supported for external service.- Overrides:
loadBalancerTargetin classBaseService- Parameters:
_options- This parameter is required.
-
registerLoadBalancerTargets
Overriden method to throw error asregisterLoadBalancerTargetsis not supported for external service.- Overrides:
registerLoadBalancerTargetsin classBaseService- Parameters:
_targets- This parameter is required.
-