@aws-sdk/client-mq 3.1070.0 → 3.1071.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 (34) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +43 -1
  3. package/dist-cjs/models/errors.js +12 -0
  4. package/dist-cjs/schemas/schemas_0.js +85 -16
  5. package/dist-es/Mq.js +4 -0
  6. package/dist-es/commands/DescribeSharedResourcesCommand.js +16 -0
  7. package/dist-es/commands/index.js +1 -0
  8. package/dist-es/models/enums.js +21 -0
  9. package/dist-es/models/errors.js +12 -0
  10. package/dist-es/pagination/DescribeSharedResourcesPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/schemas/schemas_0.js +80 -16
  13. package/dist-types/Mq.d.ts +14 -0
  14. package/dist-types/MqClient.d.ts +3 -2
  15. package/dist-types/commands/DescribeSharedResourcesCommand.d.ts +107 -0
  16. package/dist-types/commands/UpdateBrokerCommand.d.ts +6 -0
  17. package/dist-types/commands/index.d.ts +1 -0
  18. package/dist-types/models/enums.d.ts +45 -0
  19. package/dist-types/models/errors.d.ts +31 -0
  20. package/dist-types/models/models_0.d.ts +119 -1
  21. package/dist-types/pagination/DescribeSharedResourcesPaginator.d.ts +7 -0
  22. package/dist-types/pagination/index.d.ts +1 -0
  23. package/dist-types/schemas/schemas_0.d.ts +6 -0
  24. package/dist-types/ts3.4/Mq.d.ts +24 -0
  25. package/dist-types/ts3.4/MqClient.d.ts +6 -0
  26. package/dist-types/ts3.4/commands/DescribeSharedResourcesCommand.d.ts +53 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  28. package/dist-types/ts3.4/models/enums.d.ts +27 -0
  29. package/dist-types/ts3.4/models/errors.d.ts +7 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +31 -0
  31. package/dist-types/ts3.4/pagination/DescribeSharedResourcesPaginator.d.ts +11 -0
  32. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  33. package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
  34. package/package.json +3 -3
package/README.md CHANGED
@@ -272,6 +272,13 @@ DescribeConfigurationRevision
272
272
  </details>
273
273
  <details>
274
274
  <summary>
275
+ DescribeSharedResources
276
+ </summary>
277
+
278
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mq/command/DescribeSharedResourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mq/Interface/DescribeSharedResourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mq/Interface/DescribeSharedResourcesCommandOutput/)
279
+ </details>
280
+ <details>
281
+ <summary>
275
282
  DescribeUser
276
283
  </summary>
277
284
 
package/dist-cjs/index.js CHANGED
@@ -11,7 +11,7 @@ const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
11
  const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
12
  const { resolveHttpAuthSchemeConfig, defaultMqHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
13
  const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateBroker$, CreateConfiguration$, CreateTags$, CreateUser$, DeleteBroker$, DeleteConfiguration$, DeleteTags$, DeleteUser$, DescribeBroker$, DescribeBrokerEngineTypes$, DescribeBrokerInstanceOptions$, DescribeConfiguration$, DescribeConfigurationRevision$, DescribeUser$, ListBrokers$, ListConfigurationRevisions$, ListConfigurations$, ListTags$, ListUsers$, Promote$, RebootBroker$, UpdateBroker$, UpdateConfiguration$, UpdateUser$ } = require("./schemas/schemas_0");
14
+ const { CreateBroker$, CreateConfiguration$, CreateTags$, CreateUser$, DeleteBroker$, DeleteConfiguration$, DeleteTags$, DeleteUser$, DescribeBroker$, DescribeBrokerEngineTypes$, DescribeBrokerInstanceOptions$, DescribeConfiguration$, DescribeConfigurationRevision$, DescribeSharedResources$, DescribeUser$, ListBrokers$, ListConfigurationRevisions$, ListConfigurations$, ListTags$, ListUsers$, Promote$, RebootBroker$, UpdateBroker$, UpdateConfiguration$, UpdateUser$ } = require("./schemas/schemas_0");
15
15
  __exportStar(require("./schemas/schemas_0"), exports);
16
16
  __exportStar(require("./models/errors"), exports);
17
17
  const { MqServiceException } = require("./models/MqServiceException");
@@ -267,6 +267,18 @@ class DescribeConfigurationRevisionCommand extends Command
267
267
  .build() {
268
268
  }
269
269
 
270
+ class DescribeSharedResourcesCommand extends Command
271
+ .classBuilder()
272
+ .ep(commonParams)
273
+ .m(function (Command, cs, config, o) {
274
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
275
+ })
276
+ .s("mq", "DescribeSharedResources", {})
277
+ .n("MqClient", "DescribeSharedResourcesCommand")
278
+ .sc(DescribeSharedResources$)
279
+ .build() {
280
+ }
281
+
270
282
  class DescribeUserCommand extends Command
271
283
  .classBuilder()
272
284
  .ep(commonParams)
@@ -399,6 +411,8 @@ class UpdateUserCommand extends Command
399
411
  .build() {
400
412
  }
401
413
 
414
+ const paginateDescribeSharedResources = createPaginator(MqClient, DescribeSharedResourcesCommand, "NextToken", "NextToken", "MaxResults");
415
+
402
416
  const paginateListBrokers = createPaginator(MqClient, ListBrokersCommand, "NextToken", "NextToken", "MaxResults");
403
417
 
404
418
  const commands = {
@@ -415,6 +429,7 @@ const commands = {
415
429
  DescribeBrokerInstanceOptionsCommand,
416
430
  DescribeConfigurationCommand,
417
431
  DescribeConfigurationRevisionCommand,
432
+ DescribeSharedResourcesCommand,
418
433
  DescribeUserCommand,
419
434
  ListBrokersCommand,
420
435
  ListConfigurationRevisionsCommand,
@@ -428,6 +443,7 @@ const commands = {
428
443
  UpdateUserCommand,
429
444
  };
430
445
  const paginators = {
446
+ paginateDescribeSharedResources,
431
447
  paginateListBrokers,
432
448
  };
433
449
  class Mq extends MqClient {
@@ -466,6 +482,27 @@ const SanitizationWarningReason = {
466
482
  DISALLOWED_ELEMENT_REMOVED: "DISALLOWED_ELEMENT_REMOVED",
467
483
  INVALID_ATTRIBUTE_VALUE_REMOVED: "INVALID_ATTRIBUTE_VALUE_REMOVED",
468
484
  };
485
+ const SharedResourceErrorCode = {
486
+ AZ_MISMATCH: "AZ_MISMATCH",
487
+ INTERNAL_ERROR: "INTERNAL_ERROR",
488
+ INVITE_FAILED: "INVITE_FAILED",
489
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED",
490
+ RESOURCE_CONFIGURATION_NOT_FOUND: "RESOURCE_CONFIGURATION_NOT_FOUND",
491
+ SETUP_INCOMPLETE: "SETUP_INCOMPLETE",
492
+ SHARE_NOT_FOUND: "SHARE_NOT_FOUND",
493
+ };
494
+ const SharedResourceStatus = {
495
+ AVAILABLE: "AVAILABLE",
496
+ DELETION_IN_PROGRESS: "DELETION_IN_PROGRESS",
497
+ ERROR: "ERROR",
498
+ PENDING_CREATE: "PENDING_CREATE",
499
+ PENDING_DELETE: "PENDING_DELETE",
500
+ SETUP_IN_PROGRESS: "SETUP_IN_PROGRESS",
501
+ };
502
+ const SharedResourceType = {
503
+ RESOURCE: "RESOURCE",
504
+ RESOURCE_SHARE: "RESOURCE_SHARE",
505
+ };
469
506
  const ChangeType = {
470
507
  CREATE: "CREATE",
471
508
  DELETE: "DELETE",
@@ -509,6 +546,7 @@ exports.DescribeBrokerEngineTypesCommand = DescribeBrokerEngineTypesCommand;
509
546
  exports.DescribeBrokerInstanceOptionsCommand = DescribeBrokerInstanceOptionsCommand;
510
547
  exports.DescribeConfigurationCommand = DescribeConfigurationCommand;
511
548
  exports.DescribeConfigurationRevisionCommand = DescribeConfigurationRevisionCommand;
549
+ exports.DescribeSharedResourcesCommand = DescribeSharedResourcesCommand;
512
550
  exports.DescribeUserCommand = DescribeUserCommand;
513
551
  exports.EngineType = EngineType;
514
552
  exports.ListBrokersCommand = ListBrokersCommand;
@@ -522,7 +560,11 @@ exports.PromoteCommand = PromoteCommand;
522
560
  exports.PromoteMode = PromoteMode;
523
561
  exports.RebootBrokerCommand = RebootBrokerCommand;
524
562
  exports.SanitizationWarningReason = SanitizationWarningReason;
563
+ exports.SharedResourceErrorCode = SharedResourceErrorCode;
564
+ exports.SharedResourceStatus = SharedResourceStatus;
565
+ exports.SharedResourceType = SharedResourceType;
525
566
  exports.UpdateBrokerCommand = UpdateBrokerCommand;
526
567
  exports.UpdateConfigurationCommand = UpdateConfigurationCommand;
527
568
  exports.UpdateUserCommand = UpdateUserCommand;
569
+ exports.paginateDescribeSharedResources = paginateDescribeSharedResources;
528
570
  exports.paginateListBrokers = paginateListBrokers;
@@ -4,6 +4,7 @@ exports.BadRequestException = class BadRequestException extends __BaseException
4
4
  $fault = "client";
5
5
  ErrorAttribute;
6
6
  Message;
7
+ ResourceShareErrors;
7
8
  constructor(opts) {
8
9
  super({
9
10
  name: "BadRequestException",
@@ -13,6 +14,7 @@ exports.BadRequestException = class BadRequestException extends __BaseException
13
14
  Object.setPrototypeOf(this, BadRequestException.prototype);
14
15
  this.ErrorAttribute = opts.ErrorAttribute;
15
16
  this.Message = opts.Message;
17
+ this.ResourceShareErrors = opts.ResourceShareErrors;
16
18
  }
17
19
  };
18
20
  exports.ConflictException = class ConflictException extends __BaseException {
@@ -20,6 +22,7 @@ exports.ConflictException = class ConflictException extends __BaseException {
20
22
  $fault = "client";
21
23
  ErrorAttribute;
22
24
  Message;
25
+ ResourceShareErrors;
23
26
  constructor(opts) {
24
27
  super({
25
28
  name: "ConflictException",
@@ -29,6 +32,7 @@ exports.ConflictException = class ConflictException extends __BaseException {
29
32
  Object.setPrototypeOf(this, ConflictException.prototype);
30
33
  this.ErrorAttribute = opts.ErrorAttribute;
31
34
  this.Message = opts.Message;
35
+ this.ResourceShareErrors = opts.ResourceShareErrors;
32
36
  }
33
37
  };
34
38
  exports.ForbiddenException = class ForbiddenException extends __BaseException {
@@ -36,6 +40,7 @@ exports.ForbiddenException = class ForbiddenException extends __BaseException {
36
40
  $fault = "client";
37
41
  ErrorAttribute;
38
42
  Message;
43
+ ResourceShareErrors;
39
44
  constructor(opts) {
40
45
  super({
41
46
  name: "ForbiddenException",
@@ -45,6 +50,7 @@ exports.ForbiddenException = class ForbiddenException extends __BaseException {
45
50
  Object.setPrototypeOf(this, ForbiddenException.prototype);
46
51
  this.ErrorAttribute = opts.ErrorAttribute;
47
52
  this.Message = opts.Message;
53
+ this.ResourceShareErrors = opts.ResourceShareErrors;
48
54
  }
49
55
  };
50
56
  exports.InternalServerErrorException = class InternalServerErrorException extends __BaseException {
@@ -52,6 +58,7 @@ exports.InternalServerErrorException = class InternalServerErrorException extend
52
58
  $fault = "server";
53
59
  ErrorAttribute;
54
60
  Message;
61
+ ResourceShareErrors;
55
62
  constructor(opts) {
56
63
  super({
57
64
  name: "InternalServerErrorException",
@@ -61,6 +68,7 @@ exports.InternalServerErrorException = class InternalServerErrorException extend
61
68
  Object.setPrototypeOf(this, InternalServerErrorException.prototype);
62
69
  this.ErrorAttribute = opts.ErrorAttribute;
63
70
  this.Message = opts.Message;
71
+ this.ResourceShareErrors = opts.ResourceShareErrors;
64
72
  }
65
73
  };
66
74
  exports.UnauthorizedException = class UnauthorizedException extends __BaseException {
@@ -68,6 +76,7 @@ exports.UnauthorizedException = class UnauthorizedException extends __BaseExcept
68
76
  $fault = "client";
69
77
  ErrorAttribute;
70
78
  Message;
79
+ ResourceShareErrors;
71
80
  constructor(opts) {
72
81
  super({
73
82
  name: "UnauthorizedException",
@@ -77,6 +86,7 @@ exports.UnauthorizedException = class UnauthorizedException extends __BaseExcept
77
86
  Object.setPrototypeOf(this, UnauthorizedException.prototype);
78
87
  this.ErrorAttribute = opts.ErrorAttribute;
79
88
  this.Message = opts.Message;
89
+ this.ResourceShareErrors = opts.ResourceShareErrors;
80
90
  }
81
91
  };
82
92
  exports.NotFoundException = class NotFoundException extends __BaseException {
@@ -84,6 +94,7 @@ exports.NotFoundException = class NotFoundException extends __BaseException {
84
94
  $fault = "client";
85
95
  ErrorAttribute;
86
96
  Message;
97
+ ResourceShareErrors;
87
98
  constructor(opts) {
88
99
  super({
89
100
  name: "NotFoundException",
@@ -93,5 +104,6 @@ exports.NotFoundException = class NotFoundException extends __BaseException {
93
104
  Object.setPrototypeOf(this, NotFoundException.prototype);
94
105
  this.ErrorAttribute = opts.ErrorAttribute;
95
106
  this.Message = opts.Message;
107
+ this.ResourceShareErrors = opts.ResourceShareErrors;
96
108
  }
97
109
  };
@@ -42,6 +42,7 @@ const _CUR = "CreateUserRequest";
42
42
  const _CURL = "ConsoleURL";
43
43
  const _CURr = "CreateUserResponse";
44
44
  const _Co = "Configuration";
45
+ const _Cod = "Code";
45
46
  const _Con = "Configurations";
46
47
  const _Cu = "Current";
47
48
  const _D = "Description";
@@ -67,6 +68,7 @@ const _DCResc = "DescribeConfigurationResponse";
67
68
  const _DCRescr = "DescribeConfigurationRevision";
68
69
  const _DCe = "DescribeConfiguration";
69
70
  const _DM = "DeploymentMode";
71
+ const _DN = "DnsNames";
70
72
  const _DOW = "DayOfWeek";
71
73
  const _DRC = "DataReplicationCounterpart";
72
74
  const _DRM = "DataReplicationMode";
@@ -74,6 +76,9 @@ const _DRMO = "DataReplicationMetadataOutput";
74
76
  const _DRMa = "DataReplicationMetadata";
75
77
  const _DRPBA = "DataReplicationPrimaryBrokerArn";
76
78
  const _DRR = "DataReplicationRole";
79
+ const _DSR = "DescribeSharedResources";
80
+ const _DSRR = "DescribeSharedResourcesRequest";
81
+ const _DSRRe = "DescribeSharedResourcesResponse";
77
82
  const _DT = "DeleteTags";
78
83
  const _DTR = "DeleteTagsRequest";
79
84
  const _DU = "DeleteUser";
@@ -85,11 +90,13 @@ const _DUe = "DescribeUser";
85
90
  const _Da = "Data";
86
91
  const _E = "Endpoints";
87
92
  const _EA = "ErrorAttribute";
93
+ const _EC = "ErrorCode";
88
94
  const _EN = "ElementName";
89
95
  const _EO = "EncryptionOptions";
90
96
  const _ET = "EngineType";
91
97
  const _EV = "EngineVersions";
92
98
  const _EVn = "EngineVersion";
99
+ const _Er = "Error";
93
100
  const _FE = "ForbiddenException";
94
101
  const _G = "Groups";
95
102
  const _GLG = "GeneralLogGroup";
@@ -151,24 +158,33 @@ const _RBR = "RebootBrokerRequest";
151
158
  const _RBRe = "RebootBrokerResponse";
152
159
  const _RBe = "RebootBroker";
153
160
  const _RN = "RoleName";
161
+ const _RSA = "ResourceShareArn";
162
+ const _RSAe = "ResourceShareArns";
163
+ const _RSE = "ResourceShareErrors";
164
+ const _RSEe = "ResourceShareError";
154
165
  const _RSM = "RoleSearchMatching";
155
166
  const _RSS = "RoleSearchSubtree";
156
167
  const _RU = "ReplicationUser";
157
168
  const _Re = "Region";
158
169
  const _Rea = "Reason";
159
170
  const _Rev = "Revisions";
171
+ const _S = "Status";
160
172
  const _SAP = "ServiceAccountPassword";
161
173
  const _SAU = "ServiceAccountUsername";
162
174
  const _SDM = "SupportedDeploymentModes";
163
175
  const _SEV = "SupportedEngineVersions";
164
176
  const _SG = "SecurityGroups";
165
177
  const _SI = "SubnetIds";
178
+ const _SR = "SharedResources";
179
+ const _SRE = "SharedResourceError";
180
+ const _SRh = "SharedResource";
166
181
  const _ST = "StorageType";
167
182
  const _SW = "SanitizationWarning";
168
183
  const _T = "Tags";
169
184
  const _TK = "TagKeys";
170
185
  const _TOD = "TimeOfDay";
171
186
  const _TZ = "TimeZone";
187
+ const _Ty = "Type";
172
188
  const _U = "Users";
173
189
  const _UAOK = "UseAwsOwnedKey";
174
190
  const _UB = "UserBase";
@@ -215,11 +231,13 @@ const _cI = "configurationId";
215
231
  const _cRI = "creatorRequestId";
216
232
  const _cURL = "consoleURL";
217
233
  const _co = "configuration";
234
+ const _cod = "code";
218
235
  const _con = "configurations";
219
236
  const _cr = "created";
220
237
  const _cu = "current";
221
238
  const _d = "description";
222
239
  const _dM = "deploymentMode";
240
+ const _dN = "dnsNames";
223
241
  const _dOW = "dayOfWeek";
224
242
  const _dRC = "dataReplicationCounterpart";
225
243
  const _dRM = "dataReplicationMode";
@@ -229,6 +247,7 @@ const _dRR = "dataReplicationRole";
229
247
  const _da = "data";
230
248
  const _e = "error";
231
249
  const _eA = "errorAttribute";
250
+ const _eC = "errorCode";
232
251
  const _eN = "elementName";
233
252
  const _eO = "encryptionOptions";
234
253
  const _eT = "engineType";
@@ -260,6 +279,8 @@ const _lOC = "__listOfConfiguration";
260
279
  const _lOCI = "__listOfConfigurationId";
261
280
  const _lOCR = "__listOfConfigurationRevision";
262
281
  const _lOEV = "__listOfEngineVersion";
282
+ const _lORSE = "__listOfResourceShareError";
283
+ const _lOSR = "__listOfSharedResource";
263
284
  const _lOSW = "__listOfSanitizationWarning";
264
285
  const _lOU = "__listOfUser";
265
286
  const _lOUS = "__listOfUserSummary";
@@ -283,8 +304,12 @@ const _pLSM = "pendingLdapServerMetadata";
283
304
  const _pSG = "pendingSecurityGroups";
284
305
  const _pa = "password";
285
306
  const _r = "revision";
307
+ const _rA = "resourceArn";
286
308
  const _rB = "roleBase";
287
309
  const _rN = "roleName";
310
+ const _rSA = "resourceShareArn";
311
+ const _rSAe = "resourceShareArns";
312
+ const _rSE = "resourceShareErrors";
288
313
  const _rSM = "roleSearchMatching";
289
314
  const _rSS = "roleSearchSubtree";
290
315
  const _rU = "replicationUser";
@@ -298,12 +323,15 @@ const _sDM = "supportedDeploymentModes";
298
323
  const _sEV = "supportedEngineVersions";
299
324
  const _sG = "securityGroups";
300
325
  const _sI = "subnetIds";
326
+ const _sR = "sharedResources";
301
327
  const _sT = "storageType";
302
328
  const _se = "server";
329
+ const _st = "status";
303
330
  const _t = "tags";
304
331
  const _tK = "tagKeys";
305
332
  const _tOD = "timeOfDay";
306
333
  const _tZ = "timeZone";
334
+ const _ty = "type";
307
335
  const _u = "users";
308
336
  const _uAOK = "useAwsOwnedKey";
309
337
  const _uB = "userBase";
@@ -323,43 +351,43 @@ _s_registry.registerError(MqServiceException$, MqServiceException);
323
351
  const n0_registry = TypeRegistry.for(n0);
324
352
  const BadRequestException$ = [-3, n0, _BRE,
325
353
  { [_e]: _c, [_hE]: 400 },
326
- [_EA, _M],
327
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
354
+ [_EA, _M, _RSE],
355
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }], [() => __listOfResourceShareError, { [_jN]: _rSE }]]
328
356
  ];
329
357
  exports.BadRequestException$ = BadRequestException$;
330
358
  n0_registry.registerError(BadRequestException$, BadRequestException);
331
359
  const ConflictException$ = [-3, n0, _CE,
332
360
  { [_e]: _c, [_hE]: 409 },
333
- [_EA, _M],
334
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
361
+ [_EA, _M, _RSE],
362
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }], [() => __listOfResourceShareError, { [_jN]: _rSE }]]
335
363
  ];
336
364
  exports.ConflictException$ = ConflictException$;
337
365
  n0_registry.registerError(ConflictException$, ConflictException);
338
366
  const ForbiddenException$ = [-3, n0, _FE,
339
367
  { [_e]: _c, [_hE]: 403 },
340
- [_EA, _M],
341
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
368
+ [_EA, _M, _RSE],
369
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }], [() => __listOfResourceShareError, { [_jN]: _rSE }]]
342
370
  ];
343
371
  exports.ForbiddenException$ = ForbiddenException$;
344
372
  n0_registry.registerError(ForbiddenException$, ForbiddenException);
345
373
  const InternalServerErrorException$ = [-3, n0, _ISEE,
346
374
  { [_e]: _se, [_hE]: 500 },
347
- [_EA, _M],
348
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
375
+ [_EA, _M, _RSE],
376
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }], [() => __listOfResourceShareError, { [_jN]: _rSE }]]
349
377
  ];
350
378
  exports.InternalServerErrorException$ = InternalServerErrorException$;
351
379
  n0_registry.registerError(InternalServerErrorException$, InternalServerErrorException);
352
380
  const NotFoundException$ = [-3, n0, _NFE,
353
381
  { [_e]: _c, [_hE]: 404 },
354
- [_EA, _M],
355
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
382
+ [_EA, _M, _RSE],
383
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }], [() => __listOfResourceShareError, { [_jN]: _rSE }]]
356
384
  ];
357
385
  exports.NotFoundException$ = NotFoundException$;
358
386
  n0_registry.registerError(NotFoundException$, NotFoundException);
359
387
  const UnauthorizedException$ = [-3, n0, _UE,
360
388
  { [_e]: _c, [_hE]: 401 },
361
- [_EA, _M],
362
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
389
+ [_EA, _M, _RSE],
390
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }], [() => __listOfResourceShareError, { [_jN]: _rSE }]]
363
391
  ];
364
392
  exports.UnauthorizedException$ = UnauthorizedException$;
365
393
  n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
@@ -583,6 +611,18 @@ const DescribeConfigurationRevisionResponse$ = [3, n0, _DCRRe,
583
611
  [[0, { [_jN]: _cI }], [5, { [_jN]: _cr }], [0, { [_jN]: _da }], [0, { [_jN]: _d }]]
584
612
  ];
585
613
  exports.DescribeConfigurationRevisionResponse$ = DescribeConfigurationRevisionResponse$;
614
+ const DescribeSharedResourcesRequest$ = [3, n0, _DSRR,
615
+ 0,
616
+ [_BIr, _MR, _NT],
617
+ [[0, 1], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 1
618
+ ];
619
+ exports.DescribeSharedResourcesRequest$ = DescribeSharedResourcesRequest$;
620
+ const DescribeSharedResourcesResponse$ = [3, n0, _DSRRe,
621
+ 0,
622
+ [_NT, _SR],
623
+ [[0, { [_jN]: _nT }], [() => __listOfSharedResource, { [_jN]: _sR }]]
624
+ ];
625
+ exports.DescribeSharedResourcesResponse$ = DescribeSharedResourcesResponse$;
586
626
  const DescribeUserRequest$ = [3, n0, _DURes,
587
627
  0,
588
628
  [_BIr, _Us],
@@ -721,22 +761,40 @@ const RebootBrokerResponse$ = [3, n0, _RBRe,
721
761
  []
722
762
  ];
723
763
  exports.RebootBrokerResponse$ = RebootBrokerResponse$;
764
+ const ResourceShareError$ = [3, n0, _RSEe,
765
+ 0,
766
+ [_EC, _RSA, _S],
767
+ [[0, { [_jN]: _eC }], [0, { [_jN]: _rSA }], [0, { [_jN]: _st }]]
768
+ ];
769
+ exports.ResourceShareError$ = ResourceShareError$;
724
770
  const SanitizationWarning$ = [3, n0, _SW,
725
771
  0,
726
772
  [_Rea, _AN, _EN],
727
773
  [[0, { [_jN]: _rea }], [0, { [_jN]: _aN }], [0, { [_jN]: _eN }]], 1
728
774
  ];
729
775
  exports.SanitizationWarning$ = SanitizationWarning$;
776
+ const SharedResource$ = [3, n0, _SRh,
777
+ 0,
778
+ [_RA, _S, _Ty, _DN, _Er, _RSAe],
779
+ [[0, { [_jN]: _rA }], [0, { [_jN]: _st }], [0, { [_jN]: _ty }], [64 | 0, { [_jN]: _dN }], [() => SharedResourceError$, { [_jN]: _e }], [64 | 0, { [_jN]: _rSAe }]], 3
780
+ ];
781
+ exports.SharedResource$ = SharedResource$;
782
+ const SharedResourceError$ = [3, n0, _SRE,
783
+ 0,
784
+ [_Cod, _M],
785
+ [[0, { [_jN]: _cod }], [0, { [_jN]: _m }]], 2
786
+ ];
787
+ exports.SharedResourceError$ = SharedResourceError$;
730
788
  const UpdateBrokerRequest$ = [3, n0, _UBR,
731
789
  0,
732
- [_BIr, _AS, _AMVU, _Co, _EVn, _HIT, _LSM, _L, _MWST, _SG, _DRM],
733
- [[0, 1], [0, { [_jN]: _aS }], [2, { [_jN]: _aMVU }], [() => ConfigurationId$, { [_jN]: _co }], [0, { [_jN]: _eVn }], [0, { [_jN]: _hIT }], [() => LdapServerMetadataInput$, { [_jN]: _lSM }], [() => Logs$, { [_jN]: _l }], [() => WeeklyStartTime$, { [_jN]: _mWST }], [64 | 0, { [_jN]: _sG }], [0, { [_jN]: _dRM }]], 1
790
+ [_BIr, _AS, _AMVU, _Co, _EVn, _HIT, _LSM, _L, _MWST, _RSAe, _SG, _DRM],
791
+ [[0, 1], [0, { [_jN]: _aS }], [2, { [_jN]: _aMVU }], [() => ConfigurationId$, { [_jN]: _co }], [0, { [_jN]: _eVn }], [0, { [_jN]: _hIT }], [() => LdapServerMetadataInput$, { [_jN]: _lSM }], [() => Logs$, { [_jN]: _l }], [() => WeeklyStartTime$, { [_jN]: _mWST }], [64 | 0, { [_jN]: _rSAe }], [64 | 0, { [_jN]: _sG }], [0, { [_jN]: _dRM }]], 1
734
792
  ];
735
793
  exports.UpdateBrokerRequest$ = UpdateBrokerRequest$;
736
794
  const UpdateBrokerResponse$ = [3, n0, _UBRp,
737
795
  0,
738
- [_AS, _AMVU, _BIr, _Co, _EVn, _HIT, _LSM, _L, _MWST, _SG, _DRMa, _DRM, _PDRM, _PDRMe],
739
- [[0, { [_jN]: _aS }], [2, { [_jN]: _aMVU }], [0, { [_jN]: _bI }], [() => ConfigurationId$, { [_jN]: _co }], [0, { [_jN]: _eVn }], [0, { [_jN]: _hIT }], [() => LdapServerMetadataOutput$, { [_jN]: _lSM }], [() => Logs$, { [_jN]: _l }], [() => WeeklyStartTime$, { [_jN]: _mWST }], [64 | 0, { [_jN]: _sG }], [() => DataReplicationMetadataOutput$, { [_jN]: _dRMa }], [0, { [_jN]: _dRM }], [() => DataReplicationMetadataOutput$, { [_jN]: _pDRM }], [0, { [_jN]: _pDRMe }]]
796
+ [_AS, _AMVU, _BIr, _Co, _EVn, _HIT, _LSM, _L, _MWST, _RSAe, _SG, _DRMa, _DRM, _PDRM, _PDRMe],
797
+ [[0, { [_jN]: _aS }], [2, { [_jN]: _aMVU }], [0, { [_jN]: _bI }], [() => ConfigurationId$, { [_jN]: _co }], [0, { [_jN]: _eVn }], [0, { [_jN]: _hIT }], [() => LdapServerMetadataOutput$, { [_jN]: _lSM }], [() => Logs$, { [_jN]: _l }], [() => WeeklyStartTime$, { [_jN]: _mWST }], [64 | 0, { [_jN]: _rSAe }], [64 | 0, { [_jN]: _sG }], [() => DataReplicationMetadataOutput$, { [_jN]: _dRMa }], [0, { [_jN]: _dRM }], [() => DataReplicationMetadataOutput$, { [_jN]: _pDRM }], [0, { [_jN]: _pDRMe }]]
740
798
  ];
741
799
  exports.UpdateBrokerResponse$ = UpdateBrokerResponse$;
742
800
  const UpdateConfigurationRequest$ = [3, n0, _UCR,
@@ -830,10 +888,18 @@ var __listOfEngineVersion = [1, n0, _lOEV,
830
888
  0, [() => EngineVersion$,
831
889
  0]
832
890
  ];
891
+ var __listOfResourceShareError = [1, n0, _lORSE,
892
+ 0, [() => ResourceShareError$,
893
+ 0]
894
+ ];
833
895
  var __listOfSanitizationWarning = [1, n0, _lOSW,
834
896
  0, [() => SanitizationWarning$,
835
897
  0]
836
898
  ];
899
+ var __listOfSharedResource = [1, n0, _lOSR,
900
+ 0, [() => SharedResource$,
901
+ 0]
902
+ ];
837
903
  var __listOfUser = [1, n0, _lOU,
838
904
  0, [() => User$,
839
905
  0]
@@ -882,6 +948,9 @@ exports.DescribeConfiguration$ = [9, n0, _DCe,
882
948
  exports.DescribeConfigurationRevision$ = [9, n0, _DCRescr,
883
949
  { [_ht]: ["GET", "/v1/configurations/{ConfigurationId}/revisions/{ConfigurationRevision}", 200] }, () => DescribeConfigurationRevisionRequest$, () => DescribeConfigurationRevisionResponse$
884
950
  ];
951
+ exports.DescribeSharedResources$ = [9, n0, _DSR,
952
+ { [_ht]: ["GET", "/v1/brokers/{BrokerId}/shared-resources", 200] }, () => DescribeSharedResourcesRequest$, () => DescribeSharedResourcesResponse$
953
+ ];
885
954
  exports.DescribeUser$ = [9, n0, _DUe,
886
955
  { [_ht]: ["GET", "/v1/brokers/{BrokerId}/users/{Username}", 200] }, () => DescribeUserRequest$, () => DescribeUserResponse$
887
956
  ];
package/dist-es/Mq.js CHANGED
@@ -12,6 +12,7 @@ import { DescribeBrokerEngineTypesCommand, } from "./commands/DescribeBrokerEngi
12
12
  import { DescribeBrokerInstanceOptionsCommand, } from "./commands/DescribeBrokerInstanceOptionsCommand";
13
13
  import { DescribeConfigurationCommand, } from "./commands/DescribeConfigurationCommand";
14
14
  import { DescribeConfigurationRevisionCommand, } from "./commands/DescribeConfigurationRevisionCommand";
15
+ import { DescribeSharedResourcesCommand, } from "./commands/DescribeSharedResourcesCommand";
15
16
  import { DescribeUserCommand, } from "./commands/DescribeUserCommand";
16
17
  import { ListBrokersCommand, } from "./commands/ListBrokersCommand";
17
18
  import { ListConfigurationRevisionsCommand, } from "./commands/ListConfigurationRevisionsCommand";
@@ -24,6 +25,7 @@ import { UpdateBrokerCommand, } from "./commands/UpdateBrokerCommand";
24
25
  import { UpdateConfigurationCommand, } from "./commands/UpdateConfigurationCommand";
25
26
  import { UpdateUserCommand, } from "./commands/UpdateUserCommand";
26
27
  import { MqClient } from "./MqClient";
28
+ import { paginateDescribeSharedResources } from "./pagination/DescribeSharedResourcesPaginator";
27
29
  import { paginateListBrokers } from "./pagination/ListBrokersPaginator";
28
30
  const commands = {
29
31
  CreateBrokerCommand,
@@ -39,6 +41,7 @@ const commands = {
39
41
  DescribeBrokerInstanceOptionsCommand,
40
42
  DescribeConfigurationCommand,
41
43
  DescribeConfigurationRevisionCommand,
44
+ DescribeSharedResourcesCommand,
42
45
  DescribeUserCommand,
43
46
  ListBrokersCommand,
44
47
  ListConfigurationRevisionsCommand,
@@ -52,6 +55,7 @@ const commands = {
52
55
  UpdateUserCommand,
53
56
  };
54
57
  const paginators = {
58
+ paginateDescribeSharedResources,
55
59
  paginateListBrokers,
56
60
  };
57
61
  export class Mq extends MqClient {
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DescribeSharedResources$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DescribeSharedResourcesCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("mq", "DescribeSharedResources", {})
13
+ .n("MqClient", "DescribeSharedResourcesCommand")
14
+ .sc(DescribeSharedResources$)
15
+ .build() {
16
+ }
@@ -11,6 +11,7 @@ export * from "./DescribeBrokerEngineTypesCommand";
11
11
  export * from "./DescribeBrokerInstanceOptionsCommand";
12
12
  export * from "./DescribeConfigurationCommand";
13
13
  export * from "./DescribeConfigurationRevisionCommand";
14
+ export * from "./DescribeSharedResourcesCommand";
14
15
  export * from "./DescribeUserCommand";
15
16
  export * from "./ListBrokersCommand";
16
17
  export * from "./ListConfigurationRevisionsCommand";
@@ -30,6 +30,27 @@ export const SanitizationWarningReason = {
30
30
  DISALLOWED_ELEMENT_REMOVED: "DISALLOWED_ELEMENT_REMOVED",
31
31
  INVALID_ATTRIBUTE_VALUE_REMOVED: "INVALID_ATTRIBUTE_VALUE_REMOVED",
32
32
  };
33
+ export const SharedResourceErrorCode = {
34
+ AZ_MISMATCH: "AZ_MISMATCH",
35
+ INTERNAL_ERROR: "INTERNAL_ERROR",
36
+ INVITE_FAILED: "INVITE_FAILED",
37
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED",
38
+ RESOURCE_CONFIGURATION_NOT_FOUND: "RESOURCE_CONFIGURATION_NOT_FOUND",
39
+ SETUP_INCOMPLETE: "SETUP_INCOMPLETE",
40
+ SHARE_NOT_FOUND: "SHARE_NOT_FOUND",
41
+ };
42
+ export const SharedResourceStatus = {
43
+ AVAILABLE: "AVAILABLE",
44
+ DELETION_IN_PROGRESS: "DELETION_IN_PROGRESS",
45
+ ERROR: "ERROR",
46
+ PENDING_CREATE: "PENDING_CREATE",
47
+ PENDING_DELETE: "PENDING_DELETE",
48
+ SETUP_IN_PROGRESS: "SETUP_IN_PROGRESS",
49
+ };
50
+ export const SharedResourceType = {
51
+ RESOURCE: "RESOURCE",
52
+ RESOURCE_SHARE: "RESOURCE_SHARE",
53
+ };
33
54
  export const ChangeType = {
34
55
  CREATE: "CREATE",
35
56
  DELETE: "DELETE",
@@ -4,6 +4,7 @@ export class BadRequestException extends __BaseException {
4
4
  $fault = "client";
5
5
  ErrorAttribute;
6
6
  Message;
7
+ ResourceShareErrors;
7
8
  constructor(opts) {
8
9
  super({
9
10
  name: "BadRequestException",
@@ -13,6 +14,7 @@ export class BadRequestException extends __BaseException {
13
14
  Object.setPrototypeOf(this, BadRequestException.prototype);
14
15
  this.ErrorAttribute = opts.ErrorAttribute;
15
16
  this.Message = opts.Message;
17
+ this.ResourceShareErrors = opts.ResourceShareErrors;
16
18
  }
17
19
  }
18
20
  export class ConflictException extends __BaseException {
@@ -20,6 +22,7 @@ export class ConflictException extends __BaseException {
20
22
  $fault = "client";
21
23
  ErrorAttribute;
22
24
  Message;
25
+ ResourceShareErrors;
23
26
  constructor(opts) {
24
27
  super({
25
28
  name: "ConflictException",
@@ -29,6 +32,7 @@ export class ConflictException extends __BaseException {
29
32
  Object.setPrototypeOf(this, ConflictException.prototype);
30
33
  this.ErrorAttribute = opts.ErrorAttribute;
31
34
  this.Message = opts.Message;
35
+ this.ResourceShareErrors = opts.ResourceShareErrors;
32
36
  }
33
37
  }
34
38
  export class ForbiddenException extends __BaseException {
@@ -36,6 +40,7 @@ export class ForbiddenException extends __BaseException {
36
40
  $fault = "client";
37
41
  ErrorAttribute;
38
42
  Message;
43
+ ResourceShareErrors;
39
44
  constructor(opts) {
40
45
  super({
41
46
  name: "ForbiddenException",
@@ -45,6 +50,7 @@ export class ForbiddenException extends __BaseException {
45
50
  Object.setPrototypeOf(this, ForbiddenException.prototype);
46
51
  this.ErrorAttribute = opts.ErrorAttribute;
47
52
  this.Message = opts.Message;
53
+ this.ResourceShareErrors = opts.ResourceShareErrors;
48
54
  }
49
55
  }
50
56
  export class InternalServerErrorException extends __BaseException {
@@ -52,6 +58,7 @@ export class InternalServerErrorException extends __BaseException {
52
58
  $fault = "server";
53
59
  ErrorAttribute;
54
60
  Message;
61
+ ResourceShareErrors;
55
62
  constructor(opts) {
56
63
  super({
57
64
  name: "InternalServerErrorException",
@@ -61,6 +68,7 @@ export class InternalServerErrorException extends __BaseException {
61
68
  Object.setPrototypeOf(this, InternalServerErrorException.prototype);
62
69
  this.ErrorAttribute = opts.ErrorAttribute;
63
70
  this.Message = opts.Message;
71
+ this.ResourceShareErrors = opts.ResourceShareErrors;
64
72
  }
65
73
  }
66
74
  export class UnauthorizedException extends __BaseException {
@@ -68,6 +76,7 @@ export class UnauthorizedException extends __BaseException {
68
76
  $fault = "client";
69
77
  ErrorAttribute;
70
78
  Message;
79
+ ResourceShareErrors;
71
80
  constructor(opts) {
72
81
  super({
73
82
  name: "UnauthorizedException",
@@ -77,6 +86,7 @@ export class UnauthorizedException extends __BaseException {
77
86
  Object.setPrototypeOf(this, UnauthorizedException.prototype);
78
87
  this.ErrorAttribute = opts.ErrorAttribute;
79
88
  this.Message = opts.Message;
89
+ this.ResourceShareErrors = opts.ResourceShareErrors;
80
90
  }
81
91
  }
82
92
  export class NotFoundException extends __BaseException {
@@ -84,6 +94,7 @@ export class NotFoundException extends __BaseException {
84
94
  $fault = "client";
85
95
  ErrorAttribute;
86
96
  Message;
97
+ ResourceShareErrors;
87
98
  constructor(opts) {
88
99
  super({
89
100
  name: "NotFoundException",
@@ -93,5 +104,6 @@ export class NotFoundException extends __BaseException {
93
104
  Object.setPrototypeOf(this, NotFoundException.prototype);
94
105
  this.ErrorAttribute = opts.ErrorAttribute;
95
106
  this.Message = opts.Message;
107
+ this.ResourceShareErrors = opts.ResourceShareErrors;
96
108
  }
97
109
  }
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { DescribeSharedResourcesCommand, } from "../commands/DescribeSharedResourcesCommand";
3
+ import { MqClient } from "../MqClient";
4
+ export const paginateDescribeSharedResources = createPaginator(MqClient, DescribeSharedResourcesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,2 +1,3 @@
1
1
  export * from "./Interfaces";
2
+ export * from "./DescribeSharedResourcesPaginator";
2
3
  export * from "./ListBrokersPaginator";