@aws-sdk/client-mq 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 (36) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Mq.js +97 -90
  4. package/dist-es/MqClient.js +28 -22
  5. package/dist-es/commands/CreateBrokerCommand.js +28 -21
  6. package/dist-es/commands/CreateConfigurationCommand.js +28 -21
  7. package/dist-es/commands/CreateTagsCommand.js +29 -22
  8. package/dist-es/commands/CreateUserCommand.js +28 -21
  9. package/dist-es/commands/DeleteBrokerCommand.js +28 -21
  10. package/dist-es/commands/DeleteTagsCommand.js +29 -22
  11. package/dist-es/commands/DeleteUserCommand.js +28 -21
  12. package/dist-es/commands/DescribeBrokerCommand.js +28 -21
  13. package/dist-es/commands/DescribeBrokerEngineTypesCommand.js +28 -21
  14. package/dist-es/commands/DescribeBrokerInstanceOptionsCommand.js +28 -21
  15. package/dist-es/commands/DescribeConfigurationCommand.js +28 -21
  16. package/dist-es/commands/DescribeConfigurationRevisionCommand.js +28 -21
  17. package/dist-es/commands/DescribeUserCommand.js +28 -21
  18. package/dist-es/commands/ListBrokersCommand.js +28 -21
  19. package/dist-es/commands/ListConfigurationRevisionsCommand.js +28 -21
  20. package/dist-es/commands/ListConfigurationsCommand.js +28 -21
  21. package/dist-es/commands/ListTagsCommand.js +28 -21
  22. package/dist-es/commands/ListUsersCommand.js +28 -21
  23. package/dist-es/commands/RebootBrokerCommand.js +28 -21
  24. package/dist-es/commands/UpdateBrokerCommand.js +28 -21
  25. package/dist-es/commands/UpdateConfigurationCommand.js +28 -21
  26. package/dist-es/commands/UpdateUserCommand.js +28 -21
  27. package/dist-es/endpoints.js +8 -8
  28. package/dist-es/models/MqServiceException.js +10 -5
  29. package/dist-es/models/models_0.js +143 -270
  30. package/dist-es/pagination/ListBrokersPaginator.js +68 -25
  31. package/dist-es/protocols/Aws_restJson1.js +2456 -1824
  32. package/dist-es/runtimeConfig.browser.js +12 -26
  33. package/dist-es/runtimeConfig.js +12 -30
  34. package/dist-es/runtimeConfig.native.js +5 -8
  35. package/dist-es/runtimeConfig.shared.js +11 -8
  36. 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
  "us-east-1": {
4
5
  variants: [
5
6
  {
@@ -49,7 +50,7 @@ const regionHash = {
49
50
  ],
50
51
  },
51
52
  };
52
- const partitionHash = {
53
+ var partitionHash = {
53
54
  aws: {
54
55
  regions: [
55
56
  "af-south-1",
@@ -173,9 +174,8 @@ const partitionHash = {
173
174
  ],
174
175
  },
175
176
  };
176
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
177
- ...options,
178
- signingService: "mq",
179
- regionHash,
180
- partitionHash,
181
- });
177
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
178
+ return __generator(this, function (_a) {
179
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "mq", regionHash: regionHash, partitionHash: partitionHash }))];
180
+ });
181
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class MqServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, MqServiceException.prototype);
3
+ var MqServiceException = (function (_super) {
4
+ __extends(MqServiceException, _super);
5
+ function MqServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, MqServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return MqServiceException;
11
+ }(__ServiceException));
12
+ export { MqServiceException };
@@ -1,3 +1,4 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { MqServiceException as __BaseException } from "./MqServiceException";
2
3
  export var EngineType;
3
4
  (function (EngineType) {
@@ -41,34 +42,34 @@ export var ChangeType;
41
42
  ChangeType["DELETE"] = "DELETE";
42
43
  ChangeType["UPDATE"] = "UPDATE";
43
44
  })(ChangeType || (ChangeType = {}));
44
- export class BadRequestException extends __BaseException {
45
- constructor(opts) {
46
- super({
47
- name: "BadRequestException",
48
- $fault: "client",
49
- ...opts,
50
- });
51
- this.name = "BadRequestException";
52
- this.$fault = "client";
53
- Object.setPrototypeOf(this, BadRequestException.prototype);
54
- this.ErrorAttribute = opts.ErrorAttribute;
55
- this.Message = opts.Message;
45
+ var BadRequestException = (function (_super) {
46
+ __extends(BadRequestException, _super);
47
+ function BadRequestException(opts) {
48
+ var _this = _super.call(this, __assign({ name: "BadRequestException", $fault: "client" }, opts)) || this;
49
+ _this.name = "BadRequestException";
50
+ _this.$fault = "client";
51
+ Object.setPrototypeOf(_this, BadRequestException.prototype);
52
+ _this.ErrorAttribute = opts.ErrorAttribute;
53
+ _this.Message = opts.Message;
54
+ return _this;
56
55
  }
57
- }
58
- export class ConflictException extends __BaseException {
59
- constructor(opts) {
60
- super({
61
- name: "ConflictException",
62
- $fault: "client",
63
- ...opts,
64
- });
65
- this.name = "ConflictException";
66
- this.$fault = "client";
67
- Object.setPrototypeOf(this, ConflictException.prototype);
68
- this.ErrorAttribute = opts.ErrorAttribute;
69
- this.Message = opts.Message;
56
+ return BadRequestException;
57
+ }(__BaseException));
58
+ export { BadRequestException };
59
+ var ConflictException = (function (_super) {
60
+ __extends(ConflictException, _super);
61
+ function ConflictException(opts) {
62
+ var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
63
+ _this.name = "ConflictException";
64
+ _this.$fault = "client";
65
+ Object.setPrototypeOf(_this, ConflictException.prototype);
66
+ _this.ErrorAttribute = opts.ErrorAttribute;
67
+ _this.Message = opts.Message;
68
+ return _this;
70
69
  }
71
- }
70
+ return ConflictException;
71
+ }(__BaseException));
72
+ export { ConflictException };
72
73
  export var DayOfWeek;
73
74
  (function (DayOfWeek) {
74
75
  DayOfWeek["FRIDAY"] = "FRIDAY";
@@ -79,251 +80,123 @@ export var DayOfWeek;
79
80
  DayOfWeek["TUESDAY"] = "TUESDAY";
80
81
  DayOfWeek["WEDNESDAY"] = "WEDNESDAY";
81
82
  })(DayOfWeek || (DayOfWeek = {}));
82
- export class ForbiddenException extends __BaseException {
83
- constructor(opts) {
84
- super({
85
- name: "ForbiddenException",
86
- $fault: "client",
87
- ...opts,
88
- });
89
- this.name = "ForbiddenException";
90
- this.$fault = "client";
91
- Object.setPrototypeOf(this, ForbiddenException.prototype);
92
- this.ErrorAttribute = opts.ErrorAttribute;
93
- this.Message = opts.Message;
83
+ var ForbiddenException = (function (_super) {
84
+ __extends(ForbiddenException, _super);
85
+ function ForbiddenException(opts) {
86
+ var _this = _super.call(this, __assign({ name: "ForbiddenException", $fault: "client" }, opts)) || this;
87
+ _this.name = "ForbiddenException";
88
+ _this.$fault = "client";
89
+ Object.setPrototypeOf(_this, ForbiddenException.prototype);
90
+ _this.ErrorAttribute = opts.ErrorAttribute;
91
+ _this.Message = opts.Message;
92
+ return _this;
94
93
  }
95
- }
96
- export class InternalServerErrorException extends __BaseException {
97
- constructor(opts) {
98
- super({
99
- name: "InternalServerErrorException",
100
- $fault: "server",
101
- ...opts,
102
- });
103
- this.name = "InternalServerErrorException";
104
- this.$fault = "server";
105
- Object.setPrototypeOf(this, InternalServerErrorException.prototype);
106
- this.ErrorAttribute = opts.ErrorAttribute;
107
- this.Message = opts.Message;
94
+ return ForbiddenException;
95
+ }(__BaseException));
96
+ export { ForbiddenException };
97
+ var InternalServerErrorException = (function (_super) {
98
+ __extends(InternalServerErrorException, _super);
99
+ function InternalServerErrorException(opts) {
100
+ var _this = _super.call(this, __assign({ name: "InternalServerErrorException", $fault: "server" }, opts)) || this;
101
+ _this.name = "InternalServerErrorException";
102
+ _this.$fault = "server";
103
+ Object.setPrototypeOf(_this, InternalServerErrorException.prototype);
104
+ _this.ErrorAttribute = opts.ErrorAttribute;
105
+ _this.Message = opts.Message;
106
+ return _this;
108
107
  }
109
- }
110
- export class UnauthorizedException extends __BaseException {
111
- constructor(opts) {
112
- super({
113
- name: "UnauthorizedException",
114
- $fault: "client",
115
- ...opts,
116
- });
117
- this.name = "UnauthorizedException";
118
- this.$fault = "client";
119
- Object.setPrototypeOf(this, UnauthorizedException.prototype);
120
- this.ErrorAttribute = opts.ErrorAttribute;
121
- this.Message = opts.Message;
108
+ return InternalServerErrorException;
109
+ }(__BaseException));
110
+ export { InternalServerErrorException };
111
+ var UnauthorizedException = (function (_super) {
112
+ __extends(UnauthorizedException, _super);
113
+ function UnauthorizedException(opts) {
114
+ var _this = _super.call(this, __assign({ name: "UnauthorizedException", $fault: "client" }, opts)) || this;
115
+ _this.name = "UnauthorizedException";
116
+ _this.$fault = "client";
117
+ Object.setPrototypeOf(_this, UnauthorizedException.prototype);
118
+ _this.ErrorAttribute = opts.ErrorAttribute;
119
+ _this.Message = opts.Message;
120
+ return _this;
122
121
  }
123
- }
124
- export class NotFoundException extends __BaseException {
125
- constructor(opts) {
126
- super({
127
- name: "NotFoundException",
128
- $fault: "client",
129
- ...opts,
130
- });
131
- this.name = "NotFoundException";
132
- this.$fault = "client";
133
- Object.setPrototypeOf(this, NotFoundException.prototype);
134
- this.ErrorAttribute = opts.ErrorAttribute;
135
- this.Message = opts.Message;
122
+ return UnauthorizedException;
123
+ }(__BaseException));
124
+ export { UnauthorizedException };
125
+ var NotFoundException = (function (_super) {
126
+ __extends(NotFoundException, _super);
127
+ function NotFoundException(opts) {
128
+ var _this = _super.call(this, __assign({ name: "NotFoundException", $fault: "client" }, opts)) || this;
129
+ _this.name = "NotFoundException";
130
+ _this.$fault = "client";
131
+ Object.setPrototypeOf(_this, NotFoundException.prototype);
132
+ _this.ErrorAttribute = opts.ErrorAttribute;
133
+ _this.Message = opts.Message;
134
+ return _this;
136
135
  }
137
- }
138
- export const ActionRequiredFilterSensitiveLog = (obj) => ({
139
- ...obj,
140
- });
141
- export const AvailabilityZoneFilterSensitiveLog = (obj) => ({
142
- ...obj,
143
- });
144
- export const EngineVersionFilterSensitiveLog = (obj) => ({
145
- ...obj,
146
- });
147
- export const BrokerEngineTypeFilterSensitiveLog = (obj) => ({
148
- ...obj,
149
- });
150
- export const BrokerInstanceFilterSensitiveLog = (obj) => ({
151
- ...obj,
152
- });
153
- export const BrokerInstanceOptionFilterSensitiveLog = (obj) => ({
154
- ...obj,
155
- });
156
- export const BrokerSummaryFilterSensitiveLog = (obj) => ({
157
- ...obj,
158
- });
159
- export const ConfigurationRevisionFilterSensitiveLog = (obj) => ({
160
- ...obj,
161
- });
162
- export const ConfigurationFilterSensitiveLog = (obj) => ({
163
- ...obj,
164
- });
165
- export const ConfigurationIdFilterSensitiveLog = (obj) => ({
166
- ...obj,
167
- });
168
- export const SanitizationWarningFilterSensitiveLog = (obj) => ({
169
- ...obj,
170
- });
171
- export const UserFilterSensitiveLog = (obj) => ({
172
- ...obj,
173
- });
174
- export const UserSummaryFilterSensitiveLog = (obj) => ({
175
- ...obj,
176
- });
177
- export const ConfigurationsFilterSensitiveLog = (obj) => ({
178
- ...obj,
179
- });
180
- export const EncryptionOptionsFilterSensitiveLog = (obj) => ({
181
- ...obj,
182
- });
183
- export const LdapServerMetadataInputFilterSensitiveLog = (obj) => ({
184
- ...obj,
185
- });
186
- export const LogsFilterSensitiveLog = (obj) => ({
187
- ...obj,
188
- });
189
- export const WeeklyStartTimeFilterSensitiveLog = (obj) => ({
190
- ...obj,
191
- });
192
- export const CreateBrokerRequestFilterSensitiveLog = (obj) => ({
193
- ...obj,
194
- });
195
- export const CreateBrokerResponseFilterSensitiveLog = (obj) => ({
196
- ...obj,
197
- });
198
- export const CreateConfigurationRequestFilterSensitiveLog = (obj) => ({
199
- ...obj,
200
- });
201
- export const CreateConfigurationResponseFilterSensitiveLog = (obj) => ({
202
- ...obj,
203
- });
204
- export const CreateTagsRequestFilterSensitiveLog = (obj) => ({
205
- ...obj,
206
- });
207
- export const CreateUserRequestFilterSensitiveLog = (obj) => ({
208
- ...obj,
209
- });
210
- export const CreateUserResponseFilterSensitiveLog = (obj) => ({
211
- ...obj,
212
- });
213
- export const DeleteBrokerRequestFilterSensitiveLog = (obj) => ({
214
- ...obj,
215
- });
216
- export const DeleteBrokerResponseFilterSensitiveLog = (obj) => ({
217
- ...obj,
218
- });
219
- export const DeleteTagsRequestFilterSensitiveLog = (obj) => ({
220
- ...obj,
221
- });
222
- export const DeleteUserRequestFilterSensitiveLog = (obj) => ({
223
- ...obj,
224
- });
225
- export const DeleteUserResponseFilterSensitiveLog = (obj) => ({
226
- ...obj,
227
- });
228
- export const DescribeBrokerRequestFilterSensitiveLog = (obj) => ({
229
- ...obj,
230
- });
231
- export const LdapServerMetadataOutputFilterSensitiveLog = (obj) => ({
232
- ...obj,
233
- });
234
- export const PendingLogsFilterSensitiveLog = (obj) => ({
235
- ...obj,
236
- });
237
- export const LogsSummaryFilterSensitiveLog = (obj) => ({
238
- ...obj,
239
- });
240
- export const DescribeBrokerResponseFilterSensitiveLog = (obj) => ({
241
- ...obj,
242
- });
243
- export const DescribeBrokerEngineTypesRequestFilterSensitiveLog = (obj) => ({
244
- ...obj,
245
- });
246
- export const DescribeBrokerEngineTypesResponseFilterSensitiveLog = (obj) => ({
247
- ...obj,
248
- });
249
- export const DescribeBrokerInstanceOptionsRequestFilterSensitiveLog = (obj) => ({
250
- ...obj,
251
- });
252
- export const DescribeBrokerInstanceOptionsResponseFilterSensitiveLog = (obj) => ({
253
- ...obj,
254
- });
255
- export const DescribeConfigurationRequestFilterSensitiveLog = (obj) => ({
256
- ...obj,
257
- });
258
- export const DescribeConfigurationResponseFilterSensitiveLog = (obj) => ({
259
- ...obj,
260
- });
261
- export const DescribeConfigurationRevisionRequestFilterSensitiveLog = (obj) => ({
262
- ...obj,
263
- });
264
- export const DescribeConfigurationRevisionResponseFilterSensitiveLog = (obj) => ({
265
- ...obj,
266
- });
267
- export const DescribeUserRequestFilterSensitiveLog = (obj) => ({
268
- ...obj,
269
- });
270
- export const UserPendingChangesFilterSensitiveLog = (obj) => ({
271
- ...obj,
272
- });
273
- export const DescribeUserResponseFilterSensitiveLog = (obj) => ({
274
- ...obj,
275
- });
276
- export const ListBrokersRequestFilterSensitiveLog = (obj) => ({
277
- ...obj,
278
- });
279
- export const ListBrokersResponseFilterSensitiveLog = (obj) => ({
280
- ...obj,
281
- });
282
- export const ListConfigurationRevisionsRequestFilterSensitiveLog = (obj) => ({
283
- ...obj,
284
- });
285
- export const ListConfigurationRevisionsResponseFilterSensitiveLog = (obj) => ({
286
- ...obj,
287
- });
288
- export const ListConfigurationsRequestFilterSensitiveLog = (obj) => ({
289
- ...obj,
290
- });
291
- export const ListConfigurationsResponseFilterSensitiveLog = (obj) => ({
292
- ...obj,
293
- });
294
- export const ListTagsRequestFilterSensitiveLog = (obj) => ({
295
- ...obj,
296
- });
297
- export const ListTagsResponseFilterSensitiveLog = (obj) => ({
298
- ...obj,
299
- });
300
- export const ListUsersRequestFilterSensitiveLog = (obj) => ({
301
- ...obj,
302
- });
303
- export const ListUsersResponseFilterSensitiveLog = (obj) => ({
304
- ...obj,
305
- });
306
- export const RebootBrokerRequestFilterSensitiveLog = (obj) => ({
307
- ...obj,
308
- });
309
- export const RebootBrokerResponseFilterSensitiveLog = (obj) => ({
310
- ...obj,
311
- });
312
- export const UpdateBrokerRequestFilterSensitiveLog = (obj) => ({
313
- ...obj,
314
- });
315
- export const UpdateBrokerResponseFilterSensitiveLog = (obj) => ({
316
- ...obj,
317
- });
318
- export const UpdateConfigurationRequestFilterSensitiveLog = (obj) => ({
319
- ...obj,
320
- });
321
- export const UpdateConfigurationResponseFilterSensitiveLog = (obj) => ({
322
- ...obj,
323
- });
324
- export const UpdateUserRequestFilterSensitiveLog = (obj) => ({
325
- ...obj,
326
- });
327
- export const UpdateUserResponseFilterSensitiveLog = (obj) => ({
328
- ...obj,
329
- });
136
+ return NotFoundException;
137
+ }(__BaseException));
138
+ export { NotFoundException };
139
+ export var ActionRequiredFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
+ export var AvailabilityZoneFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
141
+ export var EngineVersionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
142
+ export var BrokerEngineTypeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
+ export var BrokerInstanceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
144
+ export var BrokerInstanceOptionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
145
+ export var BrokerSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
146
+ export var ConfigurationRevisionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
+ export var ConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
148
+ export var ConfigurationIdFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
149
+ export var SanitizationWarningFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
150
+ export var UserFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
151
+ export var UserSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
152
+ export var ConfigurationsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
153
+ export var EncryptionOptionsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
154
+ export var LdapServerMetadataInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
155
+ export var LogsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
156
+ export var WeeklyStartTimeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
157
+ export var CreateBrokerRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
158
+ export var CreateBrokerResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
159
+ export var CreateConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
160
+ export var CreateConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
161
+ export var CreateTagsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
162
+ export var CreateUserRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
163
+ export var CreateUserResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
164
+ export var DeleteBrokerRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
165
+ export var DeleteBrokerResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
166
+ export var DeleteTagsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
167
+ export var DeleteUserRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
168
+ export var DeleteUserResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
169
+ export var DescribeBrokerRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
170
+ export var LdapServerMetadataOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
171
+ export var PendingLogsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
172
+ export var LogsSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
173
+ export var DescribeBrokerResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
174
+ export var DescribeBrokerEngineTypesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
+ export var DescribeBrokerEngineTypesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
176
+ export var DescribeBrokerInstanceOptionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
+ export var DescribeBrokerInstanceOptionsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
178
+ export var DescribeConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
179
+ export var DescribeConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
+ export var DescribeConfigurationRevisionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
181
+ export var DescribeConfigurationRevisionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
182
+ export var DescribeUserRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
183
+ export var UserPendingChangesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
184
+ export var DescribeUserResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
185
+ export var ListBrokersRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
186
+ export var ListBrokersResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
187
+ export var ListConfigurationRevisionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
188
+ export var ListConfigurationRevisionsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
189
+ export var ListConfigurationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
190
+ export var ListConfigurationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
191
+ export var ListTagsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
192
+ export var ListTagsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
+ export var ListUsersRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
194
+ export var ListUsersResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
195
+ export var RebootBrokerRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
196
+ export var RebootBrokerResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
197
+ export var UpdateBrokerRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
198
+ export var UpdateBrokerResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
199
+ export var UpdateConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
200
+ export var UpdateConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
201
+ export var UpdateUserRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
202
+ export var UpdateUserResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,32 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
1
2
  import { ListBrokersCommand } from "../commands/ListBrokersCommand";
2
3
  import { Mq } from "../Mq";
3
4
  import { MqClient } from "../MqClient";
4
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new ListBrokersCommand(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 ListBrokersCommand(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.listBrokers(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.listBrokers.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
9
32
  };
10
- export async function* paginateListBrokers(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 Mq) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof MqClient) {
21
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
- }
23
- else {
24
- throw new Error("Invalid client, expected Mq | MqClient");
25
- }
26
- yield page;
27
- const prevToken = token;
28
- token = page.NextToken;
29
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ export function paginateListBrokers(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 paginateListBrokers_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 Mq)) 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 MqClient)) 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 Mq | MqClient");
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
  }