@aws-sdk/client-cloud9 3.1075.0 → 3.1076.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultCloud9HttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateEnvironmentEC2$, CreateEnvironmentMembership$, DeleteEnvironment$, DeleteEnvironmentMembership$, DescribeEnvironmentMemberships$, DescribeEnvironments$, DescribeEnvironmentStatus$, ListEnvironments$, ListTagsForResource$, TagResource$, UntagResource$, UpdateEnvironment$, UpdateEnvironmentMembership$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { Cloud9ServiceException } = require("./models/Cloud9ServiceException");
18
- exports.Cloud9ServiceException = Cloud9ServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultCloud9HttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "cloud9",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultCloud9HttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,636 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://cloud9-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://cloud9-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://cloud9.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://cloud9.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class Cloud9ServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, Cloud9ServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class BadRequestException extends Cloud9ServiceException {
140
+ name = "BadRequestException";
141
+ $fault = "client";
142
+ className;
143
+ code;
144
+ constructor(opts) {
145
+ super({
146
+ name: "BadRequestException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, BadRequestException.prototype);
151
+ this.className = opts.className;
152
+ this.code = opts.code;
153
+ }
154
+ }
155
+ class ConflictException extends Cloud9ServiceException {
156
+ name = "ConflictException";
157
+ $fault = "client";
158
+ className;
159
+ code;
160
+ constructor(opts) {
161
+ super({
162
+ name: "ConflictException",
163
+ $fault: "client",
164
+ ...opts,
165
+ });
166
+ Object.setPrototypeOf(this, ConflictException.prototype);
167
+ this.className = opts.className;
168
+ this.code = opts.code;
169
+ }
170
+ }
171
+ class ForbiddenException extends Cloud9ServiceException {
172
+ name = "ForbiddenException";
173
+ $fault = "client";
174
+ className;
175
+ code;
176
+ constructor(opts) {
177
+ super({
178
+ name: "ForbiddenException",
179
+ $fault: "client",
180
+ ...opts,
181
+ });
182
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
183
+ this.className = opts.className;
184
+ this.code = opts.code;
185
+ }
186
+ }
187
+ class InternalServerErrorException extends Cloud9ServiceException {
188
+ name = "InternalServerErrorException";
189
+ $fault = "server";
190
+ className;
191
+ code;
192
+ constructor(opts) {
193
+ super({
194
+ name: "InternalServerErrorException",
195
+ $fault: "server",
196
+ ...opts,
197
+ });
198
+ Object.setPrototypeOf(this, InternalServerErrorException.prototype);
199
+ this.className = opts.className;
200
+ this.code = opts.code;
201
+ }
202
+ }
203
+ class LimitExceededException extends Cloud9ServiceException {
204
+ name = "LimitExceededException";
205
+ $fault = "client";
206
+ className;
207
+ code;
208
+ constructor(opts) {
209
+ super({
210
+ name: "LimitExceededException",
211
+ $fault: "client",
212
+ ...opts,
213
+ });
214
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
215
+ this.className = opts.className;
216
+ this.code = opts.code;
217
+ }
218
+ }
219
+ class NotFoundException extends Cloud9ServiceException {
220
+ name = "NotFoundException";
221
+ $fault = "client";
222
+ className;
223
+ code;
224
+ constructor(opts) {
225
+ super({
226
+ name: "NotFoundException",
227
+ $fault: "client",
228
+ ...opts,
229
+ });
230
+ Object.setPrototypeOf(this, NotFoundException.prototype);
231
+ this.className = opts.className;
232
+ this.code = opts.code;
233
+ }
234
+ }
235
+ class TooManyRequestsException extends Cloud9ServiceException {
236
+ name = "TooManyRequestsException";
237
+ $fault = "client";
238
+ className;
239
+ code;
240
+ constructor(opts) {
241
+ super({
242
+ name: "TooManyRequestsException",
243
+ $fault: "client",
244
+ ...opts,
245
+ });
246
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
247
+ this.className = opts.className;
248
+ this.code = opts.code;
249
+ }
250
+ }
251
+ class ConcurrentAccessException extends Cloud9ServiceException {
252
+ name = "ConcurrentAccessException";
253
+ $fault = "client";
254
+ className;
255
+ code;
256
+ constructor(opts) {
257
+ super({
258
+ name: "ConcurrentAccessException",
259
+ $fault: "client",
260
+ ...opts,
261
+ });
262
+ Object.setPrototypeOf(this, ConcurrentAccessException.prototype);
263
+ this.className = opts.className;
264
+ this.code = opts.code;
265
+ }
266
+ }
267
+
268
+ const _BRE = "BadRequestException";
269
+ const _CAE = "ConcurrentAccessException";
270
+ const _CE = "ConflictException";
271
+ const _CEEC = "CreateEnvironmentEC2";
272
+ const _CEECR = "CreateEnvironmentEC2Request";
273
+ const _CEECRr = "CreateEnvironmentEC2Result";
274
+ const _CEM = "CreateEnvironmentMembership";
275
+ const _CEMR = "CreateEnvironmentMembershipRequest";
276
+ const _CEMRr = "CreateEnvironmentMembershipResult";
277
+ const _DE = "DeleteEnvironment";
278
+ const _DEM = "DeleteEnvironmentMembership";
279
+ const _DEMR = "DeleteEnvironmentMembershipRequest";
280
+ const _DEMRe = "DeleteEnvironmentMembershipResult";
281
+ const _DEMRes = "DescribeEnvironmentMembershipsRequest";
282
+ const _DEMResc = "DescribeEnvironmentMembershipsResult";
283
+ const _DEMe = "DescribeEnvironmentMemberships";
284
+ const _DER = "DeleteEnvironmentRequest";
285
+ const _DERe = "DeleteEnvironmentResult";
286
+ const _DERes = "DescribeEnvironmentsRequest";
287
+ const _DEResc = "DescribeEnvironmentsResult";
288
+ const _DES = "DescribeEnvironmentStatus";
289
+ const _DESR = "DescribeEnvironmentStatusRequest";
290
+ const _DESRe = "DescribeEnvironmentStatusResult";
291
+ const _DEe = "DescribeEnvironments";
292
+ const _E = "Environment";
293
+ const _ED = "EnvironmentDescription";
294
+ const _EL = "EnvironmentLifecycle";
295
+ const _ELn = "EnvironmentList";
296
+ const _EM = "EnvironmentMember";
297
+ const _EML = "EnvironmentMembersList";
298
+ const _FE = "ForbiddenException";
299
+ const _ISEE = "InternalServerErrorException";
300
+ const _K = "Key";
301
+ const _LE = "ListEnvironments";
302
+ const _LEE = "LimitExceededException";
303
+ const _LER = "ListEnvironmentsRequest";
304
+ const _LERi = "ListEnvironmentsResult";
305
+ const _LTFR = "ListTagsForResource";
306
+ const _LTFRR = "ListTagsForResourceRequest";
307
+ const _LTFRRi = "ListTagsForResourceResponse";
308
+ const _NFE = "NotFoundException";
309
+ const _RARN = "ResourceARN";
310
+ const _T = "Tags";
311
+ const _TK = "TagKey";
312
+ const _TKL = "TagKeyList";
313
+ const _TKa = "TagKeys";
314
+ const _TL = "TagList";
315
+ const _TMRE = "TooManyRequestsException";
316
+ const _TR = "TagResource";
317
+ const _TRR = "TagResourceRequest";
318
+ const _TRRa = "TagResourceResponse";
319
+ const _TV = "TagValue";
320
+ const _Ta = "Tag";
321
+ const _UE = "UpdateEnvironment";
322
+ const _UEM = "UpdateEnvironmentMembership";
323
+ const _UEMR = "UpdateEnvironmentMembershipRequest";
324
+ const _UEMRp = "UpdateEnvironmentMembershipResult";
325
+ const _UER = "UpdateEnvironmentRequest";
326
+ const _UERp = "UpdateEnvironmentResult";
327
+ const _UR = "UntagResource";
328
+ const _URR = "UntagResourceRequest";
329
+ const _URRn = "UntagResourceResponse";
330
+ const _V = "Value";
331
+ const _a = "arn";
332
+ const _aSTM = "automaticStopTimeMinutes";
333
+ const _c = "client";
334
+ const _cN = "className";
335
+ const _cRT = "clientRequestToken";
336
+ const _cT = "connectionType";
337
+ const _co = "code";
338
+ const _d = "description";
339
+ const _dR = "dryRun";
340
+ const _e = "error";
341
+ const _eI = "environmentId";
342
+ const _eIn = "environmentIds";
343
+ const _en = "environments";
344
+ const _fR = "failureResource";
345
+ const _i = "id";
346
+ const _iI = "imageId";
347
+ const _iT = "instanceType";
348
+ const _l = "lifecycle";
349
+ const _lA = "lastAccess";
350
+ const _m = "message";
351
+ const _mCA = "managedCredentialsAction";
352
+ const _mCS = "managedCredentialsStatus";
353
+ const _mR = "maxResults";
354
+ const _me = "membership";
355
+ const _mem = "memberships";
356
+ const _n = "name";
357
+ const _nT = "nextToken";
358
+ const _oA = "ownerArn";
359
+ const _p = "permissions";
360
+ const _r = "reason";
361
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloud9";
362
+ const _sI = "subnetId";
363
+ const _se = "server";
364
+ const _st = "status";
365
+ const _t = "tags";
366
+ const _ty = "type";
367
+ const _uA = "userArn";
368
+ const _uI = "userId";
369
+ const n0 = "com.amazonaws.cloud9";
370
+ const _s_registry = TypeRegistry.for(_s);
371
+ var Cloud9ServiceException$ = [-3, _s, "Cloud9ServiceException", 0, [], []];
372
+ _s_registry.registerError(Cloud9ServiceException$, Cloud9ServiceException);
373
+ const n0_registry = TypeRegistry.for(n0);
374
+ var BadRequestException$ = [-3, n0, _BRE,
375
+ { [_e]: _c },
376
+ [_m, _cN, _co],
377
+ [0, 0, 1]
378
+ ];
379
+ n0_registry.registerError(BadRequestException$, BadRequestException);
380
+ var ConcurrentAccessException$ = [-3, n0, _CAE,
381
+ { [_e]: _c },
382
+ [_m, _cN, _co],
383
+ [0, 0, 1]
384
+ ];
385
+ n0_registry.registerError(ConcurrentAccessException$, ConcurrentAccessException);
386
+ var ConflictException$ = [-3, n0, _CE,
387
+ { [_e]: _c },
388
+ [_m, _cN, _co],
389
+ [0, 0, 1]
390
+ ];
391
+ n0_registry.registerError(ConflictException$, ConflictException);
392
+ var ForbiddenException$ = [-3, n0, _FE,
393
+ { [_e]: _c },
394
+ [_m, _cN, _co],
395
+ [0, 0, 1]
396
+ ];
397
+ n0_registry.registerError(ForbiddenException$, ForbiddenException);
398
+ var InternalServerErrorException$ = [-3, n0, _ISEE,
399
+ { [_e]: _se },
400
+ [_m, _cN, _co],
401
+ [0, 0, 1]
402
+ ];
403
+ n0_registry.registerError(InternalServerErrorException$, InternalServerErrorException);
404
+ var LimitExceededException$ = [-3, n0, _LEE,
405
+ { [_e]: _c },
406
+ [_m, _cN, _co],
407
+ [0, 0, 1]
408
+ ];
409
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
410
+ var NotFoundException$ = [-3, n0, _NFE,
411
+ { [_e]: _c },
412
+ [_m, _cN, _co],
413
+ [0, 0, 1]
414
+ ];
415
+ n0_registry.registerError(NotFoundException$, NotFoundException);
416
+ var TooManyRequestsException$ = [-3, n0, _TMRE,
417
+ { [_e]: _c },
418
+ [_m, _cN, _co],
419
+ [0, 0, 1]
420
+ ];
421
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
422
+ const errorTypeRegistries = [
423
+ _s_registry,
424
+ n0_registry,
425
+ ];
426
+ var EnvironmentDescription = [0, n0, _ED, 8, 0];
427
+ var TagKey = [0, n0, _TK, 8, 0];
428
+ var TagValue = [0, n0, _TV, 8, 0];
429
+ var CreateEnvironmentEC2Request$ = [3, n0, _CEECR,
430
+ 0,
431
+ [_n, _iT, _iI, _d, _cRT, _sI, _aSTM, _oA, _t, _cT, _dR],
432
+ [0, 0, 0, [() => EnvironmentDescription, 0], 0, 0, 1, 0, [() => TagList, 0], 0, 2], 3
433
+ ];
434
+ var CreateEnvironmentEC2Result$ = [3, n0, _CEECRr,
435
+ 0,
436
+ [_eI],
437
+ [0]
438
+ ];
439
+ var CreateEnvironmentMembershipRequest$ = [3, n0, _CEMR,
440
+ 0,
441
+ [_eI, _uA, _p],
442
+ [0, 0, 0], 3
443
+ ];
444
+ var CreateEnvironmentMembershipResult$ = [3, n0, _CEMRr,
445
+ 0,
446
+ [_me],
447
+ [() => EnvironmentMember$], 1
448
+ ];
449
+ var DeleteEnvironmentMembershipRequest$ = [3, n0, _DEMR,
450
+ 0,
451
+ [_eI, _uA],
452
+ [0, 0], 2
453
+ ];
454
+ var DeleteEnvironmentMembershipResult$ = [3, n0, _DEMRe,
455
+ 0,
456
+ [],
457
+ []
458
+ ];
459
+ var DeleteEnvironmentRequest$ = [3, n0, _DER,
460
+ 0,
461
+ [_eI],
462
+ [0], 1
463
+ ];
464
+ var DeleteEnvironmentResult$ = [3, n0, _DERe,
465
+ 0,
466
+ [],
467
+ []
468
+ ];
469
+ var DescribeEnvironmentMembershipsRequest$ = [3, n0, _DEMRes,
470
+ 0,
471
+ [_uA, _eI, _p, _nT, _mR],
472
+ [0, 0, 64 | 0, 0, 1]
473
+ ];
474
+ var DescribeEnvironmentMembershipsResult$ = [3, n0, _DEMResc,
475
+ 0,
476
+ [_mem, _nT],
477
+ [() => EnvironmentMembersList, 0]
478
+ ];
479
+ var DescribeEnvironmentsRequest$ = [3, n0, _DERes,
480
+ 0,
481
+ [_eIn],
482
+ [64 | 0], 1
483
+ ];
484
+ var DescribeEnvironmentsResult$ = [3, n0, _DEResc,
485
+ 0,
486
+ [_en],
487
+ [[() => EnvironmentList, 0]]
488
+ ];
489
+ var DescribeEnvironmentStatusRequest$ = [3, n0, _DESR,
490
+ 0,
491
+ [_eI],
492
+ [0], 1
493
+ ];
494
+ var DescribeEnvironmentStatusResult$ = [3, n0, _DESRe,
495
+ 0,
496
+ [_st, _m],
497
+ [0, 0], 2
498
+ ];
499
+ var Environment$ = [3, n0, _E,
500
+ 0,
501
+ [_ty, _a, _oA, _i, _n, _d, _cT, _l, _mCS],
502
+ [0, 0, 0, 0, 0, [() => EnvironmentDescription, 0], 0, () => EnvironmentLifecycle$, 0], 3
503
+ ];
504
+ var EnvironmentLifecycle$ = [3, n0, _EL,
505
+ 0,
506
+ [_st, _r, _fR],
507
+ [0, 0, 0]
508
+ ];
509
+ var EnvironmentMember$ = [3, n0, _EM,
510
+ 0,
511
+ [_p, _uI, _uA, _eI, _lA],
512
+ [0, 0, 0, 0, 4], 4
513
+ ];
514
+ var ListEnvironmentsRequest$ = [3, n0, _LER,
515
+ 0,
516
+ [_nT, _mR],
517
+ [0, 1]
518
+ ];
519
+ var ListEnvironmentsResult$ = [3, n0, _LERi,
520
+ 0,
521
+ [_nT, _eIn],
522
+ [0, 64 | 0]
523
+ ];
524
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
525
+ 0,
526
+ [_RARN],
527
+ [0], 1
528
+ ];
529
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
530
+ 0,
531
+ [_T],
532
+ [[() => TagList, 0]]
533
+ ];
534
+ var Tag$ = [3, n0, _Ta,
535
+ 8,
536
+ [_K, _V],
537
+ [[() => TagKey, 0], [() => TagValue, 0]], 2
538
+ ];
539
+ var TagResourceRequest$ = [3, n0, _TRR,
540
+ 0,
541
+ [_RARN, _T],
542
+ [0, [() => TagList, 0]], 2
543
+ ];
544
+ var TagResourceResponse$ = [3, n0, _TRRa,
545
+ 0,
546
+ [],
547
+ []
548
+ ];
549
+ var UntagResourceRequest$ = [3, n0, _URR,
550
+ 0,
551
+ [_RARN, _TKa],
552
+ [0, [() => TagKeyList, 0]], 2
553
+ ];
554
+ var UntagResourceResponse$ = [3, n0, _URRn,
555
+ 0,
556
+ [],
557
+ []
558
+ ];
559
+ var UpdateEnvironmentMembershipRequest$ = [3, n0, _UEMR,
560
+ 0,
561
+ [_eI, _uA, _p],
562
+ [0, 0, 0], 3
563
+ ];
564
+ var UpdateEnvironmentMembershipResult$ = [3, n0, _UEMRp,
565
+ 0,
566
+ [_me],
567
+ [() => EnvironmentMember$]
568
+ ];
569
+ var UpdateEnvironmentRequest$ = [3, n0, _UER,
570
+ 0,
571
+ [_eI, _n, _d, _mCA],
572
+ [0, 0, [() => EnvironmentDescription, 0], 0], 1
573
+ ];
574
+ var UpdateEnvironmentResult$ = [3, n0, _UERp,
575
+ 0,
576
+ [],
577
+ []
578
+ ];
579
+ var EnvironmentList = [1, n0, _ELn,
580
+ 0, [() => Environment$,
581
+ 0]
582
+ ];
583
+ var EnvironmentMembersList = [1, n0, _EML,
584
+ 0, () => EnvironmentMember$
585
+ ];
586
+ var TagKeyList = [1, n0, _TKL,
587
+ 8, [() => TagKey,
588
+ 0]
589
+ ];
590
+ var TagList = [1, n0, _TL,
591
+ 8, [() => Tag$,
592
+ 0]
593
+ ];
594
+ var CreateEnvironmentEC2$ = [9, n0, _CEEC,
595
+ 2, () => CreateEnvironmentEC2Request$, () => CreateEnvironmentEC2Result$
596
+ ];
597
+ var CreateEnvironmentMembership$ = [9, n0, _CEM,
598
+ 2, () => CreateEnvironmentMembershipRequest$, () => CreateEnvironmentMembershipResult$
599
+ ];
600
+ var DeleteEnvironment$ = [9, n0, _DE,
601
+ 2, () => DeleteEnvironmentRequest$, () => DeleteEnvironmentResult$
602
+ ];
603
+ var DeleteEnvironmentMembership$ = [9, n0, _DEM,
604
+ 2, () => DeleteEnvironmentMembershipRequest$, () => DeleteEnvironmentMembershipResult$
605
+ ];
606
+ var DescribeEnvironmentMemberships$ = [9, n0, _DEMe,
607
+ 0, () => DescribeEnvironmentMembershipsRequest$, () => DescribeEnvironmentMembershipsResult$
608
+ ];
609
+ var DescribeEnvironments$ = [9, n0, _DEe,
610
+ 0, () => DescribeEnvironmentsRequest$, () => DescribeEnvironmentsResult$
611
+ ];
612
+ var DescribeEnvironmentStatus$ = [9, n0, _DES,
613
+ 0, () => DescribeEnvironmentStatusRequest$, () => DescribeEnvironmentStatusResult$
614
+ ];
615
+ var ListEnvironments$ = [9, n0, _LE,
616
+ 0, () => ListEnvironmentsRequest$, () => ListEnvironmentsResult$
617
+ ];
618
+ var ListTagsForResource$ = [9, n0, _LTFR,
619
+ 0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
620
+ ];
621
+ var TagResource$ = [9, n0, _TR,
622
+ 0, () => TagResourceRequest$, () => TagResourceResponse$
623
+ ];
624
+ var UntagResource$ = [9, n0, _UR,
625
+ 0, () => UntagResourceRequest$, () => UntagResourceResponse$
626
+ ];
627
+ var UpdateEnvironment$ = [9, n0, _UE,
628
+ 2, () => UpdateEnvironmentRequest$, () => UpdateEnvironmentResult$
629
+ ];
630
+ var UpdateEnvironmentMembership$ = [9, n0, _UEM,
631
+ 2, () => UpdateEnvironmentMembershipRequest$, () => UpdateEnvironmentMembershipResult$
632
+ ];
633
+
634
+ const getRuntimeConfig$1 = (config) => {
635
+ return {
636
+ apiVersion: "2017-09-23",
637
+ base64Decoder: config?.base64Decoder ?? fromBase64,
638
+ base64Encoder: config?.base64Encoder ?? toBase64,
639
+ disableHostPrefix: config?.disableHostPrefix ?? false,
640
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
641
+ extensions: config?.extensions ?? [],
642
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCloud9HttpAuthSchemeProvider,
643
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
644
+ {
645
+ schemeId: "aws.auth#sigv4",
646
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
647
+ signer: new AwsSdkSigV4Signer(),
648
+ },
649
+ ],
650
+ logger: config?.logger ?? new NoOpLogger(),
651
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
652
+ protocolSettings: config?.protocolSettings ?? {
653
+ defaultNamespace: "com.amazonaws.cloud9",
654
+ errorTypeRegistries,
655
+ version: "2017-09-23",
656
+ serviceTarget: "AWSCloud9WorkspaceManagementService",
657
+ },
658
+ serviceId: config?.serviceId ?? "Cloud9",
659
+ urlParser: config?.urlParser ?? parseUrl,
660
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
661
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
662
+ };
663
+ };
664
+
665
+ const getRuntimeConfig = (config) => {
666
+ emitWarningIfUnsupportedVersion(process.version);
667
+ const defaultsMode = resolveDefaultsModeConfig(config);
668
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
669
+ const clientSharedValues = getRuntimeConfig$1(config);
670
+ emitWarningIfUnsupportedVersion$1(process.version);
671
+ const loaderConfig = {
672
+ profile: config?.profile,
673
+ logger: clientSharedValues.logger,
674
+ };
675
+ return {
676
+ ...clientSharedValues,
677
+ ...config,
678
+ runtime: "node",
679
+ defaultsMode,
680
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
681
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
682
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
683
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
684
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
685
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
686
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
687
+ retryMode: config?.retryMode ??
688
+ loadConfig({
689
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
690
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
691
+ }, config),
692
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
693
+ streamCollector: config?.streamCollector ?? streamCollector,
694
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
695
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
696
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
697
+ };
698
+ };
699
+
34
700
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
701
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
702
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -345,28 +1011,90 @@ const ManagedCredentialsAction = {
345
1011
  ENABLE: "ENABLE",
346
1012
  };
347
1013
 
1014
+ exports.BadRequestException = BadRequestException;
1015
+ exports.BadRequestException$ = BadRequestException$;
348
1016
  exports.Cloud9 = Cloud9;
349
1017
  exports.Cloud9Client = Cloud9Client;
1018
+ exports.Cloud9ServiceException = Cloud9ServiceException;
1019
+ exports.Cloud9ServiceException$ = Cloud9ServiceException$;
1020
+ exports.ConcurrentAccessException = ConcurrentAccessException;
1021
+ exports.ConcurrentAccessException$ = ConcurrentAccessException$;
1022
+ exports.ConflictException = ConflictException;
1023
+ exports.ConflictException$ = ConflictException$;
350
1024
  exports.ConnectionType = ConnectionType;
1025
+ exports.CreateEnvironmentEC2$ = CreateEnvironmentEC2$;
351
1026
  exports.CreateEnvironmentEC2Command = CreateEnvironmentEC2Command;
1027
+ exports.CreateEnvironmentEC2Request$ = CreateEnvironmentEC2Request$;
1028
+ exports.CreateEnvironmentEC2Result$ = CreateEnvironmentEC2Result$;
1029
+ exports.CreateEnvironmentMembership$ = CreateEnvironmentMembership$;
352
1030
  exports.CreateEnvironmentMembershipCommand = CreateEnvironmentMembershipCommand;
1031
+ exports.CreateEnvironmentMembershipRequest$ = CreateEnvironmentMembershipRequest$;
1032
+ exports.CreateEnvironmentMembershipResult$ = CreateEnvironmentMembershipResult$;
1033
+ exports.DeleteEnvironment$ = DeleteEnvironment$;
353
1034
  exports.DeleteEnvironmentCommand = DeleteEnvironmentCommand;
1035
+ exports.DeleteEnvironmentMembership$ = DeleteEnvironmentMembership$;
354
1036
  exports.DeleteEnvironmentMembershipCommand = DeleteEnvironmentMembershipCommand;
1037
+ exports.DeleteEnvironmentMembershipRequest$ = DeleteEnvironmentMembershipRequest$;
1038
+ exports.DeleteEnvironmentMembershipResult$ = DeleteEnvironmentMembershipResult$;
1039
+ exports.DeleteEnvironmentRequest$ = DeleteEnvironmentRequest$;
1040
+ exports.DeleteEnvironmentResult$ = DeleteEnvironmentResult$;
1041
+ exports.DescribeEnvironmentMemberships$ = DescribeEnvironmentMemberships$;
355
1042
  exports.DescribeEnvironmentMembershipsCommand = DescribeEnvironmentMembershipsCommand;
1043
+ exports.DescribeEnvironmentMembershipsRequest$ = DescribeEnvironmentMembershipsRequest$;
1044
+ exports.DescribeEnvironmentMembershipsResult$ = DescribeEnvironmentMembershipsResult$;
1045
+ exports.DescribeEnvironmentStatus$ = DescribeEnvironmentStatus$;
356
1046
  exports.DescribeEnvironmentStatusCommand = DescribeEnvironmentStatusCommand;
1047
+ exports.DescribeEnvironmentStatusRequest$ = DescribeEnvironmentStatusRequest$;
1048
+ exports.DescribeEnvironmentStatusResult$ = DescribeEnvironmentStatusResult$;
1049
+ exports.DescribeEnvironments$ = DescribeEnvironments$;
357
1050
  exports.DescribeEnvironmentsCommand = DescribeEnvironmentsCommand;
1051
+ exports.DescribeEnvironmentsRequest$ = DescribeEnvironmentsRequest$;
1052
+ exports.DescribeEnvironmentsResult$ = DescribeEnvironmentsResult$;
1053
+ exports.Environment$ = Environment$;
1054
+ exports.EnvironmentLifecycle$ = EnvironmentLifecycle$;
358
1055
  exports.EnvironmentLifecycleStatus = EnvironmentLifecycleStatus;
1056
+ exports.EnvironmentMember$ = EnvironmentMember$;
359
1057
  exports.EnvironmentStatus = EnvironmentStatus;
360
1058
  exports.EnvironmentType = EnvironmentType;
1059
+ exports.ForbiddenException = ForbiddenException;
1060
+ exports.ForbiddenException$ = ForbiddenException$;
1061
+ exports.InternalServerErrorException = InternalServerErrorException;
1062
+ exports.InternalServerErrorException$ = InternalServerErrorException$;
1063
+ exports.LimitExceededException = LimitExceededException;
1064
+ exports.LimitExceededException$ = LimitExceededException$;
1065
+ exports.ListEnvironments$ = ListEnvironments$;
361
1066
  exports.ListEnvironmentsCommand = ListEnvironmentsCommand;
1067
+ exports.ListEnvironmentsRequest$ = ListEnvironmentsRequest$;
1068
+ exports.ListEnvironmentsResult$ = ListEnvironmentsResult$;
1069
+ exports.ListTagsForResource$ = ListTagsForResource$;
362
1070
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1071
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1072
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
363
1073
  exports.ManagedCredentialsAction = ManagedCredentialsAction;
364
1074
  exports.ManagedCredentialsStatus = ManagedCredentialsStatus;
365
1075
  exports.MemberPermissions = MemberPermissions;
1076
+ exports.NotFoundException = NotFoundException;
1077
+ exports.NotFoundException$ = NotFoundException$;
366
1078
  exports.Permissions = Permissions;
1079
+ exports.Tag$ = Tag$;
1080
+ exports.TagResource$ = TagResource$;
367
1081
  exports.TagResourceCommand = TagResourceCommand;
1082
+ exports.TagResourceRequest$ = TagResourceRequest$;
1083
+ exports.TagResourceResponse$ = TagResourceResponse$;
1084
+ exports.TooManyRequestsException = TooManyRequestsException;
1085
+ exports.TooManyRequestsException$ = TooManyRequestsException$;
1086
+ exports.UntagResource$ = UntagResource$;
368
1087
  exports.UntagResourceCommand = UntagResourceCommand;
1088
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1089
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1090
+ exports.UpdateEnvironment$ = UpdateEnvironment$;
369
1091
  exports.UpdateEnvironmentCommand = UpdateEnvironmentCommand;
1092
+ exports.UpdateEnvironmentMembership$ = UpdateEnvironmentMembership$;
370
1093
  exports.UpdateEnvironmentMembershipCommand = UpdateEnvironmentMembershipCommand;
1094
+ exports.UpdateEnvironmentMembershipRequest$ = UpdateEnvironmentMembershipRequest$;
1095
+ exports.UpdateEnvironmentMembershipResult$ = UpdateEnvironmentMembershipResult$;
1096
+ exports.UpdateEnvironmentRequest$ = UpdateEnvironmentRequest$;
1097
+ exports.UpdateEnvironmentResult$ = UpdateEnvironmentResult$;
1098
+ exports.errorTypeRegistries = errorTypeRegistries;
371
1099
  exports.paginateDescribeEnvironmentMemberships = paginateDescribeEnvironmentMemberships;
372
1100
  exports.paginateListEnvironments = paginateListEnvironments;