github.com/aavshr/aws-sdk-go@v1.41.3/service/marketplacemetering/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package marketplacemetering 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeCustomerNotEntitledException for service response error code 12 // "CustomerNotEntitledException". 13 // 14 // Exception thrown when the customer does not have a valid subscription for 15 // the product. 16 ErrCodeCustomerNotEntitledException = "CustomerNotEntitledException" 17 18 // ErrCodeDisabledApiException for service response error code 19 // "DisabledApiException". 20 // 21 // The API is disabled in the Region. 22 ErrCodeDisabledApiException = "DisabledApiException" 23 24 // ErrCodeDuplicateRequestException for service response error code 25 // "DuplicateRequestException". 26 // 27 // A metering record has already been emitted by the same EC2 instance, ECS 28 // task, or EKS pod for the given {usageDimension, timestamp} with a different 29 // usageQuantity. 30 ErrCodeDuplicateRequestException = "DuplicateRequestException" 31 32 // ErrCodeExpiredTokenException for service response error code 33 // "ExpiredTokenException". 34 // 35 // The submitted registration token has expired. This can happen if the buyer's 36 // browser takes too long to redirect to your page, the buyer has resubmitted 37 // the registration token, or your application has held on to the registration 38 // token for too long. Your SaaS registration website should redeem this token 39 // as soon as it is submitted by the buyer's browser. 40 ErrCodeExpiredTokenException = "ExpiredTokenException" 41 42 // ErrCodeInternalServiceErrorException for service response error code 43 // "InternalServiceErrorException". 44 // 45 // An internal error has occurred. Retry your request. If the problem persists, 46 // post a message with details on the AWS forums. 47 ErrCodeInternalServiceErrorException = "InternalServiceErrorException" 48 49 // ErrCodeInvalidCustomerIdentifierException for service response error code 50 // "InvalidCustomerIdentifierException". 51 // 52 // You have metered usage for a CustomerIdentifier that does not exist. 53 ErrCodeInvalidCustomerIdentifierException = "InvalidCustomerIdentifierException" 54 55 // ErrCodeInvalidEndpointRegionException for service response error code 56 // "InvalidEndpointRegionException". 57 // 58 // The endpoint being called is in a AWS Region different from your EC2 instance, 59 // ECS task, or EKS pod. The Region of the Metering Service endpoint and the 60 // AWS Region of the resource must match. 61 ErrCodeInvalidEndpointRegionException = "InvalidEndpointRegionException" 62 63 // ErrCodeInvalidProductCodeException for service response error code 64 // "InvalidProductCodeException". 65 // 66 // The product code passed does not match the product code used for publishing 67 // the product. 68 ErrCodeInvalidProductCodeException = "InvalidProductCodeException" 69 70 // ErrCodeInvalidPublicKeyVersionException for service response error code 71 // "InvalidPublicKeyVersionException". 72 // 73 // Public Key version is invalid. 74 ErrCodeInvalidPublicKeyVersionException = "InvalidPublicKeyVersionException" 75 76 // ErrCodeInvalidRegionException for service response error code 77 // "InvalidRegionException". 78 // 79 // RegisterUsage must be called in the same AWS Region the ECS task was launched 80 // in. This prevents a container from hardcoding a Region (e.g. withRegion(“us-east-1”) 81 // when calling RegisterUsage. 82 ErrCodeInvalidRegionException = "InvalidRegionException" 83 84 // ErrCodeInvalidTagException for service response error code 85 // "InvalidTagException". 86 // 87 // The tag is invalid, or the number of tags is greater than 5. 88 ErrCodeInvalidTagException = "InvalidTagException" 89 90 // ErrCodeInvalidTokenException for service response error code 91 // "InvalidTokenException". 92 // 93 // Registration token is invalid. 94 ErrCodeInvalidTokenException = "InvalidTokenException" 95 96 // ErrCodeInvalidUsageAllocationsException for service response error code 97 // "InvalidUsageAllocationsException". 98 // 99 // The usage allocation objects are invalid, or the number of allocations is 100 // greater than 500 for a single usage record. 101 ErrCodeInvalidUsageAllocationsException = "InvalidUsageAllocationsException" 102 103 // ErrCodeInvalidUsageDimensionException for service response error code 104 // "InvalidUsageDimensionException". 105 // 106 // The usage dimension does not match one of the UsageDimensions associated 107 // with products. 108 ErrCodeInvalidUsageDimensionException = "InvalidUsageDimensionException" 109 110 // ErrCodePlatformNotSupportedException for service response error code 111 // "PlatformNotSupportedException". 112 // 113 // AWS Marketplace does not support metering usage from the underlying platform. 114 // Currently, Amazon ECS, Amazon EKS, and AWS Fargate are supported. 115 ErrCodePlatformNotSupportedException = "PlatformNotSupportedException" 116 117 // ErrCodeThrottlingException for service response error code 118 // "ThrottlingException". 119 // 120 // The calls to the API are throttled. 121 ErrCodeThrottlingException = "ThrottlingException" 122 123 // ErrCodeTimestampOutOfBoundsException for service response error code 124 // "TimestampOutOfBoundsException". 125 // 126 // The timestamp value passed in the meterUsage() is out of allowed range. 127 ErrCodeTimestampOutOfBoundsException = "TimestampOutOfBoundsException" 128 ) 129 130 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 131 "CustomerNotEntitledException": newErrorCustomerNotEntitledException, 132 "DisabledApiException": newErrorDisabledApiException, 133 "DuplicateRequestException": newErrorDuplicateRequestException, 134 "ExpiredTokenException": newErrorExpiredTokenException, 135 "InternalServiceErrorException": newErrorInternalServiceErrorException, 136 "InvalidCustomerIdentifierException": newErrorInvalidCustomerIdentifierException, 137 "InvalidEndpointRegionException": newErrorInvalidEndpointRegionException, 138 "InvalidProductCodeException": newErrorInvalidProductCodeException, 139 "InvalidPublicKeyVersionException": newErrorInvalidPublicKeyVersionException, 140 "InvalidRegionException": newErrorInvalidRegionException, 141 "InvalidTagException": newErrorInvalidTagException, 142 "InvalidTokenException": newErrorInvalidTokenException, 143 "InvalidUsageAllocationsException": newErrorInvalidUsageAllocationsException, 144 "InvalidUsageDimensionException": newErrorInvalidUsageDimensionException, 145 "PlatformNotSupportedException": newErrorPlatformNotSupportedException, 146 "ThrottlingException": newErrorThrottlingException, 147 "TimestampOutOfBoundsException": newErrorTimestampOutOfBoundsException, 148 }