Enum aws_sdk_bedrock::operation::create_provisioned_model_throughput::CreateProvisionedModelThroughputError
source · #[non_exhaustive]pub enum CreateProvisionedModelThroughputError {
AccessDeniedException(AccessDeniedException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ThrottlingException(ThrottlingException),
TooManyTagsException(TooManyTagsException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}Expand description
Error type for the CreateProvisionedModelThroughputError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
The request is denied because of missing access permissions.
InternalServerException(InternalServerException)
An internal server error occurred. Retry your request.
ResourceNotFoundException(ResourceNotFoundException)
The specified resource ARN was not found. Check the ARN and try your request again.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The number of requests exceeds the service quota. Resubmit your request later.
ThrottlingException(ThrottlingException)
The number of requests exceeds the limit. Resubmit your request later.
TooManyTagsException(TooManyTagsException)
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
ValidationException(ValidationException)
Input validation failed. Check your request parameters and retry the request.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CreateProvisionedModelThroughputError
impl CreateProvisionedModelThroughputError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the CreateProvisionedModelThroughputError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateProvisionedModelThroughputError::Unhandled variant from a ::aws_smithy_types::error::ErrorMetadata.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_access_denied_exception(&self) -> bool
pub fn is_access_denied_exception(&self) -> bool
Returns true if the error kind is CreateProvisionedModelThroughputError::AccessDeniedException.
sourcepub fn is_internal_server_exception(&self) -> bool
pub fn is_internal_server_exception(&self) -> bool
Returns true if the error kind is CreateProvisionedModelThroughputError::InternalServerException.
sourcepub fn is_resource_not_found_exception(&self) -> bool
pub fn is_resource_not_found_exception(&self) -> bool
Returns true if the error kind is CreateProvisionedModelThroughputError::ResourceNotFoundException.
sourcepub fn is_service_quota_exceeded_exception(&self) -> bool
pub fn is_service_quota_exceeded_exception(&self) -> bool
Returns true if the error kind is CreateProvisionedModelThroughputError::ServiceQuotaExceededException.
sourcepub fn is_throttling_exception(&self) -> bool
pub fn is_throttling_exception(&self) -> bool
Returns true if the error kind is CreateProvisionedModelThroughputError::ThrottlingException.
Returns true if the error kind is CreateProvisionedModelThroughputError::TooManyTagsException.
sourcepub fn is_validation_exception(&self) -> bool
pub fn is_validation_exception(&self) -> bool
Returns true if the error kind is CreateProvisionedModelThroughputError::ValidationException.
Trait Implementations§
source§impl CreateUnhandledError for CreateProvisionedModelThroughputError
impl CreateUnhandledError for CreateProvisionedModelThroughputError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source and error metadata.source§impl Error for CreateProvisionedModelThroughputError
impl Error for CreateProvisionedModelThroughputError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<CreateProvisionedModelThroughputError> for Error
impl From<CreateProvisionedModelThroughputError> for Error
source§fn from(err: CreateProvisionedModelThroughputError) -> Self
fn from(err: CreateProvisionedModelThroughputError) -> Self
source§impl ProvideErrorMetadata for CreateProvisionedModelThroughputError
impl ProvideErrorMetadata for CreateProvisionedModelThroughputError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateProvisionedModelThroughputError
impl RequestId for CreateProvisionedModelThroughputError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.