Class EcsBlueGreenDeploymentConfig.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codedeploy.EcsBlueGreenDeploymentConfig.Jsii$Proxy
All Implemented Interfaces:
EcsBlueGreenDeploymentConfig, software.amazon.jsii.JsiiSerializable
Enclosing interface:
EcsBlueGreenDeploymentConfig

@Stability(Stable) @Internal public static final class EcsBlueGreenDeploymentConfig.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements EcsBlueGreenDeploymentConfig
An implementation for EcsBlueGreenDeploymentConfig
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.codedeploy.EcsBlueGreenDeploymentConfig

    EcsBlueGreenDeploymentConfig.Builder, EcsBlueGreenDeploymentConfig.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor that initializes the object based on literal property values passed by the EcsBlueGreenDeploymentConfig.Builder.
    protected
    Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
    Constructor that initializes the object based on values retrieved from the JsiiObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
     
    final boolean
     
    The target group that will be associated with the 'blue' ECS task set during a blue-green deployment.
    final Duration
    Specify how long CodeDeploy waits for approval to continue a blue-green deployment before it stops the deployment.
    The target group that will be associated with the 'green' ECS task set during a blue-green deployment.
    final IListener
    The load balancer listener used to serve production traffic and to shift production traffic from the 'blue' ECS task set to the 'green' ECS task set during a blue-green deployment.
    final Duration
    Specify how long CodeDeploy waits before it terminates the original 'blue' ECS task set when a blue-green deployment is complete.
    final IListener
    The load balancer listener used to route test traffic to the 'green' ECS task set during a blue-green deployment.
    final int
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(EcsBlueGreenDeploymentConfig.Builder builder)
      Constructor that initializes the object based on literal property values passed by the EcsBlueGreenDeploymentConfig.Builder.
  • Method Details

    • getBlueTargetGroup

      public final ITargetGroup getBlueTargetGroup()
      Description copied from interface: EcsBlueGreenDeploymentConfig
      The target group that will be associated with the 'blue' ECS task set during a blue-green deployment.
      Specified by:
      getBlueTargetGroup in interface EcsBlueGreenDeploymentConfig
    • getGreenTargetGroup

      public final ITargetGroup getGreenTargetGroup()
      Description copied from interface: EcsBlueGreenDeploymentConfig
      The target group that will be associated with the 'green' ECS task set during a blue-green deployment.
      Specified by:
      getGreenTargetGroup in interface EcsBlueGreenDeploymentConfig
    • getListener

      public final IListener getListener()
      Description copied from interface: EcsBlueGreenDeploymentConfig
      The load balancer listener used to serve production traffic and to shift production traffic from the 'blue' ECS task set to the 'green' ECS task set during a blue-green deployment.
      Specified by:
      getListener in interface EcsBlueGreenDeploymentConfig
    • getDeploymentApprovalWaitTime

      public final Duration getDeploymentApprovalWaitTime()
      Description copied from interface: EcsBlueGreenDeploymentConfig
      Specify how long CodeDeploy waits for approval to continue a blue-green deployment before it stops the deployment.

      After provisioning the 'green' ECS task set and re-routing test traffic, CodeDeploy can wait for approval before continuing the deployment and re-routing production traffic. During this wait time, validation such as manual testing or running integration tests can occur using the test traffic port, prior to exposing the new 'green' task set to production traffic. To approve the deployment, validation steps use the CodeDeploy [ContinueDeployment API(https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_ContinueDeployment.html). If the ContinueDeployment API is not called within the wait time period, CodeDeploy will stop the deployment.

      By default, CodeDeploy will not wait for deployment approval. After re-routing test traffic to the 'green' ECS task set and running any 'AfterAllowTestTraffic' and 'BeforeAllowTraffic' lifecycle hooks, the deployment will immediately re-route production traffic to the 'green' ECS task set.

      Default: 0

      Specified by:
      getDeploymentApprovalWaitTime in interface EcsBlueGreenDeploymentConfig
    • getTerminationWaitTime

      public final Duration getTerminationWaitTime()
      Description copied from interface: EcsBlueGreenDeploymentConfig
      Specify how long CodeDeploy waits before it terminates the original 'blue' ECS task set when a blue-green deployment is complete.

      During this wait time, CodeDeploy will continue to monitor any CloudWatch alarms specified for the deployment group, and the deployment group can be configured to automatically roll back if those alarms fire. Once CodeDeploy begins to terminate the 'blue' ECS task set, the deployment can no longer be rolled back, manually or automatically.

      By default, the deployment will immediately terminate the 'blue' ECS task set after production traffic is successfully routed to the 'green' ECS task set.

      Default: 0

      Specified by:
      getTerminationWaitTime in interface EcsBlueGreenDeploymentConfig
    • getTestListener

      public final IListener getTestListener()
      Description copied from interface: EcsBlueGreenDeploymentConfig
      The load balancer listener used to route test traffic to the 'green' ECS task set during a blue-green deployment.

      During a blue-green deployment, validation can occur after test traffic has been re-routed and before production traffic has been re-routed to the 'green' ECS task set. You can specify one or more Lambda funtions in the deployment's AppSpec file that run during the AfterAllowTestTraffic hook. The functions can run validation tests. If a validation test fails, a deployment rollback is triggered. If the validation tests succeed, the next hook in the deployment lifecycle, BeforeAllowTraffic, is triggered.

      If a test listener is not specified, the deployment will proceed to routing the production listener to the 'green' ECS task set and will skip the AfterAllowTestTraffic hook.

      Default: No test listener will be added

      Specified by:
      getTestListener in interface EcsBlueGreenDeploymentConfig
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object