#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
AlpnPolicyNotSupportedException(crate::types::error::AlpnPolicyNotSupportedException),
AllocationIdNotFoundException(crate::types::error::AllocationIdNotFoundException),
AvailabilityZoneNotSupportedException(crate::types::error::AvailabilityZoneNotSupportedException),
CaCertificatesBundleNotFoundException(crate::types::error::CaCertificatesBundleNotFoundException),
CapacityDecreaseRequestsLimitExceededException(crate::types::error::CapacityDecreaseRequestsLimitExceededException),
CapacityReservationPendingException(crate::types::error::CapacityReservationPendingException),
CapacityUnitsLimitExceededException(crate::types::error::CapacityUnitsLimitExceededException),
CertificateNotFoundException(crate::types::error::CertificateNotFoundException),
DeleteAssociationSameAccountException(crate::types::error::DeleteAssociationSameAccountException),
DuplicateListenerException(crate::types::error::DuplicateListenerException),
DuplicateLoadBalancerNameException(crate::types::error::DuplicateLoadBalancerNameException),
DuplicateTagKeysException(crate::types::error::DuplicateTagKeysException),
DuplicateTargetGroupNameException(crate::types::error::DuplicateTargetGroupNameException),
DuplicateTrustStoreNameException(crate::types::error::DuplicateTrustStoreNameException),
HealthUnavailableException(crate::types::error::HealthUnavailableException),
IncompatibleProtocolsException(crate::types::error::IncompatibleProtocolsException),
InsufficientCapacityException(crate::types::error::InsufficientCapacityException),
InvalidCaCertificatesBundleException(crate::types::error::InvalidCaCertificatesBundleException),
InvalidConfigurationRequestException(crate::types::error::InvalidConfigurationRequestException),
InvalidLoadBalancerActionException(crate::types::error::InvalidLoadBalancerActionException),
InvalidRevocationContentException(crate::types::error::InvalidRevocationContentException),
InvalidSchemeException(crate::types::error::InvalidSchemeException),
InvalidSecurityGroupException(crate::types::error::InvalidSecurityGroupException),
InvalidSubnetException(crate::types::error::InvalidSubnetException),
InvalidTargetException(crate::types::error::InvalidTargetException),
ListenerNotFoundException(crate::types::error::ListenerNotFoundException),
LoadBalancerNotFoundException(crate::types::error::LoadBalancerNotFoundException),
OperationNotPermittedException(crate::types::error::OperationNotPermittedException),
PriorRequestNotCompleteException(crate::types::error::PriorRequestNotCompleteException),
PriorityInUseException(crate::types::error::PriorityInUseException),
ResourceInUseException(crate::types::error::ResourceInUseException),
ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
RevocationContentNotFoundException(crate::types::error::RevocationContentNotFoundException),
RevocationIdNotFoundException(crate::types::error::RevocationIdNotFoundException),
RuleNotFoundException(crate::types::error::RuleNotFoundException),
SslPolicyNotFoundException(crate::types::error::SslPolicyNotFoundException),
SubnetNotFoundException(crate::types::error::SubnetNotFoundException),
TargetGroupAssociationLimitException(crate::types::error::TargetGroupAssociationLimitException),
TargetGroupNotFoundException(crate::types::error::TargetGroupNotFoundException),
TooManyActionsException(crate::types::error::TooManyActionsException),
TooManyCertificatesException(crate::types::error::TooManyCertificatesException),
TooManyListenersException(crate::types::error::TooManyListenersException),
TooManyLoadBalancersException(crate::types::error::TooManyLoadBalancersException),
TooManyRegistrationsForTargetIdException(crate::types::error::TooManyRegistrationsForTargetIdException),
TooManyRulesException(crate::types::error::TooManyRulesException),
TooManyTagsException(crate::types::error::TooManyTagsException),
TooManyTargetGroupsException(crate::types::error::TooManyTargetGroupsException),
TooManyTargetsException(crate::types::error::TooManyTargetsException),
TooManyTrustStoreRevocationEntriesException(crate::types::error::TooManyTrustStoreRevocationEntriesException),
TooManyTrustStoresException(crate::types::error::TooManyTrustStoresException),
TooManyUniqueTargetGroupsPerLoadBalancerException(crate::types::error::TooManyUniqueTargetGroupsPerLoadBalancerException),
TrustStoreAssociationNotFoundException(crate::types::error::TrustStoreAssociationNotFoundException),
TrustStoreInUseException(crate::types::error::TrustStoreInUseException),
TrustStoreNotFoundException(crate::types::error::TrustStoreNotFoundException),
TrustStoreNotReadyException(crate::types::error::TrustStoreNotReadyException),
UnsupportedProtocolException(crate::types::error::UnsupportedProtocolException),
#[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
variable wildcard pattern and check `.code()`:
\
`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
\
See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
Unhandled(crate::error::sealed_unhandled::Unhandled),
}
impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::AlpnPolicyNotSupportedException(inner) => inner.fmt(f),
Error::AllocationIdNotFoundException(inner) => inner.fmt(f),
Error::AvailabilityZoneNotSupportedException(inner) => inner.fmt(f),
Error::CaCertificatesBundleNotFoundException(inner) => inner.fmt(f),
Error::CapacityDecreaseRequestsLimitExceededException(inner) => inner.fmt(f),
Error::CapacityReservationPendingException(inner) => inner.fmt(f),
Error::CapacityUnitsLimitExceededException(inner) => inner.fmt(f),
Error::CertificateNotFoundException(inner) => inner.fmt(f),
Error::DeleteAssociationSameAccountException(inner) => inner.fmt(f),
Error::DuplicateListenerException(inner) => inner.fmt(f),
Error::DuplicateLoadBalancerNameException(inner) => inner.fmt(f),
Error::DuplicateTagKeysException(inner) => inner.fmt(f),
Error::DuplicateTargetGroupNameException(inner) => inner.fmt(f),
Error::DuplicateTrustStoreNameException(inner) => inner.fmt(f),
Error::HealthUnavailableException(inner) => inner.fmt(f),
Error::IncompatibleProtocolsException(inner) => inner.fmt(f),
Error::InsufficientCapacityException(inner) => inner.fmt(f),
Error::InvalidCaCertificatesBundleException(inner) => inner.fmt(f),
Error::InvalidConfigurationRequestException(inner) => inner.fmt(f),
Error::InvalidLoadBalancerActionException(inner) => inner.fmt(f),
Error::InvalidRevocationContentException(inner) => inner.fmt(f),
Error::InvalidSchemeException(inner) => inner.fmt(f),
Error::InvalidSecurityGroupException(inner) => inner.fmt(f),
Error::InvalidSubnetException(inner) => inner.fmt(f),
Error::InvalidTargetException(inner) => inner.fmt(f),
Error::ListenerNotFoundException(inner) => inner.fmt(f),
Error::LoadBalancerNotFoundException(inner) => inner.fmt(f),
Error::OperationNotPermittedException(inner) => inner.fmt(f),
Error::PriorRequestNotCompleteException(inner) => inner.fmt(f),
Error::PriorityInUseException(inner) => inner.fmt(f),
Error::ResourceInUseException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::RevocationContentNotFoundException(inner) => inner.fmt(f),
Error::RevocationIdNotFoundException(inner) => inner.fmt(f),
Error::RuleNotFoundException(inner) => inner.fmt(f),
Error::SslPolicyNotFoundException(inner) => inner.fmt(f),
Error::SubnetNotFoundException(inner) => inner.fmt(f),
Error::TargetGroupAssociationLimitException(inner) => inner.fmt(f),
Error::TargetGroupNotFoundException(inner) => inner.fmt(f),
Error::TooManyActionsException(inner) => inner.fmt(f),
Error::TooManyCertificatesException(inner) => inner.fmt(f),
Error::TooManyListenersException(inner) => inner.fmt(f),
Error::TooManyLoadBalancersException(inner) => inner.fmt(f),
Error::TooManyRegistrationsForTargetIdException(inner) => inner.fmt(f),
Error::TooManyRulesException(inner) => inner.fmt(f),
Error::TooManyTagsException(inner) => inner.fmt(f),
Error::TooManyTargetGroupsException(inner) => inner.fmt(f),
Error::TooManyTargetsException(inner) => inner.fmt(f),
Error::TooManyTrustStoreRevocationEntriesException(inner) => inner.fmt(f),
Error::TooManyTrustStoresException(inner) => inner.fmt(f),
Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => inner.fmt(f),
Error::TrustStoreAssociationNotFoundException(inner) => inner.fmt(f),
Error::TrustStoreInUseException(inner) => inner.fmt(f),
Error::TrustStoreNotFoundException(inner) => inner.fmt(f),
Error::TrustStoreNotReadyException(inner) => inner.fmt(f),
Error::UnsupportedProtocolException(inner) => inner.fmt(f),
Error::Unhandled(_) => {
if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
write!(f, "unhandled error ({code})")
} else {
f.write_str("unhandled error")
}
}
}
}
}
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
source: value.into(),
meta: ::std::default::Default::default(),
})
}
}
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
match self {
Self::AlpnPolicyNotSupportedException(inner) => inner.meta(),
Self::AllocationIdNotFoundException(inner) => inner.meta(),
Self::AvailabilityZoneNotSupportedException(inner) => inner.meta(),
Self::CaCertificatesBundleNotFoundException(inner) => inner.meta(),
Self::CapacityDecreaseRequestsLimitExceededException(inner) => inner.meta(),
Self::CapacityReservationPendingException(inner) => inner.meta(),
Self::CapacityUnitsLimitExceededException(inner) => inner.meta(),
Self::CertificateNotFoundException(inner) => inner.meta(),
Self::DeleteAssociationSameAccountException(inner) => inner.meta(),
Self::DuplicateListenerException(inner) => inner.meta(),
Self::DuplicateLoadBalancerNameException(inner) => inner.meta(),
Self::DuplicateTagKeysException(inner) => inner.meta(),
Self::DuplicateTargetGroupNameException(inner) => inner.meta(),
Self::DuplicateTrustStoreNameException(inner) => inner.meta(),
Self::HealthUnavailableException(inner) => inner.meta(),
Self::IncompatibleProtocolsException(inner) => inner.meta(),
Self::InsufficientCapacityException(inner) => inner.meta(),
Self::InvalidCaCertificatesBundleException(inner) => inner.meta(),
Self::InvalidConfigurationRequestException(inner) => inner.meta(),
Self::InvalidLoadBalancerActionException(inner) => inner.meta(),
Self::InvalidRevocationContentException(inner) => inner.meta(),
Self::InvalidSchemeException(inner) => inner.meta(),
Self::InvalidSecurityGroupException(inner) => inner.meta(),
Self::InvalidSubnetException(inner) => inner.meta(),
Self::InvalidTargetException(inner) => inner.meta(),
Self::ListenerNotFoundException(inner) => inner.meta(),
Self::LoadBalancerNotFoundException(inner) => inner.meta(),
Self::OperationNotPermittedException(inner) => inner.meta(),
Self::PriorRequestNotCompleteException(inner) => inner.meta(),
Self::PriorityInUseException(inner) => inner.meta(),
Self::ResourceInUseException(inner) => inner.meta(),
Self::ResourceNotFoundException(inner) => inner.meta(),
Self::RevocationContentNotFoundException(inner) => inner.meta(),
Self::RevocationIdNotFoundException(inner) => inner.meta(),
Self::RuleNotFoundException(inner) => inner.meta(),
Self::SslPolicyNotFoundException(inner) => inner.meta(),
Self::SubnetNotFoundException(inner) => inner.meta(),
Self::TargetGroupAssociationLimitException(inner) => inner.meta(),
Self::TargetGroupNotFoundException(inner) => inner.meta(),
Self::TooManyActionsException(inner) => inner.meta(),
Self::TooManyCertificatesException(inner) => inner.meta(),
Self::TooManyListenersException(inner) => inner.meta(),
Self::TooManyLoadBalancersException(inner) => inner.meta(),
Self::TooManyRegistrationsForTargetIdException(inner) => inner.meta(),
Self::TooManyRulesException(inner) => inner.meta(),
Self::TooManyTagsException(inner) => inner.meta(),
Self::TooManyTargetGroupsException(inner) => inner.meta(),
Self::TooManyTargetsException(inner) => inner.meta(),
Self::TooManyTrustStoreRevocationEntriesException(inner) => inner.meta(),
Self::TooManyTrustStoresException(inner) => inner.meta(),
Self::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => inner.meta(),
Self::TrustStoreAssociationNotFoundException(inner) => inner.meta(),
Self::TrustStoreInUseException(inner) => inner.meta(),
Self::TrustStoreNotFoundException(inner) => inner.meta(),
Self::TrustStoreNotReadyException(inner) => inner.meta(),
Self::UnsupportedProtocolException(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_listener_certificates::AddListenerCertificatesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_listener_certificates::AddListenerCertificatesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::add_listener_certificates::AddListenerCertificatesError> for Error {
fn from(err: crate::operation::add_listener_certificates::AddListenerCertificatesError) -> Self {
match err {
crate::operation::add_listener_certificates::AddListenerCertificatesError::CertificateNotFoundException(inner) => {
Error::CertificateNotFoundException(inner)
}
crate::operation::add_listener_certificates::AddListenerCertificatesError::ListenerNotFoundException(inner) => {
Error::ListenerNotFoundException(inner)
}
crate::operation::add_listener_certificates::AddListenerCertificatesError::TooManyCertificatesException(inner) => {
Error::TooManyCertificatesException(inner)
}
crate::operation::add_listener_certificates::AddListenerCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags::AddTagsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags::AddTagsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::add_tags::AddTagsError> for Error {
fn from(err: crate::operation::add_tags::AddTagsError) -> Self {
match err {
crate::operation::add_tags::AddTagsError::DuplicateTagKeysException(inner) => Error::DuplicateTagKeysException(inner),
crate::operation::add_tags::AddTagsError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
crate::operation::add_tags::AddTagsError::LoadBalancerNotFoundException(inner) => Error::LoadBalancerNotFoundException(inner),
crate::operation::add_tags::AddTagsError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
crate::operation::add_tags::AddTagsError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
crate::operation::add_tags::AddTagsError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
crate::operation::add_tags::AddTagsError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
crate::operation::add_tags::AddTagsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError> for Error {
fn from(err: crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError) -> Self {
match err {
crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError::InvalidRevocationContentException(inner) => {
Error::InvalidRevocationContentException(inner)
}
crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError::RevocationContentNotFoundException(inner) => {
Error::RevocationContentNotFoundException(inner)
}
crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError::TooManyTrustStoreRevocationEntriesException(inner) => {
Error::TooManyTrustStoreRevocationEntriesException(inner)
}
crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError::TrustStoreNotFoundException(inner) => {
Error::TrustStoreNotFoundException(inner)
}
crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_listener::CreateListenerError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_listener::CreateListenerError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_listener::CreateListenerError> for Error {
fn from(err: crate::operation::create_listener::CreateListenerError) -> Self {
match err {
crate::operation::create_listener::CreateListenerError::AlpnPolicyNotSupportedException(inner) => {
Error::AlpnPolicyNotSupportedException(inner)
}
crate::operation::create_listener::CreateListenerError::CertificateNotFoundException(inner) => Error::CertificateNotFoundException(inner),
crate::operation::create_listener::CreateListenerError::DuplicateListenerException(inner) => Error::DuplicateListenerException(inner),
crate::operation::create_listener::CreateListenerError::IncompatibleProtocolsException(inner) => {
Error::IncompatibleProtocolsException(inner)
}
crate::operation::create_listener::CreateListenerError::InvalidConfigurationRequestException(inner) => {
Error::InvalidConfigurationRequestException(inner)
}
crate::operation::create_listener::CreateListenerError::InvalidLoadBalancerActionException(inner) => {
Error::InvalidLoadBalancerActionException(inner)
}
crate::operation::create_listener::CreateListenerError::LoadBalancerNotFoundException(inner) => {
Error::LoadBalancerNotFoundException(inner)
}
crate::operation::create_listener::CreateListenerError::SslPolicyNotFoundException(inner) => Error::SslPolicyNotFoundException(inner),
crate::operation::create_listener::CreateListenerError::TargetGroupAssociationLimitException(inner) => {
Error::TargetGroupAssociationLimitException(inner)
}
crate::operation::create_listener::CreateListenerError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
crate::operation::create_listener::CreateListenerError::TooManyActionsException(inner) => Error::TooManyActionsException(inner),
crate::operation::create_listener::CreateListenerError::TooManyCertificatesException(inner) => Error::TooManyCertificatesException(inner),
crate::operation::create_listener::CreateListenerError::TooManyListenersException(inner) => Error::TooManyListenersException(inner),
crate::operation::create_listener::CreateListenerError::TooManyRegistrationsForTargetIdException(inner) => {
Error::TooManyRegistrationsForTargetIdException(inner)
}
crate::operation::create_listener::CreateListenerError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
crate::operation::create_listener::CreateListenerError::TooManyTargetsException(inner) => Error::TooManyTargetsException(inner),
crate::operation::create_listener::CreateListenerError::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => {
Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner)
}
crate::operation::create_listener::CreateListenerError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
crate::operation::create_listener::CreateListenerError::TrustStoreNotReadyException(inner) => Error::TrustStoreNotReadyException(inner),
crate::operation::create_listener::CreateListenerError::UnsupportedProtocolException(inner) => Error::UnsupportedProtocolException(inner),
crate::operation::create_listener::CreateListenerError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_load_balancer::CreateLoadBalancerError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_load_balancer::CreateLoadBalancerError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_load_balancer::CreateLoadBalancerError> for Error {
fn from(err: crate::operation::create_load_balancer::CreateLoadBalancerError) -> Self {
match err {
crate::operation::create_load_balancer::CreateLoadBalancerError::AllocationIdNotFoundException(inner) => {
Error::AllocationIdNotFoundException(inner)
}
crate::operation::create_load_balancer::CreateLoadBalancerError::AvailabilityZoneNotSupportedException(inner) => {
Error::AvailabilityZoneNotSupportedException(inner)
}
crate::operation::create_load_balancer::CreateLoadBalancerError::DuplicateLoadBalancerNameException(inner) => {
Error::DuplicateLoadBalancerNameException(inner)
}
crate::operation::create_load_balancer::CreateLoadBalancerError::DuplicateTagKeysException(inner) => {
Error::DuplicateTagKeysException(inner)
}
crate::operation::create_load_balancer::CreateLoadBalancerError::InvalidConfigurationRequestException(inner) => {
Error::InvalidConfigurationRequestException(inner)
}
crate::operation::create_load_balancer::CreateLoadBalancerError::InvalidSchemeException(inner) => Error::InvalidSchemeException(inner),
crate::operation::create_load_balancer::CreateLoadBalancerError::InvalidSecurityGroupException(inner) => {
Error::InvalidSecurityGroupException(inner)
}
crate::operation::create_load_balancer::CreateLoadBalancerError::InvalidSubnetException(inner) => Error::InvalidSubnetException(inner),
crate::operation::create_load_balancer::CreateLoadBalancerError::OperationNotPermittedException(inner) => {
Error::OperationNotPermittedException(inner)
}
crate::operation::create_load_balancer::CreateLoadBalancerError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::create_load_balancer::CreateLoadBalancerError::SubnetNotFoundException(inner) => Error::SubnetNotFoundException(inner),
crate::operation::create_load_balancer::CreateLoadBalancerError::TooManyLoadBalancersException(inner) => {
Error::TooManyLoadBalancersException(inner)
}
crate::operation::create_load_balancer::CreateLoadBalancerError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
crate::operation::create_load_balancer::CreateLoadBalancerError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule::CreateRuleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule::CreateRuleError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_rule::CreateRuleError> for Error {
fn from(err: crate::operation::create_rule::CreateRuleError) -> Self {
match err {
crate::operation::create_rule::CreateRuleError::IncompatibleProtocolsException(inner) => Error::IncompatibleProtocolsException(inner),
crate::operation::create_rule::CreateRuleError::InvalidConfigurationRequestException(inner) => {
Error::InvalidConfigurationRequestException(inner)
}
crate::operation::create_rule::CreateRuleError::InvalidLoadBalancerActionException(inner) => {
Error::InvalidLoadBalancerActionException(inner)
}
crate::operation::create_rule::CreateRuleError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
crate::operation::create_rule::CreateRuleError::PriorityInUseException(inner) => Error::PriorityInUseException(inner),
crate::operation::create_rule::CreateRuleError::TargetGroupAssociationLimitException(inner) => {
Error::TargetGroupAssociationLimitException(inner)
}
crate::operation::create_rule::CreateRuleError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
crate::operation::create_rule::CreateRuleError::TooManyActionsException(inner) => Error::TooManyActionsException(inner),
crate::operation::create_rule::CreateRuleError::TooManyRegistrationsForTargetIdException(inner) => {
Error::TooManyRegistrationsForTargetIdException(inner)
}
crate::operation::create_rule::CreateRuleError::TooManyRulesException(inner) => Error::TooManyRulesException(inner),
crate::operation::create_rule::CreateRuleError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
crate::operation::create_rule::CreateRuleError::TooManyTargetGroupsException(inner) => Error::TooManyTargetGroupsException(inner),
crate::operation::create_rule::CreateRuleError::TooManyTargetsException(inner) => Error::TooManyTargetsException(inner),
crate::operation::create_rule::CreateRuleError::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => {
Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner)
}
crate::operation::create_rule::CreateRuleError::UnsupportedProtocolException(inner) => Error::UnsupportedProtocolException(inner),
crate::operation::create_rule::CreateRuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_target_group::CreateTargetGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_target_group::CreateTargetGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_target_group::CreateTargetGroupError> for Error {
fn from(err: crate::operation::create_target_group::CreateTargetGroupError) -> Self {
match err {
crate::operation::create_target_group::CreateTargetGroupError::DuplicateTargetGroupNameException(inner) => {
Error::DuplicateTargetGroupNameException(inner)
}
crate::operation::create_target_group::CreateTargetGroupError::InvalidConfigurationRequestException(inner) => {
Error::InvalidConfigurationRequestException(inner)
}
crate::operation::create_target_group::CreateTargetGroupError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
crate::operation::create_target_group::CreateTargetGroupError::TooManyTargetGroupsException(inner) => {
Error::TooManyTargetGroupsException(inner)
}
crate::operation::create_target_group::CreateTargetGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trust_store::CreateTrustStoreError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trust_store::CreateTrustStoreError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_trust_store::CreateTrustStoreError> for Error {
fn from(err: crate::operation::create_trust_store::CreateTrustStoreError) -> Self {
match err {
crate::operation::create_trust_store::CreateTrustStoreError::CaCertificatesBundleNotFoundException(inner) => {
Error::CaCertificatesBundleNotFoundException(inner)
}
crate::operation::create_trust_store::CreateTrustStoreError::DuplicateTagKeysException(inner) => Error::DuplicateTagKeysException(inner),
crate::operation::create_trust_store::CreateTrustStoreError::DuplicateTrustStoreNameException(inner) => {
Error::DuplicateTrustStoreNameException(inner)
}
crate::operation::create_trust_store::CreateTrustStoreError::InvalidCaCertificatesBundleException(inner) => {
Error::InvalidCaCertificatesBundleException(inner)
}
crate::operation::create_trust_store::CreateTrustStoreError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
crate::operation::create_trust_store::CreateTrustStoreError::TooManyTrustStoresException(inner) => {
Error::TooManyTrustStoresException(inner)
}
crate::operation::create_trust_store::CreateTrustStoreError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_listener::DeleteListenerError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_listener::DeleteListenerError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_listener::DeleteListenerError> for Error {
fn from(err: crate::operation::delete_listener::DeleteListenerError) -> Self {
match err {
crate::operation::delete_listener::DeleteListenerError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
crate::operation::delete_listener::DeleteListenerError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::delete_listener::DeleteListenerError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_load_balancer::DeleteLoadBalancerError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_load_balancer::DeleteLoadBalancerError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_load_balancer::DeleteLoadBalancerError> for Error {
fn from(err: crate::operation::delete_load_balancer::DeleteLoadBalancerError) -> Self {
match err {
crate::operation::delete_load_balancer::DeleteLoadBalancerError::LoadBalancerNotFoundException(inner) => {
Error::LoadBalancerNotFoundException(inner)
}
crate::operation::delete_load_balancer::DeleteLoadBalancerError::OperationNotPermittedException(inner) => {
Error::OperationNotPermittedException(inner)
}
crate::operation::delete_load_balancer::DeleteLoadBalancerError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::delete_load_balancer::DeleteLoadBalancerError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule::DeleteRuleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule::DeleteRuleError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_rule::DeleteRuleError> for Error {
fn from(err: crate::operation::delete_rule::DeleteRuleError) -> Self {
match err {
crate::operation::delete_rule::DeleteRuleError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
crate::operation::delete_rule::DeleteRuleError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
crate::operation::delete_rule::DeleteRuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError> for Error {
fn from(err: crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError) -> Self {
match err {
crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError::DeleteAssociationSameAccountException(inner) => Error::DeleteAssociationSameAccountException(inner),
crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError::TrustStoreAssociationNotFoundException(inner) => Error::TrustStoreAssociationNotFoundException(inner),
crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_target_group::DeleteTargetGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_target_group::DeleteTargetGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_target_group::DeleteTargetGroupError> for Error {
fn from(err: crate::operation::delete_target_group::DeleteTargetGroupError) -> Self {
match err {
crate::operation::delete_target_group::DeleteTargetGroupError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::delete_target_group::DeleteTargetGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trust_store::DeleteTrustStoreError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trust_store::DeleteTrustStoreError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_trust_store::DeleteTrustStoreError> for Error {
fn from(err: crate::operation::delete_trust_store::DeleteTrustStoreError) -> Self {
match err {
crate::operation::delete_trust_store::DeleteTrustStoreError::TrustStoreInUseException(inner) => Error::TrustStoreInUseException(inner),
crate::operation::delete_trust_store::DeleteTrustStoreError::TrustStoreNotFoundException(inner) => {
Error::TrustStoreNotFoundException(inner)
}
crate::operation::delete_trust_store::DeleteTrustStoreError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_targets::DeregisterTargetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_targets::DeregisterTargetsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::deregister_targets::DeregisterTargetsError> for Error {
fn from(err: crate::operation::deregister_targets::DeregisterTargetsError) -> Self {
match err {
crate::operation::deregister_targets::DeregisterTargetsError::InvalidTargetException(inner) => Error::InvalidTargetException(inner),
crate::operation::deregister_targets::DeregisterTargetsError::TargetGroupNotFoundException(inner) => {
Error::TargetGroupNotFoundException(inner)
}
crate::operation::deregister_targets::DeregisterTargetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_account_limits::DescribeAccountLimitsError> for Error {
fn from(err: crate::operation::describe_account_limits::DescribeAccountLimitsError) -> Self {
match err {
crate::operation::describe_account_limits::DescribeAccountLimitsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_reservation::DescribeCapacityReservationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_reservation::DescribeCapacityReservationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_capacity_reservation::DescribeCapacityReservationError> for Error {
fn from(err: crate::operation::describe_capacity_reservation::DescribeCapacityReservationError) -> Self {
match err {
crate::operation::describe_capacity_reservation::DescribeCapacityReservationError::LoadBalancerNotFoundException(inner) => {
Error::LoadBalancerNotFoundException(inner)
}
crate::operation::describe_capacity_reservation::DescribeCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_listener_attributes::DescribeListenerAttributesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_listener_attributes::DescribeListenerAttributesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_listener_attributes::DescribeListenerAttributesError> for Error {
fn from(err: crate::operation::describe_listener_attributes::DescribeListenerAttributesError) -> Self {
match err {
crate::operation::describe_listener_attributes::DescribeListenerAttributesError::ListenerNotFoundException(inner) => {
Error::ListenerNotFoundException(inner)
}
crate::operation::describe_listener_attributes::DescribeListenerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_listener_certificates::DescribeListenerCertificatesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_listener_certificates::DescribeListenerCertificatesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_listener_certificates::DescribeListenerCertificatesError> for Error {
fn from(err: crate::operation::describe_listener_certificates::DescribeListenerCertificatesError) -> Self {
match err {
crate::operation::describe_listener_certificates::DescribeListenerCertificatesError::ListenerNotFoundException(inner) => {
Error::ListenerNotFoundException(inner)
}
crate::operation::describe_listener_certificates::DescribeListenerCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_listeners::DescribeListenersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_listeners::DescribeListenersError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_listeners::DescribeListenersError> for Error {
fn from(err: crate::operation::describe_listeners::DescribeListenersError) -> Self {
match err {
crate::operation::describe_listeners::DescribeListenersError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
crate::operation::describe_listeners::DescribeListenersError::LoadBalancerNotFoundException(inner) => {
Error::LoadBalancerNotFoundException(inner)
}
crate::operation::describe_listeners::DescribeListenersError::UnsupportedProtocolException(inner) => {
Error::UnsupportedProtocolException(inner)
}
crate::operation::describe_listeners::DescribeListenersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_load_balancer_attributes::DescribeLoadBalancerAttributesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_load_balancer_attributes::DescribeLoadBalancerAttributesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_load_balancer_attributes::DescribeLoadBalancerAttributesError> for Error {
fn from(err: crate::operation::describe_load_balancer_attributes::DescribeLoadBalancerAttributesError) -> Self {
match err {
crate::operation::describe_load_balancer_attributes::DescribeLoadBalancerAttributesError::LoadBalancerNotFoundException(inner) => {
Error::LoadBalancerNotFoundException(inner)
}
crate::operation::describe_load_balancer_attributes::DescribeLoadBalancerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_load_balancers::DescribeLoadBalancersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_load_balancers::DescribeLoadBalancersError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_load_balancers::DescribeLoadBalancersError> for Error {
fn from(err: crate::operation::describe_load_balancers::DescribeLoadBalancersError) -> Self {
match err {
crate::operation::describe_load_balancers::DescribeLoadBalancersError::LoadBalancerNotFoundException(inner) => {
Error::LoadBalancerNotFoundException(inner)
}
crate::operation::describe_load_balancers::DescribeLoadBalancersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rules::DescribeRulesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rules::DescribeRulesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_rules::DescribeRulesError> for Error {
fn from(err: crate::operation::describe_rules::DescribeRulesError) -> Self {
match err {
crate::operation::describe_rules::DescribeRulesError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
crate::operation::describe_rules::DescribeRulesError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
crate::operation::describe_rules::DescribeRulesError::UnsupportedProtocolException(inner) => Error::UnsupportedProtocolException(inner),
crate::operation::describe_rules::DescribeRulesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ssl_policies::DescribeSSLPoliciesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ssl_policies::DescribeSSLPoliciesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_ssl_policies::DescribeSSLPoliciesError> for Error {
fn from(err: crate::operation::describe_ssl_policies::DescribeSSLPoliciesError) -> Self {
match err {
crate::operation::describe_ssl_policies::DescribeSSLPoliciesError::SslPolicyNotFoundException(inner) => {
Error::SslPolicyNotFoundException(inner)
}
crate::operation::describe_ssl_policies::DescribeSSLPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
match err {
crate::operation::describe_tags::DescribeTagsError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
crate::operation::describe_tags::DescribeTagsError::LoadBalancerNotFoundException(inner) => Error::LoadBalancerNotFoundException(inner),
crate::operation::describe_tags::DescribeTagsError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
crate::operation::describe_tags::DescribeTagsError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
crate::operation::describe_tags::DescribeTagsError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
crate::operation::describe_tags::DescribeTagsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_target_group_attributes::DescribeTargetGroupAttributesError, R>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_target_group_attributes::DescribeTargetGroupAttributesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_target_group_attributes::DescribeTargetGroupAttributesError> for Error {
fn from(err: crate::operation::describe_target_group_attributes::DescribeTargetGroupAttributesError) -> Self {
match err {
crate::operation::describe_target_group_attributes::DescribeTargetGroupAttributesError::TargetGroupNotFoundException(inner) => {
Error::TargetGroupNotFoundException(inner)
}
crate::operation::describe_target_group_attributes::DescribeTargetGroupAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_target_groups::DescribeTargetGroupsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_target_groups::DescribeTargetGroupsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_target_groups::DescribeTargetGroupsError> for Error {
fn from(err: crate::operation::describe_target_groups::DescribeTargetGroupsError) -> Self {
match err {
crate::operation::describe_target_groups::DescribeTargetGroupsError::LoadBalancerNotFoundException(inner) => {
Error::LoadBalancerNotFoundException(inner)
}
crate::operation::describe_target_groups::DescribeTargetGroupsError::TargetGroupNotFoundException(inner) => {
Error::TargetGroupNotFoundException(inner)
}
crate::operation::describe_target_groups::DescribeTargetGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_target_health::DescribeTargetHealthError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_target_health::DescribeTargetHealthError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_target_health::DescribeTargetHealthError> for Error {
fn from(err: crate::operation::describe_target_health::DescribeTargetHealthError) -> Self {
match err {
crate::operation::describe_target_health::DescribeTargetHealthError::HealthUnavailableException(inner) => {
Error::HealthUnavailableException(inner)
}
crate::operation::describe_target_health::DescribeTargetHealthError::InvalidTargetException(inner) => {
Error::InvalidTargetException(inner)
}
crate::operation::describe_target_health::DescribeTargetHealthError::TargetGroupNotFoundException(inner) => {
Error::TargetGroupNotFoundException(inner)
}
crate::operation::describe_target_health::DescribeTargetHealthError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_trust_store_associations::DescribeTrustStoreAssociationsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_trust_store_associations::DescribeTrustStoreAssociationsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_trust_store_associations::DescribeTrustStoreAssociationsError> for Error {
fn from(err: crate::operation::describe_trust_store_associations::DescribeTrustStoreAssociationsError) -> Self {
match err {
crate::operation::describe_trust_store_associations::DescribeTrustStoreAssociationsError::TrustStoreNotFoundException(inner) => {
Error::TrustStoreNotFoundException(inner)
}
crate::operation::describe_trust_store_associations::DescribeTrustStoreAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError, R>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError> for Error {
fn from(err: crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError) -> Self {
match err {
crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError::RevocationIdNotFoundException(inner) => {
Error::RevocationIdNotFoundException(inner)
}
crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError::TrustStoreNotFoundException(inner) => {
Error::TrustStoreNotFoundException(inner)
}
crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trust_stores::DescribeTrustStoresError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trust_stores::DescribeTrustStoresError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_trust_stores::DescribeTrustStoresError> for Error {
fn from(err: crate::operation::describe_trust_stores::DescribeTrustStoresError) -> Self {
match err {
crate::operation::describe_trust_stores::DescribeTrustStoresError::TrustStoreNotFoundException(inner) => {
Error::TrustStoreNotFoundException(inner)
}
crate::operation::describe_trust_stores::DescribeTrustStoresError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
match err {
crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_trust_store_ca_certificates_bundle::GetTrustStoreCaCertificatesBundleError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_trust_store_ca_certificates_bundle::GetTrustStoreCaCertificatesBundleError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_trust_store_ca_certificates_bundle::GetTrustStoreCaCertificatesBundleError> for Error {
fn from(err: crate::operation::get_trust_store_ca_certificates_bundle::GetTrustStoreCaCertificatesBundleError) -> Self {
match err {
crate::operation::get_trust_store_ca_certificates_bundle::GetTrustStoreCaCertificatesBundleError::TrustStoreNotFoundException(inner) => {
Error::TrustStoreNotFoundException(inner)
}
crate::operation::get_trust_store_ca_certificates_bundle::GetTrustStoreCaCertificatesBundleError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError> for Error {
fn from(err: crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError) -> Self {
match err {
crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError::RevocationIdNotFoundException(inner) => {
Error::RevocationIdNotFoundException(inner)
}
crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError::TrustStoreNotFoundException(inner) => {
Error::TrustStoreNotFoundException(inner)
}
crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError> for Error {
fn from(err: crate::operation::modify_capacity_reservation::ModifyCapacityReservationError) -> Self {
match err {
crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::CapacityDecreaseRequestsLimitExceededException(inner) => {
Error::CapacityDecreaseRequestsLimitExceededException(inner)
}
crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::CapacityReservationPendingException(inner) => {
Error::CapacityReservationPendingException(inner)
}
crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::CapacityUnitsLimitExceededException(inner) => {
Error::CapacityUnitsLimitExceededException(inner)
}
crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::InsufficientCapacityException(inner) => {
Error::InsufficientCapacityException(inner)
}
crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::InvalidConfigurationRequestException(inner) => {
Error::InvalidConfigurationRequestException(inner)
}
crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::LoadBalancerNotFoundException(inner) => {
Error::LoadBalancerNotFoundException(inner)
}
crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::OperationNotPermittedException(inner) => {
Error::OperationNotPermittedException(inner)
}
crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::PriorRequestNotCompleteException(inner) => {
Error::PriorRequestNotCompleteException(inner)
}
crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_listener::ModifyListenerError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_listener::ModifyListenerError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::modify_listener::ModifyListenerError> for Error {
fn from(err: crate::operation::modify_listener::ModifyListenerError) -> Self {
match err {
crate::operation::modify_listener::ModifyListenerError::AlpnPolicyNotSupportedException(inner) => {
Error::AlpnPolicyNotSupportedException(inner)
}
crate::operation::modify_listener::ModifyListenerError::CertificateNotFoundException(inner) => Error::CertificateNotFoundException(inner),
crate::operation::modify_listener::ModifyListenerError::DuplicateListenerException(inner) => Error::DuplicateListenerException(inner),
crate::operation::modify_listener::ModifyListenerError::IncompatibleProtocolsException(inner) => {
Error::IncompatibleProtocolsException(inner)
}
crate::operation::modify_listener::ModifyListenerError::InvalidConfigurationRequestException(inner) => {
Error::InvalidConfigurationRequestException(inner)
}
crate::operation::modify_listener::ModifyListenerError::InvalidLoadBalancerActionException(inner) => {
Error::InvalidLoadBalancerActionException(inner)
}
crate::operation::modify_listener::ModifyListenerError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
crate::operation::modify_listener::ModifyListenerError::SslPolicyNotFoundException(inner) => Error::SslPolicyNotFoundException(inner),
crate::operation::modify_listener::ModifyListenerError::TargetGroupAssociationLimitException(inner) => {
Error::TargetGroupAssociationLimitException(inner)
}
crate::operation::modify_listener::ModifyListenerError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
crate::operation::modify_listener::ModifyListenerError::TooManyActionsException(inner) => Error::TooManyActionsException(inner),
crate::operation::modify_listener::ModifyListenerError::TooManyCertificatesException(inner) => Error::TooManyCertificatesException(inner),
crate::operation::modify_listener::ModifyListenerError::TooManyListenersException(inner) => Error::TooManyListenersException(inner),
crate::operation::modify_listener::ModifyListenerError::TooManyRegistrationsForTargetIdException(inner) => {
Error::TooManyRegistrationsForTargetIdException(inner)
}
crate::operation::modify_listener::ModifyListenerError::TooManyTargetsException(inner) => Error::TooManyTargetsException(inner),
crate::operation::modify_listener::ModifyListenerError::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => {
Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner)
}
crate::operation::modify_listener::ModifyListenerError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
crate::operation::modify_listener::ModifyListenerError::TrustStoreNotReadyException(inner) => Error::TrustStoreNotReadyException(inner),
crate::operation::modify_listener::ModifyListenerError::UnsupportedProtocolException(inner) => Error::UnsupportedProtocolException(inner),
crate::operation::modify_listener::ModifyListenerError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_listener_attributes::ModifyListenerAttributesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_listener_attributes::ModifyListenerAttributesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::modify_listener_attributes::ModifyListenerAttributesError> for Error {
fn from(err: crate::operation::modify_listener_attributes::ModifyListenerAttributesError) -> Self {
match err {
crate::operation::modify_listener_attributes::ModifyListenerAttributesError::InvalidConfigurationRequestException(inner) => {
Error::InvalidConfigurationRequestException(inner)
}
crate::operation::modify_listener_attributes::ModifyListenerAttributesError::ListenerNotFoundException(inner) => {
Error::ListenerNotFoundException(inner)
}
crate::operation::modify_listener_attributes::ModifyListenerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError> for Error {
fn from(err: crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError) -> Self {
match err {
crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError::InvalidConfigurationRequestException(inner) => {
Error::InvalidConfigurationRequestException(inner)
}
crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError::LoadBalancerNotFoundException(inner) => {
Error::LoadBalancerNotFoundException(inner)
}
crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_rule::ModifyRuleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_rule::ModifyRuleError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::modify_rule::ModifyRuleError> for Error {
fn from(err: crate::operation::modify_rule::ModifyRuleError) -> Self {
match err {
crate::operation::modify_rule::ModifyRuleError::IncompatibleProtocolsException(inner) => Error::IncompatibleProtocolsException(inner),
crate::operation::modify_rule::ModifyRuleError::InvalidLoadBalancerActionException(inner) => {
Error::InvalidLoadBalancerActionException(inner)
}
crate::operation::modify_rule::ModifyRuleError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
crate::operation::modify_rule::ModifyRuleError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
crate::operation::modify_rule::ModifyRuleError::TargetGroupAssociationLimitException(inner) => {
Error::TargetGroupAssociationLimitException(inner)
}
crate::operation::modify_rule::ModifyRuleError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
crate::operation::modify_rule::ModifyRuleError::TooManyActionsException(inner) => Error::TooManyActionsException(inner),
crate::operation::modify_rule::ModifyRuleError::TooManyRegistrationsForTargetIdException(inner) => {
Error::TooManyRegistrationsForTargetIdException(inner)
}
crate::operation::modify_rule::ModifyRuleError::TooManyTargetsException(inner) => Error::TooManyTargetsException(inner),
crate::operation::modify_rule::ModifyRuleError::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => {
Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner)
}
crate::operation::modify_rule::ModifyRuleError::UnsupportedProtocolException(inner) => Error::UnsupportedProtocolException(inner),
crate::operation::modify_rule::ModifyRuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_target_group::ModifyTargetGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_target_group::ModifyTargetGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::modify_target_group::ModifyTargetGroupError> for Error {
fn from(err: crate::operation::modify_target_group::ModifyTargetGroupError) -> Self {
match err {
crate::operation::modify_target_group::ModifyTargetGroupError::InvalidConfigurationRequestException(inner) => {
Error::InvalidConfigurationRequestException(inner)
}
crate::operation::modify_target_group::ModifyTargetGroupError::TargetGroupNotFoundException(inner) => {
Error::TargetGroupNotFoundException(inner)
}
crate::operation::modify_target_group::ModifyTargetGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError> for Error {
fn from(err: crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError) -> Self {
match err {
crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError::InvalidConfigurationRequestException(inner) => {
Error::InvalidConfigurationRequestException(inner)
}
crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError::TargetGroupNotFoundException(inner) => {
Error::TargetGroupNotFoundException(inner)
}
crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_trust_store::ModifyTrustStoreError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_trust_store::ModifyTrustStoreError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::modify_trust_store::ModifyTrustStoreError> for Error {
fn from(err: crate::operation::modify_trust_store::ModifyTrustStoreError) -> Self {
match err {
crate::operation::modify_trust_store::ModifyTrustStoreError::CaCertificatesBundleNotFoundException(inner) => {
Error::CaCertificatesBundleNotFoundException(inner)
}
crate::operation::modify_trust_store::ModifyTrustStoreError::InvalidCaCertificatesBundleException(inner) => {
Error::InvalidCaCertificatesBundleException(inner)
}
crate::operation::modify_trust_store::ModifyTrustStoreError::TrustStoreNotFoundException(inner) => {
Error::TrustStoreNotFoundException(inner)
}
crate::operation::modify_trust_store::ModifyTrustStoreError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_targets::RegisterTargetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_targets::RegisterTargetsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::register_targets::RegisterTargetsError> for Error {
fn from(err: crate::operation::register_targets::RegisterTargetsError) -> Self {
match err {
crate::operation::register_targets::RegisterTargetsError::InvalidTargetException(inner) => Error::InvalidTargetException(inner),
crate::operation::register_targets::RegisterTargetsError::TargetGroupNotFoundException(inner) => {
Error::TargetGroupNotFoundException(inner)
}
crate::operation::register_targets::RegisterTargetsError::TooManyRegistrationsForTargetIdException(inner) => {
Error::TooManyRegistrationsForTargetIdException(inner)
}
crate::operation::register_targets::RegisterTargetsError::TooManyTargetsException(inner) => Error::TooManyTargetsException(inner),
crate::operation::register_targets::RegisterTargetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_listener_certificates::RemoveListenerCertificatesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_listener_certificates::RemoveListenerCertificatesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::remove_listener_certificates::RemoveListenerCertificatesError> for Error {
fn from(err: crate::operation::remove_listener_certificates::RemoveListenerCertificatesError) -> Self {
match err {
crate::operation::remove_listener_certificates::RemoveListenerCertificatesError::ListenerNotFoundException(inner) => {
Error::ListenerNotFoundException(inner)
}
crate::operation::remove_listener_certificates::RemoveListenerCertificatesError::OperationNotPermittedException(inner) => {
Error::OperationNotPermittedException(inner)
}
crate::operation::remove_listener_certificates::RemoveListenerCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags::RemoveTagsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags::RemoveTagsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::remove_tags::RemoveTagsError> for Error {
fn from(err: crate::operation::remove_tags::RemoveTagsError) -> Self {
match err {
crate::operation::remove_tags::RemoveTagsError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
crate::operation::remove_tags::RemoveTagsError::LoadBalancerNotFoundException(inner) => Error::LoadBalancerNotFoundException(inner),
crate::operation::remove_tags::RemoveTagsError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
crate::operation::remove_tags::RemoveTagsError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
crate::operation::remove_tags::RemoveTagsError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
crate::operation::remove_tags::RemoveTagsError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
crate::operation::remove_tags::RemoveTagsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError> for Error {
fn from(err: crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError) -> Self {
match err {
crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError::RevocationIdNotFoundException(inner) => {
Error::RevocationIdNotFoundException(inner)
}
crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError::TrustStoreNotFoundException(inner) => {
Error::TrustStoreNotFoundException(inner)
}
crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_ip_address_type::SetIpAddressTypeError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_ip_address_type::SetIpAddressTypeError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::set_ip_address_type::SetIpAddressTypeError> for Error {
fn from(err: crate::operation::set_ip_address_type::SetIpAddressTypeError) -> Self {
match err {
crate::operation::set_ip_address_type::SetIpAddressTypeError::InvalidConfigurationRequestException(inner) => {
Error::InvalidConfigurationRequestException(inner)
}
crate::operation::set_ip_address_type::SetIpAddressTypeError::InvalidSubnetException(inner) => Error::InvalidSubnetException(inner),
crate::operation::set_ip_address_type::SetIpAddressTypeError::LoadBalancerNotFoundException(inner) => {
Error::LoadBalancerNotFoundException(inner)
}
crate::operation::set_ip_address_type::SetIpAddressTypeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_rule_priorities::SetRulePrioritiesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_rule_priorities::SetRulePrioritiesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::set_rule_priorities::SetRulePrioritiesError> for Error {
fn from(err: crate::operation::set_rule_priorities::SetRulePrioritiesError) -> Self {
match err {
crate::operation::set_rule_priorities::SetRulePrioritiesError::OperationNotPermittedException(inner) => {
Error::OperationNotPermittedException(inner)
}
crate::operation::set_rule_priorities::SetRulePrioritiesError::PriorityInUseException(inner) => Error::PriorityInUseException(inner),
crate::operation::set_rule_priorities::SetRulePrioritiesError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
crate::operation::set_rule_priorities::SetRulePrioritiesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_security_groups::SetSecurityGroupsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_security_groups::SetSecurityGroupsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::set_security_groups::SetSecurityGroupsError> for Error {
fn from(err: crate::operation::set_security_groups::SetSecurityGroupsError) -> Self {
match err {
crate::operation::set_security_groups::SetSecurityGroupsError::InvalidConfigurationRequestException(inner) => {
Error::InvalidConfigurationRequestException(inner)
}
crate::operation::set_security_groups::SetSecurityGroupsError::InvalidSecurityGroupException(inner) => {
Error::InvalidSecurityGroupException(inner)
}
crate::operation::set_security_groups::SetSecurityGroupsError::LoadBalancerNotFoundException(inner) => {
Error::LoadBalancerNotFoundException(inner)
}
crate::operation::set_security_groups::SetSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_subnets::SetSubnetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_subnets::SetSubnetsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::set_subnets::SetSubnetsError> for Error {
fn from(err: crate::operation::set_subnets::SetSubnetsError) -> Self {
match err {
crate::operation::set_subnets::SetSubnetsError::AllocationIdNotFoundException(inner) => Error::AllocationIdNotFoundException(inner),
crate::operation::set_subnets::SetSubnetsError::AvailabilityZoneNotSupportedException(inner) => {
Error::AvailabilityZoneNotSupportedException(inner)
}
crate::operation::set_subnets::SetSubnetsError::CapacityReservationPendingException(inner) => {
Error::CapacityReservationPendingException(inner)
}
crate::operation::set_subnets::SetSubnetsError::InvalidConfigurationRequestException(inner) => {
Error::InvalidConfigurationRequestException(inner)
}
crate::operation::set_subnets::SetSubnetsError::InvalidSubnetException(inner) => Error::InvalidSubnetException(inner),
crate::operation::set_subnets::SetSubnetsError::LoadBalancerNotFoundException(inner) => Error::LoadBalancerNotFoundException(inner),
crate::operation::set_subnets::SetSubnetsError::SubnetNotFoundException(inner) => Error::SubnetNotFoundException(inner),
crate::operation::set_subnets::SetSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
where
O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::std::default::Default::default(),
source: err.into(),
})
}
}
impl ::std::error::Error for Error {
fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
match self {
Error::AlpnPolicyNotSupportedException(inner) => inner.source(),
Error::AllocationIdNotFoundException(inner) => inner.source(),
Error::AvailabilityZoneNotSupportedException(inner) => inner.source(),
Error::CaCertificatesBundleNotFoundException(inner) => inner.source(),
Error::CapacityDecreaseRequestsLimitExceededException(inner) => inner.source(),
Error::CapacityReservationPendingException(inner) => inner.source(),
Error::CapacityUnitsLimitExceededException(inner) => inner.source(),
Error::CertificateNotFoundException(inner) => inner.source(),
Error::DeleteAssociationSameAccountException(inner) => inner.source(),
Error::DuplicateListenerException(inner) => inner.source(),
Error::DuplicateLoadBalancerNameException(inner) => inner.source(),
Error::DuplicateTagKeysException(inner) => inner.source(),
Error::DuplicateTargetGroupNameException(inner) => inner.source(),
Error::DuplicateTrustStoreNameException(inner) => inner.source(),
Error::HealthUnavailableException(inner) => inner.source(),
Error::IncompatibleProtocolsException(inner) => inner.source(),
Error::InsufficientCapacityException(inner) => inner.source(),
Error::InvalidCaCertificatesBundleException(inner) => inner.source(),
Error::InvalidConfigurationRequestException(inner) => inner.source(),
Error::InvalidLoadBalancerActionException(inner) => inner.source(),
Error::InvalidRevocationContentException(inner) => inner.source(),
Error::InvalidSchemeException(inner) => inner.source(),
Error::InvalidSecurityGroupException(inner) => inner.source(),
Error::InvalidSubnetException(inner) => inner.source(),
Error::InvalidTargetException(inner) => inner.source(),
Error::ListenerNotFoundException(inner) => inner.source(),
Error::LoadBalancerNotFoundException(inner) => inner.source(),
Error::OperationNotPermittedException(inner) => inner.source(),
Error::PriorRequestNotCompleteException(inner) => inner.source(),
Error::PriorityInUseException(inner) => inner.source(),
Error::ResourceInUseException(inner) => inner.source(),
Error::ResourceNotFoundException(inner) => inner.source(),
Error::RevocationContentNotFoundException(inner) => inner.source(),
Error::RevocationIdNotFoundException(inner) => inner.source(),
Error::RuleNotFoundException(inner) => inner.source(),
Error::SslPolicyNotFoundException(inner) => inner.source(),
Error::SubnetNotFoundException(inner) => inner.source(),
Error::TargetGroupAssociationLimitException(inner) => inner.source(),
Error::TargetGroupNotFoundException(inner) => inner.source(),
Error::TooManyActionsException(inner) => inner.source(),
Error::TooManyCertificatesException(inner) => inner.source(),
Error::TooManyListenersException(inner) => inner.source(),
Error::TooManyLoadBalancersException(inner) => inner.source(),
Error::TooManyRegistrationsForTargetIdException(inner) => inner.source(),
Error::TooManyRulesException(inner) => inner.source(),
Error::TooManyTagsException(inner) => inner.source(),
Error::TooManyTargetGroupsException(inner) => inner.source(),
Error::TooManyTargetsException(inner) => inner.source(),
Error::TooManyTrustStoreRevocationEntriesException(inner) => inner.source(),
Error::TooManyTrustStoresException(inner) => inner.source(),
Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => inner.source(),
Error::TrustStoreAssociationNotFoundException(inner) => inner.source(),
Error::TrustStoreInUseException(inner) => inner.source(),
Error::TrustStoreNotFoundException(inner) => inner.source(),
Error::TrustStoreNotReadyException(inner) => inner.source(),
Error::UnsupportedProtocolException(inner) => inner.source(),
Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
}
}
}
impl ::aws_types::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::AlpnPolicyNotSupportedException(e) => e.request_id(),
Self::AllocationIdNotFoundException(e) => e.request_id(),
Self::AvailabilityZoneNotSupportedException(e) => e.request_id(),
Self::CaCertificatesBundleNotFoundException(e) => e.request_id(),
Self::CapacityDecreaseRequestsLimitExceededException(e) => e.request_id(),
Self::CapacityReservationPendingException(e) => e.request_id(),
Self::CapacityUnitsLimitExceededException(e) => e.request_id(),
Self::CertificateNotFoundException(e) => e.request_id(),
Self::DeleteAssociationSameAccountException(e) => e.request_id(),
Self::DuplicateListenerException(e) => e.request_id(),
Self::DuplicateLoadBalancerNameException(e) => e.request_id(),
Self::DuplicateTagKeysException(e) => e.request_id(),
Self::DuplicateTargetGroupNameException(e) => e.request_id(),
Self::DuplicateTrustStoreNameException(e) => e.request_id(),
Self::HealthUnavailableException(e) => e.request_id(),
Self::IncompatibleProtocolsException(e) => e.request_id(),
Self::InsufficientCapacityException(e) => e.request_id(),
Self::InvalidCaCertificatesBundleException(e) => e.request_id(),
Self::InvalidConfigurationRequestException(e) => e.request_id(),
Self::InvalidLoadBalancerActionException(e) => e.request_id(),
Self::InvalidRevocationContentException(e) => e.request_id(),
Self::InvalidSchemeException(e) => e.request_id(),
Self::InvalidSecurityGroupException(e) => e.request_id(),
Self::InvalidSubnetException(e) => e.request_id(),
Self::InvalidTargetException(e) => e.request_id(),
Self::ListenerNotFoundException(e) => e.request_id(),
Self::LoadBalancerNotFoundException(e) => e.request_id(),
Self::OperationNotPermittedException(e) => e.request_id(),
Self::PriorRequestNotCompleteException(e) => e.request_id(),
Self::PriorityInUseException(e) => e.request_id(),
Self::ResourceInUseException(e) => e.request_id(),
Self::ResourceNotFoundException(e) => e.request_id(),
Self::RevocationContentNotFoundException(e) => e.request_id(),
Self::RevocationIdNotFoundException(e) => e.request_id(),
Self::RuleNotFoundException(e) => e.request_id(),
Self::SslPolicyNotFoundException(e) => e.request_id(),
Self::SubnetNotFoundException(e) => e.request_id(),
Self::TargetGroupAssociationLimitException(e) => e.request_id(),
Self::TargetGroupNotFoundException(e) => e.request_id(),
Self::TooManyActionsException(e) => e.request_id(),
Self::TooManyCertificatesException(e) => e.request_id(),
Self::TooManyListenersException(e) => e.request_id(),
Self::TooManyLoadBalancersException(e) => e.request_id(),
Self::TooManyRegistrationsForTargetIdException(e) => e.request_id(),
Self::TooManyRulesException(e) => e.request_id(),
Self::TooManyTagsException(e) => e.request_id(),
Self::TooManyTargetGroupsException(e) => e.request_id(),
Self::TooManyTargetsException(e) => e.request_id(),
Self::TooManyTrustStoreRevocationEntriesException(e) => e.request_id(),
Self::TooManyTrustStoresException(e) => e.request_id(),
Self::TooManyUniqueTargetGroupsPerLoadBalancerException(e) => e.request_id(),
Self::TrustStoreAssociationNotFoundException(e) => e.request_id(),
Self::TrustStoreInUseException(e) => e.request_id(),
Self::TrustStoreNotFoundException(e) => e.request_id(),
Self::TrustStoreNotReadyException(e) => e.request_id(),
Self::UnsupportedProtocolException(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}