Class EcsApplication

All Implemented Interfaces:
IConstruct, IDependable, IResource, IEcsApplication,, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.352Z") @Stability(Stable) public class EcsApplication extends Resource implements IEcsApplication
A CodeDeploy Application that deploys to an Amazon ECS service.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 EcsApplication ecsApplication = EcsApplication.Builder.create(this, "MyEcsApplication")
  • Constructor Details

    • EcsApplication

      protected EcsApplication( objRef)
    • EcsApplication

      protected EcsApplication( initializationMode)
    • EcsApplication

      @Stability(Stable) public EcsApplication(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable EcsApplicationProps props)
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • EcsApplication

      @Stability(Stable) public EcsApplication(@NotNull software.constructs.Construct scope, @NotNull String id)
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • 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.

      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.
      a Construct representing a reference to an existing Application
    • validate

      @Stability(Stable) @NotNull protected List<String> validate()
      Validate the current construct.

      This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

      validate in class Construct
      An array of validation error messages, or an empty array if the construct is valid.
    • getApplicationArn

      @Stability(Stable) @NotNull public String getApplicationArn()
      Specified by:
      getApplicationArn in interface IEcsApplication
    • getApplicationName

      @Stability(Stable) @NotNull public String getApplicationName()
      Specified by:
      getApplicationName in interface IEcsApplication