@aws-sdk/client-mediastore 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/MediaStore.js +93 -86
- package/dist-es/MediaStoreClient.js +28 -22
- package/dist-es/commands/CreateContainerCommand.js +28 -21
- package/dist-es/commands/DeleteContainerCommand.js +28 -21
- package/dist-es/commands/DeleteContainerPolicyCommand.js +28 -21
- package/dist-es/commands/DeleteCorsPolicyCommand.js +28 -21
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +28 -21
- package/dist-es/commands/DeleteMetricPolicyCommand.js +28 -21
- package/dist-es/commands/DescribeContainerCommand.js +28 -21
- package/dist-es/commands/GetContainerPolicyCommand.js +28 -21
- package/dist-es/commands/GetCorsPolicyCommand.js +28 -21
- package/dist-es/commands/GetLifecyclePolicyCommand.js +28 -21
- package/dist-es/commands/GetMetricPolicyCommand.js +28 -21
- package/dist-es/commands/ListContainersCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/PutContainerPolicyCommand.js +28 -21
- package/dist-es/commands/PutCorsPolicyCommand.js +28 -21
- package/dist-es/commands/PutLifecyclePolicyCommand.js +28 -21
- package/dist-es/commands/PutMetricPolicyCommand.js +28 -21
- package/dist-es/commands/StartAccessLoggingCommand.js +28 -21
- package/dist-es/commands/StopAccessLoggingCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MediaStoreServiceException.js +10 -5
- package/dist-es/models/models_0.js +120 -213
- package/dist-es/pagination/ListContainersPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +1757 -1331
- 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 +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { MediaStoreServiceException as __BaseException } from "./MediaStoreServiceException";
|
|
2
3
|
export var MethodName;
|
|
3
4
|
(function (MethodName) {
|
|
@@ -12,227 +13,133 @@ export var ContainerStatus;
|
|
|
12
13
|
ContainerStatus["CREATING"] = "CREATING";
|
|
13
14
|
ContainerStatus["DELETING"] = "DELETING";
|
|
14
15
|
})(ContainerStatus || (ContainerStatus = {}));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Object.setPrototypeOf(this, ContainerInUseException.prototype);
|
|
25
|
-
this.Message = opts.Message;
|
|
16
|
+
var ContainerInUseException = (function (_super) {
|
|
17
|
+
__extends(ContainerInUseException, _super);
|
|
18
|
+
function ContainerInUseException(opts) {
|
|
19
|
+
var _this = _super.call(this, __assign({ name: "ContainerInUseException", $fault: "client" }, opts)) || this;
|
|
20
|
+
_this.name = "ContainerInUseException";
|
|
21
|
+
_this.$fault = "client";
|
|
22
|
+
Object.setPrototypeOf(_this, ContainerInUseException.prototype);
|
|
23
|
+
_this.Message = opts.Message;
|
|
24
|
+
return _this;
|
|
26
25
|
}
|
|
27
|
-
|
|
26
|
+
return ContainerInUseException;
|
|
27
|
+
}(__BaseException));
|
|
28
|
+
export { ContainerInUseException };
|
|
28
29
|
export var ContainerLevelMetrics;
|
|
29
30
|
(function (ContainerLevelMetrics) {
|
|
30
31
|
ContainerLevelMetrics["DISABLED"] = "DISABLED";
|
|
31
32
|
ContainerLevelMetrics["ENABLED"] = "ENABLED";
|
|
32
33
|
})(ContainerLevelMetrics || (ContainerLevelMetrics = {}));
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
Object.setPrototypeOf(this, ContainerNotFoundException.prototype);
|
|
43
|
-
this.Message = opts.Message;
|
|
34
|
+
var ContainerNotFoundException = (function (_super) {
|
|
35
|
+
__extends(ContainerNotFoundException, _super);
|
|
36
|
+
function ContainerNotFoundException(opts) {
|
|
37
|
+
var _this = _super.call(this, __assign({ name: "ContainerNotFoundException", $fault: "client" }, opts)) || this;
|
|
38
|
+
_this.name = "ContainerNotFoundException";
|
|
39
|
+
_this.$fault = "client";
|
|
40
|
+
Object.setPrototypeOf(_this, ContainerNotFoundException.prototype);
|
|
41
|
+
_this.Message = opts.Message;
|
|
42
|
+
return _this;
|
|
44
43
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
return ContainerNotFoundException;
|
|
45
|
+
}(__BaseException));
|
|
46
|
+
export { ContainerNotFoundException };
|
|
47
|
+
var CorsPolicyNotFoundException = (function (_super) {
|
|
48
|
+
__extends(CorsPolicyNotFoundException, _super);
|
|
49
|
+
function CorsPolicyNotFoundException(opts) {
|
|
50
|
+
var _this = _super.call(this, __assign({ name: "CorsPolicyNotFoundException", $fault: "client" }, opts)) || this;
|
|
51
|
+
_this.name = "CorsPolicyNotFoundException";
|
|
52
|
+
_this.$fault = "client";
|
|
53
|
+
Object.setPrototypeOf(_this, CorsPolicyNotFoundException.prototype);
|
|
54
|
+
_this.Message = opts.Message;
|
|
55
|
+
return _this;
|
|
57
56
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
57
|
+
return CorsPolicyNotFoundException;
|
|
58
|
+
}(__BaseException));
|
|
59
|
+
export { CorsPolicyNotFoundException };
|
|
60
|
+
var InternalServerError = (function (_super) {
|
|
61
|
+
__extends(InternalServerError, _super);
|
|
62
|
+
function InternalServerError(opts) {
|
|
63
|
+
var _this = _super.call(this, __assign({ name: "InternalServerError", $fault: "server" }, opts)) || this;
|
|
64
|
+
_this.name = "InternalServerError";
|
|
65
|
+
_this.$fault = "server";
|
|
66
|
+
Object.setPrototypeOf(_this, InternalServerError.prototype);
|
|
67
|
+
_this.Message = opts.Message;
|
|
68
|
+
return _this;
|
|
70
69
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
70
|
+
return InternalServerError;
|
|
71
|
+
}(__BaseException));
|
|
72
|
+
export { InternalServerError };
|
|
73
|
+
var LimitExceededException = (function (_super) {
|
|
74
|
+
__extends(LimitExceededException, _super);
|
|
75
|
+
function LimitExceededException(opts) {
|
|
76
|
+
var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
|
|
77
|
+
_this.name = "LimitExceededException";
|
|
78
|
+
_this.$fault = "client";
|
|
79
|
+
Object.setPrototypeOf(_this, LimitExceededException.prototype);
|
|
80
|
+
_this.Message = opts.Message;
|
|
81
|
+
return _this;
|
|
83
82
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
83
|
+
return LimitExceededException;
|
|
84
|
+
}(__BaseException));
|
|
85
|
+
export { LimitExceededException };
|
|
86
|
+
var PolicyNotFoundException = (function (_super) {
|
|
87
|
+
__extends(PolicyNotFoundException, _super);
|
|
88
|
+
function PolicyNotFoundException(opts) {
|
|
89
|
+
var _this = _super.call(this, __assign({ name: "PolicyNotFoundException", $fault: "client" }, opts)) || this;
|
|
90
|
+
_this.name = "PolicyNotFoundException";
|
|
91
|
+
_this.$fault = "client";
|
|
92
|
+
Object.setPrototypeOf(_this, PolicyNotFoundException.prototype);
|
|
93
|
+
_this.Message = opts.Message;
|
|
94
|
+
return _this;
|
|
96
95
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
});
|
|
101
|
-
export
|
|
102
|
-
|
|
103
|
-
});
|
|
104
|
-
export
|
|
105
|
-
|
|
106
|
-
});
|
|
107
|
-
export
|
|
108
|
-
|
|
109
|
-
});
|
|
110
|
-
export
|
|
111
|
-
|
|
112
|
-
});
|
|
113
|
-
export
|
|
114
|
-
|
|
115
|
-
});
|
|
116
|
-
export
|
|
117
|
-
|
|
118
|
-
});
|
|
119
|
-
export
|
|
120
|
-
|
|
121
|
-
});
|
|
122
|
-
export
|
|
123
|
-
|
|
124
|
-
});
|
|
125
|
-
export
|
|
126
|
-
|
|
127
|
-
});
|
|
128
|
-
export
|
|
129
|
-
|
|
130
|
-
});
|
|
131
|
-
export
|
|
132
|
-
|
|
133
|
-
});
|
|
134
|
-
export
|
|
135
|
-
|
|
136
|
-
});
|
|
137
|
-
export
|
|
138
|
-
|
|
139
|
-
});
|
|
140
|
-
export
|
|
141
|
-
|
|
142
|
-
});
|
|
143
|
-
export
|
|
144
|
-
|
|
145
|
-
});
|
|
146
|
-
export
|
|
147
|
-
...obj,
|
|
148
|
-
});
|
|
149
|
-
export const GetContainerPolicyInputFilterSensitiveLog = (obj) => ({
|
|
150
|
-
...obj,
|
|
151
|
-
});
|
|
152
|
-
export const GetContainerPolicyOutputFilterSensitiveLog = (obj) => ({
|
|
153
|
-
...obj,
|
|
154
|
-
});
|
|
155
|
-
export const GetCorsPolicyInputFilterSensitiveLog = (obj) => ({
|
|
156
|
-
...obj,
|
|
157
|
-
});
|
|
158
|
-
export const GetCorsPolicyOutputFilterSensitiveLog = (obj) => ({
|
|
159
|
-
...obj,
|
|
160
|
-
});
|
|
161
|
-
export const GetLifecyclePolicyInputFilterSensitiveLog = (obj) => ({
|
|
162
|
-
...obj,
|
|
163
|
-
});
|
|
164
|
-
export const GetLifecyclePolicyOutputFilterSensitiveLog = (obj) => ({
|
|
165
|
-
...obj,
|
|
166
|
-
});
|
|
167
|
-
export const GetMetricPolicyInputFilterSensitiveLog = (obj) => ({
|
|
168
|
-
...obj,
|
|
169
|
-
});
|
|
170
|
-
export const MetricPolicyRuleFilterSensitiveLog = (obj) => ({
|
|
171
|
-
...obj,
|
|
172
|
-
});
|
|
173
|
-
export const MetricPolicyFilterSensitiveLog = (obj) => ({
|
|
174
|
-
...obj,
|
|
175
|
-
});
|
|
176
|
-
export const GetMetricPolicyOutputFilterSensitiveLog = (obj) => ({
|
|
177
|
-
...obj,
|
|
178
|
-
});
|
|
179
|
-
export const ListContainersInputFilterSensitiveLog = (obj) => ({
|
|
180
|
-
...obj,
|
|
181
|
-
});
|
|
182
|
-
export const ListContainersOutputFilterSensitiveLog = (obj) => ({
|
|
183
|
-
...obj,
|
|
184
|
-
});
|
|
185
|
-
export const ListTagsForResourceInputFilterSensitiveLog = (obj) => ({
|
|
186
|
-
...obj,
|
|
187
|
-
});
|
|
188
|
-
export const ListTagsForResourceOutputFilterSensitiveLog = (obj) => ({
|
|
189
|
-
...obj,
|
|
190
|
-
});
|
|
191
|
-
export const PutContainerPolicyInputFilterSensitiveLog = (obj) => ({
|
|
192
|
-
...obj,
|
|
193
|
-
});
|
|
194
|
-
export const PutContainerPolicyOutputFilterSensitiveLog = (obj) => ({
|
|
195
|
-
...obj,
|
|
196
|
-
});
|
|
197
|
-
export const PutCorsPolicyInputFilterSensitiveLog = (obj) => ({
|
|
198
|
-
...obj,
|
|
199
|
-
});
|
|
200
|
-
export const PutCorsPolicyOutputFilterSensitiveLog = (obj) => ({
|
|
201
|
-
...obj,
|
|
202
|
-
});
|
|
203
|
-
export const PutLifecyclePolicyInputFilterSensitiveLog = (obj) => ({
|
|
204
|
-
...obj,
|
|
205
|
-
});
|
|
206
|
-
export const PutLifecyclePolicyOutputFilterSensitiveLog = (obj) => ({
|
|
207
|
-
...obj,
|
|
208
|
-
});
|
|
209
|
-
export const PutMetricPolicyInputFilterSensitiveLog = (obj) => ({
|
|
210
|
-
...obj,
|
|
211
|
-
});
|
|
212
|
-
export const PutMetricPolicyOutputFilterSensitiveLog = (obj) => ({
|
|
213
|
-
...obj,
|
|
214
|
-
});
|
|
215
|
-
export const StartAccessLoggingInputFilterSensitiveLog = (obj) => ({
|
|
216
|
-
...obj,
|
|
217
|
-
});
|
|
218
|
-
export const StartAccessLoggingOutputFilterSensitiveLog = (obj) => ({
|
|
219
|
-
...obj,
|
|
220
|
-
});
|
|
221
|
-
export const StopAccessLoggingInputFilterSensitiveLog = (obj) => ({
|
|
222
|
-
...obj,
|
|
223
|
-
});
|
|
224
|
-
export const StopAccessLoggingOutputFilterSensitiveLog = (obj) => ({
|
|
225
|
-
...obj,
|
|
226
|
-
});
|
|
227
|
-
export const TagResourceInputFilterSensitiveLog = (obj) => ({
|
|
228
|
-
...obj,
|
|
229
|
-
});
|
|
230
|
-
export const TagResourceOutputFilterSensitiveLog = (obj) => ({
|
|
231
|
-
...obj,
|
|
232
|
-
});
|
|
233
|
-
export const UntagResourceInputFilterSensitiveLog = (obj) => ({
|
|
234
|
-
...obj,
|
|
235
|
-
});
|
|
236
|
-
export const UntagResourceOutputFilterSensitiveLog = (obj) => ({
|
|
237
|
-
...obj,
|
|
238
|
-
});
|
|
96
|
+
return PolicyNotFoundException;
|
|
97
|
+
}(__BaseException));
|
|
98
|
+
export { PolicyNotFoundException };
|
|
99
|
+
export var ContainerFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
100
|
+
export var CorsRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
101
|
+
export var TagFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
102
|
+
export var CreateContainerInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
103
|
+
export var CreateContainerOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
104
|
+
export var DeleteContainerInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
105
|
+
export var DeleteContainerOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
|
+
export var DeleteContainerPolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
107
|
+
export var DeleteContainerPolicyOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
108
|
+
export var DeleteCorsPolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
109
|
+
export var DeleteCorsPolicyOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
110
|
+
export var DeleteLifecyclePolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
111
|
+
export var DeleteLifecyclePolicyOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
112
|
+
export var DeleteMetricPolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
113
|
+
export var DeleteMetricPolicyOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
114
|
+
export var DescribeContainerInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
115
|
+
export var DescribeContainerOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
116
|
+
export var GetContainerPolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
117
|
+
export var GetContainerPolicyOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
118
|
+
export var GetCorsPolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
119
|
+
export var GetCorsPolicyOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
120
|
+
export var GetLifecyclePolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
121
|
+
export var GetLifecyclePolicyOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
122
|
+
export var GetMetricPolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
123
|
+
export var MetricPolicyRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
124
|
+
export var MetricPolicyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
125
|
+
export var GetMetricPolicyOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
126
|
+
export var ListContainersInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
127
|
+
export var ListContainersOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
128
|
+
export var ListTagsForResourceInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
129
|
+
export var ListTagsForResourceOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
130
|
+
export var PutContainerPolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
131
|
+
export var PutContainerPolicyOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
132
|
+
export var PutCorsPolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
133
|
+
export var PutCorsPolicyOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
134
|
+
export var PutLifecyclePolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
135
|
+
export var PutLifecyclePolicyOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
136
|
+
export var PutMetricPolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
137
|
+
export var PutMetricPolicyOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
138
|
+
export var StartAccessLoggingInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
139
|
+
export var StartAccessLoggingOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
140
|
+
export var StopAccessLoggingInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
141
|
+
export var StopAccessLoggingOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
142
|
+
export var TagResourceInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
143
|
+
export var TagResourceOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
144
|
+
export var UntagResourceInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
145
|
+
export var UntagResourceOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListContainersCommand, } from "../commands/ListContainersCommand";
|
|
2
3
|
import { MediaStore } from "../MediaStore";
|
|
3
4
|
import { MediaStoreClient } from "../MediaStoreClient";
|
|
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 ListContainersCommand(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.listContainers.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["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof MediaStore) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof MediaStoreClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected MediaStore | MediaStoreClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListContainers(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 paginateListContainers_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 MediaStore)) 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 MediaStoreClient)) 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 MediaStore | MediaStoreClient");
|
|
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
|
}
|