Enum rusoto_meteringmarketplace::MeterUsageError
[−]
[src]
pub enum MeterUsageError { DuplicateRequest(String), InternalServiceError(String), InvalidEndpointRegion(String), InvalidProductCode(String), InvalidUsageDimension(String), Throttling(String), TimestampOutOfBounds(String), HttpDispatch(HttpDispatchError), Credentials(CredentialsError), Validation(String), Unknown(String), }
Errors returned by MeterUsage
Variants
DuplicateRequest(String)
A metering record has already been emitted by the same EC2 instance 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 region different from your EC2 instance. The region of the Metering service endpoint and the region of the EC2 instance must match.
InvalidProductCode(String)
The product code passed does not match the product code used for publishing the product.
InvalidUsageDimension(String)
The usage dimension does not match one of the UsageDimensions associated with products.
Throttling(String)
The calls to the MeterUsage API are throttled.
TimestampOutOfBounds(String)
The timestamp value passed in the meterUsage() is out of allowed range.
HttpDispatch(HttpDispatchError)
An error occurred dispatching the HTTP request
Credentials(CredentialsError)
An error was encountered with AWS credentials.
Validation(String)
A validation error occurred. Details from AWS are provided.
Unknown(String)
An unknown error occurred. The raw HTTP response is provided.
Methods
impl MeterUsageError
[src]
fn from_body(body: &str) -> MeterUsageError
Trait Implementations
impl Debug for MeterUsageError
[src]
impl PartialEq for MeterUsageError
[src]
fn eq(&self, __arg_0: &MeterUsageError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MeterUsageError) -> bool
This method tests for !=
.
impl From<Error> for MeterUsageError
[src]
fn from(err: Error) -> MeterUsageError
Performs the conversion.
impl From<CredentialsError> for MeterUsageError
[src]
fn from(err: CredentialsError) -> MeterUsageError
Performs the conversion.
impl From<HttpDispatchError> for MeterUsageError
[src]
fn from(err: HttpDispatchError) -> MeterUsageError
Performs the conversion.