Skip to content

ProtectedJobError

Source code in docs_src/capo_cleanrooms/types/protected_job_error.py
class ProtectedJobError(TypedDict, closed=True):
    message: "str"
    """<p>A description of why the protected job failed.</p>"""
    code: "str"
    """<p>A code that identifies the category of the failure. Valid values are:</p> <ul> <li> <p> <code>MALFORMED_SCRIPT</code> – The job script or its execution environment is not valid (code, imports, entry point, virtual environment, or dependencies).</p> </li> <li> <p> <code>RESOURCE_NOT_FOUND</code> – A referenced resource doesn't exist.</p> </li> <li> <p> <code>INVALID_RESOURCE</code> – A referenced resource exists, but you can't use it because its configuration, state, or data is not valid.</p> </li> <li> <p> <code>RESOURCE_ACCESS_DENIED</code> – A required permission is missing for a data source or resource.</p> </li> <li> <p> <code>INSUFFICIENT_COMPUTE</code> – The job exceeded the available compute (memory, disk, or time).</p> </li> <li> <p> <code>TRANSIENT_ERROR</code> – A temporary condition caused the failure, such as throttling or a network interruption.</p> </li> <li> <p> <code>INTERNAL_ERROR</code> – Clean Rooms encountered an unexpected error. If the error persists, contact AWS Support.</p> </li> <li> <p> <code>UNKNOWN_ERROR</code> – The failure couldn't be classified.</p> </li> </ul> <p>For more information about error codes, see <a href="https://docs.aws.amazon.com/clean-rooms/latest/userguide/error-codes.html">https://docs.aws.amazon.com/clean-rooms/latest/userguide/error-codes.html</a> in the Clean Rooms User Guide.</p>"""
    retry: NotRequired["capo_cleanrooms.types.retry_info.RetryInfo"]
    """<p>Contains information about whether running the same protected job again might succeed.</p>"""

code instance-attribute

code: str

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.

message instance-attribute

message: str

A description of why the protected job failed.

retry instance-attribute

retry: NotRequired[RetryInfo]

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