#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum Error {
AccessDeniedException(crate::error::AccessDeniedException),
ApiKeyLimitExceededException(crate::error::ApiKeyLimitExceededException),
ApiKeyValidityOutOfBoundsException(crate::error::ApiKeyValidityOutOfBoundsException),
ApiLimitExceededException(crate::error::ApiLimitExceededException),
BadRequestException(crate::error::BadRequestException),
ConcurrentModificationException(crate::error::ConcurrentModificationException),
GraphQlSchemaException(crate::error::GraphQlSchemaException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
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::AccessDeniedException(inner) => inner.fmt(f),
Error::ApiKeyLimitExceededException(inner) => inner.fmt(f),
Error::ApiKeyValidityOutOfBoundsException(inner) => inner.fmt(f),
Error::ApiLimitExceededException(inner) => inner.fmt(f),
Error::BadRequestException(inner) => inner.fmt(f),
Error::ConcurrentModificationException(inner) => inner.fmt(f),
Error::GraphQlSchemaException(inner) => inner.fmt(f),
Error::InternalFailureException(inner) => inner.fmt(f),
Error::LimitExceededException(inner) => inner.fmt(f),
Error::NotFoundException(inner) => inner.fmt(f),
Error::UnauthorizedException(inner) => inner.fmt(f),
Error::Unhandled(inner) => inner.fmt(f),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateApiCacheError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::CreateApiCacheError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::CreateApiCacheErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::CreateApiCacheErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::CreateApiCacheErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::CreateApiCacheErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::CreateApiCacheErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::CreateApiCacheErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateApiKeyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::CreateApiKeyError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::CreateApiKeyErrorKind::ApiKeyLimitExceededException(inner) => {
Error::ApiKeyLimitExceededException(inner)
}
crate::error::CreateApiKeyErrorKind::ApiKeyValidityOutOfBoundsException(inner) => {
Error::ApiKeyValidityOutOfBoundsException(inner)
}
crate::error::CreateApiKeyErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::CreateApiKeyErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::CreateApiKeyErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::CreateApiKeyErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::CreateApiKeyErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::CreateApiKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateDataSourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::CreateDataSourceError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::CreateDataSourceErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::CreateDataSourceErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::CreateDataSourceErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::CreateDataSourceErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::CreateDataSourceErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::CreateDataSourceErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateFunctionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::CreateFunctionError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::CreateFunctionErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::CreateFunctionErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::CreateFunctionErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::CreateFunctionErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::CreateFunctionErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateGraphqlApiError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::CreateGraphqlApiError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::CreateGraphqlApiErrorKind::ApiLimitExceededException(inner) => {
Error::ApiLimitExceededException(inner)
}
crate::error::CreateGraphqlApiErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::CreateGraphqlApiErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::CreateGraphqlApiErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::CreateGraphqlApiErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::CreateGraphqlApiErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::CreateGraphqlApiErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateResolverError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::CreateResolverError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::CreateResolverErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::CreateResolverErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::CreateResolverErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::CreateResolverErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::CreateResolverErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateTypeError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::CreateTypeError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::CreateTypeErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::CreateTypeErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::CreateTypeErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::CreateTypeErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::CreateTypeErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::CreateTypeErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteApiCacheError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DeleteApiCacheError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeleteApiCacheErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::DeleteApiCacheErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::DeleteApiCacheErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::DeleteApiCacheErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::DeleteApiCacheErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::DeleteApiCacheErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteApiKeyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DeleteApiKeyError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeleteApiKeyErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::DeleteApiKeyErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::DeleteApiKeyErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::DeleteApiKeyErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::DeleteApiKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteDataSourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DeleteDataSourceError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeleteDataSourceErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::DeleteDataSourceErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::DeleteDataSourceErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::DeleteDataSourceErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::DeleteDataSourceErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::DeleteDataSourceErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteFunctionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DeleteFunctionError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeleteFunctionErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::DeleteFunctionErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::DeleteFunctionErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::DeleteFunctionErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::DeleteFunctionErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteGraphqlApiError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DeleteGraphqlApiError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeleteGraphqlApiErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::DeleteGraphqlApiErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::DeleteGraphqlApiErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::DeleteGraphqlApiErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::DeleteGraphqlApiErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::DeleteGraphqlApiErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::DeleteGraphqlApiErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteResolverError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DeleteResolverError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeleteResolverErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::DeleteResolverErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::DeleteResolverErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::DeleteResolverErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::DeleteResolverErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteTypeError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DeleteTypeError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeleteTypeErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::DeleteTypeErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::DeleteTypeErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::DeleteTypeErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::DeleteTypeErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::DeleteTypeErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::FlushApiCacheError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::FlushApiCacheError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::FlushApiCacheErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::FlushApiCacheErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::FlushApiCacheErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::FlushApiCacheErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::FlushApiCacheErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::FlushApiCacheErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetApiCacheError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetApiCacheError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetApiCacheErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::GetApiCacheErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::GetApiCacheErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::GetApiCacheErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::GetApiCacheErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::GetApiCacheErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetDataSourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetDataSourceError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetDataSourceErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::GetDataSourceErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::GetDataSourceErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::GetDataSourceErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::GetDataSourceErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::GetDataSourceErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetFunctionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetFunctionError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetFunctionErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::GetFunctionErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::GetFunctionErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::GetFunctionErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetGraphqlApiError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetGraphqlApiError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetGraphqlApiErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::GetGraphqlApiErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::GetGraphqlApiErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::GetGraphqlApiErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::GetGraphqlApiErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::GetGraphqlApiErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetIntrospectionSchemaError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::GetIntrospectionSchemaError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetIntrospectionSchemaErrorKind::GraphQlSchemaException(inner) => {
Error::GraphQlSchemaException(inner)
}
crate::error::GetIntrospectionSchemaErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::GetIntrospectionSchemaErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::GetIntrospectionSchemaErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::GetIntrospectionSchemaErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetResolverError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetResolverError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetResolverErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::GetResolverErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::GetResolverErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::GetResolverErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetSchemaCreationStatusError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::GetSchemaCreationStatusError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetSchemaCreationStatusErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::GetSchemaCreationStatusErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::GetSchemaCreationStatusErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::GetSchemaCreationStatusErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::GetSchemaCreationStatusErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetTypeError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetTypeError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetTypeErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::GetTypeErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::GetTypeErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::GetTypeErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::GetTypeErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::GetTypeErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListApiKeysError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListApiKeysError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListApiKeysErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::ListApiKeysErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::ListApiKeysErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::ListApiKeysErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::ListApiKeysErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListDataSourcesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListDataSourcesError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListDataSourcesErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::ListDataSourcesErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::ListDataSourcesErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::ListDataSourcesErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::ListDataSourcesErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListFunctionsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListFunctionsError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListFunctionsErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::ListFunctionsErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::ListFunctionsErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::ListFunctionsErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::ListFunctionsErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListGraphqlApisError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListGraphqlApisError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListGraphqlApisErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::ListGraphqlApisErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::ListGraphqlApisErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::ListGraphqlApisErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListResolversError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListResolversError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListResolversErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::ListResolversErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::ListResolversErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::ListResolversErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::ListResolversErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListResolversByFunctionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListResolversByFunctionError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListResolversByFunctionErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::ListResolversByFunctionErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::ListResolversByFunctionErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::ListResolversByFunctionErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::ListResolversByFunctionErrorKind::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::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::ListTagsForResourceErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::ListTagsForResourceErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::ListTagsForResourceErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::ListTagsForResourceErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::ListTagsForResourceErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListTypesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListTypesError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListTypesErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::ListTypesErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::ListTypesErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::ListTypesErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::ListTypesErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::ListTypesErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::StartSchemaCreationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::StartSchemaCreationError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::StartSchemaCreationErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::StartSchemaCreationErrorKind::ConcurrentModificationException(
inner,
) => Error::ConcurrentModificationException(inner),
crate::error::StartSchemaCreationErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::StartSchemaCreationErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::StartSchemaCreationErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::StartSchemaCreationErrorKind::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::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::TagResourceErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::TagResourceErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::TagResourceErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::TagResourceErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::TagResourceErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(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::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::UntagResourceErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::UntagResourceErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::UntagResourceErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::UntagResourceErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::UntagResourceErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateApiCacheError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::UpdateApiCacheError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::UpdateApiCacheErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::UpdateApiCacheErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::UpdateApiCacheErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::UpdateApiCacheErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::UpdateApiCacheErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::UpdateApiCacheErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateApiKeyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::UpdateApiKeyError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::UpdateApiKeyErrorKind::ApiKeyValidityOutOfBoundsException(inner) => {
Error::ApiKeyValidityOutOfBoundsException(inner)
}
crate::error::UpdateApiKeyErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::UpdateApiKeyErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::UpdateApiKeyErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::UpdateApiKeyErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::UpdateApiKeyErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::UpdateApiKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateDataSourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::UpdateDataSourceError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::UpdateDataSourceErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::UpdateDataSourceErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::UpdateDataSourceErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::UpdateDataSourceErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::UpdateDataSourceErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::UpdateDataSourceErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateFunctionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::UpdateFunctionError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::UpdateFunctionErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::UpdateFunctionErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::UpdateFunctionErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::UpdateFunctionErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::UpdateFunctionErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateGraphqlApiError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::UpdateGraphqlApiError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::UpdateGraphqlApiErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::UpdateGraphqlApiErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::UpdateGraphqlApiErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::UpdateGraphqlApiErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::UpdateGraphqlApiErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::UpdateGraphqlApiErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::UpdateGraphqlApiErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateResolverError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::UpdateResolverError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::UpdateResolverErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::UpdateResolverErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::UpdateResolverErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::UpdateResolverErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::UpdateResolverErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateTypeError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::UpdateTypeError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::UpdateTypeErrorKind::BadRequestException(inner) => {
Error::BadRequestException(inner)
}
crate::error::UpdateTypeErrorKind::ConcurrentModificationException(inner) => {
Error::ConcurrentModificationException(inner)
}
crate::error::UpdateTypeErrorKind::InternalFailureException(inner) => {
Error::InternalFailureException(inner)
}
crate::error::UpdateTypeErrorKind::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::error::UpdateTypeErrorKind::UnauthorizedException(inner) => {
Error::UnauthorizedException(inner)
}
crate::error::UpdateTypeErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl std::error::Error for Error {}