@aws-sdk/client-schemas 3.28.0 → 3.32.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.
@@ -21,6 +21,10 @@ export interface DiscovererSummary {
21
21
  * <p>The state of the discoverer.</p>
22
22
  */
23
23
  State?: DiscovererState | string;
24
+ /**
25
+ * <p>The Status if the discoverer will discover schemas from events sent from another account.</p>
26
+ */
27
+ CrossAccount?: boolean;
24
28
  /**
25
29
  * <p>Tags associated with the resource.</p>
26
30
  */
@@ -211,6 +215,10 @@ export interface CreateDiscovererRequest {
211
215
  * <p>The ARN of the event bus.</p>
212
216
  */
213
217
  SourceArn: string | undefined;
218
+ /**
219
+ * <p>Support discovery of schemas in events sent to the bus from another account. (default: true).</p>
220
+ */
221
+ CrossAccount?: boolean;
214
222
  /**
215
223
  * <p>Tags associated with the resource.</p>
216
224
  */
@@ -245,6 +253,10 @@ export interface CreateDiscovererResponse {
245
253
  * <p>The state of the discoverer.</p>
246
254
  */
247
255
  State?: DiscovererState | string;
256
+ /**
257
+ * <p>The Status if the discoverer will discover schemas from events sent from another account.</p>
258
+ */
259
+ CrossAccount?: boolean;
248
260
  /**
249
261
  * <p>Tags associated with the resource.</p>
250
262
  */
@@ -643,6 +655,10 @@ export interface DescribeDiscovererResponse {
643
655
  * <p>The state of the discoverer.</p>
644
656
  */
645
657
  State?: DiscovererState | string;
658
+ /**
659
+ * <p>The Status if the discoverer will discover schemas from events sent from another account.</p>
660
+ */
661
+ CrossAccount?: boolean;
646
662
  /**
647
663
  * <p>Tags associated with the resource.</p>
648
664
  */
@@ -1319,6 +1335,10 @@ export interface UpdateDiscovererRequest {
1319
1335
  * <p>The ID of the discoverer.</p>
1320
1336
  */
1321
1337
  DiscovererId: string | undefined;
1338
+ /**
1339
+ * <p>Support discovery of schemas in events sent to the bus from another account. (default: true)</p>
1340
+ */
1341
+ CrossAccount?: boolean;
1322
1342
  }
1323
1343
  export declare namespace UpdateDiscovererRequest {
1324
1344
  /**
@@ -1347,6 +1367,10 @@ export interface UpdateDiscovererResponse {
1347
1367
  * <p>The state of the discoverer.</p>
1348
1368
  */
1349
1369
  State?: DiscovererState | string;
1370
+ /**
1371
+ * <p>The Status if the discoverer will discover schemas from events sent from another account.</p>
1372
+ */
1373
+ CrossAccount?: boolean;
1350
1374
  /**
1351
1375
  * <p>Tags associated with the resource.</p>
1352
1376
  */
@@ -21,6 +21,10 @@ export interface DiscovererSummary {
21
21
  * <p>The state of the discoverer.</p>
22
22
  */
23
23
  State?: DiscovererState | string;
24
+ /**
25
+ * <p>The Status if the discoverer will discover schemas from events sent from another account.</p>
26
+ */
27
+ CrossAccount?: boolean;
24
28
  /**
25
29
  * <p>Tags associated with the resource.</p>
26
30
  */
@@ -211,6 +215,10 @@ export interface CreateDiscovererRequest {
211
215
  * <p>The ARN of the event bus.</p>
212
216
  */
213
217
  SourceArn: string | undefined;
218
+ /**
219
+ * <p>Support discovery of schemas in events sent to the bus from another account. (default: true).</p>
220
+ */
221
+ CrossAccount?: boolean;
214
222
  /**
215
223
  * <p>Tags associated with the resource.</p>
216
224
  */
@@ -245,6 +253,10 @@ export interface CreateDiscovererResponse {
245
253
  * <p>The state of the discoverer.</p>
246
254
  */
247
255
  State?: DiscovererState | string;
256
+ /**
257
+ * <p>The Status if the discoverer will discover schemas from events sent from another account.</p>
258
+ */
259
+ CrossAccount?: boolean;
248
260
  /**
249
261
  * <p>Tags associated with the resource.</p>
250
262
  */
@@ -643,6 +655,10 @@ export interface DescribeDiscovererResponse {
643
655
  * <p>The state of the discoverer.</p>
644
656
  */
645
657
  State?: DiscovererState | string;
658
+ /**
659
+ * <p>The Status if the discoverer will discover schemas from events sent from another account.</p>
660
+ */
661
+ CrossAccount?: boolean;
646
662
  /**
647
663
  * <p>Tags associated with the resource.</p>
648
664
  */
@@ -1319,6 +1335,10 @@ export interface UpdateDiscovererRequest {
1319
1335
  * <p>The ID of the discoverer.</p>
1320
1336
  */
1321
1337
  DiscovererId: string | undefined;
1338
+ /**
1339
+ * <p>Support discovery of schemas in events sent to the bus from another account. (default: true)</p>
1340
+ */
1341
+ CrossAccount?: boolean;
1322
1342
  }
1323
1343
  export declare namespace UpdateDiscovererRequest {
1324
1344
  /**
@@ -1347,6 +1367,10 @@ export interface UpdateDiscovererResponse {
1347
1367
  * <p>The state of the discoverer.</p>
1348
1368
  */
1349
1369
  State?: DiscovererState | string;
1370
+ /**
1371
+ * <p>The Status if the discoverer will discover schemas from events sent from another account.</p>
1372
+ */
1373
+ CrossAccount?: boolean;
1350
1374
  /**
1351
1375
  * <p>Tags associated with the resource.</p>
1352
1376
  */
@@ -27,6 +27,11 @@ export interface DiscovererSummary {
27
27
  */
28
28
  State?: DiscovererState | string;
29
29
 
30
+ /**
31
+ * <p>The Status if the discoverer will discover schemas from events sent from another account.</p>
32
+ */
33
+ CrossAccount?: boolean;
34
+
30
35
  /**
31
36
  * <p>Tags associated with the resource.</p>
32
37
  */
@@ -263,6 +268,11 @@ export interface CreateDiscovererRequest {
263
268
  */
264
269
  SourceArn: string | undefined;
265
270
 
271
+ /**
272
+ * <p>Support discovery of schemas in events sent to the bus from another account. (default: true).</p>
273
+ */
274
+ CrossAccount?: boolean;
275
+
266
276
  /**
267
277
  * <p>Tags associated with the resource.</p>
268
278
  */
@@ -304,6 +314,11 @@ export interface CreateDiscovererResponse {
304
314
  */
305
315
  State?: DiscovererState | string;
306
316
 
317
+ /**
318
+ * <p>The Status if the discoverer will discover schemas from events sent from another account.</p>
319
+ */
320
+ CrossAccount?: boolean;
321
+
307
322
  /**
308
323
  * <p>Tags associated with the resource.</p>
309
324
  */
@@ -805,6 +820,11 @@ export interface DescribeDiscovererResponse {
805
820
  */
806
821
  State?: DiscovererState | string;
807
822
 
823
+ /**
824
+ * <p>The Status if the discoverer will discover schemas from events sent from another account.</p>
825
+ */
826
+ CrossAccount?: boolean;
827
+
808
828
  /**
809
829
  * <p>Tags associated with the resource.</p>
810
830
  */
@@ -1671,6 +1691,11 @@ export interface UpdateDiscovererRequest {
1671
1691
  * <p>The ID of the discoverer.</p>
1672
1692
  */
1673
1693
  DiscovererId: string | undefined;
1694
+
1695
+ /**
1696
+ * <p>Support discovery of schemas in events sent to the bus from another account. (default: true)</p>
1697
+ */
1698
+ CrossAccount?: boolean;
1674
1699
  }
1675
1700
 
1676
1701
  export namespace UpdateDiscovererRequest {
@@ -1708,6 +1733,11 @@ export interface UpdateDiscovererResponse {
1708
1733
  */
1709
1734
  State?: DiscovererState | string;
1710
1735
 
1736
+ /**
1737
+ * <p>The Status if the discoverer will discover schemas from events sent from another account.</p>
1738
+ */
1739
+ CrossAccount?: boolean;
1740
+
1711
1741
  /**
1712
1742
  * <p>Tags associated with the resource.</p>
1713
1743
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-schemas",
3
3
  "description": "AWS SDK for JavaScript Schemas Client for Node.js, Browser and React Native",
4
- "version": "3.28.0",
4
+ "version": "3.32.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -27,40 +27,40 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.0.0",
29
29
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.28.0",
31
- "@aws-sdk/config-resolver": "3.28.0",
32
- "@aws-sdk/credential-provider-node": "3.28.0",
33
- "@aws-sdk/fetch-http-handler": "3.25.0",
34
- "@aws-sdk/hash-node": "3.25.0",
35
- "@aws-sdk/invalid-dependency": "3.25.0",
36
- "@aws-sdk/middleware-content-length": "3.25.0",
37
- "@aws-sdk/middleware-host-header": "3.25.0",
38
- "@aws-sdk/middleware-logger": "3.25.0",
39
- "@aws-sdk/middleware-retry": "3.28.0",
40
- "@aws-sdk/middleware-serde": "3.25.0",
41
- "@aws-sdk/middleware-signing": "3.28.0",
42
- "@aws-sdk/middleware-stack": "3.25.0",
43
- "@aws-sdk/middleware-user-agent": "3.25.0",
44
- "@aws-sdk/node-config-provider": "3.28.0",
45
- "@aws-sdk/node-http-handler": "3.25.0",
46
- "@aws-sdk/protocol-http": "3.25.0",
47
- "@aws-sdk/smithy-client": "3.28.0",
48
- "@aws-sdk/types": "3.25.0",
49
- "@aws-sdk/url-parser": "3.25.0",
50
- "@aws-sdk/util-base64-browser": "3.23.0",
51
- "@aws-sdk/util-base64-node": "3.23.0",
52
- "@aws-sdk/util-body-length-browser": "3.23.0",
53
- "@aws-sdk/util-body-length-node": "3.23.0",
54
- "@aws-sdk/util-user-agent-browser": "3.25.0",
55
- "@aws-sdk/util-user-agent-node": "3.28.0",
56
- "@aws-sdk/util-utf8-browser": "3.23.0",
57
- "@aws-sdk/util-utf8-node": "3.23.0",
58
- "@aws-sdk/util-waiter": "3.25.0",
30
+ "@aws-sdk/client-sts": "3.32.0",
31
+ "@aws-sdk/config-resolver": "3.32.0",
32
+ "@aws-sdk/credential-provider-node": "3.32.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.32.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.32.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.0",
58
+ "@aws-sdk/util-waiter": "3.32.0",
59
59
  "tslib": "^2.3.0",
60
60
  "uuid": "^8.3.2"
61
61
  },
62
62
  "devDependencies": {
63
- "@aws-sdk/client-documentation-generator": "3.23.0",
63
+ "@aws-sdk/client-documentation-generator": "3.32.0",
64
64
  "@types/node": "^12.7.5",
65
65
  "@types/uuid": "^8.3.0",
66
66
  "downlevel-dts": "0.7.0",
@@ -68,7 +68,7 @@
68
68
  "rimraf": "^3.0.0",
69
69
  "ts-jest": "^26.4.1",
70
70
  "typedoc": "^0.19.2",
71
- "typescript": "~4.3.2"
71
+ "typescript": "~4.3.5"
72
72
  },
73
73
  "engines": {
74
74
  "node": ">=10.0.0"
@@ -68,9 +68,13 @@ import {
68
68
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
69
69
  import {
70
70
  LazyJsonString as __LazyJsonString,
71
- expectInt as __expectInt,
71
+ expectBoolean as __expectBoolean,
72
+ expectLong as __expectLong,
73
+ expectNonNull as __expectNonNull,
74
+ expectObject as __expectObject,
72
75
  expectString as __expectString,
73
76
  extendedEncodeURIComponent as __extendedEncodeURIComponent,
77
+ parseRfc3339DateTime as __parseRfc3339DateTime,
74
78
  } from "@aws-sdk/smithy-client";
75
79
  import {
76
80
  Endpoint as __Endpoint,
@@ -92,6 +96,7 @@ export const serializeAws_restJson1CreateDiscovererCommand = async (
92
96
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers";
93
97
  let body: any;
94
98
  body = JSON.stringify({
99
+ ...(input.CrossAccount !== undefined && input.CrossAccount !== null && { CrossAccount: input.CrossAccount }),
95
100
  ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
96
101
  ...(input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn }),
97
102
  ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
@@ -1078,6 +1083,7 @@ export const serializeAws_restJson1UpdateDiscovererCommand = async (
1078
1083
  }
1079
1084
  let body: any;
1080
1085
  body = JSON.stringify({
1086
+ ...(input.CrossAccount !== undefined && input.CrossAccount !== null && { CrossAccount: input.CrossAccount }),
1081
1087
  ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1082
1088
  });
1083
1089
  return new __HttpRequest({
@@ -1181,6 +1187,7 @@ export const deserializeAws_restJson1CreateDiscovererCommand = async (
1181
1187
  }
1182
1188
  const contents: CreateDiscovererCommandOutput = {
1183
1189
  $metadata: deserializeMetadata(output),
1190
+ CrossAccount: undefined,
1184
1191
  Description: undefined,
1185
1192
  DiscovererArn: undefined,
1186
1193
  DiscovererId: undefined,
@@ -1188,7 +1195,10 @@ export const deserializeAws_restJson1CreateDiscovererCommand = async (
1188
1195
  State: undefined,
1189
1196
  Tags: undefined,
1190
1197
  };
1191
- const data: any = await parseBody(output.body, context);
1198
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1199
+ if (data.CrossAccount !== undefined && data.CrossAccount !== null) {
1200
+ contents.CrossAccount = __expectBoolean(data.CrossAccount);
1201
+ }
1192
1202
  if (data.Description !== undefined && data.Description !== null) {
1193
1203
  contents.Description = __expectString(data.Description);
1194
1204
  }
@@ -1301,7 +1311,7 @@ export const deserializeAws_restJson1CreateRegistryCommand = async (
1301
1311
  RegistryName: undefined,
1302
1312
  Tags: undefined,
1303
1313
  };
1304
- const data: any = await parseBody(output.body, context);
1314
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1305
1315
  if (data.Description !== undefined && data.Description !== null) {
1306
1316
  contents.Description = __expectString(data.Description);
1307
1317
  }
@@ -1412,12 +1422,12 @@ export const deserializeAws_restJson1CreateSchemaCommand = async (
1412
1422
  Type: undefined,
1413
1423
  VersionCreatedDate: undefined,
1414
1424
  };
1415
- const data: any = await parseBody(output.body, context);
1425
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1416
1426
  if (data.Description !== undefined && data.Description !== null) {
1417
1427
  contents.Description = __expectString(data.Description);
1418
1428
  }
1419
1429
  if (data.LastModified !== undefined && data.LastModified !== null) {
1420
- contents.LastModified = new Date(data.LastModified);
1430
+ contents.LastModified = __expectNonNull(__parseRfc3339DateTime(data.LastModified));
1421
1431
  }
1422
1432
  if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
1423
1433
  contents.SchemaArn = __expectString(data.SchemaArn);
@@ -1435,7 +1445,7 @@ export const deserializeAws_restJson1CreateSchemaCommand = async (
1435
1445
  contents.Type = __expectString(data.Type);
1436
1446
  }
1437
1447
  if (data.VersionCreatedDate !== undefined && data.VersionCreatedDate !== null) {
1438
- contents.VersionCreatedDate = new Date(data.VersionCreatedDate);
1448
+ contents.VersionCreatedDate = __expectNonNull(__parseRfc3339DateTime(data.VersionCreatedDate));
1439
1449
  }
1440
1450
  return Promise.resolve(contents);
1441
1451
  };
@@ -1970,12 +1980,12 @@ export const deserializeAws_restJson1DescribeCodeBindingCommand = async (
1970
1980
  SchemaVersion: undefined,
1971
1981
  Status: undefined,
1972
1982
  };
1973
- const data: any = await parseBody(output.body, context);
1983
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1974
1984
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
1975
- contents.CreationDate = new Date(data.CreationDate);
1985
+ contents.CreationDate = __expectNonNull(__parseRfc3339DateTime(data.CreationDate));
1976
1986
  }
1977
1987
  if (data.LastModified !== undefined && data.LastModified !== null) {
1978
- contents.LastModified = new Date(data.LastModified);
1988
+ contents.LastModified = __expectNonNull(__parseRfc3339DateTime(data.LastModified));
1979
1989
  }
1980
1990
  if (data.SchemaVersion !== undefined && data.SchemaVersion !== null) {
1981
1991
  contents.SchemaVersion = __expectString(data.SchemaVersion);
@@ -2072,6 +2082,7 @@ export const deserializeAws_restJson1DescribeDiscovererCommand = async (
2072
2082
  }
2073
2083
  const contents: DescribeDiscovererCommandOutput = {
2074
2084
  $metadata: deserializeMetadata(output),
2085
+ CrossAccount: undefined,
2075
2086
  Description: undefined,
2076
2087
  DiscovererArn: undefined,
2077
2088
  DiscovererId: undefined,
@@ -2079,7 +2090,10 @@ export const deserializeAws_restJson1DescribeDiscovererCommand = async (
2079
2090
  State: undefined,
2080
2091
  Tags: undefined,
2081
2092
  };
2082
- const data: any = await parseBody(output.body, context);
2093
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2094
+ if (data.CrossAccount !== undefined && data.CrossAccount !== null) {
2095
+ contents.CrossAccount = __expectBoolean(data.CrossAccount);
2096
+ }
2083
2097
  if (data.Description !== undefined && data.Description !== null) {
2084
2098
  contents.Description = __expectString(data.Description);
2085
2099
  }
@@ -2192,7 +2206,7 @@ export const deserializeAws_restJson1DescribeRegistryCommand = async (
2192
2206
  RegistryName: undefined,
2193
2207
  Tags: undefined,
2194
2208
  };
2195
- const data: any = await parseBody(output.body, context);
2209
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2196
2210
  if (data.Description !== undefined && data.Description !== null) {
2197
2211
  contents.Description = __expectString(data.Description);
2198
2212
  }
@@ -2304,7 +2318,7 @@ export const deserializeAws_restJson1DescribeSchemaCommand = async (
2304
2318
  Type: undefined,
2305
2319
  VersionCreatedDate: undefined,
2306
2320
  };
2307
- const data: any = await parseBody(output.body, context);
2321
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2308
2322
  if (data.Content !== undefined && data.Content !== null) {
2309
2323
  contents.Content = __expectString(data.Content);
2310
2324
  }
@@ -2312,7 +2326,7 @@ export const deserializeAws_restJson1DescribeSchemaCommand = async (
2312
2326
  contents.Description = __expectString(data.Description);
2313
2327
  }
2314
2328
  if (data.LastModified !== undefined && data.LastModified !== null) {
2315
- contents.LastModified = new Date(data.LastModified);
2329
+ contents.LastModified = __expectNonNull(__parseRfc3339DateTime(data.LastModified));
2316
2330
  }
2317
2331
  if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
2318
2332
  contents.SchemaArn = __expectString(data.SchemaArn);
@@ -2330,7 +2344,7 @@ export const deserializeAws_restJson1DescribeSchemaCommand = async (
2330
2344
  contents.Type = __expectString(data.Type);
2331
2345
  }
2332
2346
  if (data.VersionCreatedDate !== undefined && data.VersionCreatedDate !== null) {
2333
- contents.VersionCreatedDate = new Date(data.VersionCreatedDate);
2347
+ contents.VersionCreatedDate = __expectNonNull(__parseRfc3339DateTime(data.VersionCreatedDate));
2334
2348
  }
2335
2349
  return Promise.resolve(contents);
2336
2350
  };
@@ -2427,7 +2441,7 @@ export const deserializeAws_restJson1ExportSchemaCommand = async (
2427
2441
  SchemaVersion: undefined,
2428
2442
  Type: undefined,
2429
2443
  };
2430
- const data: any = await parseBody(output.body, context);
2444
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2431
2445
  if (data.Content !== undefined && data.Content !== null) {
2432
2446
  contents.Content = __expectString(data.Content);
2433
2447
  }
@@ -2635,7 +2649,7 @@ export const deserializeAws_restJson1GetDiscoveredSchemaCommand = async (
2635
2649
  $metadata: deserializeMetadata(output),
2636
2650
  Content: undefined,
2637
2651
  };
2638
- const data: any = await parseBody(output.body, context);
2652
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2639
2653
  if (data.Content !== undefined && data.Content !== null) {
2640
2654
  contents.Content = __expectString(data.Content);
2641
2655
  }
@@ -2723,7 +2737,7 @@ export const deserializeAws_restJson1GetResourcePolicyCommand = async (
2723
2737
  Policy: undefined,
2724
2738
  RevisionId: undefined,
2725
2739
  };
2726
- const data: any = await parseBody(output.body, context);
2740
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2727
2741
  if (data.Policy !== undefined && data.Policy !== null) {
2728
2742
  contents.Policy = new __LazyJsonString(data.Policy);
2729
2743
  }
@@ -2822,7 +2836,7 @@ export const deserializeAws_restJson1ListDiscoverersCommand = async (
2822
2836
  Discoverers: undefined,
2823
2837
  NextToken: undefined,
2824
2838
  };
2825
- const data: any = await parseBody(output.body, context);
2839
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2826
2840
  if (data.Discoverers !== undefined && data.Discoverers !== null) {
2827
2841
  contents.Discoverers = deserializeAws_restJson1__listOfDiscovererSummary(data.Discoverers, context);
2828
2842
  }
@@ -2913,7 +2927,7 @@ export const deserializeAws_restJson1ListRegistriesCommand = async (
2913
2927
  NextToken: undefined,
2914
2928
  Registries: undefined,
2915
2929
  };
2916
- const data: any = await parseBody(output.body, context);
2930
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2917
2931
  if (data.NextToken !== undefined && data.NextToken !== null) {
2918
2932
  contents.NextToken = __expectString(data.NextToken);
2919
2933
  }
@@ -3004,7 +3018,7 @@ export const deserializeAws_restJson1ListSchemasCommand = async (
3004
3018
  NextToken: undefined,
3005
3019
  Schemas: undefined,
3006
3020
  };
3007
- const data: any = await parseBody(output.body, context);
3021
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3008
3022
  if (data.NextToken !== undefined && data.NextToken !== null) {
3009
3023
  contents.NextToken = __expectString(data.NextToken);
3010
3024
  }
@@ -3095,7 +3109,7 @@ export const deserializeAws_restJson1ListSchemaVersionsCommand = async (
3095
3109
  NextToken: undefined,
3096
3110
  SchemaVersions: undefined,
3097
3111
  };
3098
- const data: any = await parseBody(output.body, context);
3112
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3099
3113
  if (data.NextToken !== undefined && data.NextToken !== null) {
3100
3114
  contents.NextToken = __expectString(data.NextToken);
3101
3115
  }
@@ -3193,7 +3207,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
3193
3207
  $metadata: deserializeMetadata(output),
3194
3208
  Tags: undefined,
3195
3209
  };
3196
- const data: any = await parseBody(output.body, context);
3210
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3197
3211
  if (data.tags !== undefined && data.tags !== null) {
3198
3212
  contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
3199
3213
  }
@@ -3275,12 +3289,12 @@ export const deserializeAws_restJson1PutCodeBindingCommand = async (
3275
3289
  SchemaVersion: undefined,
3276
3290
  Status: undefined,
3277
3291
  };
3278
- const data: any = await parseBody(output.body, context);
3292
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3279
3293
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
3280
- contents.CreationDate = new Date(data.CreationDate);
3294
+ contents.CreationDate = __expectNonNull(__parseRfc3339DateTime(data.CreationDate));
3281
3295
  }
3282
3296
  if (data.LastModified !== undefined && data.LastModified !== null) {
3283
- contents.LastModified = new Date(data.LastModified);
3297
+ contents.LastModified = __expectNonNull(__parseRfc3339DateTime(data.LastModified));
3284
3298
  }
3285
3299
  if (data.SchemaVersion !== undefined && data.SchemaVersion !== null) {
3286
3300
  contents.SchemaVersion = __expectString(data.SchemaVersion);
@@ -3388,7 +3402,7 @@ export const deserializeAws_restJson1PutResourcePolicyCommand = async (
3388
3402
  Policy: undefined,
3389
3403
  RevisionId: undefined,
3390
3404
  };
3391
- const data: any = await parseBody(output.body, context);
3405
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3392
3406
  if (data.Policy !== undefined && data.Policy !== null) {
3393
3407
  contents.Policy = new __LazyJsonString(data.Policy);
3394
3408
  }
@@ -3495,7 +3509,7 @@ export const deserializeAws_restJson1SearchSchemasCommand = async (
3495
3509
  NextToken: undefined,
3496
3510
  Schemas: undefined,
3497
3511
  };
3498
- const data: any = await parseBody(output.body, context);
3512
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3499
3513
  if (data.NextToken !== undefined && data.NextToken !== null) {
3500
3514
  contents.NextToken = __expectString(data.NextToken);
3501
3515
  }
@@ -3586,7 +3600,7 @@ export const deserializeAws_restJson1StartDiscovererCommand = async (
3586
3600
  DiscovererId: undefined,
3587
3601
  State: undefined,
3588
3602
  };
3589
- const data: any = await parseBody(output.body, context);
3603
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3590
3604
  if (data.DiscovererId !== undefined && data.DiscovererId !== null) {
3591
3605
  contents.DiscovererId = __expectString(data.DiscovererId);
3592
3606
  }
@@ -3685,7 +3699,7 @@ export const deserializeAws_restJson1StopDiscovererCommand = async (
3685
3699
  DiscovererId: undefined,
3686
3700
  State: undefined,
3687
3701
  };
3688
- const data: any = await parseBody(output.body, context);
3702
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3689
3703
  if (data.DiscovererId !== undefined && data.DiscovererId !== null) {
3690
3704
  contents.DiscovererId = __expectString(data.DiscovererId);
3691
3705
  }
@@ -3931,6 +3945,7 @@ export const deserializeAws_restJson1UpdateDiscovererCommand = async (
3931
3945
  }
3932
3946
  const contents: UpdateDiscovererCommandOutput = {
3933
3947
  $metadata: deserializeMetadata(output),
3948
+ CrossAccount: undefined,
3934
3949
  Description: undefined,
3935
3950
  DiscovererArn: undefined,
3936
3951
  DiscovererId: undefined,
@@ -3938,7 +3953,10 @@ export const deserializeAws_restJson1UpdateDiscovererCommand = async (
3938
3953
  State: undefined,
3939
3954
  Tags: undefined,
3940
3955
  };
3941
- const data: any = await parseBody(output.body, context);
3956
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3957
+ if (data.CrossAccount !== undefined && data.CrossAccount !== null) {
3958
+ contents.CrossAccount = __expectBoolean(data.CrossAccount);
3959
+ }
3942
3960
  if (data.Description !== undefined && data.Description !== null) {
3943
3961
  contents.Description = __expectString(data.Description);
3944
3962
  }
@@ -4051,7 +4069,7 @@ export const deserializeAws_restJson1UpdateRegistryCommand = async (
4051
4069
  RegistryName: undefined,
4052
4070
  Tags: undefined,
4053
4071
  };
4054
- const data: any = await parseBody(output.body, context);
4072
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4055
4073
  if (data.Description !== undefined && data.Description !== null) {
4056
4074
  contents.Description = __expectString(data.Description);
4057
4075
  }
@@ -4162,12 +4180,12 @@ export const deserializeAws_restJson1UpdateSchemaCommand = async (
4162
4180
  Type: undefined,
4163
4181
  VersionCreatedDate: undefined,
4164
4182
  };
4165
- const data: any = await parseBody(output.body, context);
4183
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4166
4184
  if (data.Description !== undefined && data.Description !== null) {
4167
4185
  contents.Description = __expectString(data.Description);
4168
4186
  }
4169
4187
  if (data.LastModified !== undefined && data.LastModified !== null) {
4170
- contents.LastModified = new Date(data.LastModified);
4188
+ contents.LastModified = __expectNonNull(__parseRfc3339DateTime(data.LastModified));
4171
4189
  }
4172
4190
  if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
4173
4191
  contents.SchemaArn = __expectString(data.SchemaArn);
@@ -4185,7 +4203,7 @@ export const deserializeAws_restJson1UpdateSchemaCommand = async (
4185
4203
  contents.Type = __expectString(data.Type);
4186
4204
  }
4187
4205
  if (data.VersionCreatedDate !== undefined && data.VersionCreatedDate !== null) {
4188
- contents.VersionCreatedDate = new Date(data.VersionCreatedDate);
4206
+ contents.VersionCreatedDate = __expectNonNull(__parseRfc3339DateTime(data.VersionCreatedDate));
4189
4207
  }
4190
4208
  return Promise.resolve(contents);
4191
4209
  };
@@ -4575,6 +4593,7 @@ const deserializeAws_restJson1__listOfSearchSchemaVersionSummary = (
4575
4593
 
4576
4594
  const deserializeAws_restJson1DiscovererSummary = (output: any, context: __SerdeContext): DiscovererSummary => {
4577
4595
  return {
4596
+ CrossAccount: __expectBoolean(output.CrossAccount),
4578
4597
  DiscovererArn: __expectString(output.DiscovererArn),
4579
4598
  DiscovererId: __expectString(output.DiscovererId),
4580
4599
  SourceArn: __expectString(output.SourceArn),
@@ -4600,14 +4619,16 @@ const deserializeAws_restJson1RegistrySummary = (output: any, context: __SerdeCo
4600
4619
  const deserializeAws_restJson1SchemaSummary = (output: any, context: __SerdeContext): SchemaSummary => {
4601
4620
  return {
4602
4621
  LastModified:
4603
- output.LastModified !== undefined && output.LastModified !== null ? new Date(output.LastModified) : undefined,
4622
+ output.LastModified !== undefined && output.LastModified !== null
4623
+ ? __expectNonNull(__parseRfc3339DateTime(output.LastModified))
4624
+ : undefined,
4604
4625
  SchemaArn: __expectString(output.SchemaArn),
4605
4626
  SchemaName: __expectString(output.SchemaName),
4606
4627
  Tags:
4607
4628
  output.tags !== undefined && output.tags !== null
4608
4629
  ? deserializeAws_restJson1Tags(output.tags, context)
4609
4630
  : undefined,
4610
- VersionCount: __expectInt(output.VersionCount),
4631
+ VersionCount: __expectLong(output.VersionCount),
4611
4632
  } as any;
4612
4633
  };
4613
4634
 
@@ -4638,7 +4659,9 @@ const deserializeAws_restJson1SearchSchemaVersionSummary = (
4638
4659
  ): SearchSchemaVersionSummary => {
4639
4660
  return {
4640
4661
  CreatedDate:
4641
- output.CreatedDate !== undefined && output.CreatedDate !== null ? new Date(output.CreatedDate) : undefined,
4662
+ output.CreatedDate !== undefined && output.CreatedDate !== null
4663
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedDate))
4664
+ : undefined,
4642
4665
  SchemaVersion: __expectString(output.SchemaVersion),
4643
4666
  Type: __expectString(output.Type),
4644
4667
  } as any;