@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
@@ -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";
@@ -322,38 +350,38 @@ _s_registry.registerError(MqServiceException$, MqServiceException);
322
350
  const n0_registry = TypeRegistry.for(n0);
323
351
  export var BadRequestException$ = [-3, n0, _BRE,
324
352
  { [_e]: _c, [_hE]: 400 },
325
- [_EA, _M],
326
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
353
+ [_EA, _M, _RSE],
354
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }], [() => __listOfResourceShareError, { [_jN]: _rSE }]]
327
355
  ];
328
356
  n0_registry.registerError(BadRequestException$, BadRequestException);
329
357
  export var ConflictException$ = [-3, n0, _CE,
330
358
  { [_e]: _c, [_hE]: 409 },
331
- [_EA, _M],
332
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
359
+ [_EA, _M, _RSE],
360
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }], [() => __listOfResourceShareError, { [_jN]: _rSE }]]
333
361
  ];
334
362
  n0_registry.registerError(ConflictException$, ConflictException);
335
363
  export var ForbiddenException$ = [-3, n0, _FE,
336
364
  { [_e]: _c, [_hE]: 403 },
337
- [_EA, _M],
338
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
365
+ [_EA, _M, _RSE],
366
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }], [() => __listOfResourceShareError, { [_jN]: _rSE }]]
339
367
  ];
340
368
  n0_registry.registerError(ForbiddenException$, ForbiddenException);
341
369
  export var InternalServerErrorException$ = [-3, n0, _ISEE,
342
370
  { [_e]: _se, [_hE]: 500 },
343
- [_EA, _M],
344
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
371
+ [_EA, _M, _RSE],
372
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }], [() => __listOfResourceShareError, { [_jN]: _rSE }]]
345
373
  ];
346
374
  n0_registry.registerError(InternalServerErrorException$, InternalServerErrorException);
347
375
  export var NotFoundException$ = [-3, n0, _NFE,
348
376
  { [_e]: _c, [_hE]: 404 },
349
- [_EA, _M],
350
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
377
+ [_EA, _M, _RSE],
378
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }], [() => __listOfResourceShareError, { [_jN]: _rSE }]]
351
379
  ];
352
380
  n0_registry.registerError(NotFoundException$, NotFoundException);
353
381
  export var UnauthorizedException$ = [-3, n0, _UE,
354
382
  { [_e]: _c, [_hE]: 401 },
355
- [_EA, _M],
356
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
383
+ [_EA, _M, _RSE],
384
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }], [() => __listOfResourceShareError, { [_jN]: _rSE }]]
357
385
  ];
358
386
  n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
359
387
  export const errorTypeRegistries = [
@@ -540,6 +568,16 @@ export var DescribeConfigurationRevisionResponse$ = [3, n0, _DCRRe,
540
568
  [_CI, _C, _Da, _D],
541
569
  [[0, { [_jN]: _cI }], [5, { [_jN]: _cr }], [0, { [_jN]: _da }], [0, { [_jN]: _d }]]
542
570
  ];
571
+ export var DescribeSharedResourcesRequest$ = [3, n0, _DSRR,
572
+ 0,
573
+ [_BIr, _MR, _NT],
574
+ [[0, 1], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 1
575
+ ];
576
+ export var DescribeSharedResourcesResponse$ = [3, n0, _DSRRe,
577
+ 0,
578
+ [_NT, _SR],
579
+ [[0, { [_jN]: _nT }], [() => __listOfSharedResource, { [_jN]: _sR }]]
580
+ ];
543
581
  export var DescribeUserRequest$ = [3, n0, _DURes,
544
582
  0,
545
583
  [_BIr, _Us],
@@ -655,20 +693,35 @@ export var RebootBrokerResponse$ = [3, n0, _RBRe,
655
693
  [],
656
694
  []
657
695
  ];
696
+ export var ResourceShareError$ = [3, n0, _RSEe,
697
+ 0,
698
+ [_EC, _RSA, _S],
699
+ [[0, { [_jN]: _eC }], [0, { [_jN]: _rSA }], [0, { [_jN]: _st }]]
700
+ ];
658
701
  export var SanitizationWarning$ = [3, n0, _SW,
659
702
  0,
660
703
  [_Rea, _AN, _EN],
661
704
  [[0, { [_jN]: _rea }], [0, { [_jN]: _aN }], [0, { [_jN]: _eN }]], 1
662
705
  ];
706
+ export var SharedResource$ = [3, n0, _SRh,
707
+ 0,
708
+ [_RA, _S, _Ty, _DN, _Er, _RSAe],
709
+ [[0, { [_jN]: _rA }], [0, { [_jN]: _st }], [0, { [_jN]: _ty }], [64 | 0, { [_jN]: _dN }], [() => SharedResourceError$, { [_jN]: _e }], [64 | 0, { [_jN]: _rSAe }]], 3
710
+ ];
711
+ export var SharedResourceError$ = [3, n0, _SRE,
712
+ 0,
713
+ [_Cod, _M],
714
+ [[0, { [_jN]: _cod }], [0, { [_jN]: _m }]], 2
715
+ ];
663
716
  export var UpdateBrokerRequest$ = [3, n0, _UBR,
664
717
  0,
665
- [_BIr, _AS, _AMVU, _Co, _EVn, _HIT, _LSM, _L, _MWST, _SG, _DRM],
666
- [[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
718
+ [_BIr, _AS, _AMVU, _Co, _EVn, _HIT, _LSM, _L, _MWST, _RSAe, _SG, _DRM],
719
+ [[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
667
720
  ];
668
721
  export var UpdateBrokerResponse$ = [3, n0, _UBRp,
669
722
  0,
670
- [_AS, _AMVU, _BIr, _Co, _EVn, _HIT, _LSM, _L, _MWST, _SG, _DRMa, _DRM, _PDRM, _PDRMe],
671
- [[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 }]]
723
+ [_AS, _AMVU, _BIr, _Co, _EVn, _HIT, _LSM, _L, _MWST, _RSAe, _SG, _DRMa, _DRM, _PDRM, _PDRMe],
724
+ [[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 }]]
672
725
  ];
673
726
  export var UpdateConfigurationRequest$ = [3, n0, _UCR,
674
727
  0,
@@ -753,10 +806,18 @@ var __listOfEngineVersion = [1, n0, _lOEV,
753
806
  0, [() => EngineVersion$,
754
807
  0]
755
808
  ];
809
+ var __listOfResourceShareError = [1, n0, _lORSE,
810
+ 0, [() => ResourceShareError$,
811
+ 0]
812
+ ];
756
813
  var __listOfSanitizationWarning = [1, n0, _lOSW,
757
814
  0, [() => SanitizationWarning$,
758
815
  0]
759
816
  ];
817
+ var __listOfSharedResource = [1, n0, _lOSR,
818
+ 0, [() => SharedResource$,
819
+ 0]
820
+ ];
760
821
  var __listOfUser = [1, n0, _lOU,
761
822
  0, [() => User$,
762
823
  0]
@@ -805,6 +866,9 @@ export var DescribeConfiguration$ = [9, n0, _DCe,
805
866
  export var DescribeConfigurationRevision$ = [9, n0, _DCRescr,
806
867
  { [_ht]: ["GET", "/v1/configurations/{ConfigurationId}/revisions/{ConfigurationRevision}", 200] }, () => DescribeConfigurationRevisionRequest$, () => DescribeConfigurationRevisionResponse$
807
868
  ];
869
+ export var DescribeSharedResources$ = [9, n0, _DSR,
870
+ { [_ht]: ["GET", "/v1/brokers/{BrokerId}/shared-resources", 200] }, () => DescribeSharedResourcesRequest$, () => DescribeSharedResourcesResponse$
871
+ ];
808
872
  export var DescribeUser$ = [9, n0, _DUe,
809
873
  { [_ht]: ["GET", "/v1/brokers/{BrokerId}/users/{Username}", 200] }, () => DescribeUserRequest$, () => DescribeUserResponse$
810
874
  ];
@@ -12,6 +12,7 @@ import { type DescribeBrokerEngineTypesCommandInput, type DescribeBrokerEngineTy
12
12
  import { type DescribeBrokerInstanceOptionsCommandInput, type DescribeBrokerInstanceOptionsCommandOutput } from "./commands/DescribeBrokerInstanceOptionsCommand";
13
13
  import { type DescribeConfigurationCommandInput, type DescribeConfigurationCommandOutput } from "./commands/DescribeConfigurationCommand";
14
14
  import { type DescribeConfigurationRevisionCommandInput, type DescribeConfigurationRevisionCommandOutput } from "./commands/DescribeConfigurationRevisionCommand";
15
+ import { type DescribeSharedResourcesCommandInput, type DescribeSharedResourcesCommandOutput } from "./commands/DescribeSharedResourcesCommand";
15
16
  import { type DescribeUserCommandInput, type DescribeUserCommandOutput } from "./commands/DescribeUserCommand";
16
17
  import { type ListBrokersCommandInput, type ListBrokersCommandOutput } from "./commands/ListBrokersCommand";
17
18
  import { type ListConfigurationRevisionsCommandInput, type ListConfigurationRevisionsCommandOutput } from "./commands/ListConfigurationRevisionsCommand";
@@ -105,6 +106,12 @@ export interface Mq {
105
106
  describeConfigurationRevision(args: DescribeConfigurationRevisionCommandInput, options?: __HttpHandlerOptions): Promise<DescribeConfigurationRevisionCommandOutput>;
106
107
  describeConfigurationRevision(args: DescribeConfigurationRevisionCommandInput, cb: (err: any, data?: DescribeConfigurationRevisionCommandOutput) => void): void;
107
108
  describeConfigurationRevision(args: DescribeConfigurationRevisionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeConfigurationRevisionCommandOutput) => void): void;
109
+ /**
110
+ * @see {@link DescribeSharedResourcesCommand}
111
+ */
112
+ describeSharedResources(args: DescribeSharedResourcesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSharedResourcesCommandOutput>;
113
+ describeSharedResources(args: DescribeSharedResourcesCommandInput, cb: (err: any, data?: DescribeSharedResourcesCommandOutput) => void): void;
114
+ describeSharedResources(args: DescribeSharedResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSharedResourcesCommandOutput) => void): void;
108
115
  /**
109
116
  * @see {@link DescribeUserCommand}
110
117
  */
@@ -173,6 +180,13 @@ export interface Mq {
173
180
  updateUser(args: UpdateUserCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserCommandOutput>;
174
181
  updateUser(args: UpdateUserCommandInput, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
175
182
  updateUser(args: UpdateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
183
+ /**
184
+ * @see {@link DescribeSharedResourcesCommand}
185
+ * @param args - command input.
186
+ * @param paginationConfig - optional pagination config.
187
+ * @returns AsyncIterable of {@link DescribeSharedResourcesCommandOutput}.
188
+ */
189
+ paginateDescribeSharedResources(args: DescribeSharedResourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<DescribeSharedResourcesCommandOutput>;
176
190
  /**
177
191
  * @see {@link ListBrokersCommand}
178
192
  * @param args - command input.
@@ -19,6 +19,7 @@ import type { DescribeBrokerEngineTypesCommandInput, DescribeBrokerEngineTypesCo
19
19
  import type { DescribeBrokerInstanceOptionsCommandInput, DescribeBrokerInstanceOptionsCommandOutput } from "./commands/DescribeBrokerInstanceOptionsCommand";
20
20
  import type { DescribeConfigurationCommandInput, DescribeConfigurationCommandOutput } from "./commands/DescribeConfigurationCommand";
21
21
  import type { DescribeConfigurationRevisionCommandInput, DescribeConfigurationRevisionCommandOutput } from "./commands/DescribeConfigurationRevisionCommand";
22
+ import type { DescribeSharedResourcesCommandInput, DescribeSharedResourcesCommandOutput } from "./commands/DescribeSharedResourcesCommand";
22
23
  import type { DescribeUserCommandInput, DescribeUserCommandOutput } from "./commands/DescribeUserCommand";
23
24
  import type { ListBrokersCommandInput, ListBrokersCommandOutput } from "./commands/ListBrokersCommand";
24
25
  import type { ListConfigurationRevisionsCommandInput, ListConfigurationRevisionsCommandOutput } from "./commands/ListConfigurationRevisionsCommand";
@@ -36,11 +37,11 @@ export { __Client };
36
37
  /**
37
38
  * @public
38
39
  */
39
- export type ServiceInputTypes = CreateBrokerCommandInput | CreateConfigurationCommandInput | CreateTagsCommandInput | CreateUserCommandInput | DeleteBrokerCommandInput | DeleteConfigurationCommandInput | DeleteTagsCommandInput | DeleteUserCommandInput | DescribeBrokerCommandInput | DescribeBrokerEngineTypesCommandInput | DescribeBrokerInstanceOptionsCommandInput | DescribeConfigurationCommandInput | DescribeConfigurationRevisionCommandInput | DescribeUserCommandInput | ListBrokersCommandInput | ListConfigurationRevisionsCommandInput | ListConfigurationsCommandInput | ListTagsCommandInput | ListUsersCommandInput | PromoteCommandInput | RebootBrokerCommandInput | UpdateBrokerCommandInput | UpdateConfigurationCommandInput | UpdateUserCommandInput;
40
+ export type ServiceInputTypes = CreateBrokerCommandInput | CreateConfigurationCommandInput | CreateTagsCommandInput | CreateUserCommandInput | DeleteBrokerCommandInput | DeleteConfigurationCommandInput | DeleteTagsCommandInput | DeleteUserCommandInput | DescribeBrokerCommandInput | DescribeBrokerEngineTypesCommandInput | DescribeBrokerInstanceOptionsCommandInput | DescribeConfigurationCommandInput | DescribeConfigurationRevisionCommandInput | DescribeSharedResourcesCommandInput | DescribeUserCommandInput | ListBrokersCommandInput | ListConfigurationRevisionsCommandInput | ListConfigurationsCommandInput | ListTagsCommandInput | ListUsersCommandInput | PromoteCommandInput | RebootBrokerCommandInput | UpdateBrokerCommandInput | UpdateConfigurationCommandInput | UpdateUserCommandInput;
40
41
  /**
41
42
  * @public
42
43
  */
43
- export type ServiceOutputTypes = CreateBrokerCommandOutput | CreateConfigurationCommandOutput | CreateTagsCommandOutput | CreateUserCommandOutput | DeleteBrokerCommandOutput | DeleteConfigurationCommandOutput | DeleteTagsCommandOutput | DeleteUserCommandOutput | DescribeBrokerCommandOutput | DescribeBrokerEngineTypesCommandOutput | DescribeBrokerInstanceOptionsCommandOutput | DescribeConfigurationCommandOutput | DescribeConfigurationRevisionCommandOutput | DescribeUserCommandOutput | ListBrokersCommandOutput | ListConfigurationRevisionsCommandOutput | ListConfigurationsCommandOutput | ListTagsCommandOutput | ListUsersCommandOutput | PromoteCommandOutput | RebootBrokerCommandOutput | UpdateBrokerCommandOutput | UpdateConfigurationCommandOutput | UpdateUserCommandOutput;
44
+ export type ServiceOutputTypes = CreateBrokerCommandOutput | CreateConfigurationCommandOutput | CreateTagsCommandOutput | CreateUserCommandOutput | DeleteBrokerCommandOutput | DeleteConfigurationCommandOutput | DeleteTagsCommandOutput | DeleteUserCommandOutput | DescribeBrokerCommandOutput | DescribeBrokerEngineTypesCommandOutput | DescribeBrokerInstanceOptionsCommandOutput | DescribeConfigurationCommandOutput | DescribeConfigurationRevisionCommandOutput | DescribeSharedResourcesCommandOutput | DescribeUserCommandOutput | ListBrokersCommandOutput | ListConfigurationRevisionsCommandOutput | ListConfigurationsCommandOutput | ListTagsCommandOutput | ListUsersCommandOutput | PromoteCommandOutput | RebootBrokerCommandOutput | UpdateBrokerCommandOutput | UpdateConfigurationCommandOutput | UpdateUserCommandOutput;
44
45
  /**
45
46
  * @public
46
47
  */
@@ -0,0 +1,107 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DescribeSharedResourcesRequest, DescribeSharedResourcesResponse } from "../models/models_0";
4
+ import type { MqClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MqClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DescribeSharedResourcesCommand}.
14
+ */
15
+ export interface DescribeSharedResourcesCommandInput extends DescribeSharedResourcesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeSharedResourcesCommand}.
21
+ */
22
+ export interface DescribeSharedResourcesCommandOutput extends DescribeSharedResourcesResponse, __MetadataBearer {
23
+ }
24
+ declare const DescribeSharedResourcesCommand_base: {
25
+ new (input: DescribeSharedResourcesCommandInput): import("@smithy/core/client").CommandImpl<DescribeSharedResourcesCommandInput, DescribeSharedResourcesCommandOutput, MqClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DescribeSharedResourcesCommandInput): import("@smithy/core/client").CommandImpl<DescribeSharedResourcesCommandInput, DescribeSharedResourcesCommandOutput, MqClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Returns the resources shared to a broker.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { MqClient, DescribeSharedResourcesCommand } from "@aws-sdk/client-mq"; // ES Modules import
37
+ * // const { MqClient, DescribeSharedResourcesCommand } = require("@aws-sdk/client-mq"); // CommonJS import
38
+ * // import type { MqClientConfig } from "@aws-sdk/client-mq";
39
+ * const config = {}; // type is MqClientConfig
40
+ * const client = new MqClient(config);
41
+ * const input = { // DescribeSharedResourcesRequest
42
+ * BrokerId: "STRING_VALUE", // required
43
+ * MaxResults: Number("int"),
44
+ * NextToken: "STRING_VALUE",
45
+ * };
46
+ * const command = new DescribeSharedResourcesCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // DescribeSharedResourcesResponse
49
+ * // NextToken: "STRING_VALUE",
50
+ * // SharedResources: [ // __listOfSharedResource
51
+ * // { // SharedResource
52
+ * // DnsNames: [ // __listOf__string
53
+ * // "STRING_VALUE",
54
+ * // ],
55
+ * // Error: { // SharedResourceError
56
+ * // Code: "QUOTA_EXCEEDED" || "SHARE_NOT_FOUND" || "INVITE_FAILED" || "SETUP_INCOMPLETE" || "INTERNAL_ERROR" || "AZ_MISMATCH" || "RESOURCE_CONFIGURATION_NOT_FOUND", // required
57
+ * // Message: "STRING_VALUE", // required
58
+ * // },
59
+ * // ResourceArn: "STRING_VALUE", // required
60
+ * // ResourceShareArns: [
61
+ * // "STRING_VALUE",
62
+ * // ],
63
+ * // Status: "AVAILABLE" || "SETUP_IN_PROGRESS" || "DELETION_IN_PROGRESS" || "PENDING_CREATE" || "PENDING_DELETE" || "ERROR", // required
64
+ * // Type: "RESOURCE_SHARE" || "RESOURCE", // required
65
+ * // },
66
+ * // ],
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param DescribeSharedResourcesCommandInput - {@link DescribeSharedResourcesCommandInput}
72
+ * @returns {@link DescribeSharedResourcesCommandOutput}
73
+ * @see {@link DescribeSharedResourcesCommandInput} for command's `input` shape.
74
+ * @see {@link DescribeSharedResourcesCommandOutput} for command's `response` shape.
75
+ * @see {@link MqClientResolvedConfig | config} for MqClient's `config` shape.
76
+ *
77
+ * @throws {@link BadRequestException} (client fault)
78
+ * <p>Returns information about an error.</p>
79
+ *
80
+ * @throws {@link ForbiddenException} (client fault)
81
+ * <p>Returns information about an error.</p>
82
+ *
83
+ * @throws {@link InternalServerErrorException} (server fault)
84
+ * <p>Returns information about an error.</p>
85
+ *
86
+ * @throws {@link NotFoundException} (client fault)
87
+ * <p>Returns information about an error.</p>
88
+ *
89
+ * @throws {@link MqServiceException}
90
+ * <p>Base exception class for all service exceptions from Mq service.</p>
91
+ *
92
+ *
93
+ * @public
94
+ */
95
+ export declare class DescribeSharedResourcesCommand extends DescribeSharedResourcesCommand_base {
96
+ /** @internal type navigation helper, not in runtime. */
97
+ protected static __types: {
98
+ api: {
99
+ input: DescribeSharedResourcesRequest;
100
+ output: DescribeSharedResourcesResponse;
101
+ };
102
+ sdk: {
103
+ input: DescribeSharedResourcesCommandInput;
104
+ output: DescribeSharedResourcesCommandOutput;
105
+ };
106
+ };
107
+ }
@@ -72,6 +72,9 @@ declare const UpdateBrokerCommand_base: {
72
72
  * TimeOfDay: "STRING_VALUE", // required
73
73
  * TimeZone: "STRING_VALUE",
74
74
  * },
75
+ * ResourceShareArns: [
76
+ * "STRING_VALUE",
77
+ * ],
75
78
  * SecurityGroups: [
76
79
  * "STRING_VALUE",
77
80
  * ],
@@ -112,6 +115,9 @@ declare const UpdateBrokerCommand_base: {
112
115
  * // TimeOfDay: "STRING_VALUE", // required
113
116
  * // TimeZone: "STRING_VALUE",
114
117
  * // },
118
+ * // ResourceShareArns: [
119
+ * // "STRING_VALUE",
120
+ * // ],
115
121
  * // SecurityGroups: [
116
122
  * // "STRING_VALUE",
117
123
  * // ],
@@ -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";
@@ -78,6 +78,51 @@ export declare const SanitizationWarningReason: {
78
78
  * @public
79
79
  */
80
80
  export type SanitizationWarningReason = (typeof SanitizationWarningReason)[keyof typeof SanitizationWarningReason];
81
+ /**
82
+ * @public
83
+ * @enum
84
+ */
85
+ export declare const SharedResourceErrorCode: {
86
+ readonly AZ_MISMATCH: "AZ_MISMATCH";
87
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
88
+ readonly INVITE_FAILED: "INVITE_FAILED";
89
+ readonly QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
90
+ readonly RESOURCE_CONFIGURATION_NOT_FOUND: "RESOURCE_CONFIGURATION_NOT_FOUND";
91
+ readonly SETUP_INCOMPLETE: "SETUP_INCOMPLETE";
92
+ readonly SHARE_NOT_FOUND: "SHARE_NOT_FOUND";
93
+ };
94
+ /**
95
+ * @public
96
+ */
97
+ export type SharedResourceErrorCode = (typeof SharedResourceErrorCode)[keyof typeof SharedResourceErrorCode];
98
+ /**
99
+ * @public
100
+ * @enum
101
+ */
102
+ export declare const SharedResourceStatus: {
103
+ readonly AVAILABLE: "AVAILABLE";
104
+ readonly DELETION_IN_PROGRESS: "DELETION_IN_PROGRESS";
105
+ readonly ERROR: "ERROR";
106
+ readonly PENDING_CREATE: "PENDING_CREATE";
107
+ readonly PENDING_DELETE: "PENDING_DELETE";
108
+ readonly SETUP_IN_PROGRESS: "SETUP_IN_PROGRESS";
109
+ };
110
+ /**
111
+ * @public
112
+ */
113
+ export type SharedResourceStatus = (typeof SharedResourceStatus)[keyof typeof SharedResourceStatus];
114
+ /**
115
+ * @public
116
+ * @enum
117
+ */
118
+ export declare const SharedResourceType: {
119
+ readonly RESOURCE: "RESOURCE";
120
+ readonly RESOURCE_SHARE: "RESOURCE_SHARE";
121
+ };
122
+ /**
123
+ * @public
124
+ */
125
+ export type SharedResourceType = (typeof SharedResourceType)[keyof typeof SharedResourceType];
81
126
  /**
82
127
  * @public
83
128
  * @enum
@@ -1,4 +1,5 @@
1
1
  import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
+ import type { ResourceShareError } from "./models_0";
2
3
  import { MqServiceException as __BaseException } from "./MqServiceException";
3
4
  /**
4
5
  * <p>Returns information about an error.</p>
@@ -17,6 +18,11 @@ export declare class BadRequestException extends __BaseException {
17
18
  * @public
18
19
  */
19
20
  Message?: string | undefined;
21
+ /**
22
+ * <p>The list of resource share errors.</p>
23
+ * @public
24
+ */
25
+ ResourceShareErrors?: ResourceShareError[] | undefined;
20
26
  /**
21
27
  * @internal
22
28
  */
@@ -39,6 +45,11 @@ export declare class ConflictException extends __BaseException {
39
45
  * @public
40
46
  */
41
47
  Message?: string | undefined;
48
+ /**
49
+ * <p>The list of resource share errors.</p>
50
+ * @public
51
+ */
52
+ ResourceShareErrors?: ResourceShareError[] | undefined;
42
53
  /**
43
54
  * @internal
44
55
  */
@@ -61,6 +72,11 @@ export declare class ForbiddenException extends __BaseException {
61
72
  * @public
62
73
  */
63
74
  Message?: string | undefined;
75
+ /**
76
+ * <p>The list of resource share errors.</p>
77
+ * @public
78
+ */
79
+ ResourceShareErrors?: ResourceShareError[] | undefined;
64
80
  /**
65
81
  * @internal
66
82
  */
@@ -83,6 +99,11 @@ export declare class InternalServerErrorException extends __BaseException {
83
99
  * @public
84
100
  */
85
101
  Message?: string | undefined;
102
+ /**
103
+ * <p>The list of resource share errors.</p>
104
+ * @public
105
+ */
106
+ ResourceShareErrors?: ResourceShareError[] | undefined;
86
107
  /**
87
108
  * @internal
88
109
  */
@@ -105,6 +126,11 @@ export declare class UnauthorizedException extends __BaseException {
105
126
  * @public
106
127
  */
107
128
  Message?: string | undefined;
129
+ /**
130
+ * <p>The list of resource share errors.</p>
131
+ * @public
132
+ */
133
+ ResourceShareErrors?: ResourceShareError[] | undefined;
108
134
  /**
109
135
  * @internal
110
136
  */
@@ -127,6 +153,11 @@ export declare class NotFoundException extends __BaseException {
127
153
  * @public
128
154
  */
129
155
  Message?: string | undefined;
156
+ /**
157
+ * <p>The list of resource share errors.</p>
158
+ * @public
159
+ */
160
+ ResourceShareErrors?: ResourceShareError[] | undefined;
130
161
  /**
131
162
  * @internal
132
163
  */