@aws-sdk/client-appconfig 3.121.0 → 3.129.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.
- package/CHANGELOG.md +30 -0
- package/README.md +24 -23
- package/dist-cjs/AppConfig.js +150 -0
- package/dist-cjs/commands/CreateExtensionAssociationCommand.js +36 -0
- package/dist-cjs/commands/CreateExtensionCommand.js +36 -0
- package/dist-cjs/commands/DeleteExtensionAssociationCommand.js +36 -0
- package/dist-cjs/commands/DeleteExtensionCommand.js +36 -0
- package/dist-cjs/commands/GetExtensionAssociationCommand.js +36 -0
- package/dist-cjs/commands/GetExtensionCommand.js +36 -0
- package/dist-cjs/commands/ListExtensionAssociationsCommand.js +36 -0
- package/dist-cjs/commands/ListExtensionsCommand.js +36 -0
- package/dist-cjs/commands/UpdateExtensionAssociationCommand.js +36 -0
- package/dist-cjs/commands/UpdateExtensionCommand.js +36 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/endpoints.js +19 -2
- package/dist-cjs/models/models_0.js +146 -16
- package/dist-cjs/pagination/ListExtensionAssociationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListExtensionsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1162 -115
- package/dist-es/AppConfig.js +150 -0
- package/dist-es/commands/CreateExtensionAssociationCommand.js +39 -0
- package/dist-es/commands/CreateExtensionCommand.js +39 -0
- package/dist-es/commands/DeleteExtensionAssociationCommand.js +39 -0
- package/dist-es/commands/DeleteExtensionCommand.js +39 -0
- package/dist-es/commands/GetExtensionAssociationCommand.js +39 -0
- package/dist-es/commands/GetExtensionCommand.js +39 -0
- package/dist-es/commands/ListExtensionAssociationsCommand.js +39 -0
- package/dist-es/commands/ListExtensionsCommand.js +39 -0
- package/dist-es/commands/UpdateExtensionAssociationCommand.js +39 -0
- package/dist-es/commands/UpdateExtensionCommand.js +39 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/endpoints.js +19 -2
- package/dist-es/models/models_0.js +103 -13
- package/dist-es/pagination/ListExtensionAssociationsPaginator.js +75 -0
- package/dist-es/pagination/ListExtensionsPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1507 -253
- package/dist-types/AppConfig.d.ts +159 -51
- package/dist-types/AppConfigClient.d.ts +36 -25
- package/dist-types/commands/CreateApplicationCommand.d.ts +5 -5
- package/dist-types/commands/CreateConfigurationProfileCommand.d.ts +5 -6
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +1 -1
- package/dist-types/commands/CreateExtensionAssociationCommand.d.ts +47 -0
- package/dist-types/commands/CreateExtensionCommand.d.ts +43 -0
- package/dist-types/commands/CreateHostedConfigurationVersionCommand.d.ts +2 -1
- package/dist-types/commands/DeleteExtensionAssociationCommand.d.ts +36 -0
- package/dist-types/commands/DeleteExtensionCommand.d.ts +36 -0
- package/dist-types/commands/GetConfigurationCommand.d.ts +6 -5
- package/dist-types/commands/GetEnvironmentCommand.d.ts +6 -5
- package/dist-types/commands/GetExtensionAssociationCommand.d.ts +38 -0
- package/dist-types/commands/GetExtensionCommand.d.ts +35 -0
- package/dist-types/commands/ListExtensionAssociationsCommand.d.ts +38 -0
- package/dist-types/commands/ListExtensionsCommand.d.ts +38 -0
- package/dist-types/commands/TagResourceCommand.d.ts +3 -5
- package/dist-types/commands/UpdateExtensionAssociationCommand.d.ts +38 -0
- package/dist-types/commands/UpdateExtensionCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +678 -98
- package/dist-types/pagination/ListExtensionAssociationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExtensionsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +30 -0
- package/dist-types/ts3.4/AppConfig.d.ts +50 -0
- package/dist-types/ts3.4/AppConfigClient.d.ts +12 -2
- package/dist-types/ts3.4/commands/CreateExtensionAssociationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateExtensionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteExtensionAssociationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteExtensionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetExtensionAssociationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetExtensionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExtensionAssociationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExtensionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateExtensionAssociationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateExtensionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +298 -9
- package/dist-types/ts3.4/pagination/ListExtensionAssociationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListExtensionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +30 -0
- package/package.json +26 -26
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
-
var regionHash = {
|
|
3
|
+
var regionHash = {
|
|
4
|
+
"us-gov-east-1": {
|
|
5
|
+
variants: [
|
|
6
|
+
{
|
|
7
|
+
hostname: "appconfig.us-gov-east-1.amazonaws.com",
|
|
8
|
+
tags: ["fips"],
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
},
|
|
12
|
+
"us-gov-west-1": {
|
|
13
|
+
variants: [
|
|
14
|
+
{
|
|
15
|
+
hostname: "appconfig.us-gov-west-1.amazonaws.com",
|
|
16
|
+
tags: ["fips"],
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
};
|
|
4
21
|
var partitionHash = {
|
|
5
22
|
aws: {
|
|
6
23
|
regions: [
|
|
@@ -98,7 +115,7 @@ var partitionHash = {
|
|
|
98
115
|
],
|
|
99
116
|
},
|
|
100
117
|
"aws-us-gov": {
|
|
101
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
118
|
+
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
102
119
|
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
103
120
|
variants: [
|
|
104
121
|
{
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AppConfigServiceException as __BaseException } from "./AppConfigServiceException";
|
|
4
|
+
export var Action;
|
|
5
|
+
(function (Action) {
|
|
6
|
+
Action.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
7
|
+
})(Action || (Action = {}));
|
|
8
|
+
export var ActionInvocation;
|
|
9
|
+
(function (ActionInvocation) {
|
|
10
|
+
ActionInvocation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
11
|
+
})(ActionInvocation || (ActionInvocation = {}));
|
|
12
|
+
export var ActionPoint;
|
|
13
|
+
(function (ActionPoint) {
|
|
14
|
+
ActionPoint["ON_DEPLOYMENT_BAKING"] = "ON_DEPLOYMENT_BAKING";
|
|
15
|
+
ActionPoint["ON_DEPLOYMENT_COMPLETE"] = "ON_DEPLOYMENT_COMPLETE";
|
|
16
|
+
ActionPoint["ON_DEPLOYMENT_ROLLED_BACK"] = "ON_DEPLOYMENT_ROLLED_BACK";
|
|
17
|
+
ActionPoint["ON_DEPLOYMENT_START"] = "ON_DEPLOYMENT_START";
|
|
18
|
+
ActionPoint["ON_DEPLOYMENT_STEP"] = "ON_DEPLOYMENT_STEP";
|
|
19
|
+
ActionPoint["PRE_CREATE_HOSTED_CONFIGURATION_VERSION"] = "PRE_CREATE_HOSTED_CONFIGURATION_VERSION";
|
|
20
|
+
ActionPoint["PRE_START_DEPLOYMENT"] = "PRE_START_DEPLOYMENT";
|
|
21
|
+
})(ActionPoint || (ActionPoint = {}));
|
|
4
22
|
export var Application;
|
|
5
23
|
(function (Application) {
|
|
6
24
|
Application.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -145,6 +163,39 @@ var ConflictException = (function (_super) {
|
|
|
145
163
|
return ConflictException;
|
|
146
164
|
}(__BaseException));
|
|
147
165
|
export { ConflictException };
|
|
166
|
+
export var Parameter;
|
|
167
|
+
(function (Parameter) {
|
|
168
|
+
Parameter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
169
|
+
})(Parameter || (Parameter = {}));
|
|
170
|
+
export var CreateExtensionRequest;
|
|
171
|
+
(function (CreateExtensionRequest) {
|
|
172
|
+
CreateExtensionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
173
|
+
})(CreateExtensionRequest || (CreateExtensionRequest = {}));
|
|
174
|
+
export var Extension;
|
|
175
|
+
(function (Extension) {
|
|
176
|
+
Extension.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
177
|
+
})(Extension || (Extension = {}));
|
|
178
|
+
var ServiceQuotaExceededException = (function (_super) {
|
|
179
|
+
__extends(ServiceQuotaExceededException, _super);
|
|
180
|
+
function ServiceQuotaExceededException(opts) {
|
|
181
|
+
var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
|
|
182
|
+
_this.name = "ServiceQuotaExceededException";
|
|
183
|
+
_this.$fault = "client";
|
|
184
|
+
Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
|
|
185
|
+
_this.Message = opts.Message;
|
|
186
|
+
return _this;
|
|
187
|
+
}
|
|
188
|
+
return ServiceQuotaExceededException;
|
|
189
|
+
}(__BaseException));
|
|
190
|
+
export { ServiceQuotaExceededException };
|
|
191
|
+
export var CreateExtensionAssociationRequest;
|
|
192
|
+
(function (CreateExtensionAssociationRequest) {
|
|
193
|
+
CreateExtensionAssociationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
194
|
+
})(CreateExtensionAssociationRequest || (CreateExtensionAssociationRequest = {}));
|
|
195
|
+
export var ExtensionAssociation;
|
|
196
|
+
(function (ExtensionAssociation) {
|
|
197
|
+
ExtensionAssociation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
198
|
+
})(ExtensionAssociation || (ExtensionAssociation = {}));
|
|
148
199
|
export var CreateHostedConfigurationVersionRequest;
|
|
149
200
|
(function (CreateHostedConfigurationVersionRequest) {
|
|
150
201
|
CreateHostedConfigurationVersionRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Content && { Content: SENSITIVE_STRING }))); };
|
|
@@ -173,19 +224,6 @@ var PayloadTooLargeException = (function (_super) {
|
|
|
173
224
|
return PayloadTooLargeException;
|
|
174
225
|
}(__BaseException));
|
|
175
226
|
export { PayloadTooLargeException };
|
|
176
|
-
var ServiceQuotaExceededException = (function (_super) {
|
|
177
|
-
__extends(ServiceQuotaExceededException, _super);
|
|
178
|
-
function ServiceQuotaExceededException(opts) {
|
|
179
|
-
var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
|
|
180
|
-
_this.name = "ServiceQuotaExceededException";
|
|
181
|
-
_this.$fault = "client";
|
|
182
|
-
Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
|
|
183
|
-
_this.Message = opts.Message;
|
|
184
|
-
return _this;
|
|
185
|
-
}
|
|
186
|
-
return ServiceQuotaExceededException;
|
|
187
|
-
}(__BaseException));
|
|
188
|
-
export { ServiceQuotaExceededException };
|
|
189
227
|
export var DeleteApplicationRequest;
|
|
190
228
|
(function (DeleteApplicationRequest) {
|
|
191
229
|
DeleteApplicationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -202,6 +240,14 @@ export var DeleteEnvironmentRequest;
|
|
|
202
240
|
(function (DeleteEnvironmentRequest) {
|
|
203
241
|
DeleteEnvironmentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
204
242
|
})(DeleteEnvironmentRequest || (DeleteEnvironmentRequest = {}));
|
|
243
|
+
export var DeleteExtensionRequest;
|
|
244
|
+
(function (DeleteExtensionRequest) {
|
|
245
|
+
DeleteExtensionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
246
|
+
})(DeleteExtensionRequest || (DeleteExtensionRequest = {}));
|
|
247
|
+
export var DeleteExtensionAssociationRequest;
|
|
248
|
+
(function (DeleteExtensionAssociationRequest) {
|
|
249
|
+
DeleteExtensionAssociationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
250
|
+
})(DeleteExtensionAssociationRequest || (DeleteExtensionAssociationRequest = {}));
|
|
205
251
|
export var DeleteHostedConfigurationVersionRequest;
|
|
206
252
|
(function (DeleteHostedConfigurationVersionRequest) {
|
|
207
253
|
DeleteHostedConfigurationVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -222,6 +268,10 @@ export var GetConfigurationProfileRequest;
|
|
|
222
268
|
(function (GetConfigurationProfileRequest) {
|
|
223
269
|
GetConfigurationProfileRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
224
270
|
})(GetConfigurationProfileRequest || (GetConfigurationProfileRequest = {}));
|
|
271
|
+
export var AppliedExtension;
|
|
272
|
+
(function (AppliedExtension) {
|
|
273
|
+
AppliedExtension.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
274
|
+
})(AppliedExtension || (AppliedExtension = {}));
|
|
225
275
|
export var DeploymentEventType;
|
|
226
276
|
(function (DeploymentEventType) {
|
|
227
277
|
DeploymentEventType["BAKE_TIME_STARTED"] = "BAKE_TIME_STARTED";
|
|
@@ -267,6 +317,14 @@ export var GetEnvironmentRequest;
|
|
|
267
317
|
(function (GetEnvironmentRequest) {
|
|
268
318
|
GetEnvironmentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
269
319
|
})(GetEnvironmentRequest || (GetEnvironmentRequest = {}));
|
|
320
|
+
export var GetExtensionRequest;
|
|
321
|
+
(function (GetExtensionRequest) {
|
|
322
|
+
GetExtensionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
323
|
+
})(GetExtensionRequest || (GetExtensionRequest = {}));
|
|
324
|
+
export var GetExtensionAssociationRequest;
|
|
325
|
+
(function (GetExtensionAssociationRequest) {
|
|
326
|
+
GetExtensionAssociationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
327
|
+
})(GetExtensionAssociationRequest || (GetExtensionAssociationRequest = {}));
|
|
270
328
|
export var GetHostedConfigurationVersionRequest;
|
|
271
329
|
(function (GetHostedConfigurationVersionRequest) {
|
|
272
330
|
GetHostedConfigurationVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -319,6 +377,30 @@ export var ListEnvironmentsRequest;
|
|
|
319
377
|
(function (ListEnvironmentsRequest) {
|
|
320
378
|
ListEnvironmentsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
321
379
|
})(ListEnvironmentsRequest || (ListEnvironmentsRequest = {}));
|
|
380
|
+
export var ExtensionAssociationSummary;
|
|
381
|
+
(function (ExtensionAssociationSummary) {
|
|
382
|
+
ExtensionAssociationSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
383
|
+
})(ExtensionAssociationSummary || (ExtensionAssociationSummary = {}));
|
|
384
|
+
export var ExtensionAssociations;
|
|
385
|
+
(function (ExtensionAssociations) {
|
|
386
|
+
ExtensionAssociations.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
387
|
+
})(ExtensionAssociations || (ExtensionAssociations = {}));
|
|
388
|
+
export var ListExtensionAssociationsRequest;
|
|
389
|
+
(function (ListExtensionAssociationsRequest) {
|
|
390
|
+
ListExtensionAssociationsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
391
|
+
})(ListExtensionAssociationsRequest || (ListExtensionAssociationsRequest = {}));
|
|
392
|
+
export var ExtensionSummary;
|
|
393
|
+
(function (ExtensionSummary) {
|
|
394
|
+
ExtensionSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
395
|
+
})(ExtensionSummary || (ExtensionSummary = {}));
|
|
396
|
+
export var Extensions;
|
|
397
|
+
(function (Extensions) {
|
|
398
|
+
Extensions.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
399
|
+
})(Extensions || (Extensions = {}));
|
|
400
|
+
export var ListExtensionsRequest;
|
|
401
|
+
(function (ListExtensionsRequest) {
|
|
402
|
+
ListExtensionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
403
|
+
})(ListExtensionsRequest || (ListExtensionsRequest = {}));
|
|
322
404
|
export var HostedConfigurationVersionSummary;
|
|
323
405
|
(function (HostedConfigurationVersionSummary) {
|
|
324
406
|
HostedConfigurationVersionSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -371,6 +453,14 @@ export var UpdateEnvironmentRequest;
|
|
|
371
453
|
(function (UpdateEnvironmentRequest) {
|
|
372
454
|
UpdateEnvironmentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
373
455
|
})(UpdateEnvironmentRequest || (UpdateEnvironmentRequest = {}));
|
|
456
|
+
export var UpdateExtensionRequest;
|
|
457
|
+
(function (UpdateExtensionRequest) {
|
|
458
|
+
UpdateExtensionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
459
|
+
})(UpdateExtensionRequest || (UpdateExtensionRequest = {}));
|
|
460
|
+
export var UpdateExtensionAssociationRequest;
|
|
461
|
+
(function (UpdateExtensionAssociationRequest) {
|
|
462
|
+
UpdateExtensionAssociationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
463
|
+
})(UpdateExtensionAssociationRequest || (UpdateExtensionAssociationRequest = {}));
|
|
374
464
|
export var ValidateConfigurationRequest;
|
|
375
465
|
(function (ValidateConfigurationRequest) {
|
|
376
466
|
ValidateConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { AppConfig } from "../AppConfig";
|
|
3
|
+
import { AppConfigClient } from "../AppConfigClient";
|
|
4
|
+
import { ListExtensionAssociationsCommand, } from "../commands/ListExtensionAssociationsCommand";
|
|
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 ListExtensionAssociationsCommand(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.listExtensionAssociations.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListExtensionAssociations(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 paginateListExtensionAssociations_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 AppConfig)) 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 AppConfigClient)) 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 AppConfig | AppConfigClient");
|
|
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
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { AppConfig } from "../AppConfig";
|
|
3
|
+
import { AppConfigClient } from "../AppConfigClient";
|
|
4
|
+
import { ListExtensionsCommand, } from "../commands/ListExtensionsCommand";
|
|
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 ListExtensionsCommand(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.listExtensions.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListExtensions(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 paginateListExtensions_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 AppConfig)) 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 AppConfigClient)) 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 AppConfig | AppConfigClient");
|
|
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
|
+
}
|
|
@@ -4,4 +4,6 @@ export * from "./ListConfigurationProfilesPaginator";
|
|
|
4
4
|
export * from "./ListDeploymentStrategiesPaginator";
|
|
5
5
|
export * from "./ListDeploymentsPaginator";
|
|
6
6
|
export * from "./ListEnvironmentsPaginator";
|
|
7
|
+
export * from "./ListExtensionAssociationsPaginator";
|
|
8
|
+
export * from "./ListExtensionsPaginator";
|
|
7
9
|
export * from "./ListHostedConfigurationVersionsPaginator";
|