@aws-sdk/client-serverlessapplicationrepository 3.183.0 → 3.186.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 +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/ServerlessApplicationRepository.js +65 -58
- package/dist-es/ServerlessApplicationRepositoryClient.js +28 -22
- package/dist-es/commands/CreateApplicationCommand.js +28 -21
- package/dist-es/commands/CreateApplicationVersionCommand.js +28 -21
- package/dist-es/commands/CreateCloudFormationChangeSetCommand.js +28 -21
- package/dist-es/commands/CreateCloudFormationTemplateCommand.js +28 -21
- package/dist-es/commands/DeleteApplicationCommand.js +29 -22
- package/dist-es/commands/GetApplicationCommand.js +28 -21
- package/dist-es/commands/GetApplicationPolicyCommand.js +28 -21
- package/dist-es/commands/GetCloudFormationTemplateCommand.js +28 -21
- package/dist-es/commands/ListApplicationDependenciesCommand.js +28 -21
- package/dist-es/commands/ListApplicationVersionsCommand.js +28 -21
- package/dist-es/commands/ListApplicationsCommand.js +28 -21
- package/dist-es/commands/PutApplicationPolicyCommand.js +28 -21
- package/dist-es/commands/UnshareApplicationCommand.js +29 -22
- package/dist-es/commands/UpdateApplicationCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ServerlessApplicationRepositoryServiceException.js +10 -5
- package/dist-es/models/models_0.js +115 -186
- package/dist-es/pagination/ListApplicationDependenciesPaginator.js +68 -25
- package/dist-es/pagination/ListApplicationVersionsPaginator.js +68 -25
- package/dist-es/pagination/ListApplicationsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +1704 -1291
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
package/dist-es/endpoints.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
|
|
3
|
+
var regionHash = {
|
|
3
4
|
"us-gov-east-1": {
|
|
4
5
|
variants: [
|
|
5
6
|
{
|
|
@@ -19,7 +20,7 @@ const regionHash = {
|
|
|
19
20
|
signingRegion: "us-gov-west-1",
|
|
20
21
|
},
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
var partitionHash = {
|
|
23
24
|
aws: {
|
|
24
25
|
regions: [
|
|
25
26
|
"af-south-1",
|
|
@@ -139,9 +140,8 @@ const partitionHash = {
|
|
|
139
140
|
],
|
|
140
141
|
},
|
|
141
142
|
};
|
|
142
|
-
export
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
});
|
|
143
|
+
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
144
|
+
return __generator(this, function (_a) {
|
|
145
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "serverlessrepo", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
146
|
+
});
|
|
147
|
+
}); };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var ServerlessApplicationRepositoryServiceException = (function (_super) {
|
|
4
|
+
__extends(ServerlessApplicationRepositoryServiceException, _super);
|
|
5
|
+
function ServerlessApplicationRepositoryServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, ServerlessApplicationRepositoryServiceException.prototype);
|
|
8
|
+
return _this;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
return ServerlessApplicationRepositoryServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { ServerlessApplicationRepositoryServiceException };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { ServerlessApplicationRepositoryServiceException as __BaseException } from "./ServerlessApplicationRepositoryServiceException";
|
|
2
3
|
export var Capability;
|
|
3
4
|
(function (Capability) {
|
|
@@ -6,201 +7,129 @@ export var Capability;
|
|
|
6
7
|
Capability["CAPABILITY_NAMED_IAM"] = "CAPABILITY_NAMED_IAM";
|
|
7
8
|
Capability["CAPABILITY_RESOURCE_POLICY"] = "CAPABILITY_RESOURCE_POLICY";
|
|
8
9
|
})(Capability || (Capability = {}));
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
this.ErrorCode = opts.ErrorCode;
|
|
20
|
-
this.Message = opts.Message;
|
|
10
|
+
var BadRequestException = (function (_super) {
|
|
11
|
+
__extends(BadRequestException, _super);
|
|
12
|
+
function BadRequestException(opts) {
|
|
13
|
+
var _this = _super.call(this, __assign({ name: "BadRequestException", $fault: "client" }, opts)) || this;
|
|
14
|
+
_this.name = "BadRequestException";
|
|
15
|
+
_this.$fault = "client";
|
|
16
|
+
Object.setPrototypeOf(_this, BadRequestException.prototype);
|
|
17
|
+
_this.ErrorCode = opts.ErrorCode;
|
|
18
|
+
_this.Message = opts.Message;
|
|
19
|
+
return _this;
|
|
21
20
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
21
|
+
return BadRequestException;
|
|
22
|
+
}(__BaseException));
|
|
23
|
+
export { BadRequestException };
|
|
24
|
+
var ConflictException = (function (_super) {
|
|
25
|
+
__extends(ConflictException, _super);
|
|
26
|
+
function ConflictException(opts) {
|
|
27
|
+
var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
|
|
28
|
+
_this.name = "ConflictException";
|
|
29
|
+
_this.$fault = "client";
|
|
30
|
+
Object.setPrototypeOf(_this, ConflictException.prototype);
|
|
31
|
+
_this.ErrorCode = opts.ErrorCode;
|
|
32
|
+
_this.Message = opts.Message;
|
|
33
|
+
return _this;
|
|
35
34
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
return ConflictException;
|
|
36
|
+
}(__BaseException));
|
|
37
|
+
export { ConflictException };
|
|
38
|
+
var ForbiddenException = (function (_super) {
|
|
39
|
+
__extends(ForbiddenException, _super);
|
|
40
|
+
function ForbiddenException(opts) {
|
|
41
|
+
var _this = _super.call(this, __assign({ name: "ForbiddenException", $fault: "client" }, opts)) || this;
|
|
42
|
+
_this.name = "ForbiddenException";
|
|
43
|
+
_this.$fault = "client";
|
|
44
|
+
Object.setPrototypeOf(_this, ForbiddenException.prototype);
|
|
45
|
+
_this.ErrorCode = opts.ErrorCode;
|
|
46
|
+
_this.Message = opts.Message;
|
|
47
|
+
return _this;
|
|
49
48
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
49
|
+
return ForbiddenException;
|
|
50
|
+
}(__BaseException));
|
|
51
|
+
export { ForbiddenException };
|
|
52
|
+
var InternalServerErrorException = (function (_super) {
|
|
53
|
+
__extends(InternalServerErrorException, _super);
|
|
54
|
+
function InternalServerErrorException(opts) {
|
|
55
|
+
var _this = _super.call(this, __assign({ name: "InternalServerErrorException", $fault: "server" }, opts)) || this;
|
|
56
|
+
_this.name = "InternalServerErrorException";
|
|
57
|
+
_this.$fault = "server";
|
|
58
|
+
Object.setPrototypeOf(_this, InternalServerErrorException.prototype);
|
|
59
|
+
_this.ErrorCode = opts.ErrorCode;
|
|
60
|
+
_this.Message = opts.Message;
|
|
61
|
+
return _this;
|
|
63
62
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
63
|
+
return InternalServerErrorException;
|
|
64
|
+
}(__BaseException));
|
|
65
|
+
export { InternalServerErrorException };
|
|
66
|
+
var TooManyRequestsException = (function (_super) {
|
|
67
|
+
__extends(TooManyRequestsException, _super);
|
|
68
|
+
function TooManyRequestsException(opts) {
|
|
69
|
+
var _this = _super.call(this, __assign({ name: "TooManyRequestsException", $fault: "client" }, opts)) || this;
|
|
70
|
+
_this.name = "TooManyRequestsException";
|
|
71
|
+
_this.$fault = "client";
|
|
72
|
+
Object.setPrototypeOf(_this, TooManyRequestsException.prototype);
|
|
73
|
+
_this.ErrorCode = opts.ErrorCode;
|
|
74
|
+
_this.Message = opts.Message;
|
|
75
|
+
return _this;
|
|
77
76
|
}
|
|
78
|
-
|
|
77
|
+
return TooManyRequestsException;
|
|
78
|
+
}(__BaseException));
|
|
79
|
+
export { TooManyRequestsException };
|
|
79
80
|
export var Status;
|
|
80
81
|
(function (Status) {
|
|
81
82
|
Status["ACTIVE"] = "ACTIVE";
|
|
82
83
|
Status["EXPIRED"] = "EXPIRED";
|
|
83
84
|
Status["PREPARING"] = "PREPARING";
|
|
84
85
|
})(Status || (Status = {}));
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
this.ErrorCode = opts.ErrorCode;
|
|
96
|
-
this.Message = opts.Message;
|
|
86
|
+
var NotFoundException = (function (_super) {
|
|
87
|
+
__extends(NotFoundException, _super);
|
|
88
|
+
function NotFoundException(opts) {
|
|
89
|
+
var _this = _super.call(this, __assign({ name: "NotFoundException", $fault: "client" }, opts)) || this;
|
|
90
|
+
_this.name = "NotFoundException";
|
|
91
|
+
_this.$fault = "client";
|
|
92
|
+
Object.setPrototypeOf(_this, NotFoundException.prototype);
|
|
93
|
+
_this.ErrorCode = opts.ErrorCode;
|
|
94
|
+
_this.Message = opts.Message;
|
|
95
|
+
return _this;
|
|
97
96
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
});
|
|
102
|
-
export
|
|
103
|
-
|
|
104
|
-
});
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
});
|
|
108
|
-
export
|
|
109
|
-
|
|
110
|
-
});
|
|
111
|
-
export
|
|
112
|
-
|
|
113
|
-
});
|
|
114
|
-
export
|
|
115
|
-
|
|
116
|
-
});
|
|
117
|
-
export
|
|
118
|
-
|
|
119
|
-
});
|
|
120
|
-
export
|
|
121
|
-
|
|
122
|
-
});
|
|
123
|
-
export
|
|
124
|
-
|
|
125
|
-
});
|
|
126
|
-
export
|
|
127
|
-
|
|
128
|
-
});
|
|
129
|
-
export
|
|
130
|
-
|
|
131
|
-
});
|
|
132
|
-
export
|
|
133
|
-
|
|
134
|
-
});
|
|
135
|
-
export
|
|
136
|
-
|
|
137
|
-
});
|
|
138
|
-
export const RollbackConfigurationFilterSensitiveLog = (obj) => ({
|
|
139
|
-
...obj,
|
|
140
|
-
});
|
|
141
|
-
export const CreateCloudFormationChangeSetRequestFilterSensitiveLog = (obj) => ({
|
|
142
|
-
...obj,
|
|
143
|
-
});
|
|
144
|
-
export const CreateCloudFormationChangeSetResponseFilterSensitiveLog = (obj) => ({
|
|
145
|
-
...obj,
|
|
146
|
-
});
|
|
147
|
-
export const CreateCloudFormationTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
148
|
-
...obj,
|
|
149
|
-
});
|
|
150
|
-
export const CreateCloudFormationTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
151
|
-
...obj,
|
|
152
|
-
});
|
|
153
|
-
export const DeleteApplicationRequestFilterSensitiveLog = (obj) => ({
|
|
154
|
-
...obj,
|
|
155
|
-
});
|
|
156
|
-
export const GetApplicationRequestFilterSensitiveLog = (obj) => ({
|
|
157
|
-
...obj,
|
|
158
|
-
});
|
|
159
|
-
export const GetApplicationResponseFilterSensitiveLog = (obj) => ({
|
|
160
|
-
...obj,
|
|
161
|
-
});
|
|
162
|
-
export const GetApplicationPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
163
|
-
...obj,
|
|
164
|
-
});
|
|
165
|
-
export const GetApplicationPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
166
|
-
...obj,
|
|
167
|
-
});
|
|
168
|
-
export const GetCloudFormationTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
169
|
-
...obj,
|
|
170
|
-
});
|
|
171
|
-
export const GetCloudFormationTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
172
|
-
...obj,
|
|
173
|
-
});
|
|
174
|
-
export const ListApplicationDependenciesRequestFilterSensitiveLog = (obj) => ({
|
|
175
|
-
...obj,
|
|
176
|
-
});
|
|
177
|
-
export const ListApplicationDependenciesResponseFilterSensitiveLog = (obj) => ({
|
|
178
|
-
...obj,
|
|
179
|
-
});
|
|
180
|
-
export const ListApplicationsRequestFilterSensitiveLog = (obj) => ({
|
|
181
|
-
...obj,
|
|
182
|
-
});
|
|
183
|
-
export const ListApplicationsResponseFilterSensitiveLog = (obj) => ({
|
|
184
|
-
...obj,
|
|
185
|
-
});
|
|
186
|
-
export const ListApplicationVersionsRequestFilterSensitiveLog = (obj) => ({
|
|
187
|
-
...obj,
|
|
188
|
-
});
|
|
189
|
-
export const ListApplicationVersionsResponseFilterSensitiveLog = (obj) => ({
|
|
190
|
-
...obj,
|
|
191
|
-
});
|
|
192
|
-
export const PutApplicationPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
193
|
-
...obj,
|
|
194
|
-
});
|
|
195
|
-
export const PutApplicationPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
196
|
-
...obj,
|
|
197
|
-
});
|
|
198
|
-
export const UnshareApplicationRequestFilterSensitiveLog = (obj) => ({
|
|
199
|
-
...obj,
|
|
200
|
-
});
|
|
201
|
-
export const UpdateApplicationRequestFilterSensitiveLog = (obj) => ({
|
|
202
|
-
...obj,
|
|
203
|
-
});
|
|
204
|
-
export const UpdateApplicationResponseFilterSensitiveLog = (obj) => ({
|
|
205
|
-
...obj,
|
|
206
|
-
});
|
|
97
|
+
return NotFoundException;
|
|
98
|
+
}(__BaseException));
|
|
99
|
+
export { NotFoundException };
|
|
100
|
+
export var ApplicationDependencySummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
101
|
+
export var ApplicationPolicyStatementFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
102
|
+
export var ApplicationSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
103
|
+
export var ParameterDefinitionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
104
|
+
export var ParameterValueFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
105
|
+
export var RollbackTriggerFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
|
+
export var TagFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
107
|
+
export var VersionSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
108
|
+
export var CreateApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
109
|
+
export var VersionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
110
|
+
export var CreateApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
111
|
+
export var CreateApplicationVersionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
112
|
+
export var CreateApplicationVersionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
113
|
+
export var RollbackConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
114
|
+
export var CreateCloudFormationChangeSetRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
115
|
+
export var CreateCloudFormationChangeSetResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
116
|
+
export var CreateCloudFormationTemplateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
117
|
+
export var CreateCloudFormationTemplateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
118
|
+
export var DeleteApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
119
|
+
export var GetApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
120
|
+
export var GetApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
121
|
+
export var GetApplicationPolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
122
|
+
export var GetApplicationPolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
123
|
+
export var GetCloudFormationTemplateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
124
|
+
export var GetCloudFormationTemplateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
125
|
+
export var ListApplicationDependenciesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
126
|
+
export var ListApplicationDependenciesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
127
|
+
export var ListApplicationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
128
|
+
export var ListApplicationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
129
|
+
export var ListApplicationVersionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
130
|
+
export var ListApplicationVersionsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
131
|
+
export var PutApplicationPolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
132
|
+
export var PutApplicationPolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
133
|
+
export var UnshareApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
134
|
+
export var UpdateApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
135
|
+
export var UpdateApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListApplicationDependenciesCommand, } from "../commands/ListApplicationDependenciesCommand";
|
|
2
3
|
import { ServerlessApplicationRepository } from "../ServerlessApplicationRepository";
|
|
3
4
|
import { ServerlessApplicationRepositoryClient } from "../ServerlessApplicationRepositoryClient";
|
|
4
|
-
|
|
5
|
-
|
|
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 ListApplicationDependenciesCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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.listApplicationDependencies.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxItems"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof ServerlessApplicationRepository) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ServerlessApplicationRepositoryClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected ServerlessApplicationRepository | ServerlessApplicationRepositoryClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListApplicationDependencies(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListApplicationDependencies_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["MaxItems"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof ServerlessApplicationRepository)) 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 ServerlessApplicationRepositoryClient)) 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 ServerlessApplicationRepository | ServerlessApplicationRepositoryClient");
|
|
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
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListApplicationVersionsCommand, } from "../commands/ListApplicationVersionsCommand";
|
|
2
3
|
import { ServerlessApplicationRepository } from "../ServerlessApplicationRepository";
|
|
3
4
|
import { ServerlessApplicationRepositoryClient } from "../ServerlessApplicationRepositoryClient";
|
|
4
|
-
|
|
5
|
-
|
|
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 ListApplicationVersionsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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.listApplicationVersions.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxItems"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof ServerlessApplicationRepository) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ServerlessApplicationRepositoryClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected ServerlessApplicationRepository | ServerlessApplicationRepositoryClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListApplicationVersions(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListApplicationVersions_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["MaxItems"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof ServerlessApplicationRepository)) 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 ServerlessApplicationRepositoryClient)) 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 ServerlessApplicationRepository | ServerlessApplicationRepositoryClient");
|
|
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
|
+
});
|
|
32
75
|
}
|