#[non_exhaustive]pub enum Error {
Show 23 variants
AccessPointNotFoundException(AccessPointNotFoundException),
CertificateNotFoundException(CertificateNotFoundException),
DependencyThrottleException(DependencyThrottleException),
DuplicateAccessPointNameException(DuplicateAccessPointNameException),
DuplicateListenerException(DuplicateListenerException),
DuplicatePolicyNameException(DuplicatePolicyNameException),
DuplicateTagKeysException(DuplicateTagKeysException),
InvalidConfigurationRequestException(InvalidConfigurationRequestException),
InvalidEndPointException(InvalidEndPointException),
InvalidSchemeException(InvalidSchemeException),
InvalidSecurityGroupException(InvalidSecurityGroupException),
InvalidSubnetException(InvalidSubnetException),
ListenerNotFoundException(ListenerNotFoundException),
LoadBalancerAttributeNotFoundException(LoadBalancerAttributeNotFoundException),
OperationNotPermittedException(OperationNotPermittedException),
PolicyNotFoundException(PolicyNotFoundException),
PolicyTypeNotFoundException(PolicyTypeNotFoundException),
SubnetNotFoundException(SubnetNotFoundException),
TooManyAccessPointsException(TooManyAccessPointsException),
TooManyPoliciesException(TooManyPoliciesException),
TooManyTagsException(TooManyTagsException),
UnsupportedProtocolException(UnsupportedProtocolException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessPointNotFoundException(AccessPointNotFoundException)
The specified load balancer does not exist.
CertificateNotFoundException(CertificateNotFoundException)
The specified ARN does not refer to a valid SSL certificate in AWS Identity and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if you recently uploaded the certificate to IAM, this error might indicate that the certificate is not fully available yet.
DependencyThrottleException(DependencyThrottleException)
A request made by Elastic Load Balancing to another service exceeds the maximum request rate permitted for your account.
DuplicateAccessPointNameException(DuplicateAccessPointNameException)
The specified load balancer name already exists for this account.
DuplicateListenerException(DuplicateListenerException)
A listener already exists for the specified load balancer name and port, but with a different instance port, protocol, or SSL certificate.
DuplicatePolicyNameException(DuplicatePolicyNameException)
A policy with the specified name already exists for this load balancer.
DuplicateTagKeysException(DuplicateTagKeysException)
A tag key was specified more than once.
InvalidConfigurationRequestException(InvalidConfigurationRequestException)
The requested configuration change is not valid.
InvalidEndPointException(InvalidEndPointException)
The specified endpoint is not valid.
InvalidSchemeException(InvalidSchemeException)
The specified value for the schema is not valid. You can only specify a scheme for load balancers in a VPC.
InvalidSecurityGroupException(InvalidSecurityGroupException)
One or more of the specified security groups do not exist.
InvalidSubnetException(InvalidSubnetException)
The specified VPC has no associated Internet gateway.
ListenerNotFoundException(ListenerNotFoundException)
The load balancer does not have a listener configured at the specified port.
LoadBalancerAttributeNotFoundException(LoadBalancerAttributeNotFoundException)
The specified load balancer attribute does not exist.
OperationNotPermittedException(OperationNotPermittedException)
This operation is not allowed.
PolicyNotFoundException(PolicyNotFoundException)
One or more of the specified policies do not exist.
PolicyTypeNotFoundException(PolicyTypeNotFoundException)
One or more of the specified policy types do not exist.
SubnetNotFoundException(SubnetNotFoundException)
One or more of the specified subnets do not exist.
TooManyAccessPointsException(TooManyAccessPointsException)
The quota for the number of load balancers has been reached.
TooManyPoliciesException(TooManyPoliciesException)
The quota for the number of policies for this load balancer has been reached.
TooManyTagsException(TooManyTagsException)
The quota for the number of tags that can be assigned to a load balancer has been reached.
UnsupportedProtocolException(UnsupportedProtocolException)
The specified protocol or signature version is not supported.
Unhandled(Unhandled)
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
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<AddTagsError> for Error
impl From<AddTagsError> for Error
source§fn from(err: AddTagsError) -> Self
fn from(err: AddTagsError) -> Self
source§impl From<ApplySecurityGroupsToLoadBalancerError> for Error
impl From<ApplySecurityGroupsToLoadBalancerError> for Error
source§fn from(err: ApplySecurityGroupsToLoadBalancerError) -> Self
fn from(err: ApplySecurityGroupsToLoadBalancerError) -> Self
source§impl From<AttachLoadBalancerToSubnetsError> for Error
impl From<AttachLoadBalancerToSubnetsError> for Error
source§fn from(err: AttachLoadBalancerToSubnetsError) -> Self
fn from(err: AttachLoadBalancerToSubnetsError) -> Self
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<ConfigureHealthCheckError> for Error
impl From<ConfigureHealthCheckError> for Error
source§fn from(err: ConfigureHealthCheckError) -> Self
fn from(err: ConfigureHealthCheckError) -> Self
source§impl From<CreateAppCookieStickinessPolicyError> for Error
impl From<CreateAppCookieStickinessPolicyError> for Error
source§fn from(err: CreateAppCookieStickinessPolicyError) -> Self
fn from(err: CreateAppCookieStickinessPolicyError) -> Self
source§impl From<CreateLBCookieStickinessPolicyError> for Error
impl From<CreateLBCookieStickinessPolicyError> for Error
source§fn from(err: CreateLBCookieStickinessPolicyError) -> Self
fn from(err: CreateLBCookieStickinessPolicyError) -> Self
source§impl From<CreateLoadBalancerError> for Error
impl From<CreateLoadBalancerError> for Error
source§fn from(err: CreateLoadBalancerError) -> Self
fn from(err: CreateLoadBalancerError) -> Self
source§impl From<CreateLoadBalancerListenersError> for Error
impl From<CreateLoadBalancerListenersError> for Error
source§fn from(err: CreateLoadBalancerListenersError) -> Self
fn from(err: CreateLoadBalancerListenersError) -> Self
source§impl From<CreateLoadBalancerPolicyError> for Error
impl From<CreateLoadBalancerPolicyError> for Error
source§fn from(err: CreateLoadBalancerPolicyError) -> Self
fn from(err: CreateLoadBalancerPolicyError) -> Self
source§impl From<DeleteLoadBalancerError> for Error
impl From<DeleteLoadBalancerError> for Error
source§fn from(err: DeleteLoadBalancerError) -> Self
fn from(err: DeleteLoadBalancerError) -> Self
source§impl From<DeleteLoadBalancerListenersError> for Error
impl From<DeleteLoadBalancerListenersError> for Error
source§fn from(err: DeleteLoadBalancerListenersError) -> Self
fn from(err: DeleteLoadBalancerListenersError) -> Self
source§impl From<DeleteLoadBalancerPolicyError> for Error
impl From<DeleteLoadBalancerPolicyError> for Error
source§fn from(err: DeleteLoadBalancerPolicyError) -> Self
fn from(err: DeleteLoadBalancerPolicyError) -> Self
source§impl From<DeregisterInstancesFromLoadBalancerError> for Error
impl From<DeregisterInstancesFromLoadBalancerError> for Error
source§fn from(err: DeregisterInstancesFromLoadBalancerError) -> Self
fn from(err: DeregisterInstancesFromLoadBalancerError) -> Self
source§impl From<DescribeAccountLimitsError> for Error
impl From<DescribeAccountLimitsError> for Error
source§fn from(err: DescribeAccountLimitsError) -> Self
fn from(err: DescribeAccountLimitsError) -> Self
source§impl From<DescribeInstanceHealthError> for Error
impl From<DescribeInstanceHealthError> for Error
source§fn from(err: DescribeInstanceHealthError) -> Self
fn from(err: DescribeInstanceHealthError) -> Self
source§impl From<DescribeLoadBalancerAttributesError> for Error
impl From<DescribeLoadBalancerAttributesError> for Error
source§fn from(err: DescribeLoadBalancerAttributesError) -> Self
fn from(err: DescribeLoadBalancerAttributesError) -> Self
source§impl From<DescribeLoadBalancerPoliciesError> for Error
impl From<DescribeLoadBalancerPoliciesError> for Error
source§fn from(err: DescribeLoadBalancerPoliciesError) -> Self
fn from(err: DescribeLoadBalancerPoliciesError) -> Self
source§impl From<DescribeLoadBalancerPolicyTypesError> for Error
impl From<DescribeLoadBalancerPolicyTypesError> for Error
source§fn from(err: DescribeLoadBalancerPolicyTypesError) -> Self
fn from(err: DescribeLoadBalancerPolicyTypesError) -> Self
source§impl From<DescribeLoadBalancersError> for Error
impl From<DescribeLoadBalancersError> for Error
source§fn from(err: DescribeLoadBalancersError) -> Self
fn from(err: DescribeLoadBalancersError) -> Self
source§impl From<DescribeTagsError> for Error
impl From<DescribeTagsError> for Error
source§fn from(err: DescribeTagsError) -> Self
fn from(err: DescribeTagsError) -> Self
source§impl From<DetachLoadBalancerFromSubnetsError> for Error
impl From<DetachLoadBalancerFromSubnetsError> for Error
source§fn from(err: DetachLoadBalancerFromSubnetsError) -> Self
fn from(err: DetachLoadBalancerFromSubnetsError) -> Self
source§impl From<DisableAvailabilityZonesForLoadBalancerError> for Error
impl From<DisableAvailabilityZonesForLoadBalancerError> for Error
source§fn from(err: DisableAvailabilityZonesForLoadBalancerError) -> Self
fn from(err: DisableAvailabilityZonesForLoadBalancerError) -> Self
source§impl From<EnableAvailabilityZonesForLoadBalancerError> for Error
impl From<EnableAvailabilityZonesForLoadBalancerError> for Error
source§fn from(err: EnableAvailabilityZonesForLoadBalancerError) -> Self
fn from(err: EnableAvailabilityZonesForLoadBalancerError) -> Self
source§impl From<ModifyLoadBalancerAttributesError> for Error
impl From<ModifyLoadBalancerAttributesError> for Error
source§fn from(err: ModifyLoadBalancerAttributesError) -> Self
fn from(err: ModifyLoadBalancerAttributesError) -> Self
source§impl From<RegisterInstancesWithLoadBalancerError> for Error
impl From<RegisterInstancesWithLoadBalancerError> for Error
source§fn from(err: RegisterInstancesWithLoadBalancerError) -> Self
fn from(err: RegisterInstancesWithLoadBalancerError) -> Self
source§impl From<RemoveTagsError> for Error
impl From<RemoveTagsError> for Error
source§fn from(err: RemoveTagsError) -> Self
fn from(err: RemoveTagsError) -> Self
source§impl<R> From<SdkError<AddTagsError, R>> for Error
impl<R> From<SdkError<AddTagsError, R>> for Error
source§fn from(err: SdkError<AddTagsError, R>) -> Self
fn from(err: SdkError<AddTagsError, R>) -> Self
source§impl<R> From<SdkError<ApplySecurityGroupsToLoadBalancerError, R>> for Error
impl<R> From<SdkError<ApplySecurityGroupsToLoadBalancerError, R>> for Error
source§fn from(err: SdkError<ApplySecurityGroupsToLoadBalancerError, R>) -> Self
fn from(err: SdkError<ApplySecurityGroupsToLoadBalancerError, R>) -> Self
source§impl<R> From<SdkError<AttachLoadBalancerToSubnetsError, R>> for Error
impl<R> From<SdkError<AttachLoadBalancerToSubnetsError, R>> for Error
source§fn from(err: SdkError<AttachLoadBalancerToSubnetsError, R>) -> Self
fn from(err: SdkError<AttachLoadBalancerToSubnetsError, R>) -> Self
source§impl<R> From<SdkError<ConfigureHealthCheckError, R>> for Error
impl<R> From<SdkError<ConfigureHealthCheckError, R>> for Error
source§fn from(err: SdkError<ConfigureHealthCheckError, R>) -> Self
fn from(err: SdkError<ConfigureHealthCheckError, R>) -> Self
source§impl<R> From<SdkError<CreateAppCookieStickinessPolicyError, R>> for Error
impl<R> From<SdkError<CreateAppCookieStickinessPolicyError, R>> for Error
source§fn from(err: SdkError<CreateAppCookieStickinessPolicyError, R>) -> Self
fn from(err: SdkError<CreateAppCookieStickinessPolicyError, R>) -> Self
source§impl<R> From<SdkError<CreateLBCookieStickinessPolicyError, R>> for Error
impl<R> From<SdkError<CreateLBCookieStickinessPolicyError, R>> for Error
source§fn from(err: SdkError<CreateLBCookieStickinessPolicyError, R>) -> Self
fn from(err: SdkError<CreateLBCookieStickinessPolicyError, R>) -> Self
source§impl<R> From<SdkError<CreateLoadBalancerError, R>> for Error
impl<R> From<SdkError<CreateLoadBalancerError, R>> for Error
source§fn from(err: SdkError<CreateLoadBalancerError, R>) -> Self
fn from(err: SdkError<CreateLoadBalancerError, R>) -> Self
source§impl<R> From<SdkError<CreateLoadBalancerListenersError, R>> for Error
impl<R> From<SdkError<CreateLoadBalancerListenersError, R>> for Error
source§fn from(err: SdkError<CreateLoadBalancerListenersError, R>) -> Self
fn from(err: SdkError<CreateLoadBalancerListenersError, R>) -> Self
source§impl<R> From<SdkError<CreateLoadBalancerPolicyError, R>> for Error
impl<R> From<SdkError<CreateLoadBalancerPolicyError, R>> for Error
source§fn from(err: SdkError<CreateLoadBalancerPolicyError, R>) -> Self
fn from(err: SdkError<CreateLoadBalancerPolicyError, R>) -> Self
source§impl<R> From<SdkError<DeleteLoadBalancerError, R>> for Error
impl<R> From<SdkError<DeleteLoadBalancerError, R>> for Error
source§fn from(err: SdkError<DeleteLoadBalancerError, R>) -> Self
fn from(err: SdkError<DeleteLoadBalancerError, R>) -> Self
source§impl<R> From<SdkError<DeleteLoadBalancerListenersError, R>> for Error
impl<R> From<SdkError<DeleteLoadBalancerListenersError, R>> for Error
source§fn from(err: SdkError<DeleteLoadBalancerListenersError, R>) -> Self
fn from(err: SdkError<DeleteLoadBalancerListenersError, R>) -> Self
source§impl<R> From<SdkError<DeleteLoadBalancerPolicyError, R>> for Error
impl<R> From<SdkError<DeleteLoadBalancerPolicyError, R>> for Error
source§fn from(err: SdkError<DeleteLoadBalancerPolicyError, R>) -> Self
fn from(err: SdkError<DeleteLoadBalancerPolicyError, R>) -> Self
source§impl<R> From<SdkError<DeregisterInstancesFromLoadBalancerError, R>> for Error
impl<R> From<SdkError<DeregisterInstancesFromLoadBalancerError, R>> for Error
source§fn from(err: SdkError<DeregisterInstancesFromLoadBalancerError, R>) -> Self
fn from(err: SdkError<DeregisterInstancesFromLoadBalancerError, R>) -> Self
source§impl<R> From<SdkError<DescribeAccountLimitsError, R>> for Error
impl<R> From<SdkError<DescribeAccountLimitsError, R>> for Error
source§fn from(err: SdkError<DescribeAccountLimitsError, R>) -> Self
fn from(err: SdkError<DescribeAccountLimitsError, R>) -> Self
source§impl<R> From<SdkError<DescribeInstanceHealthError, R>> for Error
impl<R> From<SdkError<DescribeInstanceHealthError, R>> for Error
source§fn from(err: SdkError<DescribeInstanceHealthError, R>) -> Self
fn from(err: SdkError<DescribeInstanceHealthError, R>) -> Self
source§impl<R> From<SdkError<DescribeLoadBalancerAttributesError, R>> for Error
impl<R> From<SdkError<DescribeLoadBalancerAttributesError, R>> for Error
source§fn from(err: SdkError<DescribeLoadBalancerAttributesError, R>) -> Self
fn from(err: SdkError<DescribeLoadBalancerAttributesError, R>) -> Self
source§impl<R> From<SdkError<DescribeLoadBalancerPoliciesError, R>> for Error
impl<R> From<SdkError<DescribeLoadBalancerPoliciesError, R>> for Error
source§fn from(err: SdkError<DescribeLoadBalancerPoliciesError, R>) -> Self
fn from(err: SdkError<DescribeLoadBalancerPoliciesError, R>) -> Self
source§impl<R> From<SdkError<DescribeLoadBalancerPolicyTypesError, R>> for Error
impl<R> From<SdkError<DescribeLoadBalancerPolicyTypesError, R>> for Error
source§fn from(err: SdkError<DescribeLoadBalancerPolicyTypesError, R>) -> Self
fn from(err: SdkError<DescribeLoadBalancerPolicyTypesError, R>) -> Self
source§impl<R> From<SdkError<DescribeLoadBalancersError, R>> for Error
impl<R> From<SdkError<DescribeLoadBalancersError, R>> for Error
source§fn from(err: SdkError<DescribeLoadBalancersError, R>) -> Self
fn from(err: SdkError<DescribeLoadBalancersError, R>) -> Self
source§impl<R> From<SdkError<DescribeTagsError, R>> for Error
impl<R> From<SdkError<DescribeTagsError, R>> for Error
source§fn from(err: SdkError<DescribeTagsError, R>) -> Self
fn from(err: SdkError<DescribeTagsError, R>) -> Self
source§impl<R> From<SdkError<DetachLoadBalancerFromSubnetsError, R>> for Error
impl<R> From<SdkError<DetachLoadBalancerFromSubnetsError, R>> for Error
source§fn from(err: SdkError<DetachLoadBalancerFromSubnetsError, R>) -> Self
fn from(err: SdkError<DetachLoadBalancerFromSubnetsError, R>) -> Self
source§impl<R> From<SdkError<DisableAvailabilityZonesForLoadBalancerError, R>> for Error
impl<R> From<SdkError<DisableAvailabilityZonesForLoadBalancerError, R>> for Error
source§fn from(err: SdkError<DisableAvailabilityZonesForLoadBalancerError, R>) -> Self
fn from(err: SdkError<DisableAvailabilityZonesForLoadBalancerError, R>) -> Self
source§impl<R> From<SdkError<EnableAvailabilityZonesForLoadBalancerError, R>> for Error
impl<R> From<SdkError<EnableAvailabilityZonesForLoadBalancerError, R>> for Error
source§fn from(err: SdkError<EnableAvailabilityZonesForLoadBalancerError, R>) -> Self
fn from(err: SdkError<EnableAvailabilityZonesForLoadBalancerError, R>) -> Self
source§impl<R> From<SdkError<ModifyLoadBalancerAttributesError, R>> for Error
impl<R> From<SdkError<ModifyLoadBalancerAttributesError, R>> for Error
source§fn from(err: SdkError<ModifyLoadBalancerAttributesError, R>) -> Self
fn from(err: SdkError<ModifyLoadBalancerAttributesError, R>) -> Self
source§impl<R> From<SdkError<RegisterInstancesWithLoadBalancerError, R>> for Error
impl<R> From<SdkError<RegisterInstancesWithLoadBalancerError, R>> for Error
source§fn from(err: SdkError<RegisterInstancesWithLoadBalancerError, R>) -> Self
fn from(err: SdkError<RegisterInstancesWithLoadBalancerError, R>) -> Self
source§impl<R> From<SdkError<RemoveTagsError, R>> for Error
impl<R> From<SdkError<RemoveTagsError, R>> for Error
source§fn from(err: SdkError<RemoveTagsError, R>) -> Self
fn from(err: SdkError<RemoveTagsError, R>) -> Self
source§impl<R> From<SdkError<SetLoadBalancerListenerSSLCertificateError, R>> for Error
impl<R> From<SdkError<SetLoadBalancerListenerSSLCertificateError, R>> for Error
source§fn from(err: SdkError<SetLoadBalancerListenerSSLCertificateError, R>) -> Self
fn from(err: SdkError<SetLoadBalancerListenerSSLCertificateError, R>) -> Self
source§impl<R> From<SdkError<SetLoadBalancerPoliciesForBackendServerError, R>> for Error
impl<R> From<SdkError<SetLoadBalancerPoliciesForBackendServerError, R>> for Error
source§fn from(err: SdkError<SetLoadBalancerPoliciesForBackendServerError, R>) -> Self
fn from(err: SdkError<SetLoadBalancerPoliciesForBackendServerError, R>) -> Self
source§impl<R> From<SdkError<SetLoadBalancerPoliciesOfListenerError, R>> for Error
impl<R> From<SdkError<SetLoadBalancerPoliciesOfListenerError, R>> for Error
source§fn from(err: SdkError<SetLoadBalancerPoliciesOfListenerError, R>) -> Self
fn from(err: SdkError<SetLoadBalancerPoliciesOfListenerError, R>) -> Self
source§impl From<SetLoadBalancerListenerSSLCertificateError> for Error
impl From<SetLoadBalancerListenerSSLCertificateError> for Error
source§fn from(err: SetLoadBalancerListenerSSLCertificateError) -> Self
fn from(err: SetLoadBalancerListenerSSLCertificateError) -> Self
source§impl From<SetLoadBalancerPoliciesForBackendServerError> for Error
impl From<SetLoadBalancerPoliciesForBackendServerError> for Error
source§fn from(err: SetLoadBalancerPoliciesForBackendServerError) -> Self
fn from(err: SetLoadBalancerPoliciesForBackendServerError) -> Self
source§impl From<SetLoadBalancerPoliciesOfListenerError> for Error
impl From<SetLoadBalancerPoliciesOfListenerError> for Error
source§fn from(err: SetLoadBalancerPoliciesOfListenerError) -> Self
fn from(err: SetLoadBalancerPoliciesOfListenerError) -> Self
source§impl<O, E> From<WaiterError<O, E>> for Error
impl<O, E> From<WaiterError<O, E>> for Error
source§fn from(err: WaiterError<O, E>) -> Self
fn from(err: WaiterError<O, E>) -> Self
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more