@aws-sdk/client-gameliftstreams 3.1067.0 → 3.1069.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/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +156 -176
- package/dist-cjs/models/GameLiftStreamsServiceException.js +4 -8
- package/dist-cjs/models/errors.js +15 -25
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +186 -126
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveHttpAuthSchemeConfig, defaultGameLiftStreamsHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
13
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
14
|
+
const { AddStreamGroupLocations$, AssociateApplications$, CreateApplication$, CreateStreamGroup$, CreateStreamSessionConnection$, DeleteApplication$, DeleteStreamGroup$, DisassociateApplications$, ExportStreamSessionFiles$, GetApplication$, GetStreamGroup$, GetStreamSession$, ListApplications$, ListStreamGroups$, ListStreamSessionsByAccount$, ListStreamSessions$, ListTagsForResource$, RemoveStreamGroupLocations$, StartStreamSession$, TagResource$, TerminateStreamSession$, UntagResource$, UpdateApplication$, UpdateStreamGroup$ } = require("./schemas/schemas_0");
|
|
15
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
16
|
+
__exportStar(require("./models/errors"), exports);
|
|
17
|
+
const { GameLiftStreamsServiceException } = require("./models/GameLiftStreamsServiceException");
|
|
18
|
+
exports.GameLiftStreamsServiceException = GameLiftStreamsServiceException;
|
|
16
19
|
|
|
17
20
|
const resolveClientEndpointParameters = (options) => {
|
|
18
21
|
return Object.assign(options, {
|
|
@@ -66,377 +69,377 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
66
69
|
};
|
|
67
70
|
|
|
68
71
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
69
|
-
const extensionConfiguration = Object.assign(
|
|
72
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
70
73
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
71
|
-
return Object.assign(runtimeConfig,
|
|
74
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
72
75
|
};
|
|
73
76
|
|
|
74
|
-
class GameLiftStreamsClient extends
|
|
77
|
+
class GameLiftStreamsClient extends Client {
|
|
75
78
|
config;
|
|
76
79
|
constructor(...[configuration]) {
|
|
77
|
-
const _config_0 =
|
|
80
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
78
81
|
super(_config_0);
|
|
79
82
|
this.initConfig = _config_0;
|
|
80
83
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
81
|
-
const _config_2 =
|
|
82
|
-
const _config_3 =
|
|
83
|
-
const _config_4 =
|
|
84
|
-
const _config_5 =
|
|
85
|
-
const _config_6 =
|
|
86
|
-
const _config_7 =
|
|
84
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
85
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
86
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
87
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
88
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
89
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
87
90
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
88
91
|
this.config = _config_8;
|
|
89
|
-
this.middlewareStack.use(
|
|
90
|
-
this.middlewareStack.use(
|
|
91
|
-
this.middlewareStack.use(
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
httpAuthSchemeParametersProvider:
|
|
98
|
-
identityProviderConfigProvider: async (config) => new
|
|
92
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
93
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
94
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
100
|
+
httpAuthSchemeParametersProvider: defaultGameLiftStreamsHttpAuthSchemeParametersProvider,
|
|
101
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
99
102
|
"aws.auth#sigv4": config.credentials,
|
|
100
103
|
}),
|
|
101
104
|
}));
|
|
102
|
-
this.middlewareStack.use(
|
|
105
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
103
106
|
}
|
|
104
107
|
destroy() {
|
|
105
108
|
super.destroy();
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
|
|
109
|
-
class AddStreamGroupLocationsCommand extends
|
|
112
|
+
class AddStreamGroupLocationsCommand extends Command
|
|
110
113
|
.classBuilder()
|
|
111
114
|
.ep(commonParams)
|
|
112
115
|
.m(function (Command, cs, config, o) {
|
|
113
|
-
return [
|
|
116
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
114
117
|
})
|
|
115
118
|
.s("GameLiftStreams", "AddStreamGroupLocations", {})
|
|
116
119
|
.n("GameLiftStreamsClient", "AddStreamGroupLocationsCommand")
|
|
117
|
-
.sc(
|
|
120
|
+
.sc(AddStreamGroupLocations$)
|
|
118
121
|
.build() {
|
|
119
122
|
}
|
|
120
123
|
|
|
121
|
-
class AssociateApplicationsCommand extends
|
|
124
|
+
class AssociateApplicationsCommand extends Command
|
|
122
125
|
.classBuilder()
|
|
123
126
|
.ep(commonParams)
|
|
124
127
|
.m(function (Command, cs, config, o) {
|
|
125
|
-
return [
|
|
128
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
126
129
|
})
|
|
127
130
|
.s("GameLiftStreams", "AssociateApplications", {})
|
|
128
131
|
.n("GameLiftStreamsClient", "AssociateApplicationsCommand")
|
|
129
|
-
.sc(
|
|
132
|
+
.sc(AssociateApplications$)
|
|
130
133
|
.build() {
|
|
131
134
|
}
|
|
132
135
|
|
|
133
|
-
class CreateApplicationCommand extends
|
|
136
|
+
class CreateApplicationCommand extends Command
|
|
134
137
|
.classBuilder()
|
|
135
138
|
.ep(commonParams)
|
|
136
139
|
.m(function (Command, cs, config, o) {
|
|
137
|
-
return [
|
|
140
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
138
141
|
})
|
|
139
142
|
.s("GameLiftStreams", "CreateApplication", {})
|
|
140
143
|
.n("GameLiftStreamsClient", "CreateApplicationCommand")
|
|
141
|
-
.sc(
|
|
144
|
+
.sc(CreateApplication$)
|
|
142
145
|
.build() {
|
|
143
146
|
}
|
|
144
147
|
|
|
145
|
-
class CreateStreamGroupCommand extends
|
|
148
|
+
class CreateStreamGroupCommand extends Command
|
|
146
149
|
.classBuilder()
|
|
147
150
|
.ep(commonParams)
|
|
148
151
|
.m(function (Command, cs, config, o) {
|
|
149
|
-
return [
|
|
152
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
150
153
|
})
|
|
151
154
|
.s("GameLiftStreams", "CreateStreamGroup", {})
|
|
152
155
|
.n("GameLiftStreamsClient", "CreateStreamGroupCommand")
|
|
153
|
-
.sc(
|
|
156
|
+
.sc(CreateStreamGroup$)
|
|
154
157
|
.build() {
|
|
155
158
|
}
|
|
156
159
|
|
|
157
|
-
class CreateStreamSessionConnectionCommand extends
|
|
160
|
+
class CreateStreamSessionConnectionCommand extends Command
|
|
158
161
|
.classBuilder()
|
|
159
162
|
.ep(commonParams)
|
|
160
163
|
.m(function (Command, cs, config, o) {
|
|
161
|
-
return [
|
|
164
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
162
165
|
})
|
|
163
166
|
.s("GameLiftStreams", "CreateStreamSessionConnection", {})
|
|
164
167
|
.n("GameLiftStreamsClient", "CreateStreamSessionConnectionCommand")
|
|
165
|
-
.sc(
|
|
168
|
+
.sc(CreateStreamSessionConnection$)
|
|
166
169
|
.build() {
|
|
167
170
|
}
|
|
168
171
|
|
|
169
|
-
class DeleteApplicationCommand extends
|
|
172
|
+
class DeleteApplicationCommand extends Command
|
|
170
173
|
.classBuilder()
|
|
171
174
|
.ep(commonParams)
|
|
172
175
|
.m(function (Command, cs, config, o) {
|
|
173
|
-
return [
|
|
176
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
174
177
|
})
|
|
175
178
|
.s("GameLiftStreams", "DeleteApplication", {})
|
|
176
179
|
.n("GameLiftStreamsClient", "DeleteApplicationCommand")
|
|
177
|
-
.sc(
|
|
180
|
+
.sc(DeleteApplication$)
|
|
178
181
|
.build() {
|
|
179
182
|
}
|
|
180
183
|
|
|
181
|
-
class DeleteStreamGroupCommand extends
|
|
184
|
+
class DeleteStreamGroupCommand extends Command
|
|
182
185
|
.classBuilder()
|
|
183
186
|
.ep(commonParams)
|
|
184
187
|
.m(function (Command, cs, config, o) {
|
|
185
|
-
return [
|
|
188
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
186
189
|
})
|
|
187
190
|
.s("GameLiftStreams", "DeleteStreamGroup", {})
|
|
188
191
|
.n("GameLiftStreamsClient", "DeleteStreamGroupCommand")
|
|
189
|
-
.sc(
|
|
192
|
+
.sc(DeleteStreamGroup$)
|
|
190
193
|
.build() {
|
|
191
194
|
}
|
|
192
195
|
|
|
193
|
-
class DisassociateApplicationsCommand extends
|
|
196
|
+
class DisassociateApplicationsCommand extends Command
|
|
194
197
|
.classBuilder()
|
|
195
198
|
.ep(commonParams)
|
|
196
199
|
.m(function (Command, cs, config, o) {
|
|
197
|
-
return [
|
|
200
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
198
201
|
})
|
|
199
202
|
.s("GameLiftStreams", "DisassociateApplications", {})
|
|
200
203
|
.n("GameLiftStreamsClient", "DisassociateApplicationsCommand")
|
|
201
|
-
.sc(
|
|
204
|
+
.sc(DisassociateApplications$)
|
|
202
205
|
.build() {
|
|
203
206
|
}
|
|
204
207
|
|
|
205
|
-
class ExportStreamSessionFilesCommand extends
|
|
208
|
+
class ExportStreamSessionFilesCommand extends Command
|
|
206
209
|
.classBuilder()
|
|
207
210
|
.ep(commonParams)
|
|
208
211
|
.m(function (Command, cs, config, o) {
|
|
209
|
-
return [
|
|
212
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
210
213
|
})
|
|
211
214
|
.s("GameLiftStreams", "ExportStreamSessionFiles", {})
|
|
212
215
|
.n("GameLiftStreamsClient", "ExportStreamSessionFilesCommand")
|
|
213
|
-
.sc(
|
|
216
|
+
.sc(ExportStreamSessionFiles$)
|
|
214
217
|
.build() {
|
|
215
218
|
}
|
|
216
219
|
|
|
217
|
-
class GetApplicationCommand extends
|
|
220
|
+
class GetApplicationCommand extends Command
|
|
218
221
|
.classBuilder()
|
|
219
222
|
.ep(commonParams)
|
|
220
223
|
.m(function (Command, cs, config, o) {
|
|
221
|
-
return [
|
|
224
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
222
225
|
})
|
|
223
226
|
.s("GameLiftStreams", "GetApplication", {})
|
|
224
227
|
.n("GameLiftStreamsClient", "GetApplicationCommand")
|
|
225
|
-
.sc(
|
|
228
|
+
.sc(GetApplication$)
|
|
226
229
|
.build() {
|
|
227
230
|
}
|
|
228
231
|
|
|
229
|
-
class GetStreamGroupCommand extends
|
|
232
|
+
class GetStreamGroupCommand extends Command
|
|
230
233
|
.classBuilder()
|
|
231
234
|
.ep(commonParams)
|
|
232
235
|
.m(function (Command, cs, config, o) {
|
|
233
|
-
return [
|
|
236
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
234
237
|
})
|
|
235
238
|
.s("GameLiftStreams", "GetStreamGroup", {})
|
|
236
239
|
.n("GameLiftStreamsClient", "GetStreamGroupCommand")
|
|
237
|
-
.sc(
|
|
240
|
+
.sc(GetStreamGroup$)
|
|
238
241
|
.build() {
|
|
239
242
|
}
|
|
240
243
|
|
|
241
|
-
class GetStreamSessionCommand extends
|
|
244
|
+
class GetStreamSessionCommand extends Command
|
|
242
245
|
.classBuilder()
|
|
243
246
|
.ep(commonParams)
|
|
244
247
|
.m(function (Command, cs, config, o) {
|
|
245
|
-
return [
|
|
248
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
246
249
|
})
|
|
247
250
|
.s("GameLiftStreams", "GetStreamSession", {})
|
|
248
251
|
.n("GameLiftStreamsClient", "GetStreamSessionCommand")
|
|
249
|
-
.sc(
|
|
252
|
+
.sc(GetStreamSession$)
|
|
250
253
|
.build() {
|
|
251
254
|
}
|
|
252
255
|
|
|
253
|
-
class ListApplicationsCommand extends
|
|
256
|
+
class ListApplicationsCommand extends Command
|
|
254
257
|
.classBuilder()
|
|
255
258
|
.ep(commonParams)
|
|
256
259
|
.m(function (Command, cs, config, o) {
|
|
257
|
-
return [
|
|
260
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
258
261
|
})
|
|
259
262
|
.s("GameLiftStreams", "ListApplications", {})
|
|
260
263
|
.n("GameLiftStreamsClient", "ListApplicationsCommand")
|
|
261
|
-
.sc(
|
|
264
|
+
.sc(ListApplications$)
|
|
262
265
|
.build() {
|
|
263
266
|
}
|
|
264
267
|
|
|
265
|
-
class ListStreamGroupsCommand extends
|
|
268
|
+
class ListStreamGroupsCommand extends Command
|
|
266
269
|
.classBuilder()
|
|
267
270
|
.ep(commonParams)
|
|
268
271
|
.m(function (Command, cs, config, o) {
|
|
269
|
-
return [
|
|
272
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
270
273
|
})
|
|
271
274
|
.s("GameLiftStreams", "ListStreamGroups", {})
|
|
272
275
|
.n("GameLiftStreamsClient", "ListStreamGroupsCommand")
|
|
273
|
-
.sc(
|
|
276
|
+
.sc(ListStreamGroups$)
|
|
274
277
|
.build() {
|
|
275
278
|
}
|
|
276
279
|
|
|
277
|
-
class ListStreamSessionsByAccountCommand extends
|
|
280
|
+
class ListStreamSessionsByAccountCommand extends Command
|
|
278
281
|
.classBuilder()
|
|
279
282
|
.ep(commonParams)
|
|
280
283
|
.m(function (Command, cs, config, o) {
|
|
281
|
-
return [
|
|
284
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
282
285
|
})
|
|
283
286
|
.s("GameLiftStreams", "ListStreamSessionsByAccount", {})
|
|
284
287
|
.n("GameLiftStreamsClient", "ListStreamSessionsByAccountCommand")
|
|
285
|
-
.sc(
|
|
288
|
+
.sc(ListStreamSessionsByAccount$)
|
|
286
289
|
.build() {
|
|
287
290
|
}
|
|
288
291
|
|
|
289
|
-
class ListStreamSessionsCommand extends
|
|
292
|
+
class ListStreamSessionsCommand extends Command
|
|
290
293
|
.classBuilder()
|
|
291
294
|
.ep(commonParams)
|
|
292
295
|
.m(function (Command, cs, config, o) {
|
|
293
|
-
return [
|
|
296
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
294
297
|
})
|
|
295
298
|
.s("GameLiftStreams", "ListStreamSessions", {})
|
|
296
299
|
.n("GameLiftStreamsClient", "ListStreamSessionsCommand")
|
|
297
|
-
.sc(
|
|
300
|
+
.sc(ListStreamSessions$)
|
|
298
301
|
.build() {
|
|
299
302
|
}
|
|
300
303
|
|
|
301
|
-
class ListTagsForResourceCommand extends
|
|
304
|
+
class ListTagsForResourceCommand extends Command
|
|
302
305
|
.classBuilder()
|
|
303
306
|
.ep(commonParams)
|
|
304
307
|
.m(function (Command, cs, config, o) {
|
|
305
|
-
return [
|
|
308
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
306
309
|
})
|
|
307
310
|
.s("GameLiftStreams", "ListTagsForResource", {})
|
|
308
311
|
.n("GameLiftStreamsClient", "ListTagsForResourceCommand")
|
|
309
|
-
.sc(
|
|
312
|
+
.sc(ListTagsForResource$)
|
|
310
313
|
.build() {
|
|
311
314
|
}
|
|
312
315
|
|
|
313
|
-
class RemoveStreamGroupLocationsCommand extends
|
|
316
|
+
class RemoveStreamGroupLocationsCommand extends Command
|
|
314
317
|
.classBuilder()
|
|
315
318
|
.ep(commonParams)
|
|
316
319
|
.m(function (Command, cs, config, o) {
|
|
317
|
-
return [
|
|
320
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
318
321
|
})
|
|
319
322
|
.s("GameLiftStreams", "RemoveStreamGroupLocations", {})
|
|
320
323
|
.n("GameLiftStreamsClient", "RemoveStreamGroupLocationsCommand")
|
|
321
|
-
.sc(
|
|
324
|
+
.sc(RemoveStreamGroupLocations$)
|
|
322
325
|
.build() {
|
|
323
326
|
}
|
|
324
327
|
|
|
325
|
-
class StartStreamSessionCommand extends
|
|
328
|
+
class StartStreamSessionCommand extends Command
|
|
326
329
|
.classBuilder()
|
|
327
330
|
.ep(commonParams)
|
|
328
331
|
.m(function (Command, cs, config, o) {
|
|
329
|
-
return [
|
|
332
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
330
333
|
})
|
|
331
334
|
.s("GameLiftStreams", "StartStreamSession", {})
|
|
332
335
|
.n("GameLiftStreamsClient", "StartStreamSessionCommand")
|
|
333
|
-
.sc(
|
|
336
|
+
.sc(StartStreamSession$)
|
|
334
337
|
.build() {
|
|
335
338
|
}
|
|
336
339
|
|
|
337
|
-
class TagResourceCommand extends
|
|
340
|
+
class TagResourceCommand extends Command
|
|
338
341
|
.classBuilder()
|
|
339
342
|
.ep(commonParams)
|
|
340
343
|
.m(function (Command, cs, config, o) {
|
|
341
|
-
return [
|
|
344
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
342
345
|
})
|
|
343
346
|
.s("GameLiftStreams", "TagResource", {})
|
|
344
347
|
.n("GameLiftStreamsClient", "TagResourceCommand")
|
|
345
|
-
.sc(
|
|
348
|
+
.sc(TagResource$)
|
|
346
349
|
.build() {
|
|
347
350
|
}
|
|
348
351
|
|
|
349
|
-
class TerminateStreamSessionCommand extends
|
|
352
|
+
class TerminateStreamSessionCommand extends Command
|
|
350
353
|
.classBuilder()
|
|
351
354
|
.ep(commonParams)
|
|
352
355
|
.m(function (Command, cs, config, o) {
|
|
353
|
-
return [
|
|
356
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
354
357
|
})
|
|
355
358
|
.s("GameLiftStreams", "TerminateStreamSession", {})
|
|
356
359
|
.n("GameLiftStreamsClient", "TerminateStreamSessionCommand")
|
|
357
|
-
.sc(
|
|
360
|
+
.sc(TerminateStreamSession$)
|
|
358
361
|
.build() {
|
|
359
362
|
}
|
|
360
363
|
|
|
361
|
-
class UntagResourceCommand extends
|
|
364
|
+
class UntagResourceCommand extends Command
|
|
362
365
|
.classBuilder()
|
|
363
366
|
.ep(commonParams)
|
|
364
367
|
.m(function (Command, cs, config, o) {
|
|
365
|
-
return [
|
|
368
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
366
369
|
})
|
|
367
370
|
.s("GameLiftStreams", "UntagResource", {})
|
|
368
371
|
.n("GameLiftStreamsClient", "UntagResourceCommand")
|
|
369
|
-
.sc(
|
|
372
|
+
.sc(UntagResource$)
|
|
370
373
|
.build() {
|
|
371
374
|
}
|
|
372
375
|
|
|
373
|
-
class UpdateApplicationCommand extends
|
|
376
|
+
class UpdateApplicationCommand extends Command
|
|
374
377
|
.classBuilder()
|
|
375
378
|
.ep(commonParams)
|
|
376
379
|
.m(function (Command, cs, config, o) {
|
|
377
|
-
return [
|
|
380
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
378
381
|
})
|
|
379
382
|
.s("GameLiftStreams", "UpdateApplication", {})
|
|
380
383
|
.n("GameLiftStreamsClient", "UpdateApplicationCommand")
|
|
381
|
-
.sc(
|
|
384
|
+
.sc(UpdateApplication$)
|
|
382
385
|
.build() {
|
|
383
386
|
}
|
|
384
387
|
|
|
385
|
-
class UpdateStreamGroupCommand extends
|
|
388
|
+
class UpdateStreamGroupCommand extends Command
|
|
386
389
|
.classBuilder()
|
|
387
390
|
.ep(commonParams)
|
|
388
391
|
.m(function (Command, cs, config, o) {
|
|
389
|
-
return [
|
|
392
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
390
393
|
})
|
|
391
394
|
.s("GameLiftStreams", "UpdateStreamGroup", {})
|
|
392
395
|
.n("GameLiftStreamsClient", "UpdateStreamGroupCommand")
|
|
393
|
-
.sc(
|
|
396
|
+
.sc(UpdateStreamGroup$)
|
|
394
397
|
.build() {
|
|
395
398
|
}
|
|
396
399
|
|
|
397
|
-
const paginateListApplications =
|
|
400
|
+
const paginateListApplications = createPaginator(GameLiftStreamsClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
398
401
|
|
|
399
|
-
const paginateListStreamGroups =
|
|
402
|
+
const paginateListStreamGroups = createPaginator(GameLiftStreamsClient, ListStreamGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
400
403
|
|
|
401
|
-
const paginateListStreamSessionsByAccount =
|
|
404
|
+
const paginateListStreamSessionsByAccount = createPaginator(GameLiftStreamsClient, ListStreamSessionsByAccountCommand, "NextToken", "NextToken", "MaxResults");
|
|
402
405
|
|
|
403
|
-
const paginateListStreamSessions =
|
|
406
|
+
const paginateListStreamSessions = createPaginator(GameLiftStreamsClient, ListStreamSessionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
404
407
|
|
|
405
|
-
const checkState$4 = async (client
|
|
408
|
+
const checkState$4 = async (client, input) => {
|
|
406
409
|
let reason;
|
|
407
410
|
try {
|
|
408
|
-
let result = await client
|
|
411
|
+
let result = await client.send(new GetApplicationCommand(input));
|
|
409
412
|
reason = result;
|
|
410
413
|
}
|
|
411
414
|
catch (exception) {
|
|
412
415
|
reason = exception;
|
|
413
416
|
if (exception.name === "ResourceNotFoundException") {
|
|
414
|
-
return { state:
|
|
417
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
415
418
|
}
|
|
416
419
|
}
|
|
417
|
-
return { state:
|
|
420
|
+
return { state: WaiterState.RETRY, reason };
|
|
418
421
|
};
|
|
419
422
|
const waitForApplicationDeleted = async (params, input) => {
|
|
420
423
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
421
|
-
return
|
|
424
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
422
425
|
};
|
|
423
426
|
const waitUntilApplicationDeleted = async (params, input) => {
|
|
424
427
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
425
|
-
const result = await
|
|
426
|
-
return
|
|
428
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
429
|
+
return checkExceptions(result);
|
|
427
430
|
};
|
|
428
431
|
|
|
429
|
-
const checkState$3 = async (client
|
|
432
|
+
const checkState$3 = async (client, input) => {
|
|
430
433
|
let reason;
|
|
431
434
|
try {
|
|
432
|
-
let result = await client
|
|
435
|
+
let result = await client.send(new GetApplicationCommand(input));
|
|
433
436
|
reason = result;
|
|
434
437
|
try {
|
|
435
438
|
const returnComparator = () => {
|
|
436
439
|
return result.Status;
|
|
437
440
|
};
|
|
438
441
|
if (returnComparator() === "READY") {
|
|
439
|
-
return { state:
|
|
442
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
440
443
|
}
|
|
441
444
|
}
|
|
442
445
|
catch (e) { }
|
|
@@ -445,7 +448,7 @@ const checkState$3 = async (client$1, input) => {
|
|
|
445
448
|
return result.Status;
|
|
446
449
|
};
|
|
447
450
|
if (returnComparator() === "ERROR") {
|
|
448
|
-
return { state:
|
|
451
|
+
return { state: WaiterState.FAILURE, reason };
|
|
449
452
|
}
|
|
450
453
|
}
|
|
451
454
|
catch (e) { }
|
|
@@ -453,29 +456,29 @@ const checkState$3 = async (client$1, input) => {
|
|
|
453
456
|
catch (exception) {
|
|
454
457
|
reason = exception;
|
|
455
458
|
}
|
|
456
|
-
return { state:
|
|
459
|
+
return { state: WaiterState.RETRY, reason };
|
|
457
460
|
};
|
|
458
461
|
const waitForApplicationReady = async (params, input) => {
|
|
459
462
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
460
|
-
return
|
|
463
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
461
464
|
};
|
|
462
465
|
const waitUntilApplicationReady = async (params, input) => {
|
|
463
466
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
464
|
-
const result = await
|
|
465
|
-
return
|
|
467
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
468
|
+
return checkExceptions(result);
|
|
466
469
|
};
|
|
467
470
|
|
|
468
|
-
const checkState$2 = async (client
|
|
471
|
+
const checkState$2 = async (client, input) => {
|
|
469
472
|
let reason;
|
|
470
473
|
try {
|
|
471
|
-
let result = await client
|
|
474
|
+
let result = await client.send(new GetStreamGroupCommand(input));
|
|
472
475
|
reason = result;
|
|
473
476
|
try {
|
|
474
477
|
const returnComparator = () => {
|
|
475
478
|
return result.Status;
|
|
476
479
|
};
|
|
477
480
|
if (returnComparator() === "ACTIVE") {
|
|
478
|
-
return { state:
|
|
481
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
479
482
|
}
|
|
480
483
|
}
|
|
481
484
|
catch (e) { }
|
|
@@ -484,7 +487,7 @@ const checkState$2 = async (client$1, input) => {
|
|
|
484
487
|
return result.Status;
|
|
485
488
|
};
|
|
486
489
|
if (returnComparator() === "ERROR") {
|
|
487
|
-
return { state:
|
|
490
|
+
return { state: WaiterState.FAILURE, reason };
|
|
488
491
|
}
|
|
489
492
|
}
|
|
490
493
|
catch (e) { }
|
|
@@ -493,7 +496,7 @@ const checkState$2 = async (client$1, input) => {
|
|
|
493
496
|
return result.Status;
|
|
494
497
|
};
|
|
495
498
|
if (returnComparator() === "ACTIVE_WITH_ERRORS") {
|
|
496
|
-
return { state:
|
|
499
|
+
return { state: WaiterState.FAILURE, reason };
|
|
497
500
|
}
|
|
498
501
|
}
|
|
499
502
|
catch (e) { }
|
|
@@ -502,7 +505,7 @@ const checkState$2 = async (client$1, input) => {
|
|
|
502
505
|
return result.Status;
|
|
503
506
|
};
|
|
504
507
|
if (returnComparator() === "DELETING") {
|
|
505
|
-
return { state:
|
|
508
|
+
return { state: WaiterState.FAILURE, reason };
|
|
506
509
|
}
|
|
507
510
|
}
|
|
508
511
|
catch (e) { }
|
|
@@ -510,53 +513,53 @@ const checkState$2 = async (client$1, input) => {
|
|
|
510
513
|
catch (exception) {
|
|
511
514
|
reason = exception;
|
|
512
515
|
}
|
|
513
|
-
return { state:
|
|
516
|
+
return { state: WaiterState.RETRY, reason };
|
|
514
517
|
};
|
|
515
518
|
const waitForStreamGroupActive = async (params, input) => {
|
|
516
519
|
const serviceDefaults = { minDelay: 30, maxDelay: 3600 };
|
|
517
|
-
return
|
|
520
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
518
521
|
};
|
|
519
522
|
const waitUntilStreamGroupActive = async (params, input) => {
|
|
520
523
|
const serviceDefaults = { minDelay: 30, maxDelay: 3600 };
|
|
521
|
-
const result = await
|
|
522
|
-
return
|
|
524
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
525
|
+
return checkExceptions(result);
|
|
523
526
|
};
|
|
524
527
|
|
|
525
|
-
const checkState$1 = async (client
|
|
528
|
+
const checkState$1 = async (client, input) => {
|
|
526
529
|
let reason;
|
|
527
530
|
try {
|
|
528
|
-
let result = await client
|
|
531
|
+
let result = await client.send(new GetStreamGroupCommand(input));
|
|
529
532
|
reason = result;
|
|
530
533
|
}
|
|
531
534
|
catch (exception) {
|
|
532
535
|
reason = exception;
|
|
533
536
|
if (exception.name === "ResourceNotFoundException") {
|
|
534
|
-
return { state:
|
|
537
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
535
538
|
}
|
|
536
539
|
}
|
|
537
|
-
return { state:
|
|
540
|
+
return { state: WaiterState.RETRY, reason };
|
|
538
541
|
};
|
|
539
542
|
const waitForStreamGroupDeleted = async (params, input) => {
|
|
540
543
|
const serviceDefaults = { minDelay: 30, maxDelay: 1800 };
|
|
541
|
-
return
|
|
544
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
542
545
|
};
|
|
543
546
|
const waitUntilStreamGroupDeleted = async (params, input) => {
|
|
544
547
|
const serviceDefaults = { minDelay: 30, maxDelay: 1800 };
|
|
545
|
-
const result = await
|
|
546
|
-
return
|
|
548
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
549
|
+
return checkExceptions(result);
|
|
547
550
|
};
|
|
548
551
|
|
|
549
|
-
const checkState = async (client
|
|
552
|
+
const checkState = async (client, input) => {
|
|
550
553
|
let reason;
|
|
551
554
|
try {
|
|
552
|
-
let result = await client
|
|
555
|
+
let result = await client.send(new GetStreamSessionCommand(input));
|
|
553
556
|
reason = result;
|
|
554
557
|
try {
|
|
555
558
|
const returnComparator = () => {
|
|
556
559
|
return result.Status;
|
|
557
560
|
};
|
|
558
561
|
if (returnComparator() === "ACTIVE") {
|
|
559
|
-
return { state:
|
|
562
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
560
563
|
}
|
|
561
564
|
}
|
|
562
565
|
catch (e) { }
|
|
@@ -565,7 +568,7 @@ const checkState = async (client$1, input) => {
|
|
|
565
568
|
return result.Status;
|
|
566
569
|
};
|
|
567
570
|
if (returnComparator() === "ERROR") {
|
|
568
|
-
return { state:
|
|
571
|
+
return { state: WaiterState.FAILURE, reason };
|
|
569
572
|
}
|
|
570
573
|
}
|
|
571
574
|
catch (e) { }
|
|
@@ -573,16 +576,16 @@ const checkState = async (client$1, input) => {
|
|
|
573
576
|
catch (exception) {
|
|
574
577
|
reason = exception;
|
|
575
578
|
}
|
|
576
|
-
return { state:
|
|
579
|
+
return { state: WaiterState.RETRY, reason };
|
|
577
580
|
};
|
|
578
581
|
const waitForStreamSessionActive = async (params, input) => {
|
|
579
582
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
580
|
-
return
|
|
583
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
581
584
|
};
|
|
582
585
|
const waitUntilStreamSessionActive = async (params, input) => {
|
|
583
586
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
584
|
-
const result = await
|
|
585
|
-
return
|
|
587
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
588
|
+
return checkExceptions(result);
|
|
586
589
|
};
|
|
587
590
|
|
|
588
591
|
const commands = {
|
|
@@ -626,7 +629,7 @@ const waiters = {
|
|
|
626
629
|
};
|
|
627
630
|
class GameLiftStreams extends GameLiftStreamsClient {
|
|
628
631
|
}
|
|
629
|
-
|
|
632
|
+
createAggregatedClient(commands, GameLiftStreams, { paginators, waiters });
|
|
630
633
|
|
|
631
634
|
const StreamGroupLocationStatus = {
|
|
632
635
|
ACTIVATING: "ACTIVATING",
|
|
@@ -718,9 +721,6 @@ const StreamSessionStatusReason = {
|
|
|
718
721
|
RECONNECTION_TIMEOUT: "reconnectionTimeout",
|
|
719
722
|
};
|
|
720
723
|
|
|
721
|
-
exports.$Command = client.Command;
|
|
722
|
-
exports.__Client = client.Client;
|
|
723
|
-
exports.GameLiftStreamsServiceException = GameLiftStreamsServiceException.GameLiftStreamsServiceException;
|
|
724
724
|
exports.AddStreamGroupLocationsCommand = AddStreamGroupLocationsCommand;
|
|
725
725
|
exports.ApplicationStatus = ApplicationStatus;
|
|
726
726
|
exports.ApplicationStatusReason = ApplicationStatusReason;
|
|
@@ -773,23 +773,3 @@ exports.waitUntilApplicationReady = waitUntilApplicationReady;
|
|
|
773
773
|
exports.waitUntilStreamGroupActive = waitUntilStreamGroupActive;
|
|
774
774
|
exports.waitUntilStreamGroupDeleted = waitUntilStreamGroupDeleted;
|
|
775
775
|
exports.waitUntilStreamSessionActive = waitUntilStreamSessionActive;
|
|
776
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
777
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
778
|
-
Object.defineProperty(exports, '__proto__', {
|
|
779
|
-
enumerable: true,
|
|
780
|
-
value: schemas_0['__proto__']
|
|
781
|
-
});
|
|
782
|
-
|
|
783
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
784
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
785
|
-
});
|
|
786
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
787
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
788
|
-
Object.defineProperty(exports, '__proto__', {
|
|
789
|
-
enumerable: true,
|
|
790
|
-
value: errors['__proto__']
|
|
791
|
-
});
|
|
792
|
-
|
|
793
|
-
Object.keys(errors).forEach(function (k) {
|
|
794
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
795
|
-
});
|