Class BlueInstanceTerminationOption

    • Method Detail

      • action

        public final InstanceAction action()

        The action to take on instances in the original environment after a successful blue/green deployment.

        • TERMINATE: Instances are terminated after a specified wait time.

        • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.

        If the service returns an enum value that is not available in the current SDK version, action will return InstanceAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from actionAsString().

        Returns:
        The action to take on instances in the original environment after a successful blue/green deployment.

        • TERMINATE: Instances are terminated after a specified wait time.

        • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.

        See Also:
        InstanceAction
      • actionAsString

        public final String actionAsString()

        The action to take on instances in the original environment after a successful blue/green deployment.

        • TERMINATE: Instances are terminated after a specified wait time.

        • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.

        If the service returns an enum value that is not available in the current SDK version, action will return InstanceAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from actionAsString().

        Returns:
        The action to take on instances in the original environment after a successful blue/green deployment.

        • TERMINATE: Instances are terminated after a specified wait time.

        • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.

        See Also:
        InstanceAction
      • terminationWaitTimeInMinutes

        public final Integer terminationWaitTimeInMinutes()

        For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.

        For an Amazon ECS deployment, the number of minutes before deleting the original (blue) task set. During an Amazon ECS deployment, CodeDeploy shifts traffic from the original (blue) task set to a replacement (green) task set.

        The maximum setting is 2880 minutes (2 days).

        Returns:
        For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.

        For an Amazon ECS deployment, the number of minutes before deleting the original (blue) task set. During an Amazon ECS deployment, CodeDeploy shifts traffic from the original (blue) task set to a replacement (green) task set.

        The maximum setting is 2880 minutes (2 days).

      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)