// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// All possible error types for this service.
#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
/// <p>WAF couldn’t perform the operation because your resource is being used by another resource or it’s associated with another resource.</p>
WafAssociatedItemException(crate::types::error::WafAssociatedItemException),
/// <p>The operation failed because you are inspecting the web request body, headers, or cookies without specifying how to handle oversize components. Rules that inspect the body must either provide an <code>OversizeHandling</code> configuration or they must be preceded by a <code>SizeConstraintStatement</code> that blocks the body content from being too large. Rules that inspect the headers or cookies must provide an <code>OversizeHandling</code> configuration.</p>
/// <p>Provide the handling configuration and retry your operation.</p>
/// <p>Alternately, you can suppress this warning by adding the following tag to the resource that you provide to this operation: <code>Tag</code> (key:<code>WAF:OversizeFieldsHandlingConstraintOptOut</code>, value:<code>true</code>).</p>
WafConfigurationWarningException(crate::types::error::WafConfigurationWarningException),
/// <p>WAF couldn’t perform the operation because the resource that you tried to save is a duplicate of an existing one.</p>
WafDuplicateItemException(crate::types::error::WafDuplicateItemException),
/// <p>The operation failed because the specified version for the managed rule group has expired. You can retrieve the available versions for the managed rule group by calling <code>ListAvailableManagedRuleGroupVersions</code>.</p>
WafExpiredManagedRuleGroupVersionException(crate::types::error::WafExpiredManagedRuleGroupVersionException),
/// <p>The operation failed because the specified WAF feature isn't supported by the CloudFront pricing plan associated with the web ACL.</p>
WafFeatureNotIncludedInPricingPlanException(crate::types::error::WafFeatureNotIncludedInPricingPlanException),
/// <p>Your request is valid, but WAF couldn’t perform the operation because of a system problem. Retry your request.</p>
WafInternalErrorException(crate::types::error::WafInternalErrorException),
/// <p>The operation isn't valid.</p>
WafInvalidOperationException(crate::types::error::WafInvalidOperationException),
/// <p>The operation failed because WAF didn't recognize a parameter in the request. For example:</p>
/// <ul>
/// <li>
/// <p>You specified a parameter name or value that isn't valid.</p></li>
/// <li>
/// <p>Your nested statement isn't valid. You might have tried to nest a statement that can’t be nested.</p></li>
/// <li>
/// <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that isn't among the types available at <code>DefaultAction</code>.</p></li>
/// <li>
/// <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL can't be associated.</p></li>
/// </ul>
WafInvalidParameterException(crate::types::error::WafInvalidParameterException),
/// <p>The operation failed because the specified policy isn't in the proper format.</p>
/// <p>The policy specifications must conform to the following:</p>
/// <ul>
/// <li>
/// <p>The policy must be composed using IAM Policy version 2012-10-17.</p></li>
/// <li>
/// <p>The policy must include specifications for <code>Effect</code>, <code>Action</code>, and <code>Principal</code>.</p></li>
/// <li>
/// <p><code>Effect</code> must specify <code>Allow</code>.</p></li>
/// <li>
/// <p><code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and <code>wafv2:PutFirewallManagerRuleGroups</code> and may optionally specify <code>wafv2:GetRuleGroup</code>. WAF rejects any extra actions or wildcard actions in the policy.</p></li>
/// <li>
/// <p>The policy must not include a <code>Resource</code> parameter.</p></li>
/// </ul>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html">IAM Policies</a>.</p>
WafInvalidPermissionPolicyException(crate::types::error::WafInvalidPermissionPolicyException),
/// <p>WAF couldn’t perform the operation because the resource that you requested isn’t valid. Check the resource, and try again.</p>
WafInvalidResourceException(crate::types::error::WafInvalidResourceException),
/// <p>WAF couldn’t perform the operation because you exceeded your resource limit. For example, the maximum number of <code>WebACL</code> objects that you can create for an Amazon Web Services account. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the <i>WAF Developer Guide</i>.</p>
WafLimitsExceededException(crate::types::error::WafLimitsExceededException),
/// <p>The operation failed because you don't have the permissions that your logging configuration requires. For information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging web ACL traffic information</a> in the <i>WAF Developer Guide</i>.</p>
WafLogDestinationPermissionIssueException(crate::types::error::WafLogDestinationPermissionIssueException),
/// <p>WAF couldn’t perform the operation because your resource doesn't exist. If you've just created a resource that you're using in this operation, you might just need to wait a few minutes. It can take from a few seconds to a number of minutes for changes to propagate.</p>
WafNonexistentItemException(crate::types::error::WafNonexistentItemException),
/// <p>WAF couldn’t save your changes because you tried to update or delete a resource that has changed since you last retrieved it. Get the resource again, make any changes you need to make to the new copy, and retry your operation.</p>
WafOptimisticLockException(crate::types::error::WafOptimisticLockException),
/// <p>WAF is not able to access the service linked role. This can be caused by a previous <code>PutLoggingConfiguration</code> request, which can lock the service linked role for about 20 seconds. Please try your request again. The service linked role can also be locked by a previous <code>DeleteServiceLinkedRole</code> request, which can lock the role for 15 minutes or more. If you recently made a call to <code>DeleteServiceLinkedRole</code>, wait at least 15 minutes and try the request again. If you receive this same exception again, you will have to wait additional time until the role is unlocked.</p>
WafServiceLinkedRoleErrorException(crate::types::error::WafServiceLinkedRoleErrorException),
/// <p>You tried to use a managed rule group that's available by subscription, but you aren't subscribed to it yet.</p>
WafSubscriptionNotFoundException(crate::types::error::WafSubscriptionNotFoundException),
/// <p>An error occurred during the tagging operation. Retry your request.</p>
WafTagOperationException(crate::types::error::WafTagOperationException),
/// <p>WAF couldn’t perform your tagging operation because of an internal error. Retry your request.</p>
WafTagOperationInternalErrorException(crate::types::error::WafTagOperationInternalErrorException),
/// <p>WAF couldn’t retrieve a resource that you specified for this operation. If you've just created a resource that you're using in this operation, you might just need to wait a few minutes. It can take from a few seconds to a number of minutes for changes to propagate. Verify the resource specifications in your request parameters and then retry the operation.</p>
WafUnavailableEntityException(crate::types::error::WafUnavailableEntityException),
/// <p>The rule that you've named doesn't aggregate solely on the IP address or solely on the forwarded IP address. This call is only available for rate-based rules with an <code>AggregateKeyType</code> setting of <code>IP</code> or <code>FORWARDED_IP</code>.</p>
WafUnsupportedAggregateKeyTypeException(crate::types::error::WafUnsupportedAggregateKeyTypeException),
/// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
#[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::WafAssociatedItemException(inner) => inner.fmt(f),
Error::WafConfigurationWarningException(inner) => inner.fmt(f),
Error::WafDuplicateItemException(inner) => inner.fmt(f),
Error::WafExpiredManagedRuleGroupVersionException(inner) => inner.fmt(f),
Error::WafFeatureNotIncludedInPricingPlanException(inner) => inner.fmt(f),
Error::WafInternalErrorException(inner) => inner.fmt(f),
Error::WafInvalidOperationException(inner) => inner.fmt(f),
Error::WafInvalidParameterException(inner) => inner.fmt(f),
Error::WafInvalidPermissionPolicyException(inner) => inner.fmt(f),
Error::WafInvalidResourceException(inner) => inner.fmt(f),
Error::WafLimitsExceededException(inner) => inner.fmt(f),
Error::WafLogDestinationPermissionIssueException(inner) => inner.fmt(f),
Error::WafNonexistentItemException(inner) => inner.fmt(f),
Error::WafOptimisticLockException(inner) => inner.fmt(f),
Error::WafServiceLinkedRoleErrorException(inner) => inner.fmt(f),
Error::WafSubscriptionNotFoundException(inner) => inner.fmt(f),
Error::WafTagOperationException(inner) => inner.fmt(f),
Error::WafTagOperationInternalErrorException(inner) => inner.fmt(f),
Error::WafUnavailableEntityException(inner) => inner.fmt(f),
Error::WafUnsupportedAggregateKeyTypeException(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::WafAssociatedItemException(inner) => inner.meta(),
Self::WafConfigurationWarningException(inner) => inner.meta(),
Self::WafDuplicateItemException(inner) => inner.meta(),
Self::WafExpiredManagedRuleGroupVersionException(inner) => inner.meta(),
Self::WafFeatureNotIncludedInPricingPlanException(inner) => inner.meta(),
Self::WafInternalErrorException(inner) => inner.meta(),
Self::WafInvalidOperationException(inner) => inner.meta(),
Self::WafInvalidParameterException(inner) => inner.meta(),
Self::WafInvalidPermissionPolicyException(inner) => inner.meta(),
Self::WafInvalidResourceException(inner) => inner.meta(),
Self::WafLimitsExceededException(inner) => inner.meta(),
Self::WafLogDestinationPermissionIssueException(inner) => inner.meta(),
Self::WafNonexistentItemException(inner) => inner.meta(),
Self::WafOptimisticLockException(inner) => inner.meta(),
Self::WafServiceLinkedRoleErrorException(inner) => inner.meta(),
Self::WafSubscriptionNotFoundException(inner) => inner.meta(),
Self::WafTagOperationException(inner) => inner.meta(),
Self::WafTagOperationInternalErrorException(inner) => inner.meta(),
Self::WafUnavailableEntityException(inner) => inner.meta(),
Self::WafUnsupportedAggregateKeyTypeException(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_web_acl::AssociateWebACLError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_web_acl::AssociateWebACLError, 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::associate_web_acl::AssociateWebACLError> for Error {
fn from(err: crate::operation::associate_web_acl::AssociateWebACLError) -> Self {
match err {
crate::operation::associate_web_acl::AssociateWebACLError::WafFeatureNotIncludedInPricingPlanException(inner) => {
Error::WafFeatureNotIncludedInPricingPlanException(inner)
}
crate::operation::associate_web_acl::AssociateWebACLError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::associate_web_acl::AssociateWebACLError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::associate_web_acl::AssociateWebACLError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::associate_web_acl::AssociateWebACLError::WafLimitsExceededException(inner) => Error::WafLimitsExceededException(inner),
crate::operation::associate_web_acl::AssociateWebACLError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::associate_web_acl::AssociateWebACLError::WafUnavailableEntityException(inner) => {
Error::WafUnavailableEntityException(inner)
}
crate::operation::associate_web_acl::AssociateWebACLError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::check_capacity::CheckCapacityError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::check_capacity::CheckCapacityError, 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::check_capacity::CheckCapacityError> for Error {
fn from(err: crate::operation::check_capacity::CheckCapacityError) -> Self {
match err {
crate::operation::check_capacity::CheckCapacityError::WafExpiredManagedRuleGroupVersionException(inner) => {
Error::WafExpiredManagedRuleGroupVersionException(inner)
}
crate::operation::check_capacity::CheckCapacityError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::check_capacity::CheckCapacityError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::check_capacity::CheckCapacityError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::check_capacity::CheckCapacityError::WafInvalidResourceException(inner) => Error::WafInvalidResourceException(inner),
crate::operation::check_capacity::CheckCapacityError::WafLimitsExceededException(inner) => Error::WafLimitsExceededException(inner),
crate::operation::check_capacity::CheckCapacityError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::check_capacity::CheckCapacityError::WafSubscriptionNotFoundException(inner) => {
Error::WafSubscriptionNotFoundException(inner)
}
crate::operation::check_capacity::CheckCapacityError::WafUnavailableEntityException(inner) => Error::WafUnavailableEntityException(inner),
crate::operation::check_capacity::CheckCapacityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api_key::CreateAPIKeyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api_key::CreateAPIKeyError, 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_api_key::CreateAPIKeyError> for Error {
fn from(err: crate::operation::create_api_key::CreateAPIKeyError) -> Self {
match err {
crate::operation::create_api_key::CreateAPIKeyError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::create_api_key::CreateAPIKeyError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::create_api_key::CreateAPIKeyError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::create_api_key::CreateAPIKeyError::WafLimitsExceededException(inner) => Error::WafLimitsExceededException(inner),
crate::operation::create_api_key::CreateAPIKeyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ip_set::CreateIPSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ip_set::CreateIPSetError, 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_ip_set::CreateIPSetError> for Error {
fn from(err: crate::operation::create_ip_set::CreateIPSetError) -> Self {
match err {
crate::operation::create_ip_set::CreateIPSetError::WafDuplicateItemException(inner) => Error::WafDuplicateItemException(inner),
crate::operation::create_ip_set::CreateIPSetError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::create_ip_set::CreateIPSetError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::create_ip_set::CreateIPSetError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::create_ip_set::CreateIPSetError::WafLimitsExceededException(inner) => Error::WafLimitsExceededException(inner),
crate::operation::create_ip_set::CreateIPSetError::WafOptimisticLockException(inner) => Error::WafOptimisticLockException(inner),
crate::operation::create_ip_set::CreateIPSetError::WafTagOperationException(inner) => Error::WafTagOperationException(inner),
crate::operation::create_ip_set::CreateIPSetError::WafTagOperationInternalErrorException(inner) => {
Error::WafTagOperationInternalErrorException(inner)
}
crate::operation::create_ip_set::CreateIPSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_regex_pattern_set::CreateRegexPatternSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_regex_pattern_set::CreateRegexPatternSetError, 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_regex_pattern_set::CreateRegexPatternSetError> for Error {
fn from(err: crate::operation::create_regex_pattern_set::CreateRegexPatternSetError) -> Self {
match err {
crate::operation::create_regex_pattern_set::CreateRegexPatternSetError::WafDuplicateItemException(inner) => {
Error::WafDuplicateItemException(inner)
}
crate::operation::create_regex_pattern_set::CreateRegexPatternSetError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::create_regex_pattern_set::CreateRegexPatternSetError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::create_regex_pattern_set::CreateRegexPatternSetError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::create_regex_pattern_set::CreateRegexPatternSetError::WafLimitsExceededException(inner) => {
Error::WafLimitsExceededException(inner)
}
crate::operation::create_regex_pattern_set::CreateRegexPatternSetError::WafOptimisticLockException(inner) => {
Error::WafOptimisticLockException(inner)
}
crate::operation::create_regex_pattern_set::CreateRegexPatternSetError::WafTagOperationException(inner) => {
Error::WafTagOperationException(inner)
}
crate::operation::create_regex_pattern_set::CreateRegexPatternSetError::WafTagOperationInternalErrorException(inner) => {
Error::WafTagOperationInternalErrorException(inner)
}
crate::operation::create_regex_pattern_set::CreateRegexPatternSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_group::CreateRuleGroupError, 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_group::CreateRuleGroupError, 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_group::CreateRuleGroupError> for Error {
fn from(err: crate::operation::create_rule_group::CreateRuleGroupError) -> Self {
match err {
crate::operation::create_rule_group::CreateRuleGroupError::WafDuplicateItemException(inner) => Error::WafDuplicateItemException(inner),
crate::operation::create_rule_group::CreateRuleGroupError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::create_rule_group::CreateRuleGroupError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::create_rule_group::CreateRuleGroupError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::create_rule_group::CreateRuleGroupError::WafLimitsExceededException(inner) => Error::WafLimitsExceededException(inner),
crate::operation::create_rule_group::CreateRuleGroupError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::create_rule_group::CreateRuleGroupError::WafOptimisticLockException(inner) => Error::WafOptimisticLockException(inner),
crate::operation::create_rule_group::CreateRuleGroupError::WafSubscriptionNotFoundException(inner) => {
Error::WafSubscriptionNotFoundException(inner)
}
crate::operation::create_rule_group::CreateRuleGroupError::WafTagOperationException(inner) => Error::WafTagOperationException(inner),
crate::operation::create_rule_group::CreateRuleGroupError::WafTagOperationInternalErrorException(inner) => {
Error::WafTagOperationInternalErrorException(inner)
}
crate::operation::create_rule_group::CreateRuleGroupError::WafUnavailableEntityException(inner) => {
Error::WafUnavailableEntityException(inner)
}
crate::operation::create_rule_group::CreateRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_web_acl::CreateWebACLError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_web_acl::CreateWebACLError, 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_web_acl::CreateWebACLError> for Error {
fn from(err: crate::operation::create_web_acl::CreateWebACLError) -> Self {
match err {
crate::operation::create_web_acl::CreateWebACLError::WafConfigurationWarningException(inner) => {
Error::WafConfigurationWarningException(inner)
}
crate::operation::create_web_acl::CreateWebACLError::WafDuplicateItemException(inner) => Error::WafDuplicateItemException(inner),
crate::operation::create_web_acl::CreateWebACLError::WafExpiredManagedRuleGroupVersionException(inner) => {
Error::WafExpiredManagedRuleGroupVersionException(inner)
}
crate::operation::create_web_acl::CreateWebACLError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::create_web_acl::CreateWebACLError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::create_web_acl::CreateWebACLError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::create_web_acl::CreateWebACLError::WafInvalidResourceException(inner) => Error::WafInvalidResourceException(inner),
crate::operation::create_web_acl::CreateWebACLError::WafLimitsExceededException(inner) => Error::WafLimitsExceededException(inner),
crate::operation::create_web_acl::CreateWebACLError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::create_web_acl::CreateWebACLError::WafOptimisticLockException(inner) => Error::WafOptimisticLockException(inner),
crate::operation::create_web_acl::CreateWebACLError::WafSubscriptionNotFoundException(inner) => {
Error::WafSubscriptionNotFoundException(inner)
}
crate::operation::create_web_acl::CreateWebACLError::WafTagOperationException(inner) => Error::WafTagOperationException(inner),
crate::operation::create_web_acl::CreateWebACLError::WafTagOperationInternalErrorException(inner) => {
Error::WafTagOperationInternalErrorException(inner)
}
crate::operation::create_web_acl::CreateWebACLError::WafUnavailableEntityException(inner) => Error::WafUnavailableEntityException(inner),
crate::operation::create_web_acl::CreateWebACLError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api_key::DeleteAPIKeyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api_key::DeleteAPIKeyError, 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_api_key::DeleteAPIKeyError> for Error {
fn from(err: crate::operation::delete_api_key::DeleteAPIKeyError) -> Self {
match err {
crate::operation::delete_api_key::DeleteAPIKeyError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::delete_api_key::DeleteAPIKeyError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::delete_api_key::DeleteAPIKeyError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::delete_api_key::DeleteAPIKeyError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::delete_api_key::DeleteAPIKeyError::WafOptimisticLockException(inner) => Error::WafOptimisticLockException(inner),
crate::operation::delete_api_key::DeleteAPIKeyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_firewall_manager_rule_groups::DeleteFirewallManagerRuleGroupsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_firewall_manager_rule_groups::DeleteFirewallManagerRuleGroupsError,
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_firewall_manager_rule_groups::DeleteFirewallManagerRuleGroupsError> for Error {
fn from(err: crate::operation::delete_firewall_manager_rule_groups::DeleteFirewallManagerRuleGroupsError) -> Self {
match err {
crate::operation::delete_firewall_manager_rule_groups::DeleteFirewallManagerRuleGroupsError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::delete_firewall_manager_rule_groups::DeleteFirewallManagerRuleGroupsError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::delete_firewall_manager_rule_groups::DeleteFirewallManagerRuleGroupsError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::delete_firewall_manager_rule_groups::DeleteFirewallManagerRuleGroupsError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::delete_firewall_manager_rule_groups::DeleteFirewallManagerRuleGroupsError::WafOptimisticLockException(inner) => {
Error::WafOptimisticLockException(inner)
}
crate::operation::delete_firewall_manager_rule_groups::DeleteFirewallManagerRuleGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ip_set::DeleteIPSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ip_set::DeleteIPSetError, 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_ip_set::DeleteIPSetError> for Error {
fn from(err: crate::operation::delete_ip_set::DeleteIPSetError) -> Self {
match err {
crate::operation::delete_ip_set::DeleteIPSetError::WafAssociatedItemException(inner) => Error::WafAssociatedItemException(inner),
crate::operation::delete_ip_set::DeleteIPSetError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::delete_ip_set::DeleteIPSetError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::delete_ip_set::DeleteIPSetError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::delete_ip_set::DeleteIPSetError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::delete_ip_set::DeleteIPSetError::WafOptimisticLockException(inner) => Error::WafOptimisticLockException(inner),
crate::operation::delete_ip_set::DeleteIPSetError::WafTagOperationException(inner) => Error::WafTagOperationException(inner),
crate::operation::delete_ip_set::DeleteIPSetError::WafTagOperationInternalErrorException(inner) => {
Error::WafTagOperationInternalErrorException(inner)
}
crate::operation::delete_ip_set::DeleteIPSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError, 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_logging_configuration::DeleteLoggingConfigurationError> for Error {
fn from(err: crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError) -> Self {
match err {
crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::WafOptimisticLockException(inner) => {
Error::WafOptimisticLockException(inner)
}
crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_permission_policy::DeletePermissionPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_permission_policy::DeletePermissionPolicyError, 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_permission_policy::DeletePermissionPolicyError> for Error {
fn from(err: crate::operation::delete_permission_policy::DeletePermissionPolicyError) -> Self {
match err {
crate::operation::delete_permission_policy::DeletePermissionPolicyError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::delete_permission_policy::DeletePermissionPolicyError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::delete_permission_policy::DeletePermissionPolicyError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::delete_permission_policy::DeletePermissionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_regex_pattern_set::DeleteRegexPatternSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_regex_pattern_set::DeleteRegexPatternSetError, 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_regex_pattern_set::DeleteRegexPatternSetError> for Error {
fn from(err: crate::operation::delete_regex_pattern_set::DeleteRegexPatternSetError) -> Self {
match err {
crate::operation::delete_regex_pattern_set::DeleteRegexPatternSetError::WafAssociatedItemException(inner) => {
Error::WafAssociatedItemException(inner)
}
crate::operation::delete_regex_pattern_set::DeleteRegexPatternSetError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::delete_regex_pattern_set::DeleteRegexPatternSetError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::delete_regex_pattern_set::DeleteRegexPatternSetError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::delete_regex_pattern_set::DeleteRegexPatternSetError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::delete_regex_pattern_set::DeleteRegexPatternSetError::WafOptimisticLockException(inner) => {
Error::WafOptimisticLockException(inner)
}
crate::operation::delete_regex_pattern_set::DeleteRegexPatternSetError::WafTagOperationException(inner) => {
Error::WafTagOperationException(inner)
}
crate::operation::delete_regex_pattern_set::DeleteRegexPatternSetError::WafTagOperationInternalErrorException(inner) => {
Error::WafTagOperationInternalErrorException(inner)
}
crate::operation::delete_regex_pattern_set::DeleteRegexPatternSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_group::DeleteRuleGroupError, 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_group::DeleteRuleGroupError, 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_group::DeleteRuleGroupError> for Error {
fn from(err: crate::operation::delete_rule_group::DeleteRuleGroupError) -> Self {
match err {
crate::operation::delete_rule_group::DeleteRuleGroupError::WafAssociatedItemException(inner) => Error::WafAssociatedItemException(inner),
crate::operation::delete_rule_group::DeleteRuleGroupError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::delete_rule_group::DeleteRuleGroupError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::delete_rule_group::DeleteRuleGroupError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::delete_rule_group::DeleteRuleGroupError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::delete_rule_group::DeleteRuleGroupError::WafOptimisticLockException(inner) => Error::WafOptimisticLockException(inner),
crate::operation::delete_rule_group::DeleteRuleGroupError::WafTagOperationException(inner) => Error::WafTagOperationException(inner),
crate::operation::delete_rule_group::DeleteRuleGroupError::WafTagOperationInternalErrorException(inner) => {
Error::WafTagOperationInternalErrorException(inner)
}
crate::operation::delete_rule_group::DeleteRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_web_acl::DeleteWebACLError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_web_acl::DeleteWebACLError, 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_web_acl::DeleteWebACLError> for Error {
fn from(err: crate::operation::delete_web_acl::DeleteWebACLError) -> Self {
match err {
crate::operation::delete_web_acl::DeleteWebACLError::WafAssociatedItemException(inner) => Error::WafAssociatedItemException(inner),
crate::operation::delete_web_acl::DeleteWebACLError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::delete_web_acl::DeleteWebACLError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::delete_web_acl::DeleteWebACLError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::delete_web_acl::DeleteWebACLError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::delete_web_acl::DeleteWebACLError::WafOptimisticLockException(inner) => Error::WafOptimisticLockException(inner),
crate::operation::delete_web_acl::DeleteWebACLError::WafTagOperationException(inner) => Error::WafTagOperationException(inner),
crate::operation::delete_web_acl::DeleteWebACLError::WafTagOperationInternalErrorException(inner) => {
Error::WafTagOperationInternalErrorException(inner)
}
crate::operation::delete_web_acl::DeleteWebACLError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_all_managed_products::DescribeAllManagedProductsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_all_managed_products::DescribeAllManagedProductsError, 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_all_managed_products::DescribeAllManagedProductsError> for Error {
fn from(err: crate::operation::describe_all_managed_products::DescribeAllManagedProductsError) -> Self {
match err {
crate::operation::describe_all_managed_products::DescribeAllManagedProductsError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::describe_all_managed_products::DescribeAllManagedProductsError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::describe_all_managed_products::DescribeAllManagedProductsError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::describe_all_managed_products::DescribeAllManagedProductsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_managed_products_by_vendor::DescribeManagedProductsByVendorError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_managed_products_by_vendor::DescribeManagedProductsByVendorError,
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_managed_products_by_vendor::DescribeManagedProductsByVendorError> for Error {
fn from(err: crate::operation::describe_managed_products_by_vendor::DescribeManagedProductsByVendorError) -> Self {
match err {
crate::operation::describe_managed_products_by_vendor::DescribeManagedProductsByVendorError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::describe_managed_products_by_vendor::DescribeManagedProductsByVendorError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::describe_managed_products_by_vendor::DescribeManagedProductsByVendorError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::describe_managed_products_by_vendor::DescribeManagedProductsByVendorError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupError, 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_managed_rule_group::DescribeManagedRuleGroupError> for Error {
fn from(err: crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupError) -> Self {
match err {
crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupError::WafExpiredManagedRuleGroupVersionException(inner) => {
Error::WafExpiredManagedRuleGroupVersionException(inner)
}
crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupError::WafInvalidResourceException(inner) => {
Error::WafInvalidResourceException(inner)
}
crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_web_acl::DisassociateWebACLError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_web_acl::DisassociateWebACLError, 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::disassociate_web_acl::DisassociateWebACLError> for Error {
fn from(err: crate::operation::disassociate_web_acl::DisassociateWebACLError) -> Self {
match err {
crate::operation::disassociate_web_acl::DisassociateWebACLError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::disassociate_web_acl::DisassociateWebACLError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::disassociate_web_acl::DisassociateWebACLError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::disassociate_web_acl::DisassociateWebACLError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::disassociate_web_acl::DisassociateWebACLError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_mobile_sdk_release_url::GenerateMobileSdkReleaseUrlError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::generate_mobile_sdk_release_url::GenerateMobileSdkReleaseUrlError,
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::generate_mobile_sdk_release_url::GenerateMobileSdkReleaseUrlError> for Error {
fn from(err: crate::operation::generate_mobile_sdk_release_url::GenerateMobileSdkReleaseUrlError) -> Self {
match err {
crate::operation::generate_mobile_sdk_release_url::GenerateMobileSdkReleaseUrlError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::generate_mobile_sdk_release_url::GenerateMobileSdkReleaseUrlError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::generate_mobile_sdk_release_url::GenerateMobileSdkReleaseUrlError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::generate_mobile_sdk_release_url::GenerateMobileSdkReleaseUrlError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::generate_mobile_sdk_release_url::GenerateMobileSdkReleaseUrlError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_decrypted_api_key::GetDecryptedAPIKeyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_decrypted_api_key::GetDecryptedAPIKeyError, 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_decrypted_api_key::GetDecryptedAPIKeyError> for Error {
fn from(err: crate::operation::get_decrypted_api_key::GetDecryptedAPIKeyError) -> Self {
match err {
crate::operation::get_decrypted_api_key::GetDecryptedAPIKeyError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::get_decrypted_api_key::GetDecryptedAPIKeyError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::get_decrypted_api_key::GetDecryptedAPIKeyError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::get_decrypted_api_key::GetDecryptedAPIKeyError::WafInvalidResourceException(inner) => {
Error::WafInvalidResourceException(inner)
}
crate::operation::get_decrypted_api_key::GetDecryptedAPIKeyError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::get_decrypted_api_key::GetDecryptedAPIKeyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ip_set::GetIPSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ip_set::GetIPSetError, 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_ip_set::GetIPSetError> for Error {
fn from(err: crate::operation::get_ip_set::GetIPSetError) -> Self {
match err {
crate::operation::get_ip_set::GetIPSetError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::get_ip_set::GetIPSetError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::get_ip_set::GetIPSetError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::get_ip_set::GetIPSetError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::get_ip_set::GetIPSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_logging_configuration::GetLoggingConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_logging_configuration::GetLoggingConfigurationError, 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_logging_configuration::GetLoggingConfigurationError> for Error {
fn from(err: crate::operation::get_logging_configuration::GetLoggingConfigurationError) -> Self {
match err {
crate::operation::get_logging_configuration::GetLoggingConfigurationError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::get_logging_configuration::GetLoggingConfigurationError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::get_logging_configuration::GetLoggingConfigurationError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::get_logging_configuration::GetLoggingConfigurationError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::get_logging_configuration::GetLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_rule_set::GetManagedRuleSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_rule_set::GetManagedRuleSetError, 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_managed_rule_set::GetManagedRuleSetError> for Error {
fn from(err: crate::operation::get_managed_rule_set::GetManagedRuleSetError) -> Self {
match err {
crate::operation::get_managed_rule_set::GetManagedRuleSetError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::get_managed_rule_set::GetManagedRuleSetError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::get_managed_rule_set::GetManagedRuleSetError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::get_managed_rule_set::GetManagedRuleSetError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::get_managed_rule_set::GetManagedRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_mobile_sdk_release::GetMobileSdkReleaseError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_mobile_sdk_release::GetMobileSdkReleaseError, 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_mobile_sdk_release::GetMobileSdkReleaseError> for Error {
fn from(err: crate::operation::get_mobile_sdk_release::GetMobileSdkReleaseError) -> Self {
match err {
crate::operation::get_mobile_sdk_release::GetMobileSdkReleaseError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::get_mobile_sdk_release::GetMobileSdkReleaseError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::get_mobile_sdk_release::GetMobileSdkReleaseError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::get_mobile_sdk_release::GetMobileSdkReleaseError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::get_mobile_sdk_release::GetMobileSdkReleaseError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_permission_policy::GetPermissionPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_permission_policy::GetPermissionPolicyError, 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_permission_policy::GetPermissionPolicyError> for Error {
fn from(err: crate::operation::get_permission_policy::GetPermissionPolicyError) -> Self {
match err {
crate::operation::get_permission_policy::GetPermissionPolicyError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::get_permission_policy::GetPermissionPolicyError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::get_permission_policy::GetPermissionPolicyError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::get_permission_policy::GetPermissionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_rate_based_statement_managed_keys::GetRateBasedStatementManagedKeysError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_rate_based_statement_managed_keys::GetRateBasedStatementManagedKeysError,
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_rate_based_statement_managed_keys::GetRateBasedStatementManagedKeysError> for Error {
fn from(err: crate::operation::get_rate_based_statement_managed_keys::GetRateBasedStatementManagedKeysError) -> Self {
match err {
crate::operation::get_rate_based_statement_managed_keys::GetRateBasedStatementManagedKeysError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::get_rate_based_statement_managed_keys::GetRateBasedStatementManagedKeysError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::get_rate_based_statement_managed_keys::GetRateBasedStatementManagedKeysError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::get_rate_based_statement_managed_keys::GetRateBasedStatementManagedKeysError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::get_rate_based_statement_managed_keys::GetRateBasedStatementManagedKeysError::WafUnsupportedAggregateKeyTypeException(inner) => Error::WafUnsupportedAggregateKeyTypeException(inner),
crate::operation::get_rate_based_statement_managed_keys::GetRateBasedStatementManagedKeysError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_regex_pattern_set::GetRegexPatternSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_regex_pattern_set::GetRegexPatternSetError, 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_regex_pattern_set::GetRegexPatternSetError> for Error {
fn from(err: crate::operation::get_regex_pattern_set::GetRegexPatternSetError) -> Self {
match err {
crate::operation::get_regex_pattern_set::GetRegexPatternSetError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::get_regex_pattern_set::GetRegexPatternSetError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::get_regex_pattern_set::GetRegexPatternSetError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::get_regex_pattern_set::GetRegexPatternSetError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::get_regex_pattern_set::GetRegexPatternSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_revenue_statistics::GetRevenueStatisticsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_revenue_statistics::GetRevenueStatisticsError, 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_revenue_statistics::GetRevenueStatisticsError> for Error {
fn from(err: crate::operation::get_revenue_statistics::GetRevenueStatisticsError) -> Self {
match err {
crate::operation::get_revenue_statistics::GetRevenueStatisticsError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::get_revenue_statistics::GetRevenueStatisticsError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::get_revenue_statistics::GetRevenueStatisticsError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::get_revenue_statistics::GetRevenueStatisticsError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::get_revenue_statistics::GetRevenueStatisticsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_revenue_statistics_summary::GetRevenueStatisticsSummaryError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_revenue_statistics_summary::GetRevenueStatisticsSummaryError,
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_revenue_statistics_summary::GetRevenueStatisticsSummaryError> for Error {
fn from(err: crate::operation::get_revenue_statistics_summary::GetRevenueStatisticsSummaryError) -> Self {
match err {
crate::operation::get_revenue_statistics_summary::GetRevenueStatisticsSummaryError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::get_revenue_statistics_summary::GetRevenueStatisticsSummaryError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::get_revenue_statistics_summary::GetRevenueStatisticsSummaryError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::get_revenue_statistics_summary::GetRevenueStatisticsSummaryError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::get_revenue_statistics_summary::GetRevenueStatisticsSummaryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_revenue_statistics_time_series::GetRevenueStatisticsTimeSeriesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_revenue_statistics_time_series::GetRevenueStatisticsTimeSeriesError,
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_revenue_statistics_time_series::GetRevenueStatisticsTimeSeriesError> for Error {
fn from(err: crate::operation::get_revenue_statistics_time_series::GetRevenueStatisticsTimeSeriesError) -> Self {
match err {
crate::operation::get_revenue_statistics_time_series::GetRevenueStatisticsTimeSeriesError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::get_revenue_statistics_time_series::GetRevenueStatisticsTimeSeriesError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::get_revenue_statistics_time_series::GetRevenueStatisticsTimeSeriesError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::get_revenue_statistics_time_series::GetRevenueStatisticsTimeSeriesError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::get_revenue_statistics_time_series::GetRevenueStatisticsTimeSeriesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_rule_group::GetRuleGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_rule_group::GetRuleGroupError, 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_rule_group::GetRuleGroupError> for Error {
fn from(err: crate::operation::get_rule_group::GetRuleGroupError) -> Self {
match err {
crate::operation::get_rule_group::GetRuleGroupError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::get_rule_group::GetRuleGroupError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::get_rule_group::GetRuleGroupError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::get_rule_group::GetRuleGroupError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::get_rule_group::GetRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sampled_requests::GetSampledRequestsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sampled_requests::GetSampledRequestsError, 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_sampled_requests::GetSampledRequestsError> for Error {
fn from(err: crate::operation::get_sampled_requests::GetSampledRequestsError) -> Self {
match err {
crate::operation::get_sampled_requests::GetSampledRequestsError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::get_sampled_requests::GetSampledRequestsError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::get_sampled_requests::GetSampledRequestsError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::get_sampled_requests::GetSampledRequestsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_top_path_statistics_by_traffic::GetTopPathStatisticsByTrafficError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_top_path_statistics_by_traffic::GetTopPathStatisticsByTrafficError,
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_top_path_statistics_by_traffic::GetTopPathStatisticsByTrafficError> for Error {
fn from(err: crate::operation::get_top_path_statistics_by_traffic::GetTopPathStatisticsByTrafficError) -> Self {
match err {
crate::operation::get_top_path_statistics_by_traffic::GetTopPathStatisticsByTrafficError::WafFeatureNotIncludedInPricingPlanException(
inner,
) => Error::WafFeatureNotIncludedInPricingPlanException(inner),
crate::operation::get_top_path_statistics_by_traffic::GetTopPathStatisticsByTrafficError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::get_top_path_statistics_by_traffic::GetTopPathStatisticsByTrafficError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::get_top_path_statistics_by_traffic::GetTopPathStatisticsByTrafficError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::get_top_path_statistics_by_traffic::GetTopPathStatisticsByTrafficError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::get_top_path_statistics_by_traffic::GetTopPathStatisticsByTrafficError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_web_acl::GetWebACLError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_web_acl::GetWebACLError, 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_web_acl::GetWebACLError> for Error {
fn from(err: crate::operation::get_web_acl::GetWebACLError) -> Self {
match err {
crate::operation::get_web_acl::GetWebACLError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::get_web_acl::GetWebACLError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::get_web_acl::GetWebACLError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::get_web_acl::GetWebACLError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::get_web_acl::GetWebACLError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_web_acl_for_resource::GetWebACLForResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_web_acl_for_resource::GetWebACLForResourceError, 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_web_acl_for_resource::GetWebACLForResourceError> for Error {
fn from(err: crate::operation::get_web_acl_for_resource::GetWebACLForResourceError) -> Self {
match err {
crate::operation::get_web_acl_for_resource::GetWebACLForResourceError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::get_web_acl_for_resource::GetWebACLForResourceError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::get_web_acl_for_resource::GetWebACLForResourceError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::get_web_acl_for_resource::GetWebACLForResourceError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::get_web_acl_for_resource::GetWebACLForResourceError::WafUnavailableEntityException(inner) => {
Error::WafUnavailableEntityException(inner)
}
crate::operation::get_web_acl_for_resource::GetWebACLForResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_api_keys::ListAPIKeysError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_api_keys::ListAPIKeysError, 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::list_api_keys::ListAPIKeysError> for Error {
fn from(err: crate::operation::list_api_keys::ListAPIKeysError) -> Self {
match err {
crate::operation::list_api_keys::ListAPIKeysError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::list_api_keys::ListAPIKeysError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::list_api_keys::ListAPIKeysError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::list_api_keys::ListAPIKeysError::WafInvalidResourceException(inner) => Error::WafInvalidResourceException(inner),
crate::operation::list_api_keys::ListAPIKeysError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_available_managed_rule_groups::ListAvailableManagedRuleGroupsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_available_managed_rule_groups::ListAvailableManagedRuleGroupsError,
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::list_available_managed_rule_groups::ListAvailableManagedRuleGroupsError> for Error {
fn from(err: crate::operation::list_available_managed_rule_groups::ListAvailableManagedRuleGroupsError) -> Self {
match err {
crate::operation::list_available_managed_rule_groups::ListAvailableManagedRuleGroupsError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::list_available_managed_rule_groups::ListAvailableManagedRuleGroupsError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::list_available_managed_rule_groups::ListAvailableManagedRuleGroupsError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::list_available_managed_rule_groups::ListAvailableManagedRuleGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_available_managed_rule_group_versions::ListAvailableManagedRuleGroupVersionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_available_managed_rule_group_versions::ListAvailableManagedRuleGroupVersionsError,
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::list_available_managed_rule_group_versions::ListAvailableManagedRuleGroupVersionsError> for Error {
fn from(err: crate::operation::list_available_managed_rule_group_versions::ListAvailableManagedRuleGroupVersionsError) -> Self {
match err {
crate::operation::list_available_managed_rule_group_versions::ListAvailableManagedRuleGroupVersionsError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::list_available_managed_rule_group_versions::ListAvailableManagedRuleGroupVersionsError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::list_available_managed_rule_group_versions::ListAvailableManagedRuleGroupVersionsError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::list_available_managed_rule_group_versions::ListAvailableManagedRuleGroupVersionsError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::list_available_managed_rule_group_versions::ListAvailableManagedRuleGroupVersionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ip_sets::ListIPSetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ip_sets::ListIPSetsError, 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::list_ip_sets::ListIPSetsError> for Error {
fn from(err: crate::operation::list_ip_sets::ListIPSetsError) -> Self {
match err {
crate::operation::list_ip_sets::ListIPSetsError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::list_ip_sets::ListIPSetsError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::list_ip_sets::ListIPSetsError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::list_ip_sets::ListIPSetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_logging_configurations::ListLoggingConfigurationsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_logging_configurations::ListLoggingConfigurationsError, 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::list_logging_configurations::ListLoggingConfigurationsError> for Error {
fn from(err: crate::operation::list_logging_configurations::ListLoggingConfigurationsError) -> Self {
match err {
crate::operation::list_logging_configurations::ListLoggingConfigurationsError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::list_logging_configurations::ListLoggingConfigurationsError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::list_logging_configurations::ListLoggingConfigurationsError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::list_logging_configurations::ListLoggingConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_rule_sets::ListManagedRuleSetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_rule_sets::ListManagedRuleSetsError, 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::list_managed_rule_sets::ListManagedRuleSetsError> for Error {
fn from(err: crate::operation::list_managed_rule_sets::ListManagedRuleSetsError) -> Self {
match err {
crate::operation::list_managed_rule_sets::ListManagedRuleSetsError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::list_managed_rule_sets::ListManagedRuleSetsError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::list_managed_rule_sets::ListManagedRuleSetsError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::list_managed_rule_sets::ListManagedRuleSetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mobile_sdk_releases::ListMobileSdkReleasesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mobile_sdk_releases::ListMobileSdkReleasesError, 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::list_mobile_sdk_releases::ListMobileSdkReleasesError> for Error {
fn from(err: crate::operation::list_mobile_sdk_releases::ListMobileSdkReleasesError) -> Self {
match err {
crate::operation::list_mobile_sdk_releases::ListMobileSdkReleasesError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::list_mobile_sdk_releases::ListMobileSdkReleasesError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::list_mobile_sdk_releases::ListMobileSdkReleasesError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::list_mobile_sdk_releases::ListMobileSdkReleasesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_regex_pattern_sets::ListRegexPatternSetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_regex_pattern_sets::ListRegexPatternSetsError, 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::list_regex_pattern_sets::ListRegexPatternSetsError> for Error {
fn from(err: crate::operation::list_regex_pattern_sets::ListRegexPatternSetsError) -> Self {
match err {
crate::operation::list_regex_pattern_sets::ListRegexPatternSetsError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::list_regex_pattern_sets::ListRegexPatternSetsError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::list_regex_pattern_sets::ListRegexPatternSetsError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::list_regex_pattern_sets::ListRegexPatternSetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resources_for_web_acl::ListResourcesForWebACLError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resources_for_web_acl::ListResourcesForWebACLError, 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::list_resources_for_web_acl::ListResourcesForWebACLError> for Error {
fn from(err: crate::operation::list_resources_for_web_acl::ListResourcesForWebACLError) -> Self {
match err {
crate::operation::list_resources_for_web_acl::ListResourcesForWebACLError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::list_resources_for_web_acl::ListResourcesForWebACLError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::list_resources_for_web_acl::ListResourcesForWebACLError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::list_resources_for_web_acl::ListResourcesForWebACLError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::list_resources_for_web_acl::ListResourcesForWebACLError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups::ListRuleGroupsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups::ListRuleGroupsError, 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::list_rule_groups::ListRuleGroupsError> for Error {
fn from(err: crate::operation::list_rule_groups::ListRuleGroupsError) -> Self {
match err {
crate::operation::list_rule_groups::ListRuleGroupsError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::list_rule_groups::ListRuleGroupsError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::list_rule_groups::ListRuleGroupsError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::list_rule_groups::ListRuleGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_settlement_records::ListSettlementRecordsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_settlement_records::ListSettlementRecordsError, 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::list_settlement_records::ListSettlementRecordsError> for Error {
fn from(err: crate::operation::list_settlement_records::ListSettlementRecordsError) -> Self {
match err {
crate::operation::list_settlement_records::ListSettlementRecordsError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::list_settlement_records::ListSettlementRecordsError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::list_settlement_records::ListSettlementRecordsError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::list_settlement_records::ListSettlementRecordsError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::list_settlement_records::ListSettlementRecordsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, 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::list_tags_for_resource::ListTagsForResourceError> for Error {
fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
match err {
crate::operation::list_tags_for_resource::ListTagsForResourceError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::WafTagOperationException(inner) => {
Error::WafTagOperationException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::WafTagOperationInternalErrorException(inner) => {
Error::WafTagOperationInternalErrorException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_web_acls::ListWebACLsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_web_acls::ListWebACLsError, 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::list_web_acls::ListWebACLsError> for Error {
fn from(err: crate::operation::list_web_acls::ListWebACLsError) -> Self {
match err {
crate::operation::list_web_acls::ListWebACLsError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::list_web_acls::ListWebACLsError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::list_web_acls::ListWebACLsError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::list_web_acls::ListWebACLsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_logging_configuration::PutLoggingConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_logging_configuration::PutLoggingConfigurationError, 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::put_logging_configuration::PutLoggingConfigurationError> for Error {
fn from(err: crate::operation::put_logging_configuration::PutLoggingConfigurationError) -> Self {
match err {
crate::operation::put_logging_configuration::PutLoggingConfigurationError::WafFeatureNotIncludedInPricingPlanException(inner) => {
Error::WafFeatureNotIncludedInPricingPlanException(inner)
}
crate::operation::put_logging_configuration::PutLoggingConfigurationError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::put_logging_configuration::PutLoggingConfigurationError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::put_logging_configuration::PutLoggingConfigurationError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::put_logging_configuration::PutLoggingConfigurationError::WafLimitsExceededException(inner) => {
Error::WafLimitsExceededException(inner)
}
crate::operation::put_logging_configuration::PutLoggingConfigurationError::WafLogDestinationPermissionIssueException(inner) => {
Error::WafLogDestinationPermissionIssueException(inner)
}
crate::operation::put_logging_configuration::PutLoggingConfigurationError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::put_logging_configuration::PutLoggingConfigurationError::WafOptimisticLockException(inner) => {
Error::WafOptimisticLockException(inner)
}
crate::operation::put_logging_configuration::PutLoggingConfigurationError::WafServiceLinkedRoleErrorException(inner) => {
Error::WafServiceLinkedRoleErrorException(inner)
}
crate::operation::put_logging_configuration::PutLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_managed_rule_set_versions::PutManagedRuleSetVersionsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_managed_rule_set_versions::PutManagedRuleSetVersionsError, 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::put_managed_rule_set_versions::PutManagedRuleSetVersionsError> for Error {
fn from(err: crate::operation::put_managed_rule_set_versions::PutManagedRuleSetVersionsError) -> Self {
match err {
crate::operation::put_managed_rule_set_versions::PutManagedRuleSetVersionsError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::put_managed_rule_set_versions::PutManagedRuleSetVersionsError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::put_managed_rule_set_versions::PutManagedRuleSetVersionsError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::put_managed_rule_set_versions::PutManagedRuleSetVersionsError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::put_managed_rule_set_versions::PutManagedRuleSetVersionsError::WafOptimisticLockException(inner) => {
Error::WafOptimisticLockException(inner)
}
crate::operation::put_managed_rule_set_versions::PutManagedRuleSetVersionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_permission_policy::PutPermissionPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_permission_policy::PutPermissionPolicyError, 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::put_permission_policy::PutPermissionPolicyError> for Error {
fn from(err: crate::operation::put_permission_policy::PutPermissionPolicyError) -> Self {
match err {
crate::operation::put_permission_policy::PutPermissionPolicyError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::put_permission_policy::PutPermissionPolicyError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::put_permission_policy::PutPermissionPolicyError::WafInvalidPermissionPolicyException(inner) => {
Error::WafInvalidPermissionPolicyException(inner)
}
crate::operation::put_permission_policy::PutPermissionPolicyError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::put_permission_policy::PutPermissionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, 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::tag_resource::TagResourceError> for Error {
fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
match err {
crate::operation::tag_resource::TagResourceError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::tag_resource::TagResourceError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::tag_resource::TagResourceError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::tag_resource::TagResourceError::WafLimitsExceededException(inner) => Error::WafLimitsExceededException(inner),
crate::operation::tag_resource::TagResourceError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::tag_resource::TagResourceError::WafTagOperationException(inner) => Error::WafTagOperationException(inner),
crate::operation::tag_resource::TagResourceError::WafTagOperationInternalErrorException(inner) => {
Error::WafTagOperationInternalErrorException(inner)
}
crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, 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::untag_resource::UntagResourceError> for Error {
fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
match err {
crate::operation::untag_resource::UntagResourceError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::untag_resource::UntagResourceError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::untag_resource::UntagResourceError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::untag_resource::UntagResourceError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::untag_resource::UntagResourceError::WafTagOperationException(inner) => Error::WafTagOperationException(inner),
crate::operation::untag_resource::UntagResourceError::WafTagOperationInternalErrorException(inner) => {
Error::WafTagOperationInternalErrorException(inner)
}
crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ip_set::UpdateIPSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ip_set::UpdateIPSetError, 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::update_ip_set::UpdateIPSetError> for Error {
fn from(err: crate::operation::update_ip_set::UpdateIPSetError) -> Self {
match err {
crate::operation::update_ip_set::UpdateIPSetError::WafDuplicateItemException(inner) => Error::WafDuplicateItemException(inner),
crate::operation::update_ip_set::UpdateIPSetError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::update_ip_set::UpdateIPSetError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::update_ip_set::UpdateIPSetError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::update_ip_set::UpdateIPSetError::WafLimitsExceededException(inner) => Error::WafLimitsExceededException(inner),
crate::operation::update_ip_set::UpdateIPSetError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::update_ip_set::UpdateIPSetError::WafOptimisticLockException(inner) => Error::WafOptimisticLockException(inner),
crate::operation::update_ip_set::UpdateIPSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_managed_rule_set_version_expiry_date::UpdateManagedRuleSetVersionExpiryDateError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_managed_rule_set_version_expiry_date::UpdateManagedRuleSetVersionExpiryDateError,
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::update_managed_rule_set_version_expiry_date::UpdateManagedRuleSetVersionExpiryDateError> for Error {
fn from(err: crate::operation::update_managed_rule_set_version_expiry_date::UpdateManagedRuleSetVersionExpiryDateError) -> Self {
match err {
crate::operation::update_managed_rule_set_version_expiry_date::UpdateManagedRuleSetVersionExpiryDateError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::update_managed_rule_set_version_expiry_date::UpdateManagedRuleSetVersionExpiryDateError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::update_managed_rule_set_version_expiry_date::UpdateManagedRuleSetVersionExpiryDateError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::update_managed_rule_set_version_expiry_date::UpdateManagedRuleSetVersionExpiryDateError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::update_managed_rule_set_version_expiry_date::UpdateManagedRuleSetVersionExpiryDateError::WafOptimisticLockException(inner) => Error::WafOptimisticLockException(inner),
crate::operation::update_managed_rule_set_version_expiry_date::UpdateManagedRuleSetVersionExpiryDateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError, 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::update_regex_pattern_set::UpdateRegexPatternSetError> for Error {
fn from(err: crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError) -> Self {
match err {
crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError::WafDuplicateItemException(inner) => {
Error::WafDuplicateItemException(inner)
}
crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError::WafInternalErrorException(inner) => {
Error::WafInternalErrorException(inner)
}
crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError::WafLimitsExceededException(inner) => {
Error::WafLimitsExceededException(inner)
}
crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError::WafOptimisticLockException(inner) => {
Error::WafOptimisticLockException(inner)
}
crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_group::UpdateRuleGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_group::UpdateRuleGroupError, 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::update_rule_group::UpdateRuleGroupError> for Error {
fn from(err: crate::operation::update_rule_group::UpdateRuleGroupError) -> Self {
match err {
crate::operation::update_rule_group::UpdateRuleGroupError::WafConfigurationWarningException(inner) => {
Error::WafConfigurationWarningException(inner)
}
crate::operation::update_rule_group::UpdateRuleGroupError::WafDuplicateItemException(inner) => Error::WafDuplicateItemException(inner),
crate::operation::update_rule_group::UpdateRuleGroupError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::update_rule_group::UpdateRuleGroupError::WafInvalidOperationException(inner) => {
Error::WafInvalidOperationException(inner)
}
crate::operation::update_rule_group::UpdateRuleGroupError::WafInvalidParameterException(inner) => {
Error::WafInvalidParameterException(inner)
}
crate::operation::update_rule_group::UpdateRuleGroupError::WafLimitsExceededException(inner) => Error::WafLimitsExceededException(inner),
crate::operation::update_rule_group::UpdateRuleGroupError::WafNonexistentItemException(inner) => {
Error::WafNonexistentItemException(inner)
}
crate::operation::update_rule_group::UpdateRuleGroupError::WafOptimisticLockException(inner) => Error::WafOptimisticLockException(inner),
crate::operation::update_rule_group::UpdateRuleGroupError::WafSubscriptionNotFoundException(inner) => {
Error::WafSubscriptionNotFoundException(inner)
}
crate::operation::update_rule_group::UpdateRuleGroupError::WafUnavailableEntityException(inner) => {
Error::WafUnavailableEntityException(inner)
}
crate::operation::update_rule_group::UpdateRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_web_acl::UpdateWebACLError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_web_acl::UpdateWebACLError, 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::update_web_acl::UpdateWebACLError> for Error {
fn from(err: crate::operation::update_web_acl::UpdateWebACLError) -> Self {
match err {
crate::operation::update_web_acl::UpdateWebACLError::WafConfigurationWarningException(inner) => {
Error::WafConfigurationWarningException(inner)
}
crate::operation::update_web_acl::UpdateWebACLError::WafDuplicateItemException(inner) => Error::WafDuplicateItemException(inner),
crate::operation::update_web_acl::UpdateWebACLError::WafExpiredManagedRuleGroupVersionException(inner) => {
Error::WafExpiredManagedRuleGroupVersionException(inner)
}
crate::operation::update_web_acl::UpdateWebACLError::WafFeatureNotIncludedInPricingPlanException(inner) => {
Error::WafFeatureNotIncludedInPricingPlanException(inner)
}
crate::operation::update_web_acl::UpdateWebACLError::WafInternalErrorException(inner) => Error::WafInternalErrorException(inner),
crate::operation::update_web_acl::UpdateWebACLError::WafInvalidOperationException(inner) => Error::WafInvalidOperationException(inner),
crate::operation::update_web_acl::UpdateWebACLError::WafInvalidParameterException(inner) => Error::WafInvalidParameterException(inner),
crate::operation::update_web_acl::UpdateWebACLError::WafInvalidResourceException(inner) => Error::WafInvalidResourceException(inner),
crate::operation::update_web_acl::UpdateWebACLError::WafLimitsExceededException(inner) => Error::WafLimitsExceededException(inner),
crate::operation::update_web_acl::UpdateWebACLError::WafNonexistentItemException(inner) => Error::WafNonexistentItemException(inner),
crate::operation::update_web_acl::UpdateWebACLError::WafOptimisticLockException(inner) => Error::WafOptimisticLockException(inner),
crate::operation::update_web_acl::UpdateWebACLError::WafSubscriptionNotFoundException(inner) => {
Error::WafSubscriptionNotFoundException(inner)
}
crate::operation::update_web_acl::UpdateWebACLError::WafUnavailableEntityException(inner) => Error::WafUnavailableEntityException(inner),
crate::operation::update_web_acl::UpdateWebACLError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl ::std::error::Error for Error {
fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
match self {
Error::WafAssociatedItemException(inner) => inner.source(),
Error::WafConfigurationWarningException(inner) => inner.source(),
Error::WafDuplicateItemException(inner) => inner.source(),
Error::WafExpiredManagedRuleGroupVersionException(inner) => inner.source(),
Error::WafFeatureNotIncludedInPricingPlanException(inner) => inner.source(),
Error::WafInternalErrorException(inner) => inner.source(),
Error::WafInvalidOperationException(inner) => inner.source(),
Error::WafInvalidParameterException(inner) => inner.source(),
Error::WafInvalidPermissionPolicyException(inner) => inner.source(),
Error::WafInvalidResourceException(inner) => inner.source(),
Error::WafLimitsExceededException(inner) => inner.source(),
Error::WafLogDestinationPermissionIssueException(inner) => inner.source(),
Error::WafNonexistentItemException(inner) => inner.source(),
Error::WafOptimisticLockException(inner) => inner.source(),
Error::WafServiceLinkedRoleErrorException(inner) => inner.source(),
Error::WafSubscriptionNotFoundException(inner) => inner.source(),
Error::WafTagOperationException(inner) => inner.source(),
Error::WafTagOperationInternalErrorException(inner) => inner.source(),
Error::WafUnavailableEntityException(inner) => inner.source(),
Error::WafUnsupportedAggregateKeyTypeException(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::WafAssociatedItemException(e) => e.request_id(),
Self::WafConfigurationWarningException(e) => e.request_id(),
Self::WafDuplicateItemException(e) => e.request_id(),
Self::WafExpiredManagedRuleGroupVersionException(e) => e.request_id(),
Self::WafFeatureNotIncludedInPricingPlanException(e) => e.request_id(),
Self::WafInternalErrorException(e) => e.request_id(),
Self::WafInvalidOperationException(e) => e.request_id(),
Self::WafInvalidParameterException(e) => e.request_id(),
Self::WafInvalidPermissionPolicyException(e) => e.request_id(),
Self::WafInvalidResourceException(e) => e.request_id(),
Self::WafLimitsExceededException(e) => e.request_id(),
Self::WafLogDestinationPermissionIssueException(e) => e.request_id(),
Self::WafNonexistentItemException(e) => e.request_id(),
Self::WafOptimisticLockException(e) => e.request_id(),
Self::WafServiceLinkedRoleErrorException(e) => e.request_id(),
Self::WafSubscriptionNotFoundException(e) => e.request_id(),
Self::WafTagOperationException(e) => e.request_id(),
Self::WafTagOperationInternalErrorException(e) => e.request_id(),
Self::WafUnavailableEntityException(e) => e.request_id(),
Self::WafUnsupportedAggregateKeyTypeException(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}