@aws-sdk/client-chime-sdk-meetings 3.142.0 → 3.144.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 (32) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/ChimeSDKMeetings.js +45 -0
  3. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  4. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  5. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +64 -2
  8. package/dist-cjs/protocols/Aws_restJson1.js +260 -1
  9. package/dist-es/ChimeSDKMeetings.js +45 -0
  10. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  11. package/dist-es/commands/TagResourceCommand.js +39 -0
  12. package/dist-es/commands/UntagResourceCommand.js +39 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/models/models_0.js +39 -0
  15. package/dist-es/protocols/Aws_restJson1.js +333 -5
  16. package/dist-types/ChimeSDKMeetings.d.ts +46 -0
  17. package/dist-types/ChimeSDKMeetingsClient.d.ts +5 -2
  18. package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
  19. package/dist-types/commands/TagResourceCommand.d.ts +35 -0
  20. package/dist-types/commands/UntagResourceCommand.d.ts +60 -0
  21. package/dist-types/commands/index.d.ts +3 -0
  22. package/dist-types/models/models_0.d.ts +181 -0
  23. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  24. package/dist-types/ts3.4/ChimeSDKMeetings.d.ts +15 -0
  25. package/dist-types/ts3.4/ChimeSDKMeetingsClient.d.ts +5 -2
  26. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +80 -0
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
  32. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
3
  import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { ChimeSDKMeetingsServiceException as __BaseException } from "../models/ChimeSDKMeetingsServiceException";
6
- import { BadRequestException, ConflictException, ForbiddenException, LimitExceededException, NotFoundException, ServiceFailureException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, UnprocessableEntityException, } from "../models/models_0";
6
+ import { BadRequestException, ConflictException, ForbiddenException, LimitExceededException, NotFoundException, ResourceNotFoundException, ServiceFailureException, ServiceUnavailableException, ThrottlingException, TooManyTagsException, UnauthorizedException, UnprocessableEntityException, } from "../models/models_0";
7
7
  export var serializeAws_restJson1BatchCreateAttendeeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
8
8
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
9
9
  return __generator(this, function (_c) {
@@ -108,11 +108,11 @@ export var serializeAws_restJson1CreateMeetingCommand = function (input, context
108
108
  "content-type": "application/json",
109
109
  };
110
110
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings";
111
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId })), (input.MediaRegion != null && { MediaRegion: input.MediaRegion })), (input.MeetingFeatures != null && {
111
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId })), (input.MediaRegion != null && { MediaRegion: input.MediaRegion })), (input.MeetingFeatures != null && {
112
112
  MeetingFeatures: serializeAws_restJson1MeetingFeaturesConfiguration(input.MeetingFeatures, context),
113
113
  })), (input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId })), (input.NotificationsConfiguration != null && {
114
114
  NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
115
- })), (input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId })), (input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) })));
115
+ })), (input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) })));
116
116
  return [2, new __HttpRequest({
117
117
  protocol: protocol,
118
118
  hostname: hostname,
@@ -140,13 +140,13 @@ export var serializeAws_restJson1CreateMeetingWithAttendeesCommand = function (i
140
140
  query = map({
141
141
  operation: [, "create-attendees"],
142
142
  });
143
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attendees != null && {
143
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attendees != null && {
144
144
  Attendees: serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList(input.Attendees, context),
145
145
  })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId })), (input.MediaRegion != null && { MediaRegion: input.MediaRegion })), (input.MeetingFeatures != null && {
146
146
  MeetingFeatures: serializeAws_restJson1MeetingFeaturesConfiguration(input.MeetingFeatures, context),
147
147
  })), (input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId })), (input.NotificationsConfiguration != null && {
148
148
  NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
149
- })), (input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId })), (input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) })));
149
+ })), (input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) })));
150
150
  return [2, new __HttpRequest({
151
151
  protocol: protocol,
152
152
  hostname: hostname,
@@ -279,6 +279,31 @@ export var serializeAws_restJson1ListAttendeesCommand = function (input, context
279
279
  }
280
280
  });
281
281
  }); };
282
+ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
283
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
284
+ return __generator(this, function (_c) {
285
+ switch (_c.label) {
286
+ case 0: return [4, context.endpoint()];
287
+ case 1:
288
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
289
+ headers = {};
290
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
291
+ query = map({
292
+ arn: [, input.ResourceARN],
293
+ });
294
+ return [2, new __HttpRequest({
295
+ protocol: protocol,
296
+ hostname: hostname,
297
+ port: port,
298
+ method: "GET",
299
+ headers: headers,
300
+ path: resolvedPath,
301
+ query: query,
302
+ body: body,
303
+ })];
304
+ }
305
+ });
306
+ }); };
282
307
  export var serializeAws_restJson1StartMeetingTranscriptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
283
308
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
284
309
  return __generator(this, function (_c) {
@@ -336,6 +361,62 @@ export var serializeAws_restJson1StopMeetingTranscriptionCommand = function (inp
336
361
  }
337
362
  });
338
363
  }); };
364
+ export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
365
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
366
+ return __generator(this, function (_c) {
367
+ switch (_c.label) {
368
+ case 0: return [4, context.endpoint()];
369
+ case 1:
370
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
371
+ headers = {
372
+ "content-type": "application/json",
373
+ };
374
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
375
+ query = map({
376
+ operation: [, "tag-resource"],
377
+ });
378
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
379
+ return [2, new __HttpRequest({
380
+ protocol: protocol,
381
+ hostname: hostname,
382
+ port: port,
383
+ method: "POST",
384
+ headers: headers,
385
+ path: resolvedPath,
386
+ query: query,
387
+ body: body,
388
+ })];
389
+ }
390
+ });
391
+ }); };
392
+ export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
393
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
394
+ return __generator(this, function (_c) {
395
+ switch (_c.label) {
396
+ case 0: return [4, context.endpoint()];
397
+ case 1:
398
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
399
+ headers = {
400
+ "content-type": "application/json",
401
+ };
402
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
403
+ query = map({
404
+ operation: [, "untag-resource"],
405
+ });
406
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
407
+ return [2, new __HttpRequest({
408
+ protocol: protocol,
409
+ hostname: hostname,
410
+ port: port,
411
+ method: "POST",
412
+ headers: headers,
413
+ path: resolvedPath,
414
+ query: query,
415
+ body: body,
416
+ })];
417
+ }
418
+ });
419
+ }); };
339
420
  export var serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
340
421
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
341
422
  return __generator(this, function (_c) {
@@ -1174,6 +1255,62 @@ var deserializeAws_restJson1ListAttendeesCommandError = function (output, contex
1174
1255
  }
1175
1256
  });
1176
1257
  }); };
1258
+ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1259
+ var contents, data, _a, _b;
1260
+ return __generator(this, function (_c) {
1261
+ switch (_c.label) {
1262
+ case 0:
1263
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1264
+ return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
1265
+ }
1266
+ contents = map({
1267
+ $metadata: deserializeMetadata(output),
1268
+ });
1269
+ _a = __expectNonNull;
1270
+ _b = __expectObject;
1271
+ return [4, parseBody(output.body, context)];
1272
+ case 1:
1273
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1274
+ if (data.Tags != null) {
1275
+ contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
1276
+ }
1277
+ return [2, contents];
1278
+ }
1279
+ });
1280
+ }); };
1281
+ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1282
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1283
+ var _c;
1284
+ return __generator(this, function (_d) {
1285
+ switch (_d.label) {
1286
+ case 0:
1287
+ _a = [__assign({}, output)];
1288
+ _c = {};
1289
+ return [4, parseBody(output.body, context)];
1290
+ case 1:
1291
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1292
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1293
+ _b = errorCode;
1294
+ switch (_b) {
1295
+ case "ResourceNotFoundException": return [3, 2];
1296
+ case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException": return [3, 2];
1297
+ }
1298
+ return [3, 4];
1299
+ case 2: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1300
+ case 3: throw _d.sent();
1301
+ case 4:
1302
+ parsedBody = parsedOutput.body;
1303
+ throwDefaultError({
1304
+ output: output,
1305
+ parsedBody: parsedBody,
1306
+ exceptionCtor: __BaseException,
1307
+ errorCode: errorCode,
1308
+ });
1309
+ _d.label = 5;
1310
+ case 5: return [2];
1311
+ }
1312
+ });
1313
+ }); };
1177
1314
  export var deserializeAws_restJson1StartMeetingTranscriptionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1178
1315
  var contents;
1179
1316
  return __generator(this, function (_a) {
@@ -1336,6 +1473,120 @@ var deserializeAws_restJson1StopMeetingTranscriptionCommandError = function (out
1336
1473
  }
1337
1474
  });
1338
1475
  }); };
1476
+ export var deserializeAws_restJson1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1477
+ var contents;
1478
+ return __generator(this, function (_a) {
1479
+ switch (_a.label) {
1480
+ case 0:
1481
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1482
+ return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
1483
+ }
1484
+ contents = map({
1485
+ $metadata: deserializeMetadata(output),
1486
+ });
1487
+ return [4, collectBody(output.body, context)];
1488
+ case 1:
1489
+ _a.sent();
1490
+ return [2, contents];
1491
+ }
1492
+ });
1493
+ }); };
1494
+ var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1495
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1496
+ var _c;
1497
+ return __generator(this, function (_d) {
1498
+ switch (_d.label) {
1499
+ case 0:
1500
+ _a = [__assign({}, output)];
1501
+ _c = {};
1502
+ return [4, parseBody(output.body, context)];
1503
+ case 1:
1504
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1505
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1506
+ _b = errorCode;
1507
+ switch (_b) {
1508
+ case "BadRequestException": return [3, 2];
1509
+ case "com.amazonaws.chimesdkmeetings#BadRequestException": return [3, 2];
1510
+ case "ResourceNotFoundException": return [3, 4];
1511
+ case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException": return [3, 4];
1512
+ case "TooManyTagsException": return [3, 6];
1513
+ case "com.amazonaws.chimesdkmeetings#TooManyTagsException": return [3, 6];
1514
+ }
1515
+ return [3, 8];
1516
+ case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1517
+ case 3: throw _d.sent();
1518
+ case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1519
+ case 5: throw _d.sent();
1520
+ case 6: return [4, deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context)];
1521
+ case 7: throw _d.sent();
1522
+ case 8:
1523
+ parsedBody = parsedOutput.body;
1524
+ throwDefaultError({
1525
+ output: output,
1526
+ parsedBody: parsedBody,
1527
+ exceptionCtor: __BaseException,
1528
+ errorCode: errorCode,
1529
+ });
1530
+ _d.label = 9;
1531
+ case 9: return [2];
1532
+ }
1533
+ });
1534
+ }); };
1535
+ export var deserializeAws_restJson1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1536
+ var contents;
1537
+ return __generator(this, function (_a) {
1538
+ switch (_a.label) {
1539
+ case 0:
1540
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1541
+ return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
1542
+ }
1543
+ contents = map({
1544
+ $metadata: deserializeMetadata(output),
1545
+ });
1546
+ return [4, collectBody(output.body, context)];
1547
+ case 1:
1548
+ _a.sent();
1549
+ return [2, contents];
1550
+ }
1551
+ });
1552
+ }); };
1553
+ var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1554
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1555
+ var _c;
1556
+ return __generator(this, function (_d) {
1557
+ switch (_d.label) {
1558
+ case 0:
1559
+ _a = [__assign({}, output)];
1560
+ _c = {};
1561
+ return [4, parseBody(output.body, context)];
1562
+ case 1:
1563
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1564
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1565
+ _b = errorCode;
1566
+ switch (_b) {
1567
+ case "BadRequestException": return [3, 2];
1568
+ case "com.amazonaws.chimesdkmeetings#BadRequestException": return [3, 2];
1569
+ case "ResourceNotFoundException": return [3, 4];
1570
+ case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException": return [3, 4];
1571
+ }
1572
+ return [3, 6];
1573
+ case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1574
+ case 3: throw _d.sent();
1575
+ case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1576
+ case 5: throw _d.sent();
1577
+ case 6:
1578
+ parsedBody = parsedOutput.body;
1579
+ throwDefaultError({
1580
+ output: output,
1581
+ parsedBody: parsedBody,
1582
+ exceptionCtor: __BaseException,
1583
+ errorCode: errorCode,
1584
+ });
1585
+ _d.label = 7;
1586
+ case 7: return [2];
1587
+ }
1588
+ });
1589
+ }); };
1339
1590
  export var deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1340
1591
  var contents, data, _a, _b;
1341
1592
  return __generator(this, function (_c) {
@@ -1503,6 +1754,27 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
1503
1754
  return [2, __decorateServiceException(exception, parsedOutput.body)];
1504
1755
  });
1505
1756
  }); };
1757
+ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
1758
+ var contents, data, exception;
1759
+ return __generator(this, function (_a) {
1760
+ contents = map({});
1761
+ data = parsedOutput.body;
1762
+ if (data.Code != null) {
1763
+ contents.Code = __expectString(data.Code);
1764
+ }
1765
+ if (data.Message != null) {
1766
+ contents.Message = __expectString(data.Message);
1767
+ }
1768
+ if (data.RequestId != null) {
1769
+ contents.RequestId = __expectString(data.RequestId);
1770
+ }
1771
+ if (data.ResourceName != null) {
1772
+ contents.ResourceName = __expectString(data.ResourceName);
1773
+ }
1774
+ exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
1775
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
1776
+ });
1777
+ }); };
1506
1778
  var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
1507
1779
  var contents, data, exception;
1508
1780
  return __generator(this, function (_a) {
@@ -1559,6 +1831,27 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
1559
1831
  return [2, __decorateServiceException(exception, parsedOutput.body)];
1560
1832
  });
1561
1833
  }); };
1834
+ var deserializeAws_restJson1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
1835
+ var contents, data, exception;
1836
+ return __generator(this, function (_a) {
1837
+ contents = map({});
1838
+ data = parsedOutput.body;
1839
+ if (data.Code != null) {
1840
+ contents.Code = __expectString(data.Code);
1841
+ }
1842
+ if (data.Message != null) {
1843
+ contents.Message = __expectString(data.Message);
1844
+ }
1845
+ if (data.RequestId != null) {
1846
+ contents.RequestId = __expectString(data.RequestId);
1847
+ }
1848
+ if (data.ResourceName != null) {
1849
+ contents.ResourceName = __expectString(data.ResourceName);
1850
+ }
1851
+ exception = new TooManyTagsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
1852
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
1853
+ });
1854
+ }); };
1562
1855
  var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
1563
1856
  var contents, data, exception;
1564
1857
  return __generator(this, function (_a) {
@@ -1644,6 +1937,23 @@ var serializeAws_restJson1MeetingFeaturesConfiguration = function (input, contex
1644
1937
  var serializeAws_restJson1NotificationsConfiguration = function (input, context) {
1645
1938
  return __assign(__assign(__assign({}, (input.LambdaFunctionArn != null && { LambdaFunctionArn: input.LambdaFunctionArn })), (input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn })), (input.SqsQueueArn != null && { SqsQueueArn: input.SqsQueueArn }));
1646
1939
  };
1940
+ var serializeAws_restJson1Tag = function (input, context) {
1941
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
1942
+ };
1943
+ var serializeAws_restJson1TagKeyList = function (input, context) {
1944
+ return input
1945
+ .filter(function (e) { return e != null; })
1946
+ .map(function (entry) {
1947
+ return entry;
1948
+ });
1949
+ };
1950
+ var serializeAws_restJson1TagList = function (input, context) {
1951
+ return input
1952
+ .filter(function (e) { return e != null; })
1953
+ .map(function (entry) {
1954
+ return serializeAws_restJson1Tag(entry, context);
1955
+ });
1956
+ };
1647
1957
  var serializeAws_restJson1TenantIdList = function (input, context) {
1648
1958
  return input
1649
1959
  .filter(function (e) { return e != null; })
@@ -1728,6 +2038,7 @@ var deserializeAws_restJson1Meeting = function (output, context) {
1728
2038
  ? deserializeAws_restJson1MediaPlacement(output.MediaPlacement, context)
1729
2039
  : undefined,
1730
2040
  MediaRegion: __expectString(output.MediaRegion),
2041
+ MeetingArn: __expectString(output.MeetingArn),
1731
2042
  MeetingFeatures: output.MeetingFeatures != null
1732
2043
  ? deserializeAws_restJson1MeetingFeaturesConfiguration(output.MeetingFeatures, context)
1733
2044
  : undefined,
@@ -1742,6 +2053,23 @@ var deserializeAws_restJson1MeetingFeaturesConfiguration = function (output, con
1742
2053
  Audio: output.Audio != null ? deserializeAws_restJson1AudioFeatures(output.Audio, context) : undefined,
1743
2054
  };
1744
2055
  };
2056
+ var deserializeAws_restJson1Tag = function (output, context) {
2057
+ return {
2058
+ Key: __expectString(output.Key),
2059
+ Value: __expectString(output.Value),
2060
+ };
2061
+ };
2062
+ var deserializeAws_restJson1TagList = function (output, context) {
2063
+ var retVal = (output || [])
2064
+ .filter(function (e) { return e != null; })
2065
+ .map(function (entry) {
2066
+ if (entry === null) {
2067
+ return null;
2068
+ }
2069
+ return deserializeAws_restJson1Tag(entry, context);
2070
+ });
2071
+ return retVal;
2072
+ };
1745
2073
  var deserializeAws_restJson1TenantIdList = function (output, context) {
1746
2074
  var retVal = (output || [])
1747
2075
  .filter(function (e) { return e != null; })
@@ -10,8 +10,11 @@ import { DeleteMeetingCommandInput, DeleteMeetingCommandOutput } from "./command
10
10
  import { GetAttendeeCommandInput, GetAttendeeCommandOutput } from "./commands/GetAttendeeCommand";
11
11
  import { GetMeetingCommandInput, GetMeetingCommandOutput } from "./commands/GetMeetingCommand";
12
12
  import { ListAttendeesCommandInput, ListAttendeesCommandOutput } from "./commands/ListAttendeesCommand";
13
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
13
14
  import { StartMeetingTranscriptionCommandInput, StartMeetingTranscriptionCommandOutput } from "./commands/StartMeetingTranscriptionCommand";
14
15
  import { StopMeetingTranscriptionCommandInput, StopMeetingTranscriptionCommandOutput } from "./commands/StopMeetingTranscriptionCommand";
16
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
17
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
15
18
  import { UpdateAttendeeCapabilitiesCommandInput, UpdateAttendeeCapabilitiesCommandOutput } from "./commands/UpdateAttendeeCapabilitiesCommand";
16
19
  /**
17
20
  * <p>The Amazon Chime SDK meetings APIs in this section allow software developers to create Amazon Chime SDK meetings, set the AWS Regions for meetings, create and manage users, and send and
@@ -134,6 +137,12 @@ export declare class ChimeSDKMeetings extends ChimeSDKMeetingsClient {
134
137
  listAttendees(args: ListAttendeesCommandInput, options?: __HttpHandlerOptions): Promise<ListAttendeesCommandOutput>;
135
138
  listAttendees(args: ListAttendeesCommandInput, cb: (err: any, data?: ListAttendeesCommandOutput) => void): void;
136
139
  listAttendees(args: ListAttendeesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAttendeesCommandOutput) => void): void;
140
+ /**
141
+ * <p>Returns a list of the tags available for the specified resource.</p>
142
+ */
143
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
144
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
145
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
137
146
  /**
138
147
  * <p>Starts transcription for the specified <code>meetingId</code>.</p>
139
148
  */
@@ -146,6 +155,43 @@ export declare class ChimeSDKMeetings extends ChimeSDKMeetingsClient {
146
155
  stopMeetingTranscription(args: StopMeetingTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<StopMeetingTranscriptionCommandOutput>;
147
156
  stopMeetingTranscription(args: StopMeetingTranscriptionCommandInput, cb: (err: any, data?: StopMeetingTranscriptionCommandOutput) => void): void;
148
157
  stopMeetingTranscription(args: StopMeetingTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopMeetingTranscriptionCommandOutput) => void): void;
158
+ /**
159
+ * <p>The resource that supports tags.</p>
160
+ */
161
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
162
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
163
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
164
+ /**
165
+ * <p>Removes the specified tags from the specified resources. When you specify a tag key, the action removes both that key and its associated value. The operation succeeds even if you
166
+ * attempt to remove tags from a resource that were already removed. Note the following:</p>
167
+ * <ul>
168
+ * <li>
169
+ * <p>To remove tags from a resource, you need the necessary permissions for the service that the resource belongs to as well as permissions for removing tags. For more information,
170
+ * see the documentation for the service whose resource you want to untag.</p>
171
+ * </li>
172
+ * <li>
173
+ * <p>You can only tag resources that are located in the specified AWS Region for the calling AWS account.</p>
174
+ * </li>
175
+ * </ul>
176
+ *
177
+ * <p>
178
+ * <b>Minimum permissions</b>
179
+ * </p>
180
+ *
181
+ * <p>In addition to the <code>tag:UntagResources</code> permission required by this operation, you must also have the remove tags permission defined by the service that created the resource.
182
+ * For example, to remove the tags from an Amazon EC2 instance using the <code>UntagResources</code> operation, you must have both of the following permissions:</p>
183
+ *
184
+ * <p>
185
+ * <code>tag:UntagResource</code>
186
+ * </p>
187
+ *
188
+ * <p>
189
+ * <code>ChimeSDKMeetings:DeleteTags</code>
190
+ * </p>
191
+ */
192
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
193
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
194
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
149
195
  /**
150
196
  * <p>The capabilties that you want to update.</p>
151
197
  * <note>
@@ -16,11 +16,14 @@ import { DeleteMeetingCommandInput, DeleteMeetingCommandOutput } from "./command
16
16
  import { GetAttendeeCommandInput, GetAttendeeCommandOutput } from "./commands/GetAttendeeCommand";
17
17
  import { GetMeetingCommandInput, GetMeetingCommandOutput } from "./commands/GetMeetingCommand";
18
18
  import { ListAttendeesCommandInput, ListAttendeesCommandOutput } from "./commands/ListAttendeesCommand";
19
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
19
20
  import { StartMeetingTranscriptionCommandInput, StartMeetingTranscriptionCommandOutput } from "./commands/StartMeetingTranscriptionCommand";
20
21
  import { StopMeetingTranscriptionCommandInput, StopMeetingTranscriptionCommandOutput } from "./commands/StopMeetingTranscriptionCommand";
22
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
23
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
21
24
  import { UpdateAttendeeCapabilitiesCommandInput, UpdateAttendeeCapabilitiesCommandOutput } from "./commands/UpdateAttendeeCapabilitiesCommand";
22
- export declare type ServiceInputTypes = BatchCreateAttendeeCommandInput | BatchUpdateAttendeeCapabilitiesExceptCommandInput | CreateAttendeeCommandInput | CreateMeetingCommandInput | CreateMeetingWithAttendeesCommandInput | DeleteAttendeeCommandInput | DeleteMeetingCommandInput | GetAttendeeCommandInput | GetMeetingCommandInput | ListAttendeesCommandInput | StartMeetingTranscriptionCommandInput | StopMeetingTranscriptionCommandInput | UpdateAttendeeCapabilitiesCommandInput;
23
- export declare type ServiceOutputTypes = BatchCreateAttendeeCommandOutput | BatchUpdateAttendeeCapabilitiesExceptCommandOutput | CreateAttendeeCommandOutput | CreateMeetingCommandOutput | CreateMeetingWithAttendeesCommandOutput | DeleteAttendeeCommandOutput | DeleteMeetingCommandOutput | GetAttendeeCommandOutput | GetMeetingCommandOutput | ListAttendeesCommandOutput | StartMeetingTranscriptionCommandOutput | StopMeetingTranscriptionCommandOutput | UpdateAttendeeCapabilitiesCommandOutput;
25
+ export declare type ServiceInputTypes = BatchCreateAttendeeCommandInput | BatchUpdateAttendeeCapabilitiesExceptCommandInput | CreateAttendeeCommandInput | CreateMeetingCommandInput | CreateMeetingWithAttendeesCommandInput | DeleteAttendeeCommandInput | DeleteMeetingCommandInput | GetAttendeeCommandInput | GetMeetingCommandInput | ListAttendeesCommandInput | ListTagsForResourceCommandInput | StartMeetingTranscriptionCommandInput | StopMeetingTranscriptionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAttendeeCapabilitiesCommandInput;
26
+ export declare type ServiceOutputTypes = BatchCreateAttendeeCommandOutput | BatchUpdateAttendeeCapabilitiesExceptCommandOutput | CreateAttendeeCommandOutput | CreateMeetingCommandOutput | CreateMeetingWithAttendeesCommandOutput | DeleteAttendeeCommandOutput | DeleteMeetingCommandOutput | GetAttendeeCommandOutput | GetMeetingCommandOutput | ListAttendeesCommandOutput | ListTagsForResourceCommandOutput | StartMeetingTranscriptionCommandOutput | StopMeetingTranscriptionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAttendeeCapabilitiesCommandOutput;
24
27
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
25
28
  /**
26
29
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ChimeSDKMeetingsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ChimeSDKMeetingsClient";
4
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
5
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
6
+ }
7
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Returns a list of the tags available for the specified resource.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { ChimeSDKMeetingsClient, ListTagsForResourceCommand } from "@aws-sdk/client-chime-sdk-meetings"; // ES Modules import
15
+ * // const { ChimeSDKMeetingsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-chime-sdk-meetings"); // CommonJS import
16
+ * const client = new ChimeSDKMeetingsClient(config);
17
+ * const command = new ListTagsForResourceCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
22
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
23
+ * @see {@link ChimeSDKMeetingsClientResolvedConfig | config} for ChimeSDKMeetingsClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, ChimeSDKMeetingsClientResolvedConfig> {
27
+ readonly input: ListTagsForResourceCommandInput;
28
+ constructor(input: ListTagsForResourceCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ChimeSDKMeetingsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ChimeSDKMeetingsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ChimeSDKMeetingsClient";
4
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
5
+ export interface TagResourceCommandInput extends TagResourceRequest {
6
+ }
7
+ export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>The resource that supports tags.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { ChimeSDKMeetingsClient, TagResourceCommand } from "@aws-sdk/client-chime-sdk-meetings"; // ES Modules import
15
+ * // const { ChimeSDKMeetingsClient, TagResourceCommand } = require("@aws-sdk/client-chime-sdk-meetings"); // CommonJS import
16
+ * const client = new ChimeSDKMeetingsClient(config);
17
+ * const command = new TagResourceCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
22
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
23
+ * @see {@link ChimeSDKMeetingsClientResolvedConfig | config} for ChimeSDKMeetingsClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, ChimeSDKMeetingsClientResolvedConfig> {
27
+ readonly input: TagResourceCommandInput;
28
+ constructor(input: TagResourceCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ChimeSDKMeetingsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -0,0 +1,60 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ChimeSDKMeetingsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ChimeSDKMeetingsClient";
4
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
5
+ export interface UntagResourceCommandInput extends UntagResourceRequest {
6
+ }
7
+ export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Removes the specified tags from the specified resources. When you specify a tag key, the action removes both that key and its associated value. The operation succeeds even if you
11
+ * attempt to remove tags from a resource that were already removed. Note the following:</p>
12
+ * <ul>
13
+ * <li>
14
+ * <p>To remove tags from a resource, you need the necessary permissions for the service that the resource belongs to as well as permissions for removing tags. For more information,
15
+ * see the documentation for the service whose resource you want to untag.</p>
16
+ * </li>
17
+ * <li>
18
+ * <p>You can only tag resources that are located in the specified AWS Region for the calling AWS account.</p>
19
+ * </li>
20
+ * </ul>
21
+ *
22
+ * <p>
23
+ * <b>Minimum permissions</b>
24
+ * </p>
25
+ *
26
+ * <p>In addition to the <code>tag:UntagResources</code> permission required by this operation, you must also have the remove tags permission defined by the service that created the resource.
27
+ * For example, to remove the tags from an Amazon EC2 instance using the <code>UntagResources</code> operation, you must have both of the following permissions:</p>
28
+ *
29
+ * <p>
30
+ * <code>tag:UntagResource</code>
31
+ * </p>
32
+ *
33
+ * <p>
34
+ * <code>ChimeSDKMeetings:DeleteTags</code>
35
+ * </p>
36
+ * @example
37
+ * Use a bare-bones client and the command you need to make an API call.
38
+ * ```javascript
39
+ * import { ChimeSDKMeetingsClient, UntagResourceCommand } from "@aws-sdk/client-chime-sdk-meetings"; // ES Modules import
40
+ * // const { ChimeSDKMeetingsClient, UntagResourceCommand } = require("@aws-sdk/client-chime-sdk-meetings"); // CommonJS import
41
+ * const client = new ChimeSDKMeetingsClient(config);
42
+ * const command = new UntagResourceCommand(input);
43
+ * const response = await client.send(command);
44
+ * ```
45
+ *
46
+ * @see {@link UntagResourceCommandInput} for command's `input` shape.
47
+ * @see {@link UntagResourceCommandOutput} for command's `response` shape.
48
+ * @see {@link ChimeSDKMeetingsClientResolvedConfig | config} for ChimeSDKMeetingsClient's `config` shape.
49
+ *
50
+ */
51
+ export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, ChimeSDKMeetingsClientResolvedConfig> {
52
+ readonly input: UntagResourceCommandInput;
53
+ constructor(input: UntagResourceCommandInput);
54
+ /**
55
+ * @internal
56
+ */
57
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ChimeSDKMeetingsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
58
+ private serialize;
59
+ private deserialize;
60
+ }