@aws-sdk/client-support 3.183.0 → 3.186.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/Support.js +65 -58
  4. package/dist-es/SupportClient.js +28 -22
  5. package/dist-es/commands/AddAttachmentsToSetCommand.js +28 -21
  6. package/dist-es/commands/AddCommunicationToCaseCommand.js +28 -21
  7. package/dist-es/commands/CreateCaseCommand.js +28 -21
  8. package/dist-es/commands/DescribeAttachmentCommand.js +28 -21
  9. package/dist-es/commands/DescribeCasesCommand.js +28 -21
  10. package/dist-es/commands/DescribeCommunicationsCommand.js +28 -21
  11. package/dist-es/commands/DescribeServicesCommand.js +28 -21
  12. package/dist-es/commands/DescribeSeverityLevelsCommand.js +28 -21
  13. package/dist-es/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.js +28 -21
  14. package/dist-es/commands/DescribeTrustedAdvisorCheckResultCommand.js +28 -21
  15. package/dist-es/commands/DescribeTrustedAdvisorCheckSummariesCommand.js +28 -21
  16. package/dist-es/commands/DescribeTrustedAdvisorChecksCommand.js +28 -21
  17. package/dist-es/commands/RefreshTrustedAdvisorCheckCommand.js +28 -21
  18. package/dist-es/commands/ResolveCaseCommand.js +28 -21
  19. package/dist-es/endpoints.js +8 -8
  20. package/dist-es/models/SupportServiceException.js +10 -5
  21. package/dist-es/models/models_0.js +144 -231
  22. package/dist-es/pagination/DescribeCasesPaginator.js +68 -25
  23. package/dist-es/pagination/DescribeCommunicationsPaginator.js +68 -25
  24. package/dist-es/protocols/Aws_json1_1.js +1212 -950
  25. package/dist-es/runtimeConfig.browser.js +12 -26
  26. package/dist-es/runtimeConfig.js +12 -30
  27. package/dist-es/runtimeConfig.native.js +5 -8
  28. package/dist-es/runtimeConfig.shared.js +11 -8
  29. package/package.json +33 -33
@@ -1,5 +1,6 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
+ var regionHash = {
3
4
  "aws-cn-global": {
4
5
  variants: [
5
6
  {
@@ -46,7 +47,7 @@ const regionHash = {
46
47
  signingRegion: "us-gov-west-1",
47
48
  },
48
49
  };
49
- const partitionHash = {
50
+ var partitionHash = {
50
51
  aws: {
51
52
  regions: [
52
53
  "af-south-1",
@@ -167,9 +168,8 @@ const partitionHash = {
167
168
  ],
168
169
  },
169
170
  };
170
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
171
- ...options,
172
- signingService: "support",
173
- regionHash,
174
- partitionHash,
175
- });
171
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
172
+ return __generator(this, function (_a) {
173
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "support", regionHash: regionHash, partitionHash: partitionHash }))];
174
+ });
175
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class SupportServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, SupportServiceException.prototype);
3
+ var SupportServiceException = (function (_super) {
4
+ __extends(SupportServiceException, _super);
5
+ function SupportServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, SupportServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return SupportServiceException;
11
+ }(__ServiceException));
12
+ export { SupportServiceException };
@@ -1,241 +1,154 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { SupportServiceException as __BaseException } from "./SupportServiceException";
2
- export class AttachmentLimitExceeded extends __BaseException {
3
- constructor(opts) {
4
- super({
5
- name: "AttachmentLimitExceeded",
6
- $fault: "client",
7
- ...opts,
8
- });
9
- this.name = "AttachmentLimitExceeded";
10
- this.$fault = "client";
11
- Object.setPrototypeOf(this, AttachmentLimitExceeded.prototype);
3
+ var AttachmentLimitExceeded = (function (_super) {
4
+ __extends(AttachmentLimitExceeded, _super);
5
+ function AttachmentLimitExceeded(opts) {
6
+ var _this = _super.call(this, __assign({ name: "AttachmentLimitExceeded", $fault: "client" }, opts)) || this;
7
+ _this.name = "AttachmentLimitExceeded";
8
+ _this.$fault = "client";
9
+ Object.setPrototypeOf(_this, AttachmentLimitExceeded.prototype);
10
+ return _this;
12
11
  }
13
- }
14
- export class AttachmentSetExpired extends __BaseException {
15
- constructor(opts) {
16
- super({
17
- name: "AttachmentSetExpired",
18
- $fault: "client",
19
- ...opts,
20
- });
21
- this.name = "AttachmentSetExpired";
22
- this.$fault = "client";
23
- Object.setPrototypeOf(this, AttachmentSetExpired.prototype);
12
+ return AttachmentLimitExceeded;
13
+ }(__BaseException));
14
+ export { AttachmentLimitExceeded };
15
+ var AttachmentSetExpired = (function (_super) {
16
+ __extends(AttachmentSetExpired, _super);
17
+ function AttachmentSetExpired(opts) {
18
+ var _this = _super.call(this, __assign({ name: "AttachmentSetExpired", $fault: "client" }, opts)) || this;
19
+ _this.name = "AttachmentSetExpired";
20
+ _this.$fault = "client";
21
+ Object.setPrototypeOf(_this, AttachmentSetExpired.prototype);
22
+ return _this;
24
23
  }
25
- }
26
- export class AttachmentSetIdNotFound extends __BaseException {
27
- constructor(opts) {
28
- super({
29
- name: "AttachmentSetIdNotFound",
30
- $fault: "client",
31
- ...opts,
32
- });
33
- this.name = "AttachmentSetIdNotFound";
34
- this.$fault = "client";
35
- Object.setPrototypeOf(this, AttachmentSetIdNotFound.prototype);
24
+ return AttachmentSetExpired;
25
+ }(__BaseException));
26
+ export { AttachmentSetExpired };
27
+ var AttachmentSetIdNotFound = (function (_super) {
28
+ __extends(AttachmentSetIdNotFound, _super);
29
+ function AttachmentSetIdNotFound(opts) {
30
+ var _this = _super.call(this, __assign({ name: "AttachmentSetIdNotFound", $fault: "client" }, opts)) || this;
31
+ _this.name = "AttachmentSetIdNotFound";
32
+ _this.$fault = "client";
33
+ Object.setPrototypeOf(_this, AttachmentSetIdNotFound.prototype);
34
+ return _this;
36
35
  }
37
- }
38
- export class AttachmentSetSizeLimitExceeded extends __BaseException {
39
- constructor(opts) {
40
- super({
41
- name: "AttachmentSetSizeLimitExceeded",
42
- $fault: "client",
43
- ...opts,
44
- });
45
- this.name = "AttachmentSetSizeLimitExceeded";
46
- this.$fault = "client";
47
- Object.setPrototypeOf(this, AttachmentSetSizeLimitExceeded.prototype);
36
+ return AttachmentSetIdNotFound;
37
+ }(__BaseException));
38
+ export { AttachmentSetIdNotFound };
39
+ var AttachmentSetSizeLimitExceeded = (function (_super) {
40
+ __extends(AttachmentSetSizeLimitExceeded, _super);
41
+ function AttachmentSetSizeLimitExceeded(opts) {
42
+ var _this = _super.call(this, __assign({ name: "AttachmentSetSizeLimitExceeded", $fault: "client" }, opts)) || this;
43
+ _this.name = "AttachmentSetSizeLimitExceeded";
44
+ _this.$fault = "client";
45
+ Object.setPrototypeOf(_this, AttachmentSetSizeLimitExceeded.prototype);
46
+ return _this;
48
47
  }
49
- }
50
- export class InternalServerError extends __BaseException {
51
- constructor(opts) {
52
- super({
53
- name: "InternalServerError",
54
- $fault: "server",
55
- ...opts,
56
- });
57
- this.name = "InternalServerError";
58
- this.$fault = "server";
59
- Object.setPrototypeOf(this, InternalServerError.prototype);
48
+ return AttachmentSetSizeLimitExceeded;
49
+ }(__BaseException));
50
+ export { AttachmentSetSizeLimitExceeded };
51
+ var InternalServerError = (function (_super) {
52
+ __extends(InternalServerError, _super);
53
+ function InternalServerError(opts) {
54
+ var _this = _super.call(this, __assign({ name: "InternalServerError", $fault: "server" }, opts)) || this;
55
+ _this.name = "InternalServerError";
56
+ _this.$fault = "server";
57
+ Object.setPrototypeOf(_this, InternalServerError.prototype);
58
+ return _this;
60
59
  }
61
- }
62
- export class CaseIdNotFound extends __BaseException {
63
- constructor(opts) {
64
- super({
65
- name: "CaseIdNotFound",
66
- $fault: "client",
67
- ...opts,
68
- });
69
- this.name = "CaseIdNotFound";
70
- this.$fault = "client";
71
- Object.setPrototypeOf(this, CaseIdNotFound.prototype);
60
+ return InternalServerError;
61
+ }(__BaseException));
62
+ export { InternalServerError };
63
+ var CaseIdNotFound = (function (_super) {
64
+ __extends(CaseIdNotFound, _super);
65
+ function CaseIdNotFound(opts) {
66
+ var _this = _super.call(this, __assign({ name: "CaseIdNotFound", $fault: "client" }, opts)) || this;
67
+ _this.name = "CaseIdNotFound";
68
+ _this.$fault = "client";
69
+ Object.setPrototypeOf(_this, CaseIdNotFound.prototype);
70
+ return _this;
72
71
  }
73
- }
74
- export class AttachmentIdNotFound extends __BaseException {
75
- constructor(opts) {
76
- super({
77
- name: "AttachmentIdNotFound",
78
- $fault: "client",
79
- ...opts,
80
- });
81
- this.name = "AttachmentIdNotFound";
82
- this.$fault = "client";
83
- Object.setPrototypeOf(this, AttachmentIdNotFound.prototype);
72
+ return CaseIdNotFound;
73
+ }(__BaseException));
74
+ export { CaseIdNotFound };
75
+ var AttachmentIdNotFound = (function (_super) {
76
+ __extends(AttachmentIdNotFound, _super);
77
+ function AttachmentIdNotFound(opts) {
78
+ var _this = _super.call(this, __assign({ name: "AttachmentIdNotFound", $fault: "client" }, opts)) || this;
79
+ _this.name = "AttachmentIdNotFound";
80
+ _this.$fault = "client";
81
+ Object.setPrototypeOf(_this, AttachmentIdNotFound.prototype);
82
+ return _this;
84
83
  }
85
- }
86
- export class CaseCreationLimitExceeded extends __BaseException {
87
- constructor(opts) {
88
- super({
89
- name: "CaseCreationLimitExceeded",
90
- $fault: "client",
91
- ...opts,
92
- });
93
- this.name = "CaseCreationLimitExceeded";
94
- this.$fault = "client";
95
- Object.setPrototypeOf(this, CaseCreationLimitExceeded.prototype);
84
+ return AttachmentIdNotFound;
85
+ }(__BaseException));
86
+ export { AttachmentIdNotFound };
87
+ var CaseCreationLimitExceeded = (function (_super) {
88
+ __extends(CaseCreationLimitExceeded, _super);
89
+ function CaseCreationLimitExceeded(opts) {
90
+ var _this = _super.call(this, __assign({ name: "CaseCreationLimitExceeded", $fault: "client" }, opts)) || this;
91
+ _this.name = "CaseCreationLimitExceeded";
92
+ _this.$fault = "client";
93
+ Object.setPrototypeOf(_this, CaseCreationLimitExceeded.prototype);
94
+ return _this;
96
95
  }
97
- }
98
- export class DescribeAttachmentLimitExceeded extends __BaseException {
99
- constructor(opts) {
100
- super({
101
- name: "DescribeAttachmentLimitExceeded",
102
- $fault: "client",
103
- ...opts,
104
- });
105
- this.name = "DescribeAttachmentLimitExceeded";
106
- this.$fault = "client";
107
- Object.setPrototypeOf(this, DescribeAttachmentLimitExceeded.prototype);
96
+ return CaseCreationLimitExceeded;
97
+ }(__BaseException));
98
+ export { CaseCreationLimitExceeded };
99
+ var DescribeAttachmentLimitExceeded = (function (_super) {
100
+ __extends(DescribeAttachmentLimitExceeded, _super);
101
+ function DescribeAttachmentLimitExceeded(opts) {
102
+ var _this = _super.call(this, __assign({ name: "DescribeAttachmentLimitExceeded", $fault: "client" }, opts)) || this;
103
+ _this.name = "DescribeAttachmentLimitExceeded";
104
+ _this.$fault = "client";
105
+ Object.setPrototypeOf(_this, DescribeAttachmentLimitExceeded.prototype);
106
+ return _this;
108
107
  }
109
- }
110
- export const AttachmentFilterSensitiveLog = (obj) => ({
111
- ...obj,
112
- });
113
- export const AddAttachmentsToSetRequestFilterSensitiveLog = (obj) => ({
114
- ...obj,
115
- });
116
- export const AddAttachmentsToSetResponseFilterSensitiveLog = (obj) => ({
117
- ...obj,
118
- });
119
- export const AddCommunicationToCaseRequestFilterSensitiveLog = (obj) => ({
120
- ...obj,
121
- });
122
- export const AddCommunicationToCaseResponseFilterSensitiveLog = (obj) => ({
123
- ...obj,
124
- });
125
- export const AttachmentDetailsFilterSensitiveLog = (obj) => ({
126
- ...obj,
127
- });
128
- export const CreateCaseRequestFilterSensitiveLog = (obj) => ({
129
- ...obj,
130
- });
131
- export const CreateCaseResponseFilterSensitiveLog = (obj) => ({
132
- ...obj,
133
- });
134
- export const DescribeAttachmentRequestFilterSensitiveLog = (obj) => ({
135
- ...obj,
136
- });
137
- export const DescribeAttachmentResponseFilterSensitiveLog = (obj) => ({
138
- ...obj,
139
- });
140
- export const DescribeCasesRequestFilterSensitiveLog = (obj) => ({
141
- ...obj,
142
- });
143
- export const CommunicationFilterSensitiveLog = (obj) => ({
144
- ...obj,
145
- });
146
- export const RecentCaseCommunicationsFilterSensitiveLog = (obj) => ({
147
- ...obj,
148
- });
149
- export const CaseDetailsFilterSensitiveLog = (obj) => ({
150
- ...obj,
151
- });
152
- export const DescribeCasesResponseFilterSensitiveLog = (obj) => ({
153
- ...obj,
154
- });
155
- export const DescribeCommunicationsRequestFilterSensitiveLog = (obj) => ({
156
- ...obj,
157
- });
158
- export const DescribeCommunicationsResponseFilterSensitiveLog = (obj) => ({
159
- ...obj,
160
- });
161
- export const DescribeServicesRequestFilterSensitiveLog = (obj) => ({
162
- ...obj,
163
- });
164
- export const CategoryFilterSensitiveLog = (obj) => ({
165
- ...obj,
166
- });
167
- export const ServiceFilterSensitiveLog = (obj) => ({
168
- ...obj,
169
- });
170
- export const DescribeServicesResponseFilterSensitiveLog = (obj) => ({
171
- ...obj,
172
- });
173
- export const DescribeSeverityLevelsRequestFilterSensitiveLog = (obj) => ({
174
- ...obj,
175
- });
176
- export const SeverityLevelFilterSensitiveLog = (obj) => ({
177
- ...obj,
178
- });
179
- export const DescribeSeverityLevelsResponseFilterSensitiveLog = (obj) => ({
180
- ...obj,
181
- });
182
- export const DescribeTrustedAdvisorCheckRefreshStatusesRequestFilterSensitiveLog = (obj) => ({
183
- ...obj,
184
- });
185
- export const TrustedAdvisorCheckRefreshStatusFilterSensitiveLog = (obj) => ({
186
- ...obj,
187
- });
188
- export const DescribeTrustedAdvisorCheckRefreshStatusesResponseFilterSensitiveLog = (obj) => ({
189
- ...obj,
190
- });
191
- export const DescribeTrustedAdvisorCheckResultRequestFilterSensitiveLog = (obj) => ({
192
- ...obj,
193
- });
194
- export const TrustedAdvisorCostOptimizingSummaryFilterSensitiveLog = (obj) => ({
195
- ...obj,
196
- });
197
- export const TrustedAdvisorCategorySpecificSummaryFilterSensitiveLog = (obj) => ({
198
- ...obj,
199
- });
200
- export const TrustedAdvisorResourceDetailFilterSensitiveLog = (obj) => ({
201
- ...obj,
202
- });
203
- export const TrustedAdvisorResourcesSummaryFilterSensitiveLog = (obj) => ({
204
- ...obj,
205
- });
206
- export const TrustedAdvisorCheckResultFilterSensitiveLog = (obj) => ({
207
- ...obj,
208
- });
209
- export const DescribeTrustedAdvisorCheckResultResponseFilterSensitiveLog = (obj) => ({
210
- ...obj,
211
- });
212
- export const DescribeTrustedAdvisorChecksRequestFilterSensitiveLog = (obj) => ({
213
- ...obj,
214
- });
215
- export const TrustedAdvisorCheckDescriptionFilterSensitiveLog = (obj) => ({
216
- ...obj,
217
- });
218
- export const DescribeTrustedAdvisorChecksResponseFilterSensitiveLog = (obj) => ({
219
- ...obj,
220
- });
221
- export const DescribeTrustedAdvisorCheckSummariesRequestFilterSensitiveLog = (obj) => ({
222
- ...obj,
223
- });
224
- export const TrustedAdvisorCheckSummaryFilterSensitiveLog = (obj) => ({
225
- ...obj,
226
- });
227
- export const DescribeTrustedAdvisorCheckSummariesResponseFilterSensitiveLog = (obj) => ({
228
- ...obj,
229
- });
230
- export const RefreshTrustedAdvisorCheckRequestFilterSensitiveLog = (obj) => ({
231
- ...obj,
232
- });
233
- export const RefreshTrustedAdvisorCheckResponseFilterSensitiveLog = (obj) => ({
234
- ...obj,
235
- });
236
- export const ResolveCaseRequestFilterSensitiveLog = (obj) => ({
237
- ...obj,
238
- });
239
- export const ResolveCaseResponseFilterSensitiveLog = (obj) => ({
240
- ...obj,
241
- });
108
+ return DescribeAttachmentLimitExceeded;
109
+ }(__BaseException));
110
+ export { DescribeAttachmentLimitExceeded };
111
+ export var AttachmentFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
112
+ export var AddAttachmentsToSetRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
113
+ export var AddAttachmentsToSetResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
114
+ export var AddCommunicationToCaseRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
115
+ export var AddCommunicationToCaseResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
116
+ export var AttachmentDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
117
+ export var CreateCaseRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
118
+ export var CreateCaseResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
+ export var DescribeAttachmentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
120
+ export var DescribeAttachmentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
121
+ export var DescribeCasesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
122
+ export var CommunicationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
123
+ export var RecentCaseCommunicationsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
124
+ export var CaseDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
125
+ export var DescribeCasesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
126
+ export var DescribeCommunicationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
127
+ export var DescribeCommunicationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
128
+ export var DescribeServicesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
129
+ export var CategoryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
130
+ export var ServiceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
+ export var DescribeServicesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
132
+ export var DescribeSeverityLevelsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
+ export var SeverityLevelFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
134
+ export var DescribeSeverityLevelsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
+ export var DescribeTrustedAdvisorCheckRefreshStatusesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
136
+ export var TrustedAdvisorCheckRefreshStatusFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
137
+ export var DescribeTrustedAdvisorCheckRefreshStatusesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
138
+ export var DescribeTrustedAdvisorCheckResultRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
+ export var TrustedAdvisorCostOptimizingSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
+ export var TrustedAdvisorCategorySpecificSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
141
+ export var TrustedAdvisorResourceDetailFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
142
+ export var TrustedAdvisorResourcesSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
+ export var TrustedAdvisorCheckResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
144
+ export var DescribeTrustedAdvisorCheckResultResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
145
+ export var DescribeTrustedAdvisorChecksRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
146
+ export var TrustedAdvisorCheckDescriptionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
+ export var DescribeTrustedAdvisorChecksResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
148
+ export var DescribeTrustedAdvisorCheckSummariesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
149
+ export var TrustedAdvisorCheckSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
150
+ export var DescribeTrustedAdvisorCheckSummariesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
151
+ export var RefreshTrustedAdvisorCheckRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
152
+ export var RefreshTrustedAdvisorCheckResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
153
+ export var ResolveCaseRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
154
+ export var ResolveCaseResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,32 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
1
2
  import { DescribeCasesCommand, } from "../commands/DescribeCasesCommand";
2
3
  import { Support } from "../Support";
3
4
  import { SupportClient } from "../SupportClient";
4
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new DescribeCasesCommand(input), ...args);
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new DescribeCasesCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
6
18
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.describeCases(input, ...args);
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.describeCases.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
9
32
  };
10
- export async function* paginateDescribeCases(config, input, ...additionalArguments) {
11
- let token = config.startingToken || undefined;
12
- let hasNext = true;
13
- let page;
14
- while (hasNext) {
15
- input.nextToken = token;
16
- input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Support) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof SupportClient) {
21
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
- }
23
- else {
24
- throw new Error("Invalid client, expected Support | SupportClient");
25
- }
26
- yield page;
27
- const prevToken = token;
28
- token = page.nextToken;
29
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ export function paginateDescribeCases(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
30
37
  }
31
- return undefined;
38
+ return __asyncGenerator(this, arguments, function paginateDescribeCases_1() {
39
+ var token, hasNext, page, prevToken;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.nextToken = token;
49
+ input["maxResults"] = config.pageSize;
50
+ if (!(config.client instanceof Support)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof SupportClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Support | SupportClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ prevToken = token;
67
+ token = page.nextToken;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
+ return [3, 1];
70
+ case 9: return [4, __await(undefined)];
71
+ case 10: return [2, _a.sent()];
72
+ }
73
+ });
74
+ });
32
75
  }
@@ -1,32 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
1
2
  import { DescribeCommunicationsCommand, } from "../commands/DescribeCommunicationsCommand";
2
3
  import { Support } from "../Support";
3
4
  import { SupportClient } from "../SupportClient";
4
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new DescribeCommunicationsCommand(input), ...args);
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new DescribeCommunicationsCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
6
18
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.describeCommunications(input, ...args);
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.describeCommunications.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
9
32
  };
10
- export async function* paginateDescribeCommunications(config, input, ...additionalArguments) {
11
- let token = config.startingToken || undefined;
12
- let hasNext = true;
13
- let page;
14
- while (hasNext) {
15
- input.nextToken = token;
16
- input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Support) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof SupportClient) {
21
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
- }
23
- else {
24
- throw new Error("Invalid client, expected Support | SupportClient");
25
- }
26
- yield page;
27
- const prevToken = token;
28
- token = page.nextToken;
29
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ export function paginateDescribeCommunications(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
30
37
  }
31
- return undefined;
38
+ return __asyncGenerator(this, arguments, function paginateDescribeCommunications_1() {
39
+ var token, hasNext, page, prevToken;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.nextToken = token;
49
+ input["maxResults"] = config.pageSize;
50
+ if (!(config.client instanceof Support)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof SupportClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Support | SupportClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ prevToken = token;
67
+ token = page.nextToken;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
+ return [3, 1];
70
+ case 9: return [4, __await(undefined)];
71
+ case 10: return [2, _a.sent()];
72
+ }
73
+ });
74
+ });
32
75
  }