@aws-sdk/client-service-catalog-appregistry 3.105.0 → 3.111.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/ServiceCatalogAppRegistry.js +15 -0
  3. package/dist-cjs/commands/ListAttributeGroupsForApplicationCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +33 -15
  6. package/dist-cjs/pagination/ListAttributeGroupsForApplicationPaginator.js +36 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_restJson1.js +119 -1
  9. package/dist-es/ServiceCatalogAppRegistry.js +15 -0
  10. package/dist-es/commands/ListAttributeGroupsForApplicationCommand.js +39 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/models/models_0.js +24 -12
  13. package/dist-es/pagination/ListAttributeGroupsForApplicationPaginator.js +75 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/protocols/Aws_restJson1.js +192 -44
  16. package/dist-types/ServiceCatalogAppRegistry.d.ts +7 -0
  17. package/dist-types/ServiceCatalogAppRegistryClient.d.ts +3 -2
  18. package/dist-types/commands/ListAttributeGroupsForApplicationCommand.d.ts +35 -0
  19. package/dist-types/commands/index.d.ts +1 -0
  20. package/dist-types/models/models_0.d.ts +75 -15
  21. package/dist-types/pagination/ListAttributeGroupsForApplicationPaginator.d.ts +4 -0
  22. package/dist-types/pagination/index.d.ts +1 -0
  23. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  24. package/dist-types/ts3.4/ServiceCatalogAppRegistry.d.ts +5 -0
  25. package/dist-types/ts3.4/ServiceCatalogAppRegistryClient.d.ts +3 -2
  26. package/dist-types/ts3.4/commands/ListAttributeGroupsForApplicationCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +42 -7
  29. package/dist-types/ts3.4/pagination/ListAttributeGroupsForApplicationPaginator.d.ts +4 -0
  30. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  32. package/package.json +29 -29
@@ -0,0 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListAttributeGroupsForApplicationCommand, } from "../commands/ListAttributeGroupsForApplicationCommand";
3
+ import { ServiceCatalogAppRegistry } from "../ServiceCatalogAppRegistry";
4
+ import { ServiceCatalogAppRegistryClient } from "../ServiceCatalogAppRegistryClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListAttributeGroupsForApplicationCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listAttributeGroupsForApplication.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListAttributeGroupsForApplication(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListAttributeGroupsForApplication_1() {
39
+ var token, hasNext, page, prevToken;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.nextToken = token;
49
+ input["maxResults"] = config.pageSize;
50
+ if (!(config.client instanceof ServiceCatalogAppRegistry)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof ServiceCatalogAppRegistryClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ prevToken = token;
67
+ token = page.nextToken;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
+ return [3, 1];
70
+ case 9: return [4, __await(undefined)];
71
+ case 10: return [2, _a.sent()];
72
+ }
73
+ });
74
+ });
75
+ }
@@ -2,4 +2,5 @@ export * from "./Interfaces";
2
2
  export * from "./ListApplicationsPaginator";
3
3
  export * from "./ListAssociatedAttributeGroupsPaginator";
4
4
  export * from "./ListAssociatedResourcesPaginator";
5
+ export * from "./ListAttributeGroupsForApplicationPaginator";
5
6
  export * from "./ListAttributeGroupsPaginator";
@@ -531,6 +531,40 @@ export var serializeAws_restJson1ListAttributeGroupsCommand = function (input, c
531
531
  }
532
532
  });
533
533
  }); };
534
+ export var serializeAws_restJson1ListAttributeGroupsForApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
535
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
536
+ return __generator(this, function (_c) {
537
+ switch (_c.label) {
538
+ case 0: return [4, context.endpoint()];
539
+ case 1:
540
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
541
+ headers = {};
542
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
543
+ "/applications/{application}/attribute-group-details";
544
+ if (input.application !== undefined) {
545
+ labelValue = input.application;
546
+ if (labelValue.length <= 0) {
547
+ throw new Error("Empty value provided for input HTTP label: application.");
548
+ }
549
+ resolvedPath = resolvedPath.replace("{application}", __extendedEncodeURIComponent(labelValue));
550
+ }
551
+ else {
552
+ throw new Error("No value provided for input HTTP label: application.");
553
+ }
554
+ query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
555
+ return [2, new __HttpRequest({
556
+ protocol: protocol,
557
+ hostname: hostname,
558
+ port: port,
559
+ method: "GET",
560
+ headers: headers,
561
+ path: resolvedPath,
562
+ query: query,
563
+ body: body,
564
+ })];
565
+ }
566
+ });
567
+ }); };
534
568
  export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
535
569
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
536
570
  return __generator(this, function (_c) {
@@ -781,25 +815,29 @@ var deserializeAws_restJson1AssociateAttributeGroupCommandError = function (outp
781
815
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
782
816
  _b = errorCode;
783
817
  switch (_b) {
784
- case "InternalServerException": return [3, 2];
785
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
786
- case "ResourceNotFoundException": return [3, 4];
787
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
788
- case "ServiceQuotaExceededException": return [3, 6];
789
- case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3, 6];
790
- case "ValidationException": return [3, 8];
791
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
818
+ case "ConflictException": return [3, 2];
819
+ case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
820
+ case "InternalServerException": return [3, 4];
821
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
822
+ case "ResourceNotFoundException": return [3, 6];
823
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
824
+ case "ServiceQuotaExceededException": return [3, 8];
825
+ case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3, 8];
826
+ case "ValidationException": return [3, 10];
827
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 10];
792
828
  }
793
- return [3, 10];
794
- case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
829
+ return [3, 12];
830
+ case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
795
831
  case 3: throw _d.sent();
796
- case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
832
+ case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
797
833
  case 5: throw _d.sent();
798
- case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
834
+ case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
799
835
  case 7: throw _d.sent();
800
- case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
836
+ case 8: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
801
837
  case 9: throw _d.sent();
802
- case 10:
838
+ case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
839
+ case 11: throw _d.sent();
840
+ case 12:
803
841
  parsedBody = parsedOutput.body;
804
842
  response = new __BaseException({
805
843
  name: parsedBody.code || parsedBody.Code || errorCode,
@@ -861,8 +899,10 @@ var deserializeAws_restJson1AssociateResourceCommandError = function (output, co
861
899
  case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
862
900
  case "ServiceQuotaExceededException": return [3, 8];
863
901
  case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3, 8];
902
+ case "ValidationException": return [3, 10];
903
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 10];
864
904
  }
865
- return [3, 10];
905
+ return [3, 12];
866
906
  case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
867
907
  case 3: throw _d.sent();
868
908
  case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
@@ -871,7 +911,9 @@ var deserializeAws_restJson1AssociateResourceCommandError = function (output, co
871
911
  case 7: throw _d.sent();
872
912
  case 8: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
873
913
  case 9: throw _d.sent();
874
- case 10:
914
+ case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
915
+ case 11: throw _d.sent();
916
+ case 12:
875
917
  parsedBody = parsedOutput.body;
876
918
  response = new __BaseException({
877
919
  name: parsedBody.code || parsedBody.Code || errorCode,
@@ -927,15 +969,19 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
927
969
  case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
928
970
  case "ServiceQuotaExceededException": return [3, 6];
929
971
  case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3, 6];
972
+ case "ValidationException": return [3, 8];
973
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
930
974
  }
931
- return [3, 8];
975
+ return [3, 10];
932
976
  case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
933
977
  case 3: throw _d.sent();
934
978
  case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
935
979
  case 5: throw _d.sent();
936
980
  case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
937
981
  case 7: throw _d.sent();
938
- case 8:
982
+ case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
983
+ case 9: throw _d.sent();
984
+ case 10:
939
985
  parsedBody = parsedOutput.body;
940
986
  response = new __BaseException({
941
987
  name: parsedBody.code || parsedBody.Code || errorCode,
@@ -1257,13 +1303,17 @@ var deserializeAws_restJson1DisassociateResourceCommandError = function (output,
1257
1303
  case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1258
1304
  case "ResourceNotFoundException": return [3, 4];
1259
1305
  case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
1306
+ case "ValidationException": return [3, 6];
1307
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
1260
1308
  }
1261
- return [3, 6];
1309
+ return [3, 8];
1262
1310
  case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1263
1311
  case 3: throw _d.sent();
1264
1312
  case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1265
1313
  case 5: throw _d.sent();
1266
- case 6:
1314
+ case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1315
+ case 7: throw _d.sent();
1316
+ case 8:
1267
1317
  parsedBody = parsedOutput.body;
1268
1318
  response = new __BaseException({
1269
1319
  name: parsedBody.code || parsedBody.Code || errorCode,
@@ -1345,21 +1395,25 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
1345
1395
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1346
1396
  _b = errorCode;
1347
1397
  switch (_b) {
1348
- case "InternalServerException": return [3, 2];
1349
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1350
- case "ResourceNotFoundException": return [3, 4];
1351
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
1352
- case "ValidationException": return [3, 6];
1353
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
1398
+ case "ConflictException": return [3, 2];
1399
+ case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
1400
+ case "InternalServerException": return [3, 4];
1401
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
1402
+ case "ResourceNotFoundException": return [3, 6];
1403
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
1404
+ case "ValidationException": return [3, 8];
1405
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
1354
1406
  }
1355
- return [3, 8];
1356
- case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1407
+ return [3, 10];
1408
+ case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1357
1409
  case 3: throw _d.sent();
1358
- case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1410
+ case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1359
1411
  case 5: throw _d.sent();
1360
- case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1412
+ case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1361
1413
  case 7: throw _d.sent();
1362
- case 8:
1414
+ case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1415
+ case 9: throw _d.sent();
1416
+ case 10:
1363
1417
  parsedBody = parsedOutput.body;
1364
1418
  response = new __BaseException({
1365
1419
  name: parsedBody.code || parsedBody.Code || errorCode,
@@ -1501,21 +1555,25 @@ var deserializeAws_restJson1GetAttributeGroupCommandError = function (output, co
1501
1555
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1502
1556
  _b = errorCode;
1503
1557
  switch (_b) {
1504
- case "InternalServerException": return [3, 2];
1505
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1506
- case "ResourceNotFoundException": return [3, 4];
1507
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
1508
- case "ValidationException": return [3, 6];
1509
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
1558
+ case "ConflictException": return [3, 2];
1559
+ case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
1560
+ case "InternalServerException": return [3, 4];
1561
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
1562
+ case "ResourceNotFoundException": return [3, 6];
1563
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
1564
+ case "ValidationException": return [3, 8];
1565
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
1510
1566
  }
1511
- return [3, 8];
1512
- case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1567
+ return [3, 10];
1568
+ case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1513
1569
  case 3: throw _d.sent();
1514
- case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1570
+ case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1515
1571
  case 5: throw _d.sent();
1516
- case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1572
+ case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1517
1573
  case 7: throw _d.sent();
1518
- case 8:
1574
+ case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1575
+ case 9: throw _d.sent();
1576
+ case 10:
1519
1577
  parsedBody = parsedOutput.body;
1520
1578
  response = new __BaseException({
1521
1579
  name: parsedBody.code || parsedBody.Code || errorCode,
@@ -1790,6 +1848,74 @@ var deserializeAws_restJson1ListAttributeGroupsCommandError = function (output,
1790
1848
  }
1791
1849
  });
1792
1850
  }); };
1851
+ export var deserializeAws_restJson1ListAttributeGroupsForApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1852
+ var contents, data, _a, _b;
1853
+ return __generator(this, function (_c) {
1854
+ switch (_c.label) {
1855
+ case 0:
1856
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1857
+ return [2, deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError(output, context)];
1858
+ }
1859
+ contents = {
1860
+ $metadata: deserializeMetadata(output),
1861
+ attributeGroupsDetails: undefined,
1862
+ nextToken: undefined,
1863
+ };
1864
+ _a = __expectNonNull;
1865
+ _b = __expectObject;
1866
+ return [4, parseBody(output.body, context)];
1867
+ case 1:
1868
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1869
+ if (data.attributeGroupsDetails !== undefined && data.attributeGroupsDetails !== null) {
1870
+ contents.attributeGroupsDetails = deserializeAws_restJson1AttributeGroupDetailsList(data.attributeGroupsDetails, context);
1871
+ }
1872
+ if (data.nextToken !== undefined && data.nextToken !== null) {
1873
+ contents.nextToken = __expectString(data.nextToken);
1874
+ }
1875
+ return [2, Promise.resolve(contents)];
1876
+ }
1877
+ });
1878
+ }); };
1879
+ var deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1880
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
1881
+ var _c;
1882
+ return __generator(this, function (_d) {
1883
+ switch (_d.label) {
1884
+ case 0:
1885
+ _a = [__assign({}, output)];
1886
+ _c = {};
1887
+ return [4, parseBody(output.body, context)];
1888
+ case 1:
1889
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1890
+ errorCode = "UnknownError";
1891
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1892
+ _b = errorCode;
1893
+ switch (_b) {
1894
+ case "InternalServerException": return [3, 2];
1895
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1896
+ case "ResourceNotFoundException": return [3, 4];
1897
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
1898
+ case "ValidationException": return [3, 6];
1899
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
1900
+ }
1901
+ return [3, 8];
1902
+ case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1903
+ case 3: throw _d.sent();
1904
+ case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1905
+ case 5: throw _d.sent();
1906
+ case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1907
+ case 7: throw _d.sent();
1908
+ case 8:
1909
+ parsedBody = parsedOutput.body;
1910
+ response = new __BaseException({
1911
+ name: parsedBody.code || parsedBody.Code || errorCode,
1912
+ $fault: "client",
1913
+ $metadata: deserializeMetadata(output),
1914
+ });
1915
+ throw __decorateServiceException(response, parsedBody);
1916
+ }
1917
+ });
1918
+ }); };
1793
1919
  export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1794
1920
  var contents, data, _a, _b;
1795
1921
  return __generator(this, function (_c) {
@@ -2087,15 +2213,19 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
2087
2213
  case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
2088
2214
  case "ResourceNotFoundException": return [3, 6];
2089
2215
  case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
2216
+ case "ValidationException": return [3, 8];
2217
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
2090
2218
  }
2091
- return [3, 8];
2219
+ return [3, 10];
2092
2220
  case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2093
2221
  case 3: throw _d.sent();
2094
2222
  case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2095
2223
  case 5: throw _d.sent();
2096
2224
  case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2097
2225
  case 7: throw _d.sent();
2098
- case 8:
2226
+ case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2227
+ case 9: throw _d.sent();
2228
+ case 10:
2099
2229
  parsedBody = parsedOutput.body;
2100
2230
  response = new __BaseException({
2101
2231
  name: parsedBody.code || parsedBody.Code || errorCode,
@@ -2303,6 +2433,24 @@ var deserializeAws_restJson1AttributeGroup = function (output, context) {
2303
2433
  : undefined,
2304
2434
  };
2305
2435
  };
2436
+ var deserializeAws_restJson1AttributeGroupDetails = function (output, context) {
2437
+ return {
2438
+ arn: __expectString(output.arn),
2439
+ id: __expectString(output.id),
2440
+ name: __expectString(output.name),
2441
+ };
2442
+ };
2443
+ var deserializeAws_restJson1AttributeGroupDetailsList = function (output, context) {
2444
+ var retVal = (output || [])
2445
+ .filter(function (e) { return e != null; })
2446
+ .map(function (entry) {
2447
+ if (entry === null) {
2448
+ return null;
2449
+ }
2450
+ return deserializeAws_restJson1AttributeGroupDetails(entry, context);
2451
+ });
2452
+ return retVal;
2453
+ };
2306
2454
  var deserializeAws_restJson1AttributeGroupIds = function (output, context) {
2307
2455
  var retVal = (output || [])
2308
2456
  .filter(function (e) { return e != null; })
@@ -14,6 +14,7 @@ import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./c
14
14
  import { ListAssociatedAttributeGroupsCommandInput, ListAssociatedAttributeGroupsCommandOutput } from "./commands/ListAssociatedAttributeGroupsCommand";
15
15
  import { ListAssociatedResourcesCommandInput, ListAssociatedResourcesCommandOutput } from "./commands/ListAssociatedResourcesCommand";
16
16
  import { ListAttributeGroupsCommandInput, ListAttributeGroupsCommandOutput } from "./commands/ListAttributeGroupsCommand";
17
+ import { ListAttributeGroupsForApplicationCommandInput, ListAttributeGroupsForApplicationCommandOutput } from "./commands/ListAttributeGroupsForApplicationCommand";
17
18
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
18
19
  import { SyncResourceCommandInput, SyncResourceCommandOutput } from "./commands/SyncResourceCommand";
19
20
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
@@ -120,6 +121,12 @@ export declare class ServiceCatalogAppRegistry extends ServiceCatalogAppRegistry
120
121
  listAttributeGroups(args: ListAttributeGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListAttributeGroupsCommandOutput>;
121
122
  listAttributeGroups(args: ListAttributeGroupsCommandInput, cb: (err: any, data?: ListAttributeGroupsCommandOutput) => void): void;
122
123
  listAttributeGroups(args: ListAttributeGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAttributeGroupsCommandOutput) => void): void;
124
+ /**
125
+ * <p>Lists the details of all attribute groups associated with a specific application. The results display in pages.</p>
126
+ */
127
+ listAttributeGroupsForApplication(args: ListAttributeGroupsForApplicationCommandInput, options?: __HttpHandlerOptions): Promise<ListAttributeGroupsForApplicationCommandOutput>;
128
+ listAttributeGroupsForApplication(args: ListAttributeGroupsForApplicationCommandInput, cb: (err: any, data?: ListAttributeGroupsForApplicationCommandOutput) => void): void;
129
+ listAttributeGroupsForApplication(args: ListAttributeGroupsForApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAttributeGroupsForApplicationCommandOutput) => void): void;
123
130
  /**
124
131
  * <p>Lists all of the tags on the resource.</p>
125
132
  */
@@ -21,14 +21,15 @@ import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./c
21
21
  import { ListAssociatedAttributeGroupsCommandInput, ListAssociatedAttributeGroupsCommandOutput } from "./commands/ListAssociatedAttributeGroupsCommand";
22
22
  import { ListAssociatedResourcesCommandInput, ListAssociatedResourcesCommandOutput } from "./commands/ListAssociatedResourcesCommand";
23
23
  import { ListAttributeGroupsCommandInput, ListAttributeGroupsCommandOutput } from "./commands/ListAttributeGroupsCommand";
24
+ import { ListAttributeGroupsForApplicationCommandInput, ListAttributeGroupsForApplicationCommandOutput } from "./commands/ListAttributeGroupsForApplicationCommand";
24
25
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
25
26
  import { SyncResourceCommandInput, SyncResourceCommandOutput } from "./commands/SyncResourceCommand";
26
27
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
27
28
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
28
29
  import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
29
30
  import { UpdateAttributeGroupCommandInput, UpdateAttributeGroupCommandOutput } from "./commands/UpdateAttributeGroupCommand";
30
- export declare type ServiceInputTypes = AssociateAttributeGroupCommandInput | AssociateResourceCommandInput | CreateApplicationCommandInput | CreateAttributeGroupCommandInput | DeleteApplicationCommandInput | DeleteAttributeGroupCommandInput | DisassociateAttributeGroupCommandInput | DisassociateResourceCommandInput | GetApplicationCommandInput | GetAssociatedResourceCommandInput | GetAttributeGroupCommandInput | ListApplicationsCommandInput | ListAssociatedAttributeGroupsCommandInput | ListAssociatedResourcesCommandInput | ListAttributeGroupsCommandInput | ListTagsForResourceCommandInput | SyncResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateAttributeGroupCommandInput;
31
- export declare type ServiceOutputTypes = AssociateAttributeGroupCommandOutput | AssociateResourceCommandOutput | CreateApplicationCommandOutput | CreateAttributeGroupCommandOutput | DeleteApplicationCommandOutput | DeleteAttributeGroupCommandOutput | DisassociateAttributeGroupCommandOutput | DisassociateResourceCommandOutput | GetApplicationCommandOutput | GetAssociatedResourceCommandOutput | GetAttributeGroupCommandOutput | ListApplicationsCommandOutput | ListAssociatedAttributeGroupsCommandOutput | ListAssociatedResourcesCommandOutput | ListAttributeGroupsCommandOutput | ListTagsForResourceCommandOutput | SyncResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateAttributeGroupCommandOutput;
31
+ export declare type ServiceInputTypes = AssociateAttributeGroupCommandInput | AssociateResourceCommandInput | CreateApplicationCommandInput | CreateAttributeGroupCommandInput | DeleteApplicationCommandInput | DeleteAttributeGroupCommandInput | DisassociateAttributeGroupCommandInput | DisassociateResourceCommandInput | GetApplicationCommandInput | GetAssociatedResourceCommandInput | GetAttributeGroupCommandInput | ListApplicationsCommandInput | ListAssociatedAttributeGroupsCommandInput | ListAssociatedResourcesCommandInput | ListAttributeGroupsCommandInput | ListAttributeGroupsForApplicationCommandInput | ListTagsForResourceCommandInput | SyncResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateAttributeGroupCommandInput;
32
+ export declare type ServiceOutputTypes = AssociateAttributeGroupCommandOutput | AssociateResourceCommandOutput | CreateApplicationCommandOutput | CreateAttributeGroupCommandOutput | DeleteApplicationCommandOutput | DeleteAttributeGroupCommandOutput | DisassociateAttributeGroupCommandOutput | DisassociateResourceCommandOutput | GetApplicationCommandOutput | GetAssociatedResourceCommandOutput | GetAttributeGroupCommandOutput | ListApplicationsCommandOutput | ListAssociatedAttributeGroupsCommandOutput | ListAssociatedResourcesCommandOutput | ListAttributeGroupsCommandOutput | ListAttributeGroupsForApplicationCommandOutput | ListTagsForResourceCommandOutput | SyncResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateAttributeGroupCommandOutput;
32
33
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
33
34
  /**
34
35
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ListAttributeGroupsForApplicationRequest, ListAttributeGroupsForApplicationResponse } from "../models/models_0";
4
+ import { ServiceCatalogAppRegistryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceCatalogAppRegistryClient";
5
+ export interface ListAttributeGroupsForApplicationCommandInput extends ListAttributeGroupsForApplicationRequest {
6
+ }
7
+ export interface ListAttributeGroupsForApplicationCommandOutput extends ListAttributeGroupsForApplicationResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Lists the details of all attribute groups associated with a specific application. The results display in pages.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { ServiceCatalogAppRegistryClient, ListAttributeGroupsForApplicationCommand } from "@aws-sdk/client-service-catalog-appregistry"; // ES Modules import
15
+ * // const { ServiceCatalogAppRegistryClient, ListAttributeGroupsForApplicationCommand } = require("@aws-sdk/client-service-catalog-appregistry"); // CommonJS import
16
+ * const client = new ServiceCatalogAppRegistryClient(config);
17
+ * const command = new ListAttributeGroupsForApplicationCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link ListAttributeGroupsForApplicationCommandInput} for command's `input` shape.
22
+ * @see {@link ListAttributeGroupsForApplicationCommandOutput} for command's `response` shape.
23
+ * @see {@link ServiceCatalogAppRegistryClientResolvedConfig | config} for ServiceCatalogAppRegistryClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class ListAttributeGroupsForApplicationCommand extends $Command<ListAttributeGroupsForApplicationCommandInput, ListAttributeGroupsForApplicationCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig> {
27
+ readonly input: ListAttributeGroupsForApplicationCommandInput;
28
+ constructor(input: ListAttributeGroupsForApplicationCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAttributeGroupsForApplicationCommandInput, ListAttributeGroupsForApplicationCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -13,6 +13,7 @@ export * from "./ListApplicationsCommand";
13
13
  export * from "./ListAssociatedAttributeGroupsCommand";
14
14
  export * from "./ListAssociatedResourcesCommand";
15
15
  export * from "./ListAttributeGroupsCommand";
16
+ export * from "./ListAttributeGroupsForApplicationCommand";
16
17
  export * from "./ListTagsForResourceCommand";
17
18
  export * from "./SyncResourceCommand";
18
19
  export * from "./TagResourceCommand";
@@ -107,6 +107,18 @@ export declare namespace AssociateAttributeGroupResponse {
107
107
  */
108
108
  const filterSensitiveLog: (obj: AssociateAttributeGroupResponse) => any;
109
109
  }
110
+ /**
111
+ * <p>There was a conflict when processing the request (for example, a resource with the given name already
112
+ * exists within the account).</p>
113
+ */
114
+ export declare class ConflictException extends __BaseException {
115
+ readonly name: "ConflictException";
116
+ readonly $fault: "client";
117
+ /**
118
+ * @internal
119
+ */
120
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
121
+ }
110
122
  /**
111
123
  * <p>The service is experiencing internal problems.</p>
112
124
  */
@@ -190,18 +202,6 @@ export declare namespace AssociateResourceResponse {
190
202
  */
191
203
  const filterSensitiveLog: (obj: AssociateResourceResponse) => any;
192
204
  }
193
- /**
194
- * <p>There was a conflict when processing the request (for example, a resource with the given name already
195
- * exists within the account).</p>
196
- */
197
- export declare class ConflictException extends __BaseException {
198
- readonly name: "ConflictException";
199
- readonly $fault: "client";
200
- /**
201
- * @internal
202
- */
203
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
204
- }
205
205
  /**
206
206
  * <p>Represents a Amazon Web Services Service Catalog AppRegistry attribute group that is rich metadata which describes an application and its components.</p>
207
207
  */
@@ -241,6 +241,29 @@ export declare namespace AttributeGroup {
241
241
  */
242
242
  const filterSensitiveLog: (obj: AttributeGroup) => any;
243
243
  }
244
+ /**
245
+ * <p> The details related to a specific AttributeGroup. </p>
246
+ */
247
+ export interface AttributeGroupDetails {
248
+ /**
249
+ * <p>The unique identifier of the attribute group.</p>
250
+ */
251
+ id?: string;
252
+ /**
253
+ * <p>The Amazon resource name (ARN) that specifies the attribute group.</p>
254
+ */
255
+ arn?: string;
256
+ /**
257
+ * <p>The name of the attribute group. </p>
258
+ */
259
+ name?: string;
260
+ }
261
+ export declare namespace AttributeGroupDetails {
262
+ /**
263
+ * @internal
264
+ */
265
+ const filterSensitiveLog: (obj: AttributeGroupDetails) => any;
266
+ }
244
267
  /**
245
268
  * <p>Summary of a Amazon Web Services Service Catalog AppRegistry attribute group.</p>
246
269
  */
@@ -870,6 +893,42 @@ export declare namespace ListAttributeGroupsResponse {
870
893
  */
871
894
  const filterSensitiveLog: (obj: ListAttributeGroupsResponse) => any;
872
895
  }
896
+ export interface ListAttributeGroupsForApplicationRequest {
897
+ /**
898
+ * <p>The name or ID of the application.</p>
899
+ */
900
+ application: string | undefined;
901
+ /**
902
+ * <p>This token retrieves the next page of results after a previous API call.</p>
903
+ */
904
+ nextToken?: string;
905
+ /**
906
+ * <p>The upper bound of the number of results to return. The value cannot exceed 25. If you omit this parameter, it defaults to 25. This value is optional.</p>
907
+ */
908
+ maxResults?: number;
909
+ }
910
+ export declare namespace ListAttributeGroupsForApplicationRequest {
911
+ /**
912
+ * @internal
913
+ */
914
+ const filterSensitiveLog: (obj: ListAttributeGroupsForApplicationRequest) => any;
915
+ }
916
+ export interface ListAttributeGroupsForApplicationResponse {
917
+ /**
918
+ * <p> The details related to a specific AttributeGroup. </p>
919
+ */
920
+ attributeGroupsDetails?: AttributeGroupDetails[];
921
+ /**
922
+ * <p>The token to use to get the next page of results after a previous API call.</p>
923
+ */
924
+ nextToken?: string;
925
+ }
926
+ export declare namespace ListAttributeGroupsForApplicationResponse {
927
+ /**
928
+ * @internal
929
+ */
930
+ const filterSensitiveLog: (obj: ListAttributeGroupsForApplicationResponse) => any;
931
+ }
873
932
  export interface ListTagsForResourceRequest {
874
933
  /**
875
934
  * <p>The Amazon resource name (ARN) that specifies the resource.</p>
@@ -990,7 +1049,8 @@ export interface UpdateApplicationRequest {
990
1049
  /**
991
1050
  * @deprecated
992
1051
  *
993
- * <p>The new name of the application. The name must be unique in the region in which you are updating the application.</p>
1052
+ * <p>Deprecated: The new name of the application. The name must be unique in the region in which you are
1053
+ * updating the application. Please do not use this field as we have stopped supporting name updates.</p>
994
1054
  */
995
1055
  name?: string;
996
1056
  /**
@@ -1024,8 +1084,8 @@ export interface UpdateAttributeGroupRequest {
1024
1084
  /**
1025
1085
  * @deprecated
1026
1086
  *
1027
- * <p>The new name of the attribute group. The name must be unique in the region in which you are
1028
- * updating the attribute group.</p>
1087
+ * <p>Deprecated: The new name of the attribute group. The name must be unique in the region in which you are
1088
+ * updating the attribute group. Please do not use this field as we have stopped supporting name updates.</p>
1029
1089
  */
1030
1090
  name?: string;
1031
1091
  /**