@aws-sdk/client-service-catalog-appregistry 3.110.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 +11 -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 +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.111.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.110.0...v3.111.0) (2022-06-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-service-catalog-appregistry:** This release adds a new API ListAttributeGroupsForApplication that returns associated attribute groups of an application. In addition, the UpdateApplication and UpdateAttributeGroup APIs will not allow users to update the 'Name' attribute. ([03773d1](https://github.com/aws/aws-sdk-js-v3/commit/03773d1bcb949f1472ebfb03dcf80c84599ef3f6))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.110.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.109.0...v3.110.0) (2022-06-14)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-service-catalog-appregistry
@@ -16,6 +16,7 @@ const ListApplicationsCommand_1 = require("./commands/ListApplicationsCommand");
16
16
  const ListAssociatedAttributeGroupsCommand_1 = require("./commands/ListAssociatedAttributeGroupsCommand");
17
17
  const ListAssociatedResourcesCommand_1 = require("./commands/ListAssociatedResourcesCommand");
18
18
  const ListAttributeGroupsCommand_1 = require("./commands/ListAttributeGroupsCommand");
19
+ const ListAttributeGroupsForApplicationCommand_1 = require("./commands/ListAttributeGroupsForApplicationCommand");
19
20
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
20
21
  const SyncResourceCommand_1 = require("./commands/SyncResourceCommand");
21
22
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
@@ -234,6 +235,20 @@ class ServiceCatalogAppRegistry extends ServiceCatalogAppRegistryClient_1.Servic
234
235
  return this.send(command, optionsOrCb);
235
236
  }
236
237
  }
238
+ listAttributeGroupsForApplication(args, optionsOrCb, cb) {
239
+ const command = new ListAttributeGroupsForApplicationCommand_1.ListAttributeGroupsForApplicationCommand(args);
240
+ if (typeof optionsOrCb === "function") {
241
+ this.send(command, optionsOrCb);
242
+ }
243
+ else if (typeof cb === "function") {
244
+ if (typeof optionsOrCb !== "object")
245
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
246
+ this.send(command, optionsOrCb || {}, cb);
247
+ }
248
+ else {
249
+ return this.send(command, optionsOrCb);
250
+ }
251
+ }
237
252
  listTagsForResource(args, optionsOrCb, cb) {
238
253
  const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
239
254
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListAttributeGroupsForApplicationCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListAttributeGroupsForApplicationCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ServiceCatalogAppRegistryClient";
18
+ const commandName = "ListAttributeGroupsForApplicationCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListAttributeGroupsForApplicationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListAttributeGroupsForApplicationResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListAttributeGroupsForApplicationCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListAttributeGroupsForApplicationCommand)(output, context);
34
+ }
35
+ }
36
+ exports.ListAttributeGroupsForApplicationCommand = ListAttributeGroupsForApplicationCommand;
@@ -16,6 +16,7 @@ tslib_1.__exportStar(require("./ListApplicationsCommand"), exports);
16
16
  tslib_1.__exportStar(require("./ListAssociatedAttributeGroupsCommand"), exports);
17
17
  tslib_1.__exportStar(require("./ListAssociatedResourcesCommand"), exports);
18
18
  tslib_1.__exportStar(require("./ListAttributeGroupsCommand"), exports);
19
+ tslib_1.__exportStar(require("./ListAttributeGroupsForApplicationCommand"), exports);
19
20
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
20
21
  tslib_1.__exportStar(require("./SyncResourceCommand"), exports);
21
22
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SyncAction = exports.SyncResourceRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListAttributeGroupsResponse = exports.ListAttributeGroupsRequest = exports.ListAssociatedResourcesResponse = exports.ResourceInfo = exports.ListAssociatedResourcesRequest = exports.ListAssociatedAttributeGroupsResponse = exports.ListAssociatedAttributeGroupsRequest = exports.ListApplicationsResponse = exports.ListApplicationsRequest = exports.GetAttributeGroupResponse = exports.GetAttributeGroupRequest = exports.GetAssociatedResourceResponse = exports.Resource = exports.ResourceIntegrations = exports.GetAssociatedResourceRequest = exports.GetApplicationResponse = exports.Integrations = exports.ResourceGroup = exports.ResourceGroupState = exports.GetApplicationRequest = exports.DisassociateResourceResponse = exports.DisassociateResourceRequest = exports.DisassociateAttributeGroupResponse = exports.DisassociateAttributeGroupRequest = exports.DeleteAttributeGroupResponse = exports.DeleteAttributeGroupRequest = exports.DeleteApplicationResponse = exports.DeleteApplicationRequest = exports.CreateAttributeGroupResponse = exports.CreateAttributeGroupRequest = exports.CreateApplicationResponse = exports.CreateApplicationRequest = exports.AttributeGroupSummary = exports.AttributeGroup = exports.ConflictException = exports.AssociateResourceResponse = exports.AssociateResourceRequest = exports.ResourceType = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AssociateAttributeGroupResponse = exports.AssociateAttributeGroupRequest = exports.ApplicationSummary = exports.Application = void 0;
4
- exports.UpdateAttributeGroupResponse = exports.UpdateAttributeGroupRequest = exports.UpdateApplicationResponse = exports.UpdateApplicationRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.SyncResourceResponse = void 0;
3
+ exports.ListTagsForResourceRequest = exports.ListAttributeGroupsForApplicationResponse = exports.ListAttributeGroupsForApplicationRequest = exports.ListAttributeGroupsResponse = exports.ListAttributeGroupsRequest = exports.ListAssociatedResourcesResponse = exports.ResourceInfo = exports.ListAssociatedResourcesRequest = exports.ListAssociatedAttributeGroupsResponse = exports.ListAssociatedAttributeGroupsRequest = exports.ListApplicationsResponse = exports.ListApplicationsRequest = exports.GetAttributeGroupResponse = exports.GetAttributeGroupRequest = exports.GetAssociatedResourceResponse = exports.Resource = exports.ResourceIntegrations = exports.GetAssociatedResourceRequest = exports.GetApplicationResponse = exports.Integrations = exports.ResourceGroup = exports.ResourceGroupState = exports.GetApplicationRequest = exports.DisassociateResourceResponse = exports.DisassociateResourceRequest = exports.DisassociateAttributeGroupResponse = exports.DisassociateAttributeGroupRequest = exports.DeleteAttributeGroupResponse = exports.DeleteAttributeGroupRequest = exports.DeleteApplicationResponse = exports.DeleteApplicationRequest = exports.CreateAttributeGroupResponse = exports.CreateAttributeGroupRequest = exports.CreateApplicationResponse = exports.CreateApplicationRequest = exports.AttributeGroupSummary = exports.AttributeGroupDetails = exports.AttributeGroup = exports.AssociateResourceResponse = exports.AssociateResourceRequest = exports.ResourceType = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AssociateAttributeGroupResponse = exports.AssociateAttributeGroupRequest = exports.ApplicationSummary = exports.Application = void 0;
4
+ exports.UpdateAttributeGroupResponse = exports.UpdateAttributeGroupRequest = exports.UpdateApplicationResponse = exports.UpdateApplicationRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.SyncResourceResponse = exports.SyncAction = exports.SyncResourceRequest = exports.ListTagsForResourceResponse = void 0;
5
5
  const ServiceCatalogAppRegistryServiceException_1 = require("./ServiceCatalogAppRegistryServiceException");
6
6
  var Application;
7
7
  (function (Application) {
@@ -27,6 +27,19 @@ var AssociateAttributeGroupResponse;
27
27
  ...obj,
28
28
  });
29
29
  })(AssociateAttributeGroupResponse = exports.AssociateAttributeGroupResponse || (exports.AssociateAttributeGroupResponse = {}));
30
+ class ConflictException extends ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException {
31
+ constructor(opts) {
32
+ super({
33
+ name: "ConflictException",
34
+ $fault: "client",
35
+ ...opts,
36
+ });
37
+ this.name = "ConflictException";
38
+ this.$fault = "client";
39
+ Object.setPrototypeOf(this, ConflictException.prototype);
40
+ }
41
+ }
42
+ exports.ConflictException = ConflictException;
30
43
  class InternalServerException extends ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException {
31
44
  constructor(opts) {
32
45
  super({
@@ -95,25 +108,18 @@ var AssociateResourceResponse;
95
108
  ...obj,
96
109
  });
97
110
  })(AssociateResourceResponse = exports.AssociateResourceResponse || (exports.AssociateResourceResponse = {}));
98
- class ConflictException extends ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException {
99
- constructor(opts) {
100
- super({
101
- name: "ConflictException",
102
- $fault: "client",
103
- ...opts,
104
- });
105
- this.name = "ConflictException";
106
- this.$fault = "client";
107
- Object.setPrototypeOf(this, ConflictException.prototype);
108
- }
109
- }
110
- exports.ConflictException = ConflictException;
111
111
  var AttributeGroup;
112
112
  (function (AttributeGroup) {
113
113
  AttributeGroup.filterSensitiveLog = (obj) => ({
114
114
  ...obj,
115
115
  });
116
116
  })(AttributeGroup = exports.AttributeGroup || (exports.AttributeGroup = {}));
117
+ var AttributeGroupDetails;
118
+ (function (AttributeGroupDetails) {
119
+ AttributeGroupDetails.filterSensitiveLog = (obj) => ({
120
+ ...obj,
121
+ });
122
+ })(AttributeGroupDetails = exports.AttributeGroupDetails || (exports.AttributeGroupDetails = {}));
117
123
  var AttributeGroupSummary;
118
124
  (function (AttributeGroupSummary) {
119
125
  AttributeGroupSummary.filterSensitiveLog = (obj) => ({
@@ -315,6 +321,18 @@ var ListAttributeGroupsResponse;
315
321
  ...obj,
316
322
  });
317
323
  })(ListAttributeGroupsResponse = exports.ListAttributeGroupsResponse || (exports.ListAttributeGroupsResponse = {}));
324
+ var ListAttributeGroupsForApplicationRequest;
325
+ (function (ListAttributeGroupsForApplicationRequest) {
326
+ ListAttributeGroupsForApplicationRequest.filterSensitiveLog = (obj) => ({
327
+ ...obj,
328
+ });
329
+ })(ListAttributeGroupsForApplicationRequest = exports.ListAttributeGroupsForApplicationRequest || (exports.ListAttributeGroupsForApplicationRequest = {}));
330
+ var ListAttributeGroupsForApplicationResponse;
331
+ (function (ListAttributeGroupsForApplicationResponse) {
332
+ ListAttributeGroupsForApplicationResponse.filterSensitiveLog = (obj) => ({
333
+ ...obj,
334
+ });
335
+ })(ListAttributeGroupsForApplicationResponse = exports.ListAttributeGroupsForApplicationResponse || (exports.ListAttributeGroupsForApplicationResponse = {}));
318
336
  var ListTagsForResourceRequest;
319
337
  (function (ListTagsForResourceRequest) {
320
338
  ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListAttributeGroupsForApplication = void 0;
4
+ const ListAttributeGroupsForApplicationCommand_1 = require("../commands/ListAttributeGroupsForApplicationCommand");
5
+ const ServiceCatalogAppRegistry_1 = require("../ServiceCatalogAppRegistry");
6
+ const ServiceCatalogAppRegistryClient_1 = require("../ServiceCatalogAppRegistryClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new ListAttributeGroupsForApplicationCommand_1.ListAttributeGroupsForApplicationCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.listAttributeGroupsForApplication(input, ...args);
12
+ };
13
+ async function* paginateListAttributeGroupsForApplication(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.nextToken = token;
19
+ input["maxResults"] = config.pageSize;
20
+ if (config.client instanceof ServiceCatalogAppRegistry_1.ServiceCatalogAppRegistry) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof ServiceCatalogAppRegistryClient_1.ServiceCatalogAppRegistryClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
28
+ }
29
+ yield page;
30
+ const prevToken = token;
31
+ token = page.nextToken;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ }
34
+ return undefined;
35
+ }
36
+ exports.paginateListAttributeGroupsForApplication = paginateListAttributeGroupsForApplication;
@@ -5,4 +5,5 @@ tslib_1.__exportStar(require("./Interfaces"), exports);
5
5
  tslib_1.__exportStar(require("./ListApplicationsPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./ListAssociatedAttributeGroupsPaginator"), exports);
7
7
  tslib_1.__exportStar(require("./ListAssociatedResourcesPaginator"), exports);
8
+ tslib_1.__exportStar(require("./ListAttributeGroupsForApplicationPaginator"), exports);
8
9
  tslib_1.__exportStar(require("./ListAttributeGroupsPaginator"), exports);
@@ -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_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;
3
+ exports.deserializeAws_restJson1UpdateAttributeGroupCommand = exports.deserializeAws_restJson1UpdateApplicationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SyncResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListAttributeGroupsForApplicationCommand = 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_restJson1ListAttributeGroupsForApplicationCommand = 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");
@@ -481,6 +481,38 @@ const serializeAws_restJson1ListAttributeGroupsCommand = async (input, context)
481
481
  });
482
482
  };
483
483
  exports.serializeAws_restJson1ListAttributeGroupsCommand = serializeAws_restJson1ListAttributeGroupsCommand;
484
+ const serializeAws_restJson1ListAttributeGroupsForApplicationCommand = async (input, context) => {
485
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
486
+ const headers = {};
487
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
488
+ "/applications/{application}/attribute-group-details";
489
+ if (input.application !== undefined) {
490
+ const labelValue = input.application;
491
+ if (labelValue.length <= 0) {
492
+ throw new Error("Empty value provided for input HTTP label: application.");
493
+ }
494
+ resolvedPath = resolvedPath.replace("{application}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
495
+ }
496
+ else {
497
+ throw new Error("No value provided for input HTTP label: application.");
498
+ }
499
+ const query = {
500
+ ...(input.nextToken !== undefined && { nextToken: input.nextToken }),
501
+ ...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
502
+ };
503
+ let body;
504
+ return new protocol_http_1.HttpRequest({
505
+ protocol,
506
+ hostname,
507
+ port,
508
+ method: "GET",
509
+ headers,
510
+ path: resolvedPath,
511
+ query,
512
+ body,
513
+ });
514
+ };
515
+ exports.serializeAws_restJson1ListAttributeGroupsForApplicationCommand = serializeAws_restJson1ListAttributeGroupsForApplicationCommand;
484
516
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
485
517
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
486
518
  const headers = {};
@@ -697,6 +729,9 @@ const deserializeAws_restJson1AssociateAttributeGroupCommandError = async (outpu
697
729
  let errorCode = "UnknownError";
698
730
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
699
731
  switch (errorCode) {
732
+ case "ConflictException":
733
+ case "com.amazonaws.servicecatalogappregistry#ConflictException":
734
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
700
735
  case "InternalServerException":
701
736
  case "com.amazonaws.servicecatalogappregistry#InternalServerException":
702
737
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
@@ -759,6 +794,9 @@ const deserializeAws_restJson1AssociateResourceCommandError = async (output, con
759
794
  case "ServiceQuotaExceededException":
760
795
  case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
761
796
  throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
797
+ case "ValidationException":
798
+ case "com.amazonaws.servicecatalogappregistry#ValidationException":
799
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
762
800
  default:
763
801
  const parsedBody = parsedOutput.body;
764
802
  response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
@@ -802,6 +840,9 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
802
840
  case "ServiceQuotaExceededException":
803
841
  case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
804
842
  throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
843
+ case "ValidationException":
844
+ case "com.amazonaws.servicecatalogappregistry#ValidationException":
845
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
805
846
  default:
806
847
  const parsedBody = parsedOutput.body;
807
848
  response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
@@ -1025,6 +1066,9 @@ const deserializeAws_restJson1DisassociateResourceCommandError = async (output,
1025
1066
  case "ResourceNotFoundException":
1026
1067
  case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
1027
1068
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1069
+ case "ValidationException":
1070
+ case "com.amazonaws.servicecatalogappregistry#ValidationException":
1071
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1028
1072
  default:
1029
1073
  const parsedBody = parsedOutput.body;
1030
1074
  response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
@@ -1091,6 +1135,9 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
1091
1135
  let errorCode = "UnknownError";
1092
1136
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1093
1137
  switch (errorCode) {
1138
+ case "ConflictException":
1139
+ case "com.amazonaws.servicecatalogappregistry#ConflictException":
1140
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1094
1141
  case "InternalServerException":
1095
1142
  case "com.amazonaws.servicecatalogappregistry#InternalServerException":
1096
1143
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
@@ -1205,6 +1252,9 @@ const deserializeAws_restJson1GetAttributeGroupCommandError = async (output, con
1205
1252
  let errorCode = "UnknownError";
1206
1253
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1207
1254
  switch (errorCode) {
1255
+ case "ConflictException":
1256
+ case "com.amazonaws.servicecatalogappregistry#ConflictException":
1257
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1208
1258
  case "InternalServerException":
1209
1259
  case "com.amazonaws.servicecatalogappregistry#InternalServerException":
1210
1260
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
@@ -1406,6 +1456,53 @@ const deserializeAws_restJson1ListAttributeGroupsCommandError = async (output, c
1406
1456
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1407
1457
  }
1408
1458
  };
1459
+ const deserializeAws_restJson1ListAttributeGroupsForApplicationCommand = async (output, context) => {
1460
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1461
+ return deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError(output, context);
1462
+ }
1463
+ const contents = {
1464
+ $metadata: deserializeMetadata(output),
1465
+ attributeGroupsDetails: undefined,
1466
+ nextToken: undefined,
1467
+ };
1468
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1469
+ if (data.attributeGroupsDetails !== undefined && data.attributeGroupsDetails !== null) {
1470
+ contents.attributeGroupsDetails = deserializeAws_restJson1AttributeGroupDetailsList(data.attributeGroupsDetails, context);
1471
+ }
1472
+ if (data.nextToken !== undefined && data.nextToken !== null) {
1473
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1474
+ }
1475
+ return Promise.resolve(contents);
1476
+ };
1477
+ exports.deserializeAws_restJson1ListAttributeGroupsForApplicationCommand = deserializeAws_restJson1ListAttributeGroupsForApplicationCommand;
1478
+ const deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError = async (output, context) => {
1479
+ const parsedOutput = {
1480
+ ...output,
1481
+ body: await parseBody(output.body, context),
1482
+ };
1483
+ let response;
1484
+ let errorCode = "UnknownError";
1485
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1486
+ switch (errorCode) {
1487
+ case "InternalServerException":
1488
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException":
1489
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1490
+ case "ResourceNotFoundException":
1491
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
1492
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1493
+ case "ValidationException":
1494
+ case "com.amazonaws.servicecatalogappregistry#ValidationException":
1495
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1496
+ default:
1497
+ const parsedBody = parsedOutput.body;
1498
+ response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
1499
+ name: parsedBody.code || parsedBody.Code || errorCode,
1500
+ $fault: "client",
1501
+ $metadata: deserializeMetadata(output),
1502
+ });
1503
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1504
+ }
1505
+ };
1409
1506
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
1410
1507
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1411
1508
  return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
@@ -1611,6 +1708,9 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
1611
1708
  case "ResourceNotFoundException":
1612
1709
  case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
1613
1710
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1711
+ case "ValidationException":
1712
+ case "com.amazonaws.servicecatalogappregistry#ValidationException":
1713
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1614
1714
  default:
1615
1715
  const parsedBody = parsedOutput.body;
1616
1716
  response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
@@ -1797,6 +1897,24 @@ const deserializeAws_restJson1AttributeGroup = (output, context) => {
1797
1897
  : undefined,
1798
1898
  };
1799
1899
  };
1900
+ const deserializeAws_restJson1AttributeGroupDetails = (output, context) => {
1901
+ return {
1902
+ arn: (0, smithy_client_1.expectString)(output.arn),
1903
+ id: (0, smithy_client_1.expectString)(output.id),
1904
+ name: (0, smithy_client_1.expectString)(output.name),
1905
+ };
1906
+ };
1907
+ const deserializeAws_restJson1AttributeGroupDetailsList = (output, context) => {
1908
+ const retVal = (output || [])
1909
+ .filter((e) => e != null)
1910
+ .map((entry) => {
1911
+ if (entry === null) {
1912
+ return null;
1913
+ }
1914
+ return deserializeAws_restJson1AttributeGroupDetails(entry, context);
1915
+ });
1916
+ return retVal;
1917
+ };
1800
1918
  const deserializeAws_restJson1AttributeGroupIds = (output, context) => {
1801
1919
  const retVal = (output || [])
1802
1920
  .filter((e) => e != null)
@@ -14,6 +14,7 @@ import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
14
14
  import { ListAssociatedAttributeGroupsCommand, } from "./commands/ListAssociatedAttributeGroupsCommand";
15
15
  import { ListAssociatedResourcesCommand, } from "./commands/ListAssociatedResourcesCommand";
16
16
  import { ListAttributeGroupsCommand, } from "./commands/ListAttributeGroupsCommand";
17
+ import { ListAttributeGroupsForApplicationCommand, } from "./commands/ListAttributeGroupsForApplicationCommand";
17
18
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
18
19
  import { SyncResourceCommand, } from "./commands/SyncResourceCommand";
19
20
  import { TagResourceCommand } from "./commands/TagResourceCommand";
@@ -236,6 +237,20 @@ var ServiceCatalogAppRegistry = (function (_super) {
236
237
  return this.send(command, optionsOrCb);
237
238
  }
238
239
  };
240
+ ServiceCatalogAppRegistry.prototype.listAttributeGroupsForApplication = function (args, optionsOrCb, cb) {
241
+ var command = new ListAttributeGroupsForApplicationCommand(args);
242
+ if (typeof optionsOrCb === "function") {
243
+ this.send(command, optionsOrCb);
244
+ }
245
+ else if (typeof cb === "function") {
246
+ if (typeof optionsOrCb !== "object")
247
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
248
+ this.send(command, optionsOrCb || {}, cb);
249
+ }
250
+ else {
251
+ return this.send(command, optionsOrCb);
252
+ }
253
+ };
239
254
  ServiceCatalogAppRegistry.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
240
255
  var command = new ListTagsForResourceCommand(args);
241
256
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListAttributeGroupsForApplicationRequest, ListAttributeGroupsForApplicationResponse, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListAttributeGroupsForApplicationCommand, serializeAws_restJson1ListAttributeGroupsForApplicationCommand, } from "../protocols/Aws_restJson1";
6
+ var ListAttributeGroupsForApplicationCommand = (function (_super) {
7
+ __extends(ListAttributeGroupsForApplicationCommand, _super);
8
+ function ListAttributeGroupsForApplicationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListAttributeGroupsForApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ServiceCatalogAppRegistryClient";
18
+ var commandName = "ListAttributeGroupsForApplicationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListAttributeGroupsForApplicationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListAttributeGroupsForApplicationResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListAttributeGroupsForApplicationCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListAttributeGroupsForApplicationCommand(input, context);
33
+ };
34
+ ListAttributeGroupsForApplicationCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListAttributeGroupsForApplicationCommand(output, context);
36
+ };
37
+ return ListAttributeGroupsForApplicationCommand;
38
+ }($Command));
39
+ export { ListAttributeGroupsForApplicationCommand };
@@ -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";
@@ -16,6 +16,18 @@ export var AssociateAttributeGroupResponse;
16
16
  (function (AssociateAttributeGroupResponse) {
17
17
  AssociateAttributeGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
18
18
  })(AssociateAttributeGroupResponse || (AssociateAttributeGroupResponse = {}));
19
+ var ConflictException = (function (_super) {
20
+ __extends(ConflictException, _super);
21
+ function ConflictException(opts) {
22
+ var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
23
+ _this.name = "ConflictException";
24
+ _this.$fault = "client";
25
+ Object.setPrototypeOf(_this, ConflictException.prototype);
26
+ return _this;
27
+ }
28
+ return ConflictException;
29
+ }(__BaseException));
30
+ export { ConflictException };
19
31
  var InternalServerException = (function (_super) {
20
32
  __extends(InternalServerException, _super);
21
33
  function InternalServerException(opts) {
@@ -76,22 +88,14 @@ export var AssociateResourceResponse;
76
88
  (function (AssociateResourceResponse) {
77
89
  AssociateResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
90
  })(AssociateResourceResponse || (AssociateResourceResponse = {}));
79
- var ConflictException = (function (_super) {
80
- __extends(ConflictException, _super);
81
- function ConflictException(opts) {
82
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
83
- _this.name = "ConflictException";
84
- _this.$fault = "client";
85
- Object.setPrototypeOf(_this, ConflictException.prototype);
86
- return _this;
87
- }
88
- return ConflictException;
89
- }(__BaseException));
90
- export { ConflictException };
91
91
  export var AttributeGroup;
92
92
  (function (AttributeGroup) {
93
93
  AttributeGroup.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
94
94
  })(AttributeGroup || (AttributeGroup = {}));
95
+ export var AttributeGroupDetails;
96
+ (function (AttributeGroupDetails) {
97
+ AttributeGroupDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
+ })(AttributeGroupDetails || (AttributeGroupDetails = {}));
95
99
  export var AttributeGroupSummary;
96
100
  (function (AttributeGroupSummary) {
97
101
  AttributeGroupSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -229,6 +233,14 @@ export var ListAttributeGroupsResponse;
229
233
  (function (ListAttributeGroupsResponse) {
230
234
  ListAttributeGroupsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
231
235
  })(ListAttributeGroupsResponse || (ListAttributeGroupsResponse = {}));
236
+ export var ListAttributeGroupsForApplicationRequest;
237
+ (function (ListAttributeGroupsForApplicationRequest) {
238
+ ListAttributeGroupsForApplicationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
239
+ })(ListAttributeGroupsForApplicationRequest || (ListAttributeGroupsForApplicationRequest = {}));
240
+ export var ListAttributeGroupsForApplicationResponse;
241
+ (function (ListAttributeGroupsForApplicationResponse) {
242
+ ListAttributeGroupsForApplicationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
243
+ })(ListAttributeGroupsForApplicationResponse || (ListAttributeGroupsForApplicationResponse = {}));
232
244
  export var ListTagsForResourceRequest;
233
245
  (function (ListTagsForResourceRequest) {
234
246
  ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -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";