@aws-sdk/client-service-catalog-appregistry 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.
Files changed (56) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +1 -1
  3. package/ServiceCatalogAppRegistry.ts +40 -2
  4. package/ServiceCatalogAppRegistryClient.ts +7 -1
  5. package/commands/GetAssociatedResourceCommand.ts +98 -0
  6. package/commands/SyncResourceCommand.ts +2 -1
  7. package/dist/cjs/ServiceCatalogAppRegistry.js +16 -1
  8. package/dist/cjs/ServiceCatalogAppRegistry.js.map +1 -1
  9. package/dist/cjs/ServiceCatalogAppRegistryClient.js +1 -1
  10. package/dist/cjs/ServiceCatalogAppRegistryClient.js.map +1 -1
  11. package/dist/cjs/commands/GetAssociatedResourceCommand.js +61 -0
  12. package/dist/cjs/commands/GetAssociatedResourceCommand.js.map +1 -0
  13. package/dist/cjs/commands/SyncResourceCommand.js +2 -1
  14. package/dist/cjs/commands/SyncResourceCommand.js.map +1 -1
  15. package/dist/cjs/index.js +1 -0
  16. package/dist/cjs/index.js.map +1 -1
  17. package/dist/cjs/models/models_0.js +65 -2
  18. package/dist/cjs/models/models_0.js.map +1 -1
  19. package/dist/cjs/package.json +31 -31
  20. package/dist/cjs/protocols/Aws_restJson1.js +188 -32
  21. package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
  22. package/dist/es/ServiceCatalogAppRegistry.js +16 -1
  23. package/dist/es/ServiceCatalogAppRegistry.js.map +1 -1
  24. package/dist/es/ServiceCatalogAppRegistryClient.js +1 -1
  25. package/dist/es/ServiceCatalogAppRegistryClient.js.map +1 -1
  26. package/dist/es/commands/GetAssociatedResourceCommand.js +65 -0
  27. package/dist/es/commands/GetAssociatedResourceCommand.js.map +1 -0
  28. package/dist/es/commands/SyncResourceCommand.js +2 -1
  29. package/dist/es/commands/SyncResourceCommand.js.map +1 -1
  30. package/dist/es/endpoints.js +1 -2
  31. package/dist/es/endpoints.js.map +1 -1
  32. package/dist/es/index.js +1 -0
  33. package/dist/es/index.js.map +1 -1
  34. package/dist/es/models/models_0.js +51 -0
  35. package/dist/es/models/models_0.js.map +1 -1
  36. package/dist/es/package.json +31 -31
  37. package/dist/es/protocols/Aws_restJson1.js +297 -86
  38. package/dist/es/protocols/Aws_restJson1.js.map +1 -1
  39. package/dist/types/ServiceCatalogAppRegistry.d.ts +10 -2
  40. package/dist/types/ServiceCatalogAppRegistryClient.d.ts +4 -3
  41. package/dist/types/commands/GetAssociatedResourceCommand.d.ts +35 -0
  42. package/dist/types/commands/SyncResourceCommand.d.ts +2 -1
  43. package/dist/types/index.d.ts +1 -0
  44. package/dist/types/models/models_0.d.ts +143 -6
  45. package/dist/types/protocols/Aws_restJson1.d.ts +3 -0
  46. package/dist/types/ts3.4/ServiceCatalogAppRegistry.d.ts +10 -2
  47. package/dist/types/ts3.4/ServiceCatalogAppRegistryClient.d.ts +4 -3
  48. package/dist/types/ts3.4/commands/GetAssociatedResourceCommand.d.ts +35 -0
  49. package/dist/types/ts3.4/commands/SyncResourceCommand.d.ts +2 -1
  50. package/dist/types/ts3.4/index.d.ts +1 -0
  51. package/dist/types/ts3.4/models/models_0.d.ts +143 -6
  52. package/dist/types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  53. package/index.ts +1 -0
  54. package/models/models_0.ts +176 -6
  55. package/package.json +31 -31
  56. package/protocols/Aws_restJson1.ts +215 -32
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-service-catalog-appregistry",
3
3
  "description": "AWS SDK for JavaScript Service Catalog Appregistry 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,39 +27,39 @@
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",
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
58
  "tslib": "^2.3.0",
59
59
  "uuid": "^8.3.2"
60
60
  },
61
61
  "devDependencies": {
62
- "@aws-sdk/client-documentation-generator": "3.23.0",
62
+ "@aws-sdk/client-documentation-generator": "3.32.0",
63
63
  "@types/node": "^12.7.5",
64
64
  "@types/uuid": "^8.3.0",
65
65
  "downlevel-dts": "0.7.0",
@@ -67,7 +67,7 @@
67
67
  "rimraf": "^3.0.0",
68
68
  "ts-jest": "^26.4.1",
69
69
  "typedoc": "^0.19.2",
70
- "typescript": "~4.3.2"
70
+ "typescript": "~4.3.5"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=10.0.0"
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateAttributeGroupCommand = exports.deserializeAws_restJson1UpdateApplicationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SyncResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListAttributeGroupsCommand = exports.deserializeAws_restJson1ListAssociatedResourcesCommand = exports.deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = exports.deserializeAws_restJson1ListApplicationsCommand = exports.deserializeAws_restJson1GetAttributeGroupCommand = exports.deserializeAws_restJson1GetApplicationCommand = exports.deserializeAws_restJson1DisassociateResourceCommand = exports.deserializeAws_restJson1DisassociateAttributeGroupCommand = exports.deserializeAws_restJson1DeleteAttributeGroupCommand = exports.deserializeAws_restJson1DeleteApplicationCommand = exports.deserializeAws_restJson1CreateAttributeGroupCommand = exports.deserializeAws_restJson1CreateApplicationCommand = exports.deserializeAws_restJson1AssociateResourceCommand = exports.deserializeAws_restJson1AssociateAttributeGroupCommand = exports.serializeAws_restJson1UpdateAttributeGroupCommand = exports.serializeAws_restJson1UpdateApplicationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SyncResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListAttributeGroupsCommand = exports.serializeAws_restJson1ListAssociatedResourcesCommand = exports.serializeAws_restJson1ListAssociatedAttributeGroupsCommand = exports.serializeAws_restJson1ListApplicationsCommand = exports.serializeAws_restJson1GetAttributeGroupCommand = exports.serializeAws_restJson1GetApplicationCommand = exports.serializeAws_restJson1DisassociateResourceCommand = exports.serializeAws_restJson1DisassociateAttributeGroupCommand = exports.serializeAws_restJson1DeleteAttributeGroupCommand = exports.serializeAws_restJson1DeleteApplicationCommand = exports.serializeAws_restJson1CreateAttributeGroupCommand = exports.serializeAws_restJson1CreateApplicationCommand = exports.serializeAws_restJson1AssociateResourceCommand = exports.serializeAws_restJson1AssociateAttributeGroupCommand = void 0;
3
+ exports.deserializeAws_restJson1UpdateAttributeGroupCommand = exports.deserializeAws_restJson1UpdateApplicationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SyncResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListAttributeGroupsCommand = exports.deserializeAws_restJson1ListAssociatedResourcesCommand = exports.deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = exports.deserializeAws_restJson1ListApplicationsCommand = exports.deserializeAws_restJson1GetAttributeGroupCommand = exports.deserializeAws_restJson1GetAssociatedResourceCommand = exports.deserializeAws_restJson1GetApplicationCommand = exports.deserializeAws_restJson1DisassociateResourceCommand = exports.deserializeAws_restJson1DisassociateAttributeGroupCommand = exports.deserializeAws_restJson1DeleteAttributeGroupCommand = exports.deserializeAws_restJson1DeleteApplicationCommand = exports.deserializeAws_restJson1CreateAttributeGroupCommand = exports.deserializeAws_restJson1CreateApplicationCommand = exports.deserializeAws_restJson1AssociateResourceCommand = exports.deserializeAws_restJson1AssociateAttributeGroupCommand = exports.serializeAws_restJson1UpdateAttributeGroupCommand = exports.serializeAws_restJson1UpdateApplicationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SyncResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListAttributeGroupsCommand = exports.serializeAws_restJson1ListAssociatedResourcesCommand = exports.serializeAws_restJson1ListAssociatedAttributeGroupsCommand = exports.serializeAws_restJson1ListApplicationsCommand = exports.serializeAws_restJson1GetAttributeGroupCommand = exports.serializeAws_restJson1GetAssociatedResourceCommand = exports.serializeAws_restJson1GetApplicationCommand = exports.serializeAws_restJson1DisassociateResourceCommand = exports.serializeAws_restJson1DisassociateAttributeGroupCommand = exports.serializeAws_restJson1DeleteAttributeGroupCommand = exports.serializeAws_restJson1DeleteApplicationCommand = exports.serializeAws_restJson1CreateAttributeGroupCommand = exports.serializeAws_restJson1CreateApplicationCommand = exports.serializeAws_restJson1AssociateResourceCommand = exports.serializeAws_restJson1AssociateAttributeGroupCommand = 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");
@@ -301,6 +301,53 @@ const serializeAws_restJson1GetApplicationCommand = async (input, context) => {
301
301
  });
302
302
  };
303
303
  exports.serializeAws_restJson1GetApplicationCommand = serializeAws_restJson1GetApplicationCommand;
304
+ const serializeAws_restJson1GetAssociatedResourceCommand = async (input, context) => {
305
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
306
+ const headers = {};
307
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
308
+ "/applications/{application}/resources/{resourceType}/{resource}";
309
+ if (input.application !== undefined) {
310
+ const labelValue = input.application;
311
+ if (labelValue.length <= 0) {
312
+ throw new Error("Empty value provided for input HTTP label: application.");
313
+ }
314
+ resolvedPath = resolvedPath.replace("{application}", smithy_client_1.extendedEncodeURIComponent(labelValue));
315
+ }
316
+ else {
317
+ throw new Error("No value provided for input HTTP label: application.");
318
+ }
319
+ if (input.resourceType !== undefined) {
320
+ const labelValue = input.resourceType;
321
+ if (labelValue.length <= 0) {
322
+ throw new Error("Empty value provided for input HTTP label: resourceType.");
323
+ }
324
+ resolvedPath = resolvedPath.replace("{resourceType}", smithy_client_1.extendedEncodeURIComponent(labelValue));
325
+ }
326
+ else {
327
+ throw new Error("No value provided for input HTTP label: resourceType.");
328
+ }
329
+ if (input.resource !== undefined) {
330
+ const labelValue = input.resource;
331
+ if (labelValue.length <= 0) {
332
+ throw new Error("Empty value provided for input HTTP label: resource.");
333
+ }
334
+ resolvedPath = resolvedPath.replace("{resource}", smithy_client_1.extendedEncodeURIComponent(labelValue));
335
+ }
336
+ else {
337
+ throw new Error("No value provided for input HTTP label: resource.");
338
+ }
339
+ let body;
340
+ return new protocol_http_1.HttpRequest({
341
+ protocol,
342
+ hostname,
343
+ port,
344
+ method: "GET",
345
+ headers,
346
+ path: resolvedPath,
347
+ body,
348
+ });
349
+ };
350
+ exports.serializeAws_restJson1GetAssociatedResourceCommand = serializeAws_restJson1GetAssociatedResourceCommand;
304
351
  const serializeAws_restJson1GetAttributeGroupCommand = async (input, context) => {
305
352
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
306
353
  const headers = {};
@@ -629,7 +676,7 @@ const deserializeAws_restJson1AssociateAttributeGroupCommand = async (output, co
629
676
  applicationArn: undefined,
630
677
  attributeGroupArn: undefined,
631
678
  };
632
- const data = await parseBody(output.body, context);
679
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
633
680
  if (data.applicationArn !== undefined && data.applicationArn !== null) {
634
681
  contents.applicationArn = smithy_client_1.expectString(data.applicationArn);
635
682
  }
@@ -705,7 +752,7 @@ const deserializeAws_restJson1AssociateResourceCommand = async (output, context)
705
752
  applicationArn: undefined,
706
753
  resourceArn: undefined,
707
754
  };
708
- const data = await parseBody(output.body, context);
755
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
709
756
  if (data.applicationArn !== undefined && data.applicationArn !== null) {
710
757
  contents.applicationArn = smithy_client_1.expectString(data.applicationArn);
711
758
  }
@@ -780,7 +827,7 @@ const deserializeAws_restJson1CreateApplicationCommand = async (output, context)
780
827
  $metadata: deserializeMetadata(output),
781
828
  application: undefined,
782
829
  };
783
- const data = await parseBody(output.body, context);
830
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
784
831
  if (data.application !== undefined && data.application !== null) {
785
832
  contents.application = deserializeAws_restJson1Application(data.application, context);
786
833
  }
@@ -844,7 +891,7 @@ const deserializeAws_restJson1CreateAttributeGroupCommand = async (output, conte
844
891
  $metadata: deserializeMetadata(output),
845
892
  attributeGroup: undefined,
846
893
  };
847
- const data = await parseBody(output.body, context);
894
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
848
895
  if (data.attributeGroup !== undefined && data.attributeGroup !== null) {
849
896
  contents.attributeGroup = deserializeAws_restJson1AttributeGroup(data.attributeGroup, context);
850
897
  }
@@ -916,7 +963,7 @@ const deserializeAws_restJson1DeleteApplicationCommand = async (output, context)
916
963
  $metadata: deserializeMetadata(output),
917
964
  application: undefined,
918
965
  };
919
- const data = await parseBody(output.body, context);
966
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
920
967
  if (data.application !== undefined && data.application !== null) {
921
968
  contents.application = deserializeAws_restJson1ApplicationSummary(data.application, context);
922
969
  }
@@ -980,7 +1027,7 @@ const deserializeAws_restJson1DeleteAttributeGroupCommand = async (output, conte
980
1027
  $metadata: deserializeMetadata(output),
981
1028
  attributeGroup: undefined,
982
1029
  };
983
- const data = await parseBody(output.body, context);
1030
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
984
1031
  if (data.attributeGroup !== undefined && data.attributeGroup !== null) {
985
1032
  contents.attributeGroup = deserializeAws_restJson1AttributeGroupSummary(data.attributeGroup, context);
986
1033
  }
@@ -1045,7 +1092,7 @@ const deserializeAws_restJson1DisassociateAttributeGroupCommand = async (output,
1045
1092
  applicationArn: undefined,
1046
1093
  attributeGroupArn: undefined,
1047
1094
  };
1048
- const data = await parseBody(output.body, context);
1095
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1049
1096
  if (data.applicationArn !== undefined && data.applicationArn !== null) {
1050
1097
  contents.applicationArn = smithy_client_1.expectString(data.applicationArn);
1051
1098
  }
@@ -1113,7 +1160,7 @@ const deserializeAws_restJson1DisassociateResourceCommand = async (output, conte
1113
1160
  applicationArn: undefined,
1114
1161
  resourceArn: undefined,
1115
1162
  };
1116
- const data = await parseBody(output.body, context);
1163
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1117
1164
  if (data.applicationArn !== undefined && data.applicationArn !== null) {
1118
1165
  contents.applicationArn = smithy_client_1.expectString(data.applicationArn);
1119
1166
  }
@@ -1175,19 +1222,20 @@ const deserializeAws_restJson1GetApplicationCommand = async (output, context) =>
1175
1222
  creationTime: undefined,
1176
1223
  description: undefined,
1177
1224
  id: undefined,
1225
+ integrations: undefined,
1178
1226
  lastUpdateTime: undefined,
1179
1227
  name: undefined,
1180
1228
  tags: undefined,
1181
1229
  };
1182
- const data = await parseBody(output.body, context);
1230
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1183
1231
  if (data.arn !== undefined && data.arn !== null) {
1184
1232
  contents.arn = smithy_client_1.expectString(data.arn);
1185
1233
  }
1186
1234
  if (data.associatedResourceCount !== undefined && data.associatedResourceCount !== null) {
1187
- contents.associatedResourceCount = smithy_client_1.expectInt(data.associatedResourceCount);
1235
+ contents.associatedResourceCount = smithy_client_1.expectInt32(data.associatedResourceCount);
1188
1236
  }
1189
1237
  if (data.creationTime !== undefined && data.creationTime !== null) {
1190
- contents.creationTime = new Date(data.creationTime);
1238
+ contents.creationTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.creationTime));
1191
1239
  }
1192
1240
  if (data.description !== undefined && data.description !== null) {
1193
1241
  contents.description = smithy_client_1.expectString(data.description);
@@ -1195,8 +1243,11 @@ const deserializeAws_restJson1GetApplicationCommand = async (output, context) =>
1195
1243
  if (data.id !== undefined && data.id !== null) {
1196
1244
  contents.id = smithy_client_1.expectString(data.id);
1197
1245
  }
1246
+ if (data.integrations !== undefined && data.integrations !== null) {
1247
+ contents.integrations = deserializeAws_restJson1Integrations(data.integrations, context);
1248
+ }
1198
1249
  if (data.lastUpdateTime !== undefined && data.lastUpdateTime !== null) {
1199
- contents.lastUpdateTime = new Date(data.lastUpdateTime);
1250
+ contents.lastUpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.lastUpdateTime));
1200
1251
  }
1201
1252
  if (data.name !== undefined && data.name !== null) {
1202
1253
  contents.name = smithy_client_1.expectString(data.name);
@@ -1256,6 +1307,70 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
1256
1307
  delete response.Message;
1257
1308
  return Promise.reject(Object.assign(new Error(message), response));
1258
1309
  };
1310
+ const deserializeAws_restJson1GetAssociatedResourceCommand = async (output, context) => {
1311
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1312
+ return deserializeAws_restJson1GetAssociatedResourceCommandError(output, context);
1313
+ }
1314
+ const contents = {
1315
+ $metadata: deserializeMetadata(output),
1316
+ resource: undefined,
1317
+ };
1318
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1319
+ if (data.resource !== undefined && data.resource !== null) {
1320
+ contents.resource = deserializeAws_restJson1Resource(data.resource, context);
1321
+ }
1322
+ return Promise.resolve(contents);
1323
+ };
1324
+ exports.deserializeAws_restJson1GetAssociatedResourceCommand = deserializeAws_restJson1GetAssociatedResourceCommand;
1325
+ const deserializeAws_restJson1GetAssociatedResourceCommandError = async (output, context) => {
1326
+ const parsedOutput = {
1327
+ ...output,
1328
+ body: await parseBody(output.body, context),
1329
+ };
1330
+ let response;
1331
+ let errorCode = "UnknownError";
1332
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1333
+ switch (errorCode) {
1334
+ case "InternalServerException":
1335
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException":
1336
+ response = {
1337
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
1338
+ name: errorCode,
1339
+ $metadata: deserializeMetadata(output),
1340
+ };
1341
+ break;
1342
+ case "ResourceNotFoundException":
1343
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
1344
+ response = {
1345
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1346
+ name: errorCode,
1347
+ $metadata: deserializeMetadata(output),
1348
+ };
1349
+ break;
1350
+ case "ValidationException":
1351
+ case "com.amazonaws.servicecatalogappregistry#ValidationException":
1352
+ response = {
1353
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
1354
+ name: errorCode,
1355
+ $metadata: deserializeMetadata(output),
1356
+ };
1357
+ break;
1358
+ default:
1359
+ const parsedBody = parsedOutput.body;
1360
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1361
+ response = {
1362
+ ...parsedBody,
1363
+ name: `${errorCode}`,
1364
+ message: parsedBody.message || parsedBody.Message || errorCode,
1365
+ $fault: "client",
1366
+ $metadata: deserializeMetadata(output),
1367
+ };
1368
+ }
1369
+ const message = response.message || response.Message || errorCode;
1370
+ response.message = message;
1371
+ delete response.Message;
1372
+ return Promise.reject(Object.assign(new Error(message), response));
1373
+ };
1259
1374
  const deserializeAws_restJson1GetAttributeGroupCommand = async (output, context) => {
1260
1375
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1261
1376
  return deserializeAws_restJson1GetAttributeGroupCommandError(output, context);
@@ -1271,7 +1386,7 @@ const deserializeAws_restJson1GetAttributeGroupCommand = async (output, context)
1271
1386
  name: undefined,
1272
1387
  tags: undefined,
1273
1388
  };
1274
- const data = await parseBody(output.body, context);
1389
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1275
1390
  if (data.arn !== undefined && data.arn !== null) {
1276
1391
  contents.arn = smithy_client_1.expectString(data.arn);
1277
1392
  }
@@ -1279,7 +1394,7 @@ const deserializeAws_restJson1GetAttributeGroupCommand = async (output, context)
1279
1394
  contents.attributes = smithy_client_1.expectString(data.attributes);
1280
1395
  }
1281
1396
  if (data.creationTime !== undefined && data.creationTime !== null) {
1282
- contents.creationTime = new Date(data.creationTime);
1397
+ contents.creationTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.creationTime));
1283
1398
  }
1284
1399
  if (data.description !== undefined && data.description !== null) {
1285
1400
  contents.description = smithy_client_1.expectString(data.description);
@@ -1288,7 +1403,7 @@ const deserializeAws_restJson1GetAttributeGroupCommand = async (output, context)
1288
1403
  contents.id = smithy_client_1.expectString(data.id);
1289
1404
  }
1290
1405
  if (data.lastUpdateTime !== undefined && data.lastUpdateTime !== null) {
1291
- contents.lastUpdateTime = new Date(data.lastUpdateTime);
1406
+ contents.lastUpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.lastUpdateTime));
1292
1407
  }
1293
1408
  if (data.name !== undefined && data.name !== null) {
1294
1409
  contents.name = smithy_client_1.expectString(data.name);
@@ -1357,7 +1472,7 @@ const deserializeAws_restJson1ListApplicationsCommand = async (output, context)
1357
1472
  applications: undefined,
1358
1473
  nextToken: undefined,
1359
1474
  };
1360
- const data = await parseBody(output.body, context);
1475
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1361
1476
  if (data.applications !== undefined && data.applications !== null) {
1362
1477
  contents.applications = deserializeAws_restJson1ApplicationSummaries(data.applications, context);
1363
1478
  }
@@ -1417,7 +1532,7 @@ const deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = async (outp
1417
1532
  attributeGroups: undefined,
1418
1533
  nextToken: undefined,
1419
1534
  };
1420
- const data = await parseBody(output.body, context);
1535
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1421
1536
  if (data.attributeGroups !== undefined && data.attributeGroups !== null) {
1422
1537
  contents.attributeGroups = deserializeAws_restJson1AttributeGroupIds(data.attributeGroups, context);
1423
1538
  }
@@ -1485,7 +1600,7 @@ const deserializeAws_restJson1ListAssociatedResourcesCommand = async (output, co
1485
1600
  nextToken: undefined,
1486
1601
  resources: undefined,
1487
1602
  };
1488
- const data = await parseBody(output.body, context);
1603
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1489
1604
  if (data.nextToken !== undefined && data.nextToken !== null) {
1490
1605
  contents.nextToken = smithy_client_1.expectString(data.nextToken);
1491
1606
  }
@@ -1553,7 +1668,7 @@ const deserializeAws_restJson1ListAttributeGroupsCommand = async (output, contex
1553
1668
  attributeGroups: undefined,
1554
1669
  nextToken: undefined,
1555
1670
  };
1556
- const data = await parseBody(output.body, context);
1671
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1557
1672
  if (data.attributeGroups !== undefined && data.attributeGroups !== null) {
1558
1673
  contents.attributeGroups = deserializeAws_restJson1AttributeGroupSummaries(data.attributeGroups, context);
1559
1674
  }
@@ -1612,7 +1727,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
1612
1727
  $metadata: deserializeMetadata(output),
1613
1728
  tags: undefined,
1614
1729
  };
1615
- const data = await parseBody(output.body, context);
1730
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1616
1731
  if (data.tags !== undefined && data.tags !== null) {
1617
1732
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
1618
1733
  }
@@ -1678,7 +1793,7 @@ const deserializeAws_restJson1SyncResourceCommand = async (output, context) => {
1678
1793
  applicationArn: undefined,
1679
1794
  resourceArn: undefined,
1680
1795
  };
1681
- const data = await parseBody(output.body, context);
1796
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1682
1797
  if (data.actionTaken !== undefined && data.actionTaken !== null) {
1683
1798
  contents.actionTaken = smithy_client_1.expectString(data.actionTaken);
1684
1799
  }
@@ -1868,7 +1983,7 @@ const deserializeAws_restJson1UpdateApplicationCommand = async (output, context)
1868
1983
  $metadata: deserializeMetadata(output),
1869
1984
  application: undefined,
1870
1985
  };
1871
- const data = await parseBody(output.body, context);
1986
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1872
1987
  if (data.application !== undefined && data.application !== null) {
1873
1988
  contents.application = deserializeAws_restJson1Application(data.application, context);
1874
1989
  }
@@ -1932,7 +2047,7 @@ const deserializeAws_restJson1UpdateAttributeGroupCommand = async (output, conte
1932
2047
  $metadata: deserializeMetadata(output),
1933
2048
  attributeGroup: undefined,
1934
2049
  };
1935
- const data = await parseBody(output.body, context);
2050
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1936
2051
  if (data.attributeGroup !== undefined && data.attributeGroup !== null) {
1937
2052
  contents.attributeGroup = deserializeAws_restJson1AttributeGroup(data.attributeGroup, context);
1938
2053
  }
@@ -2075,11 +2190,13 @@ const serializeAws_restJson1Tags = (input, context) => {
2075
2190
  const deserializeAws_restJson1Application = (output, context) => {
2076
2191
  return {
2077
2192
  arn: smithy_client_1.expectString(output.arn),
2078
- creationTime: output.creationTime !== undefined && output.creationTime !== null ? new Date(output.creationTime) : undefined,
2193
+ creationTime: output.creationTime !== undefined && output.creationTime !== null
2194
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
2195
+ : undefined,
2079
2196
  description: smithy_client_1.expectString(output.description),
2080
2197
  id: smithy_client_1.expectString(output.id),
2081
2198
  lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
2082
- ? new Date(output.lastUpdateTime)
2199
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastUpdateTime))
2083
2200
  : undefined,
2084
2201
  name: smithy_client_1.expectString(output.name),
2085
2202
  tags: output.tags !== undefined && output.tags !== null
@@ -2100,11 +2217,13 @@ const deserializeAws_restJson1ApplicationSummaries = (output, context) => {
2100
2217
  const deserializeAws_restJson1ApplicationSummary = (output, context) => {
2101
2218
  return {
2102
2219
  arn: smithy_client_1.expectString(output.arn),
2103
- creationTime: output.creationTime !== undefined && output.creationTime !== null ? new Date(output.creationTime) : undefined,
2220
+ creationTime: output.creationTime !== undefined && output.creationTime !== null
2221
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
2222
+ : undefined,
2104
2223
  description: smithy_client_1.expectString(output.description),
2105
2224
  id: smithy_client_1.expectString(output.id),
2106
2225
  lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
2107
- ? new Date(output.lastUpdateTime)
2226
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastUpdateTime))
2108
2227
  : undefined,
2109
2228
  name: smithy_client_1.expectString(output.name),
2110
2229
  };
@@ -2112,11 +2231,13 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
2112
2231
  const deserializeAws_restJson1AttributeGroup = (output, context) => {
2113
2232
  return {
2114
2233
  arn: smithy_client_1.expectString(output.arn),
2115
- creationTime: output.creationTime !== undefined && output.creationTime !== null ? new Date(output.creationTime) : undefined,
2234
+ creationTime: output.creationTime !== undefined && output.creationTime !== null
2235
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
2236
+ : undefined,
2116
2237
  description: smithy_client_1.expectString(output.description),
2117
2238
  id: smithy_client_1.expectString(output.id),
2118
2239
  lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
2119
- ? new Date(output.lastUpdateTime)
2240
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastUpdateTime))
2120
2241
  : undefined,
2121
2242
  name: smithy_client_1.expectString(output.name),
2122
2243
  tags: output.tags !== undefined && output.tags !== null
@@ -2147,21 +2268,56 @@ const deserializeAws_restJson1AttributeGroupSummaries = (output, context) => {
2147
2268
  const deserializeAws_restJson1AttributeGroupSummary = (output, context) => {
2148
2269
  return {
2149
2270
  arn: smithy_client_1.expectString(output.arn),
2150
- creationTime: output.creationTime !== undefined && output.creationTime !== null ? new Date(output.creationTime) : undefined,
2271
+ creationTime: output.creationTime !== undefined && output.creationTime !== null
2272
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
2273
+ : undefined,
2151
2274
  description: smithy_client_1.expectString(output.description),
2152
2275
  id: smithy_client_1.expectString(output.id),
2153
2276
  lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
2154
- ? new Date(output.lastUpdateTime)
2277
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastUpdateTime))
2155
2278
  : undefined,
2156
2279
  name: smithy_client_1.expectString(output.name),
2157
2280
  };
2158
2281
  };
2282
+ const deserializeAws_restJson1Integrations = (output, context) => {
2283
+ return {
2284
+ resourceGroup: output.resourceGroup !== undefined && output.resourceGroup !== null
2285
+ ? deserializeAws_restJson1ResourceGroup(output.resourceGroup, context)
2286
+ : undefined,
2287
+ };
2288
+ };
2289
+ const deserializeAws_restJson1Resource = (output, context) => {
2290
+ return {
2291
+ arn: smithy_client_1.expectString(output.arn),
2292
+ associationTime: output.associationTime !== undefined && output.associationTime !== null
2293
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.associationTime))
2294
+ : undefined,
2295
+ integrations: output.integrations !== undefined && output.integrations !== null
2296
+ ? deserializeAws_restJson1ResourceIntegrations(output.integrations, context)
2297
+ : undefined,
2298
+ name: smithy_client_1.expectString(output.name),
2299
+ };
2300
+ };
2301
+ const deserializeAws_restJson1ResourceGroup = (output, context) => {
2302
+ return {
2303
+ arn: smithy_client_1.expectString(output.arn),
2304
+ errorMessage: smithy_client_1.expectString(output.errorMessage),
2305
+ state: smithy_client_1.expectString(output.state),
2306
+ };
2307
+ };
2159
2308
  const deserializeAws_restJson1ResourceInfo = (output, context) => {
2160
2309
  return {
2161
2310
  arn: smithy_client_1.expectString(output.arn),
2162
2311
  name: smithy_client_1.expectString(output.name),
2163
2312
  };
2164
2313
  };
2314
+ const deserializeAws_restJson1ResourceIntegrations = (output, context) => {
2315
+ return {
2316
+ resourceGroup: output.resourceGroup !== undefined && output.resourceGroup !== null
2317
+ ? deserializeAws_restJson1ResourceGroup(output.resourceGroup, context)
2318
+ : undefined,
2319
+ };
2320
+ };
2165
2321
  const deserializeAws_restJson1Resources = (output, context) => {
2166
2322
  return (output || [])
2167
2323
  .filter((e) => e != null)