@aws-sdk/client-marketplace-entitlement-service 3.52.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 +11 -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/index.d.ts +1 -0
- package/dist-types/ts3.4/models/MarketplaceEntitlementServiceServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +17 -13
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
|
|
6
17
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
18
|
|
|
8
19
|
**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
|
}
|
|
@@ -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,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
|
+
}
|
|
@@ -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"
|
|
@@ -105,20 +106,23 @@ export declare namespace GetEntitlementsResult {
|
|
|
105
106
|
const filterSensitiveLog: (obj: GetEntitlementsResult) => any;
|
|
106
107
|
}
|
|
107
108
|
|
|
108
|
-
export
|
|
109
|
-
name: "InternalServiceErrorException";
|
|
110
|
-
$fault: "server";
|
|
111
|
-
|
|
109
|
+
export declare class InternalServiceErrorException extends __BaseException {
|
|
110
|
+
readonly name: "InternalServiceErrorException";
|
|
111
|
+
readonly $fault: "server";
|
|
112
|
+
|
|
113
|
+
constructor(opts: __ExceptionOptionType<InternalServiceErrorException, __BaseException>);
|
|
112
114
|
}
|
|
113
115
|
|
|
114
|
-
export
|
|
115
|
-
name: "InvalidParameterException";
|
|
116
|
-
$fault: "client";
|
|
117
|
-
|
|
116
|
+
export declare class InvalidParameterException extends __BaseException {
|
|
117
|
+
readonly name: "InvalidParameterException";
|
|
118
|
+
readonly $fault: "client";
|
|
119
|
+
|
|
120
|
+
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
|
|
118
121
|
}
|
|
119
122
|
|
|
120
|
-
export
|
|
121
|
-
name: "ThrottlingException";
|
|
122
|
-
$fault: "client";
|
|
123
|
-
|
|
123
|
+
export declare class ThrottlingException extends __BaseException {
|
|
124
|
+
readonly name: "ThrottlingException";
|
|
125
|
+
readonly $fault: "client";
|
|
126
|
+
|
|
127
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
124
128
|
}
|
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",
|
|
@@ -18,34 +18,34 @@
|
|
|
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.
|
|
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
41
|
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.52.0",
|
|
43
43
|
"@aws-sdk/util-body-length-browser": "3.52.0",
|
|
44
44
|
"@aws-sdk/util-body-length-node": "3.52.0",
|
|
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.
|
|
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
49
|
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
50
50
|
"@aws-sdk/util-utf8-node": "3.52.0",
|
|
51
51
|
"tslib": "^2.3.0"
|