@aws-sdk/client-marketplace-metering 3.288.0 → 3.290.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -55,6 +55,43 @@ export interface BatchMeterUsageCommandOutput extends BatchMeterUsageResult, __M
|
|
|
55
55
|
* @see {@link BatchMeterUsageCommandOutput} for command's `response` shape.
|
|
56
56
|
* @see {@link MarketplaceMeteringClientResolvedConfig | config} for MarketplaceMeteringClient's `config` shape.
|
|
57
57
|
*
|
|
58
|
+
* @throws {@link DisabledApiException} (client fault)
|
|
59
|
+
* <p>The API is disabled in the Region.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServiceErrorException} (server fault)
|
|
62
|
+
* <p>An internal error has occurred. Retry your request. If the problem persists, post a
|
|
63
|
+
* message with details on the AWS forums.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link InvalidCustomerIdentifierException} (client fault)
|
|
66
|
+
* <p>You have metered usage for a <code>CustomerIdentifier</code> that does not
|
|
67
|
+
* exist.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link InvalidProductCodeException} (client fault)
|
|
70
|
+
* <p>The product code passed does not match the product code used for publishing the
|
|
71
|
+
* product.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link InvalidTagException} (client fault)
|
|
74
|
+
* <p>The tag is invalid, or the number of tags is greater than 5.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link InvalidUsageAllocationsException} (client fault)
|
|
77
|
+
* <p>The usage allocation objects are invalid, or the number of allocations is greater than
|
|
78
|
+
* 500 for a single usage record.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link InvalidUsageDimensionException} (client fault)
|
|
81
|
+
* <p>The usage dimension does not match one of the <code>UsageDimensions</code> associated
|
|
82
|
+
* with products.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
85
|
+
* <p>The calls to the API are throttled.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link TimestampOutOfBoundsException} (client fault)
|
|
88
|
+
* <p>The <code>timestamp</code> value passed in the <code>UsageRecord</code> is out of
|
|
89
|
+
* allowed range.</p>
|
|
90
|
+
* <p>For <code>BatchMeterUsage</code>, if any of the records are outside of the allowed
|
|
91
|
+
* range, the entire batch is not processed. You must remove invalid records and try
|
|
92
|
+
* again.</p>
|
|
93
|
+
*
|
|
94
|
+
*
|
|
58
95
|
*/
|
|
59
96
|
export declare class BatchMeterUsageCommand extends $Command<BatchMeterUsageCommandInput, BatchMeterUsageCommandOutput, MarketplaceMeteringClientResolvedConfig> {
|
|
60
97
|
readonly input: BatchMeterUsageCommandInput;
|
|
@@ -39,6 +39,50 @@ export interface MeterUsageCommandOutput extends MeterUsageResult, __MetadataBea
|
|
|
39
39
|
* @see {@link MeterUsageCommandOutput} for command's `response` shape.
|
|
40
40
|
* @see {@link MarketplaceMeteringClientResolvedConfig | config} for MarketplaceMeteringClient's `config` shape.
|
|
41
41
|
*
|
|
42
|
+
* @throws {@link CustomerNotEntitledException} (client fault)
|
|
43
|
+
* <p>Exception thrown when the customer does not have a valid subscription for the
|
|
44
|
+
* product.</p>
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link DuplicateRequestException} (client fault)
|
|
47
|
+
* <p>A metering record has already been emitted by the same EC2 instance, ECS task, or EKS
|
|
48
|
+
* pod for the given {<code>usageDimension</code>, <code>timestamp</code>} with a different
|
|
49
|
+
* <code>usageQuantity</code>.</p>
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link InternalServiceErrorException} (server fault)
|
|
52
|
+
* <p>An internal error has occurred. Retry your request. If the problem persists, post a
|
|
53
|
+
* message with details on the AWS forums.</p>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link InvalidEndpointRegionException} (client fault)
|
|
56
|
+
* <p>The endpoint being called is in a AWS Region different from your EC2 instance, ECS
|
|
57
|
+
* task, or EKS pod. The Region of the Metering Service endpoint and the AWS Region of the
|
|
58
|
+
* resource must match.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link InvalidProductCodeException} (client fault)
|
|
61
|
+
* <p>The product code passed does not match the product code used for publishing the
|
|
62
|
+
* product.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InvalidTagException} (client fault)
|
|
65
|
+
* <p>The tag is invalid, or the number of tags is greater than 5.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InvalidUsageAllocationsException} (client fault)
|
|
68
|
+
* <p>The usage allocation objects are invalid, or the number of allocations is greater than
|
|
69
|
+
* 500 for a single usage record.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InvalidUsageDimensionException} (client fault)
|
|
72
|
+
* <p>The usage dimension does not match one of the <code>UsageDimensions</code> associated
|
|
73
|
+
* with products.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
76
|
+
* <p>The calls to the API are throttled.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link TimestampOutOfBoundsException} (client fault)
|
|
79
|
+
* <p>The <code>timestamp</code> value passed in the <code>UsageRecord</code> is out of
|
|
80
|
+
* allowed range.</p>
|
|
81
|
+
* <p>For <code>BatchMeterUsage</code>, if any of the records are outside of the allowed
|
|
82
|
+
* range, the entire batch is not processed. You must remove invalid records and try
|
|
83
|
+
* again.</p>
|
|
84
|
+
*
|
|
85
|
+
*
|
|
42
86
|
*/
|
|
43
87
|
export declare class MeterUsageCommand extends $Command<MeterUsageCommandInput, MeterUsageCommandOutput, MarketplaceMeteringClientResolvedConfig> {
|
|
44
88
|
readonly input: MeterUsageCommandInput;
|
|
@@ -68,6 +68,38 @@ export interface RegisterUsageCommandOutput extends RegisterUsageResult, __Metad
|
|
|
68
68
|
* @see {@link RegisterUsageCommandOutput} for command's `response` shape.
|
|
69
69
|
* @see {@link MarketplaceMeteringClientResolvedConfig | config} for MarketplaceMeteringClient's `config` shape.
|
|
70
70
|
*
|
|
71
|
+
* @throws {@link CustomerNotEntitledException} (client fault)
|
|
72
|
+
* <p>Exception thrown when the customer does not have a valid subscription for the
|
|
73
|
+
* product.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link DisabledApiException} (client fault)
|
|
76
|
+
* <p>The API is disabled in the Region.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalServiceErrorException} (server fault)
|
|
79
|
+
* <p>An internal error has occurred. Retry your request. If the problem persists, post a
|
|
80
|
+
* message with details on the AWS forums.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link InvalidProductCodeException} (client fault)
|
|
83
|
+
* <p>The product code passed does not match the product code used for publishing the
|
|
84
|
+
* product.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link InvalidPublicKeyVersionException} (client fault)
|
|
87
|
+
* <p>Public Key version is invalid.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link InvalidRegionException} (client fault)
|
|
90
|
+
* <p>
|
|
91
|
+
* <code>RegisterUsage</code> must be called in the same AWS Region the ECS task was
|
|
92
|
+
* launched in. This prevents a container from hardcoding a Region (e.g.
|
|
93
|
+
* withRegion(“us-east-1”) when calling <code>RegisterUsage</code>.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link PlatformNotSupportedException} (client fault)
|
|
96
|
+
* <p>AWS Marketplace does not support metering usage from the underlying platform.
|
|
97
|
+
* Currently, Amazon ECS, Amazon EKS, and AWS Fargate are supported.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
100
|
+
* <p>The calls to the API are throttled.</p>
|
|
101
|
+
*
|
|
102
|
+
*
|
|
71
103
|
*/
|
|
72
104
|
export declare class RegisterUsageCommand extends $Command<RegisterUsageCommandInput, RegisterUsageCommandOutput, MarketplaceMeteringClientResolvedConfig> {
|
|
73
105
|
readonly input: RegisterUsageCommandInput;
|
|
@@ -42,6 +42,27 @@ export interface ResolveCustomerCommandOutput extends ResolveCustomerResult, __M
|
|
|
42
42
|
* @see {@link ResolveCustomerCommandOutput} for command's `response` shape.
|
|
43
43
|
* @see {@link MarketplaceMeteringClientResolvedConfig | config} for MarketplaceMeteringClient's `config` shape.
|
|
44
44
|
*
|
|
45
|
+
* @throws {@link DisabledApiException} (client fault)
|
|
46
|
+
* <p>The API is disabled in the Region.</p>
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link ExpiredTokenException} (client fault)
|
|
49
|
+
* <p>The submitted registration token has expired. This can happen if the buyer's browser
|
|
50
|
+
* takes too long to redirect to your page, the buyer has resubmitted the registration
|
|
51
|
+
* token, or your application has held on to the registration token for too long. Your SaaS
|
|
52
|
+
* registration website should redeem this token as soon as it is submitted by the buyer's
|
|
53
|
+
* browser.</p>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link InternalServiceErrorException} (server fault)
|
|
56
|
+
* <p>An internal error has occurred. Retry your request. If the problem persists, post a
|
|
57
|
+
* message with details on the AWS forums.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link InvalidTokenException} (client fault)
|
|
60
|
+
* <p>Registration token is invalid.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
63
|
+
* <p>The calls to the API are throttled.</p>
|
|
64
|
+
*
|
|
65
|
+
*
|
|
45
66
|
*/
|
|
46
67
|
export declare class ResolveCustomerCommand extends $Command<ResolveCustomerCommandInput, ResolveCustomerCommandOutput, MarketplaceMeteringClientResolvedConfig> {
|
|
47
68
|
readonly input: ResolveCustomerCommandInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-metering",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Metering Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.290.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,37 +20,37 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
34
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
-
"@aws-sdk/middleware-serde": "3.
|
|
36
|
-
"@aws-sdk/middleware-signing": "3.
|
|
37
|
-
"@aws-sdk/middleware-stack": "3.
|
|
38
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
-
"@aws-sdk/protocol-http": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.290.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.290.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.290.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.290.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.290.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.290.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.290.0",
|
|
30
|
+
"@aws-sdk/middleware-endpoint": "3.290.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.290.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.290.0",
|
|
33
|
+
"@aws-sdk/middleware-recursion-detection": "3.290.0",
|
|
34
|
+
"@aws-sdk/middleware-retry": "3.290.0",
|
|
35
|
+
"@aws-sdk/middleware-serde": "3.290.0",
|
|
36
|
+
"@aws-sdk/middleware-signing": "3.290.0",
|
|
37
|
+
"@aws-sdk/middleware-stack": "3.290.0",
|
|
38
|
+
"@aws-sdk/middleware-user-agent": "3.290.0",
|
|
39
|
+
"@aws-sdk/node-config-provider": "3.290.0",
|
|
40
|
+
"@aws-sdk/node-http-handler": "3.290.0",
|
|
41
|
+
"@aws-sdk/protocol-http": "3.290.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.290.0",
|
|
43
|
+
"@aws-sdk/types": "3.290.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.290.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.208.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.290.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.290.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.290.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.290.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.290.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.290.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.254.0",
|
|
55
55
|
"tslib": "^2.3.1"
|
|
56
56
|
},
|