#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum Error {
BadRequestException(crate::error::BadRequestException),
ConflictException(crate::error::ConflictException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::BadRequestException(inner) => inner.fmt(f),
Error::ConflictException(inner) => inner.fmt(f),
Error::ForbiddenException(inner) => inner.fmt(f),
Error::InternalServerErrorException(inner) => inner.fmt(f),
Error::NotFoundException(inner) => inner.fmt(f),
Error::TooManyRequestsException(inner) => inner.fmt(f),
Error::Unhandled(inner) => inner.fmt(f),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::AssociateCertificateError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::AssociateCertificateError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::AssociateCertificateErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::AssociateCertificateErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::AssociateCertificateErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::AssociateCertificateErrorKind::InternalServerErrorException(
inner,
) => Error::InternalServerErrorException(inner),
crate::error::AssociateCertificateErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::AssociateCertificateErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::AssociateCertificateErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CancelJobError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::CancelJobError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::CancelJobErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::CancelJobErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::CancelJobErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::CancelJobErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::CancelJobErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::CancelJobErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::CancelJobErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateJobError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::CreateJobError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::CreateJobErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::CreateJobErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::CreateJobErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::CreateJobErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::CreateJobErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::CreateJobErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::CreateJobErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateJobTemplateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::CreateJobTemplateError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::CreateJobTemplateErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::CreateJobTemplateErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::CreateJobTemplateErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::CreateJobTemplateErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::CreateJobTemplateErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::CreateJobTemplateErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::CreateJobTemplateErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreatePresetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::CreatePresetError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::CreatePresetErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::CreatePresetErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::CreatePresetErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::CreatePresetErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::CreatePresetErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::CreatePresetErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::CreatePresetErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateQueueError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::CreateQueueError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::CreateQueueErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::CreateQueueErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::CreateQueueErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::CreateQueueErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::CreateQueueErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::CreateQueueErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::CreateQueueErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteJobTemplateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DeleteJobTemplateError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeleteJobTemplateErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::DeleteJobTemplateErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DeleteJobTemplateErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::DeleteJobTemplateErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::DeleteJobTemplateErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::DeleteJobTemplateErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::DeleteJobTemplateErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeletePolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DeletePolicyError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeletePolicyErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::DeletePolicyErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DeletePolicyErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::DeletePolicyErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::DeletePolicyErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::DeletePolicyErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::DeletePolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeletePresetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DeletePresetError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeletePresetErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::DeletePresetErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DeletePresetErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::DeletePresetErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::DeletePresetErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::DeletePresetErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::DeletePresetErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteQueueError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DeleteQueueError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeleteQueueErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::DeleteQueueErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DeleteQueueErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::DeleteQueueErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::DeleteQueueErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::DeleteQueueErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::DeleteQueueErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DescribeEndpointsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DescribeEndpointsError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DescribeEndpointsErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::DescribeEndpointsErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DescribeEndpointsErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::DescribeEndpointsErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::DescribeEndpointsErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::DescribeEndpointsErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::DescribeEndpointsErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DisassociateCertificateError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DisassociateCertificateError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DisassociateCertificateErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::DisassociateCertificateErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DisassociateCertificateErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::DisassociateCertificateErrorKind::InternalServerErrorException(
inner,
) => Error::InternalServerErrorException(inner),
crate::error::DisassociateCertificateErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::DisassociateCertificateErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::DisassociateCertificateErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetJobError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetJobError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetJobErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::GetJobErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::GetJobErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::GetJobErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::GetJobErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::GetJobErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::GetJobErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetJobTemplateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetJobTemplateError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetJobTemplateErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::GetJobTemplateErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::GetJobTemplateErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::GetJobTemplateErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::GetJobTemplateErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::GetJobTemplateErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::GetJobTemplateErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetPolicyError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetPolicyErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::GetPolicyErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::GetPolicyErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::GetPolicyErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::GetPolicyErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::GetPolicyErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::GetPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetPresetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetPresetError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetPresetErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::GetPresetErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::GetPresetErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::GetPresetErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::GetPresetErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::GetPresetErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::GetPresetErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetQueueError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetQueueError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetQueueErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::GetQueueErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::GetQueueErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::GetQueueErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::GetQueueErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::GetQueueErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::GetQueueErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListJobsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListJobsError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListJobsErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::ListJobsErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::ListJobsErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::ListJobsErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::ListJobsErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::ListJobsErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::ListJobsErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListJobTemplatesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListJobTemplatesError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListJobTemplatesErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::ListJobTemplatesErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::ListJobTemplatesErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::ListJobTemplatesErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::ListJobTemplatesErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::ListJobTemplatesErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::ListJobTemplatesErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListPresetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListPresetsError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListPresetsErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::ListPresetsErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::ListPresetsErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::ListPresetsErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::ListPresetsErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::ListPresetsErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::ListPresetsErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListQueuesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListQueuesError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListQueuesErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::ListQueuesErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::ListQueuesErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::ListQueuesErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::ListQueuesErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::ListQueuesErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::ListQueuesErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListTagsForResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListTagsForResourceError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListTagsForResourceErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::ListTagsForResourceErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::ListTagsForResourceErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::ListTagsForResourceErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::ListTagsForResourceErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::ListTagsForResourceErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::PutPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::PutPolicyError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::PutPolicyErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::PutPolicyErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::PutPolicyErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::PutPolicyErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::PutPolicyErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::PutPolicyErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::PutPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::TagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::TagResourceError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::TagResourceErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::TagResourceErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::TagResourceErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::TagResourceErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::TagResourceErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::TagResourceErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UntagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::UntagResourceError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::UntagResourceErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::UntagResourceErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::UntagResourceErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::UntagResourceErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::UntagResourceErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::UntagResourceErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateJobTemplateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::UpdateJobTemplateError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::UpdateJobTemplateErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::UpdateJobTemplateErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::UpdateJobTemplateErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::UpdateJobTemplateErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::UpdateJobTemplateErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::UpdateJobTemplateErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::UpdateJobTemplateErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdatePresetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::UpdatePresetError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::UpdatePresetErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::UpdatePresetErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::UpdatePresetErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::UpdatePresetErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::UpdatePresetErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::UpdatePresetErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::UpdatePresetErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateQueueError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::UpdateQueueError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::UpdateQueueErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::UpdateQueueErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::UpdateQueueErrorKind::ForbiddenException(inner) => {
Error::ForbiddenException(inner)
}
crate::error::UpdateQueueErrorKind::InternalServerErrorException(inner) => {
Error::InternalServerErrorException(inner)
}
crate::error::UpdateQueueErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::UpdateQueueErrorKind::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::error::UpdateQueueErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl std::error::Error for Error {}