Interface ProtectedJobError.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ProtectedJobError.Builder,,ProtectedJobError> SdkBuilder<ProtectedJobError.Builder,,ProtectedJobError> SdkPojo
- Enclosing class:
ProtectedJobError
-
Method Summary
Modifier and TypeMethodDescriptionA code that identifies the category of the failure.A description of why the protected job failed.default ProtectedJobError.Builderretry(Consumer<RetryInfo.Builder> retry) Contains information about whether running the same protected job again might succeed.Contains information about whether running the same protected job again might succeed.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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 theRetryInfo.Builderavoiding the need to create one manually viaRetryInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretry(RetryInfo).- Parameters:
retry- a consumer that will call methods onRetryInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-