Class EcsApplication

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.codedeploy.EcsApplication
All Implemented Interfaces:
IConstruct, IDependable, IResource, IEcsApplication, software.amazon.jsii.JsiiSerializable, 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.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.codedeploy.*;
 EcsApplication ecsApplication = EcsApplication.Builder.create(this, "MyEcsApplication")
         .applicationName("applicationName")
         .build();
 
  • 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

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

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

      Overrides:
      validate in class Construct
      Returns:
      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