@aws-sdk/client-rbin 3.1075.0 → 3.1077.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,58 @@
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, defaultRbinHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateRule$, DeleteRule$, GetRule$, ListRules$, ListTagsForResource$, LockRule$, TagResource$, UnlockRule$, UntagResource$, UpdateRule$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { RbinServiceException } = require("./models/RbinServiceException");
18
- exports.RbinServiceException = RbinServiceException;
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, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultRbinHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "rbin",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultRbinHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,508 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://rbin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://rbin-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://rbin.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://rbin.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class RbinServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, RbinServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class InternalServerException extends RbinServiceException {
141
+ name = "InternalServerException";
142
+ $fault = "server";
143
+ Message;
144
+ constructor(opts) {
145
+ super({
146
+ name: "InternalServerException",
147
+ $fault: "server",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, InternalServerException.prototype);
151
+ this.Message = opts.Message;
152
+ }
153
+ }
154
+ class ServiceQuotaExceededException extends RbinServiceException {
155
+ name = "ServiceQuotaExceededException";
156
+ $fault = "client";
157
+ Message;
158
+ Reason;
159
+ constructor(opts) {
160
+ super({
161
+ name: "ServiceQuotaExceededException",
162
+ $fault: "client",
163
+ ...opts,
164
+ });
165
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
166
+ this.Message = opts.Message;
167
+ this.Reason = opts.Reason;
168
+ }
169
+ }
170
+ class ValidationException extends RbinServiceException {
171
+ name = "ValidationException";
172
+ $fault = "client";
173
+ Message;
174
+ Reason;
175
+ constructor(opts) {
176
+ super({
177
+ name: "ValidationException",
178
+ $fault: "client",
179
+ ...opts,
180
+ });
181
+ Object.setPrototypeOf(this, ValidationException.prototype);
182
+ this.Message = opts.Message;
183
+ this.Reason = opts.Reason;
184
+ }
185
+ }
186
+ class ConflictException extends RbinServiceException {
187
+ name = "ConflictException";
188
+ $fault = "client";
189
+ Message;
190
+ Reason;
191
+ constructor(opts) {
192
+ super({
193
+ name: "ConflictException",
194
+ $fault: "client",
195
+ ...opts,
196
+ });
197
+ Object.setPrototypeOf(this, ConflictException.prototype);
198
+ this.Message = opts.Message;
199
+ this.Reason = opts.Reason;
200
+ }
201
+ }
202
+ class ResourceNotFoundException extends RbinServiceException {
203
+ name = "ResourceNotFoundException";
204
+ $fault = "client";
205
+ Message;
206
+ Reason;
207
+ constructor(opts) {
208
+ super({
209
+ name: "ResourceNotFoundException",
210
+ $fault: "client",
211
+ ...opts,
212
+ });
213
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
214
+ this.Message = opts.Message;
215
+ this.Reason = opts.Reason;
216
+ }
217
+ }
218
+
219
+ const _CE = "ConflictException";
220
+ const _CR = "CreateRule";
221
+ const _CRR = "CreateRuleRequest";
222
+ const _CRRr = "CreateRuleResponse";
223
+ const _D = "Description";
224
+ const _DR = "DeleteRule";
225
+ const _DRR = "DeleteRuleRequest";
226
+ const _DRRe = "DeleteRuleResponse";
227
+ const _ERT = "ExcludeResourceTags";
228
+ const _GR = "GetRule";
229
+ const _GRR = "GetRuleRequest";
230
+ const _GRRe = "GetRuleResponse";
231
+ const _I = "Identifier";
232
+ const _ISE = "InternalServerException";
233
+ const _K = "Key";
234
+ const _LC = "LockConfiguration";
235
+ const _LET = "LockEndTime";
236
+ const _LR = "ListRules";
237
+ const _LRR = "ListRulesRequest";
238
+ const _LRRi = "ListRulesResponse";
239
+ const _LRRo = "LockRuleRequest";
240
+ const _LRRoc = "LockRuleResponse";
241
+ const _LRo = "LockRule";
242
+ const _LS = "LockState";
243
+ const _LTFR = "ListTagsForResource";
244
+ const _LTFRR = "ListTagsForResourceRequest";
245
+ const _LTFRRi = "ListTagsForResourceResponse";
246
+ const _M = "Message";
247
+ const _MR = "MaxResults";
248
+ const _NT = "NextToken";
249
+ const _R = "Reason";
250
+ const _RA = "RuleArn";
251
+ const _RAe = "ResourceArn";
252
+ const _RNFE = "ResourceNotFoundException";
253
+ const _RP = "RetentionPeriod";
254
+ const _RPU = "RetentionPeriodUnit";
255
+ const _RPV = "RetentionPeriodValue";
256
+ const _RS = "RuleSummary";
257
+ const _RSL = "RuleSummaryList";
258
+ const _RT = "ResourceType";
259
+ const _RTK = "ResourceTagKey";
260
+ const _RTV = "ResourceTagValue";
261
+ const _RTe = "ResourceTags";
262
+ const _RTes = "ResourceTag";
263
+ const _Ru = "Rules";
264
+ const _S = "Status";
265
+ const _SQEE = "ServiceQuotaExceededException";
266
+ const _T = "Tags";
267
+ const _TK = "TagKeys";
268
+ const _TL = "TagList";
269
+ const _TR = "TagResource";
270
+ const _TRR = "TagResourceRequest";
271
+ const _TRRa = "TagResourceResponse";
272
+ const _Ta = "Tag";
273
+ const _UD = "UnlockDelay";
274
+ const _UDU = "UnlockDelayUnit";
275
+ const _UDV = "UnlockDelayValue";
276
+ const _UR = "UnlockRule";
277
+ const _URR = "UnlockRuleRequest";
278
+ const _URRn = "UnlockRuleResponse";
279
+ const _URRnt = "UntagResourceRequest";
280
+ const _URRnta = "UntagResourceResponse";
281
+ const _URRp = "UpdateRuleRequest";
282
+ const _URRpd = "UpdateRuleResponse";
283
+ const _URn = "UntagResource";
284
+ const _URp = "UpdateRule";
285
+ const _V = "Value";
286
+ const _VE = "ValidationException";
287
+ const _c = "client";
288
+ const _e = "error";
289
+ const _h = "http";
290
+ const _hE = "httpError";
291
+ const _hQ = "httpQuery";
292
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.rbin";
293
+ const _se = "server";
294
+ const _tK = "tagKeys";
295
+ const n0 = "com.amazonaws.rbin";
296
+ const _s_registry = TypeRegistry.for(_s);
297
+ var RbinServiceException$ = [-3, _s, "RbinServiceException", 0, [], []];
298
+ _s_registry.registerError(RbinServiceException$, RbinServiceException);
299
+ const n0_registry = TypeRegistry.for(n0);
300
+ var ConflictException$ = [-3, n0, _CE,
301
+ { [_e]: _c, [_hE]: 409 },
302
+ [_M, _R],
303
+ [0, 0]
304
+ ];
305
+ n0_registry.registerError(ConflictException$, ConflictException);
306
+ var InternalServerException$ = [-3, n0, _ISE,
307
+ { [_e]: _se, [_hE]: 500 },
308
+ [_M],
309
+ [0]
310
+ ];
311
+ n0_registry.registerError(InternalServerException$, InternalServerException);
312
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
313
+ { [_e]: _c, [_hE]: 404 },
314
+ [_M, _R],
315
+ [0, 0]
316
+ ];
317
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
318
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
319
+ { [_e]: _c, [_hE]: 402 },
320
+ [_M, _R],
321
+ [0, 0]
322
+ ];
323
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
324
+ var ValidationException$ = [-3, n0, _VE,
325
+ { [_e]: _c, [_hE]: 400 },
326
+ [_M, _R],
327
+ [0, 0]
328
+ ];
329
+ n0_registry.registerError(ValidationException$, ValidationException);
330
+ const errorTypeRegistries = [
331
+ _s_registry,
332
+ n0_registry,
333
+ ];
334
+ var CreateRuleRequest$ = [3, n0, _CRR,
335
+ 0,
336
+ [_RP, _RT, _D, _T, _RTe, _LC, _ERT],
337
+ [() => RetentionPeriod$, 0, 0, () => TagList, () => ResourceTags, () => LockConfiguration$, () => ExcludeResourceTags], 2
338
+ ];
339
+ var CreateRuleResponse$ = [3, n0, _CRRr,
340
+ 0,
341
+ [_I, _RP, _D, _T, _RT, _RTe, _S, _LC, _LS, _RA, _ERT],
342
+ [0, () => RetentionPeriod$, 0, () => TagList, 0, () => ResourceTags, 0, () => LockConfiguration$, 0, 0, () => ExcludeResourceTags]
343
+ ];
344
+ var DeleteRuleRequest$ = [3, n0, _DRR,
345
+ 0,
346
+ [_I],
347
+ [[0, 1]], 1
348
+ ];
349
+ var DeleteRuleResponse$ = [3, n0, _DRRe,
350
+ 0,
351
+ [],
352
+ []
353
+ ];
354
+ var GetRuleRequest$ = [3, n0, _GRR,
355
+ 0,
356
+ [_I],
357
+ [[0, 1]], 1
358
+ ];
359
+ var GetRuleResponse$ = [3, n0, _GRRe,
360
+ 0,
361
+ [_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _LET, _RA, _ERT],
362
+ [0, 0, 0, () => RetentionPeriod$, () => ResourceTags, 0, () => LockConfiguration$, 0, 4, 0, () => ExcludeResourceTags]
363
+ ];
364
+ var ListRulesRequest$ = [3, n0, _LRR,
365
+ 0,
366
+ [_RT, _MR, _NT, _RTe, _LS, _ERT],
367
+ [0, 1, 0, () => ResourceTags, 0, () => ExcludeResourceTags], 1
368
+ ];
369
+ var ListRulesResponse$ = [3, n0, _LRRi,
370
+ 0,
371
+ [_Ru, _NT],
372
+ [() => RuleSummaryList, 0]
373
+ ];
374
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
375
+ 0,
376
+ [_RAe],
377
+ [[0, 1]], 1
378
+ ];
379
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
380
+ 0,
381
+ [_T],
382
+ [() => TagList]
383
+ ];
384
+ var LockConfiguration$ = [3, n0, _LC,
385
+ 0,
386
+ [_UD],
387
+ [() => UnlockDelay$], 1
388
+ ];
389
+ var LockRuleRequest$ = [3, n0, _LRRo,
390
+ 0,
391
+ [_I, _LC],
392
+ [[0, 1], () => LockConfiguration$], 2
393
+ ];
394
+ var LockRuleResponse$ = [3, n0, _LRRoc,
395
+ 0,
396
+ [_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _RA, _ERT],
397
+ [0, 0, 0, () => RetentionPeriod$, () => ResourceTags, 0, () => LockConfiguration$, 0, 0, () => ExcludeResourceTags]
398
+ ];
399
+ var ResourceTag$ = [3, n0, _RTes,
400
+ 0,
401
+ [_RTK, _RTV],
402
+ [0, 0], 1
403
+ ];
404
+ var RetentionPeriod$ = [3, n0, _RP,
405
+ 0,
406
+ [_RPV, _RPU],
407
+ [1, 0], 2
408
+ ];
409
+ var RuleSummary$ = [3, n0, _RS,
410
+ 0,
411
+ [_I, _D, _RP, _LS, _RA],
412
+ [0, 0, () => RetentionPeriod$, 0, 0]
413
+ ];
414
+ var Tag$ = [3, n0, _Ta,
415
+ 0,
416
+ [_K, _V],
417
+ [0, 0], 2
418
+ ];
419
+ var TagResourceRequest$ = [3, n0, _TRR,
420
+ 0,
421
+ [_RAe, _T],
422
+ [[0, 1], () => TagList], 2
423
+ ];
424
+ var TagResourceResponse$ = [3, n0, _TRRa,
425
+ 0,
426
+ [],
427
+ []
428
+ ];
429
+ var UnlockDelay$ = [3, n0, _UD,
430
+ 0,
431
+ [_UDV, _UDU],
432
+ [1, 0], 2
433
+ ];
434
+ var UnlockRuleRequest$ = [3, n0, _URR,
435
+ 0,
436
+ [_I],
437
+ [[0, 1]], 1
438
+ ];
439
+ var UnlockRuleResponse$ = [3, n0, _URRn,
440
+ 0,
441
+ [_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _LET, _RA, _ERT],
442
+ [0, 0, 0, () => RetentionPeriod$, () => ResourceTags, 0, () => LockConfiguration$, 0, 4, 0, () => ExcludeResourceTags]
443
+ ];
444
+ var UntagResourceRequest$ = [3, n0, _URRnt,
445
+ 0,
446
+ [_RAe, _TK],
447
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
448
+ ];
449
+ var UntagResourceResponse$ = [3, n0, _URRnta,
450
+ 0,
451
+ [],
452
+ []
453
+ ];
454
+ var UpdateRuleRequest$ = [3, n0, _URRp,
455
+ 0,
456
+ [_I, _RP, _D, _RT, _RTe, _ERT],
457
+ [[0, 1], () => RetentionPeriod$, 0, 0, () => ResourceTags, () => ExcludeResourceTags], 1
458
+ ];
459
+ var UpdateRuleResponse$ = [3, n0, _URRpd,
460
+ 0,
461
+ [_I, _RP, _D, _RT, _RTe, _S, _LS, _LET, _RA, _ERT],
462
+ [0, () => RetentionPeriod$, 0, 0, () => ResourceTags, 0, 0, 4, 0, () => ExcludeResourceTags]
463
+ ];
464
+ var ExcludeResourceTags = [1, n0, _ERT,
465
+ 0, () => ResourceTag$
466
+ ];
467
+ var ResourceTags = [1, n0, _RTe,
468
+ 0, () => ResourceTag$
469
+ ];
470
+ var RuleSummaryList = [1, n0, _RSL,
471
+ 0, () => RuleSummary$
472
+ ];
473
+ var TagList = [1, n0, _TL,
474
+ 0, () => Tag$
475
+ ];
476
+ var CreateRule$ = [9, n0, _CR,
477
+ { [_h]: ["POST", "/rules", 201] }, () => CreateRuleRequest$, () => CreateRuleResponse$
478
+ ];
479
+ var DeleteRule$ = [9, n0, _DR,
480
+ { [_h]: ["DELETE", "/rules/{Identifier}", 204] }, () => DeleteRuleRequest$, () => DeleteRuleResponse$
481
+ ];
482
+ var GetRule$ = [9, n0, _GR,
483
+ { [_h]: ["GET", "/rules/{Identifier}", 200] }, () => GetRuleRequest$, () => GetRuleResponse$
484
+ ];
485
+ var ListRules$ = [9, n0, _LR,
486
+ { [_h]: ["POST", "/list-rules", 200] }, () => ListRulesRequest$, () => ListRulesResponse$
487
+ ];
488
+ var ListTagsForResource$ = [9, n0, _LTFR,
489
+ { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
490
+ ];
491
+ var LockRule$ = [9, n0, _LRo,
492
+ { [_h]: ["PATCH", "/rules/{Identifier}/lock", 200] }, () => LockRuleRequest$, () => LockRuleResponse$
493
+ ];
494
+ var TagResource$ = [9, n0, _TR,
495
+ { [_h]: ["POST", "/tags/{ResourceArn}", 201] }, () => TagResourceRequest$, () => TagResourceResponse$
496
+ ];
497
+ var UnlockRule$ = [9, n0, _UR,
498
+ { [_h]: ["PATCH", "/rules/{Identifier}/unlock", 200] }, () => UnlockRuleRequest$, () => UnlockRuleResponse$
499
+ ];
500
+ var UntagResource$ = [9, n0, _URn,
501
+ { [_h]: ["DELETE", "/tags/{ResourceArn}", 204] }, () => UntagResourceRequest$, () => UntagResourceResponse$
502
+ ];
503
+ var UpdateRule$ = [9, n0, _URp,
504
+ { [_h]: ["PATCH", "/rules/{Identifier}", 200] }, () => UpdateRuleRequest$, () => UpdateRuleResponse$
505
+ ];
506
+
507
+ const getRuntimeConfig$1 = (config) => {
508
+ return {
509
+ apiVersion: "2021-06-15",
510
+ base64Decoder: config?.base64Decoder ?? fromBase64,
511
+ base64Encoder: config?.base64Encoder ?? toBase64,
512
+ disableHostPrefix: config?.disableHostPrefix ?? false,
513
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
514
+ extensions: config?.extensions ?? [],
515
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultRbinHttpAuthSchemeProvider,
516
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
517
+ {
518
+ schemeId: "aws.auth#sigv4",
519
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
520
+ signer: new AwsSdkSigV4Signer(),
521
+ },
522
+ ],
523
+ logger: config?.logger ?? new NoOpLogger(),
524
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
525
+ protocolSettings: config?.protocolSettings ?? {
526
+ defaultNamespace: "com.amazonaws.rbin",
527
+ errorTypeRegistries,
528
+ version: "2021-06-15",
529
+ serviceTarget: "AmazonRecycleBin",
530
+ },
531
+ serviceId: config?.serviceId ?? "rbin",
532
+ sha256: config?.sha256 ?? Sha256,
533
+ urlParser: config?.urlParser ?? parseUrl,
534
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
535
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
536
+ };
537
+ };
538
+
539
+ const getRuntimeConfig = (config) => {
540
+ emitWarningIfUnsupportedVersion(process.version);
541
+ const defaultsMode = resolveDefaultsModeConfig(config);
542
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
543
+ const clientSharedValues = getRuntimeConfig$1(config);
544
+ emitWarningIfUnsupportedVersion$1(process.version);
545
+ const loaderConfig = {
546
+ profile: config?.profile,
547
+ logger: clientSharedValues.logger,
548
+ };
549
+ return {
550
+ ...clientSharedValues,
551
+ ...config,
552
+ runtime: "node",
553
+ defaultsMode,
554
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
555
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
556
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
557
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
558
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
559
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
560
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
561
+ retryMode: config?.retryMode ??
562
+ loadConfig({
563
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
564
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
565
+ }, config),
566
+ streamCollector: config?.streamCollector ?? streamCollector,
567
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
568
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
569
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
570
+ };
571
+ };
572
+
34
573
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
574
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
575
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -286,25 +825,74 @@ const ResourceNotFoundExceptionReason = {
286
825
  RULE_NOT_FOUND: "RULE_NOT_FOUND",
287
826
  };
288
827
 
828
+ exports.ConflictException = ConflictException;
829
+ exports.ConflictException$ = ConflictException$;
289
830
  exports.ConflictExceptionReason = ConflictExceptionReason;
831
+ exports.CreateRule$ = CreateRule$;
290
832
  exports.CreateRuleCommand = CreateRuleCommand;
833
+ exports.CreateRuleRequest$ = CreateRuleRequest$;
834
+ exports.CreateRuleResponse$ = CreateRuleResponse$;
835
+ exports.DeleteRule$ = DeleteRule$;
291
836
  exports.DeleteRuleCommand = DeleteRuleCommand;
837
+ exports.DeleteRuleRequest$ = DeleteRuleRequest$;
838
+ exports.DeleteRuleResponse$ = DeleteRuleResponse$;
839
+ exports.GetRule$ = GetRule$;
292
840
  exports.GetRuleCommand = GetRuleCommand;
841
+ exports.GetRuleRequest$ = GetRuleRequest$;
842
+ exports.GetRuleResponse$ = GetRuleResponse$;
843
+ exports.InternalServerException = InternalServerException;
844
+ exports.InternalServerException$ = InternalServerException$;
845
+ exports.ListRules$ = ListRules$;
293
846
  exports.ListRulesCommand = ListRulesCommand;
847
+ exports.ListRulesRequest$ = ListRulesRequest$;
848
+ exports.ListRulesResponse$ = ListRulesResponse$;
849
+ exports.ListTagsForResource$ = ListTagsForResource$;
294
850
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
851
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
852
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
853
+ exports.LockConfiguration$ = LockConfiguration$;
854
+ exports.LockRule$ = LockRule$;
295
855
  exports.LockRuleCommand = LockRuleCommand;
856
+ exports.LockRuleRequest$ = LockRuleRequest$;
857
+ exports.LockRuleResponse$ = LockRuleResponse$;
296
858
  exports.LockState = LockState;
297
859
  exports.Rbin = Rbin;
298
860
  exports.RbinClient = RbinClient;
861
+ exports.RbinServiceException = RbinServiceException;
862
+ exports.RbinServiceException$ = RbinServiceException$;
863
+ exports.ResourceNotFoundException = ResourceNotFoundException;
864
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
299
865
  exports.ResourceNotFoundExceptionReason = ResourceNotFoundExceptionReason;
866
+ exports.ResourceTag$ = ResourceTag$;
300
867
  exports.ResourceType = ResourceType;
868
+ exports.RetentionPeriod$ = RetentionPeriod$;
301
869
  exports.RetentionPeriodUnit = RetentionPeriodUnit;
302
870
  exports.RuleStatus = RuleStatus;
871
+ exports.RuleSummary$ = RuleSummary$;
872
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
873
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
303
874
  exports.ServiceQuotaExceededExceptionReason = ServiceQuotaExceededExceptionReason;
875
+ exports.Tag$ = Tag$;
876
+ exports.TagResource$ = TagResource$;
304
877
  exports.TagResourceCommand = TagResourceCommand;
878
+ exports.TagResourceRequest$ = TagResourceRequest$;
879
+ exports.TagResourceResponse$ = TagResourceResponse$;
880
+ exports.UnlockDelay$ = UnlockDelay$;
305
881
  exports.UnlockDelayUnit = UnlockDelayUnit;
882
+ exports.UnlockRule$ = UnlockRule$;
306
883
  exports.UnlockRuleCommand = UnlockRuleCommand;
884
+ exports.UnlockRuleRequest$ = UnlockRuleRequest$;
885
+ exports.UnlockRuleResponse$ = UnlockRuleResponse$;
886
+ exports.UntagResource$ = UntagResource$;
307
887
  exports.UntagResourceCommand = UntagResourceCommand;
888
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
889
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
890
+ exports.UpdateRule$ = UpdateRule$;
308
891
  exports.UpdateRuleCommand = UpdateRuleCommand;
892
+ exports.UpdateRuleRequest$ = UpdateRuleRequest$;
893
+ exports.UpdateRuleResponse$ = UpdateRuleResponse$;
894
+ exports.ValidationException = ValidationException;
895
+ exports.ValidationException$ = ValidationException$;
309
896
  exports.ValidationExceptionReason = ValidationExceptionReason;
897
+ exports.errorTypeRegistries = errorTypeRegistries;
310
898
  exports.paginateListRules = paginateListRules;
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),