@aws-sdk/client-gameliftstreams 3.901.0 → 3.906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist-cjs/index.js +1909 -2103
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,2159 +1,1965 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AccessDeniedException: () => AccessDeniedException,
25
- AddStreamGroupLocationsCommand: () => AddStreamGroupLocationsCommand,
26
- ApplicationStatus: () => ApplicationStatus,
27
- ApplicationStatusReason: () => ApplicationStatusReason,
28
- AssociateApplicationsCommand: () => AssociateApplicationsCommand,
29
- ConflictException: () => ConflictException,
30
- CreateApplicationCommand: () => CreateApplicationCommand,
31
- CreateStreamGroupCommand: () => CreateStreamGroupCommand,
32
- CreateStreamSessionConnectionCommand: () => CreateStreamSessionConnectionCommand,
33
- CreateStreamSessionConnectionInputFilterSensitiveLog: () => CreateStreamSessionConnectionInputFilterSensitiveLog,
34
- CreateStreamSessionConnectionOutputFilterSensitiveLog: () => CreateStreamSessionConnectionOutputFilterSensitiveLog,
35
- DeleteApplicationCommand: () => DeleteApplicationCommand,
36
- DeleteStreamGroupCommand: () => DeleteStreamGroupCommand,
37
- DisassociateApplicationsCommand: () => DisassociateApplicationsCommand,
38
- ExportFilesStatus: () => ExportFilesStatus,
39
- ExportStreamSessionFilesCommand: () => ExportStreamSessionFilesCommand,
40
- GameLiftStreams: () => GameLiftStreams,
41
- GameLiftStreamsClient: () => GameLiftStreamsClient,
42
- GameLiftStreamsServiceException: () => GameLiftStreamsServiceException,
43
- GetApplicationCommand: () => GetApplicationCommand,
44
- GetStreamGroupCommand: () => GetStreamGroupCommand,
45
- GetStreamSessionCommand: () => GetStreamSessionCommand,
46
- GetStreamSessionOutputFilterSensitiveLog: () => GetStreamSessionOutputFilterSensitiveLog,
47
- InternalServerException: () => InternalServerException,
48
- ListApplicationsCommand: () => ListApplicationsCommand,
49
- ListStreamGroupsCommand: () => ListStreamGroupsCommand,
50
- ListStreamSessionsByAccountCommand: () => ListStreamSessionsByAccountCommand,
51
- ListStreamSessionsCommand: () => ListStreamSessionsCommand,
52
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
53
- Protocol: () => Protocol,
54
- RemoveStreamGroupLocationsCommand: () => RemoveStreamGroupLocationsCommand,
55
- ReplicationStatusType: () => ReplicationStatusType,
56
- ResourceNotFoundException: () => ResourceNotFoundException,
57
- RuntimeEnvironmentType: () => RuntimeEnvironmentType,
58
- ServiceQuotaExceededException: () => ServiceQuotaExceededException,
59
- StartStreamSessionCommand: () => StartStreamSessionCommand,
60
- StartStreamSessionInputFilterSensitiveLog: () => StartStreamSessionInputFilterSensitiveLog,
61
- StartStreamSessionOutputFilterSensitiveLog: () => StartStreamSessionOutputFilterSensitiveLog,
62
- StreamClass: () => StreamClass,
63
- StreamGroupLocationStatus: () => StreamGroupLocationStatus,
64
- StreamGroupStatus: () => StreamGroupStatus,
65
- StreamGroupStatusReason: () => StreamGroupStatusReason,
66
- StreamSessionStatus: () => StreamSessionStatus,
67
- StreamSessionStatusReason: () => StreamSessionStatusReason,
68
- TagResourceCommand: () => TagResourceCommand,
69
- TerminateStreamSessionCommand: () => TerminateStreamSessionCommand,
70
- ThrottlingException: () => ThrottlingException,
71
- UntagResourceCommand: () => UntagResourceCommand,
72
- UpdateApplicationCommand: () => UpdateApplicationCommand,
73
- UpdateStreamGroupCommand: () => UpdateStreamGroupCommand,
74
- ValidationException: () => ValidationException,
75
- __Client: () => import_smithy_client.Client,
76
- paginateListApplications: () => paginateListApplications,
77
- paginateListStreamGroups: () => paginateListStreamGroups,
78
- paginateListStreamSessions: () => paginateListStreamSessions,
79
- paginateListStreamSessionsByAccount: () => paginateListStreamSessionsByAccount,
80
- waitForApplicationDeleted: () => waitForApplicationDeleted,
81
- waitForApplicationReady: () => waitForApplicationReady,
82
- waitForStreamGroupActive: () => waitForStreamGroupActive,
83
- waitForStreamGroupDeleted: () => waitForStreamGroupDeleted,
84
- waitForStreamSessionActive: () => waitForStreamSessionActive,
85
- waitUntilApplicationDeleted: () => waitUntilApplicationDeleted,
86
- waitUntilApplicationReady: () => waitUntilApplicationReady,
87
- waitUntilStreamGroupActive: () => waitUntilStreamGroupActive,
88
- waitUntilStreamGroupDeleted: () => waitUntilStreamGroupDeleted,
89
- waitUntilStreamSessionActive: () => waitUntilStreamSessionActive
90
- });
91
- module.exports = __toCommonJS(index_exports);
92
-
93
- // src/GameLiftStreamsClient.ts
94
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
95
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
96
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
97
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
98
- var import_config_resolver = require("@smithy/config-resolver");
99
- var import_core = require("@smithy/core");
100
- var import_middleware_content_length = require("@smithy/middleware-content-length");
101
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
102
- var import_middleware_retry = require("@smithy/middleware-retry");
103
-
104
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
105
-
106
- // src/endpoint/EndpointParameters.ts
107
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
108
- return Object.assign(options, {
109
- useFipsEndpoint: options.useFipsEndpoint ?? false,
110
- defaultSigningName: "gameliftstreams"
111
- });
112
- }, "resolveClientEndpointParameters");
113
- var commonParams = {
114
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
115
- Endpoint: { type: "builtInParams", name: "endpoint" },
116
- Region: { type: "builtInParams", name: "region" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+ var uuid = require('@smithy/uuid');
20
+ var utilWaiter = require('@smithy/util-waiter');
21
+
22
+ const resolveClientEndpointParameters = (options) => {
23
+ return Object.assign(options, {
24
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25
+ defaultSigningName: "gameliftstreams",
26
+ });
27
+ };
28
+ const commonParams = {
29
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
30
+ Endpoint: { type: "builtInParams", name: "endpoint" },
31
+ Region: { type: "builtInParams", name: "region" },
117
32
  };
118
33
 
119
- // src/GameLiftStreamsClient.ts
120
- var import_runtimeConfig = require("././runtimeConfig");
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
121
72
 
122
- // src/runtimeExtensions.ts
123
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
124
- var import_protocol_http = require("@smithy/protocol-http");
125
- var import_smithy_client = require("@smithy/smithy-client");
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
126
78
 
127
- // src/auth/httpAuthExtensionConfiguration.ts
128
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
129
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
130
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
131
- let _credentials = runtimeConfig.credentials;
132
- return {
133
- setHttpAuthScheme(httpAuthScheme) {
134
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
135
- if (index === -1) {
136
- _httpAuthSchemes.push(httpAuthScheme);
137
- } else {
138
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
139
- }
140
- },
141
- httpAuthSchemes() {
142
- return _httpAuthSchemes;
143
- },
144
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
145
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
146
- },
147
- httpAuthSchemeProvider() {
148
- return _httpAuthSchemeProvider;
149
- },
150
- setCredentials(credentials) {
151
- _credentials = credentials;
152
- },
153
- credentials() {
154
- return _credentials;
79
+ class GameLiftStreamsClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultGameLiftStreamsHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
155
107
  }
156
- };
157
- }, "getHttpAuthExtensionConfiguration");
158
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
159
- return {
160
- httpAuthSchemes: config.httpAuthSchemes(),
161
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
162
- credentials: config.credentials()
163
- };
164
- }, "resolveHttpAuthRuntimeConfig");
165
-
166
- // src/runtimeExtensions.ts
167
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
168
- const extensionConfiguration = Object.assign(
169
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
170
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
171
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
172
- getHttpAuthExtensionConfiguration(runtimeConfig)
173
- );
174
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
175
- return Object.assign(
176
- runtimeConfig,
177
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
178
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
179
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
180
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
181
- );
182
- }, "resolveRuntimeExtensions");
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
183
112
 
184
- // src/GameLiftStreamsClient.ts
185
- var GameLiftStreamsClient = class extends import_smithy_client.Client {
186
- static {
187
- __name(this, "GameLiftStreamsClient");
188
- }
189
- /**
190
- * The resolved configuration of GameLiftStreamsClient class. This is resolved and normalized from the {@link GameLiftStreamsClientConfig | constructor configuration interface}.
191
- */
192
- config;
193
- constructor(...[configuration]) {
194
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
195
- super(_config_0);
196
- this.initConfig = _config_0;
197
- const _config_1 = resolveClientEndpointParameters(_config_0);
198
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
199
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
200
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
201
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
202
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
203
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
204
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
205
- this.config = _config_8;
206
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
207
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
208
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
209
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
210
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
211
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
212
- this.middlewareStack.use(
213
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
214
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultGameLiftStreamsHttpAuthSchemeParametersProvider,
215
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
216
- "aws.auth#sigv4": config.credentials
217
- }), "identityProviderConfigProvider")
218
- })
219
- );
220
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
221
- }
222
- /**
223
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
224
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
225
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
226
- */
227
- destroy() {
228
- super.destroy();
229
- }
113
+ class GameLiftStreamsServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, GameLiftStreamsServiceException.prototype);
117
+ }
118
+ }
119
+
120
+ class AccessDeniedException extends GameLiftStreamsServiceException {
121
+ name = "AccessDeniedException";
122
+ $fault = "client";
123
+ Message;
124
+ constructor(opts) {
125
+ super({
126
+ name: "AccessDeniedException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
+ this.Message = opts.Message;
132
+ }
133
+ }
134
+ const StreamGroupLocationStatus = {
135
+ ACTIVATING: "ACTIVATING",
136
+ ACTIVE: "ACTIVE",
137
+ ERROR: "ERROR",
138
+ REMOVING: "REMOVING",
230
139
  };
231
-
232
- // src/GameLiftStreams.ts
233
-
234
-
235
- // src/commands/AddStreamGroupLocationsCommand.ts
236
-
237
- var import_middleware_serde = require("@smithy/middleware-serde");
238
-
239
-
240
- // src/protocols/Aws_restJson1.ts
241
- var import_core2 = require("@aws-sdk/core");
242
-
243
-
244
- var import_uuid = require("@smithy/uuid");
245
-
246
- // src/models/GameLiftStreamsServiceException.ts
247
-
248
- var GameLiftStreamsServiceException = class _GameLiftStreamsServiceException extends import_smithy_client.ServiceException {
249
- static {
250
- __name(this, "GameLiftStreamsServiceException");
251
- }
252
- /**
253
- * @internal
254
- */
255
- constructor(options) {
256
- super(options);
257
- Object.setPrototypeOf(this, _GameLiftStreamsServiceException.prototype);
258
- }
140
+ class InternalServerException extends GameLiftStreamsServiceException {
141
+ name = "InternalServerException";
142
+ $fault = "server";
143
+ $retryable = {};
144
+ Message;
145
+ constructor(opts) {
146
+ super({
147
+ name: "InternalServerException",
148
+ $fault: "server",
149
+ ...opts,
150
+ });
151
+ Object.setPrototypeOf(this, InternalServerException.prototype);
152
+ this.Message = opts.Message;
153
+ }
154
+ }
155
+ class ResourceNotFoundException extends GameLiftStreamsServiceException {
156
+ name = "ResourceNotFoundException";
157
+ $fault = "client";
158
+ Message;
159
+ constructor(opts) {
160
+ super({
161
+ name: "ResourceNotFoundException",
162
+ $fault: "client",
163
+ ...opts,
164
+ });
165
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
166
+ this.Message = opts.Message;
167
+ }
168
+ }
169
+ class ServiceQuotaExceededException extends GameLiftStreamsServiceException {
170
+ name = "ServiceQuotaExceededException";
171
+ $fault = "client";
172
+ Message;
173
+ constructor(opts) {
174
+ super({
175
+ name: "ServiceQuotaExceededException",
176
+ $fault: "client",
177
+ ...opts,
178
+ });
179
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
180
+ this.Message = opts.Message;
181
+ }
182
+ }
183
+ class ThrottlingException extends GameLiftStreamsServiceException {
184
+ name = "ThrottlingException";
185
+ $fault = "client";
186
+ $retryable = {
187
+ throttling: true,
188
+ };
189
+ Message;
190
+ constructor(opts) {
191
+ super({
192
+ name: "ThrottlingException",
193
+ $fault: "client",
194
+ ...opts,
195
+ });
196
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
197
+ this.Message = opts.Message;
198
+ }
199
+ }
200
+ class ValidationException extends GameLiftStreamsServiceException {
201
+ name = "ValidationException";
202
+ $fault = "client";
203
+ Message;
204
+ constructor(opts) {
205
+ super({
206
+ name: "ValidationException",
207
+ $fault: "client",
208
+ ...opts,
209
+ });
210
+ Object.setPrototypeOf(this, ValidationException.prototype);
211
+ this.Message = opts.Message;
212
+ }
213
+ }
214
+ const ApplicationStatus = {
215
+ DELETING: "DELETING",
216
+ ERROR: "ERROR",
217
+ INITIALIZED: "INITIALIZED",
218
+ PROCESSING: "PROCESSING",
219
+ READY: "READY",
259
220
  };
260
-
261
- // src/models/models_0.ts
262
-
263
- var AccessDeniedException = class _AccessDeniedException extends GameLiftStreamsServiceException {
264
- static {
265
- __name(this, "AccessDeniedException");
266
- }
267
- name = "AccessDeniedException";
268
- $fault = "client";
269
- /**
270
- * <p>Description of the error.</p>
271
- * @public
272
- */
273
- Message;
274
- /**
275
- * @internal
276
- */
277
- constructor(opts) {
278
- super({
279
- name: "AccessDeniedException",
280
- $fault: "client",
281
- ...opts
282
- });
283
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
284
- this.Message = opts.Message;
285
- }
286
- };
287
- var StreamGroupLocationStatus = {
288
- ACTIVATING: "ACTIVATING",
289
- ACTIVE: "ACTIVE",
290
- ERROR: "ERROR",
291
- REMOVING: "REMOVING"
292
- };
293
- var InternalServerException = class _InternalServerException extends GameLiftStreamsServiceException {
294
- static {
295
- __name(this, "InternalServerException");
296
- }
297
- name = "InternalServerException";
298
- $fault = "server";
299
- $retryable = {};
300
- /**
301
- * <p>Description of the error.</p>
302
- * @public
303
- */
304
- Message;
305
- /**
306
- * @internal
307
- */
308
- constructor(opts) {
309
- super({
310
- name: "InternalServerException",
311
- $fault: "server",
312
- ...opts
313
- });
314
- Object.setPrototypeOf(this, _InternalServerException.prototype);
315
- this.Message = opts.Message;
316
- }
317
- };
318
- var ResourceNotFoundException = class _ResourceNotFoundException extends GameLiftStreamsServiceException {
319
- static {
320
- __name(this, "ResourceNotFoundException");
321
- }
322
- name = "ResourceNotFoundException";
323
- $fault = "client";
324
- /**
325
- * <p>Description of the error.</p>
326
- * @public
327
- */
328
- Message;
329
- /**
330
- * @internal
331
- */
332
- constructor(opts) {
333
- super({
334
- name: "ResourceNotFoundException",
335
- $fault: "client",
336
- ...opts
337
- });
338
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
339
- this.Message = opts.Message;
340
- }
341
- };
342
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends GameLiftStreamsServiceException {
343
- static {
344
- __name(this, "ServiceQuotaExceededException");
345
- }
346
- name = "ServiceQuotaExceededException";
347
- $fault = "client";
348
- /**
349
- * <p>Description of the error.</p>
350
- * @public
351
- */
352
- Message;
353
- /**
354
- * @internal
355
- */
356
- constructor(opts) {
357
- super({
358
- name: "ServiceQuotaExceededException",
359
- $fault: "client",
360
- ...opts
361
- });
362
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
363
- this.Message = opts.Message;
364
- }
365
- };
366
- var ThrottlingException = class _ThrottlingException extends GameLiftStreamsServiceException {
367
- static {
368
- __name(this, "ThrottlingException");
369
- }
370
- name = "ThrottlingException";
371
- $fault = "client";
372
- $retryable = {
373
- throttling: true
374
- };
375
- /**
376
- * <p>Description of the error.</p>
377
- * @public
378
- */
379
- Message;
380
- /**
381
- * @internal
382
- */
383
- constructor(opts) {
384
- super({
385
- name: "ThrottlingException",
386
- $fault: "client",
387
- ...opts
388
- });
389
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
390
- this.Message = opts.Message;
391
- }
392
- };
393
- var ValidationException = class _ValidationException extends GameLiftStreamsServiceException {
394
- static {
395
- __name(this, "ValidationException");
396
- }
397
- name = "ValidationException";
398
- $fault = "client";
399
- /**
400
- * <p>Description of the error.</p>
401
- * @public
402
- */
403
- Message;
404
- /**
405
- * @internal
406
- */
407
- constructor(opts) {
408
- super({
409
- name: "ValidationException",
410
- $fault: "client",
411
- ...opts
412
- });
413
- Object.setPrototypeOf(this, _ValidationException.prototype);
414
- this.Message = opts.Message;
415
- }
416
- };
417
- var ApplicationStatus = {
418
- DELETING: "DELETING",
419
- ERROR: "ERROR",
420
- INITIALIZED: "INITIALIZED",
421
- PROCESSING: "PROCESSING",
422
- READY: "READY"
423
- };
424
- var ApplicationStatusReason = {
425
- ACCESS_DENIED: "accessDenied",
426
- INTERNAL_ERROR: "internalError"
427
- };
428
- var ConflictException = class _ConflictException extends GameLiftStreamsServiceException {
429
- static {
430
- __name(this, "ConflictException");
431
- }
432
- name = "ConflictException";
433
- $fault = "client";
434
- /**
435
- * <p>Description of the error.</p>
436
- * @public
437
- */
438
- Message;
439
- /**
440
- * @internal
441
- */
442
- constructor(opts) {
443
- super({
444
- name: "ConflictException",
445
- $fault: "client",
446
- ...opts
447
- });
448
- Object.setPrototypeOf(this, _ConflictException.prototype);
449
- this.Message = opts.Message;
450
- }
451
- };
452
- var RuntimeEnvironmentType = {
453
- PROTON: "PROTON",
454
- UBUNTU: "UBUNTU",
455
- WINDOWS: "WINDOWS"
456
- };
457
- var ReplicationStatusType = {
458
- COMPLETED: "COMPLETED",
459
- REPLICATING: "REPLICATING"
460
- };
461
- var StreamClass = {
462
- gen4n_high: "gen4n_high",
463
- gen4n_ultra: "gen4n_ultra",
464
- gen4n_win2022: "gen4n_win2022",
465
- gen5n_high: "gen5n_high",
466
- gen5n_ultra: "gen5n_ultra",
467
- gen5n_win2022: "gen5n_win2022"
468
- };
469
- var StreamGroupStatus = {
470
- ACTIVATING: "ACTIVATING",
471
- ACTIVE: "ACTIVE",
472
- ACTIVE_WITH_ERRORS: "ACTIVE_WITH_ERRORS",
473
- DELETING: "DELETING",
474
- ERROR: "ERROR",
475
- UPDATING_LOCATIONS: "UPDATING_LOCATIONS"
476
- };
477
- var StreamGroupStatusReason = {
478
- INTERNAL_ERROR: "internalError",
479
- NO_AVAILABLE_INSTANCES: "noAvailableInstances"
480
- };
481
- var ExportFilesStatus = {
482
- FAILED: "FAILED",
483
- PENDING: "PENDING",
484
- SUCCEEDED: "SUCCEEDED"
485
- };
486
- var Protocol = {
487
- WEBRTC: "WebRTC"
488
- };
489
- var StreamSessionStatus = {
490
- ACTIVATING: "ACTIVATING",
491
- ACTIVE: "ACTIVE",
492
- CONNECTED: "CONNECTED",
493
- ERROR: "ERROR",
494
- PENDING_CLIENT_RECONNECTION: "PENDING_CLIENT_RECONNECTION",
495
- RECONNECTING: "RECONNECTING",
496
- TERMINATED: "TERMINATED",
497
- TERMINATING: "TERMINATING"
498
- };
499
- var StreamSessionStatusReason = {
500
- APP_LOG_S3_DESTINATION_ERROR: "applicationLogS3DestinationError",
501
- INTERNAL_ERROR: "internalError",
502
- INVALID_SIGNAL_REQUEST: "invalidSignalRequest",
503
- PLACEMENT_TIMEOUT: "placementTimeout"
504
- };
505
- var CreateStreamSessionConnectionInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
506
- ...obj,
507
- ...obj.SignalRequest && { SignalRequest: import_smithy_client.SENSITIVE_STRING }
508
- }), "CreateStreamSessionConnectionInputFilterSensitiveLog");
509
- var CreateStreamSessionConnectionOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
510
- ...obj,
511
- ...obj.SignalResponse && { SignalResponse: import_smithy_client.SENSITIVE_STRING }
512
- }), "CreateStreamSessionConnectionOutputFilterSensitiveLog");
513
- var GetStreamSessionOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
514
- ...obj,
515
- ...obj.SignalRequest && { SignalRequest: import_smithy_client.SENSITIVE_STRING },
516
- ...obj.SignalResponse && { SignalResponse: import_smithy_client.SENSITIVE_STRING }
517
- }), "GetStreamSessionOutputFilterSensitiveLog");
518
- var StartStreamSessionInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
519
- ...obj,
520
- ...obj.SignalRequest && { SignalRequest: import_smithy_client.SENSITIVE_STRING }
521
- }), "StartStreamSessionInputFilterSensitiveLog");
522
- var StartStreamSessionOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
523
- ...obj,
524
- ...obj.SignalRequest && { SignalRequest: import_smithy_client.SENSITIVE_STRING },
525
- ...obj.SignalResponse && { SignalResponse: import_smithy_client.SENSITIVE_STRING }
526
- }), "StartStreamSessionOutputFilterSensitiveLog");
527
-
528
- // src/protocols/Aws_restJson1.ts
529
- var se_AddStreamGroupLocationsCommand = /* @__PURE__ */ __name(async (input, context) => {
530
- const b = (0, import_core.requestBuilder)(input, context);
531
- const headers = {
532
- "content-type": "application/json"
533
- };
534
- b.bp("/streamgroups/{Identifier}/locations");
535
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
536
- let body;
537
- body = JSON.stringify(
538
- (0, import_smithy_client.take)(input, {
539
- LocationConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "LocationConfigurations")
540
- })
541
- );
542
- b.m("POST").h(headers).b(body);
543
- return b.build();
544
- }, "se_AddStreamGroupLocationsCommand");
545
- var se_AssociateApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
546
- const b = (0, import_core.requestBuilder)(input, context);
547
- const headers = {
548
- "content-type": "application/json"
549
- };
550
- b.bp("/streamgroups/{Identifier}/associations");
551
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
552
- let body;
553
- body = JSON.stringify(
554
- (0, import_smithy_client.take)(input, {
555
- ApplicationIdentifiers: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ApplicationIdentifiers")
556
- })
557
- );
558
- b.m("POST").h(headers).b(body);
559
- return b.build();
560
- }, "se_AssociateApplicationsCommand");
561
- var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
562
- const b = (0, import_core.requestBuilder)(input, context);
563
- const headers = {
564
- "content-type": "application/json"
565
- };
566
- b.bp("/applications");
567
- let body;
568
- body = JSON.stringify(
569
- (0, import_smithy_client.take)(input, {
570
- ApplicationLogOutputUri: [],
571
- ApplicationLogPaths: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ApplicationLogPaths"),
572
- ApplicationSourceUri: [],
573
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
574
- Description: [],
575
- ExecutablePath: [],
576
- RuntimeEnvironment: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "RuntimeEnvironment"),
577
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
578
- })
579
- );
580
- b.m("POST").h(headers).b(body);
581
- return b.build();
582
- }, "se_CreateApplicationCommand");
583
- var se_CreateStreamGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
584
- const b = (0, import_core.requestBuilder)(input, context);
585
- const headers = {
586
- "content-type": "application/json"
587
- };
588
- b.bp("/streamgroups");
589
- let body;
590
- body = JSON.stringify(
591
- (0, import_smithy_client.take)(input, {
592
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
593
- DefaultApplicationIdentifier: [],
594
- Description: [],
595
- LocationConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "LocationConfigurations"),
596
- StreamClass: [],
597
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
598
- })
599
- );
600
- b.m("POST").h(headers).b(body);
601
- return b.build();
602
- }, "se_CreateStreamGroupCommand");
603
- var se_CreateStreamSessionConnectionCommand = /* @__PURE__ */ __name(async (input, context) => {
604
- const b = (0, import_core.requestBuilder)(input, context);
605
- const headers = {
606
- "content-type": "application/json"
607
- };
608
- b.bp("/streamgroups/{Identifier}/streamsessions/{StreamSessionIdentifier}/connections");
609
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
610
- b.p("StreamSessionIdentifier", () => input.StreamSessionIdentifier, "{StreamSessionIdentifier}", false);
611
- let body;
612
- body = JSON.stringify(
613
- (0, import_smithy_client.take)(input, {
614
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
615
- SignalRequest: []
616
- })
617
- );
618
- b.m("POST").h(headers).b(body);
619
- return b.build();
620
- }, "se_CreateStreamSessionConnectionCommand");
621
- var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
622
- const b = (0, import_core.requestBuilder)(input, context);
623
- const headers = {};
624
- b.bp("/applications/{Identifier}");
625
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
626
- let body;
627
- b.m("DELETE").h(headers).b(body);
628
- return b.build();
629
- }, "se_DeleteApplicationCommand");
630
- var se_DeleteStreamGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
631
- const b = (0, import_core.requestBuilder)(input, context);
632
- const headers = {};
633
- b.bp("/streamgroups/{Identifier}");
634
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
635
- let body;
636
- b.m("DELETE").h(headers).b(body);
637
- return b.build();
638
- }, "se_DeleteStreamGroupCommand");
639
- var se_DisassociateApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
640
- const b = (0, import_core.requestBuilder)(input, context);
641
- const headers = {
642
- "content-type": "application/json"
643
- };
644
- b.bp("/streamgroups/{Identifier}/disassociations");
645
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
646
- let body;
647
- body = JSON.stringify(
648
- (0, import_smithy_client.take)(input, {
649
- ApplicationIdentifiers: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ApplicationIdentifiers")
650
- })
651
- );
652
- b.m("POST").h(headers).b(body);
653
- return b.build();
654
- }, "se_DisassociateApplicationsCommand");
655
- var se_ExportStreamSessionFilesCommand = /* @__PURE__ */ __name(async (input, context) => {
656
- const b = (0, import_core.requestBuilder)(input, context);
657
- const headers = {
658
- "content-type": "application/json"
659
- };
660
- b.bp("/streamgroups/{Identifier}/streamsessions/{StreamSessionIdentifier}/exportfiles");
661
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
662
- b.p("StreamSessionIdentifier", () => input.StreamSessionIdentifier, "{StreamSessionIdentifier}", false);
663
- let body;
664
- body = JSON.stringify(
665
- (0, import_smithy_client.take)(input, {
666
- OutputUri: []
667
- })
668
- );
669
- b.m("PUT").h(headers).b(body);
670
- return b.build();
671
- }, "se_ExportStreamSessionFilesCommand");
672
- var se_GetApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
673
- const b = (0, import_core.requestBuilder)(input, context);
674
- const headers = {};
675
- b.bp("/applications/{Identifier}");
676
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
677
- let body;
678
- b.m("GET").h(headers).b(body);
679
- return b.build();
680
- }, "se_GetApplicationCommand");
681
- var se_GetStreamGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
682
- const b = (0, import_core.requestBuilder)(input, context);
683
- const headers = {};
684
- b.bp("/streamgroups/{Identifier}");
685
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
686
- let body;
687
- b.m("GET").h(headers).b(body);
688
- return b.build();
689
- }, "se_GetStreamGroupCommand");
690
- var se_GetStreamSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
691
- const b = (0, import_core.requestBuilder)(input, context);
692
- const headers = {};
693
- b.bp("/streamgroups/{Identifier}/streamsessions/{StreamSessionIdentifier}");
694
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
695
- b.p("StreamSessionIdentifier", () => input.StreamSessionIdentifier, "{StreamSessionIdentifier}", false);
696
- let body;
697
- b.m("GET").h(headers).b(body);
698
- return b.build();
699
- }, "se_GetStreamSessionCommand");
700
- var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
701
- const b = (0, import_core.requestBuilder)(input, context);
702
- const headers = {};
703
- b.bp("/applications");
704
- const query = (0, import_smithy_client.map)({
705
- [_NT]: [, input[_NT]],
706
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
707
- });
708
- let body;
709
- b.m("GET").h(headers).q(query).b(body);
710
- return b.build();
711
- }, "se_ListApplicationsCommand");
712
- var se_ListStreamGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
713
- const b = (0, import_core.requestBuilder)(input, context);
714
- const headers = {};
715
- b.bp("/streamgroups");
716
- const query = (0, import_smithy_client.map)({
717
- [_NT]: [, input[_NT]],
718
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
719
- });
720
- let body;
721
- b.m("GET").h(headers).q(query).b(body);
722
- return b.build();
723
- }, "se_ListStreamGroupsCommand");
724
- var se_ListStreamSessionsCommand = /* @__PURE__ */ __name(async (input, context) => {
725
- const b = (0, import_core.requestBuilder)(input, context);
726
- const headers = {};
727
- b.bp("/streamgroups/{Identifier}/streamsessions");
728
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
729
- const query = (0, import_smithy_client.map)({
730
- [_S]: [, input[_S]],
731
- [_EFS]: [, input[_EFS]],
732
- [_NT]: [, input[_NT]],
733
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
734
- });
735
- let body;
736
- b.m("GET").h(headers).q(query).b(body);
737
- return b.build();
738
- }, "se_ListStreamSessionsCommand");
739
- var se_ListStreamSessionsByAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
740
- const b = (0, import_core.requestBuilder)(input, context);
741
- const headers = {};
742
- b.bp("/streamsessions");
743
- const query = (0, import_smithy_client.map)({
744
- [_S]: [, input[_S]],
745
- [_EFS]: [, input[_EFS]],
746
- [_NT]: [, input[_NT]],
747
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
748
- });
749
- let body;
750
- b.m("GET").h(headers).q(query).b(body);
751
- return b.build();
752
- }, "se_ListStreamSessionsByAccountCommand");
753
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
754
- const b = (0, import_core.requestBuilder)(input, context);
755
- const headers = {};
756
- b.bp("/tags/{ResourceArn}");
757
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
758
- let body;
759
- b.m("GET").h(headers).b(body);
760
- return b.build();
761
- }, "se_ListTagsForResourceCommand");
762
- var se_RemoveStreamGroupLocationsCommand = /* @__PURE__ */ __name(async (input, context) => {
763
- const b = (0, import_core.requestBuilder)(input, context);
764
- const headers = {};
765
- b.bp("/streamgroups/{Identifier}/locations");
766
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
767
- const query = (0, import_smithy_client.map)({
768
- [_l]: [(0, import_smithy_client.expectNonNull)(input.Locations, `Locations`) != null, () => input[_L] || []]
769
- });
770
- let body;
771
- b.m("DELETE").h(headers).q(query).b(body);
772
- return b.build();
773
- }, "se_RemoveStreamGroupLocationsCommand");
774
- var se_StartStreamSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
775
- const b = (0, import_core.requestBuilder)(input, context);
776
- const headers = {
777
- "content-type": "application/json"
778
- };
779
- b.bp("/streamgroups/{Identifier}/streamsessions");
780
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
781
- let body;
782
- body = JSON.stringify(
783
- (0, import_smithy_client.take)(input, {
784
- AdditionalEnvironmentVariables: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "AdditionalEnvironmentVariables"),
785
- AdditionalLaunchArgs: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "AdditionalLaunchArgs"),
786
- ApplicationIdentifier: [],
787
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
788
- ConnectionTimeoutSeconds: [],
789
- Description: [],
790
- Locations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Locations"),
791
- Protocol: [],
792
- SessionLengthSeconds: [],
793
- SignalRequest: [],
794
- UserId: []
795
- })
796
- );
797
- b.m("POST").h(headers).b(body);
798
- return b.build();
799
- }, "se_StartStreamSessionCommand");
800
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
801
- const b = (0, import_core.requestBuilder)(input, context);
802
- const headers = {
803
- "content-type": "application/json"
804
- };
805
- b.bp("/tags/{ResourceArn}");
806
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
807
- let body;
808
- body = JSON.stringify(
809
- (0, import_smithy_client.take)(input, {
810
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
811
- })
812
- );
813
- b.m("POST").h(headers).b(body);
814
- return b.build();
815
- }, "se_TagResourceCommand");
816
- var se_TerminateStreamSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
817
- const b = (0, import_core.requestBuilder)(input, context);
818
- const headers = {};
819
- b.bp("/streamgroups/{Identifier}/streamsessions/{StreamSessionIdentifier}");
820
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
821
- b.p("StreamSessionIdentifier", () => input.StreamSessionIdentifier, "{StreamSessionIdentifier}", false);
822
- let body;
823
- b.m("DELETE").h(headers).b(body);
824
- return b.build();
825
- }, "se_TerminateStreamSessionCommand");
826
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
827
- const b = (0, import_core.requestBuilder)(input, context);
828
- const headers = {};
829
- b.bp("/tags/{ResourceArn}");
830
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
831
- const query = (0, import_smithy_client.map)({
832
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
833
- });
834
- let body;
835
- b.m("DELETE").h(headers).q(query).b(body);
836
- return b.build();
837
- }, "se_UntagResourceCommand");
838
- var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
839
- const b = (0, import_core.requestBuilder)(input, context);
840
- const headers = {
841
- "content-type": "application/json"
842
- };
843
- b.bp("/applications/{Identifier}");
844
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
845
- let body;
846
- body = JSON.stringify(
847
- (0, import_smithy_client.take)(input, {
848
- ApplicationLogOutputUri: [],
849
- ApplicationLogPaths: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ApplicationLogPaths"),
850
- Description: []
851
- })
852
- );
853
- b.m("PATCH").h(headers).b(body);
854
- return b.build();
855
- }, "se_UpdateApplicationCommand");
856
- var se_UpdateStreamGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
857
- const b = (0, import_core.requestBuilder)(input, context);
858
- const headers = {
859
- "content-type": "application/json"
860
- };
861
- b.bp("/streamgroups/{Identifier}");
862
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
863
- let body;
864
- body = JSON.stringify(
865
- (0, import_smithy_client.take)(input, {
866
- DefaultApplicationIdentifier: [],
867
- Description: [],
868
- LocationConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "LocationConfigurations")
869
- })
870
- );
871
- b.m("PATCH").h(headers).b(body);
872
- return b.build();
873
- }, "se_UpdateStreamGroupCommand");
874
- var de_AddStreamGroupLocationsCommand = /* @__PURE__ */ __name(async (output, context) => {
875
- if (output.statusCode !== 200 && output.statusCode >= 300) {
876
- return de_CommandError(output, context);
877
- }
878
- const contents = (0, import_smithy_client.map)({
879
- $metadata: deserializeMetadata(output)
880
- });
881
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
882
- const doc = (0, import_smithy_client.take)(data, {
883
- Identifier: import_smithy_client.expectString,
884
- Locations: import_smithy_client._json
885
- });
886
- Object.assign(contents, doc);
887
- return contents;
888
- }, "de_AddStreamGroupLocationsCommand");
889
- var de_AssociateApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
890
- if (output.statusCode !== 200 && output.statusCode >= 300) {
891
- return de_CommandError(output, context);
892
- }
893
- const contents = (0, import_smithy_client.map)({
894
- $metadata: deserializeMetadata(output)
895
- });
896
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
897
- const doc = (0, import_smithy_client.take)(data, {
898
- ApplicationArns: import_smithy_client._json,
899
- Arn: import_smithy_client.expectString
900
- });
901
- Object.assign(contents, doc);
902
- return contents;
903
- }, "de_AssociateApplicationsCommand");
904
- var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
905
- if (output.statusCode !== 201 && output.statusCode >= 300) {
906
- return de_CommandError(output, context);
907
- }
908
- const contents = (0, import_smithy_client.map)({
909
- $metadata: deserializeMetadata(output)
910
- });
911
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
912
- const doc = (0, import_smithy_client.take)(data, {
913
- ApplicationLogOutputUri: import_smithy_client.expectString,
914
- ApplicationLogPaths: import_smithy_client._json,
915
- ApplicationSourceUri: import_smithy_client.expectString,
916
- Arn: import_smithy_client.expectString,
917
- AssociatedStreamGroups: import_smithy_client._json,
918
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
919
- Description: import_smithy_client.expectString,
920
- ExecutablePath: import_smithy_client.expectString,
921
- Id: import_smithy_client.expectString,
922
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
923
- ReplicationStatuses: import_smithy_client._json,
924
- RuntimeEnvironment: import_smithy_client._json,
925
- Status: import_smithy_client.expectString,
926
- StatusReason: import_smithy_client.expectString
927
- });
928
- Object.assign(contents, doc);
929
- return contents;
930
- }, "de_CreateApplicationCommand");
931
- var de_CreateStreamGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
932
- if (output.statusCode !== 201 && output.statusCode >= 300) {
933
- return de_CommandError(output, context);
934
- }
935
- const contents = (0, import_smithy_client.map)({
936
- $metadata: deserializeMetadata(output)
937
- });
938
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
939
- const doc = (0, import_smithy_client.take)(data, {
940
- Arn: import_smithy_client.expectString,
941
- AssociatedApplications: import_smithy_client._json,
942
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
943
- DefaultApplication: import_smithy_client._json,
944
- Description: import_smithy_client.expectString,
945
- Id: import_smithy_client.expectString,
946
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
947
- LocationStates: import_smithy_client._json,
948
- Status: import_smithy_client.expectString,
949
- StatusReason: import_smithy_client.expectString,
950
- StreamClass: import_smithy_client.expectString
951
- });
952
- Object.assign(contents, doc);
953
- return contents;
954
- }, "de_CreateStreamGroupCommand");
955
- var de_CreateStreamSessionConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
956
- if (output.statusCode !== 200 && output.statusCode >= 300) {
957
- return de_CommandError(output, context);
958
- }
959
- const contents = (0, import_smithy_client.map)({
960
- $metadata: deserializeMetadata(output)
961
- });
962
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
963
- const doc = (0, import_smithy_client.take)(data, {
964
- SignalResponse: import_smithy_client.expectString
965
- });
966
- Object.assign(contents, doc);
967
- return contents;
968
- }, "de_CreateStreamSessionConnectionCommand");
969
- var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
970
- if (output.statusCode !== 204 && output.statusCode >= 300) {
971
- return de_CommandError(output, context);
972
- }
973
- const contents = (0, import_smithy_client.map)({
974
- $metadata: deserializeMetadata(output)
975
- });
976
- await (0, import_smithy_client.collectBody)(output.body, context);
977
- return contents;
978
- }, "de_DeleteApplicationCommand");
979
- var de_DeleteStreamGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
980
- if (output.statusCode !== 204 && output.statusCode >= 300) {
981
- return de_CommandError(output, context);
982
- }
983
- const contents = (0, import_smithy_client.map)({
984
- $metadata: deserializeMetadata(output)
985
- });
986
- await (0, import_smithy_client.collectBody)(output.body, context);
987
- return contents;
988
- }, "de_DeleteStreamGroupCommand");
989
- var de_DisassociateApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
990
- if (output.statusCode !== 200 && output.statusCode >= 300) {
991
- return de_CommandError(output, context);
992
- }
993
- const contents = (0, import_smithy_client.map)({
994
- $metadata: deserializeMetadata(output)
995
- });
996
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
997
- const doc = (0, import_smithy_client.take)(data, {
998
- ApplicationArns: import_smithy_client._json,
999
- Arn: import_smithy_client.expectString
1000
- });
1001
- Object.assign(contents, doc);
1002
- return contents;
1003
- }, "de_DisassociateApplicationsCommand");
1004
- var de_ExportStreamSessionFilesCommand = /* @__PURE__ */ __name(async (output, context) => {
1005
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1006
- return de_CommandError(output, context);
1007
- }
1008
- const contents = (0, import_smithy_client.map)({
1009
- $metadata: deserializeMetadata(output)
1010
- });
1011
- await (0, import_smithy_client.collectBody)(output.body, context);
1012
- return contents;
1013
- }, "de_ExportStreamSessionFilesCommand");
1014
- var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1015
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1016
- return de_CommandError(output, context);
1017
- }
1018
- const contents = (0, import_smithy_client.map)({
1019
- $metadata: deserializeMetadata(output)
1020
- });
1021
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1022
- const doc = (0, import_smithy_client.take)(data, {
1023
- ApplicationLogOutputUri: import_smithy_client.expectString,
1024
- ApplicationLogPaths: import_smithy_client._json,
1025
- ApplicationSourceUri: import_smithy_client.expectString,
1026
- Arn: import_smithy_client.expectString,
1027
- AssociatedStreamGroups: import_smithy_client._json,
1028
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1029
- Description: import_smithy_client.expectString,
1030
- ExecutablePath: import_smithy_client.expectString,
1031
- Id: import_smithy_client.expectString,
1032
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1033
- ReplicationStatuses: import_smithy_client._json,
1034
- RuntimeEnvironment: import_smithy_client._json,
1035
- Status: import_smithy_client.expectString,
1036
- StatusReason: import_smithy_client.expectString
1037
- });
1038
- Object.assign(contents, doc);
1039
- return contents;
1040
- }, "de_GetApplicationCommand");
1041
- var de_GetStreamGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1042
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1043
- return de_CommandError(output, context);
1044
- }
1045
- const contents = (0, import_smithy_client.map)({
1046
- $metadata: deserializeMetadata(output)
1047
- });
1048
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1049
- const doc = (0, import_smithy_client.take)(data, {
1050
- Arn: import_smithy_client.expectString,
1051
- AssociatedApplications: import_smithy_client._json,
1052
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1053
- DefaultApplication: import_smithy_client._json,
1054
- Description: import_smithy_client.expectString,
1055
- Id: import_smithy_client.expectString,
1056
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1057
- LocationStates: import_smithy_client._json,
1058
- Status: import_smithy_client.expectString,
1059
- StatusReason: import_smithy_client.expectString,
1060
- StreamClass: import_smithy_client.expectString
1061
- });
1062
- Object.assign(contents, doc);
1063
- return contents;
1064
- }, "de_GetStreamGroupCommand");
1065
- var de_GetStreamSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1066
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1067
- return de_CommandError(output, context);
1068
- }
1069
- const contents = (0, import_smithy_client.map)({
1070
- $metadata: deserializeMetadata(output)
1071
- });
1072
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1073
- const doc = (0, import_smithy_client.take)(data, {
1074
- AdditionalEnvironmentVariables: import_smithy_client._json,
1075
- AdditionalLaunchArgs: import_smithy_client._json,
1076
- ApplicationArn: import_smithy_client.expectString,
1077
- Arn: import_smithy_client.expectString,
1078
- ConnectionTimeoutSeconds: import_smithy_client.expectInt32,
1079
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1080
- Description: import_smithy_client.expectString,
1081
- ExportFilesMetadata: import_smithy_client._json,
1082
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1083
- Location: import_smithy_client.expectString,
1084
- LogFileLocationUri: import_smithy_client.expectString,
1085
- Protocol: import_smithy_client.expectString,
1086
- SessionLengthSeconds: import_smithy_client.expectInt32,
1087
- SignalRequest: import_smithy_client.expectString,
1088
- SignalResponse: import_smithy_client.expectString,
1089
- Status: import_smithy_client.expectString,
1090
- StatusReason: import_smithy_client.expectString,
1091
- StreamGroupId: import_smithy_client.expectString,
1092
- UserId: import_smithy_client.expectString,
1093
- WebSdkProtocolUrl: import_smithy_client.expectString
1094
- });
1095
- Object.assign(contents, doc);
1096
- return contents;
1097
- }, "de_GetStreamSessionCommand");
1098
- var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1099
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1100
- return de_CommandError(output, context);
1101
- }
1102
- const contents = (0, import_smithy_client.map)({
1103
- $metadata: deserializeMetadata(output)
1104
- });
1105
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1106
- const doc = (0, import_smithy_client.take)(data, {
1107
- Items: /* @__PURE__ */ __name((_) => de_ApplicationSummaryList(_, context), "Items"),
1108
- NextToken: import_smithy_client.expectString
1109
- });
1110
- Object.assign(contents, doc);
1111
- return contents;
1112
- }, "de_ListApplicationsCommand");
1113
- var de_ListStreamGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1114
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1115
- return de_CommandError(output, context);
1116
- }
1117
- const contents = (0, import_smithy_client.map)({
1118
- $metadata: deserializeMetadata(output)
1119
- });
1120
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1121
- const doc = (0, import_smithy_client.take)(data, {
1122
- Items: /* @__PURE__ */ __name((_) => de_StreamGroupSummaryList(_, context), "Items"),
1123
- NextToken: import_smithy_client.expectString
1124
- });
1125
- Object.assign(contents, doc);
1126
- return contents;
1127
- }, "de_ListStreamGroupsCommand");
1128
- var de_ListStreamSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1129
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1130
- return de_CommandError(output, context);
1131
- }
1132
- const contents = (0, import_smithy_client.map)({
1133
- $metadata: deserializeMetadata(output)
1134
- });
1135
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1136
- const doc = (0, import_smithy_client.take)(data, {
1137
- Items: /* @__PURE__ */ __name((_) => de_StreamSessionSummaryList(_, context), "Items"),
1138
- NextToken: import_smithy_client.expectString
1139
- });
1140
- Object.assign(contents, doc);
1141
- return contents;
1142
- }, "de_ListStreamSessionsCommand");
1143
- var de_ListStreamSessionsByAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
1144
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1145
- return de_CommandError(output, context);
1146
- }
1147
- const contents = (0, import_smithy_client.map)({
1148
- $metadata: deserializeMetadata(output)
1149
- });
1150
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1151
- const doc = (0, import_smithy_client.take)(data, {
1152
- Items: /* @__PURE__ */ __name((_) => de_StreamSessionSummaryList(_, context), "Items"),
1153
- NextToken: import_smithy_client.expectString
1154
- });
1155
- Object.assign(contents, doc);
1156
- return contents;
1157
- }, "de_ListStreamSessionsByAccountCommand");
1158
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1159
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1160
- return de_CommandError(output, context);
1161
- }
1162
- const contents = (0, import_smithy_client.map)({
1163
- $metadata: deserializeMetadata(output)
1164
- });
1165
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1166
- const doc = (0, import_smithy_client.take)(data, {
1167
- Tags: import_smithy_client._json
1168
- });
1169
- Object.assign(contents, doc);
1170
- return contents;
1171
- }, "de_ListTagsForResourceCommand");
1172
- var de_RemoveStreamGroupLocationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1173
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1174
- return de_CommandError(output, context);
1175
- }
1176
- const contents = (0, import_smithy_client.map)({
1177
- $metadata: deserializeMetadata(output)
1178
- });
1179
- await (0, import_smithy_client.collectBody)(output.body, context);
1180
- return contents;
1181
- }, "de_RemoveStreamGroupLocationsCommand");
1182
- var de_StartStreamSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1183
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1184
- return de_CommandError(output, context);
1185
- }
1186
- const contents = (0, import_smithy_client.map)({
1187
- $metadata: deserializeMetadata(output)
1188
- });
1189
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1190
- const doc = (0, import_smithy_client.take)(data, {
1191
- AdditionalEnvironmentVariables: import_smithy_client._json,
1192
- AdditionalLaunchArgs: import_smithy_client._json,
1193
- ApplicationArn: import_smithy_client.expectString,
1194
- Arn: import_smithy_client.expectString,
1195
- ConnectionTimeoutSeconds: import_smithy_client.expectInt32,
1196
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1197
- Description: import_smithy_client.expectString,
1198
- ExportFilesMetadata: import_smithy_client._json,
1199
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1200
- Location: import_smithy_client.expectString,
1201
- LogFileLocationUri: import_smithy_client.expectString,
1202
- Protocol: import_smithy_client.expectString,
1203
- SessionLengthSeconds: import_smithy_client.expectInt32,
1204
- SignalRequest: import_smithy_client.expectString,
1205
- SignalResponse: import_smithy_client.expectString,
1206
- Status: import_smithy_client.expectString,
1207
- StatusReason: import_smithy_client.expectString,
1208
- StreamGroupId: import_smithy_client.expectString,
1209
- UserId: import_smithy_client.expectString,
1210
- WebSdkProtocolUrl: import_smithy_client.expectString
1211
- });
1212
- Object.assign(contents, doc);
1213
- return contents;
1214
- }, "de_StartStreamSessionCommand");
1215
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1216
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1217
- return de_CommandError(output, context);
1218
- }
1219
- const contents = (0, import_smithy_client.map)({
1220
- $metadata: deserializeMetadata(output)
1221
- });
1222
- await (0, import_smithy_client.collectBody)(output.body, context);
1223
- return contents;
1224
- }, "de_TagResourceCommand");
1225
- var de_TerminateStreamSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1226
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1227
- return de_CommandError(output, context);
1228
- }
1229
- const contents = (0, import_smithy_client.map)({
1230
- $metadata: deserializeMetadata(output)
1231
- });
1232
- await (0, import_smithy_client.collectBody)(output.body, context);
1233
- return contents;
1234
- }, "de_TerminateStreamSessionCommand");
1235
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1236
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1237
- return de_CommandError(output, context);
1238
- }
1239
- const contents = (0, import_smithy_client.map)({
1240
- $metadata: deserializeMetadata(output)
1241
- });
1242
- await (0, import_smithy_client.collectBody)(output.body, context);
1243
- return contents;
1244
- }, "de_UntagResourceCommand");
1245
- var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1246
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1247
- return de_CommandError(output, context);
1248
- }
1249
- const contents = (0, import_smithy_client.map)({
1250
- $metadata: deserializeMetadata(output)
1251
- });
1252
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1253
- const doc = (0, import_smithy_client.take)(data, {
1254
- ApplicationLogOutputUri: import_smithy_client.expectString,
1255
- ApplicationLogPaths: import_smithy_client._json,
1256
- ApplicationSourceUri: import_smithy_client.expectString,
1257
- Arn: import_smithy_client.expectString,
1258
- AssociatedStreamGroups: import_smithy_client._json,
1259
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1260
- Description: import_smithy_client.expectString,
1261
- ExecutablePath: import_smithy_client.expectString,
1262
- Id: import_smithy_client.expectString,
1263
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1264
- ReplicationStatuses: import_smithy_client._json,
1265
- RuntimeEnvironment: import_smithy_client._json,
1266
- Status: import_smithy_client.expectString,
1267
- StatusReason: import_smithy_client.expectString
1268
- });
1269
- Object.assign(contents, doc);
1270
- return contents;
1271
- }, "de_UpdateApplicationCommand");
1272
- var de_UpdateStreamGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1273
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1274
- return de_CommandError(output, context);
1275
- }
1276
- const contents = (0, import_smithy_client.map)({
1277
- $metadata: deserializeMetadata(output)
1278
- });
1279
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1280
- const doc = (0, import_smithy_client.take)(data, {
1281
- Arn: import_smithy_client.expectString,
1282
- AssociatedApplications: import_smithy_client._json,
1283
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1284
- DefaultApplication: import_smithy_client._json,
1285
- Description: import_smithy_client.expectString,
1286
- Id: import_smithy_client.expectString,
1287
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1288
- LocationStates: import_smithy_client._json,
1289
- Status: import_smithy_client.expectString,
1290
- StatusReason: import_smithy_client.expectString,
1291
- StreamClass: import_smithy_client.expectString
1292
- });
1293
- Object.assign(contents, doc);
1294
- return contents;
1295
- }, "de_UpdateStreamGroupCommand");
1296
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1297
- const parsedOutput = {
1298
- ...output,
1299
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1300
- };
1301
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1302
- switch (errorCode) {
1303
- case "AccessDeniedException":
1304
- case "com.amazonaws.gameliftstreams#AccessDeniedException":
1305
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1306
- case "InternalServerException":
1307
- case "com.amazonaws.gameliftstreams#InternalServerException":
1308
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1309
- case "ResourceNotFoundException":
1310
- case "com.amazonaws.gameliftstreams#ResourceNotFoundException":
1311
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1312
- case "ServiceQuotaExceededException":
1313
- case "com.amazonaws.gameliftstreams#ServiceQuotaExceededException":
1314
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1315
- case "ThrottlingException":
1316
- case "com.amazonaws.gameliftstreams#ThrottlingException":
1317
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1318
- case "ValidationException":
1319
- case "com.amazonaws.gameliftstreams#ValidationException":
1320
- throw await de_ValidationExceptionRes(parsedOutput, context);
1321
- case "ConflictException":
1322
- case "com.amazonaws.gameliftstreams#ConflictException":
1323
- throw await de_ConflictExceptionRes(parsedOutput, context);
1324
- default:
1325
- const parsedBody = parsedOutput.body;
1326
- return throwDefaultError({
1327
- output,
1328
- parsedBody,
1329
- errorCode
1330
- });
1331
- }
1332
- }, "de_CommandError");
1333
- var throwDefaultError = (0, import_smithy_client.withBaseException)(GameLiftStreamsServiceException);
1334
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1335
- const contents = (0, import_smithy_client.map)({});
1336
- const data = parsedOutput.body;
1337
- const doc = (0, import_smithy_client.take)(data, {
1338
- Message: import_smithy_client.expectString
1339
- });
1340
- Object.assign(contents, doc);
1341
- const exception = new AccessDeniedException({
1342
- $metadata: deserializeMetadata(parsedOutput),
1343
- ...contents
1344
- });
1345
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1346
- }, "de_AccessDeniedExceptionRes");
1347
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1348
- const contents = (0, import_smithy_client.map)({});
1349
- const data = parsedOutput.body;
1350
- const doc = (0, import_smithy_client.take)(data, {
1351
- Message: import_smithy_client.expectString
1352
- });
1353
- Object.assign(contents, doc);
1354
- const exception = new ConflictException({
1355
- $metadata: deserializeMetadata(parsedOutput),
1356
- ...contents
1357
- });
1358
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1359
- }, "de_ConflictExceptionRes");
1360
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1361
- const contents = (0, import_smithy_client.map)({});
1362
- const data = parsedOutput.body;
1363
- const doc = (0, import_smithy_client.take)(data, {
1364
- Message: import_smithy_client.expectString
1365
- });
1366
- Object.assign(contents, doc);
1367
- const exception = new InternalServerException({
1368
- $metadata: deserializeMetadata(parsedOutput),
1369
- ...contents
1370
- });
1371
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1372
- }, "de_InternalServerExceptionRes");
1373
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1374
- const contents = (0, import_smithy_client.map)({});
1375
- const data = parsedOutput.body;
1376
- const doc = (0, import_smithy_client.take)(data, {
1377
- Message: import_smithy_client.expectString
1378
- });
1379
- Object.assign(contents, doc);
1380
- const exception = new ResourceNotFoundException({
1381
- $metadata: deserializeMetadata(parsedOutput),
1382
- ...contents
1383
- });
1384
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1385
- }, "de_ResourceNotFoundExceptionRes");
1386
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1387
- const contents = (0, import_smithy_client.map)({});
1388
- const data = parsedOutput.body;
1389
- const doc = (0, import_smithy_client.take)(data, {
1390
- Message: import_smithy_client.expectString
1391
- });
1392
- Object.assign(contents, doc);
1393
- const exception = new ServiceQuotaExceededException({
1394
- $metadata: deserializeMetadata(parsedOutput),
1395
- ...contents
1396
- });
1397
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1398
- }, "de_ServiceQuotaExceededExceptionRes");
1399
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1400
- const contents = (0, import_smithy_client.map)({});
1401
- const data = parsedOutput.body;
1402
- const doc = (0, import_smithy_client.take)(data, {
1403
- Message: import_smithy_client.expectString
1404
- });
1405
- Object.assign(contents, doc);
1406
- const exception = new ThrottlingException({
1407
- $metadata: deserializeMetadata(parsedOutput),
1408
- ...contents
1409
- });
1410
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1411
- }, "de_ThrottlingExceptionRes");
1412
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1413
- const contents = (0, import_smithy_client.map)({});
1414
- const data = parsedOutput.body;
1415
- const doc = (0, import_smithy_client.take)(data, {
1416
- Message: import_smithy_client.expectString
1417
- });
1418
- Object.assign(contents, doc);
1419
- const exception = new ValidationException({
1420
- $metadata: deserializeMetadata(parsedOutput),
1421
- ...contents
1422
- });
1423
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1424
- }, "de_ValidationExceptionRes");
1425
- var de_ApplicationSummary = /* @__PURE__ */ __name((output, context) => {
1426
- return (0, import_smithy_client.take)(output, {
1427
- Arn: import_smithy_client.expectString,
1428
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1429
- Description: import_smithy_client.expectString,
1430
- Id: import_smithy_client.expectString,
1431
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1432
- RuntimeEnvironment: import_smithy_client._json,
1433
- Status: import_smithy_client.expectString
1434
- });
1435
- }, "de_ApplicationSummary");
1436
- var de_ApplicationSummaryList = /* @__PURE__ */ __name((output, context) => {
1437
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1438
- return de_ApplicationSummary(entry, context);
1439
- });
1440
- return retVal;
1441
- }, "de_ApplicationSummaryList");
1442
- var de_StreamGroupSummary = /* @__PURE__ */ __name((output, context) => {
1443
- return (0, import_smithy_client.take)(output, {
1444
- Arn: import_smithy_client.expectString,
1445
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1446
- DefaultApplication: import_smithy_client._json,
1447
- Description: import_smithy_client.expectString,
1448
- Id: import_smithy_client.expectString,
1449
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1450
- Status: import_smithy_client.expectString,
1451
- StreamClass: import_smithy_client.expectString
1452
- });
1453
- }, "de_StreamGroupSummary");
1454
- var de_StreamGroupSummaryList = /* @__PURE__ */ __name((output, context) => {
1455
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1456
- return de_StreamGroupSummary(entry, context);
1457
- });
1458
- return retVal;
1459
- }, "de_StreamGroupSummaryList");
1460
- var de_StreamSessionSummary = /* @__PURE__ */ __name((output, context) => {
1461
- return (0, import_smithy_client.take)(output, {
1462
- ApplicationArn: import_smithy_client.expectString,
1463
- Arn: import_smithy_client.expectString,
1464
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1465
- ExportFilesMetadata: import_smithy_client._json,
1466
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1467
- Location: import_smithy_client.expectString,
1468
- Protocol: import_smithy_client.expectString,
1469
- Status: import_smithy_client.expectString,
1470
- UserId: import_smithy_client.expectString
1471
- });
1472
- }, "de_StreamSessionSummary");
1473
- var de_StreamSessionSummaryList = /* @__PURE__ */ __name((output, context) => {
1474
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1475
- return de_StreamSessionSummary(entry, context);
1476
- });
1477
- return retVal;
1478
- }, "de_StreamSessionSummaryList");
1479
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1480
- httpStatusCode: output.statusCode,
1481
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1482
- extendedRequestId: output.headers["x-amz-id-2"],
1483
- cfId: output.headers["x-amz-cf-id"]
1484
- }), "deserializeMetadata");
1485
- var _EFS = "ExportFilesStatus";
1486
- var _L = "Locations";
1487
- var _MR = "MaxResults";
1488
- var _NT = "NextToken";
1489
- var _S = "Status";
1490
- var _TK = "TagKeys";
1491
- var _l = "locations";
1492
- var _tK = "tagKeys";
1493
-
1494
- // src/commands/AddStreamGroupLocationsCommand.ts
1495
- var AddStreamGroupLocationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1496
- return [
1497
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1498
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1499
- ];
1500
- }).s("GameLiftStreams", "AddStreamGroupLocations", {}).n("GameLiftStreamsClient", "AddStreamGroupLocationsCommand").f(void 0, void 0).ser(se_AddStreamGroupLocationsCommand).de(de_AddStreamGroupLocationsCommand).build() {
1501
- static {
1502
- __name(this, "AddStreamGroupLocationsCommand");
1503
- }
221
+ const ApplicationStatusReason = {
222
+ ACCESS_DENIED: "accessDenied",
223
+ INTERNAL_ERROR: "internalError",
1504
224
  };
1505
-
1506
- // src/commands/AssociateApplicationsCommand.ts
1507
-
1508
-
1509
-
1510
- var AssociateApplicationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1511
- return [
1512
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1513
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1514
- ];
1515
- }).s("GameLiftStreams", "AssociateApplications", {}).n("GameLiftStreamsClient", "AssociateApplicationsCommand").f(void 0, void 0).ser(se_AssociateApplicationsCommand).de(de_AssociateApplicationsCommand).build() {
1516
- static {
1517
- __name(this, "AssociateApplicationsCommand");
1518
- }
225
+ class ConflictException extends GameLiftStreamsServiceException {
226
+ name = "ConflictException";
227
+ $fault = "client";
228
+ Message;
229
+ constructor(opts) {
230
+ super({
231
+ name: "ConflictException",
232
+ $fault: "client",
233
+ ...opts,
234
+ });
235
+ Object.setPrototypeOf(this, ConflictException.prototype);
236
+ this.Message = opts.Message;
237
+ }
238
+ }
239
+ const RuntimeEnvironmentType = {
240
+ PROTON: "PROTON",
241
+ UBUNTU: "UBUNTU",
242
+ WINDOWS: "WINDOWS",
1519
243
  };
1520
-
1521
- // src/commands/CreateApplicationCommand.ts
1522
-
1523
-
1524
-
1525
- var CreateApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1526
- return [
1527
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1528
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1529
- ];
1530
- }).s("GameLiftStreams", "CreateApplication", {}).n("GameLiftStreamsClient", "CreateApplicationCommand").f(void 0, void 0).ser(se_CreateApplicationCommand).de(de_CreateApplicationCommand).build() {
1531
- static {
1532
- __name(this, "CreateApplicationCommand");
1533
- }
244
+ const ReplicationStatusType = {
245
+ COMPLETED: "COMPLETED",
246
+ REPLICATING: "REPLICATING",
1534
247
  };
1535
-
1536
- // src/commands/CreateStreamGroupCommand.ts
1537
-
1538
-
1539
-
1540
- var CreateStreamGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1541
- return [
1542
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1543
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1544
- ];
1545
- }).s("GameLiftStreams", "CreateStreamGroup", {}).n("GameLiftStreamsClient", "CreateStreamGroupCommand").f(void 0, void 0).ser(se_CreateStreamGroupCommand).de(de_CreateStreamGroupCommand).build() {
1546
- static {
1547
- __name(this, "CreateStreamGroupCommand");
1548
- }
248
+ const StreamClass = {
249
+ gen4n_high: "gen4n_high",
250
+ gen4n_ultra: "gen4n_ultra",
251
+ gen4n_win2022: "gen4n_win2022",
252
+ gen5n_high: "gen5n_high",
253
+ gen5n_ultra: "gen5n_ultra",
254
+ gen5n_win2022: "gen5n_win2022",
1549
255
  };
1550
-
1551
- // src/commands/CreateStreamSessionConnectionCommand.ts
1552
-
1553
-
1554
-
1555
- var CreateStreamSessionConnectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1556
- return [
1557
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1558
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1559
- ];
1560
- }).s("GameLiftStreams", "CreateStreamSessionConnection", {}).n("GameLiftStreamsClient", "CreateStreamSessionConnectionCommand").f(CreateStreamSessionConnectionInputFilterSensitiveLog, CreateStreamSessionConnectionOutputFilterSensitiveLog).ser(se_CreateStreamSessionConnectionCommand).de(de_CreateStreamSessionConnectionCommand).build() {
1561
- static {
1562
- __name(this, "CreateStreamSessionConnectionCommand");
1563
- }
256
+ const StreamGroupStatus = {
257
+ ACTIVATING: "ACTIVATING",
258
+ ACTIVE: "ACTIVE",
259
+ ACTIVE_WITH_ERRORS: "ACTIVE_WITH_ERRORS",
260
+ DELETING: "DELETING",
261
+ ERROR: "ERROR",
262
+ UPDATING_LOCATIONS: "UPDATING_LOCATIONS",
1564
263
  };
1565
-
1566
- // src/commands/DeleteApplicationCommand.ts
1567
-
1568
-
1569
-
1570
- var DeleteApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1571
- return [
1572
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1573
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1574
- ];
1575
- }).s("GameLiftStreams", "DeleteApplication", {}).n("GameLiftStreamsClient", "DeleteApplicationCommand").f(void 0, void 0).ser(se_DeleteApplicationCommand).de(de_DeleteApplicationCommand).build() {
1576
- static {
1577
- __name(this, "DeleteApplicationCommand");
1578
- }
264
+ const StreamGroupStatusReason = {
265
+ INTERNAL_ERROR: "internalError",
266
+ NO_AVAILABLE_INSTANCES: "noAvailableInstances",
1579
267
  };
1580
-
1581
- // src/commands/DeleteStreamGroupCommand.ts
1582
-
1583
-
1584
-
1585
- var DeleteStreamGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1586
- return [
1587
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1588
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1589
- ];
1590
- }).s("GameLiftStreams", "DeleteStreamGroup", {}).n("GameLiftStreamsClient", "DeleteStreamGroupCommand").f(void 0, void 0).ser(se_DeleteStreamGroupCommand).de(de_DeleteStreamGroupCommand).build() {
1591
- static {
1592
- __name(this, "DeleteStreamGroupCommand");
1593
- }
268
+ const ExportFilesStatus = {
269
+ FAILED: "FAILED",
270
+ PENDING: "PENDING",
271
+ SUCCEEDED: "SUCCEEDED",
1594
272
  };
1595
-
1596
- // src/commands/DisassociateApplicationsCommand.ts
1597
-
1598
-
1599
-
1600
- var DisassociateApplicationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1601
- return [
1602
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1603
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1604
- ];
1605
- }).s("GameLiftStreams", "DisassociateApplications", {}).n("GameLiftStreamsClient", "DisassociateApplicationsCommand").f(void 0, void 0).ser(se_DisassociateApplicationsCommand).de(de_DisassociateApplicationsCommand).build() {
1606
- static {
1607
- __name(this, "DisassociateApplicationsCommand");
1608
- }
273
+ const Protocol = {
274
+ WEBRTC: "WebRTC",
1609
275
  };
1610
-
1611
- // src/commands/ExportStreamSessionFilesCommand.ts
1612
-
1613
-
1614
-
1615
- var ExportStreamSessionFilesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1616
- return [
1617
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1618
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1619
- ];
1620
- }).s("GameLiftStreams", "ExportStreamSessionFiles", {}).n("GameLiftStreamsClient", "ExportStreamSessionFilesCommand").f(void 0, void 0).ser(se_ExportStreamSessionFilesCommand).de(de_ExportStreamSessionFilesCommand).build() {
1621
- static {
1622
- __name(this, "ExportStreamSessionFilesCommand");
1623
- }
276
+ const StreamSessionStatus = {
277
+ ACTIVATING: "ACTIVATING",
278
+ ACTIVE: "ACTIVE",
279
+ CONNECTED: "CONNECTED",
280
+ ERROR: "ERROR",
281
+ PENDING_CLIENT_RECONNECTION: "PENDING_CLIENT_RECONNECTION",
282
+ RECONNECTING: "RECONNECTING",
283
+ TERMINATED: "TERMINATED",
284
+ TERMINATING: "TERMINATING",
1624
285
  };
1625
-
1626
- // src/commands/GetApplicationCommand.ts
1627
-
1628
-
1629
-
1630
- var GetApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1631
- return [
1632
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1633
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1634
- ];
1635
- }).s("GameLiftStreams", "GetApplication", {}).n("GameLiftStreamsClient", "GetApplicationCommand").f(void 0, void 0).ser(se_GetApplicationCommand).de(de_GetApplicationCommand).build() {
1636
- static {
1637
- __name(this, "GetApplicationCommand");
1638
- }
286
+ const StreamSessionStatusReason = {
287
+ APP_LOG_S3_DESTINATION_ERROR: "applicationLogS3DestinationError",
288
+ INTERNAL_ERROR: "internalError",
289
+ INVALID_SIGNAL_REQUEST: "invalidSignalRequest",
290
+ PLACEMENT_TIMEOUT: "placementTimeout",
1639
291
  };
292
+ const CreateStreamSessionConnectionInputFilterSensitiveLog = (obj) => ({
293
+ ...obj,
294
+ ...(obj.SignalRequest && { SignalRequest: smithyClient.SENSITIVE_STRING }),
295
+ });
296
+ const CreateStreamSessionConnectionOutputFilterSensitiveLog = (obj) => ({
297
+ ...obj,
298
+ ...(obj.SignalResponse && { SignalResponse: smithyClient.SENSITIVE_STRING }),
299
+ });
300
+ const GetStreamSessionOutputFilterSensitiveLog = (obj) => ({
301
+ ...obj,
302
+ ...(obj.SignalRequest && { SignalRequest: smithyClient.SENSITIVE_STRING }),
303
+ ...(obj.SignalResponse && { SignalResponse: smithyClient.SENSITIVE_STRING }),
304
+ });
305
+ const StartStreamSessionInputFilterSensitiveLog = (obj) => ({
306
+ ...obj,
307
+ ...(obj.SignalRequest && { SignalRequest: smithyClient.SENSITIVE_STRING }),
308
+ });
309
+ const StartStreamSessionOutputFilterSensitiveLog = (obj) => ({
310
+ ...obj,
311
+ ...(obj.SignalRequest && { SignalRequest: smithyClient.SENSITIVE_STRING }),
312
+ ...(obj.SignalResponse && { SignalResponse: smithyClient.SENSITIVE_STRING }),
313
+ });
1640
314
 
1641
- // src/commands/GetStreamGroupCommand.ts
1642
-
1643
-
1644
-
1645
- var GetStreamGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1646
- return [
1647
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1648
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1649
- ];
1650
- }).s("GameLiftStreams", "GetStreamGroup", {}).n("GameLiftStreamsClient", "GetStreamGroupCommand").f(void 0, void 0).ser(se_GetStreamGroupCommand).de(de_GetStreamGroupCommand).build() {
1651
- static {
1652
- __name(this, "GetStreamGroupCommand");
1653
- }
315
+ const se_AddStreamGroupLocationsCommand = async (input, context) => {
316
+ const b = core.requestBuilder(input, context);
317
+ const headers = {
318
+ "content-type": "application/json",
319
+ };
320
+ b.bp("/streamgroups/{Identifier}/locations");
321
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
322
+ let body;
323
+ body = JSON.stringify(smithyClient.take(input, {
324
+ LocationConfigurations: (_) => smithyClient._json(_),
325
+ }));
326
+ b.m("POST").h(headers).b(body);
327
+ return b.build();
1654
328
  };
1655
-
1656
- // src/commands/GetStreamSessionCommand.ts
1657
-
1658
-
1659
-
1660
- var GetStreamSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1661
- return [
1662
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1663
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1664
- ];
1665
- }).s("GameLiftStreams", "GetStreamSession", {}).n("GameLiftStreamsClient", "GetStreamSessionCommand").f(void 0, GetStreamSessionOutputFilterSensitiveLog).ser(se_GetStreamSessionCommand).de(de_GetStreamSessionCommand).build() {
1666
- static {
1667
- __name(this, "GetStreamSessionCommand");
1668
- }
329
+ const se_AssociateApplicationsCommand = async (input, context) => {
330
+ const b = core.requestBuilder(input, context);
331
+ const headers = {
332
+ "content-type": "application/json",
333
+ };
334
+ b.bp("/streamgroups/{Identifier}/associations");
335
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
336
+ let body;
337
+ body = JSON.stringify(smithyClient.take(input, {
338
+ ApplicationIdentifiers: (_) => smithyClient._json(_),
339
+ }));
340
+ b.m("POST").h(headers).b(body);
341
+ return b.build();
1669
342
  };
1670
-
1671
- // src/commands/ListApplicationsCommand.ts
1672
-
1673
-
1674
-
1675
- var ListApplicationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1676
- return [
1677
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1678
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1679
- ];
1680
- }).s("GameLiftStreams", "ListApplications", {}).n("GameLiftStreamsClient", "ListApplicationsCommand").f(void 0, void 0).ser(se_ListApplicationsCommand).de(de_ListApplicationsCommand).build() {
1681
- static {
1682
- __name(this, "ListApplicationsCommand");
1683
- }
343
+ const se_CreateApplicationCommand = async (input, context) => {
344
+ const b = core.requestBuilder(input, context);
345
+ const headers = {
346
+ "content-type": "application/json",
347
+ };
348
+ b.bp("/applications");
349
+ let body;
350
+ body = JSON.stringify(smithyClient.take(input, {
351
+ ApplicationLogOutputUri: [],
352
+ ApplicationLogPaths: (_) => smithyClient._json(_),
353
+ ApplicationSourceUri: [],
354
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
355
+ Description: [],
356
+ ExecutablePath: [],
357
+ RuntimeEnvironment: (_) => smithyClient._json(_),
358
+ Tags: (_) => smithyClient._json(_),
359
+ }));
360
+ b.m("POST").h(headers).b(body);
361
+ return b.build();
1684
362
  };
1685
-
1686
- // src/commands/ListStreamGroupsCommand.ts
1687
-
1688
-
1689
-
1690
- var ListStreamGroupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1691
- return [
1692
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1693
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1694
- ];
1695
- }).s("GameLiftStreams", "ListStreamGroups", {}).n("GameLiftStreamsClient", "ListStreamGroupsCommand").f(void 0, void 0).ser(se_ListStreamGroupsCommand).de(de_ListStreamGroupsCommand).build() {
1696
- static {
1697
- __name(this, "ListStreamGroupsCommand");
1698
- }
363
+ const se_CreateStreamGroupCommand = async (input, context) => {
364
+ const b = core.requestBuilder(input, context);
365
+ const headers = {
366
+ "content-type": "application/json",
367
+ };
368
+ b.bp("/streamgroups");
369
+ let body;
370
+ body = JSON.stringify(smithyClient.take(input, {
371
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
372
+ DefaultApplicationIdentifier: [],
373
+ Description: [],
374
+ LocationConfigurations: (_) => smithyClient._json(_),
375
+ StreamClass: [],
376
+ Tags: (_) => smithyClient._json(_),
377
+ }));
378
+ b.m("POST").h(headers).b(body);
379
+ return b.build();
1699
380
  };
1700
-
1701
- // src/commands/ListStreamSessionsByAccountCommand.ts
1702
-
1703
-
1704
-
1705
- var ListStreamSessionsByAccountCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1706
- return [
1707
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1708
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1709
- ];
1710
- }).s("GameLiftStreams", "ListStreamSessionsByAccount", {}).n("GameLiftStreamsClient", "ListStreamSessionsByAccountCommand").f(void 0, void 0).ser(se_ListStreamSessionsByAccountCommand).de(de_ListStreamSessionsByAccountCommand).build() {
1711
- static {
1712
- __name(this, "ListStreamSessionsByAccountCommand");
1713
- }
381
+ const se_CreateStreamSessionConnectionCommand = async (input, context) => {
382
+ const b = core.requestBuilder(input, context);
383
+ const headers = {
384
+ "content-type": "application/json",
385
+ };
386
+ b.bp("/streamgroups/{Identifier}/streamsessions/{StreamSessionIdentifier}/connections");
387
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
388
+ b.p("StreamSessionIdentifier", () => input.StreamSessionIdentifier, "{StreamSessionIdentifier}", false);
389
+ let body;
390
+ body = JSON.stringify(smithyClient.take(input, {
391
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
392
+ SignalRequest: [],
393
+ }));
394
+ b.m("POST").h(headers).b(body);
395
+ return b.build();
1714
396
  };
1715
-
1716
- // src/commands/ListStreamSessionsCommand.ts
1717
-
1718
-
1719
-
1720
- var ListStreamSessionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1721
- return [
1722
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1723
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1724
- ];
1725
- }).s("GameLiftStreams", "ListStreamSessions", {}).n("GameLiftStreamsClient", "ListStreamSessionsCommand").f(void 0, void 0).ser(se_ListStreamSessionsCommand).de(de_ListStreamSessionsCommand).build() {
1726
- static {
1727
- __name(this, "ListStreamSessionsCommand");
1728
- }
397
+ const se_DeleteApplicationCommand = async (input, context) => {
398
+ const b = core.requestBuilder(input, context);
399
+ const headers = {};
400
+ b.bp("/applications/{Identifier}");
401
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
402
+ let body;
403
+ b.m("DELETE").h(headers).b(body);
404
+ return b.build();
1729
405
  };
1730
-
1731
- // src/commands/ListTagsForResourceCommand.ts
1732
-
1733
-
1734
-
1735
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1736
- return [
1737
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1738
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1739
- ];
1740
- }).s("GameLiftStreams", "ListTagsForResource", {}).n("GameLiftStreamsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1741
- static {
1742
- __name(this, "ListTagsForResourceCommand");
1743
- }
406
+ const se_DeleteStreamGroupCommand = async (input, context) => {
407
+ const b = core.requestBuilder(input, context);
408
+ const headers = {};
409
+ b.bp("/streamgroups/{Identifier}");
410
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
411
+ let body;
412
+ b.m("DELETE").h(headers).b(body);
413
+ return b.build();
1744
414
  };
1745
-
1746
- // src/commands/RemoveStreamGroupLocationsCommand.ts
1747
-
1748
-
1749
-
1750
- var RemoveStreamGroupLocationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1751
- return [
1752
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1753
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1754
- ];
1755
- }).s("GameLiftStreams", "RemoveStreamGroupLocations", {}).n("GameLiftStreamsClient", "RemoveStreamGroupLocationsCommand").f(void 0, void 0).ser(se_RemoveStreamGroupLocationsCommand).de(de_RemoveStreamGroupLocationsCommand).build() {
1756
- static {
1757
- __name(this, "RemoveStreamGroupLocationsCommand");
1758
- }
415
+ const se_DisassociateApplicationsCommand = async (input, context) => {
416
+ const b = core.requestBuilder(input, context);
417
+ const headers = {
418
+ "content-type": "application/json",
419
+ };
420
+ b.bp("/streamgroups/{Identifier}/disassociations");
421
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
422
+ let body;
423
+ body = JSON.stringify(smithyClient.take(input, {
424
+ ApplicationIdentifiers: (_) => smithyClient._json(_),
425
+ }));
426
+ b.m("POST").h(headers).b(body);
427
+ return b.build();
1759
428
  };
1760
-
1761
- // src/commands/StartStreamSessionCommand.ts
1762
-
1763
-
1764
-
1765
- var StartStreamSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1766
- return [
1767
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1768
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1769
- ];
1770
- }).s("GameLiftStreams", "StartStreamSession", {}).n("GameLiftStreamsClient", "StartStreamSessionCommand").f(StartStreamSessionInputFilterSensitiveLog, StartStreamSessionOutputFilterSensitiveLog).ser(se_StartStreamSessionCommand).de(de_StartStreamSessionCommand).build() {
1771
- static {
1772
- __name(this, "StartStreamSessionCommand");
1773
- }
429
+ const se_ExportStreamSessionFilesCommand = async (input, context) => {
430
+ const b = core.requestBuilder(input, context);
431
+ const headers = {
432
+ "content-type": "application/json",
433
+ };
434
+ b.bp("/streamgroups/{Identifier}/streamsessions/{StreamSessionIdentifier}/exportfiles");
435
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
436
+ b.p("StreamSessionIdentifier", () => input.StreamSessionIdentifier, "{StreamSessionIdentifier}", false);
437
+ let body;
438
+ body = JSON.stringify(smithyClient.take(input, {
439
+ OutputUri: [],
440
+ }));
441
+ b.m("PUT").h(headers).b(body);
442
+ return b.build();
1774
443
  };
1775
-
1776
- // src/commands/TagResourceCommand.ts
1777
-
1778
-
1779
-
1780
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1781
- return [
1782
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1783
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1784
- ];
1785
- }).s("GameLiftStreams", "TagResource", {}).n("GameLiftStreamsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1786
- static {
1787
- __name(this, "TagResourceCommand");
1788
- }
444
+ const se_GetApplicationCommand = async (input, context) => {
445
+ const b = core.requestBuilder(input, context);
446
+ const headers = {};
447
+ b.bp("/applications/{Identifier}");
448
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
449
+ let body;
450
+ b.m("GET").h(headers).b(body);
451
+ return b.build();
1789
452
  };
1790
-
1791
- // src/commands/TerminateStreamSessionCommand.ts
1792
-
1793
-
1794
-
1795
- var TerminateStreamSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1796
- return [
1797
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1798
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1799
- ];
1800
- }).s("GameLiftStreams", "TerminateStreamSession", {}).n("GameLiftStreamsClient", "TerminateStreamSessionCommand").f(void 0, void 0).ser(se_TerminateStreamSessionCommand).de(de_TerminateStreamSessionCommand).build() {
1801
- static {
1802
- __name(this, "TerminateStreamSessionCommand");
1803
- }
453
+ const se_GetStreamGroupCommand = async (input, context) => {
454
+ const b = core.requestBuilder(input, context);
455
+ const headers = {};
456
+ b.bp("/streamgroups/{Identifier}");
457
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
458
+ let body;
459
+ b.m("GET").h(headers).b(body);
460
+ return b.build();
1804
461
  };
1805
-
1806
- // src/commands/UntagResourceCommand.ts
1807
-
1808
-
1809
-
1810
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1811
- return [
1812
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1813
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1814
- ];
1815
- }).s("GameLiftStreams", "UntagResource", {}).n("GameLiftStreamsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1816
- static {
1817
- __name(this, "UntagResourceCommand");
1818
- }
462
+ const se_GetStreamSessionCommand = async (input, context) => {
463
+ const b = core.requestBuilder(input, context);
464
+ const headers = {};
465
+ b.bp("/streamgroups/{Identifier}/streamsessions/{StreamSessionIdentifier}");
466
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
467
+ b.p("StreamSessionIdentifier", () => input.StreamSessionIdentifier, "{StreamSessionIdentifier}", false);
468
+ let body;
469
+ b.m("GET").h(headers).b(body);
470
+ return b.build();
1819
471
  };
1820
-
1821
- // src/commands/UpdateApplicationCommand.ts
1822
-
1823
-
1824
-
1825
- var UpdateApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1826
- return [
1827
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1828
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1829
- ];
1830
- }).s("GameLiftStreams", "UpdateApplication", {}).n("GameLiftStreamsClient", "UpdateApplicationCommand").f(void 0, void 0).ser(se_UpdateApplicationCommand).de(de_UpdateApplicationCommand).build() {
1831
- static {
1832
- __name(this, "UpdateApplicationCommand");
1833
- }
472
+ const se_ListApplicationsCommand = async (input, context) => {
473
+ const b = core.requestBuilder(input, context);
474
+ const headers = {};
475
+ b.bp("/applications");
476
+ const query = smithyClient.map({
477
+ [_NT]: [, input[_NT]],
478
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
479
+ });
480
+ let body;
481
+ b.m("GET").h(headers).q(query).b(body);
482
+ return b.build();
1834
483
  };
1835
-
1836
- // src/commands/UpdateStreamGroupCommand.ts
1837
-
1838
-
1839
-
1840
- var UpdateStreamGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1841
- return [
1842
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1843
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1844
- ];
1845
- }).s("GameLiftStreams", "UpdateStreamGroup", {}).n("GameLiftStreamsClient", "UpdateStreamGroupCommand").f(void 0, void 0).ser(se_UpdateStreamGroupCommand).de(de_UpdateStreamGroupCommand).build() {
1846
- static {
1847
- __name(this, "UpdateStreamGroupCommand");
1848
- }
484
+ const se_ListStreamGroupsCommand = async (input, context) => {
485
+ const b = core.requestBuilder(input, context);
486
+ const headers = {};
487
+ b.bp("/streamgroups");
488
+ const query = smithyClient.map({
489
+ [_NT]: [, input[_NT]],
490
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
491
+ });
492
+ let body;
493
+ b.m("GET").h(headers).q(query).b(body);
494
+ return b.build();
1849
495
  };
496
+ const se_ListStreamSessionsCommand = async (input, context) => {
497
+ const b = core.requestBuilder(input, context);
498
+ const headers = {};
499
+ b.bp("/streamgroups/{Identifier}/streamsessions");
500
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
501
+ const query = smithyClient.map({
502
+ [_S]: [, input[_S]],
503
+ [_EFS]: [, input[_EFS]],
504
+ [_NT]: [, input[_NT]],
505
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
506
+ });
507
+ let body;
508
+ b.m("GET").h(headers).q(query).b(body);
509
+ return b.build();
510
+ };
511
+ const se_ListStreamSessionsByAccountCommand = async (input, context) => {
512
+ const b = core.requestBuilder(input, context);
513
+ const headers = {};
514
+ b.bp("/streamsessions");
515
+ const query = smithyClient.map({
516
+ [_S]: [, input[_S]],
517
+ [_EFS]: [, input[_EFS]],
518
+ [_NT]: [, input[_NT]],
519
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
520
+ });
521
+ let body;
522
+ b.m("GET").h(headers).q(query).b(body);
523
+ return b.build();
524
+ };
525
+ const se_ListTagsForResourceCommand = async (input, context) => {
526
+ const b = core.requestBuilder(input, context);
527
+ const headers = {};
528
+ b.bp("/tags/{ResourceArn}");
529
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
530
+ let body;
531
+ b.m("GET").h(headers).b(body);
532
+ return b.build();
533
+ };
534
+ const se_RemoveStreamGroupLocationsCommand = async (input, context) => {
535
+ const b = core.requestBuilder(input, context);
536
+ const headers = {};
537
+ b.bp("/streamgroups/{Identifier}/locations");
538
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
539
+ const query = smithyClient.map({
540
+ [_l]: [smithyClient.expectNonNull(input.Locations, `Locations`) != null, () => input[_L] || []],
541
+ });
542
+ let body;
543
+ b.m("DELETE").h(headers).q(query).b(body);
544
+ return b.build();
545
+ };
546
+ const se_StartStreamSessionCommand = async (input, context) => {
547
+ const b = core.requestBuilder(input, context);
548
+ const headers = {
549
+ "content-type": "application/json",
550
+ };
551
+ b.bp("/streamgroups/{Identifier}/streamsessions");
552
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
553
+ let body;
554
+ body = JSON.stringify(smithyClient.take(input, {
555
+ AdditionalEnvironmentVariables: (_) => smithyClient._json(_),
556
+ AdditionalLaunchArgs: (_) => smithyClient._json(_),
557
+ ApplicationIdentifier: [],
558
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
559
+ ConnectionTimeoutSeconds: [],
560
+ Description: [],
561
+ Locations: (_) => smithyClient._json(_),
562
+ Protocol: [],
563
+ SessionLengthSeconds: [],
564
+ SignalRequest: [],
565
+ UserId: [],
566
+ }));
567
+ b.m("POST").h(headers).b(body);
568
+ return b.build();
569
+ };
570
+ const se_TagResourceCommand = async (input, context) => {
571
+ const b = core.requestBuilder(input, context);
572
+ const headers = {
573
+ "content-type": "application/json",
574
+ };
575
+ b.bp("/tags/{ResourceArn}");
576
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
577
+ let body;
578
+ body = JSON.stringify(smithyClient.take(input, {
579
+ Tags: (_) => smithyClient._json(_),
580
+ }));
581
+ b.m("POST").h(headers).b(body);
582
+ return b.build();
583
+ };
584
+ const se_TerminateStreamSessionCommand = async (input, context) => {
585
+ const b = core.requestBuilder(input, context);
586
+ const headers = {};
587
+ b.bp("/streamgroups/{Identifier}/streamsessions/{StreamSessionIdentifier}");
588
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
589
+ b.p("StreamSessionIdentifier", () => input.StreamSessionIdentifier, "{StreamSessionIdentifier}", false);
590
+ let body;
591
+ b.m("DELETE").h(headers).b(body);
592
+ return b.build();
593
+ };
594
+ const se_UntagResourceCommand = async (input, context) => {
595
+ const b = core.requestBuilder(input, context);
596
+ const headers = {};
597
+ b.bp("/tags/{ResourceArn}");
598
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
599
+ const query = smithyClient.map({
600
+ [_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
601
+ });
602
+ let body;
603
+ b.m("DELETE").h(headers).q(query).b(body);
604
+ return b.build();
605
+ };
606
+ const se_UpdateApplicationCommand = async (input, context) => {
607
+ const b = core.requestBuilder(input, context);
608
+ const headers = {
609
+ "content-type": "application/json",
610
+ };
611
+ b.bp("/applications/{Identifier}");
612
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
613
+ let body;
614
+ body = JSON.stringify(smithyClient.take(input, {
615
+ ApplicationLogOutputUri: [],
616
+ ApplicationLogPaths: (_) => smithyClient._json(_),
617
+ Description: [],
618
+ }));
619
+ b.m("PATCH").h(headers).b(body);
620
+ return b.build();
621
+ };
622
+ const se_UpdateStreamGroupCommand = async (input, context) => {
623
+ const b = core.requestBuilder(input, context);
624
+ const headers = {
625
+ "content-type": "application/json",
626
+ };
627
+ b.bp("/streamgroups/{Identifier}");
628
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
629
+ let body;
630
+ body = JSON.stringify(smithyClient.take(input, {
631
+ DefaultApplicationIdentifier: [],
632
+ Description: [],
633
+ LocationConfigurations: (_) => smithyClient._json(_),
634
+ }));
635
+ b.m("PATCH").h(headers).b(body);
636
+ return b.build();
637
+ };
638
+ const de_AddStreamGroupLocationsCommand = async (output, context) => {
639
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
640
+ return de_CommandError(output, context);
641
+ }
642
+ const contents = smithyClient.map({
643
+ $metadata: deserializeMetadata(output),
644
+ });
645
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
646
+ const doc = smithyClient.take(data, {
647
+ Identifier: smithyClient.expectString,
648
+ Locations: smithyClient._json,
649
+ });
650
+ Object.assign(contents, doc);
651
+ return contents;
652
+ };
653
+ const de_AssociateApplicationsCommand = async (output, context) => {
654
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
655
+ return de_CommandError(output, context);
656
+ }
657
+ const contents = smithyClient.map({
658
+ $metadata: deserializeMetadata(output),
659
+ });
660
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
661
+ const doc = smithyClient.take(data, {
662
+ ApplicationArns: smithyClient._json,
663
+ Arn: smithyClient.expectString,
664
+ });
665
+ Object.assign(contents, doc);
666
+ return contents;
667
+ };
668
+ const de_CreateApplicationCommand = async (output, context) => {
669
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
670
+ return de_CommandError(output, context);
671
+ }
672
+ const contents = smithyClient.map({
673
+ $metadata: deserializeMetadata(output),
674
+ });
675
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
676
+ const doc = smithyClient.take(data, {
677
+ ApplicationLogOutputUri: smithyClient.expectString,
678
+ ApplicationLogPaths: smithyClient._json,
679
+ ApplicationSourceUri: smithyClient.expectString,
680
+ Arn: smithyClient.expectString,
681
+ AssociatedStreamGroups: smithyClient._json,
682
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
683
+ Description: smithyClient.expectString,
684
+ ExecutablePath: smithyClient.expectString,
685
+ Id: smithyClient.expectString,
686
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
687
+ ReplicationStatuses: smithyClient._json,
688
+ RuntimeEnvironment: smithyClient._json,
689
+ Status: smithyClient.expectString,
690
+ StatusReason: smithyClient.expectString,
691
+ });
692
+ Object.assign(contents, doc);
693
+ return contents;
694
+ };
695
+ const de_CreateStreamGroupCommand = async (output, context) => {
696
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
697
+ return de_CommandError(output, context);
698
+ }
699
+ const contents = smithyClient.map({
700
+ $metadata: deserializeMetadata(output),
701
+ });
702
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
703
+ const doc = smithyClient.take(data, {
704
+ Arn: smithyClient.expectString,
705
+ AssociatedApplications: smithyClient._json,
706
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
707
+ DefaultApplication: smithyClient._json,
708
+ Description: smithyClient.expectString,
709
+ Id: smithyClient.expectString,
710
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
711
+ LocationStates: smithyClient._json,
712
+ Status: smithyClient.expectString,
713
+ StatusReason: smithyClient.expectString,
714
+ StreamClass: smithyClient.expectString,
715
+ });
716
+ Object.assign(contents, doc);
717
+ return contents;
718
+ };
719
+ const de_CreateStreamSessionConnectionCommand = async (output, context) => {
720
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
721
+ return de_CommandError(output, context);
722
+ }
723
+ const contents = smithyClient.map({
724
+ $metadata: deserializeMetadata(output),
725
+ });
726
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
727
+ const doc = smithyClient.take(data, {
728
+ SignalResponse: smithyClient.expectString,
729
+ });
730
+ Object.assign(contents, doc);
731
+ return contents;
732
+ };
733
+ const de_DeleteApplicationCommand = async (output, context) => {
734
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
735
+ return de_CommandError(output, context);
736
+ }
737
+ const contents = smithyClient.map({
738
+ $metadata: deserializeMetadata(output),
739
+ });
740
+ await smithyClient.collectBody(output.body, context);
741
+ return contents;
742
+ };
743
+ const de_DeleteStreamGroupCommand = async (output, context) => {
744
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
745
+ return de_CommandError(output, context);
746
+ }
747
+ const contents = smithyClient.map({
748
+ $metadata: deserializeMetadata(output),
749
+ });
750
+ await smithyClient.collectBody(output.body, context);
751
+ return contents;
752
+ };
753
+ const de_DisassociateApplicationsCommand = async (output, context) => {
754
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
755
+ return de_CommandError(output, context);
756
+ }
757
+ const contents = smithyClient.map({
758
+ $metadata: deserializeMetadata(output),
759
+ });
760
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
761
+ const doc = smithyClient.take(data, {
762
+ ApplicationArns: smithyClient._json,
763
+ Arn: smithyClient.expectString,
764
+ });
765
+ Object.assign(contents, doc);
766
+ return contents;
767
+ };
768
+ const de_ExportStreamSessionFilesCommand = async (output, context) => {
769
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
770
+ return de_CommandError(output, context);
771
+ }
772
+ const contents = smithyClient.map({
773
+ $metadata: deserializeMetadata(output),
774
+ });
775
+ await smithyClient.collectBody(output.body, context);
776
+ return contents;
777
+ };
778
+ const de_GetApplicationCommand = async (output, context) => {
779
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
780
+ return de_CommandError(output, context);
781
+ }
782
+ const contents = smithyClient.map({
783
+ $metadata: deserializeMetadata(output),
784
+ });
785
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
786
+ const doc = smithyClient.take(data, {
787
+ ApplicationLogOutputUri: smithyClient.expectString,
788
+ ApplicationLogPaths: smithyClient._json,
789
+ ApplicationSourceUri: smithyClient.expectString,
790
+ Arn: smithyClient.expectString,
791
+ AssociatedStreamGroups: smithyClient._json,
792
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
793
+ Description: smithyClient.expectString,
794
+ ExecutablePath: smithyClient.expectString,
795
+ Id: smithyClient.expectString,
796
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
797
+ ReplicationStatuses: smithyClient._json,
798
+ RuntimeEnvironment: smithyClient._json,
799
+ Status: smithyClient.expectString,
800
+ StatusReason: smithyClient.expectString,
801
+ });
802
+ Object.assign(contents, doc);
803
+ return contents;
804
+ };
805
+ const de_GetStreamGroupCommand = async (output, context) => {
806
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
807
+ return de_CommandError(output, context);
808
+ }
809
+ const contents = smithyClient.map({
810
+ $metadata: deserializeMetadata(output),
811
+ });
812
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
813
+ const doc = smithyClient.take(data, {
814
+ Arn: smithyClient.expectString,
815
+ AssociatedApplications: smithyClient._json,
816
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
817
+ DefaultApplication: smithyClient._json,
818
+ Description: smithyClient.expectString,
819
+ Id: smithyClient.expectString,
820
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
821
+ LocationStates: smithyClient._json,
822
+ Status: smithyClient.expectString,
823
+ StatusReason: smithyClient.expectString,
824
+ StreamClass: smithyClient.expectString,
825
+ });
826
+ Object.assign(contents, doc);
827
+ return contents;
828
+ };
829
+ const de_GetStreamSessionCommand = async (output, context) => {
830
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
831
+ return de_CommandError(output, context);
832
+ }
833
+ const contents = smithyClient.map({
834
+ $metadata: deserializeMetadata(output),
835
+ });
836
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
837
+ const doc = smithyClient.take(data, {
838
+ AdditionalEnvironmentVariables: smithyClient._json,
839
+ AdditionalLaunchArgs: smithyClient._json,
840
+ ApplicationArn: smithyClient.expectString,
841
+ Arn: smithyClient.expectString,
842
+ ConnectionTimeoutSeconds: smithyClient.expectInt32,
843
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
844
+ Description: smithyClient.expectString,
845
+ ExportFilesMetadata: smithyClient._json,
846
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
847
+ Location: smithyClient.expectString,
848
+ LogFileLocationUri: smithyClient.expectString,
849
+ Protocol: smithyClient.expectString,
850
+ SessionLengthSeconds: smithyClient.expectInt32,
851
+ SignalRequest: smithyClient.expectString,
852
+ SignalResponse: smithyClient.expectString,
853
+ Status: smithyClient.expectString,
854
+ StatusReason: smithyClient.expectString,
855
+ StreamGroupId: smithyClient.expectString,
856
+ UserId: smithyClient.expectString,
857
+ WebSdkProtocolUrl: smithyClient.expectString,
858
+ });
859
+ Object.assign(contents, doc);
860
+ return contents;
861
+ };
862
+ const de_ListApplicationsCommand = async (output, context) => {
863
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
864
+ return de_CommandError(output, context);
865
+ }
866
+ const contents = smithyClient.map({
867
+ $metadata: deserializeMetadata(output),
868
+ });
869
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
870
+ const doc = smithyClient.take(data, {
871
+ Items: (_) => de_ApplicationSummaryList(_),
872
+ NextToken: smithyClient.expectString,
873
+ });
874
+ Object.assign(contents, doc);
875
+ return contents;
876
+ };
877
+ const de_ListStreamGroupsCommand = async (output, context) => {
878
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
879
+ return de_CommandError(output, context);
880
+ }
881
+ const contents = smithyClient.map({
882
+ $metadata: deserializeMetadata(output),
883
+ });
884
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
885
+ const doc = smithyClient.take(data, {
886
+ Items: (_) => de_StreamGroupSummaryList(_),
887
+ NextToken: smithyClient.expectString,
888
+ });
889
+ Object.assign(contents, doc);
890
+ return contents;
891
+ };
892
+ const de_ListStreamSessionsCommand = async (output, context) => {
893
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
894
+ return de_CommandError(output, context);
895
+ }
896
+ const contents = smithyClient.map({
897
+ $metadata: deserializeMetadata(output),
898
+ });
899
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
900
+ const doc = smithyClient.take(data, {
901
+ Items: (_) => de_StreamSessionSummaryList(_),
902
+ NextToken: smithyClient.expectString,
903
+ });
904
+ Object.assign(contents, doc);
905
+ return contents;
906
+ };
907
+ const de_ListStreamSessionsByAccountCommand = async (output, context) => {
908
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
909
+ return de_CommandError(output, context);
910
+ }
911
+ const contents = smithyClient.map({
912
+ $metadata: deserializeMetadata(output),
913
+ });
914
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
915
+ const doc = smithyClient.take(data, {
916
+ Items: (_) => de_StreamSessionSummaryList(_),
917
+ NextToken: smithyClient.expectString,
918
+ });
919
+ Object.assign(contents, doc);
920
+ return contents;
921
+ };
922
+ const de_ListTagsForResourceCommand = async (output, context) => {
923
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
924
+ return de_CommandError(output, context);
925
+ }
926
+ const contents = smithyClient.map({
927
+ $metadata: deserializeMetadata(output),
928
+ });
929
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
930
+ const doc = smithyClient.take(data, {
931
+ Tags: smithyClient._json,
932
+ });
933
+ Object.assign(contents, doc);
934
+ return contents;
935
+ };
936
+ const de_RemoveStreamGroupLocationsCommand = async (output, context) => {
937
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
938
+ return de_CommandError(output, context);
939
+ }
940
+ const contents = smithyClient.map({
941
+ $metadata: deserializeMetadata(output),
942
+ });
943
+ await smithyClient.collectBody(output.body, context);
944
+ return contents;
945
+ };
946
+ const de_StartStreamSessionCommand = async (output, context) => {
947
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
948
+ return de_CommandError(output, context);
949
+ }
950
+ const contents = smithyClient.map({
951
+ $metadata: deserializeMetadata(output),
952
+ });
953
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
954
+ const doc = smithyClient.take(data, {
955
+ AdditionalEnvironmentVariables: smithyClient._json,
956
+ AdditionalLaunchArgs: smithyClient._json,
957
+ ApplicationArn: smithyClient.expectString,
958
+ Arn: smithyClient.expectString,
959
+ ConnectionTimeoutSeconds: smithyClient.expectInt32,
960
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
961
+ Description: smithyClient.expectString,
962
+ ExportFilesMetadata: smithyClient._json,
963
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
964
+ Location: smithyClient.expectString,
965
+ LogFileLocationUri: smithyClient.expectString,
966
+ Protocol: smithyClient.expectString,
967
+ SessionLengthSeconds: smithyClient.expectInt32,
968
+ SignalRequest: smithyClient.expectString,
969
+ SignalResponse: smithyClient.expectString,
970
+ Status: smithyClient.expectString,
971
+ StatusReason: smithyClient.expectString,
972
+ StreamGroupId: smithyClient.expectString,
973
+ UserId: smithyClient.expectString,
974
+ WebSdkProtocolUrl: smithyClient.expectString,
975
+ });
976
+ Object.assign(contents, doc);
977
+ return contents;
978
+ };
979
+ const de_TagResourceCommand = async (output, context) => {
980
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
981
+ return de_CommandError(output, context);
982
+ }
983
+ const contents = smithyClient.map({
984
+ $metadata: deserializeMetadata(output),
985
+ });
986
+ await smithyClient.collectBody(output.body, context);
987
+ return contents;
988
+ };
989
+ const de_TerminateStreamSessionCommand = async (output, context) => {
990
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
991
+ return de_CommandError(output, context);
992
+ }
993
+ const contents = smithyClient.map({
994
+ $metadata: deserializeMetadata(output),
995
+ });
996
+ await smithyClient.collectBody(output.body, context);
997
+ return contents;
998
+ };
999
+ const de_UntagResourceCommand = async (output, context) => {
1000
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1001
+ return de_CommandError(output, context);
1002
+ }
1003
+ const contents = smithyClient.map({
1004
+ $metadata: deserializeMetadata(output),
1005
+ });
1006
+ await smithyClient.collectBody(output.body, context);
1007
+ return contents;
1008
+ };
1009
+ const de_UpdateApplicationCommand = async (output, context) => {
1010
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1011
+ return de_CommandError(output, context);
1012
+ }
1013
+ const contents = smithyClient.map({
1014
+ $metadata: deserializeMetadata(output),
1015
+ });
1016
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1017
+ const doc = smithyClient.take(data, {
1018
+ ApplicationLogOutputUri: smithyClient.expectString,
1019
+ ApplicationLogPaths: smithyClient._json,
1020
+ ApplicationSourceUri: smithyClient.expectString,
1021
+ Arn: smithyClient.expectString,
1022
+ AssociatedStreamGroups: smithyClient._json,
1023
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1024
+ Description: smithyClient.expectString,
1025
+ ExecutablePath: smithyClient.expectString,
1026
+ Id: smithyClient.expectString,
1027
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1028
+ ReplicationStatuses: smithyClient._json,
1029
+ RuntimeEnvironment: smithyClient._json,
1030
+ Status: smithyClient.expectString,
1031
+ StatusReason: smithyClient.expectString,
1032
+ });
1033
+ Object.assign(contents, doc);
1034
+ return contents;
1035
+ };
1036
+ const de_UpdateStreamGroupCommand = async (output, context) => {
1037
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1038
+ return de_CommandError(output, context);
1039
+ }
1040
+ const contents = smithyClient.map({
1041
+ $metadata: deserializeMetadata(output),
1042
+ });
1043
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1044
+ const doc = smithyClient.take(data, {
1045
+ Arn: smithyClient.expectString,
1046
+ AssociatedApplications: smithyClient._json,
1047
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1048
+ DefaultApplication: smithyClient._json,
1049
+ Description: smithyClient.expectString,
1050
+ Id: smithyClient.expectString,
1051
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1052
+ LocationStates: smithyClient._json,
1053
+ Status: smithyClient.expectString,
1054
+ StatusReason: smithyClient.expectString,
1055
+ StreamClass: smithyClient.expectString,
1056
+ });
1057
+ Object.assign(contents, doc);
1058
+ return contents;
1059
+ };
1060
+ const de_CommandError = async (output, context) => {
1061
+ const parsedOutput = {
1062
+ ...output,
1063
+ body: await core$1.parseJsonErrorBody(output.body, context),
1064
+ };
1065
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1066
+ switch (errorCode) {
1067
+ case "AccessDeniedException":
1068
+ case "com.amazonaws.gameliftstreams#AccessDeniedException":
1069
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
1070
+ case "InternalServerException":
1071
+ case "com.amazonaws.gameliftstreams#InternalServerException":
1072
+ throw await de_InternalServerExceptionRes(parsedOutput);
1073
+ case "ResourceNotFoundException":
1074
+ case "com.amazonaws.gameliftstreams#ResourceNotFoundException":
1075
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
1076
+ case "ServiceQuotaExceededException":
1077
+ case "com.amazonaws.gameliftstreams#ServiceQuotaExceededException":
1078
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
1079
+ case "ThrottlingException":
1080
+ case "com.amazonaws.gameliftstreams#ThrottlingException":
1081
+ throw await de_ThrottlingExceptionRes(parsedOutput);
1082
+ case "ValidationException":
1083
+ case "com.amazonaws.gameliftstreams#ValidationException":
1084
+ throw await de_ValidationExceptionRes(parsedOutput);
1085
+ case "ConflictException":
1086
+ case "com.amazonaws.gameliftstreams#ConflictException":
1087
+ throw await de_ConflictExceptionRes(parsedOutput);
1088
+ default:
1089
+ const parsedBody = parsedOutput.body;
1090
+ return throwDefaultError({
1091
+ output,
1092
+ parsedBody,
1093
+ errorCode,
1094
+ });
1095
+ }
1096
+ };
1097
+ const throwDefaultError = smithyClient.withBaseException(GameLiftStreamsServiceException);
1098
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1099
+ const contents = smithyClient.map({});
1100
+ const data = parsedOutput.body;
1101
+ const doc = smithyClient.take(data, {
1102
+ Message: smithyClient.expectString,
1103
+ });
1104
+ Object.assign(contents, doc);
1105
+ const exception = new AccessDeniedException({
1106
+ $metadata: deserializeMetadata(parsedOutput),
1107
+ ...contents,
1108
+ });
1109
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1110
+ };
1111
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1112
+ const contents = smithyClient.map({});
1113
+ const data = parsedOutput.body;
1114
+ const doc = smithyClient.take(data, {
1115
+ Message: smithyClient.expectString,
1116
+ });
1117
+ Object.assign(contents, doc);
1118
+ const exception = new ConflictException({
1119
+ $metadata: deserializeMetadata(parsedOutput),
1120
+ ...contents,
1121
+ });
1122
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1123
+ };
1124
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1125
+ const contents = smithyClient.map({});
1126
+ const data = parsedOutput.body;
1127
+ const doc = smithyClient.take(data, {
1128
+ Message: smithyClient.expectString,
1129
+ });
1130
+ Object.assign(contents, doc);
1131
+ const exception = new InternalServerException({
1132
+ $metadata: deserializeMetadata(parsedOutput),
1133
+ ...contents,
1134
+ });
1135
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1136
+ };
1137
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1138
+ const contents = smithyClient.map({});
1139
+ const data = parsedOutput.body;
1140
+ const doc = smithyClient.take(data, {
1141
+ Message: smithyClient.expectString,
1142
+ });
1143
+ Object.assign(contents, doc);
1144
+ const exception = new ResourceNotFoundException({
1145
+ $metadata: deserializeMetadata(parsedOutput),
1146
+ ...contents,
1147
+ });
1148
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1149
+ };
1150
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1151
+ const contents = smithyClient.map({});
1152
+ const data = parsedOutput.body;
1153
+ const doc = smithyClient.take(data, {
1154
+ Message: smithyClient.expectString,
1155
+ });
1156
+ Object.assign(contents, doc);
1157
+ const exception = new ServiceQuotaExceededException({
1158
+ $metadata: deserializeMetadata(parsedOutput),
1159
+ ...contents,
1160
+ });
1161
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1162
+ };
1163
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1164
+ const contents = smithyClient.map({});
1165
+ const data = parsedOutput.body;
1166
+ const doc = smithyClient.take(data, {
1167
+ Message: smithyClient.expectString,
1168
+ });
1169
+ Object.assign(contents, doc);
1170
+ const exception = new ThrottlingException({
1171
+ $metadata: deserializeMetadata(parsedOutput),
1172
+ ...contents,
1173
+ });
1174
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1175
+ };
1176
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1177
+ const contents = smithyClient.map({});
1178
+ const data = parsedOutput.body;
1179
+ const doc = smithyClient.take(data, {
1180
+ Message: smithyClient.expectString,
1181
+ });
1182
+ Object.assign(contents, doc);
1183
+ const exception = new ValidationException({
1184
+ $metadata: deserializeMetadata(parsedOutput),
1185
+ ...contents,
1186
+ });
1187
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1188
+ };
1189
+ const de_ApplicationSummary = (output, context) => {
1190
+ return smithyClient.take(output, {
1191
+ Arn: smithyClient.expectString,
1192
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1193
+ Description: smithyClient.expectString,
1194
+ Id: smithyClient.expectString,
1195
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1196
+ RuntimeEnvironment: smithyClient._json,
1197
+ Status: smithyClient.expectString,
1198
+ });
1199
+ };
1200
+ const de_ApplicationSummaryList = (output, context) => {
1201
+ const retVal = (output || [])
1202
+ .filter((e) => e != null)
1203
+ .map((entry) => {
1204
+ return de_ApplicationSummary(entry);
1205
+ });
1206
+ return retVal;
1207
+ };
1208
+ const de_StreamGroupSummary = (output, context) => {
1209
+ return smithyClient.take(output, {
1210
+ Arn: smithyClient.expectString,
1211
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1212
+ DefaultApplication: smithyClient._json,
1213
+ Description: smithyClient.expectString,
1214
+ Id: smithyClient.expectString,
1215
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1216
+ Status: smithyClient.expectString,
1217
+ StreamClass: smithyClient.expectString,
1218
+ });
1219
+ };
1220
+ const de_StreamGroupSummaryList = (output, context) => {
1221
+ const retVal = (output || [])
1222
+ .filter((e) => e != null)
1223
+ .map((entry) => {
1224
+ return de_StreamGroupSummary(entry);
1225
+ });
1226
+ return retVal;
1227
+ };
1228
+ const de_StreamSessionSummary = (output, context) => {
1229
+ return smithyClient.take(output, {
1230
+ ApplicationArn: smithyClient.expectString,
1231
+ Arn: smithyClient.expectString,
1232
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1233
+ ExportFilesMetadata: smithyClient._json,
1234
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1235
+ Location: smithyClient.expectString,
1236
+ Protocol: smithyClient.expectString,
1237
+ Status: smithyClient.expectString,
1238
+ UserId: smithyClient.expectString,
1239
+ });
1240
+ };
1241
+ const de_StreamSessionSummaryList = (output, context) => {
1242
+ const retVal = (output || [])
1243
+ .filter((e) => e != null)
1244
+ .map((entry) => {
1245
+ return de_StreamSessionSummary(entry);
1246
+ });
1247
+ return retVal;
1248
+ };
1249
+ const deserializeMetadata = (output) => ({
1250
+ httpStatusCode: output.statusCode,
1251
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1252
+ extendedRequestId: output.headers["x-amz-id-2"],
1253
+ cfId: output.headers["x-amz-cf-id"],
1254
+ });
1255
+ const _EFS = "ExportFilesStatus";
1256
+ const _L = "Locations";
1257
+ const _MR = "MaxResults";
1258
+ const _NT = "NextToken";
1259
+ const _S = "Status";
1260
+ const _TK = "TagKeys";
1261
+ const _l = "locations";
1262
+ const _tK = "tagKeys";
1263
+
1264
+ class AddStreamGroupLocationsCommand extends smithyClient.Command
1265
+ .classBuilder()
1266
+ .ep(commonParams)
1267
+ .m(function (Command, cs, config, o) {
1268
+ return [
1269
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1270
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1271
+ ];
1272
+ })
1273
+ .s("GameLiftStreams", "AddStreamGroupLocations", {})
1274
+ .n("GameLiftStreamsClient", "AddStreamGroupLocationsCommand")
1275
+ .f(void 0, void 0)
1276
+ .ser(se_AddStreamGroupLocationsCommand)
1277
+ .de(de_AddStreamGroupLocationsCommand)
1278
+ .build() {
1279
+ }
1280
+
1281
+ class AssociateApplicationsCommand extends smithyClient.Command
1282
+ .classBuilder()
1283
+ .ep(commonParams)
1284
+ .m(function (Command, cs, config, o) {
1285
+ return [
1286
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1287
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1288
+ ];
1289
+ })
1290
+ .s("GameLiftStreams", "AssociateApplications", {})
1291
+ .n("GameLiftStreamsClient", "AssociateApplicationsCommand")
1292
+ .f(void 0, void 0)
1293
+ .ser(se_AssociateApplicationsCommand)
1294
+ .de(de_AssociateApplicationsCommand)
1295
+ .build() {
1296
+ }
1297
+
1298
+ class CreateApplicationCommand extends smithyClient.Command
1299
+ .classBuilder()
1300
+ .ep(commonParams)
1301
+ .m(function (Command, cs, config, o) {
1302
+ return [
1303
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1304
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1305
+ ];
1306
+ })
1307
+ .s("GameLiftStreams", "CreateApplication", {})
1308
+ .n("GameLiftStreamsClient", "CreateApplicationCommand")
1309
+ .f(void 0, void 0)
1310
+ .ser(se_CreateApplicationCommand)
1311
+ .de(de_CreateApplicationCommand)
1312
+ .build() {
1313
+ }
1314
+
1315
+ class CreateStreamGroupCommand extends smithyClient.Command
1316
+ .classBuilder()
1317
+ .ep(commonParams)
1318
+ .m(function (Command, cs, config, o) {
1319
+ return [
1320
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1321
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1322
+ ];
1323
+ })
1324
+ .s("GameLiftStreams", "CreateStreamGroup", {})
1325
+ .n("GameLiftStreamsClient", "CreateStreamGroupCommand")
1326
+ .f(void 0, void 0)
1327
+ .ser(se_CreateStreamGroupCommand)
1328
+ .de(de_CreateStreamGroupCommand)
1329
+ .build() {
1330
+ }
1331
+
1332
+ class CreateStreamSessionConnectionCommand extends smithyClient.Command
1333
+ .classBuilder()
1334
+ .ep(commonParams)
1335
+ .m(function (Command, cs, config, o) {
1336
+ return [
1337
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1338
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1339
+ ];
1340
+ })
1341
+ .s("GameLiftStreams", "CreateStreamSessionConnection", {})
1342
+ .n("GameLiftStreamsClient", "CreateStreamSessionConnectionCommand")
1343
+ .f(CreateStreamSessionConnectionInputFilterSensitiveLog, CreateStreamSessionConnectionOutputFilterSensitiveLog)
1344
+ .ser(se_CreateStreamSessionConnectionCommand)
1345
+ .de(de_CreateStreamSessionConnectionCommand)
1346
+ .build() {
1347
+ }
1348
+
1349
+ class DeleteApplicationCommand extends smithyClient.Command
1350
+ .classBuilder()
1351
+ .ep(commonParams)
1352
+ .m(function (Command, cs, config, o) {
1353
+ return [
1354
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1355
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1356
+ ];
1357
+ })
1358
+ .s("GameLiftStreams", "DeleteApplication", {})
1359
+ .n("GameLiftStreamsClient", "DeleteApplicationCommand")
1360
+ .f(void 0, void 0)
1361
+ .ser(se_DeleteApplicationCommand)
1362
+ .de(de_DeleteApplicationCommand)
1363
+ .build() {
1364
+ }
1365
+
1366
+ class DeleteStreamGroupCommand extends smithyClient.Command
1367
+ .classBuilder()
1368
+ .ep(commonParams)
1369
+ .m(function (Command, cs, config, o) {
1370
+ return [
1371
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1372
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1373
+ ];
1374
+ })
1375
+ .s("GameLiftStreams", "DeleteStreamGroup", {})
1376
+ .n("GameLiftStreamsClient", "DeleteStreamGroupCommand")
1377
+ .f(void 0, void 0)
1378
+ .ser(se_DeleteStreamGroupCommand)
1379
+ .de(de_DeleteStreamGroupCommand)
1380
+ .build() {
1381
+ }
1382
+
1383
+ class DisassociateApplicationsCommand extends smithyClient.Command
1384
+ .classBuilder()
1385
+ .ep(commonParams)
1386
+ .m(function (Command, cs, config, o) {
1387
+ return [
1388
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1389
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1390
+ ];
1391
+ })
1392
+ .s("GameLiftStreams", "DisassociateApplications", {})
1393
+ .n("GameLiftStreamsClient", "DisassociateApplicationsCommand")
1394
+ .f(void 0, void 0)
1395
+ .ser(se_DisassociateApplicationsCommand)
1396
+ .de(de_DisassociateApplicationsCommand)
1397
+ .build() {
1398
+ }
1399
+
1400
+ class ExportStreamSessionFilesCommand extends smithyClient.Command
1401
+ .classBuilder()
1402
+ .ep(commonParams)
1403
+ .m(function (Command, cs, config, o) {
1404
+ return [
1405
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1406
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1407
+ ];
1408
+ })
1409
+ .s("GameLiftStreams", "ExportStreamSessionFiles", {})
1410
+ .n("GameLiftStreamsClient", "ExportStreamSessionFilesCommand")
1411
+ .f(void 0, void 0)
1412
+ .ser(se_ExportStreamSessionFilesCommand)
1413
+ .de(de_ExportStreamSessionFilesCommand)
1414
+ .build() {
1415
+ }
1416
+
1417
+ class GetApplicationCommand extends smithyClient.Command
1418
+ .classBuilder()
1419
+ .ep(commonParams)
1420
+ .m(function (Command, cs, config, o) {
1421
+ return [
1422
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1423
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1424
+ ];
1425
+ })
1426
+ .s("GameLiftStreams", "GetApplication", {})
1427
+ .n("GameLiftStreamsClient", "GetApplicationCommand")
1428
+ .f(void 0, void 0)
1429
+ .ser(se_GetApplicationCommand)
1430
+ .de(de_GetApplicationCommand)
1431
+ .build() {
1432
+ }
1433
+
1434
+ class GetStreamGroupCommand extends smithyClient.Command
1435
+ .classBuilder()
1436
+ .ep(commonParams)
1437
+ .m(function (Command, cs, config, o) {
1438
+ return [
1439
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1440
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1441
+ ];
1442
+ })
1443
+ .s("GameLiftStreams", "GetStreamGroup", {})
1444
+ .n("GameLiftStreamsClient", "GetStreamGroupCommand")
1445
+ .f(void 0, void 0)
1446
+ .ser(se_GetStreamGroupCommand)
1447
+ .de(de_GetStreamGroupCommand)
1448
+ .build() {
1449
+ }
1450
+
1451
+ class GetStreamSessionCommand extends smithyClient.Command
1452
+ .classBuilder()
1453
+ .ep(commonParams)
1454
+ .m(function (Command, cs, config, o) {
1455
+ return [
1456
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1457
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1458
+ ];
1459
+ })
1460
+ .s("GameLiftStreams", "GetStreamSession", {})
1461
+ .n("GameLiftStreamsClient", "GetStreamSessionCommand")
1462
+ .f(void 0, GetStreamSessionOutputFilterSensitiveLog)
1463
+ .ser(se_GetStreamSessionCommand)
1464
+ .de(de_GetStreamSessionCommand)
1465
+ .build() {
1466
+ }
1467
+
1468
+ class ListApplicationsCommand extends smithyClient.Command
1469
+ .classBuilder()
1470
+ .ep(commonParams)
1471
+ .m(function (Command, cs, config, o) {
1472
+ return [
1473
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1474
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1475
+ ];
1476
+ })
1477
+ .s("GameLiftStreams", "ListApplications", {})
1478
+ .n("GameLiftStreamsClient", "ListApplicationsCommand")
1479
+ .f(void 0, void 0)
1480
+ .ser(se_ListApplicationsCommand)
1481
+ .de(de_ListApplicationsCommand)
1482
+ .build() {
1483
+ }
1484
+
1485
+ class ListStreamGroupsCommand extends smithyClient.Command
1486
+ .classBuilder()
1487
+ .ep(commonParams)
1488
+ .m(function (Command, cs, config, o) {
1489
+ return [
1490
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1491
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1492
+ ];
1493
+ })
1494
+ .s("GameLiftStreams", "ListStreamGroups", {})
1495
+ .n("GameLiftStreamsClient", "ListStreamGroupsCommand")
1496
+ .f(void 0, void 0)
1497
+ .ser(se_ListStreamGroupsCommand)
1498
+ .de(de_ListStreamGroupsCommand)
1499
+ .build() {
1500
+ }
1501
+
1502
+ class ListStreamSessionsByAccountCommand extends smithyClient.Command
1503
+ .classBuilder()
1504
+ .ep(commonParams)
1505
+ .m(function (Command, cs, config, o) {
1506
+ return [
1507
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1508
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1509
+ ];
1510
+ })
1511
+ .s("GameLiftStreams", "ListStreamSessionsByAccount", {})
1512
+ .n("GameLiftStreamsClient", "ListStreamSessionsByAccountCommand")
1513
+ .f(void 0, void 0)
1514
+ .ser(se_ListStreamSessionsByAccountCommand)
1515
+ .de(de_ListStreamSessionsByAccountCommand)
1516
+ .build() {
1517
+ }
1518
+
1519
+ class ListStreamSessionsCommand extends smithyClient.Command
1520
+ .classBuilder()
1521
+ .ep(commonParams)
1522
+ .m(function (Command, cs, config, o) {
1523
+ return [
1524
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1525
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1526
+ ];
1527
+ })
1528
+ .s("GameLiftStreams", "ListStreamSessions", {})
1529
+ .n("GameLiftStreamsClient", "ListStreamSessionsCommand")
1530
+ .f(void 0, void 0)
1531
+ .ser(se_ListStreamSessionsCommand)
1532
+ .de(de_ListStreamSessionsCommand)
1533
+ .build() {
1534
+ }
1535
+
1536
+ class ListTagsForResourceCommand extends smithyClient.Command
1537
+ .classBuilder()
1538
+ .ep(commonParams)
1539
+ .m(function (Command, cs, config, o) {
1540
+ return [
1541
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1542
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1543
+ ];
1544
+ })
1545
+ .s("GameLiftStreams", "ListTagsForResource", {})
1546
+ .n("GameLiftStreamsClient", "ListTagsForResourceCommand")
1547
+ .f(void 0, void 0)
1548
+ .ser(se_ListTagsForResourceCommand)
1549
+ .de(de_ListTagsForResourceCommand)
1550
+ .build() {
1551
+ }
1552
+
1553
+ class RemoveStreamGroupLocationsCommand extends smithyClient.Command
1554
+ .classBuilder()
1555
+ .ep(commonParams)
1556
+ .m(function (Command, cs, config, o) {
1557
+ return [
1558
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1559
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1560
+ ];
1561
+ })
1562
+ .s("GameLiftStreams", "RemoveStreamGroupLocations", {})
1563
+ .n("GameLiftStreamsClient", "RemoveStreamGroupLocationsCommand")
1564
+ .f(void 0, void 0)
1565
+ .ser(se_RemoveStreamGroupLocationsCommand)
1566
+ .de(de_RemoveStreamGroupLocationsCommand)
1567
+ .build() {
1568
+ }
1569
+
1570
+ class StartStreamSessionCommand extends smithyClient.Command
1571
+ .classBuilder()
1572
+ .ep(commonParams)
1573
+ .m(function (Command, cs, config, o) {
1574
+ return [
1575
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1576
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1577
+ ];
1578
+ })
1579
+ .s("GameLiftStreams", "StartStreamSession", {})
1580
+ .n("GameLiftStreamsClient", "StartStreamSessionCommand")
1581
+ .f(StartStreamSessionInputFilterSensitiveLog, StartStreamSessionOutputFilterSensitiveLog)
1582
+ .ser(se_StartStreamSessionCommand)
1583
+ .de(de_StartStreamSessionCommand)
1584
+ .build() {
1585
+ }
1586
+
1587
+ class TagResourceCommand extends smithyClient.Command
1588
+ .classBuilder()
1589
+ .ep(commonParams)
1590
+ .m(function (Command, cs, config, o) {
1591
+ return [
1592
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1593
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1594
+ ];
1595
+ })
1596
+ .s("GameLiftStreams", "TagResource", {})
1597
+ .n("GameLiftStreamsClient", "TagResourceCommand")
1598
+ .f(void 0, void 0)
1599
+ .ser(se_TagResourceCommand)
1600
+ .de(de_TagResourceCommand)
1601
+ .build() {
1602
+ }
1603
+
1604
+ class TerminateStreamSessionCommand extends smithyClient.Command
1605
+ .classBuilder()
1606
+ .ep(commonParams)
1607
+ .m(function (Command, cs, config, o) {
1608
+ return [
1609
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1610
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1611
+ ];
1612
+ })
1613
+ .s("GameLiftStreams", "TerminateStreamSession", {})
1614
+ .n("GameLiftStreamsClient", "TerminateStreamSessionCommand")
1615
+ .f(void 0, void 0)
1616
+ .ser(se_TerminateStreamSessionCommand)
1617
+ .de(de_TerminateStreamSessionCommand)
1618
+ .build() {
1619
+ }
1620
+
1621
+ class UntagResourceCommand extends smithyClient.Command
1622
+ .classBuilder()
1623
+ .ep(commonParams)
1624
+ .m(function (Command, cs, config, o) {
1625
+ return [
1626
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1627
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1628
+ ];
1629
+ })
1630
+ .s("GameLiftStreams", "UntagResource", {})
1631
+ .n("GameLiftStreamsClient", "UntagResourceCommand")
1632
+ .f(void 0, void 0)
1633
+ .ser(se_UntagResourceCommand)
1634
+ .de(de_UntagResourceCommand)
1635
+ .build() {
1636
+ }
1637
+
1638
+ class UpdateApplicationCommand extends smithyClient.Command
1639
+ .classBuilder()
1640
+ .ep(commonParams)
1641
+ .m(function (Command, cs, config, o) {
1642
+ return [
1643
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1644
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1645
+ ];
1646
+ })
1647
+ .s("GameLiftStreams", "UpdateApplication", {})
1648
+ .n("GameLiftStreamsClient", "UpdateApplicationCommand")
1649
+ .f(void 0, void 0)
1650
+ .ser(se_UpdateApplicationCommand)
1651
+ .de(de_UpdateApplicationCommand)
1652
+ .build() {
1653
+ }
1654
+
1655
+ class UpdateStreamGroupCommand extends smithyClient.Command
1656
+ .classBuilder()
1657
+ .ep(commonParams)
1658
+ .m(function (Command, cs, config, o) {
1659
+ return [
1660
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1661
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1662
+ ];
1663
+ })
1664
+ .s("GameLiftStreams", "UpdateStreamGroup", {})
1665
+ .n("GameLiftStreamsClient", "UpdateStreamGroupCommand")
1666
+ .f(void 0, void 0)
1667
+ .ser(se_UpdateStreamGroupCommand)
1668
+ .de(de_UpdateStreamGroupCommand)
1669
+ .build() {
1670
+ }
1671
+
1672
+ const commands = {
1673
+ AddStreamGroupLocationsCommand,
1674
+ AssociateApplicationsCommand,
1675
+ CreateApplicationCommand,
1676
+ CreateStreamGroupCommand,
1677
+ CreateStreamSessionConnectionCommand,
1678
+ DeleteApplicationCommand,
1679
+ DeleteStreamGroupCommand,
1680
+ DisassociateApplicationsCommand,
1681
+ ExportStreamSessionFilesCommand,
1682
+ GetApplicationCommand,
1683
+ GetStreamGroupCommand,
1684
+ GetStreamSessionCommand,
1685
+ ListApplicationsCommand,
1686
+ ListStreamGroupsCommand,
1687
+ ListStreamSessionsCommand,
1688
+ ListStreamSessionsByAccountCommand,
1689
+ ListTagsForResourceCommand,
1690
+ RemoveStreamGroupLocationsCommand,
1691
+ StartStreamSessionCommand,
1692
+ TagResourceCommand,
1693
+ TerminateStreamSessionCommand,
1694
+ UntagResourceCommand,
1695
+ UpdateApplicationCommand,
1696
+ UpdateStreamGroupCommand,
1697
+ };
1698
+ class GameLiftStreams extends GameLiftStreamsClient {
1699
+ }
1700
+ smithyClient.createAggregatedClient(commands, GameLiftStreams);
1850
1701
 
1851
- // src/GameLiftStreams.ts
1852
- var commands = {
1853
- AddStreamGroupLocationsCommand,
1854
- AssociateApplicationsCommand,
1855
- CreateApplicationCommand,
1856
- CreateStreamGroupCommand,
1857
- CreateStreamSessionConnectionCommand,
1858
- DeleteApplicationCommand,
1859
- DeleteStreamGroupCommand,
1860
- DisassociateApplicationsCommand,
1861
- ExportStreamSessionFilesCommand,
1862
- GetApplicationCommand,
1863
- GetStreamGroupCommand,
1864
- GetStreamSessionCommand,
1865
- ListApplicationsCommand,
1866
- ListStreamGroupsCommand,
1867
- ListStreamSessionsCommand,
1868
- ListStreamSessionsByAccountCommand,
1869
- ListTagsForResourceCommand,
1870
- RemoveStreamGroupLocationsCommand,
1871
- StartStreamSessionCommand,
1872
- TagResourceCommand,
1873
- TerminateStreamSessionCommand,
1874
- UntagResourceCommand,
1875
- UpdateApplicationCommand,
1876
- UpdateStreamGroupCommand
1877
- };
1878
- var GameLiftStreams = class extends GameLiftStreamsClient {
1879
- static {
1880
- __name(this, "GameLiftStreams");
1881
- }
1882
- };
1883
- (0, import_smithy_client.createAggregatedClient)(commands, GameLiftStreams);
1884
-
1885
- // src/pagination/ListApplicationsPaginator.ts
1886
-
1887
- var paginateListApplications = (0, import_core.createPaginator)(GameLiftStreamsClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
1888
-
1889
- // src/pagination/ListStreamGroupsPaginator.ts
1890
-
1891
- var paginateListStreamGroups = (0, import_core.createPaginator)(GameLiftStreamsClient, ListStreamGroupsCommand, "NextToken", "NextToken", "MaxResults");
1892
-
1893
- // src/pagination/ListStreamSessionsByAccountPaginator.ts
1894
-
1895
- var paginateListStreamSessionsByAccount = (0, import_core.createPaginator)(GameLiftStreamsClient, ListStreamSessionsByAccountCommand, "NextToken", "NextToken", "MaxResults");
1896
-
1897
- // src/pagination/ListStreamSessionsPaginator.ts
1702
+ const paginateListApplications = core.createPaginator(GameLiftStreamsClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
1898
1703
 
1899
- var paginateListStreamSessions = (0, import_core.createPaginator)(GameLiftStreamsClient, ListStreamSessionsCommand, "NextToken", "NextToken", "MaxResults");
1704
+ const paginateListStreamGroups = core.createPaginator(GameLiftStreamsClient, ListStreamGroupsCommand, "NextToken", "NextToken", "MaxResults");
1900
1705
 
1901
- // src/waiters/waitForApplicationDeleted.ts
1902
- var import_util_waiter = require("@smithy/util-waiter");
1903
- var checkState = /* @__PURE__ */ __name(async (client, input) => {
1904
- let reason;
1905
- try {
1906
- const result = await client.send(new GetApplicationCommand(input));
1907
- reason = result;
1908
- } catch (exception) {
1909
- reason = exception;
1910
- if (exception.name && exception.name == "ResourceNotFoundException") {
1911
- return { state: import_util_waiter.WaiterState.SUCCESS, reason };
1912
- }
1913
- }
1914
- return { state: import_util_waiter.WaiterState.RETRY, reason };
1915
- }, "checkState");
1916
- var waitForApplicationDeleted = /* @__PURE__ */ __name(async (params, input) => {
1917
- const serviceDefaults = { minDelay: 2, maxDelay: 120 };
1918
- return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
1919
- }, "waitForApplicationDeleted");
1920
- var waitUntilApplicationDeleted = /* @__PURE__ */ __name(async (params, input) => {
1921
- const serviceDefaults = { minDelay: 2, maxDelay: 120 };
1922
- const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
1923
- return (0, import_util_waiter.checkExceptions)(result);
1924
- }, "waitUntilApplicationDeleted");
1706
+ const paginateListStreamSessionsByAccount = core.createPaginator(GameLiftStreamsClient, ListStreamSessionsByAccountCommand, "NextToken", "NextToken", "MaxResults");
1925
1707
 
1926
- // src/waiters/waitForApplicationReady.ts
1708
+ const paginateListStreamSessions = core.createPaginator(GameLiftStreamsClient, ListStreamSessionsCommand, "NextToken", "NextToken", "MaxResults");
1927
1709
 
1928
- var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
1929
- let reason;
1930
- try {
1931
- const result = await client.send(new GetApplicationCommand(input));
1932
- reason = result;
1710
+ const checkState$4 = async (client, input) => {
1711
+ let reason;
1933
1712
  try {
1934
- const returnComparator = /* @__PURE__ */ __name(() => {
1935
- return result.Status;
1936
- }, "returnComparator");
1937
- if (returnComparator() === "READY") {
1938
- return { state: import_util_waiter.WaiterState.SUCCESS, reason };
1939
- }
1940
- } catch (e) {
1713
+ const result = await client.send(new GetApplicationCommand(input));
1714
+ reason = result;
1941
1715
  }
1942
- try {
1943
- const returnComparator = /* @__PURE__ */ __name(() => {
1944
- return result.Status;
1945
- }, "returnComparator");
1946
- if (returnComparator() === "ERROR") {
1947
- return { state: import_util_waiter.WaiterState.FAILURE, reason };
1948
- }
1949
- } catch (e) {
1716
+ catch (exception) {
1717
+ reason = exception;
1718
+ if (exception.name && exception.name == "ResourceNotFoundException") {
1719
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
1720
+ }
1950
1721
  }
1951
- } catch (exception) {
1952
- reason = exception;
1953
- }
1954
- return { state: import_util_waiter.WaiterState.RETRY, reason };
1955
- }, "checkState");
1956
- var waitForApplicationReady = /* @__PURE__ */ __name(async (params, input) => {
1957
- const serviceDefaults = { minDelay: 2, maxDelay: 120 };
1958
- return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
1959
- }, "waitForApplicationReady");
1960
- var waitUntilApplicationReady = /* @__PURE__ */ __name(async (params, input) => {
1961
- const serviceDefaults = { minDelay: 2, maxDelay: 120 };
1962
- const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
1963
- return (0, import_util_waiter.checkExceptions)(result);
1964
- }, "waitUntilApplicationReady");
1965
-
1966
- // src/waiters/waitForStreamGroupActive.ts
1722
+ return { state: utilWaiter.WaiterState.RETRY, reason };
1723
+ };
1724
+ const waitForApplicationDeleted = async (params, input) => {
1725
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
1726
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
1727
+ };
1728
+ const waitUntilApplicationDeleted = async (params, input) => {
1729
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
1730
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
1731
+ return utilWaiter.checkExceptions(result);
1732
+ };
1967
1733
 
1968
- var checkState3 = /* @__PURE__ */ __name(async (client, input) => {
1969
- let reason;
1970
- try {
1971
- const result = await client.send(new GetStreamGroupCommand(input));
1972
- reason = result;
1734
+ const checkState$3 = async (client, input) => {
1735
+ let reason;
1973
1736
  try {
1974
- const returnComparator = /* @__PURE__ */ __name(() => {
1975
- return result.Status;
1976
- }, "returnComparator");
1977
- if (returnComparator() === "ACTIVE") {
1978
- return { state: import_util_waiter.WaiterState.SUCCESS, reason };
1979
- }
1980
- } catch (e) {
1737
+ const result = await client.send(new GetApplicationCommand(input));
1738
+ reason = result;
1739
+ try {
1740
+ const returnComparator = () => {
1741
+ return result.Status;
1742
+ };
1743
+ if (returnComparator() === "READY") {
1744
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
1745
+ }
1746
+ }
1747
+ catch (e) { }
1748
+ try {
1749
+ const returnComparator = () => {
1750
+ return result.Status;
1751
+ };
1752
+ if (returnComparator() === "ERROR") {
1753
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1754
+ }
1755
+ }
1756
+ catch (e) { }
1981
1757
  }
1982
- try {
1983
- const returnComparator = /* @__PURE__ */ __name(() => {
1984
- return result.Status;
1985
- }, "returnComparator");
1986
- if (returnComparator() === "ERROR") {
1987
- return { state: import_util_waiter.WaiterState.FAILURE, reason };
1988
- }
1989
- } catch (e) {
1758
+ catch (exception) {
1759
+ reason = exception;
1990
1760
  }
1761
+ return { state: utilWaiter.WaiterState.RETRY, reason };
1762
+ };
1763
+ const waitForApplicationReady = async (params, input) => {
1764
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
1765
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
1766
+ };
1767
+ const waitUntilApplicationReady = async (params, input) => {
1768
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
1769
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
1770
+ return utilWaiter.checkExceptions(result);
1771
+ };
1772
+
1773
+ const checkState$2 = async (client, input) => {
1774
+ let reason;
1991
1775
  try {
1992
- const returnComparator = /* @__PURE__ */ __name(() => {
1993
- return result.Status;
1994
- }, "returnComparator");
1995
- if (returnComparator() === "ACTIVE_WITH_ERRORS") {
1996
- return { state: import_util_waiter.WaiterState.FAILURE, reason };
1997
- }
1998
- } catch (e) {
1776
+ const result = await client.send(new GetStreamGroupCommand(input));
1777
+ reason = result;
1778
+ try {
1779
+ const returnComparator = () => {
1780
+ return result.Status;
1781
+ };
1782
+ if (returnComparator() === "ACTIVE") {
1783
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
1784
+ }
1785
+ }
1786
+ catch (e) { }
1787
+ try {
1788
+ const returnComparator = () => {
1789
+ return result.Status;
1790
+ };
1791
+ if (returnComparator() === "ERROR") {
1792
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1793
+ }
1794
+ }
1795
+ catch (e) { }
1796
+ try {
1797
+ const returnComparator = () => {
1798
+ return result.Status;
1799
+ };
1800
+ if (returnComparator() === "ACTIVE_WITH_ERRORS") {
1801
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1802
+ }
1803
+ }
1804
+ catch (e) { }
1805
+ try {
1806
+ const returnComparator = () => {
1807
+ return result.Status;
1808
+ };
1809
+ if (returnComparator() === "DELETING") {
1810
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1811
+ }
1812
+ }
1813
+ catch (e) { }
1999
1814
  }
2000
- try {
2001
- const returnComparator = /* @__PURE__ */ __name(() => {
2002
- return result.Status;
2003
- }, "returnComparator");
2004
- if (returnComparator() === "DELETING") {
2005
- return { state: import_util_waiter.WaiterState.FAILURE, reason };
2006
- }
2007
- } catch (e) {
1815
+ catch (exception) {
1816
+ reason = exception;
2008
1817
  }
2009
- } catch (exception) {
2010
- reason = exception;
2011
- }
2012
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2013
- }, "checkState");
2014
- var waitForStreamGroupActive = /* @__PURE__ */ __name(async (params, input) => {
2015
- const serviceDefaults = { minDelay: 30, maxDelay: 3600 };
2016
- return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
2017
- }, "waitForStreamGroupActive");
2018
- var waitUntilStreamGroupActive = /* @__PURE__ */ __name(async (params, input) => {
2019
- const serviceDefaults = { minDelay: 30, maxDelay: 3600 };
2020
- const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
2021
- return (0, import_util_waiter.checkExceptions)(result);
2022
- }, "waitUntilStreamGroupActive");
2023
-
2024
- // src/waiters/waitForStreamGroupDeleted.ts
1818
+ return { state: utilWaiter.WaiterState.RETRY, reason };
1819
+ };
1820
+ const waitForStreamGroupActive = async (params, input) => {
1821
+ const serviceDefaults = { minDelay: 30, maxDelay: 3600 };
1822
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
1823
+ };
1824
+ const waitUntilStreamGroupActive = async (params, input) => {
1825
+ const serviceDefaults = { minDelay: 30, maxDelay: 3600 };
1826
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
1827
+ return utilWaiter.checkExceptions(result);
1828
+ };
2025
1829
 
2026
- var checkState4 = /* @__PURE__ */ __name(async (client, input) => {
2027
- let reason;
2028
- try {
2029
- const result = await client.send(new GetStreamGroupCommand(input));
2030
- reason = result;
2031
- } catch (exception) {
2032
- reason = exception;
2033
- if (exception.name && exception.name == "ResourceNotFoundException") {
2034
- return { state: import_util_waiter.WaiterState.SUCCESS, reason };
1830
+ const checkState$1 = async (client, input) => {
1831
+ let reason;
1832
+ try {
1833
+ const result = await client.send(new GetStreamGroupCommand(input));
1834
+ reason = result;
2035
1835
  }
2036
- }
2037
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2038
- }, "checkState");
2039
- var waitForStreamGroupDeleted = /* @__PURE__ */ __name(async (params, input) => {
2040
- const serviceDefaults = { minDelay: 30, maxDelay: 1800 };
2041
- return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
2042
- }, "waitForStreamGroupDeleted");
2043
- var waitUntilStreamGroupDeleted = /* @__PURE__ */ __name(async (params, input) => {
2044
- const serviceDefaults = { minDelay: 30, maxDelay: 1800 };
2045
- const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
2046
- return (0, import_util_waiter.checkExceptions)(result);
2047
- }, "waitUntilStreamGroupDeleted");
2048
-
2049
- // src/waiters/waitForStreamSessionActive.ts
1836
+ catch (exception) {
1837
+ reason = exception;
1838
+ if (exception.name && exception.name == "ResourceNotFoundException") {
1839
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
1840
+ }
1841
+ }
1842
+ return { state: utilWaiter.WaiterState.RETRY, reason };
1843
+ };
1844
+ const waitForStreamGroupDeleted = async (params, input) => {
1845
+ const serviceDefaults = { minDelay: 30, maxDelay: 1800 };
1846
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
1847
+ };
1848
+ const waitUntilStreamGroupDeleted = async (params, input) => {
1849
+ const serviceDefaults = { minDelay: 30, maxDelay: 1800 };
1850
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
1851
+ return utilWaiter.checkExceptions(result);
1852
+ };
2050
1853
 
2051
- var checkState5 = /* @__PURE__ */ __name(async (client, input) => {
2052
- let reason;
2053
- try {
2054
- const result = await client.send(new GetStreamSessionCommand(input));
2055
- reason = result;
1854
+ const checkState = async (client, input) => {
1855
+ let reason;
2056
1856
  try {
2057
- const returnComparator = /* @__PURE__ */ __name(() => {
2058
- return result.Status;
2059
- }, "returnComparator");
2060
- if (returnComparator() === "ACTIVE") {
2061
- return { state: import_util_waiter.WaiterState.SUCCESS, reason };
2062
- }
2063
- } catch (e) {
1857
+ const result = await client.send(new GetStreamSessionCommand(input));
1858
+ reason = result;
1859
+ try {
1860
+ const returnComparator = () => {
1861
+ return result.Status;
1862
+ };
1863
+ if (returnComparator() === "ACTIVE") {
1864
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
1865
+ }
1866
+ }
1867
+ catch (e) { }
1868
+ try {
1869
+ const returnComparator = () => {
1870
+ return result.Status;
1871
+ };
1872
+ if (returnComparator() === "ERROR") {
1873
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1874
+ }
1875
+ }
1876
+ catch (e) { }
2064
1877
  }
2065
- try {
2066
- const returnComparator = /* @__PURE__ */ __name(() => {
2067
- return result.Status;
2068
- }, "returnComparator");
2069
- if (returnComparator() === "ERROR") {
2070
- return { state: import_util_waiter.WaiterState.FAILURE, reason };
2071
- }
2072
- } catch (e) {
1878
+ catch (exception) {
1879
+ reason = exception;
2073
1880
  }
2074
- } catch (exception) {
2075
- reason = exception;
2076
- }
2077
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2078
- }, "checkState");
2079
- var waitForStreamSessionActive = /* @__PURE__ */ __name(async (params, input) => {
2080
- const serviceDefaults = { minDelay: 2, maxDelay: 120 };
2081
- return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
2082
- }, "waitForStreamSessionActive");
2083
- var waitUntilStreamSessionActive = /* @__PURE__ */ __name(async (params, input) => {
2084
- const serviceDefaults = { minDelay: 2, maxDelay: 120 };
2085
- const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
2086
- return (0, import_util_waiter.checkExceptions)(result);
2087
- }, "waitUntilStreamSessionActive");
2088
- // Annotate the CommonJS export names for ESM import in node:
1881
+ return { state: utilWaiter.WaiterState.RETRY, reason };
1882
+ };
1883
+ const waitForStreamSessionActive = async (params, input) => {
1884
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
1885
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
1886
+ };
1887
+ const waitUntilStreamSessionActive = async (params, input) => {
1888
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
1889
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
1890
+ return utilWaiter.checkExceptions(result);
1891
+ };
2089
1892
 
2090
- 0 && (module.exports = {
2091
- GameLiftStreamsServiceException,
2092
- __Client,
2093
- GameLiftStreamsClient,
2094
- GameLiftStreams,
2095
- $Command,
2096
- AddStreamGroupLocationsCommand,
2097
- AssociateApplicationsCommand,
2098
- CreateApplicationCommand,
2099
- CreateStreamGroupCommand,
2100
- CreateStreamSessionConnectionCommand,
2101
- DeleteApplicationCommand,
2102
- DeleteStreamGroupCommand,
2103
- DisassociateApplicationsCommand,
2104
- ExportStreamSessionFilesCommand,
2105
- GetApplicationCommand,
2106
- GetStreamGroupCommand,
2107
- GetStreamSessionCommand,
2108
- ListApplicationsCommand,
2109
- ListStreamGroupsCommand,
2110
- ListStreamSessionsByAccountCommand,
2111
- ListStreamSessionsCommand,
2112
- ListTagsForResourceCommand,
2113
- RemoveStreamGroupLocationsCommand,
2114
- StartStreamSessionCommand,
2115
- TagResourceCommand,
2116
- TerminateStreamSessionCommand,
2117
- UntagResourceCommand,
2118
- UpdateApplicationCommand,
2119
- UpdateStreamGroupCommand,
2120
- paginateListApplications,
2121
- paginateListStreamGroups,
2122
- paginateListStreamSessionsByAccount,
2123
- paginateListStreamSessions,
2124
- waitForApplicationDeleted,
2125
- waitUntilApplicationDeleted,
2126
- waitForApplicationReady,
2127
- waitUntilApplicationReady,
2128
- waitForStreamGroupActive,
2129
- waitUntilStreamGroupActive,
2130
- waitForStreamGroupDeleted,
2131
- waitUntilStreamGroupDeleted,
2132
- waitForStreamSessionActive,
2133
- waitUntilStreamSessionActive,
2134
- AccessDeniedException,
2135
- StreamGroupLocationStatus,
2136
- InternalServerException,
2137
- ResourceNotFoundException,
2138
- ServiceQuotaExceededException,
2139
- ThrottlingException,
2140
- ValidationException,
2141
- ApplicationStatus,
2142
- ApplicationStatusReason,
2143
- ConflictException,
2144
- RuntimeEnvironmentType,
2145
- ReplicationStatusType,
2146
- StreamClass,
2147
- StreamGroupStatus,
2148
- StreamGroupStatusReason,
2149
- ExportFilesStatus,
2150
- Protocol,
2151
- StreamSessionStatus,
2152
- StreamSessionStatusReason,
2153
- CreateStreamSessionConnectionInputFilterSensitiveLog,
2154
- CreateStreamSessionConnectionOutputFilterSensitiveLog,
2155
- GetStreamSessionOutputFilterSensitiveLog,
2156
- StartStreamSessionInputFilterSensitiveLog,
2157
- StartStreamSessionOutputFilterSensitiveLog
1893
+ Object.defineProperty(exports, "$Command", {
1894
+ enumerable: true,
1895
+ get: function () { return smithyClient.Command; }
2158
1896
  });
2159
-
1897
+ Object.defineProperty(exports, "__Client", {
1898
+ enumerable: true,
1899
+ get: function () { return smithyClient.Client; }
1900
+ });
1901
+ exports.AccessDeniedException = AccessDeniedException;
1902
+ exports.AddStreamGroupLocationsCommand = AddStreamGroupLocationsCommand;
1903
+ exports.ApplicationStatus = ApplicationStatus;
1904
+ exports.ApplicationStatusReason = ApplicationStatusReason;
1905
+ exports.AssociateApplicationsCommand = AssociateApplicationsCommand;
1906
+ exports.ConflictException = ConflictException;
1907
+ exports.CreateApplicationCommand = CreateApplicationCommand;
1908
+ exports.CreateStreamGroupCommand = CreateStreamGroupCommand;
1909
+ exports.CreateStreamSessionConnectionCommand = CreateStreamSessionConnectionCommand;
1910
+ exports.CreateStreamSessionConnectionInputFilterSensitiveLog = CreateStreamSessionConnectionInputFilterSensitiveLog;
1911
+ exports.CreateStreamSessionConnectionOutputFilterSensitiveLog = CreateStreamSessionConnectionOutputFilterSensitiveLog;
1912
+ exports.DeleteApplicationCommand = DeleteApplicationCommand;
1913
+ exports.DeleteStreamGroupCommand = DeleteStreamGroupCommand;
1914
+ exports.DisassociateApplicationsCommand = DisassociateApplicationsCommand;
1915
+ exports.ExportFilesStatus = ExportFilesStatus;
1916
+ exports.ExportStreamSessionFilesCommand = ExportStreamSessionFilesCommand;
1917
+ exports.GameLiftStreams = GameLiftStreams;
1918
+ exports.GameLiftStreamsClient = GameLiftStreamsClient;
1919
+ exports.GameLiftStreamsServiceException = GameLiftStreamsServiceException;
1920
+ exports.GetApplicationCommand = GetApplicationCommand;
1921
+ exports.GetStreamGroupCommand = GetStreamGroupCommand;
1922
+ exports.GetStreamSessionCommand = GetStreamSessionCommand;
1923
+ exports.GetStreamSessionOutputFilterSensitiveLog = GetStreamSessionOutputFilterSensitiveLog;
1924
+ exports.InternalServerException = InternalServerException;
1925
+ exports.ListApplicationsCommand = ListApplicationsCommand;
1926
+ exports.ListStreamGroupsCommand = ListStreamGroupsCommand;
1927
+ exports.ListStreamSessionsByAccountCommand = ListStreamSessionsByAccountCommand;
1928
+ exports.ListStreamSessionsCommand = ListStreamSessionsCommand;
1929
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1930
+ exports.Protocol = Protocol;
1931
+ exports.RemoveStreamGroupLocationsCommand = RemoveStreamGroupLocationsCommand;
1932
+ exports.ReplicationStatusType = ReplicationStatusType;
1933
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1934
+ exports.RuntimeEnvironmentType = RuntimeEnvironmentType;
1935
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1936
+ exports.StartStreamSessionCommand = StartStreamSessionCommand;
1937
+ exports.StartStreamSessionInputFilterSensitiveLog = StartStreamSessionInputFilterSensitiveLog;
1938
+ exports.StartStreamSessionOutputFilterSensitiveLog = StartStreamSessionOutputFilterSensitiveLog;
1939
+ exports.StreamClass = StreamClass;
1940
+ exports.StreamGroupLocationStatus = StreamGroupLocationStatus;
1941
+ exports.StreamGroupStatus = StreamGroupStatus;
1942
+ exports.StreamGroupStatusReason = StreamGroupStatusReason;
1943
+ exports.StreamSessionStatus = StreamSessionStatus;
1944
+ exports.StreamSessionStatusReason = StreamSessionStatusReason;
1945
+ exports.TagResourceCommand = TagResourceCommand;
1946
+ exports.TerminateStreamSessionCommand = TerminateStreamSessionCommand;
1947
+ exports.ThrottlingException = ThrottlingException;
1948
+ exports.UntagResourceCommand = UntagResourceCommand;
1949
+ exports.UpdateApplicationCommand = UpdateApplicationCommand;
1950
+ exports.UpdateStreamGroupCommand = UpdateStreamGroupCommand;
1951
+ exports.ValidationException = ValidationException;
1952
+ exports.paginateListApplications = paginateListApplications;
1953
+ exports.paginateListStreamGroups = paginateListStreamGroups;
1954
+ exports.paginateListStreamSessions = paginateListStreamSessions;
1955
+ exports.paginateListStreamSessionsByAccount = paginateListStreamSessionsByAccount;
1956
+ exports.waitForApplicationDeleted = waitForApplicationDeleted;
1957
+ exports.waitForApplicationReady = waitForApplicationReady;
1958
+ exports.waitForStreamGroupActive = waitForStreamGroupActive;
1959
+ exports.waitForStreamGroupDeleted = waitForStreamGroupDeleted;
1960
+ exports.waitForStreamSessionActive = waitForStreamSessionActive;
1961
+ exports.waitUntilApplicationDeleted = waitUntilApplicationDeleted;
1962
+ exports.waitUntilApplicationReady = waitUntilApplicationReady;
1963
+ exports.waitUntilStreamGroupActive = waitUntilStreamGroupActive;
1964
+ exports.waitUntilStreamGroupDeleted = waitUntilStreamGroupDeleted;
1965
+ exports.waitUntilStreamSessionActive = waitUntilStreamSessionActive;