Interface ComponentFailureContext.Builder

  • Method Details

    • componentArn

      ComponentFailureContext.Builder componentArn(String componentArn)

      The Amazon Resource Name (ARN) of the component build version that failed.

      Parameters:
      componentArn - The Amazon Resource Name (ARN) of the component build version that failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • phaseName

      The name of the phase in the component document where the failure occurred, such as build, validate, or test.

      Parameters:
      phaseName - The name of the phase in the component document where the failure occurred, such as build , validate, or test.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stepName

      The name of the step in the component document that failed.

      Parameters:
      stepName - The name of the step in the component document that failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • action

      The action that the failed step runs, for example ExecuteBash.

      Parameters:
      action - The action that the failed step runs, for example ExecuteBash.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorMessage

      ComponentFailureContext.Builder errorMessage(String errorMessage)

      The error message from the step that failed. Image Builder truncates messages that are longer than 1024 characters. The component log in Amazon CloudWatch Logs contains the full output.

      Parameters:
      errorMessage - The error message from the step that failed. Image Builder truncates messages that are longer than 1024 characters. The component log in Amazon CloudWatch Logs contains the full output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.