@aws-sdk/client-service-catalog-appregistry 3.185.0 → 3.188.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 (39) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/ServiceCatalogAppRegistry.js +90 -97
  3. package/dist-es/ServiceCatalogAppRegistryClient.js +22 -28
  4. package/dist-es/commands/AssociateAttributeGroupCommand.js +21 -28
  5. package/dist-es/commands/AssociateResourceCommand.js +21 -28
  6. package/dist-es/commands/CreateApplicationCommand.js +21 -28
  7. package/dist-es/commands/CreateAttributeGroupCommand.js +21 -28
  8. package/dist-es/commands/DeleteApplicationCommand.js +21 -28
  9. package/dist-es/commands/DeleteAttributeGroupCommand.js +21 -28
  10. package/dist-es/commands/DisassociateAttributeGroupCommand.js +21 -28
  11. package/dist-es/commands/DisassociateResourceCommand.js +21 -28
  12. package/dist-es/commands/GetApplicationCommand.js +21 -28
  13. package/dist-es/commands/GetAssociatedResourceCommand.js +21 -28
  14. package/dist-es/commands/GetAttributeGroupCommand.js +21 -28
  15. package/dist-es/commands/ListApplicationsCommand.js +21 -28
  16. package/dist-es/commands/ListAssociatedAttributeGroupsCommand.js +21 -28
  17. package/dist-es/commands/ListAssociatedResourcesCommand.js +21 -28
  18. package/dist-es/commands/ListAttributeGroupsCommand.js +21 -28
  19. package/dist-es/commands/ListAttributeGroupsForApplicationCommand.js +21 -28
  20. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  21. package/dist-es/commands/SyncResourceCommand.js +21 -28
  22. package/dist-es/commands/TagResourceCommand.js +21 -28
  23. package/dist-es/commands/UntagResourceCommand.js +21 -28
  24. package/dist-es/commands/UpdateApplicationCommand.js +21 -28
  25. package/dist-es/commands/UpdateAttributeGroupCommand.js +21 -28
  26. package/dist-es/endpoints.js +8 -8
  27. package/dist-es/models/ServiceCatalogAppRegistryServiceException.js +5 -10
  28. package/dist-es/models/models_0.js +217 -110
  29. package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
  30. package/dist-es/pagination/ListAssociatedAttributeGroupsPaginator.js +25 -68
  31. package/dist-es/pagination/ListAssociatedResourcesPaginator.js +25 -68
  32. package/dist-es/pagination/ListAttributeGroupsForApplicationPaginator.js +25 -68
  33. package/dist-es/pagination/ListAttributeGroupsPaginator.js +25 -68
  34. package/dist-es/protocols/Aws_restJson1.js +1464 -2149
  35. package/dist-es/runtimeConfig.browser.js +26 -12
  36. package/dist-es/runtimeConfig.js +30 -12
  37. package/dist-es/runtimeConfig.native.js +8 -5
  38. package/dist-es/runtimeConfig.shared.js +8 -11
  39. package/package.json +33 -33
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "ca-central-1": {
5
4
  variants: [
6
5
  {
@@ -42,7 +41,7 @@ var regionHash = {
42
41
  ],
43
42
  },
44
43
  };
45
- var partitionHash = {
44
+ const partitionHash = {
46
45
  aws: {
47
46
  regions: [
48
47
  "af-south-1",
@@ -167,8 +166,9 @@ var partitionHash = {
167
166
  ],
168
167
  },
169
168
  };
170
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
171
- return __generator(this, function (_a) {
172
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "servicecatalog", regionHash: regionHash, partitionHash: partitionHash }))];
173
- });
174
- }); };
169
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
170
+ ...options,
171
+ signingService: "servicecatalog",
172
+ regionHash,
173
+ partitionHash,
174
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var ServiceCatalogAppRegistryServiceException = (function (_super) {
4
- __extends(ServiceCatalogAppRegistryServiceException, _super);
5
- function ServiceCatalogAppRegistryServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, ServiceCatalogAppRegistryServiceException.prototype);
8
- return _this;
2
+ export class ServiceCatalogAppRegistryServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, ServiceCatalogAppRegistryServiceException.prototype);
9
6
  }
10
- return ServiceCatalogAppRegistryServiceException;
11
- }(__ServiceException));
12
- export { ServiceCatalogAppRegistryServiceException };
7
+ }
@@ -1,65 +1,64 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { ServiceCatalogAppRegistryServiceException as __BaseException } from "./ServiceCatalogAppRegistryServiceException";
3
- var ConflictException = (function (_super) {
4
- __extends(ConflictException, _super);
5
- function ConflictException(opts) {
6
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
7
- _this.name = "ConflictException";
8
- _this.$fault = "client";
9
- Object.setPrototypeOf(_this, ConflictException.prototype);
10
- return _this;
2
+ export class ConflictException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "ConflictException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "ConflictException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, ConflictException.prototype);
11
12
  }
12
- return ConflictException;
13
- }(__BaseException));
14
- export { ConflictException };
15
- var InternalServerException = (function (_super) {
16
- __extends(InternalServerException, _super);
17
- function InternalServerException(opts) {
18
- var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
19
- _this.name = "InternalServerException";
20
- _this.$fault = "server";
21
- Object.setPrototypeOf(_this, InternalServerException.prototype);
22
- return _this;
13
+ }
14
+ export class InternalServerException extends __BaseException {
15
+ constructor(opts) {
16
+ super({
17
+ name: "InternalServerException",
18
+ $fault: "server",
19
+ ...opts,
20
+ });
21
+ this.name = "InternalServerException";
22
+ this.$fault = "server";
23
+ Object.setPrototypeOf(this, InternalServerException.prototype);
23
24
  }
24
- return InternalServerException;
25
- }(__BaseException));
26
- export { InternalServerException };
27
- var ResourceNotFoundException = (function (_super) {
28
- __extends(ResourceNotFoundException, _super);
29
- function ResourceNotFoundException(opts) {
30
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
31
- _this.name = "ResourceNotFoundException";
32
- _this.$fault = "client";
33
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
34
- return _this;
25
+ }
26
+ export class ResourceNotFoundException extends __BaseException {
27
+ constructor(opts) {
28
+ super({
29
+ name: "ResourceNotFoundException",
30
+ $fault: "client",
31
+ ...opts,
32
+ });
33
+ this.name = "ResourceNotFoundException";
34
+ this.$fault = "client";
35
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
35
36
  }
36
- return ResourceNotFoundException;
37
- }(__BaseException));
38
- export { ResourceNotFoundException };
39
- var ServiceQuotaExceededException = (function (_super) {
40
- __extends(ServiceQuotaExceededException, _super);
41
- function ServiceQuotaExceededException(opts) {
42
- var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
43
- _this.name = "ServiceQuotaExceededException";
44
- _this.$fault = "client";
45
- Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
46
- return _this;
37
+ }
38
+ export class ServiceQuotaExceededException extends __BaseException {
39
+ constructor(opts) {
40
+ super({
41
+ name: "ServiceQuotaExceededException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ this.name = "ServiceQuotaExceededException";
46
+ this.$fault = "client";
47
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
47
48
  }
48
- return ServiceQuotaExceededException;
49
- }(__BaseException));
50
- export { ServiceQuotaExceededException };
51
- var ValidationException = (function (_super) {
52
- __extends(ValidationException, _super);
53
- function ValidationException(opts) {
54
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
55
- _this.name = "ValidationException";
56
- _this.$fault = "client";
57
- Object.setPrototypeOf(_this, ValidationException.prototype);
58
- return _this;
49
+ }
50
+ export class ValidationException extends __BaseException {
51
+ constructor(opts) {
52
+ super({
53
+ name: "ValidationException",
54
+ $fault: "client",
55
+ ...opts,
56
+ });
57
+ this.name = "ValidationException";
58
+ this.$fault = "client";
59
+ Object.setPrototypeOf(this, ValidationException.prototype);
59
60
  }
60
- return ValidationException;
61
- }(__BaseException));
62
- export { ValidationException };
61
+ }
63
62
  export var ResourceType;
64
63
  (function (ResourceType) {
65
64
  ResourceType["CFN_STACK"] = "CFN_STACK";
@@ -78,57 +77,165 @@ export var SyncAction;
78
77
  SyncAction["NO_ACTION"] = "NO_ACTION";
79
78
  SyncAction["START_SYNC"] = "START_SYNC";
80
79
  })(SyncAction || (SyncAction = {}));
81
- export var ApplicationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
- export var ApplicationSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
83
- export var AssociateAttributeGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
84
- export var AssociateAttributeGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
- export var AssociateResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
86
- export var AssociateResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
- export var AttributeGroupFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
88
- export var AttributeGroupDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
89
- export var AttributeGroupSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
90
- export var CreateApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
91
- export var CreateApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
92
- export var CreateAttributeGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
93
- export var CreateAttributeGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
94
- export var DeleteApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
95
- export var DeleteApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
96
- export var DeleteAttributeGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
- export var DeleteAttributeGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
- export var DisassociateAttributeGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
99
- export var DisassociateAttributeGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
100
- export var DisassociateResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
101
- export var DisassociateResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
- export var GetApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
103
- export var ResourceGroupFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
104
- export var IntegrationsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
105
- export var GetApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
106
- export var GetAssociatedResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
107
- export var ResourceIntegrationsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
108
- export var ResourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
109
- export var GetAssociatedResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
110
- export var GetAttributeGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
111
- export var GetAttributeGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
112
- export var ListApplicationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
113
- export var ListApplicationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
114
- export var ListAssociatedAttributeGroupsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
115
- export var ListAssociatedAttributeGroupsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
116
- export var ListAssociatedResourcesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
117
- export var ResourceInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
118
- export var ListAssociatedResourcesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
- export var ListAttributeGroupsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
120
- export var ListAttributeGroupsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
121
- export var ListAttributeGroupsForApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
122
- export var ListAttributeGroupsForApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
123
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
124
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
125
- export var SyncResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
126
- export var SyncResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
127
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
128
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
129
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
130
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
- export var UpdateApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
132
- export var UpdateApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
- export var UpdateAttributeGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
134
- export var UpdateAttributeGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
80
+ export const ApplicationFilterSensitiveLog = (obj) => ({
81
+ ...obj,
82
+ });
83
+ export const ApplicationSummaryFilterSensitiveLog = (obj) => ({
84
+ ...obj,
85
+ });
86
+ export const AssociateAttributeGroupRequestFilterSensitiveLog = (obj) => ({
87
+ ...obj,
88
+ });
89
+ export const AssociateAttributeGroupResponseFilterSensitiveLog = (obj) => ({
90
+ ...obj,
91
+ });
92
+ export const AssociateResourceRequestFilterSensitiveLog = (obj) => ({
93
+ ...obj,
94
+ });
95
+ export const AssociateResourceResponseFilterSensitiveLog = (obj) => ({
96
+ ...obj,
97
+ });
98
+ export const AttributeGroupFilterSensitiveLog = (obj) => ({
99
+ ...obj,
100
+ });
101
+ export const AttributeGroupDetailsFilterSensitiveLog = (obj) => ({
102
+ ...obj,
103
+ });
104
+ export const AttributeGroupSummaryFilterSensitiveLog = (obj) => ({
105
+ ...obj,
106
+ });
107
+ export const CreateApplicationRequestFilterSensitiveLog = (obj) => ({
108
+ ...obj,
109
+ });
110
+ export const CreateApplicationResponseFilterSensitiveLog = (obj) => ({
111
+ ...obj,
112
+ });
113
+ export const CreateAttributeGroupRequestFilterSensitiveLog = (obj) => ({
114
+ ...obj,
115
+ });
116
+ export const CreateAttributeGroupResponseFilterSensitiveLog = (obj) => ({
117
+ ...obj,
118
+ });
119
+ export const DeleteApplicationRequestFilterSensitiveLog = (obj) => ({
120
+ ...obj,
121
+ });
122
+ export const DeleteApplicationResponseFilterSensitiveLog = (obj) => ({
123
+ ...obj,
124
+ });
125
+ export const DeleteAttributeGroupRequestFilterSensitiveLog = (obj) => ({
126
+ ...obj,
127
+ });
128
+ export const DeleteAttributeGroupResponseFilterSensitiveLog = (obj) => ({
129
+ ...obj,
130
+ });
131
+ export const DisassociateAttributeGroupRequestFilterSensitiveLog = (obj) => ({
132
+ ...obj,
133
+ });
134
+ export const DisassociateAttributeGroupResponseFilterSensitiveLog = (obj) => ({
135
+ ...obj,
136
+ });
137
+ export const DisassociateResourceRequestFilterSensitiveLog = (obj) => ({
138
+ ...obj,
139
+ });
140
+ export const DisassociateResourceResponseFilterSensitiveLog = (obj) => ({
141
+ ...obj,
142
+ });
143
+ export const GetApplicationRequestFilterSensitiveLog = (obj) => ({
144
+ ...obj,
145
+ });
146
+ export const ResourceGroupFilterSensitiveLog = (obj) => ({
147
+ ...obj,
148
+ });
149
+ export const IntegrationsFilterSensitiveLog = (obj) => ({
150
+ ...obj,
151
+ });
152
+ export const GetApplicationResponseFilterSensitiveLog = (obj) => ({
153
+ ...obj,
154
+ });
155
+ export const GetAssociatedResourceRequestFilterSensitiveLog = (obj) => ({
156
+ ...obj,
157
+ });
158
+ export const ResourceIntegrationsFilterSensitiveLog = (obj) => ({
159
+ ...obj,
160
+ });
161
+ export const ResourceFilterSensitiveLog = (obj) => ({
162
+ ...obj,
163
+ });
164
+ export const GetAssociatedResourceResponseFilterSensitiveLog = (obj) => ({
165
+ ...obj,
166
+ });
167
+ export const GetAttributeGroupRequestFilterSensitiveLog = (obj) => ({
168
+ ...obj,
169
+ });
170
+ export const GetAttributeGroupResponseFilterSensitiveLog = (obj) => ({
171
+ ...obj,
172
+ });
173
+ export const ListApplicationsRequestFilterSensitiveLog = (obj) => ({
174
+ ...obj,
175
+ });
176
+ export const ListApplicationsResponseFilterSensitiveLog = (obj) => ({
177
+ ...obj,
178
+ });
179
+ export const ListAssociatedAttributeGroupsRequestFilterSensitiveLog = (obj) => ({
180
+ ...obj,
181
+ });
182
+ export const ListAssociatedAttributeGroupsResponseFilterSensitiveLog = (obj) => ({
183
+ ...obj,
184
+ });
185
+ export const ListAssociatedResourcesRequestFilterSensitiveLog = (obj) => ({
186
+ ...obj,
187
+ });
188
+ export const ResourceInfoFilterSensitiveLog = (obj) => ({
189
+ ...obj,
190
+ });
191
+ export const ListAssociatedResourcesResponseFilterSensitiveLog = (obj) => ({
192
+ ...obj,
193
+ });
194
+ export const ListAttributeGroupsRequestFilterSensitiveLog = (obj) => ({
195
+ ...obj,
196
+ });
197
+ export const ListAttributeGroupsResponseFilterSensitiveLog = (obj) => ({
198
+ ...obj,
199
+ });
200
+ export const ListAttributeGroupsForApplicationRequestFilterSensitiveLog = (obj) => ({
201
+ ...obj,
202
+ });
203
+ export const ListAttributeGroupsForApplicationResponseFilterSensitiveLog = (obj) => ({
204
+ ...obj,
205
+ });
206
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
207
+ ...obj,
208
+ });
209
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
210
+ ...obj,
211
+ });
212
+ export const SyncResourceRequestFilterSensitiveLog = (obj) => ({
213
+ ...obj,
214
+ });
215
+ export const SyncResourceResponseFilterSensitiveLog = (obj) => ({
216
+ ...obj,
217
+ });
218
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
219
+ ...obj,
220
+ });
221
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
222
+ ...obj,
223
+ });
224
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
225
+ ...obj,
226
+ });
227
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
228
+ ...obj,
229
+ });
230
+ export const UpdateApplicationRequestFilterSensitiveLog = (obj) => ({
231
+ ...obj,
232
+ });
233
+ export const UpdateApplicationResponseFilterSensitiveLog = (obj) => ({
234
+ ...obj,
235
+ });
236
+ export const UpdateAttributeGroupRequestFilterSensitiveLog = (obj) => ({
237
+ ...obj,
238
+ });
239
+ export const UpdateAttributeGroupResponseFilterSensitiveLog = (obj) => ({
240
+ ...obj,
241
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
3
2
  import { ServiceCatalogAppRegistry } from "../ServiceCatalogAppRegistry";
4
3
  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 ListApplicationsCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListApplicationsCommand(input), ...args);
18
6
  };
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.listApplications.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listApplications(input, ...args);
32
9
  };
33
- export function paginateListApplications(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListApplications(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ input["maxResults"] = config.pageSize;
17
+ if (config.client instanceof ServiceCatalogAppRegistry) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof ServiceCatalogAppRegistryClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListApplications_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
- });
31
+ return undefined;
75
32
  }
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListAssociatedAttributeGroupsCommand, } from "../commands/ListAssociatedAttributeGroupsCommand";
3
2
  import { ServiceCatalogAppRegistry } from "../ServiceCatalogAppRegistry";
4
3
  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 ListAssociatedAttributeGroupsCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListAssociatedAttributeGroupsCommand(input), ...args);
18
6
  };
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.listAssociatedAttributeGroups.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listAssociatedAttributeGroups(input, ...args);
32
9
  };
33
- export function paginateListAssociatedAttributeGroups(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListAssociatedAttributeGroups(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ input["maxResults"] = config.pageSize;
17
+ if (config.client instanceof ServiceCatalogAppRegistry) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof ServiceCatalogAppRegistryClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListAssociatedAttributeGroups_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
- });
31
+ return undefined;
75
32
  }