Interface DeploymentLifecycleHookDetail.Builder

  • Method Details

    • hookId

      The ID of the lifecycle hook. Use this value when calling ContinueServiceDeployment to continue or roll back a paused deployment.

      Parameters:
      hookId - The ID of the lifecycle hook. Use this value when calling ContinueServiceDeployment to continue or roll back a paused deployment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetType

      The type of action the lifecycle hook performs, such as AWS_LAMBDA or PAUSE.

      Parameters:
      targetType - The type of action the lifecycle hook performs, such as AWS_LAMBDA or PAUSE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • targetType

      The type of action the lifecycle hook performs, such as AWS_LAMBDA or PAUSE.

      Parameters:
      targetType - The type of action the lifecycle hook performs, such as AWS_LAMBDA or PAUSE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • targetArn

      The Amazon Resource Name (ARN) of the hook target. For AWS_LAMBDA hooks, this is the Lambda function ARN. For PAUSE hooks, this field is not set.

      Parameters:
      targetArn - The Amazon Resource Name (ARN) of the hook target. For AWS_LAMBDA hooks, this is the Lambda function ARN. For PAUSE hooks, this field is not set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The status of the lifecycle hook. Valid values depend on the hook type:

      • For AWS_LAMBDA hooks: IN_PROGRESS, SUCCEEDED, FAILED, and TIMED_OUT.

      • For PAUSE hooks: AWAITING_ACTION, SUCCEEDED, FAILED, and TIMED_OUT.

      Parameters:
      status - The status of the lifecycle hook. Valid values depend on the hook type:

      • For AWS_LAMBDA hooks: IN_PROGRESS, SUCCEEDED, FAILED, and TIMED_OUT.

      • For PAUSE hooks: AWAITING_ACTION, SUCCEEDED, FAILED, and TIMED_OUT.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the lifecycle hook. Valid values depend on the hook type:

      • For AWS_LAMBDA hooks: IN_PROGRESS, SUCCEEDED, FAILED, and TIMED_OUT.

      • For PAUSE hooks: AWAITING_ACTION, SUCCEEDED, FAILED, and TIMED_OUT.

      Parameters:
      status - The status of the lifecycle hook. Valid values depend on the hook type:

      • For AWS_LAMBDA hooks: IN_PROGRESS, SUCCEEDED, FAILED, and TIMED_OUT.

      • For PAUSE hooks: AWAITING_ACTION, SUCCEEDED, FAILED, and TIMED_OUT.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • expiresAt

      The time when the lifecycle hook times out. If the hook has not been completed by this time, Amazon ECS takes the timeout action.

      Parameters:
      expiresAt - The time when the lifecycle hook times out. If the hook has not been completed by this time, Amazon ECS takes the timeout action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timeoutAction

      DeploymentLifecycleHookDetail.Builder timeoutAction(String timeoutAction)

      The action Amazon ECS takes when the lifecycle hook times out. Valid values are CONTINUE and ROLLBACK.

      Parameters:
      timeoutAction - The action Amazon ECS takes when the lifecycle hook times out. Valid values are CONTINUE and ROLLBACK.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • timeoutAction

      The action Amazon ECS takes when the lifecycle hook times out. Valid values are CONTINUE and ROLLBACK.

      Parameters:
      timeoutAction - The action Amazon ECS takes when the lifecycle hook times out. Valid values are CONTINUE and ROLLBACK.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: