Interface ProtectedJobError.Builder

  • Method Details

    • message

      A description of why the protected job failed.

      Parameters:
      message - A description of why the protected job failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • code

      A code that identifies the category of the failure. Valid values are:

      • MALFORMED_SCRIPT – The job script or its execution environment is not valid (code, imports, entry point, virtual environment, or dependencies).

      • RESOURCE_NOT_FOUND – A referenced resource doesn't exist.

      • INVALID_RESOURCE – A referenced resource exists, but you can't use it because its configuration, state, or data is not valid.

      • RESOURCE_ACCESS_DENIED – A required permission is missing for a data source or resource.

      • INSUFFICIENT_COMPUTE – The job exceeded the available compute (memory, disk, or time).

      • TRANSIENT_ERROR – A temporary condition caused the failure, such as throttling or a network interruption.

      • INTERNAL_ERROR – Clean Rooms encountered an unexpected error. If the error persists, contact AWS Support.

      • UNKNOWN_ERROR – The failure couldn't be classified.

      For more information about error codes, see https://docs.aws.amazon.com/clean-rooms/latest/userguide/error-codes.html in the Clean Rooms User Guide.

      Parameters:
      code - A code that identifies the category of the failure. Valid values are:

      • MALFORMED_SCRIPT – The job script or its execution environment is not valid (code, imports, entry point, virtual environment, or dependencies).

      • RESOURCE_NOT_FOUND – A referenced resource doesn't exist.

      • INVALID_RESOURCE – A referenced resource exists, but you can't use it because its configuration, state, or data is not valid.

      • RESOURCE_ACCESS_DENIED – A required permission is missing for a data source or resource.

      • INSUFFICIENT_COMPUTE – The job exceeded the available compute (memory, disk, or time).

      • TRANSIENT_ERROR – A temporary condition caused the failure, such as throttling or a network interruption.

      • INTERNAL_ERROR – Clean Rooms encountered an unexpected error. If the error persists, contact AWS Support.

      • UNKNOWN_ERROR – The failure couldn't be classified.

      For more information about error codes, see https://docs.aws.amazon.com/clean-rooms/latest/userguide/error-codes.html in the Clean Rooms User Guide.

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

      Contains information about whether running the same protected job again might succeed.

      Parameters:
      retry - Contains information about whether running the same protected job again might succeed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retry

      Contains information about whether running the same protected job again might succeed.

      This is a convenience method that creates an instance of the RetryInfo.Builder avoiding the need to create one manually via RetryInfo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to retry(RetryInfo).

      Parameters:
      retry - a consumer that will call methods on RetryInfo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: