Class MarketplaceMeteringException
- Exception
-
RuntimeException
-
Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
-
Aws\MarketplaceMetering\Exception\MarketplaceMeteringException
- Namespace: Aws\MarketplaceMetering\Exception
- Located at MarketplaceMetering/Exception/MarketplaceMeteringException.php
Represents an error interacting with the AWSMarketplace Metering service.
Methods Summary
Methods inherited from Aws\Exception\AwsException
__construct()
,
__toString()
,
get()
,
getAwsErrorCode()
,
getAwsErrorMessage()
,
getAwsErrorShape()
,
getAwsErrorType()
,
getAwsRequestId()
,
getCommand()
,
getRequest()
,
getResponse()
,
getResult()
,
getStatusCode()
,
getTransferInfo()
,
hasKey()
,
isConnectionError()
,
isMaxRetriesExceeded()
,
search()
,
setMaxRetriesExceeded()
,
setTransferInfo()
Methods inherited from Exception
__wakeup()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Aws\MonitoringEventsInterface
Methods used from Aws\HasDataTrait
Methods used from Aws\HasMonitoringEventsTrait
Expected Exception Codes
CustomerNotEntitledException
[ 'message' => '<string>', ]
Description
Exception thrown when the customer does not have a valid subscription for the product.
Members
- message
-
- Type: string
DisabledApiException
[ 'message' => '<string>', ]
Description
The API is disabled in the Region.
Members
- message
-
- Type: string
DuplicateRequestException
[ 'message' => '<string>', ]
Description
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
.
Members
- message
-
- Type: string
ExpiredTokenException
[ 'message' => '<string>', ]
Description
The submitted registration token has expired. This can happen if the buyer's browser takes too long to redirect to your page, the buyer has resubmitted the registration token, or your application has held on to the registration token for too long. Your SaaS registration website should redeem this token as soon as it is submitted by the buyer's browser.
Members
- message
-
- Type: string
InternalServiceErrorException
[ 'message' => '<string>', ]
Description
An internal error has occurred. Retry your request. If the problem persists, post a message with details on the AWS forums.
Members
- message
-
- Type: string
InvalidCustomerIdentifierException
[ 'message' => '<string>', ]
Description
You have metered usage for a CustomerIdentifier
that does not exist.
Members
- message
-
- Type: string
InvalidEndpointRegionException
[ 'message' => '<string>', ]
Description
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.
Members
- message
-
- Type: string
InvalidProductCodeException
[ 'message' => '<string>', ]
Description
The product code passed does not match the product code used for publishing the product.
Members
- message
-
- Type: string
InvalidPublicKeyVersionException
[ 'message' => '<string>', ]
Description
Public Key version is invalid.
Members
- message
-
- Type: string
InvalidRegionException
[ 'message' => '<string>', ]
Description
RegisterUsage
must be called in the same AWS Region the ECS task was launched in. This prevents a container from hardcoding a Region (e.g. withRegion(“us-east-1”) when calling RegisterUsage
.
Members
- message
-
- Type: string
InvalidTagException
[ 'message' => '<string>', ]
Description
The tag is invalid, or the number of tags is greater than 5.
Members
- message
-
- Type: string
InvalidTokenException
[ 'message' => '<string>', ]
Description
Registration token is invalid.
Members
- message
-
- Type: string
InvalidUsageAllocationsException
[ 'message' => '<string>', ]
Description
The usage allocation objects are invalid, or the number of allocations is greater than 500 for a single usage record.
Members
- message
-
- Type: string
InvalidUsageDimensionException
[ 'message' => '<string>', ]
Description
The usage dimension does not match one of the UsageDimensions
associated with products.
Members
- message
-
- Type: string
PlatformNotSupportedException
[ 'message' => '<string>', ]
Description
AWS Marketplace does not support metering usage from the underlying platform. Currently, Amazon ECS, Amazon EKS, and AWS Fargate are supported.
Members
- message
-
- Type: string
ThrottlingException
[ 'message' => '<string>', ]
Description
The calls to the API are throttled.
Members
- message
-
- Type: string
TimestampOutOfBoundsException
[ 'message' => '<string>', ]
Description
The timestamp
value passed in the UsageRecord
is out of allowed range.
For BatchMeterUsage
, if any of the records are outside of the allowed range, the entire batch is not processed. You must remove invalid records and try again.
Members
- message
-
- Type: string