@aws-sdk/client-service-catalog-appregistry 3.180.0 → 3.183.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 (40) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +28 -22
  3. package/dist-es/ServiceCatalogAppRegistry.js +90 -97
  4. package/dist-es/ServiceCatalogAppRegistryClient.js +22 -28
  5. package/dist-es/commands/AssociateAttributeGroupCommand.js +21 -28
  6. package/dist-es/commands/AssociateResourceCommand.js +21 -28
  7. package/dist-es/commands/CreateApplicationCommand.js +21 -28
  8. package/dist-es/commands/CreateAttributeGroupCommand.js +21 -28
  9. package/dist-es/commands/DeleteApplicationCommand.js +21 -28
  10. package/dist-es/commands/DeleteAttributeGroupCommand.js +21 -28
  11. package/dist-es/commands/DisassociateAttributeGroupCommand.js +21 -28
  12. package/dist-es/commands/DisassociateResourceCommand.js +21 -28
  13. package/dist-es/commands/GetApplicationCommand.js +21 -28
  14. package/dist-es/commands/GetAssociatedResourceCommand.js +21 -28
  15. package/dist-es/commands/GetAttributeGroupCommand.js +21 -28
  16. package/dist-es/commands/ListApplicationsCommand.js +21 -28
  17. package/dist-es/commands/ListAssociatedAttributeGroupsCommand.js +21 -28
  18. package/dist-es/commands/ListAssociatedResourcesCommand.js +21 -28
  19. package/dist-es/commands/ListAttributeGroupsCommand.js +21 -28
  20. package/dist-es/commands/ListAttributeGroupsForApplicationCommand.js +21 -28
  21. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  22. package/dist-es/commands/SyncResourceCommand.js +21 -28
  23. package/dist-es/commands/TagResourceCommand.js +21 -28
  24. package/dist-es/commands/UntagResourceCommand.js +21 -28
  25. package/dist-es/commands/UpdateApplicationCommand.js +21 -28
  26. package/dist-es/commands/UpdateAttributeGroupCommand.js +21 -28
  27. package/dist-es/endpoints.js +8 -8
  28. package/dist-es/models/ServiceCatalogAppRegistryServiceException.js +5 -10
  29. package/dist-es/models/models_0.js +217 -110
  30. package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
  31. package/dist-es/pagination/ListAssociatedAttributeGroupsPaginator.js +25 -68
  32. package/dist-es/pagination/ListAssociatedResourcesPaginator.js +25 -68
  33. package/dist-es/pagination/ListAttributeGroupsForApplicationPaginator.js +25 -68
  34. package/dist-es/pagination/ListAttributeGroupsPaginator.js +25 -68
  35. package/dist-es/protocols/Aws_restJson1.js +1464 -2136
  36. package/dist-es/runtimeConfig.browser.js +26 -12
  37. package/dist-es/runtimeConfig.js +30 -12
  38. package/dist-es/runtimeConfig.native.js +8 -5
  39. package/dist-es/runtimeConfig.shared.js +8 -11
  40. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-service-catalog-appregistry
9
+
10
+
11
+
12
+
13
+
14
+ # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
20
+ * **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
21
+
22
+
23
+
24
+
25
+
6
26
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
27
 
8
28
  **Note:** Version bump only for package @aws-sdk/client-service-catalog-appregistry
@@ -478,7 +478,7 @@ exports.deserializeAws_restJson1AssociateAttributeGroupCommand = deserializeAws_
478
478
  const deserializeAws_restJson1AssociateAttributeGroupCommandError = async (output, context) => {
479
479
  const parsedOutput = {
480
480
  ...output,
481
- body: await parseBody(output.body, context),
481
+ body: await parseErrorBody(output.body, context),
482
482
  };
483
483
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
484
484
  switch (errorCode) {
@@ -527,7 +527,7 @@ exports.deserializeAws_restJson1AssociateResourceCommand = deserializeAws_restJs
527
527
  const deserializeAws_restJson1AssociateResourceCommandError = async (output, context) => {
528
528
  const parsedOutput = {
529
529
  ...output,
530
- body: await parseBody(output.body, context),
530
+ body: await parseErrorBody(output.body, context),
531
531
  };
532
532
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
533
533
  switch (errorCode) {
@@ -573,7 +573,7 @@ exports.deserializeAws_restJson1CreateApplicationCommand = deserializeAws_restJs
573
573
  const deserializeAws_restJson1CreateApplicationCommandError = async (output, context) => {
574
574
  const parsedOutput = {
575
575
  ...output,
576
- body: await parseBody(output.body, context),
576
+ body: await parseErrorBody(output.body, context),
577
577
  };
578
578
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
579
579
  switch (errorCode) {
@@ -616,7 +616,7 @@ exports.deserializeAws_restJson1CreateAttributeGroupCommand = deserializeAws_res
616
616
  const deserializeAws_restJson1CreateAttributeGroupCommandError = async (output, context) => {
617
617
  const parsedOutput = {
618
618
  ...output,
619
- body: await parseBody(output.body, context),
619
+ body: await parseErrorBody(output.body, context),
620
620
  };
621
621
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
622
622
  switch (errorCode) {
@@ -659,7 +659,7 @@ exports.deserializeAws_restJson1DeleteApplicationCommand = deserializeAws_restJs
659
659
  const deserializeAws_restJson1DeleteApplicationCommandError = async (output, context) => {
660
660
  const parsedOutput = {
661
661
  ...output,
662
- body: await parseBody(output.body, context),
662
+ body: await parseErrorBody(output.body, context),
663
663
  };
664
664
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
665
665
  switch (errorCode) {
@@ -699,7 +699,7 @@ exports.deserializeAws_restJson1DeleteAttributeGroupCommand = deserializeAws_res
699
699
  const deserializeAws_restJson1DeleteAttributeGroupCommandError = async (output, context) => {
700
700
  const parsedOutput = {
701
701
  ...output,
702
- body: await parseBody(output.body, context),
702
+ body: await parseErrorBody(output.body, context),
703
703
  };
704
704
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
705
705
  switch (errorCode) {
@@ -742,7 +742,7 @@ exports.deserializeAws_restJson1DisassociateAttributeGroupCommand = deserializeA
742
742
  const deserializeAws_restJson1DisassociateAttributeGroupCommandError = async (output, context) => {
743
743
  const parsedOutput = {
744
744
  ...output,
745
- body: await parseBody(output.body, context),
745
+ body: await parseErrorBody(output.body, context),
746
746
  };
747
747
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
748
748
  switch (errorCode) {
@@ -785,7 +785,7 @@ exports.deserializeAws_restJson1DisassociateResourceCommand = deserializeAws_res
785
785
  const deserializeAws_restJson1DisassociateResourceCommandError = async (output, context) => {
786
786
  const parsedOutput = {
787
787
  ...output,
788
- body: await parseBody(output.body, context),
788
+ body: await parseErrorBody(output.body, context),
789
789
  };
790
790
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
791
791
  switch (errorCode) {
@@ -849,7 +849,7 @@ exports.deserializeAws_restJson1GetApplicationCommand = deserializeAws_restJson1
849
849
  const deserializeAws_restJson1GetApplicationCommandError = async (output, context) => {
850
850
  const parsedOutput = {
851
851
  ...output,
852
- body: await parseBody(output.body, context),
852
+ body: await parseErrorBody(output.body, context),
853
853
  };
854
854
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
855
855
  switch (errorCode) {
@@ -892,7 +892,7 @@ exports.deserializeAws_restJson1GetAssociatedResourceCommand = deserializeAws_re
892
892
  const deserializeAws_restJson1GetAssociatedResourceCommandError = async (output, context) => {
893
893
  const parsedOutput = {
894
894
  ...output,
895
- body: await parseBody(output.body, context),
895
+ body: await parseErrorBody(output.body, context),
896
896
  };
897
897
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
898
898
  switch (errorCode) {
@@ -953,7 +953,7 @@ exports.deserializeAws_restJson1GetAttributeGroupCommand = deserializeAws_restJs
953
953
  const deserializeAws_restJson1GetAttributeGroupCommandError = async (output, context) => {
954
954
  const parsedOutput = {
955
955
  ...output,
956
- body: await parseBody(output.body, context),
956
+ body: await parseErrorBody(output.body, context),
957
957
  };
958
958
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
959
959
  switch (errorCode) {
@@ -999,7 +999,7 @@ exports.deserializeAws_restJson1ListApplicationsCommand = deserializeAws_restJso
999
999
  const deserializeAws_restJson1ListApplicationsCommandError = async (output, context) => {
1000
1000
  const parsedOutput = {
1001
1001
  ...output,
1002
- body: await parseBody(output.body, context),
1002
+ body: await parseErrorBody(output.body, context),
1003
1003
  };
1004
1004
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1005
1005
  switch (errorCode) {
@@ -1039,7 +1039,7 @@ exports.deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = deseriali
1039
1039
  const deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = async (output, context) => {
1040
1040
  const parsedOutput = {
1041
1041
  ...output,
1042
- body: await parseBody(output.body, context),
1042
+ body: await parseErrorBody(output.body, context),
1043
1043
  };
1044
1044
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1045
1045
  switch (errorCode) {
@@ -1082,7 +1082,7 @@ exports.deserializeAws_restJson1ListAssociatedResourcesCommand = deserializeAws_
1082
1082
  const deserializeAws_restJson1ListAssociatedResourcesCommandError = async (output, context) => {
1083
1083
  const parsedOutput = {
1084
1084
  ...output,
1085
- body: await parseBody(output.body, context),
1085
+ body: await parseErrorBody(output.body, context),
1086
1086
  };
1087
1087
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1088
1088
  switch (errorCode) {
@@ -1125,7 +1125,7 @@ exports.deserializeAws_restJson1ListAttributeGroupsCommand = deserializeAws_rest
1125
1125
  const deserializeAws_restJson1ListAttributeGroupsCommandError = async (output, context) => {
1126
1126
  const parsedOutput = {
1127
1127
  ...output,
1128
- body: await parseBody(output.body, context),
1128
+ body: await parseErrorBody(output.body, context),
1129
1129
  };
1130
1130
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1131
1131
  switch (errorCode) {
@@ -1165,7 +1165,7 @@ exports.deserializeAws_restJson1ListAttributeGroupsForApplicationCommand = deser
1165
1165
  const deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError = async (output, context) => {
1166
1166
  const parsedOutput = {
1167
1167
  ...output,
1168
- body: await parseBody(output.body, context),
1168
+ body: await parseErrorBody(output.body, context),
1169
1169
  };
1170
1170
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1171
1171
  switch (errorCode) {
@@ -1205,7 +1205,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
1205
1205
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
1206
1206
  const parsedOutput = {
1207
1207
  ...output,
1208
- body: await parseBody(output.body, context),
1208
+ body: await parseErrorBody(output.body, context),
1209
1209
  };
1210
1210
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1211
1211
  switch (errorCode) {
@@ -1251,7 +1251,7 @@ exports.deserializeAws_restJson1SyncResourceCommand = deserializeAws_restJson1Sy
1251
1251
  const deserializeAws_restJson1SyncResourceCommandError = async (output, context) => {
1252
1252
  const parsedOutput = {
1253
1253
  ...output,
1254
- body: await parseBody(output.body, context),
1254
+ body: await parseErrorBody(output.body, context),
1255
1255
  };
1256
1256
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1257
1257
  switch (errorCode) {
@@ -1288,7 +1288,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
1288
1288
  const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1289
1289
  const parsedOutput = {
1290
1290
  ...output,
1291
- body: await parseBody(output.body, context),
1291
+ body: await parseErrorBody(output.body, context),
1292
1292
  };
1293
1293
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1294
1294
  switch (errorCode) {
@@ -1325,7 +1325,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
1325
1325
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1326
1326
  const parsedOutput = {
1327
1327
  ...output,
1328
- body: await parseBody(output.body, context),
1328
+ body: await parseErrorBody(output.body, context),
1329
1329
  };
1330
1330
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1331
1331
  switch (errorCode) {
@@ -1365,7 +1365,7 @@ exports.deserializeAws_restJson1UpdateApplicationCommand = deserializeAws_restJs
1365
1365
  const deserializeAws_restJson1UpdateApplicationCommandError = async (output, context) => {
1366
1366
  const parsedOutput = {
1367
1367
  ...output,
1368
- body: await parseBody(output.body, context),
1368
+ body: await parseErrorBody(output.body, context),
1369
1369
  };
1370
1370
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1371
1371
  switch (errorCode) {
@@ -1408,7 +1408,7 @@ exports.deserializeAws_restJson1UpdateAttributeGroupCommand = deserializeAws_res
1408
1408
  const deserializeAws_restJson1UpdateAttributeGroupCommandError = async (output, context) => {
1409
1409
  const parsedOutput = {
1410
1410
  ...output,
1411
- body: await parseBody(output.body, context),
1411
+ body: await parseErrorBody(output.body, context),
1412
1412
  };
1413
1413
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1414
1414
  switch (errorCode) {
@@ -1681,6 +1681,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
1681
1681
  }
1682
1682
  return {};
1683
1683
  });
1684
+ const parseErrorBody = async (errorBody, context) => {
1685
+ var _a;
1686
+ const value = await parseBody(errorBody, context);
1687
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
1688
+ return value;
1689
+ };
1684
1690
  const loadRestJsonErrorCode = (output, data) => {
1685
1691
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1686
1692
  const sanitizeErrorCode = (rawValue) => {
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateAttributeGroupCommand, } from "./commands/AssociateAttributeGroupCommand";
3
2
  import { AssociateResourceCommand, } from "./commands/AssociateResourceCommand";
4
3
  import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
@@ -22,319 +21,313 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
22
21
  import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
23
22
  import { UpdateAttributeGroupCommand, } from "./commands/UpdateAttributeGroupCommand";
24
23
  import { ServiceCatalogAppRegistryClient } from "./ServiceCatalogAppRegistryClient";
25
- var ServiceCatalogAppRegistry = (function (_super) {
26
- __extends(ServiceCatalogAppRegistry, _super);
27
- function ServiceCatalogAppRegistry() {
28
- return _super !== null && _super.apply(this, arguments) || this;
29
- }
30
- ServiceCatalogAppRegistry.prototype.associateAttributeGroup = function (args, optionsOrCb, cb) {
31
- var command = new AssociateAttributeGroupCommand(args);
24
+ export class ServiceCatalogAppRegistry extends ServiceCatalogAppRegistryClient {
25
+ associateAttributeGroup(args, optionsOrCb, cb) {
26
+ const command = new AssociateAttributeGroupCommand(args);
32
27
  if (typeof optionsOrCb === "function") {
33
28
  this.send(command, optionsOrCb);
34
29
  }
35
30
  else if (typeof cb === "function") {
36
31
  if (typeof optionsOrCb !== "object")
37
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
32
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
38
33
  this.send(command, optionsOrCb || {}, cb);
39
34
  }
40
35
  else {
41
36
  return this.send(command, optionsOrCb);
42
37
  }
43
- };
44
- ServiceCatalogAppRegistry.prototype.associateResource = function (args, optionsOrCb, cb) {
45
- var command = new AssociateResourceCommand(args);
38
+ }
39
+ associateResource(args, optionsOrCb, cb) {
40
+ const command = new AssociateResourceCommand(args);
46
41
  if (typeof optionsOrCb === "function") {
47
42
  this.send(command, optionsOrCb);
48
43
  }
49
44
  else if (typeof cb === "function") {
50
45
  if (typeof optionsOrCb !== "object")
51
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
46
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
47
  this.send(command, optionsOrCb || {}, cb);
53
48
  }
54
49
  else {
55
50
  return this.send(command, optionsOrCb);
56
51
  }
57
- };
58
- ServiceCatalogAppRegistry.prototype.createApplication = function (args, optionsOrCb, cb) {
59
- var command = new CreateApplicationCommand(args);
52
+ }
53
+ createApplication(args, optionsOrCb, cb) {
54
+ const command = new CreateApplicationCommand(args);
60
55
  if (typeof optionsOrCb === "function") {
61
56
  this.send(command, optionsOrCb);
62
57
  }
63
58
  else if (typeof cb === "function") {
64
59
  if (typeof optionsOrCb !== "object")
65
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
60
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
61
  this.send(command, optionsOrCb || {}, cb);
67
62
  }
68
63
  else {
69
64
  return this.send(command, optionsOrCb);
70
65
  }
71
- };
72
- ServiceCatalogAppRegistry.prototype.createAttributeGroup = function (args, optionsOrCb, cb) {
73
- var command = new CreateAttributeGroupCommand(args);
66
+ }
67
+ createAttributeGroup(args, optionsOrCb, cb) {
68
+ const command = new CreateAttributeGroupCommand(args);
74
69
  if (typeof optionsOrCb === "function") {
75
70
  this.send(command, optionsOrCb);
76
71
  }
77
72
  else if (typeof cb === "function") {
78
73
  if (typeof optionsOrCb !== "object")
79
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
74
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
75
  this.send(command, optionsOrCb || {}, cb);
81
76
  }
82
77
  else {
83
78
  return this.send(command, optionsOrCb);
84
79
  }
85
- };
86
- ServiceCatalogAppRegistry.prototype.deleteApplication = function (args, optionsOrCb, cb) {
87
- var command = new DeleteApplicationCommand(args);
80
+ }
81
+ deleteApplication(args, optionsOrCb, cb) {
82
+ const command = new DeleteApplicationCommand(args);
88
83
  if (typeof optionsOrCb === "function") {
89
84
  this.send(command, optionsOrCb);
90
85
  }
91
86
  else if (typeof cb === "function") {
92
87
  if (typeof optionsOrCb !== "object")
93
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
88
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
89
  this.send(command, optionsOrCb || {}, cb);
95
90
  }
96
91
  else {
97
92
  return this.send(command, optionsOrCb);
98
93
  }
99
- };
100
- ServiceCatalogAppRegistry.prototype.deleteAttributeGroup = function (args, optionsOrCb, cb) {
101
- var command = new DeleteAttributeGroupCommand(args);
94
+ }
95
+ deleteAttributeGroup(args, optionsOrCb, cb) {
96
+ const command = new DeleteAttributeGroupCommand(args);
102
97
  if (typeof optionsOrCb === "function") {
103
98
  this.send(command, optionsOrCb);
104
99
  }
105
100
  else if (typeof cb === "function") {
106
101
  if (typeof optionsOrCb !== "object")
107
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
102
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
103
  this.send(command, optionsOrCb || {}, cb);
109
104
  }
110
105
  else {
111
106
  return this.send(command, optionsOrCb);
112
107
  }
113
- };
114
- ServiceCatalogAppRegistry.prototype.disassociateAttributeGroup = function (args, optionsOrCb, cb) {
115
- var command = new DisassociateAttributeGroupCommand(args);
108
+ }
109
+ disassociateAttributeGroup(args, optionsOrCb, cb) {
110
+ const command = new DisassociateAttributeGroupCommand(args);
116
111
  if (typeof optionsOrCb === "function") {
117
112
  this.send(command, optionsOrCb);
118
113
  }
119
114
  else if (typeof cb === "function") {
120
115
  if (typeof optionsOrCb !== "object")
121
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
116
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
117
  this.send(command, optionsOrCb || {}, cb);
123
118
  }
124
119
  else {
125
120
  return this.send(command, optionsOrCb);
126
121
  }
127
- };
128
- ServiceCatalogAppRegistry.prototype.disassociateResource = function (args, optionsOrCb, cb) {
129
- var command = new DisassociateResourceCommand(args);
122
+ }
123
+ disassociateResource(args, optionsOrCb, cb) {
124
+ const command = new DisassociateResourceCommand(args);
130
125
  if (typeof optionsOrCb === "function") {
131
126
  this.send(command, optionsOrCb);
132
127
  }
133
128
  else if (typeof cb === "function") {
134
129
  if (typeof optionsOrCb !== "object")
135
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
130
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
131
  this.send(command, optionsOrCb || {}, cb);
137
132
  }
138
133
  else {
139
134
  return this.send(command, optionsOrCb);
140
135
  }
141
- };
142
- ServiceCatalogAppRegistry.prototype.getApplication = function (args, optionsOrCb, cb) {
143
- var command = new GetApplicationCommand(args);
136
+ }
137
+ getApplication(args, optionsOrCb, cb) {
138
+ const command = new GetApplicationCommand(args);
144
139
  if (typeof optionsOrCb === "function") {
145
140
  this.send(command, optionsOrCb);
146
141
  }
147
142
  else if (typeof cb === "function") {
148
143
  if (typeof optionsOrCb !== "object")
149
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
144
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
145
  this.send(command, optionsOrCb || {}, cb);
151
146
  }
152
147
  else {
153
148
  return this.send(command, optionsOrCb);
154
149
  }
155
- };
156
- ServiceCatalogAppRegistry.prototype.getAssociatedResource = function (args, optionsOrCb, cb) {
157
- var command = new GetAssociatedResourceCommand(args);
150
+ }
151
+ getAssociatedResource(args, optionsOrCb, cb) {
152
+ const command = new GetAssociatedResourceCommand(args);
158
153
  if (typeof optionsOrCb === "function") {
159
154
  this.send(command, optionsOrCb);
160
155
  }
161
156
  else if (typeof cb === "function") {
162
157
  if (typeof optionsOrCb !== "object")
163
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
158
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
159
  this.send(command, optionsOrCb || {}, cb);
165
160
  }
166
161
  else {
167
162
  return this.send(command, optionsOrCb);
168
163
  }
169
- };
170
- ServiceCatalogAppRegistry.prototype.getAttributeGroup = function (args, optionsOrCb, cb) {
171
- var command = new GetAttributeGroupCommand(args);
164
+ }
165
+ getAttributeGroup(args, optionsOrCb, cb) {
166
+ const command = new GetAttributeGroupCommand(args);
172
167
  if (typeof optionsOrCb === "function") {
173
168
  this.send(command, optionsOrCb);
174
169
  }
175
170
  else if (typeof cb === "function") {
176
171
  if (typeof optionsOrCb !== "object")
177
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
172
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
173
  this.send(command, optionsOrCb || {}, cb);
179
174
  }
180
175
  else {
181
176
  return this.send(command, optionsOrCb);
182
177
  }
183
- };
184
- ServiceCatalogAppRegistry.prototype.listApplications = function (args, optionsOrCb, cb) {
185
- var command = new ListApplicationsCommand(args);
178
+ }
179
+ listApplications(args, optionsOrCb, cb) {
180
+ const command = new ListApplicationsCommand(args);
186
181
  if (typeof optionsOrCb === "function") {
187
182
  this.send(command, optionsOrCb);
188
183
  }
189
184
  else if (typeof cb === "function") {
190
185
  if (typeof optionsOrCb !== "object")
191
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
186
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
187
  this.send(command, optionsOrCb || {}, cb);
193
188
  }
194
189
  else {
195
190
  return this.send(command, optionsOrCb);
196
191
  }
197
- };
198
- ServiceCatalogAppRegistry.prototype.listAssociatedAttributeGroups = function (args, optionsOrCb, cb) {
199
- var command = new ListAssociatedAttributeGroupsCommand(args);
192
+ }
193
+ listAssociatedAttributeGroups(args, optionsOrCb, cb) {
194
+ const command = new ListAssociatedAttributeGroupsCommand(args);
200
195
  if (typeof optionsOrCb === "function") {
201
196
  this.send(command, optionsOrCb);
202
197
  }
203
198
  else if (typeof cb === "function") {
204
199
  if (typeof optionsOrCb !== "object")
205
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
200
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
206
201
  this.send(command, optionsOrCb || {}, cb);
207
202
  }
208
203
  else {
209
204
  return this.send(command, optionsOrCb);
210
205
  }
211
- };
212
- ServiceCatalogAppRegistry.prototype.listAssociatedResources = function (args, optionsOrCb, cb) {
213
- var command = new ListAssociatedResourcesCommand(args);
206
+ }
207
+ listAssociatedResources(args, optionsOrCb, cb) {
208
+ const command = new ListAssociatedResourcesCommand(args);
214
209
  if (typeof optionsOrCb === "function") {
215
210
  this.send(command, optionsOrCb);
216
211
  }
217
212
  else if (typeof cb === "function") {
218
213
  if (typeof optionsOrCb !== "object")
219
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
214
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
220
215
  this.send(command, optionsOrCb || {}, cb);
221
216
  }
222
217
  else {
223
218
  return this.send(command, optionsOrCb);
224
219
  }
225
- };
226
- ServiceCatalogAppRegistry.prototype.listAttributeGroups = function (args, optionsOrCb, cb) {
227
- var command = new ListAttributeGroupsCommand(args);
220
+ }
221
+ listAttributeGroups(args, optionsOrCb, cb) {
222
+ const command = new ListAttributeGroupsCommand(args);
228
223
  if (typeof optionsOrCb === "function") {
229
224
  this.send(command, optionsOrCb);
230
225
  }
231
226
  else if (typeof cb === "function") {
232
227
  if (typeof optionsOrCb !== "object")
233
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
228
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
234
229
  this.send(command, optionsOrCb || {}, cb);
235
230
  }
236
231
  else {
237
232
  return this.send(command, optionsOrCb);
238
233
  }
239
- };
240
- ServiceCatalogAppRegistry.prototype.listAttributeGroupsForApplication = function (args, optionsOrCb, cb) {
241
- var command = new ListAttributeGroupsForApplicationCommand(args);
234
+ }
235
+ listAttributeGroupsForApplication(args, optionsOrCb, cb) {
236
+ const command = new ListAttributeGroupsForApplicationCommand(args);
242
237
  if (typeof optionsOrCb === "function") {
243
238
  this.send(command, optionsOrCb);
244
239
  }
245
240
  else if (typeof cb === "function") {
246
241
  if (typeof optionsOrCb !== "object")
247
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
242
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
248
243
  this.send(command, optionsOrCb || {}, cb);
249
244
  }
250
245
  else {
251
246
  return this.send(command, optionsOrCb);
252
247
  }
253
- };
254
- ServiceCatalogAppRegistry.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
255
- var command = new ListTagsForResourceCommand(args);
248
+ }
249
+ listTagsForResource(args, optionsOrCb, cb) {
250
+ const command = new ListTagsForResourceCommand(args);
256
251
  if (typeof optionsOrCb === "function") {
257
252
  this.send(command, optionsOrCb);
258
253
  }
259
254
  else if (typeof cb === "function") {
260
255
  if (typeof optionsOrCb !== "object")
261
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
256
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
262
257
  this.send(command, optionsOrCb || {}, cb);
263
258
  }
264
259
  else {
265
260
  return this.send(command, optionsOrCb);
266
261
  }
267
- };
268
- ServiceCatalogAppRegistry.prototype.syncResource = function (args, optionsOrCb, cb) {
269
- var command = new SyncResourceCommand(args);
262
+ }
263
+ syncResource(args, optionsOrCb, cb) {
264
+ const command = new SyncResourceCommand(args);
270
265
  if (typeof optionsOrCb === "function") {
271
266
  this.send(command, optionsOrCb);
272
267
  }
273
268
  else if (typeof cb === "function") {
274
269
  if (typeof optionsOrCb !== "object")
275
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
270
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
276
271
  this.send(command, optionsOrCb || {}, cb);
277
272
  }
278
273
  else {
279
274
  return this.send(command, optionsOrCb);
280
275
  }
281
- };
282
- ServiceCatalogAppRegistry.prototype.tagResource = function (args, optionsOrCb, cb) {
283
- var command = new TagResourceCommand(args);
276
+ }
277
+ tagResource(args, optionsOrCb, cb) {
278
+ const command = new TagResourceCommand(args);
284
279
  if (typeof optionsOrCb === "function") {
285
280
  this.send(command, optionsOrCb);
286
281
  }
287
282
  else if (typeof cb === "function") {
288
283
  if (typeof optionsOrCb !== "object")
289
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
284
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
290
285
  this.send(command, optionsOrCb || {}, cb);
291
286
  }
292
287
  else {
293
288
  return this.send(command, optionsOrCb);
294
289
  }
295
- };
296
- ServiceCatalogAppRegistry.prototype.untagResource = function (args, optionsOrCb, cb) {
297
- var command = new UntagResourceCommand(args);
290
+ }
291
+ untagResource(args, optionsOrCb, cb) {
292
+ const command = new UntagResourceCommand(args);
298
293
  if (typeof optionsOrCb === "function") {
299
294
  this.send(command, optionsOrCb);
300
295
  }
301
296
  else if (typeof cb === "function") {
302
297
  if (typeof optionsOrCb !== "object")
303
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
298
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
304
299
  this.send(command, optionsOrCb || {}, cb);
305
300
  }
306
301
  else {
307
302
  return this.send(command, optionsOrCb);
308
303
  }
309
- };
310
- ServiceCatalogAppRegistry.prototype.updateApplication = function (args, optionsOrCb, cb) {
311
- var command = new UpdateApplicationCommand(args);
304
+ }
305
+ updateApplication(args, optionsOrCb, cb) {
306
+ const command = new UpdateApplicationCommand(args);
312
307
  if (typeof optionsOrCb === "function") {
313
308
  this.send(command, optionsOrCb);
314
309
  }
315
310
  else if (typeof cb === "function") {
316
311
  if (typeof optionsOrCb !== "object")
317
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
312
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
318
313
  this.send(command, optionsOrCb || {}, cb);
319
314
  }
320
315
  else {
321
316
  return this.send(command, optionsOrCb);
322
317
  }
323
- };
324
- ServiceCatalogAppRegistry.prototype.updateAttributeGroup = function (args, optionsOrCb, cb) {
325
- var command = new UpdateAttributeGroupCommand(args);
318
+ }
319
+ updateAttributeGroup(args, optionsOrCb, cb) {
320
+ const command = new UpdateAttributeGroupCommand(args);
326
321
  if (typeof optionsOrCb === "function") {
327
322
  this.send(command, optionsOrCb);
328
323
  }
329
324
  else if (typeof cb === "function") {
330
325
  if (typeof optionsOrCb !== "object")
331
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
326
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
327
  this.send(command, optionsOrCb || {}, cb);
333
328
  }
334
329
  else {
335
330
  return this.send(command, optionsOrCb);
336
331
  }
337
- };
338
- return ServiceCatalogAppRegistry;
339
- }(ServiceCatalogAppRegistryClient));
340
- export { ServiceCatalogAppRegistry };
332
+ }
333
+ }