pub enum BatchMeterUsageError {
DisabledApi(String),
InternalServiceError(String),
InvalidCustomerIdentifier(String),
InvalidProductCode(String),
InvalidTag(String),
InvalidUsageAllocations(String),
InvalidUsageDimension(String),
Throttling(String),
TimestampOutOfBounds(String),
}
Expand description
Errors returned by BatchMeterUsage
Variants
DisabledApi(String)
The API is disabled in the Region.
InternalServiceError(String)
An internal error has occurred. Retry your request. If the problem persists, post a message with details on the AWS forums.
InvalidCustomerIdentifier(String)
You have metered usage for a CustomerIdentifier that does not exist.
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 BatchMeterUsageError
impl BatchMeterUsageError
pub fn from_response(
res: BufferedHttpResponse
) -> RusotoError<BatchMeterUsageError>
Trait Implementations
sourceimpl Debug for BatchMeterUsageError
impl Debug for BatchMeterUsageError
sourceimpl Display for BatchMeterUsageError
impl Display for BatchMeterUsageError
sourceimpl Error for BatchMeterUsageError
impl Error for BatchMeterUsageError
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<BatchMeterUsageError> for BatchMeterUsageError
impl PartialEq<BatchMeterUsageError> for BatchMeterUsageError
sourcefn eq(&self, other: &BatchMeterUsageError) -> bool
fn eq(&self, other: &BatchMeterUsageError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BatchMeterUsageError) -> bool
fn ne(&self, other: &BatchMeterUsageError) -> bool
This method tests for !=
.
impl StructuralPartialEq for BatchMeterUsageError
Auto Trait Implementations
impl RefUnwindSafe for BatchMeterUsageError
impl Send for BatchMeterUsageError
impl Sync for BatchMeterUsageError
impl Unpin for BatchMeterUsageError
impl UnwindSafe for BatchMeterUsageError
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