@aws-sdk/client-marketplace-entitlement-service 3.50.0 → 3.53.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/MarketplaceEntitlementServiceServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +41 -1
- package/dist-cjs/protocols/Aws_json1_1.js +20 -44
- package/dist-es/index.js +1 -0
- package/dist-es/models/MarketplaceEntitlementServiceServiceException.js +12 -0
- package/dist-es/models/models_0.js +38 -1
- package/dist-es/protocols/Aws_json1_1.js +32 -43
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MarketplaceEntitlementServiceServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +23 -13
- package/dist-types/ts3.4/MarketplaceEntitlementService.d.ts +10 -0
- package/dist-types/ts3.4/MarketplaceEntitlementServiceClient.d.ts +74 -0
- package/dist-types/ts3.4/commands/GetEntitlementsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/MarketplaceEntitlementServiceServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +128 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +5 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-marketplace-entitlement-service
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-marketplace-entitlement-service
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-marketplace-entitlement-service
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceEntitlementServiceServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./MarketplaceEntitlementService"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./MarketplaceEntitlementServiceClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var MarketplaceEntitlementServiceServiceException_1 = require("./models/MarketplaceEntitlementServiceServiceException");
|
|
10
|
+
Object.defineProperty(exports, "MarketplaceEntitlementServiceServiceException", { enumerable: true, get: function () { return MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceEntitlementServiceServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class MarketplaceEntitlementServiceServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, MarketplaceEntitlementServiceServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.MarketplaceEntitlementServiceServiceException = MarketplaceEntitlementServiceServiceException;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetEntitlementsResult = exports.Entitlement = exports.EntitlementValue = exports.GetEntitlementsRequest = exports.GetEntitlementFilterName = void 0;
|
|
3
|
+
exports.ThrottlingException = exports.InvalidParameterException = exports.InternalServiceErrorException = exports.GetEntitlementsResult = exports.Entitlement = exports.EntitlementValue = exports.GetEntitlementsRequest = exports.GetEntitlementFilterName = void 0;
|
|
4
|
+
const MarketplaceEntitlementServiceServiceException_1 = require("./MarketplaceEntitlementServiceServiceException");
|
|
4
5
|
var GetEntitlementFilterName;
|
|
5
6
|
(function (GetEntitlementFilterName) {
|
|
6
7
|
GetEntitlementFilterName["CUSTOMER_IDENTIFIER"] = "CUSTOMER_IDENTIFIER";
|
|
@@ -52,3 +53,42 @@ var GetEntitlementsResult;
|
|
|
52
53
|
...(obj.Entitlements && { Entitlements: obj.Entitlements.map((item) => Entitlement.filterSensitiveLog(item)) }),
|
|
53
54
|
});
|
|
54
55
|
})(GetEntitlementsResult = exports.GetEntitlementsResult || (exports.GetEntitlementsResult = {}));
|
|
56
|
+
class InternalServiceErrorException extends MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException {
|
|
57
|
+
constructor(opts) {
|
|
58
|
+
super({
|
|
59
|
+
name: "InternalServiceErrorException",
|
|
60
|
+
$fault: "server",
|
|
61
|
+
...opts,
|
|
62
|
+
});
|
|
63
|
+
this.name = "InternalServiceErrorException";
|
|
64
|
+
this.$fault = "server";
|
|
65
|
+
Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.InternalServiceErrorException = InternalServiceErrorException;
|
|
69
|
+
class InvalidParameterException extends MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException {
|
|
70
|
+
constructor(opts) {
|
|
71
|
+
super({
|
|
72
|
+
name: "InvalidParameterException",
|
|
73
|
+
$fault: "client",
|
|
74
|
+
...opts,
|
|
75
|
+
});
|
|
76
|
+
this.name = "InvalidParameterException";
|
|
77
|
+
this.$fault = "client";
|
|
78
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
82
|
+
class ThrottlingException extends MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException {
|
|
83
|
+
constructor(opts) {
|
|
84
|
+
super({
|
|
85
|
+
name: "ThrottlingException",
|
|
86
|
+
$fault: "client",
|
|
87
|
+
...opts,
|
|
88
|
+
});
|
|
89
|
+
this.name = "ThrottlingException";
|
|
90
|
+
this.$fault = "client";
|
|
91
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.ThrottlingException = ThrottlingException;
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1GetEntitlementsCommand = exports.serializeAws_json1_1GetEntitlementsCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const MarketplaceEntitlementServiceServiceException_1 = require("../models/MarketplaceEntitlementServiceServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_1GetEntitlementsCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -38,76 +40,49 @@ const deserializeAws_json1_1GetEntitlementsCommandError = async (output, context
|
|
|
38
40
|
switch (errorCode) {
|
|
39
41
|
case "InternalServiceErrorException":
|
|
40
42
|
case "com.amazonaws.marketplaceentitlementservice#InternalServiceErrorException":
|
|
41
|
-
|
|
42
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
43
|
-
name: errorCode,
|
|
44
|
-
$metadata: deserializeMetadata(output),
|
|
45
|
-
};
|
|
46
|
-
break;
|
|
43
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
47
44
|
case "InvalidParameterException":
|
|
48
45
|
case "com.amazonaws.marketplaceentitlementservice#InvalidParameterException":
|
|
49
|
-
|
|
50
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
51
|
-
name: errorCode,
|
|
52
|
-
$metadata: deserializeMetadata(output),
|
|
53
|
-
};
|
|
54
|
-
break;
|
|
46
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
55
47
|
case "ThrottlingException":
|
|
56
48
|
case "com.amazonaws.marketplaceentitlementservice#ThrottlingException":
|
|
57
|
-
|
|
58
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
59
|
-
name: errorCode,
|
|
60
|
-
$metadata: deserializeMetadata(output),
|
|
61
|
-
};
|
|
62
|
-
break;
|
|
49
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
63
50
|
default:
|
|
64
51
|
const parsedBody = parsedOutput.body;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
...parsedBody,
|
|
68
|
-
name: `${errorCode}`,
|
|
69
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
52
|
+
response = new MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException({
|
|
53
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
70
54
|
$fault: "client",
|
|
71
55
|
$metadata: deserializeMetadata(output),
|
|
72
|
-
};
|
|
56
|
+
});
|
|
57
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
73
58
|
}
|
|
74
|
-
const message = response.message || response.Message || errorCode;
|
|
75
|
-
response.message = message;
|
|
76
|
-
delete response.Message;
|
|
77
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
78
59
|
};
|
|
79
60
|
const deserializeAws_json1_1InternalServiceErrorExceptionResponse = async (parsedOutput, context) => {
|
|
80
61
|
const body = parsedOutput.body;
|
|
81
62
|
const deserialized = deserializeAws_json1_1InternalServiceErrorException(body, context);
|
|
82
|
-
const
|
|
83
|
-
name: "InternalServiceErrorException",
|
|
84
|
-
$fault: "server",
|
|
63
|
+
const exception = new models_0_1.InternalServiceErrorException({
|
|
85
64
|
$metadata: deserializeMetadata(parsedOutput),
|
|
86
65
|
...deserialized,
|
|
87
|
-
};
|
|
88
|
-
return
|
|
66
|
+
});
|
|
67
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
89
68
|
};
|
|
90
69
|
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
91
70
|
const body = parsedOutput.body;
|
|
92
71
|
const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
93
|
-
const
|
|
94
|
-
name: "InvalidParameterException",
|
|
95
|
-
$fault: "client",
|
|
72
|
+
const exception = new models_0_1.InvalidParameterException({
|
|
96
73
|
$metadata: deserializeMetadata(parsedOutput),
|
|
97
74
|
...deserialized,
|
|
98
|
-
};
|
|
99
|
-
return
|
|
75
|
+
});
|
|
76
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
100
77
|
};
|
|
101
78
|
const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
102
79
|
const body = parsedOutput.body;
|
|
103
80
|
const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
104
|
-
const
|
|
105
|
-
name: "ThrottlingException",
|
|
106
|
-
$fault: "client",
|
|
81
|
+
const exception = new models_0_1.ThrottlingException({
|
|
107
82
|
$metadata: deserializeMetadata(parsedOutput),
|
|
108
83
|
...deserialized,
|
|
109
|
-
};
|
|
110
|
-
return
|
|
84
|
+
});
|
|
85
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
111
86
|
};
|
|
112
87
|
const serializeAws_json1_1FilterValueList = (input, context) => {
|
|
113
88
|
return input
|
|
@@ -153,7 +128,7 @@ const deserializeAws_json1_1Entitlement = (output, context) => {
|
|
|
153
128
|
};
|
|
154
129
|
};
|
|
155
130
|
const deserializeAws_json1_1EntitlementList = (output, context) => {
|
|
156
|
-
|
|
131
|
+
const retVal = (output || [])
|
|
157
132
|
.filter((e) => e != null)
|
|
158
133
|
.map((entry) => {
|
|
159
134
|
if (entry === null) {
|
|
@@ -161,6 +136,7 @@ const deserializeAws_json1_1EntitlementList = (output, context) => {
|
|
|
161
136
|
}
|
|
162
137
|
return deserializeAws_json1_1Entitlement(entry, context);
|
|
163
138
|
});
|
|
139
|
+
return retVal;
|
|
164
140
|
};
|
|
165
141
|
const deserializeAws_json1_1EntitlementValue = (output, context) => {
|
|
166
142
|
if (smithy_client_1.expectBoolean(output.BooleanValue) !== undefined) {
|
package/dist-es/index.js
CHANGED
|
@@ -2,3 +2,4 @@ export * from "./MarketplaceEntitlementService";
|
|
|
2
2
|
export * from "./MarketplaceEntitlementServiceClient";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./models";
|
|
5
|
+
export { MarketplaceEntitlementServiceServiceException } from "./models/MarketplaceEntitlementServiceServiceException";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var MarketplaceEntitlementServiceServiceException = (function (_super) {
|
|
4
|
+
__extends(MarketplaceEntitlementServiceServiceException, _super);
|
|
5
|
+
function MarketplaceEntitlementServiceServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, MarketplaceEntitlementServiceServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return MarketplaceEntitlementServiceServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { MarketplaceEntitlementServiceServiceException };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { MarketplaceEntitlementServiceServiceException as __BaseException } from "./MarketplaceEntitlementServiceServiceException";
|
|
2
3
|
export var GetEntitlementFilterName;
|
|
3
4
|
(function (GetEntitlementFilterName) {
|
|
4
5
|
GetEntitlementFilterName["CUSTOMER_IDENTIFIER"] = "CUSTOMER_IDENTIFIER";
|
|
@@ -43,3 +44,39 @@ export var GetEntitlementsResult;
|
|
|
43
44
|
(function (GetEntitlementsResult) {
|
|
44
45
|
GetEntitlementsResult.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Entitlements && { Entitlements: obj.Entitlements.map(function (item) { return Entitlement.filterSensitiveLog(item); }) }))); };
|
|
45
46
|
})(GetEntitlementsResult || (GetEntitlementsResult = {}));
|
|
47
|
+
var InternalServiceErrorException = (function (_super) {
|
|
48
|
+
__extends(InternalServiceErrorException, _super);
|
|
49
|
+
function InternalServiceErrorException(opts) {
|
|
50
|
+
var _this = _super.call(this, __assign({ name: "InternalServiceErrorException", $fault: "server" }, opts)) || this;
|
|
51
|
+
_this.name = "InternalServiceErrorException";
|
|
52
|
+
_this.$fault = "server";
|
|
53
|
+
Object.setPrototypeOf(_this, InternalServiceErrorException.prototype);
|
|
54
|
+
return _this;
|
|
55
|
+
}
|
|
56
|
+
return InternalServiceErrorException;
|
|
57
|
+
}(__BaseException));
|
|
58
|
+
export { InternalServiceErrorException };
|
|
59
|
+
var InvalidParameterException = (function (_super) {
|
|
60
|
+
__extends(InvalidParameterException, _super);
|
|
61
|
+
function InvalidParameterException(opts) {
|
|
62
|
+
var _this = _super.call(this, __assign({ name: "InvalidParameterException", $fault: "client" }, opts)) || this;
|
|
63
|
+
_this.name = "InvalidParameterException";
|
|
64
|
+
_this.$fault = "client";
|
|
65
|
+
Object.setPrototypeOf(_this, InvalidParameterException.prototype);
|
|
66
|
+
return _this;
|
|
67
|
+
}
|
|
68
|
+
return InvalidParameterException;
|
|
69
|
+
}(__BaseException));
|
|
70
|
+
export { InvalidParameterException };
|
|
71
|
+
var ThrottlingException = (function (_super) {
|
|
72
|
+
__extends(ThrottlingException, _super);
|
|
73
|
+
function ThrottlingException(opts) {
|
|
74
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
|
|
75
|
+
_this.name = "ThrottlingException";
|
|
76
|
+
_this.$fault = "client";
|
|
77
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
78
|
+
return _this;
|
|
79
|
+
}
|
|
80
|
+
return ThrottlingException;
|
|
81
|
+
}(__BaseException));
|
|
82
|
+
export { ThrottlingException };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { MarketplaceEntitlementServiceServiceException as __BaseException } from "../models/MarketplaceEntitlementServiceServiceException";
|
|
5
|
+
import { InternalServiceErrorException, InvalidParameterException, ThrottlingException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_json1_1GetEntitlementsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var headers, body;
|
|
6
8
|
return __generator(this, function (_a) {
|
|
@@ -31,16 +33,16 @@ export var deserializeAws_json1_1GetEntitlementsCommand = function (output, cont
|
|
|
31
33
|
});
|
|
32
34
|
}); };
|
|
33
35
|
var deserializeAws_json1_1GetEntitlementsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
34
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
35
|
-
var
|
|
36
|
-
return __generator(this, function (
|
|
37
|
-
switch (
|
|
36
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
37
|
+
var _c;
|
|
38
|
+
return __generator(this, function (_d) {
|
|
39
|
+
switch (_d.label) {
|
|
38
40
|
case 0:
|
|
39
41
|
_a = [__assign({}, output)];
|
|
40
|
-
|
|
42
|
+
_c = {};
|
|
41
43
|
return [4, parseBody(output.body, context)];
|
|
42
44
|
case 1:
|
|
43
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
45
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
44
46
|
errorCode = "UnknownError";
|
|
45
47
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
46
48
|
_b = errorCode;
|
|
@@ -53,62 +55,48 @@ var deserializeAws_json1_1GetEntitlementsCommandError = function (output, contex
|
|
|
53
55
|
case "com.amazonaws.marketplaceentitlementservice#ThrottlingException": return [3, 6];
|
|
54
56
|
}
|
|
55
57
|
return [3, 8];
|
|
56
|
-
case 2:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
case
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
case 4:
|
|
63
|
-
_d = [{}];
|
|
64
|
-
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
65
|
-
case 5:
|
|
66
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
67
|
-
return [3, 9];
|
|
68
|
-
case 6:
|
|
69
|
-
_e = [{}];
|
|
70
|
-
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
71
|
-
case 7:
|
|
72
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
73
|
-
return [3, 9];
|
|
58
|
+
case 2: return [4, deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
59
|
+
case 3: throw _d.sent();
|
|
60
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
61
|
+
case 5: throw _d.sent();
|
|
62
|
+
case 6: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
63
|
+
case 7: throw _d.sent();
|
|
74
64
|
case 8:
|
|
75
65
|
parsedBody = parsedOutput.body;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
response
|
|
82
|
-
delete response.Message;
|
|
83
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
66
|
+
response = new __BaseException({
|
|
67
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
68
|
+
$fault: "client",
|
|
69
|
+
$metadata: deserializeMetadata(output),
|
|
70
|
+
});
|
|
71
|
+
throw __decorateServiceException(response, parsedBody);
|
|
84
72
|
}
|
|
85
73
|
});
|
|
86
74
|
}); };
|
|
87
75
|
var deserializeAws_json1_1InternalServiceErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
88
|
-
var body, deserialized,
|
|
76
|
+
var body, deserialized, exception;
|
|
89
77
|
return __generator(this, function (_a) {
|
|
90
78
|
body = parsedOutput.body;
|
|
91
79
|
deserialized = deserializeAws_json1_1InternalServiceErrorException(body, context);
|
|
92
|
-
|
|
93
|
-
return [2,
|
|
80
|
+
exception = new InternalServiceErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
81
|
+
return [2, __decorateServiceException(exception, body)];
|
|
94
82
|
});
|
|
95
83
|
}); };
|
|
96
84
|
var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
97
|
-
var body, deserialized,
|
|
85
|
+
var body, deserialized, exception;
|
|
98
86
|
return __generator(this, function (_a) {
|
|
99
87
|
body = parsedOutput.body;
|
|
100
88
|
deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
101
|
-
|
|
102
|
-
return [2,
|
|
89
|
+
exception = new InvalidParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
90
|
+
return [2, __decorateServiceException(exception, body)];
|
|
103
91
|
});
|
|
104
92
|
}); };
|
|
105
93
|
var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
|
-
var body, deserialized,
|
|
94
|
+
var body, deserialized, exception;
|
|
107
95
|
return __generator(this, function (_a) {
|
|
108
96
|
body = parsedOutput.body;
|
|
109
97
|
deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
110
|
-
|
|
111
|
-
return [2,
|
|
98
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
99
|
+
return [2, __decorateServiceException(exception, body)];
|
|
112
100
|
});
|
|
113
101
|
}); };
|
|
114
102
|
var serializeAws_json1_1FilterValueList = function (input, context) {
|
|
@@ -149,7 +137,7 @@ var deserializeAws_json1_1Entitlement = function (output, context) {
|
|
|
149
137
|
};
|
|
150
138
|
};
|
|
151
139
|
var deserializeAws_json1_1EntitlementList = function (output, context) {
|
|
152
|
-
|
|
140
|
+
var retVal = (output || [])
|
|
153
141
|
.filter(function (e) { return e != null; })
|
|
154
142
|
.map(function (entry) {
|
|
155
143
|
if (entry === null) {
|
|
@@ -157,6 +145,7 @@ var deserializeAws_json1_1EntitlementList = function (output, context) {
|
|
|
157
145
|
}
|
|
158
146
|
return deserializeAws_json1_1Entitlement(entry, context);
|
|
159
147
|
});
|
|
148
|
+
return retVal;
|
|
160
149
|
};
|
|
161
150
|
var deserializeAws_json1_1EntitlementValue = function (output, context) {
|
|
162
151
|
if (__expectBoolean(output.BooleanValue) !== undefined) {
|
package/dist-types/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export * from "./MarketplaceEntitlementService";
|
|
|
2
2
|
export * from "./MarketplaceEntitlementServiceClient";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./models";
|
|
5
|
+
export { MarketplaceEntitlementServiceServiceException } from "./models/MarketplaceEntitlementServiceServiceException";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from MarketplaceEntitlementService service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class MarketplaceEntitlementServiceServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { MarketplaceEntitlementServiceServiceException as __BaseException } from "./MarketplaceEntitlementServiceServiceException";
|
|
2
3
|
export declare enum GetEntitlementFilterName {
|
|
3
4
|
CUSTOMER_IDENTIFIER = "CUSTOMER_IDENTIFIER",
|
|
4
5
|
DIMENSION = "DIMENSION"
|
|
@@ -178,24 +179,33 @@ export declare namespace GetEntitlementsResult {
|
|
|
178
179
|
* <p>An internal error has occurred. Retry your request. If the problem persists, post a
|
|
179
180
|
* message with details on the AWS forums.</p>
|
|
180
181
|
*/
|
|
181
|
-
export
|
|
182
|
-
name: "InternalServiceErrorException";
|
|
183
|
-
$fault: "server";
|
|
184
|
-
|
|
182
|
+
export declare class InternalServiceErrorException extends __BaseException {
|
|
183
|
+
readonly name: "InternalServiceErrorException";
|
|
184
|
+
readonly $fault: "server";
|
|
185
|
+
/**
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
constructor(opts: __ExceptionOptionType<InternalServiceErrorException, __BaseException>);
|
|
185
189
|
}
|
|
186
190
|
/**
|
|
187
191
|
* <p>One or more parameters in your request was invalid.</p>
|
|
188
192
|
*/
|
|
189
|
-
export
|
|
190
|
-
name: "InvalidParameterException";
|
|
191
|
-
$fault: "client";
|
|
192
|
-
|
|
193
|
+
export declare class InvalidParameterException extends __BaseException {
|
|
194
|
+
readonly name: "InvalidParameterException";
|
|
195
|
+
readonly $fault: "client";
|
|
196
|
+
/**
|
|
197
|
+
* @internal
|
|
198
|
+
*/
|
|
199
|
+
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
|
|
193
200
|
}
|
|
194
201
|
/**
|
|
195
202
|
* <p>The calls to the GetEntitlements API are throttled.</p>
|
|
196
203
|
*/
|
|
197
|
-
export
|
|
198
|
-
name: "ThrottlingException";
|
|
199
|
-
$fault: "client";
|
|
200
|
-
|
|
204
|
+
export declare class ThrottlingException extends __BaseException {
|
|
205
|
+
readonly name: "ThrottlingException";
|
|
206
|
+
readonly $fault: "client";
|
|
207
|
+
/**
|
|
208
|
+
* @internal
|
|
209
|
+
*/
|
|
210
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
201
211
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { GetEntitlementsCommandInput, GetEntitlementsCommandOutput } from "./commands/GetEntitlementsCommand";
|
|
3
|
+
import { MarketplaceEntitlementServiceClient } from "./MarketplaceEntitlementServiceClient";
|
|
4
|
+
|
|
5
|
+
export declare class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient {
|
|
6
|
+
|
|
7
|
+
getEntitlements(args: GetEntitlementsCommandInput, options?: __HttpHandlerOptions): Promise<GetEntitlementsCommandOutput>;
|
|
8
|
+
getEntitlements(args: GetEntitlementsCommandInput, cb: (err: any, data?: GetEntitlementsCommandOutput) => void): void;
|
|
9
|
+
getEntitlements(args: GetEntitlementsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEntitlementsCommandOutput) => void): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { GetEntitlementsCommandInput, GetEntitlementsCommandOutput } from "./commands/GetEntitlementsCommand";
|
|
10
|
+
export declare type ServiceInputTypes = GetEntitlementsCommandInput;
|
|
11
|
+
export declare type ServiceOutputTypes = GetEntitlementsCommandOutput;
|
|
12
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
13
|
+
|
|
14
|
+
requestHandler?: __HttpHandler;
|
|
15
|
+
|
|
16
|
+
sha256?: __HashConstructor;
|
|
17
|
+
|
|
18
|
+
urlParser?: __UrlParser;
|
|
19
|
+
|
|
20
|
+
bodyLengthChecker?: (body: any) => number | undefined;
|
|
21
|
+
|
|
22
|
+
streamCollector?: __StreamCollector;
|
|
23
|
+
|
|
24
|
+
base64Decoder?: __Decoder;
|
|
25
|
+
|
|
26
|
+
base64Encoder?: __Encoder;
|
|
27
|
+
|
|
28
|
+
utf8Decoder?: __Decoder;
|
|
29
|
+
|
|
30
|
+
utf8Encoder?: __Encoder;
|
|
31
|
+
|
|
32
|
+
runtime?: string;
|
|
33
|
+
|
|
34
|
+
disableHostPrefix?: boolean;
|
|
35
|
+
|
|
36
|
+
maxAttempts?: number | __Provider<number>;
|
|
37
|
+
|
|
38
|
+
retryMode?: string | __Provider<string>;
|
|
39
|
+
|
|
40
|
+
logger?: __Logger;
|
|
41
|
+
|
|
42
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
43
|
+
|
|
44
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
45
|
+
|
|
46
|
+
serviceId?: string;
|
|
47
|
+
|
|
48
|
+
region?: string | __Provider<string>;
|
|
49
|
+
|
|
50
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
51
|
+
|
|
52
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
53
|
+
|
|
54
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
55
|
+
|
|
56
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
57
|
+
}
|
|
58
|
+
declare type MarketplaceEntitlementServiceClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
59
|
+
|
|
60
|
+
export interface MarketplaceEntitlementServiceClientConfig extends MarketplaceEntitlementServiceClientConfigType {
|
|
61
|
+
}
|
|
62
|
+
declare type MarketplaceEntitlementServiceClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
63
|
+
|
|
64
|
+
export interface MarketplaceEntitlementServiceClientResolvedConfig extends MarketplaceEntitlementServiceClientResolvedConfigType {
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export declare class MarketplaceEntitlementServiceClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, MarketplaceEntitlementServiceClientResolvedConfig> {
|
|
68
|
+
|
|
69
|
+
readonly config: MarketplaceEntitlementServiceClientResolvedConfig;
|
|
70
|
+
constructor(configuration: MarketplaceEntitlementServiceClientConfig);
|
|
71
|
+
|
|
72
|
+
destroy(): void;
|
|
73
|
+
}
|
|
74
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { MarketplaceEntitlementServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MarketplaceEntitlementServiceClient";
|
|
4
|
+
import { GetEntitlementsRequest, GetEntitlementsResult } from "../models/models_0";
|
|
5
|
+
export interface GetEntitlementsCommandInput extends GetEntitlementsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetEntitlementsCommandOutput extends GetEntitlementsResult, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class GetEntitlementsCommand extends $Command<GetEntitlementsCommandInput, GetEntitlementsCommandOutput, MarketplaceEntitlementServiceClientResolvedConfig> {
|
|
11
|
+
readonly input: GetEntitlementsCommandInput;
|
|
12
|
+
constructor(input: GetEntitlementsCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MarketplaceEntitlementServiceClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetEntitlementsCommandInput, GetEntitlementsCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GetEntitlementsCommand";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./MarketplaceEntitlementService";
|
|
2
|
+
export * from "./MarketplaceEntitlementServiceClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
|
5
|
+
export { MarketplaceEntitlementServiceServiceException } from "./models/MarketplaceEntitlementServiceServiceException";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class MarketplaceEntitlementServiceServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { MarketplaceEntitlementServiceServiceException as __BaseException } from "./MarketplaceEntitlementServiceServiceException";
|
|
3
|
+
export declare enum GetEntitlementFilterName {
|
|
4
|
+
CUSTOMER_IDENTIFIER = "CUSTOMER_IDENTIFIER",
|
|
5
|
+
DIMENSION = "DIMENSION"
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface GetEntitlementsRequest {
|
|
9
|
+
|
|
10
|
+
ProductCode: string | undefined;
|
|
11
|
+
|
|
12
|
+
Filter?: {
|
|
13
|
+
[key: string]: string[];
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
NextToken?: string;
|
|
17
|
+
|
|
18
|
+
MaxResults?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace GetEntitlementsRequest {
|
|
21
|
+
|
|
22
|
+
const filterSensitiveLog: (obj: GetEntitlementsRequest) => any;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare type EntitlementValue = EntitlementValue.BooleanValueMember | EntitlementValue.DoubleValueMember | EntitlementValue.IntegerValueMember | EntitlementValue.StringValueMember | EntitlementValue.$UnknownMember;
|
|
26
|
+
export declare namespace EntitlementValue {
|
|
27
|
+
|
|
28
|
+
interface IntegerValueMember {
|
|
29
|
+
IntegerValue: number;
|
|
30
|
+
DoubleValue?: never;
|
|
31
|
+
BooleanValue?: never;
|
|
32
|
+
StringValue?: never;
|
|
33
|
+
$unknown?: never;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface DoubleValueMember {
|
|
37
|
+
IntegerValue?: never;
|
|
38
|
+
DoubleValue: number;
|
|
39
|
+
BooleanValue?: never;
|
|
40
|
+
StringValue?: never;
|
|
41
|
+
$unknown?: never;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface BooleanValueMember {
|
|
45
|
+
IntegerValue?: never;
|
|
46
|
+
DoubleValue?: never;
|
|
47
|
+
BooleanValue: boolean;
|
|
48
|
+
StringValue?: never;
|
|
49
|
+
$unknown?: never;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
interface StringValueMember {
|
|
53
|
+
IntegerValue?: never;
|
|
54
|
+
DoubleValue?: never;
|
|
55
|
+
BooleanValue?: never;
|
|
56
|
+
StringValue: string;
|
|
57
|
+
$unknown?: never;
|
|
58
|
+
}
|
|
59
|
+
interface $UnknownMember {
|
|
60
|
+
IntegerValue?: never;
|
|
61
|
+
DoubleValue?: never;
|
|
62
|
+
BooleanValue?: never;
|
|
63
|
+
StringValue?: never;
|
|
64
|
+
$unknown: [
|
|
65
|
+
string,
|
|
66
|
+
any
|
|
67
|
+
];
|
|
68
|
+
}
|
|
69
|
+
interface Visitor<T> {
|
|
70
|
+
IntegerValue: (value: number) => T;
|
|
71
|
+
DoubleValue: (value: number) => T;
|
|
72
|
+
BooleanValue: (value: boolean) => T;
|
|
73
|
+
StringValue: (value: string) => T;
|
|
74
|
+
_: (name: string, value: any) => T;
|
|
75
|
+
}
|
|
76
|
+
const visit: <T>(value: EntitlementValue, visitor: Visitor<T>) => T;
|
|
77
|
+
|
|
78
|
+
const filterSensitiveLog: (obj: EntitlementValue) => any;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface Entitlement {
|
|
82
|
+
|
|
83
|
+
ProductCode?: string;
|
|
84
|
+
|
|
85
|
+
Dimension?: string;
|
|
86
|
+
|
|
87
|
+
CustomerIdentifier?: string;
|
|
88
|
+
|
|
89
|
+
Value?: EntitlementValue;
|
|
90
|
+
|
|
91
|
+
ExpirationDate?: Date;
|
|
92
|
+
}
|
|
93
|
+
export declare namespace Entitlement {
|
|
94
|
+
|
|
95
|
+
const filterSensitiveLog: (obj: Entitlement) => any;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface GetEntitlementsResult {
|
|
99
|
+
|
|
100
|
+
Entitlements?: Entitlement[];
|
|
101
|
+
|
|
102
|
+
NextToken?: string;
|
|
103
|
+
}
|
|
104
|
+
export declare namespace GetEntitlementsResult {
|
|
105
|
+
|
|
106
|
+
const filterSensitiveLog: (obj: GetEntitlementsResult) => any;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare class InternalServiceErrorException extends __BaseException {
|
|
110
|
+
readonly name: "InternalServiceErrorException";
|
|
111
|
+
readonly $fault: "server";
|
|
112
|
+
|
|
113
|
+
constructor(opts: __ExceptionOptionType<InternalServiceErrorException, __BaseException>);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export declare class InvalidParameterException extends __BaseException {
|
|
117
|
+
readonly name: "InvalidParameterException";
|
|
118
|
+
readonly $fault: "client";
|
|
119
|
+
|
|
120
|
+
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export declare class ThrottlingException extends __BaseException {
|
|
124
|
+
readonly name: "ThrottlingException";
|
|
125
|
+
readonly $fault: "client";
|
|
126
|
+
|
|
127
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
128
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
+
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
|
+
import { GetEntitlementsCommandInput, GetEntitlementsCommandOutput } from "../commands/GetEntitlementsCommand";
|
|
4
|
+
export declare const serializeAws_json1_1GetEntitlementsCommand: (input: GetEntitlementsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
5
|
+
export declare const deserializeAws_json1_1GetEntitlementsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetEntitlementsCommandOutput>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
|
+
import { MarketplaceEntitlementServiceClientConfig } from "./MarketplaceEntitlementServiceClient";
|
|
3
|
+
|
|
4
|
+
export declare const getRuntimeConfig: (config: MarketplaceEntitlementServiceClientConfig) => {
|
|
5
|
+
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
13
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
16
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
17
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
18
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
19
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
21
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
22
|
+
apiVersion: string;
|
|
23
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
24
|
+
disableHostPrefix: boolean;
|
|
25
|
+
logger: import("@aws-sdk/types").Logger;
|
|
26
|
+
serviceId: string;
|
|
27
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
28
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
29
|
+
tls?: boolean | undefined;
|
|
30
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
31
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
32
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
33
|
+
signingEscapePath?: boolean | undefined;
|
|
34
|
+
systemClockOffset?: number | undefined;
|
|
35
|
+
signingRegion?: string | undefined;
|
|
36
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
37
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
|
+
import { MarketplaceEntitlementServiceClientConfig } from "./MarketplaceEntitlementServiceClient";
|
|
3
|
+
|
|
4
|
+
export declare const getRuntimeConfig: (config: MarketplaceEntitlementServiceClientConfig) => {
|
|
5
|
+
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
13
|
+
region: string | import("@aws-sdk/types").Provider<string>;
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
16
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
17
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
18
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
19
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
21
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
22
|
+
apiVersion: string;
|
|
23
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
24
|
+
disableHostPrefix: boolean;
|
|
25
|
+
logger: import("@aws-sdk/types").Logger;
|
|
26
|
+
serviceId: string;
|
|
27
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
28
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
29
|
+
tls?: boolean | undefined;
|
|
30
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
31
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
32
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
33
|
+
signingEscapePath?: boolean | undefined;
|
|
34
|
+
systemClockOffset?: number | undefined;
|
|
35
|
+
signingRegion?: string | undefined;
|
|
36
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
37
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
38
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { MarketplaceEntitlementServiceClientConfig } from "./MarketplaceEntitlementServiceClient";
|
|
2
|
+
|
|
3
|
+
export declare const getRuntimeConfig: (config: MarketplaceEntitlementServiceClientConfig) => {
|
|
4
|
+
runtime: string;
|
|
5
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
6
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
9
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
10
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
11
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
12
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
13
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
14
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
15
|
+
disableHostPrefix: boolean;
|
|
16
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
17
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
18
|
+
logger: import("@aws-sdk/types").Logger;
|
|
19
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
|
+
serviceId: string;
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
|
|
23
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
27
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
|
+
tls?: boolean | undefined;
|
|
29
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
30
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
31
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
32
|
+
signingEscapePath?: boolean | undefined;
|
|
33
|
+
systemClockOffset?: number | undefined;
|
|
34
|
+
signingRegion?: string | undefined;
|
|
35
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
36
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
37
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
|
+
import { MarketplaceEntitlementServiceClientConfig } from "./MarketplaceEntitlementServiceClient";
|
|
3
|
+
|
|
4
|
+
export declare const getRuntimeConfig: (config: MarketplaceEntitlementServiceClientConfig) => {
|
|
5
|
+
apiVersion: string;
|
|
6
|
+
disableHostPrefix: boolean;
|
|
7
|
+
logger: __Logger;
|
|
8
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
9
|
+
serviceId: string;
|
|
10
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-entitlement-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Entitlement Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.53.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",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "rimraf ./dist-*"
|
|
12
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
|
|
13
13
|
},
|
|
14
14
|
"main": "./dist-cjs/index.js",
|
|
15
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -18,40 +18,40 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.53.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.53.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.53.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.53.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.53.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.53.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.53.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.53.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.53.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.53.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.53.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.53.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.53.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.53.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.53.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.53.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.53.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.53.0",
|
|
39
|
+
"@aws-sdk/types": "3.53.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.53.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.52.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.52.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.52.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.53.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.53.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.53.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.53.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.52.0",
|
|
51
51
|
"tslib": "^2.3.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.52.0",
|
|
55
55
|
"@tsconfig/recommended": "1.0.1",
|
|
56
56
|
"@types/node": "^12.7.5",
|
|
57
57
|
"concurrently": "7.0.0",
|