package types
import "github.com/aws/aws-sdk-go-v2/service/marketplacemetering/types"
Index ¶
- type CustomerNotEntitledException
- func (e *CustomerNotEntitledException) Error() string
- func (e *CustomerNotEntitledException) ErrorCode() string
- func (e *CustomerNotEntitledException) ErrorFault() smithy.ErrorFault
- func (e *CustomerNotEntitledException) ErrorMessage() string
- type DisabledApiException
- func (e *DisabledApiException) Error() string
- func (e *DisabledApiException) ErrorCode() string
- func (e *DisabledApiException) ErrorFault() smithy.ErrorFault
- func (e *DisabledApiException) ErrorMessage() string
- type DuplicateRequestException
- func (e *DuplicateRequestException) Error() string
- func (e *DuplicateRequestException) ErrorCode() string
- func (e *DuplicateRequestException) ErrorFault() smithy.ErrorFault
- func (e *DuplicateRequestException) ErrorMessage() string
- type ExpiredTokenException
- func (e *ExpiredTokenException) Error() string
- func (e *ExpiredTokenException) ErrorCode() string
- func (e *ExpiredTokenException) ErrorFault() smithy.ErrorFault
- func (e *ExpiredTokenException) ErrorMessage() string
- type InternalServiceErrorException
- func (e *InternalServiceErrorException) Error() string
- func (e *InternalServiceErrorException) ErrorCode() string
- func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault
- func (e *InternalServiceErrorException) ErrorMessage() string
- type InvalidCustomerIdentifierException
- func (e *InvalidCustomerIdentifierException) Error() string
- func (e *InvalidCustomerIdentifierException) ErrorCode() string
- func (e *InvalidCustomerIdentifierException) ErrorFault() smithy.ErrorFault
- func (e *InvalidCustomerIdentifierException) ErrorMessage() string
- type InvalidEndpointRegionException
- func (e *InvalidEndpointRegionException) Error() string
- func (e *InvalidEndpointRegionException) ErrorCode() string
- func (e *InvalidEndpointRegionException) ErrorFault() smithy.ErrorFault
- func (e *InvalidEndpointRegionException) ErrorMessage() string
- type InvalidProductCodeException
- func (e *InvalidProductCodeException) Error() string
- func (e *InvalidProductCodeException) ErrorCode() string
- func (e *InvalidProductCodeException) ErrorFault() smithy.ErrorFault
- func (e *InvalidProductCodeException) ErrorMessage() string
- type InvalidPublicKeyVersionException
- func (e *InvalidPublicKeyVersionException) Error() string
- func (e *InvalidPublicKeyVersionException) ErrorCode() string
- func (e *InvalidPublicKeyVersionException) ErrorFault() smithy.ErrorFault
- func (e *InvalidPublicKeyVersionException) ErrorMessage() string
- type InvalidRegionException
- func (e *InvalidRegionException) Error() string
- func (e *InvalidRegionException) ErrorCode() string
- func (e *InvalidRegionException) ErrorFault() smithy.ErrorFault
- func (e *InvalidRegionException) ErrorMessage() string
- type InvalidTokenException
- func (e *InvalidTokenException) Error() string
- func (e *InvalidTokenException) ErrorCode() string
- func (e *InvalidTokenException) ErrorFault() smithy.ErrorFault
- func (e *InvalidTokenException) ErrorMessage() string
- type InvalidUsageDimensionException
- func (e *InvalidUsageDimensionException) Error() string
- func (e *InvalidUsageDimensionException) ErrorCode() string
- func (e *InvalidUsageDimensionException) ErrorFault() smithy.ErrorFault
- func (e *InvalidUsageDimensionException) ErrorMessage() string
- type PlatformNotSupportedException
- func (e *PlatformNotSupportedException) Error() string
- func (e *PlatformNotSupportedException) ErrorCode() string
- func (e *PlatformNotSupportedException) ErrorFault() smithy.ErrorFault
- func (e *PlatformNotSupportedException) ErrorMessage() string
- type ThrottlingException
- func (e *ThrottlingException) Error() string
- func (e *ThrottlingException) ErrorCode() string
- func (e *ThrottlingException) ErrorFault() smithy.ErrorFault
- func (e *ThrottlingException) ErrorMessage() string
- type TimestampOutOfBoundsException
- func (e *TimestampOutOfBoundsException) Error() string
- func (e *TimestampOutOfBoundsException) ErrorCode() string
- func (e *TimestampOutOfBoundsException) ErrorFault() smithy.ErrorFault
- func (e *TimestampOutOfBoundsException) ErrorMessage() string
- type UsageRecord
- type UsageRecordResult
- type UsageRecordResultStatus
Types ¶
type CustomerNotEntitledException ¶
type CustomerNotEntitledException struct { Message *string }
Exception thrown when the customer does not have a valid subscription for the product.
func (*CustomerNotEntitledException) Error ¶
func (e *CustomerNotEntitledException) Error() string
func (*CustomerNotEntitledException) ErrorCode ¶
func (e *CustomerNotEntitledException) ErrorCode() string
func (*CustomerNotEntitledException) ErrorFault ¶
func (e *CustomerNotEntitledException) ErrorFault() smithy.ErrorFault
func (*CustomerNotEntitledException) ErrorMessage ¶
func (e *CustomerNotEntitledException) ErrorMessage() string
type DisabledApiException ¶
type DisabledApiException struct { Message *string }
The API is disabled in the Region.
func (*DisabledApiException) Error ¶
func (e *DisabledApiException) Error() string
func (*DisabledApiException) ErrorCode ¶
func (e *DisabledApiException) ErrorCode() string
func (*DisabledApiException) ErrorFault ¶
func (e *DisabledApiException) ErrorFault() smithy.ErrorFault
func (*DisabledApiException) ErrorMessage ¶
func (e *DisabledApiException) ErrorMessage() string
type DuplicateRequestException ¶
type DuplicateRequestException struct { Message *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.
func (*DuplicateRequestException) Error ¶
func (e *DuplicateRequestException) Error() string
func (*DuplicateRequestException) ErrorCode ¶
func (e *DuplicateRequestException) ErrorCode() string
func (*DuplicateRequestException) ErrorFault ¶
func (e *DuplicateRequestException) ErrorFault() smithy.ErrorFault
func (*DuplicateRequestException) ErrorMessage ¶
func (e *DuplicateRequestException) ErrorMessage() string
type ExpiredTokenException ¶
type ExpiredTokenException struct { Message *string }
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.
func (*ExpiredTokenException) Error ¶
func (e *ExpiredTokenException) Error() string
func (*ExpiredTokenException) ErrorCode ¶
func (e *ExpiredTokenException) ErrorCode() string
func (*ExpiredTokenException) ErrorFault ¶
func (e *ExpiredTokenException) ErrorFault() smithy.ErrorFault
func (*ExpiredTokenException) ErrorMessage ¶
func (e *ExpiredTokenException) ErrorMessage() string
type InternalServiceErrorException ¶
type InternalServiceErrorException struct { Message *string }
An internal error has occurred. Retry your request. If the problem persists, post a message with details on the AWS forums.
func (*InternalServiceErrorException) Error ¶
func (e *InternalServiceErrorException) Error() string
func (*InternalServiceErrorException) ErrorCode ¶
func (e *InternalServiceErrorException) ErrorCode() string
func (*InternalServiceErrorException) ErrorFault ¶
func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault
func (*InternalServiceErrorException) ErrorMessage ¶
func (e *InternalServiceErrorException) ErrorMessage() string
type InvalidCustomerIdentifierException ¶
type InvalidCustomerIdentifierException struct { Message *string }
You have metered usage for a CustomerIdentifier that does not exist.
func (*InvalidCustomerIdentifierException) Error ¶
func (e *InvalidCustomerIdentifierException) Error() string
func (*InvalidCustomerIdentifierException) ErrorCode ¶
func (e *InvalidCustomerIdentifierException) ErrorCode() string
func (*InvalidCustomerIdentifierException) ErrorFault ¶
func (e *InvalidCustomerIdentifierException) ErrorFault() smithy.ErrorFault
func (*InvalidCustomerIdentifierException) ErrorMessage ¶
func (e *InvalidCustomerIdentifierException) ErrorMessage() string
type InvalidEndpointRegionException ¶
type InvalidEndpointRegionException struct { Message *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.
func (*InvalidEndpointRegionException) Error ¶
func (e *InvalidEndpointRegionException) Error() string
func (*InvalidEndpointRegionException) ErrorCode ¶
func (e *InvalidEndpointRegionException) ErrorCode() string
func (*InvalidEndpointRegionException) ErrorFault ¶
func (e *InvalidEndpointRegionException) ErrorFault() smithy.ErrorFault
func (*InvalidEndpointRegionException) ErrorMessage ¶
func (e *InvalidEndpointRegionException) ErrorMessage() string
type InvalidProductCodeException ¶
type InvalidProductCodeException struct { Message *string }
The product code passed does not match the product code used for publishing the product.
func (*InvalidProductCodeException) Error ¶
func (e *InvalidProductCodeException) Error() string
func (*InvalidProductCodeException) ErrorCode ¶
func (e *InvalidProductCodeException) ErrorCode() string
func (*InvalidProductCodeException) ErrorFault ¶
func (e *InvalidProductCodeException) ErrorFault() smithy.ErrorFault
func (*InvalidProductCodeException) ErrorMessage ¶
func (e *InvalidProductCodeException) ErrorMessage() string
type InvalidPublicKeyVersionException ¶
type InvalidPublicKeyVersionException struct { Message *string }
Public Key version is invalid.
func (*InvalidPublicKeyVersionException) Error ¶
func (e *InvalidPublicKeyVersionException) Error() string
func (*InvalidPublicKeyVersionException) ErrorCode ¶
func (e *InvalidPublicKeyVersionException) ErrorCode() string
func (*InvalidPublicKeyVersionException) ErrorFault ¶
func (e *InvalidPublicKeyVersionException) ErrorFault() smithy.ErrorFault
func (*InvalidPublicKeyVersionException) ErrorMessage ¶
func (e *InvalidPublicKeyVersionException) ErrorMessage() string
type InvalidRegionException ¶
type InvalidRegionException struct { Message *string }
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.
func (*InvalidRegionException) Error ¶
func (e *InvalidRegionException) Error() string
func (*InvalidRegionException) ErrorCode ¶
func (e *InvalidRegionException) ErrorCode() string
func (*InvalidRegionException) ErrorFault ¶
func (e *InvalidRegionException) ErrorFault() smithy.ErrorFault
func (*InvalidRegionException) ErrorMessage ¶
func (e *InvalidRegionException) ErrorMessage() string
type InvalidTokenException ¶
type InvalidTokenException struct { Message *string }
Registration token is invalid.
func (*InvalidTokenException) Error ¶
func (e *InvalidTokenException) Error() string
func (*InvalidTokenException) ErrorCode ¶
func (e *InvalidTokenException) ErrorCode() string
func (*InvalidTokenException) ErrorFault ¶
func (e *InvalidTokenException) ErrorFault() smithy.ErrorFault
func (*InvalidTokenException) ErrorMessage ¶
func (e *InvalidTokenException) ErrorMessage() string
type InvalidUsageDimensionException ¶
type InvalidUsageDimensionException struct { Message *string }
The usage dimension does not match one of the UsageDimensions associated with products.
func (*InvalidUsageDimensionException) Error ¶
func (e *InvalidUsageDimensionException) Error() string
func (*InvalidUsageDimensionException) ErrorCode ¶
func (e *InvalidUsageDimensionException) ErrorCode() string
func (*InvalidUsageDimensionException) ErrorFault ¶
func (e *InvalidUsageDimensionException) ErrorFault() smithy.ErrorFault
func (*InvalidUsageDimensionException) ErrorMessage ¶
func (e *InvalidUsageDimensionException) ErrorMessage() string
type PlatformNotSupportedException ¶
type PlatformNotSupportedException struct { Message *string }
AWS Marketplace does not support metering usage from the underlying platform. Currently, Amazon ECS, Amazon EKS, and AWS Fargate are supported.
func (*PlatformNotSupportedException) Error ¶
func (e *PlatformNotSupportedException) Error() string
func (*PlatformNotSupportedException) ErrorCode ¶
func (e *PlatformNotSupportedException) ErrorCode() string
func (*PlatformNotSupportedException) ErrorFault ¶
func (e *PlatformNotSupportedException) ErrorFault() smithy.ErrorFault
func (*PlatformNotSupportedException) ErrorMessage ¶
func (e *PlatformNotSupportedException) ErrorMessage() string
type ThrottlingException ¶
type ThrottlingException struct { Message *string }
The calls to the API are throttled.
func (*ThrottlingException) Error ¶
func (e *ThrottlingException) Error() string
func (*ThrottlingException) ErrorCode ¶
func (e *ThrottlingException) ErrorCode() string
func (*ThrottlingException) ErrorFault ¶
func (e *ThrottlingException) ErrorFault() smithy.ErrorFault
func (*ThrottlingException) ErrorMessage ¶
func (e *ThrottlingException) ErrorMessage() string
type TimestampOutOfBoundsException ¶
type TimestampOutOfBoundsException struct { Message *string }
The timestamp value passed in the meterUsage() is out of allowed range.
func (*TimestampOutOfBoundsException) Error ¶
func (e *TimestampOutOfBoundsException) Error() string
func (*TimestampOutOfBoundsException) ErrorCode ¶
func (e *TimestampOutOfBoundsException) ErrorCode() string
func (*TimestampOutOfBoundsException) ErrorFault ¶
func (e *TimestampOutOfBoundsException) ErrorFault() smithy.ErrorFault
func (*TimestampOutOfBoundsException) ErrorMessage ¶
func (e *TimestampOutOfBoundsException) ErrorMessage() string
type UsageRecord ¶
type UsageRecord struct { // The CustomerIdentifier is obtained through the ResolveCustomer operation and // represents an individual buyer in your application. // // This member is required. CustomerIdentifier *string // During the process of registering a product on AWS Marketplace, up to eight // dimensions are specified. These represent different units of value in your // application. // // This member is required. Dimension *string // Timestamp, in UTC, for which the usage is being reported. Your application can // meter usage for up to one hour in the past. Make sure the timestamp value is not // before the start of the software usage. // // This member is required. Timestamp *time.Time // The quantity of usage consumed by the customer for the given dimension and time. // Defaults to 0 if not specified. Quantity *int32 }
A UsageRecord indicates a quantity of usage for a given product, customer, dimension and time. Multiple requests with the same UsageRecords as input will be deduplicated to prevent double charges.
type UsageRecordResult ¶
type UsageRecordResult struct { // The MeteringRecordId is a unique identifier for this metering event. MeteringRecordId *string // The UsageRecordResult Status indicates the status of an individual UsageRecord // processed by BatchMeterUsage. // // * Success- The UsageRecord was accepted and // honored by BatchMeterUsage. // // * CustomerNotSubscribed- The CustomerIdentifier // specified is not subscribed to your product. The UsageRecord was not honored. // Future UsageRecords for this customer will fail until the customer subscribes to // your product. // // * DuplicateRecord- Indicates that the UsageRecord was invalid and // not honored. A previously metered UsageRecord had the same customer, dimension, // and time, but a different quantity. Status UsageRecordResultStatus // The UsageRecord that was part of the BatchMeterUsage request. UsageRecord *UsageRecord }
A UsageRecordResult indicates the status of a given UsageRecord processed by BatchMeterUsage.
type UsageRecordResultStatus ¶
type UsageRecordResultStatus string
const ( UsageRecordResultStatusSuccess UsageRecordResultStatus = "Success" UsageRecordResultStatusCustomerNotSubscribed UsageRecordResultStatus = "CustomerNotSubscribed" UsageRecordResultStatusDuplicateRecord UsageRecordResultStatus = "DuplicateRecord" )
Enum values for UsageRecordResultStatus
func (UsageRecordResultStatus) Values ¶
func (UsageRecordResultStatus) Values() []UsageRecordResultStatus
Values returns all known values for UsageRecordResultStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.
Source Files ¶
- Version
- v0.29.0
- Published
- Oct 31, 2020
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 3 weeks ago –
Tools for package owners.