#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum Error {
InternalServiceErrorException(crate::types::error::InternalServiceErrorException),
InvalidRequestException(crate::types::error::InvalidRequestException),
InvalidStateException(crate::types::error::InvalidStateException),
ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
Unhandled(aws_smithy_types::error::Unhandled),
}
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::InternalServiceErrorException(inner) => inner.fmt(f),
Error::InvalidRequestException(inner) => inner.fmt(f),
Error::InvalidStateException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
Error::Unhandled(inner) => inner.fmt(f),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::associate_custom_domain::AssociateCustomDomainError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::associate_custom_domain::AssociateCustomDomainError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::associate_custom_domain::AssociateCustomDomainError> for Error {
fn from(err: crate::operation::associate_custom_domain::AssociateCustomDomainError) -> Self {
match err {
crate::operation::associate_custom_domain::AssociateCustomDomainError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::associate_custom_domain::AssociateCustomDomainError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::associate_custom_domain::AssociateCustomDomainError::InvalidStateException(inner) => Error::InvalidStateException(inner),
crate::operation::associate_custom_domain::AssociateCustomDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: aws_smithy_http::result::SdkError<crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build()
),
}
}
}
impl From<crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError>
for Error
{
fn from(
err: crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError,
) -> Self {
match err {
crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::create_connection::CreateConnectionError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::create_connection::CreateConnectionError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_connection::CreateConnectionError> for Error {
fn from(err: crate::operation::create_connection::CreateConnectionError) -> Self {
match err {
crate::operation::create_connection::CreateConnectionError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::create_connection::CreateConnectionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_connection::CreateConnectionError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_connection::CreateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::operation::create_observability_configuration::CreateObservabilityConfigurationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: aws_smithy_http::result::SdkError<crate::operation::create_observability_configuration::CreateObservabilityConfigurationError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build()
),
}
}
}
impl
From<
crate::operation::create_observability_configuration::CreateObservabilityConfigurationError,
> for Error
{
fn from(
err: crate::operation::create_observability_configuration::CreateObservabilityConfigurationError,
) -> Self {
match err {
crate::operation::create_observability_configuration::CreateObservabilityConfigurationError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::create_observability_configuration::CreateObservabilityConfigurationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_observability_configuration::CreateObservabilityConfigurationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_observability_configuration::CreateObservabilityConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<aws_smithy_http::result::SdkError<crate::operation::create_service::CreateServiceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::create_service::CreateServiceError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_service::CreateServiceError> for Error {
fn from(err: crate::operation::create_service::CreateServiceError) -> Self {
match err {
crate::operation::create_service::CreateServiceError::InternalServiceErrorException(
inner,
) => Error::InternalServiceErrorException(inner),
crate::operation::create_service::CreateServiceError::InvalidRequestException(
inner,
) => Error::InvalidRequestException(inner),
crate::operation::create_service::CreateServiceError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_service::CreateServiceError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::create_vpc_connector::CreateVpcConnectorError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::create_vpc_connector::CreateVpcConnectorError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_vpc_connector::CreateVpcConnectorError> for Error {
fn from(err: crate::operation::create_vpc_connector::CreateVpcConnectorError) -> Self {
match err {
crate::operation::create_vpc_connector::CreateVpcConnectorError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::create_vpc_connector::CreateVpcConnectorError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_vpc_connector::CreateVpcConnectorError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_vpc_connector::CreateVpcConnectorError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError>
for Error
{
fn from(
err: crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError,
) -> Self {
match err {
crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError::InvalidStateException(inner) => Error::InvalidStateException(inner),
crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: aws_smithy_http::result::SdkError<crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build()
),
}
}
}
impl From<crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError>
for Error
{
fn from(
err: crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError,
) -> Self {
match err {
crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::delete_connection::DeleteConnectionError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::delete_connection::DeleteConnectionError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_connection::DeleteConnectionError> for Error {
fn from(err: crate::operation::delete_connection::DeleteConnectionError) -> Self {
match err {
crate::operation::delete_connection::DeleteConnectionError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::delete_connection::DeleteConnectionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_connection::DeleteConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_connection::DeleteConnectionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: aws_smithy_http::result::SdkError<crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build()
),
}
}
}
impl
From<
crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError,
> for Error
{
fn from(
err: crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError,
) -> Self {
match err {
crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<aws_smithy_http::result::SdkError<crate::operation::delete_service::DeleteServiceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::delete_service::DeleteServiceError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_service::DeleteServiceError> for Error {
fn from(err: crate::operation::delete_service::DeleteServiceError) -> Self {
match err {
crate::operation::delete_service::DeleteServiceError::InternalServiceErrorException(
inner,
) => Error::InternalServiceErrorException(inner),
crate::operation::delete_service::DeleteServiceError::InvalidRequestException(
inner,
) => Error::InvalidRequestException(inner),
crate::operation::delete_service::DeleteServiceError::InvalidStateException(inner) => {
Error::InvalidStateException(inner)
}
crate::operation::delete_service::DeleteServiceError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::delete_service::DeleteServiceError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::delete_vpc_connector::DeleteVpcConnectorError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::delete_vpc_connector::DeleteVpcConnectorError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_vpc_connector::DeleteVpcConnectorError> for Error {
fn from(err: crate::operation::delete_vpc_connector::DeleteVpcConnectorError) -> Self {
match err {
crate::operation::delete_vpc_connector::DeleteVpcConnectorError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::delete_vpc_connector::DeleteVpcConnectorError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_vpc_connector::DeleteVpcConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_vpc_connector::DeleteVpcConnectorError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError>
for Error
{
fn from(
err: crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError,
) -> Self {
match err {
crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError::InvalidStateException(inner) => Error::InvalidStateException(inner),
crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: aws_smithy_http::result::SdkError<crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build()
),
}
}
}
impl From<crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError> for Error {
fn from(err: crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError) -> Self {
match err {
crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::describe_custom_domains::DescribeCustomDomainsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::describe_custom_domains::DescribeCustomDomainsError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_custom_domains::DescribeCustomDomainsError> for Error {
fn from(err: crate::operation::describe_custom_domains::DescribeCustomDomainsError) -> Self {
match err {
crate::operation::describe_custom_domains::DescribeCustomDomainsError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::describe_custom_domains::DescribeCustomDomainsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_custom_domains::DescribeCustomDomainsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_custom_domains::DescribeCustomDomainsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: aws_smithy_http::result::SdkError<crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build()
),
}
}
}
impl From<crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError> for Error {
fn from(err: crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError) -> Self {
match err {
crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::describe_service::DescribeServiceError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::describe_service::DescribeServiceError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_service::DescribeServiceError> for Error {
fn from(err: crate::operation::describe_service::DescribeServiceError) -> Self {
match err {
crate::operation::describe_service::DescribeServiceError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::describe_service::DescribeServiceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_service::DescribeServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_service::DescribeServiceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::describe_vpc_connector::DescribeVpcConnectorError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::describe_vpc_connector::DescribeVpcConnectorError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_vpc_connector::DescribeVpcConnectorError> for Error {
fn from(err: crate::operation::describe_vpc_connector::DescribeVpcConnectorError) -> Self {
match err {
crate::operation::describe_vpc_connector::DescribeVpcConnectorError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::describe_vpc_connector::DescribeVpcConnectorError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_vpc_connector::DescribeVpcConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_vpc_connector::DescribeVpcConnectorError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError>
for Error
{
fn from(
err: crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError,
) -> Self {
match err {
crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::disassociate_custom_domain::DisassociateCustomDomainError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::disassociate_custom_domain::DisassociateCustomDomainError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::disassociate_custom_domain::DisassociateCustomDomainError> for Error {
fn from(
err: crate::operation::disassociate_custom_domain::DisassociateCustomDomainError,
) -> Self {
match err {
crate::operation::disassociate_custom_domain::DisassociateCustomDomainError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::disassociate_custom_domain::DisassociateCustomDomainError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::disassociate_custom_domain::DisassociateCustomDomainError::InvalidStateException(inner) => Error::InvalidStateException(inner),
crate::operation::disassociate_custom_domain::DisassociateCustomDomainError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::disassociate_custom_domain::DisassociateCustomDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError>
for Error
{
fn from(
err: crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError,
) -> Self {
match err {
crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::list_connections::ListConnectionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::list_connections::ListConnectionsError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_connections::ListConnectionsError> for Error {
fn from(err: crate::operation::list_connections::ListConnectionsError) -> Self {
match err {
crate::operation::list_connections::ListConnectionsError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::list_connections::ListConnectionsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_connections::ListConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::operation::list_observability_configurations::ListObservabilityConfigurationsError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: aws_smithy_http::result::SdkError<crate::operation::list_observability_configurations::ListObservabilityConfigurationsError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build()
),
}
}
}
impl From<crate::operation::list_observability_configurations::ListObservabilityConfigurationsError>
for Error
{
fn from(
err: crate::operation::list_observability_configurations::ListObservabilityConfigurationsError,
) -> Self {
match err {
crate::operation::list_observability_configurations::ListObservabilityConfigurationsError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::list_observability_configurations::ListObservabilityConfigurationsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_observability_configurations::ListObservabilityConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::list_operations::ListOperationsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::list_operations::ListOperationsError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_operations::ListOperationsError> for Error {
fn from(err: crate::operation::list_operations::ListOperationsError) -> Self {
match err {
crate::operation::list_operations::ListOperationsError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::list_operations::ListOperationsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_operations::ListOperationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_operations::ListOperationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<aws_smithy_http::result::SdkError<crate::operation::list_services::ListServicesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::list_services::ListServicesError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_services::ListServicesError> for Error {
fn from(err: crate::operation::list_services::ListServicesError) -> Self {
match err {
crate::operation::list_services::ListServicesError::InternalServiceErrorException(
inner,
) => Error::InternalServiceErrorException(inner),
crate::operation::list_services::ListServicesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_services::ListServicesError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::list_tags_for_resource::ListTagsForResourceError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::list_tags_for_resource::ListTagsForResourceError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
match err {
crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidStateException(inner) => Error::InvalidStateException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::list_vpc_connectors::ListVpcConnectorsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::list_vpc_connectors::ListVpcConnectorsError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_vpc_connectors::ListVpcConnectorsError> for Error {
fn from(err: crate::operation::list_vpc_connectors::ListVpcConnectorsError) -> Self {
match err {
crate::operation::list_vpc_connectors::ListVpcConnectorsError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::list_vpc_connectors::ListVpcConnectorsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_vpc_connectors::ListVpcConnectorsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError>
for Error
{
fn from(
err: crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError,
) -> Self {
match err {
crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<aws_smithy_http::result::SdkError<crate::operation::pause_service::PauseServiceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::pause_service::PauseServiceError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::pause_service::PauseServiceError> for Error {
fn from(err: crate::operation::pause_service::PauseServiceError) -> Self {
match err {
crate::operation::pause_service::PauseServiceError::InternalServiceErrorException(
inner,
) => Error::InternalServiceErrorException(inner),
crate::operation::pause_service::PauseServiceError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::pause_service::PauseServiceError::InvalidStateException(inner) => {
Error::InvalidStateException(inner)
}
crate::operation::pause_service::PauseServiceError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::pause_service::PauseServiceError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<aws_smithy_http::result::SdkError<crate::operation::resume_service::ResumeServiceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::resume_service::ResumeServiceError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::resume_service::ResumeServiceError> for Error {
fn from(err: crate::operation::resume_service::ResumeServiceError) -> Self {
match err {
crate::operation::resume_service::ResumeServiceError::InternalServiceErrorException(
inner,
) => Error::InternalServiceErrorException(inner),
crate::operation::resume_service::ResumeServiceError::InvalidRequestException(
inner,
) => Error::InvalidRequestException(inner),
crate::operation::resume_service::ResumeServiceError::InvalidStateException(inner) => {
Error::InvalidStateException(inner)
}
crate::operation::resume_service::ResumeServiceError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::resume_service::ResumeServiceError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::start_deployment::StartDeploymentError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::start_deployment::StartDeploymentError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::start_deployment::StartDeploymentError> for Error {
fn from(err: crate::operation::start_deployment::StartDeploymentError) -> Self {
match err {
crate::operation::start_deployment::StartDeploymentError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::start_deployment::StartDeploymentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::start_deployment::StartDeploymentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::start_deployment::StartDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::operation::tag_resource::TagResourceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::operation::tag_resource::TagResourceError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::tag_resource::TagResourceError> for Error {
fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
match err {
crate::operation::tag_resource::TagResourceError::InternalServiceErrorException(
inner,
) => Error::InternalServiceErrorException(inner),
crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::tag_resource::TagResourceError::InvalidStateException(inner) => {
Error::InvalidStateException(inner)
}
crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::tag_resource::TagResourceError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<aws_smithy_http::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::untag_resource::UntagResourceError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::untag_resource::UntagResourceError> for Error {
fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
match err {
crate::operation::untag_resource::UntagResourceError::InternalServiceErrorException(
inner,
) => Error::InternalServiceErrorException(inner),
crate::operation::untag_resource::UntagResourceError::InvalidRequestException(
inner,
) => Error::InvalidRequestException(inner),
crate::operation::untag_resource::UntagResourceError::InvalidStateException(inner) => {
Error::InvalidStateException(inner)
}
crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<aws_smithy_http::result::SdkError<crate::operation::update_service::UpdateServiceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::update_service::UpdateServiceError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_service::UpdateServiceError> for Error {
fn from(err: crate::operation::update_service::UpdateServiceError) -> Self {
match err {
crate::operation::update_service::UpdateServiceError::InternalServiceErrorException(
inner,
) => Error::InternalServiceErrorException(inner),
crate::operation::update_service::UpdateServiceError::InvalidRequestException(
inner,
) => Error::InvalidRequestException(inner),
crate::operation::update_service::UpdateServiceError::InvalidStateException(inner) => {
Error::InvalidStateException(inner)
}
crate::operation::update_service::UpdateServiceError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::update_service::UpdateServiceError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError>
for Error
{
fn from(
err: crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError,
) -> Self {
match err {
crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError::InvalidStateException(inner) => Error::InvalidStateException(inner),
crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl std::error::Error for Error {}
impl aws_http::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::InternalServiceErrorException(e) => e.request_id(),
Self::InvalidRequestException(e) => e.request_id(),
Self::InvalidStateException(e) => e.request_id(),
Self::ResourceNotFoundException(e) => e.request_id(),
Self::ServiceQuotaExceededException(e) => e.request_id(),
Self::Unhandled(e) => e.request_id(),
}
}
}