@aws-sdk/client-chime-sdk-meetings 3.142.0 → 3.150.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 +27 -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 +8 -3
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = exports.deserializeAws_restJson1StopMeetingTranscriptionCommand = exports.deserializeAws_restJson1StartMeetingTranscriptionCommand = exports.deserializeAws_restJson1ListAttendeesCommand = exports.deserializeAws_restJson1GetMeetingCommand = exports.deserializeAws_restJson1GetAttendeeCommand = exports.deserializeAws_restJson1DeleteMeetingCommand = exports.deserializeAws_restJson1DeleteAttendeeCommand = exports.deserializeAws_restJson1CreateMeetingWithAttendeesCommand = exports.deserializeAws_restJson1CreateMeetingCommand = exports.deserializeAws_restJson1CreateAttendeeCommand = exports.deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = exports.deserializeAws_restJson1BatchCreateAttendeeCommand = exports.serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = exports.serializeAws_restJson1StopMeetingTranscriptionCommand = exports.serializeAws_restJson1StartMeetingTranscriptionCommand = exports.serializeAws_restJson1ListAttendeesCommand = exports.serializeAws_restJson1GetMeetingCommand = exports.serializeAws_restJson1GetAttendeeCommand = exports.serializeAws_restJson1DeleteMeetingCommand = exports.serializeAws_restJson1DeleteAttendeeCommand = exports.serializeAws_restJson1CreateMeetingWithAttendeesCommand = exports.serializeAws_restJson1CreateMeetingCommand = exports.serializeAws_restJson1CreateAttendeeCommand = exports.serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = exports.serializeAws_restJson1BatchCreateAttendeeCommand = void 0;
3
+ exports.deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopMeetingTranscriptionCommand = exports.deserializeAws_restJson1StartMeetingTranscriptionCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListAttendeesCommand = exports.deserializeAws_restJson1GetMeetingCommand = exports.deserializeAws_restJson1GetAttendeeCommand = exports.deserializeAws_restJson1DeleteMeetingCommand = exports.deserializeAws_restJson1DeleteAttendeeCommand = exports.deserializeAws_restJson1CreateMeetingWithAttendeesCommand = exports.deserializeAws_restJson1CreateMeetingCommand = exports.deserializeAws_restJson1CreateAttendeeCommand = exports.deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = exports.deserializeAws_restJson1BatchCreateAttendeeCommand = exports.serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopMeetingTranscriptionCommand = exports.serializeAws_restJson1StartMeetingTranscriptionCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListAttendeesCommand = exports.serializeAws_restJson1GetMeetingCommand = exports.serializeAws_restJson1GetAttendeeCommand = exports.serializeAws_restJson1DeleteMeetingCommand = exports.serializeAws_restJson1DeleteAttendeeCommand = exports.serializeAws_restJson1CreateMeetingWithAttendeesCommand = exports.serializeAws_restJson1CreateMeetingCommand = exports.serializeAws_restJson1CreateAttendeeCommand = exports.serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = exports.serializeAws_restJson1BatchCreateAttendeeCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const uuid_1 = require("uuid");
@@ -111,6 +111,7 @@ const serializeAws_restJson1CreateMeetingCommand = async (input, context) => {
111
111
  NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
112
112
  }),
113
113
  ...(input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId }),
114
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
114
115
  ...(input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) }),
115
116
  });
116
117
  return new protocol_http_1.HttpRequest({
@@ -150,6 +151,7 @@ const serializeAws_restJson1CreateMeetingWithAttendeesCommand = async (input, co
150
151
  NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
151
152
  }),
152
153
  ...(input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId }),
154
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
153
155
  ...(input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) }),
154
156
  });
155
157
  return new protocol_http_1.HttpRequest({
@@ -258,6 +260,26 @@ const serializeAws_restJson1ListAttendeesCommand = async (input, context) => {
258
260
  });
259
261
  };
260
262
  exports.serializeAws_restJson1ListAttendeesCommand = serializeAws_restJson1ListAttendeesCommand;
263
+ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
264
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
265
+ const headers = {};
266
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
267
+ const query = map({
268
+ arn: [, input.ResourceARN],
269
+ });
270
+ let body;
271
+ return new protocol_http_1.HttpRequest({
272
+ protocol,
273
+ hostname,
274
+ port,
275
+ method: "GET",
276
+ headers,
277
+ path: resolvedPath,
278
+ query,
279
+ body,
280
+ });
281
+ };
282
+ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
261
283
  const serializeAws_restJson1StartMeetingTranscriptionCommand = async (input, context) => {
262
284
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
263
285
  const headers = {
@@ -307,6 +329,58 @@ const serializeAws_restJson1StopMeetingTranscriptionCommand = async (input, cont
307
329
  });
308
330
  };
309
331
  exports.serializeAws_restJson1StopMeetingTranscriptionCommand = serializeAws_restJson1StopMeetingTranscriptionCommand;
332
+ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
333
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
334
+ const headers = {
335
+ "content-type": "application/json",
336
+ };
337
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
338
+ const query = map({
339
+ operation: [, "tag-resource"],
340
+ });
341
+ let body;
342
+ body = JSON.stringify({
343
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
344
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
345
+ });
346
+ return new protocol_http_1.HttpRequest({
347
+ protocol,
348
+ hostname,
349
+ port,
350
+ method: "POST",
351
+ headers,
352
+ path: resolvedPath,
353
+ query,
354
+ body,
355
+ });
356
+ };
357
+ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
358
+ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
359
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
360
+ const headers = {
361
+ "content-type": "application/json",
362
+ };
363
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
364
+ const query = map({
365
+ operation: [, "untag-resource"],
366
+ });
367
+ let body;
368
+ body = JSON.stringify({
369
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
370
+ ...(input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
371
+ });
372
+ return new protocol_http_1.HttpRequest({
373
+ protocol,
374
+ hostname,
375
+ port,
376
+ method: "POST",
377
+ headers,
378
+ path: resolvedPath,
379
+ query,
380
+ body,
381
+ });
382
+ };
383
+ exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
310
384
  const serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = async (input, context) => {
311
385
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
312
386
  const headers = {
@@ -865,6 +939,40 @@ const deserializeAws_restJson1ListAttendeesCommandError = async (output, context
865
939
  });
866
940
  }
867
941
  };
942
+ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
943
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
944
+ return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
945
+ }
946
+ const contents = map({
947
+ $metadata: deserializeMetadata(output),
948
+ });
949
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
950
+ if (data.Tags != null) {
951
+ contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
952
+ }
953
+ return contents;
954
+ };
955
+ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
956
+ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
957
+ const parsedOutput = {
958
+ ...output,
959
+ body: await parseBody(output.body, context),
960
+ };
961
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
962
+ switch (errorCode) {
963
+ case "ResourceNotFoundException":
964
+ case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
965
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
966
+ default:
967
+ const parsedBody = parsedOutput.body;
968
+ (0, smithy_client_1.throwDefaultError)({
969
+ output,
970
+ parsedBody,
971
+ exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
972
+ errorCode,
973
+ });
974
+ }
975
+ };
868
976
  const deserializeAws_restJson1StartMeetingTranscriptionCommand = async (output, context) => {
869
977
  if (output.statusCode !== 200 && output.statusCode >= 300) {
870
978
  return deserializeAws_restJson1StartMeetingTranscriptionCommandError(output, context);
@@ -972,6 +1080,77 @@ const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (outp
972
1080
  });
973
1081
  }
974
1082
  };
1083
+ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1084
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1085
+ return deserializeAws_restJson1TagResourceCommandError(output, context);
1086
+ }
1087
+ const contents = map({
1088
+ $metadata: deserializeMetadata(output),
1089
+ });
1090
+ await collectBody(output.body, context);
1091
+ return contents;
1092
+ };
1093
+ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
1094
+ const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1095
+ const parsedOutput = {
1096
+ ...output,
1097
+ body: await parseBody(output.body, context),
1098
+ };
1099
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1100
+ switch (errorCode) {
1101
+ case "BadRequestException":
1102
+ case "com.amazonaws.chimesdkmeetings#BadRequestException":
1103
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1104
+ case "ResourceNotFoundException":
1105
+ case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
1106
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1107
+ case "TooManyTagsException":
1108
+ case "com.amazonaws.chimesdkmeetings#TooManyTagsException":
1109
+ throw await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context);
1110
+ default:
1111
+ const parsedBody = parsedOutput.body;
1112
+ (0, smithy_client_1.throwDefaultError)({
1113
+ output,
1114
+ parsedBody,
1115
+ exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
1116
+ errorCode,
1117
+ });
1118
+ }
1119
+ };
1120
+ const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
1121
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1122
+ return deserializeAws_restJson1UntagResourceCommandError(output, context);
1123
+ }
1124
+ const contents = map({
1125
+ $metadata: deserializeMetadata(output),
1126
+ });
1127
+ await collectBody(output.body, context);
1128
+ return contents;
1129
+ };
1130
+ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
1131
+ const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1132
+ const parsedOutput = {
1133
+ ...output,
1134
+ body: await parseBody(output.body, context),
1135
+ };
1136
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1137
+ switch (errorCode) {
1138
+ case "BadRequestException":
1139
+ case "com.amazonaws.chimesdkmeetings#BadRequestException":
1140
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1141
+ case "ResourceNotFoundException":
1142
+ case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
1143
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1144
+ default:
1145
+ const parsedBody = parsedOutput.body;
1146
+ (0, smithy_client_1.throwDefaultError)({
1147
+ output,
1148
+ parsedBody,
1149
+ exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
1150
+ errorCode,
1151
+ });
1152
+ }
1153
+ };
975
1154
  const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = async (output, context) => {
976
1155
  if (output.statusCode !== 200 && output.statusCode >= 300) {
977
1156
  return deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError(output, context);
@@ -1112,6 +1291,27 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
1112
1291
  });
1113
1292
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1114
1293
  };
1294
+ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1295
+ const contents = map({});
1296
+ const data = parsedOutput.body;
1297
+ if (data.Code != null) {
1298
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
1299
+ }
1300
+ if (data.Message != null) {
1301
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1302
+ }
1303
+ if (data.RequestId != null) {
1304
+ contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
1305
+ }
1306
+ if (data.ResourceName != null) {
1307
+ contents.ResourceName = (0, smithy_client_1.expectString)(data.ResourceName);
1308
+ }
1309
+ const exception = new models_0_1.ResourceNotFoundException({
1310
+ $metadata: deserializeMetadata(parsedOutput),
1311
+ ...contents,
1312
+ });
1313
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1314
+ };
1115
1315
  const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOutput, context) => {
1116
1316
  const contents = map({});
1117
1317
  const data = parsedOutput.body;
@@ -1168,6 +1368,27 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
1168
1368
  });
1169
1369
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1170
1370
  };
1371
+ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
1372
+ const contents = map({});
1373
+ const data = parsedOutput.body;
1374
+ if (data.Code != null) {
1375
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
1376
+ }
1377
+ if (data.Message != null) {
1378
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1379
+ }
1380
+ if (data.RequestId != null) {
1381
+ contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
1382
+ }
1383
+ if (data.ResourceName != null) {
1384
+ contents.ResourceName = (0, smithy_client_1.expectString)(data.ResourceName);
1385
+ }
1386
+ const exception = new models_0_1.TooManyTagsException({
1387
+ $metadata: deserializeMetadata(parsedOutput),
1388
+ ...contents,
1389
+ });
1390
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1391
+ };
1171
1392
  const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
1172
1393
  const contents = map({});
1173
1394
  const data = parsedOutput.body;
@@ -1292,6 +1513,26 @@ const serializeAws_restJson1NotificationsConfiguration = (input, context) => {
1292
1513
  ...(input.SqsQueueArn != null && { SqsQueueArn: input.SqsQueueArn }),
1293
1514
  };
1294
1515
  };
1516
+ const serializeAws_restJson1Tag = (input, context) => {
1517
+ return {
1518
+ ...(input.Key != null && { Key: input.Key }),
1519
+ ...(input.Value != null && { Value: input.Value }),
1520
+ };
1521
+ };
1522
+ const serializeAws_restJson1TagKeyList = (input, context) => {
1523
+ return input
1524
+ .filter((e) => e != null)
1525
+ .map((entry) => {
1526
+ return entry;
1527
+ });
1528
+ };
1529
+ const serializeAws_restJson1TagList = (input, context) => {
1530
+ return input
1531
+ .filter((e) => e != null)
1532
+ .map((entry) => {
1533
+ return serializeAws_restJson1Tag(entry, context);
1534
+ });
1535
+ };
1295
1536
  const serializeAws_restJson1TenantIdList = (input, context) => {
1296
1537
  return input
1297
1538
  .filter((e) => e != null)
@@ -1379,6 +1620,7 @@ const deserializeAws_restJson1Meeting = (output, context) => {
1379
1620
  ? deserializeAws_restJson1MediaPlacement(output.MediaPlacement, context)
1380
1621
  : undefined,
1381
1622
  MediaRegion: (0, smithy_client_1.expectString)(output.MediaRegion),
1623
+ MeetingArn: (0, smithy_client_1.expectString)(output.MeetingArn),
1382
1624
  MeetingFeatures: output.MeetingFeatures != null
1383
1625
  ? deserializeAws_restJson1MeetingFeaturesConfiguration(output.MeetingFeatures, context)
1384
1626
  : undefined,
@@ -1393,6 +1635,23 @@ const deserializeAws_restJson1MeetingFeaturesConfiguration = (output, context) =
1393
1635
  Audio: output.Audio != null ? deserializeAws_restJson1AudioFeatures(output.Audio, context) : undefined,
1394
1636
  };
1395
1637
  };
1638
+ const deserializeAws_restJson1Tag = (output, context) => {
1639
+ return {
1640
+ Key: (0, smithy_client_1.expectString)(output.Key),
1641
+ Value: (0, smithy_client_1.expectString)(output.Value),
1642
+ };
1643
+ };
1644
+ const deserializeAws_restJson1TagList = (output, context) => {
1645
+ const retVal = (output || [])
1646
+ .filter((e) => e != null)
1647
+ .map((entry) => {
1648
+ if (entry === null) {
1649
+ return null;
1650
+ }
1651
+ return deserializeAws_restJson1Tag(entry, context);
1652
+ });
1653
+ return retVal;
1654
+ };
1396
1655
  const deserializeAws_restJson1TenantIdList = (output, context) => {
1397
1656
  const retVal = (output || [])
1398
1657
  .filter((e) => e != null)
@@ -10,8 +10,11 @@ import { DeleteMeetingCommand, } from "./commands/DeleteMeetingCommand";
10
10
  import { GetAttendeeCommand } from "./commands/GetAttendeeCommand";
11
11
  import { GetMeetingCommand } from "./commands/GetMeetingCommand";
12
12
  import { ListAttendeesCommand, } from "./commands/ListAttendeesCommand";
13
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
13
14
  import { StartMeetingTranscriptionCommand, } from "./commands/StartMeetingTranscriptionCommand";
14
15
  import { StopMeetingTranscriptionCommand, } from "./commands/StopMeetingTranscriptionCommand";
16
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
17
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
15
18
  import { UpdateAttendeeCapabilitiesCommand, } from "./commands/UpdateAttendeeCapabilitiesCommand";
16
19
  var ChimeSDKMeetings = (function (_super) {
17
20
  __extends(ChimeSDKMeetings, _super);
@@ -158,6 +161,20 @@ var ChimeSDKMeetings = (function (_super) {
158
161
  return this.send(command, optionsOrCb);
159
162
  }
160
163
  };
164
+ ChimeSDKMeetings.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
165
+ var command = new ListTagsForResourceCommand(args);
166
+ if (typeof optionsOrCb === "function") {
167
+ this.send(command, optionsOrCb);
168
+ }
169
+ else if (typeof cb === "function") {
170
+ if (typeof optionsOrCb !== "object")
171
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
172
+ this.send(command, optionsOrCb || {}, cb);
173
+ }
174
+ else {
175
+ return this.send(command, optionsOrCb);
176
+ }
177
+ };
161
178
  ChimeSDKMeetings.prototype.startMeetingTranscription = function (args, optionsOrCb, cb) {
162
179
  var command = new StartMeetingTranscriptionCommand(args);
163
180
  if (typeof optionsOrCb === "function") {
@@ -186,6 +203,34 @@ var ChimeSDKMeetings = (function (_super) {
186
203
  return this.send(command, optionsOrCb);
187
204
  }
188
205
  };
206
+ ChimeSDKMeetings.prototype.tagResource = function (args, optionsOrCb, cb) {
207
+ var command = new TagResourceCommand(args);
208
+ if (typeof optionsOrCb === "function") {
209
+ this.send(command, optionsOrCb);
210
+ }
211
+ else if (typeof cb === "function") {
212
+ if (typeof optionsOrCb !== "object")
213
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
214
+ this.send(command, optionsOrCb || {}, cb);
215
+ }
216
+ else {
217
+ return this.send(command, optionsOrCb);
218
+ }
219
+ };
220
+ ChimeSDKMeetings.prototype.untagResource = function (args, optionsOrCb, cb) {
221
+ var command = new UntagResourceCommand(args);
222
+ if (typeof optionsOrCb === "function") {
223
+ this.send(command, optionsOrCb);
224
+ }
225
+ else if (typeof cb === "function") {
226
+ if (typeof optionsOrCb !== "object")
227
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
228
+ this.send(command, optionsOrCb || {}, cb);
229
+ }
230
+ else {
231
+ return this.send(command, optionsOrCb);
232
+ }
233
+ };
189
234
  ChimeSDKMeetings.prototype.updateAttendeeCapabilities = function (args, optionsOrCb, cb) {
190
235
  var command = new UpdateAttendeeCapabilitiesCommand(args);
191
236
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
+ var ListTagsForResourceCommand = (function (_super) {
7
+ __extends(ListTagsForResourceCommand, _super);
8
+ function ListTagsForResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ChimeSDKMeetingsClient";
18
+ var commandName = "ListTagsForResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTagsForResourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListTagsForResourceCommand(input, context);
33
+ };
34
+ ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
36
+ };
37
+ return ListTagsForResourceCommand;
38
+ }($Command));
39
+ export { ListTagsForResourceCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
6
+ var TagResourceCommand = (function (_super) {
7
+ __extends(TagResourceCommand, _super);
8
+ function TagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ChimeSDKMeetingsClient";
18
+ var commandName = "TagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ TagResourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1TagResourceCommand(input, context);
33
+ };
34
+ TagResourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1TagResourceCommand(output, context);
36
+ };
37
+ return TagResourceCommand;
38
+ }($Command));
39
+ export { TagResourceCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
6
+ var UntagResourceCommand = (function (_super) {
7
+ __extends(UntagResourceCommand, _super);
8
+ function UntagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ChimeSDKMeetingsClient";
18
+ var commandName = "UntagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UntagResourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UntagResourceCommand(input, context);
33
+ };
34
+ UntagResourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UntagResourceCommand(output, context);
36
+ };
37
+ return UntagResourceCommand;
38
+ }($Command));
39
+ export { UntagResourceCommand };
@@ -8,6 +8,9 @@ export * from "./DeleteMeetingCommand";
8
8
  export * from "./GetAttendeeCommand";
9
9
  export * from "./GetMeetingCommand";
10
10
  export * from "./ListAttendeesCommand";
11
+ export * from "./ListTagsForResourceCommand";
11
12
  export * from "./StartMeetingTranscriptionCommand";
12
13
  export * from "./StopMeetingTranscriptionCommand";
14
+ export * from "./TagResourceCommand";
15
+ export * from "./UntagResourceCommand";
13
16
  export * from "./UpdateAttendeeCapabilitiesCommand";
@@ -164,6 +164,22 @@ var ConflictException = (function (_super) {
164
164
  return ConflictException;
165
165
  }(__BaseException));
166
166
  export { ConflictException };
167
+ var ResourceNotFoundException = (function (_super) {
168
+ __extends(ResourceNotFoundException, _super);
169
+ function ResourceNotFoundException(opts) {
170
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
171
+ _this.name = "ResourceNotFoundException";
172
+ _this.$fault = "client";
173
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
174
+ _this.Code = opts.Code;
175
+ _this.Message = opts.Message;
176
+ _this.RequestId = opts.RequestId;
177
+ _this.ResourceName = opts.ResourceName;
178
+ return _this;
179
+ }
180
+ return ResourceNotFoundException;
181
+ }(__BaseException));
182
+ export { ResourceNotFoundException };
167
183
  export var TranscribeMedicalContentIdentificationType;
168
184
  (function (TranscribeMedicalContentIdentificationType) {
169
185
  TranscribeMedicalContentIdentificationType["PHI"] = "PHI";
@@ -247,6 +263,22 @@ export var TranscribeVocabularyFilterMethod;
247
263
  TranscribeVocabularyFilterMethod["REMOVE"] = "remove";
248
264
  TranscribeVocabularyFilterMethod["TAG"] = "tag";
249
265
  })(TranscribeVocabularyFilterMethod || (TranscribeVocabularyFilterMethod = {}));
266
+ var TooManyTagsException = (function (_super) {
267
+ __extends(TooManyTagsException, _super);
268
+ function TooManyTagsException(opts) {
269
+ var _this = _super.call(this, __assign({ name: "TooManyTagsException", $fault: "client" }, opts)) || this;
270
+ _this.name = "TooManyTagsException";
271
+ _this.$fault = "client";
272
+ Object.setPrototypeOf(_this, TooManyTagsException.prototype);
273
+ _this.Code = opts.Code;
274
+ _this.Message = opts.Message;
275
+ _this.RequestId = opts.RequestId;
276
+ _this.ResourceName = opts.ResourceName;
277
+ return _this;
278
+ }
279
+ return TooManyTagsException;
280
+ }(__BaseException));
281
+ export { TooManyTagsException };
250
282
  export var AttendeeCapabilitiesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
251
283
  export var AttendeeFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.ExternalUserId && { ExternalUserId: SENSITIVE_STRING })), (obj.JoinToken && { JoinToken: SENSITIVE_STRING }))); };
252
284
  export var AttendeeIdItemFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -260,6 +292,7 @@ export var CreateAttendeeRequestFilterSensitiveLog = function (obj) { return (__
260
292
  export var CreateAttendeeResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Attendee && { Attendee: AttendeeFilterSensitiveLog(obj.Attendee) }))); };
261
293
  export var MeetingFeaturesConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
262
294
  export var NotificationsConfigurationFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.LambdaFunctionArn && { LambdaFunctionArn: SENSITIVE_STRING })), (obj.SnsTopicArn && { SnsTopicArn: SENSITIVE_STRING })), (obj.SqsQueueArn && { SqsQueueArn: SENSITIVE_STRING }))); };
295
+ export var TagFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
263
296
  export var CreateMeetingRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.ClientRequestToken && { ClientRequestToken: SENSITIVE_STRING })), (obj.MeetingHostId && { MeetingHostId: SENSITIVE_STRING })), (obj.ExternalMeetingId && { ExternalMeetingId: SENSITIVE_STRING })), (obj.NotificationsConfiguration && {
264
297
  NotificationsConfiguration: NotificationsConfigurationFilterSensitiveLog(obj.NotificationsConfiguration),
265
298
  }))); };
@@ -278,10 +311,16 @@ export var GetMeetingRequestFilterSensitiveLog = function (obj) { return (__assi
278
311
  export var GetMeetingResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Meeting && { Meeting: MeetingFilterSensitiveLog(obj.Meeting) }))); };
279
312
  export var ListAttendeesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
280
313
  export var ListAttendeesResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Attendees && { Attendees: obj.Attendees.map(function (item) { return AttendeeFilterSensitiveLog(item); }) }))); };
314
+ export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
315
+ export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
281
316
  export var EngineTranscribeMedicalSettingsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
282
317
  export var EngineTranscribeSettingsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
283
318
  export var TranscriptionConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
284
319
  export var StartMeetingTranscriptionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
285
320
  export var StopMeetingTranscriptionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
321
+ export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
322
+ export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
323
+ export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
324
+ export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
286
325
  export var UpdateAttendeeCapabilitiesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
287
326
  export var UpdateAttendeeCapabilitiesResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Attendee && { Attendee: AttendeeFilterSensitiveLog(obj.Attendee) }))); };