pub enum MeterUsageError {
CustomerNotEntitled(String),
DuplicateRequest(String),
InternalServiceError(String),
InvalidEndpointRegion(String),
InvalidProductCode(String),
InvalidTag(String),
InvalidUsageAllocations(String),
InvalidUsageDimension(String),
Throttling(String),
TimestampOutOfBounds(String),
}
Expand description
Errors returned by MeterUsage
Variants
CustomerNotEntitled(String)
Exception thrown when the customer does not have a valid subscription for the product.
DuplicateRequest(String)
A metering record has already been emitted by the same EC2 instance, ECS task, or EKS pod for the given {usageDimension, timestamp} with a different usageQuantity.
InternalServiceError(String)
An internal error has occurred. Retry your request. If the problem persists, post a message with details on the AWS forums.
InvalidEndpointRegion(String)
The endpoint being called is in a AWS Region different from your EC2 instance, ECS task, or EKS pod. The Region of the Metering Service endpoint and the AWS Region of the resource must match.
InvalidProductCode(String)
The product code passed does not match the product code used for publishing the product.
InvalidTag(String)
The tag is invalid, or the number of tags is greater than 5.
InvalidUsageAllocations(String)
The usage allocation objects are invalid, or the number of allocations is greater than 500 for a single usage record.
InvalidUsageDimension(String)
The usage dimension does not match one of the UsageDimensions associated with products.
Throttling(String)
The calls to the API are throttled.
TimestampOutOfBounds(String)
The timestamp value passed in the meterUsage() is out of allowed range.
Implementations
sourceimpl MeterUsageError
impl MeterUsageError
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<MeterUsageError>
Trait Implementations
sourceimpl Debug for MeterUsageError
impl Debug for MeterUsageError
sourceimpl Display for MeterUsageError
impl Display for MeterUsageError
sourceimpl Error for MeterUsageError
impl Error for MeterUsageError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl PartialEq<MeterUsageError> for MeterUsageError
impl PartialEq<MeterUsageError> for MeterUsageError
sourcefn eq(&self, other: &MeterUsageError) -> bool
fn eq(&self, other: &MeterUsageError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MeterUsageError) -> bool
fn ne(&self, other: &MeterUsageError) -> bool
This method tests for !=
.
impl StructuralPartialEq for MeterUsageError
Auto Trait Implementations
impl RefUnwindSafe for MeterUsageError
impl Send for MeterUsageError
impl Sync for MeterUsageError
impl Unpin for MeterUsageError
impl UnwindSafe for MeterUsageError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more