Class EcsApplication
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.codedeploy.EcsApplication
- All Implemented Interfaces:
IEnvironmentAware,IResource,IEcsApplication,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:00.784Z")
@Stability(Stable)
public class EcsApplication
extends Resource
implements IEcsApplication
A CodeDeploy Application that deploys to an Amazon ECS service.
Example:
EcsApplication application = EcsApplication.Builder.create(this, "CodeDeployApplication")
.applicationName("MyApplication")
.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.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.codedeploy.IEcsApplication
IEcsApplication.Jsii$Default, IEcsApplication.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEcsApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedEcsApplication(software.amazon.jsii.JsiiObjectRef objRef) EcsApplication(software.constructs.Construct scope, String id) EcsApplication(software.constructs.Construct scope, String id, EcsApplicationProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IEcsApplicationfromEcsApplicationArn(software.constructs.Construct scope, String id, String ecsApplicationArn) Import an Application defined either outside the CDK, or in a different CDK Stack, by ARN.static IEcsApplicationfromEcsApplicationName(software.constructs.Construct scope, String id, String ecsApplicationName) Import an Application defined either outside the CDK, or in a different CDK Stack.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
EcsApplication
protected EcsApplication(software.amazon.jsii.JsiiObjectRef objRef) -
EcsApplication
protected EcsApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
EcsApplication
@Stability(Stable) public EcsApplication(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable EcsApplicationProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
EcsApplication
@Stability(Stable) public EcsApplication(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
fromEcsApplicationArn
@Stability(Stable) @NotNull public static IEcsApplication fromEcsApplicationArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String ecsApplicationArn) Import an Application defined either outside the CDK, or in a different CDK Stack, by ARN.- Parameters:
scope- the parent Construct for this new Construct. This parameter is required.id- the logical ID of this new Construct. This parameter is required.ecsApplicationArn- the ARN of the application to import. This parameter is required.- Returns:
- a Construct representing a reference to an existing Application
-
fromEcsApplicationName
@Stability(Stable) @NotNull public static IEcsApplication fromEcsApplicationName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String ecsApplicationName) Import an Application defined either outside the CDK, or in a different CDK Stack.The Application's account and region are assumed to be the same as the stack it is being imported into. If not, use
fromEcsApplicationArn.- Parameters:
scope- the parent Construct for this new Construct. This parameter is required.id- the logical ID of this new Construct. This parameter is required.ecsApplicationName- the name of the application to import. This parameter is required.- Returns:
- a Construct representing a reference to an existing Application
-
getApplicationArn
- Specified by:
getApplicationArnin interfaceIEcsApplication
-
getApplicationName
- Specified by:
getApplicationNamein interfaceIEcsApplication
-