@aws-sdk/client-cloudhsm 3.1074.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 } = 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, defaultCloudHSMHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { AddTagsToResource$, CreateHapg$, CreateHsm$, CreateLunaClient$, DeleteHapg$, DeleteHsm$, DeleteLunaClient$, DescribeHapg$, DescribeHsm$, DescribeLunaClient$, GetConfig$, ListAvailableZones$, ListHapgs$, ListHsms$, ListLunaClients$, ListTagsForResource$, ModifyHapg$, ModifyHsm$, ModifyLunaClient$, RemoveTagsFromResource$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { CloudHSMServiceException } = require("./models/CloudHSMServiceException");
18
- exports.CloudHSMServiceException = CloudHSMServiceException;
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 defaultCloudHSMHttpAuthSchemeParametersProvider = 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: "cloudhsm",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultCloudHSMHttpAuthSchemeProvider = (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,603 @@ 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://cloudhsm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://cloudhsm-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://cloudhsm.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://cloudhsm.{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 CloudHSMServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, CloudHSMServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class CloudHsmInternalException extends CloudHSMServiceException {
140
+ name = "CloudHsmInternalException";
141
+ $fault = "server";
142
+ retryable;
143
+ constructor(opts) {
144
+ super({
145
+ name: "CloudHsmInternalException",
146
+ $fault: "server",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, CloudHsmInternalException.prototype);
150
+ this.retryable = opts.retryable;
151
+ }
152
+ }
153
+ class CloudHsmServiceException extends CloudHSMServiceException {
154
+ name = "CloudHsmServiceException";
155
+ $fault = "client";
156
+ retryable;
157
+ constructor(opts) {
158
+ super({
159
+ name: "CloudHsmServiceException",
160
+ $fault: "client",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, CloudHsmServiceException.prototype);
164
+ this.retryable = opts.retryable;
165
+ }
166
+ }
167
+ class InvalidRequestException extends CloudHSMServiceException {
168
+ name = "InvalidRequestException";
169
+ $fault = "client";
170
+ retryable;
171
+ constructor(opts) {
172
+ super({
173
+ name: "InvalidRequestException",
174
+ $fault: "client",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
178
+ this.retryable = opts.retryable;
179
+ }
180
+ }
181
+
182
+ const _ATTR = "AddTagsToResource";
183
+ const _ATTRR = "AddTagsToResourceRequest";
184
+ const _ATTRRd = "AddTagsToResourceResponse";
185
+ const _AZ = "AvailabilityZone";
186
+ const _AZL = "AZList";
187
+ const _C = "Certificate";
188
+ const _CA = "ClientArn";
189
+ const _CC = "ConfigCred";
190
+ const _CF = "CertificateFingerprint";
191
+ const _CFo = "ConfigFile";
192
+ const _CH = "CreateHapg";
193
+ const _CHIE = "CloudHsmInternalException";
194
+ const _CHR = "CreateHapgRequest";
195
+ const _CHRr = "CreateHapgResponse";
196
+ const _CHRre = "CreateHsmRequest";
197
+ const _CHRrea = "CreateHsmResponse";
198
+ const _CHSE = "CloudHsmServiceException";
199
+ const _CHr = "CreateHsm";
200
+ const _CL = "ClientList";
201
+ const _CLC = "CreateLunaClient";
202
+ const _CLCR = "CreateLunaClientRequest";
203
+ const _CLCRr = "CreateLunaClientResponse";
204
+ const _CT = "ClientToken";
205
+ const _CTo = "ConfigType";
206
+ const _CV = "ClientVersion";
207
+ const _DH = "DeleteHapg";
208
+ const _DHR = "DeleteHapgRequest";
209
+ const _DHRe = "DeleteHapgResponse";
210
+ const _DHRel = "DeleteHsmRequest";
211
+ const _DHRele = "DeleteHsmResponse";
212
+ const _DHRes = "DescribeHapgRequest";
213
+ const _DHResc = "DescribeHapgResponse";
214
+ const _DHRescr = "DescribeHsmRequest";
215
+ const _DHRescri = "DescribeHsmResponse";
216
+ const _DHe = "DeleteHsm";
217
+ const _DHes = "DescribeHapg";
218
+ const _DHesc = "DescribeHsm";
219
+ const _DLC = "DeleteLunaClient";
220
+ const _DLCR = "DeleteLunaClientRequest";
221
+ const _DLCRe = "DeleteLunaClientResponse";
222
+ const _DLCRes = "DescribeLunaClientRequest";
223
+ const _DLCResc = "DescribeLunaClientResponse";
224
+ const _DLCe = "DescribeLunaClient";
225
+ const _EI = "EniIp";
226
+ const _EIn = "EniId";
227
+ const _EIx = "ExternalId";
228
+ const _GC = "GetConfig";
229
+ const _GCR = "GetConfigRequest";
230
+ const _GCRe = "GetConfigResponse";
231
+ const _HA = "HapgArn";
232
+ const _HAs = "HsmArn";
233
+ const _HL = "HapgList";
234
+ const _HLAF = "HsmsLastActionFailed";
235
+ const _HLs = "HsmList";
236
+ const _HPD = "HsmsPendingDeletion";
237
+ const _HPR = "HsmsPendingRegistration";
238
+ const _HS = "HapgSerial";
239
+ const _HSN = "HsmSerialNumber";
240
+ const _HT = "HsmType";
241
+ const _IRA = "IamRoleArn";
242
+ const _IRE = "InvalidRequestException";
243
+ const _K = "Key";
244
+ const _L = "Label";
245
+ const _LAZ = "ListAvailableZones";
246
+ const _LAZR = "ListAvailableZonesRequest";
247
+ const _LAZRi = "ListAvailableZonesResponse";
248
+ const _LH = "ListHapgs";
249
+ const _LHR = "ListHapgsRequest";
250
+ const _LHRi = "ListHapgsResponse";
251
+ const _LHRis = "ListHsmsRequest";
252
+ const _LHRist = "ListHsmsResponse";
253
+ const _LHi = "ListHsms";
254
+ const _LLC = "ListLunaClients";
255
+ const _LLCR = "ListLunaClientsRequest";
256
+ const _LLCRi = "ListLunaClientsResponse";
257
+ const _LMT = "LastModifiedTimestamp";
258
+ const _LTFR = "ListTagsForResource";
259
+ const _LTFRR = "ListTagsForResourceRequest";
260
+ const _LTFRRi = "ListTagsForResourceResponse";
261
+ const _MH = "ModifyHapg";
262
+ const _MHR = "ModifyHapgRequest";
263
+ const _MHRo = "ModifyHapgResponse";
264
+ const _MHRod = "ModifyHsmRequest";
265
+ const _MHRodi = "ModifyHsmResponse";
266
+ const _MHo = "ModifyHsm";
267
+ const _MLC = "ModifyLunaClient";
268
+ const _MLCR = "ModifyLunaClientRequest";
269
+ const _MLCRo = "ModifyLunaClientResponse";
270
+ const _NT = "NextToken";
271
+ const _P = "Partitions";
272
+ const _PSL = "PartitionSerialList";
273
+ const _RA = "ResourceArn";
274
+ const _RTFR = "RemoveTagsFromResource";
275
+ const _RTFRR = "RemoveTagsFromResourceRequest";
276
+ const _RTFRRe = "RemoveTagsFromResourceResponse";
277
+ const _S = "Status";
278
+ const _SCLU = "ServerCertLastUpdated";
279
+ const _SCU = "ServerCertUri";
280
+ const _SD = "StatusDetails";
281
+ const _SED = "SubscriptionEndDate";
282
+ const _SI = "SubnetId";
283
+ const _SIy = "SyslogIp";
284
+ const _SK = "SshKey";
285
+ const _SKLU = "SshKeyLastUpdated";
286
+ const _SN = "SerialNumber";
287
+ const _SPK = "SshPublicKey";
288
+ const _SSD = "SubscriptionStartDate";
289
+ const _ST = "SubscriptionType";
290
+ const _SV = "SoftwareVersion";
291
+ const _St = "State";
292
+ const _T = "Tag";
293
+ const _TKL = "TagKeyList";
294
+ const _TL = "TagList";
295
+ const _V = "Value";
296
+ const _VI = "VpcId";
297
+ const _VN = "VendorName";
298
+ const _c = "client";
299
+ const _e = "error";
300
+ const _m = "message";
301
+ const _r = "retryable";
302
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloudhsm";
303
+ const _se = "server";
304
+ const _xN = "xmlName";
305
+ const n0 = "com.amazonaws.cloudhsm";
306
+ const _s_registry = TypeRegistry.for(_s);
307
+ var CloudHSMServiceException$ = [-3, _s, "CloudHSMServiceException", 0, [], []];
308
+ _s_registry.registerError(CloudHSMServiceException$, CloudHSMServiceException);
309
+ const n0_registry = TypeRegistry.for(n0);
310
+ var CloudHsmInternalException$ = [-3, n0, _CHIE,
311
+ { [_e]: _se },
312
+ [_m, _r],
313
+ [0, 2]
314
+ ];
315
+ n0_registry.registerError(CloudHsmInternalException$, CloudHsmInternalException);
316
+ var CloudHsmServiceException$ = [-3, n0, _CHSE,
317
+ { [_e]: _c },
318
+ [_m, _r],
319
+ [0, 2]
320
+ ];
321
+ n0_registry.registerError(CloudHsmServiceException$, CloudHsmServiceException);
322
+ var InvalidRequestException$ = [-3, n0, _IRE,
323
+ { [_e]: _c },
324
+ [_m, _r],
325
+ [0, 2]
326
+ ];
327
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
328
+ const errorTypeRegistries = [
329
+ _s_registry,
330
+ n0_registry,
331
+ ];
332
+ var AddTagsToResourceRequest$ = [3, n0, _ATTRR,
333
+ 0,
334
+ [_RA, _TL],
335
+ [0, () => TagList], 2
336
+ ];
337
+ var AddTagsToResourceResponse$ = [3, n0, _ATTRRd,
338
+ 0,
339
+ [_S],
340
+ [0], 1
341
+ ];
342
+ var CreateHapgRequest$ = [3, n0, _CHR,
343
+ 0,
344
+ [_L],
345
+ [0], 1
346
+ ];
347
+ var CreateHapgResponse$ = [3, n0, _CHRr,
348
+ 0,
349
+ [_HA],
350
+ [0]
351
+ ];
352
+ var CreateHsmRequest$ = [3, n0, _CHRre,
353
+ { [_xN]: _CHRre },
354
+ [_SI, _SK, _IRA, _ST, _EI, _EIx, _CT, _SIy],
355
+ [[0, { [_xN]: _SI }], [0, { [_xN]: _SK }], [0, { [_xN]: _IRA }], [0, { [_xN]: _ST }], [0, { [_xN]: _EI }], [0, { [_xN]: _EIx }], [0, { [_xN]: _CT }], [0, { [_xN]: _SIy }]], 4
356
+ ];
357
+ var CreateHsmResponse$ = [3, n0, _CHRrea,
358
+ 0,
359
+ [_HAs],
360
+ [0]
361
+ ];
362
+ var CreateLunaClientRequest$ = [3, n0, _CLCR,
363
+ 0,
364
+ [_C, _L],
365
+ [0, 0], 1
366
+ ];
367
+ var CreateLunaClientResponse$ = [3, n0, _CLCRr,
368
+ 0,
369
+ [_CA],
370
+ [0]
371
+ ];
372
+ var DeleteHapgRequest$ = [3, n0, _DHR,
373
+ 0,
374
+ [_HA],
375
+ [0], 1
376
+ ];
377
+ var DeleteHapgResponse$ = [3, n0, _DHRe,
378
+ 0,
379
+ [_S],
380
+ [0], 1
381
+ ];
382
+ var DeleteHsmRequest$ = [3, n0, _DHRel,
383
+ { [_xN]: _DHRel },
384
+ [_HAs],
385
+ [[0, { [_xN]: _HAs }]], 1
386
+ ];
387
+ var DeleteHsmResponse$ = [3, n0, _DHRele,
388
+ 0,
389
+ [_S],
390
+ [0], 1
391
+ ];
392
+ var DeleteLunaClientRequest$ = [3, n0, _DLCR,
393
+ 0,
394
+ [_CA],
395
+ [0], 1
396
+ ];
397
+ var DeleteLunaClientResponse$ = [3, n0, _DLCRe,
398
+ 0,
399
+ [_S],
400
+ [0], 1
401
+ ];
402
+ var DescribeHapgRequest$ = [3, n0, _DHRes,
403
+ 0,
404
+ [_HA],
405
+ [0], 1
406
+ ];
407
+ var DescribeHapgResponse$ = [3, n0, _DHResc,
408
+ 0,
409
+ [_HA, _HS, _HLAF, _HPD, _HPR, _L, _LMT, _PSL, _St],
410
+ [0, 0, 64 | 0, 64 | 0, 64 | 0, 0, 0, 64 | 0, 0]
411
+ ];
412
+ var DescribeHsmRequest$ = [3, n0, _DHRescr,
413
+ 0,
414
+ [_HAs, _HSN],
415
+ [0, 0]
416
+ ];
417
+ var DescribeHsmResponse$ = [3, n0, _DHRescri,
418
+ 0,
419
+ [_HAs, _S, _SD, _AZ, _EIn, _EI, _ST, _SSD, _SED, _VI, _SI, _IRA, _SN, _VN, _HT, _SV, _SPK, _SKLU, _SCU, _SCLU, _P],
420
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64 | 0]
421
+ ];
422
+ var DescribeLunaClientRequest$ = [3, n0, _DLCRes,
423
+ 0,
424
+ [_CA, _CF],
425
+ [0, 0]
426
+ ];
427
+ var DescribeLunaClientResponse$ = [3, n0, _DLCResc,
428
+ 0,
429
+ [_CA, _C, _CF, _LMT, _L],
430
+ [0, 0, 0, 0, 0]
431
+ ];
432
+ var GetConfigRequest$ = [3, n0, _GCR,
433
+ 0,
434
+ [_CA, _CV, _HL],
435
+ [0, 0, 64 | 0], 3
436
+ ];
437
+ var GetConfigResponse$ = [3, n0, _GCRe,
438
+ 0,
439
+ [_CTo, _CFo, _CC],
440
+ [0, 0, 0]
441
+ ];
442
+ var ListAvailableZonesRequest$ = [3, n0, _LAZR,
443
+ 0,
444
+ [],
445
+ []
446
+ ];
447
+ var ListAvailableZonesResponse$ = [3, n0, _LAZRi,
448
+ 0,
449
+ [_AZL],
450
+ [64 | 0]
451
+ ];
452
+ var ListHapgsRequest$ = [3, n0, _LHR,
453
+ 0,
454
+ [_NT],
455
+ [0]
456
+ ];
457
+ var ListHapgsResponse$ = [3, n0, _LHRi,
458
+ 0,
459
+ [_HL, _NT],
460
+ [64 | 0, 0], 1
461
+ ];
462
+ var ListHsmsRequest$ = [3, n0, _LHRis,
463
+ 0,
464
+ [_NT],
465
+ [0]
466
+ ];
467
+ var ListHsmsResponse$ = [3, n0, _LHRist,
468
+ 0,
469
+ [_HLs, _NT],
470
+ [64 | 0, 0]
471
+ ];
472
+ var ListLunaClientsRequest$ = [3, n0, _LLCR,
473
+ 0,
474
+ [_NT],
475
+ [0]
476
+ ];
477
+ var ListLunaClientsResponse$ = [3, n0, _LLCRi,
478
+ 0,
479
+ [_CL, _NT],
480
+ [64 | 0, 0], 1
481
+ ];
482
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
483
+ 0,
484
+ [_RA],
485
+ [0], 1
486
+ ];
487
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
488
+ 0,
489
+ [_TL],
490
+ [() => TagList], 1
491
+ ];
492
+ var ModifyHapgRequest$ = [3, n0, _MHR,
493
+ 0,
494
+ [_HA, _L, _PSL],
495
+ [0, 0, 64 | 0], 1
496
+ ];
497
+ var ModifyHapgResponse$ = [3, n0, _MHRo,
498
+ 0,
499
+ [_HA],
500
+ [0]
501
+ ];
502
+ var ModifyHsmRequest$ = [3, n0, _MHRod,
503
+ { [_xN]: _MHRod },
504
+ [_HAs, _SI, _EI, _IRA, _EIx, _SIy],
505
+ [[0, { [_xN]: _HAs }], [0, { [_xN]: _SI }], [0, { [_xN]: _EI }], [0, { [_xN]: _IRA }], [0, { [_xN]: _EIx }], [0, { [_xN]: _SIy }]], 1
506
+ ];
507
+ var ModifyHsmResponse$ = [3, n0, _MHRodi,
508
+ 0,
509
+ [_HAs],
510
+ [0]
511
+ ];
512
+ var ModifyLunaClientRequest$ = [3, n0, _MLCR,
513
+ 0,
514
+ [_CA, _C],
515
+ [0, 0], 2
516
+ ];
517
+ var ModifyLunaClientResponse$ = [3, n0, _MLCRo,
518
+ 0,
519
+ [_CA],
520
+ [0]
521
+ ];
522
+ var RemoveTagsFromResourceRequest$ = [3, n0, _RTFRR,
523
+ 0,
524
+ [_RA, _TKL],
525
+ [0, 64 | 0], 2
526
+ ];
527
+ var RemoveTagsFromResourceResponse$ = [3, n0, _RTFRRe,
528
+ 0,
529
+ [_S],
530
+ [0], 1
531
+ ];
532
+ var Tag$ = [3, n0, _T,
533
+ 0,
534
+ [_K, _V],
535
+ [0, 0], 2
536
+ ];
537
+ var TagList = [1, n0, _TL,
538
+ 0, () => Tag$
539
+ ];
540
+ var AddTagsToResource$ = [9, n0, _ATTR,
541
+ 0, () => AddTagsToResourceRequest$, () => AddTagsToResourceResponse$
542
+ ];
543
+ var CreateHapg$ = [9, n0, _CH,
544
+ 0, () => CreateHapgRequest$, () => CreateHapgResponse$
545
+ ];
546
+ var CreateHsm$ = [9, n0, _CHr,
547
+ 0, () => CreateHsmRequest$, () => CreateHsmResponse$
548
+ ];
549
+ var CreateLunaClient$ = [9, n0, _CLC,
550
+ 0, () => CreateLunaClientRequest$, () => CreateLunaClientResponse$
551
+ ];
552
+ var DeleteHapg$ = [9, n0, _DH,
553
+ 0, () => DeleteHapgRequest$, () => DeleteHapgResponse$
554
+ ];
555
+ var DeleteHsm$ = [9, n0, _DHe,
556
+ 0, () => DeleteHsmRequest$, () => DeleteHsmResponse$
557
+ ];
558
+ var DeleteLunaClient$ = [9, n0, _DLC,
559
+ 0, () => DeleteLunaClientRequest$, () => DeleteLunaClientResponse$
560
+ ];
561
+ var DescribeHapg$ = [9, n0, _DHes,
562
+ 0, () => DescribeHapgRequest$, () => DescribeHapgResponse$
563
+ ];
564
+ var DescribeHsm$ = [9, n0, _DHesc,
565
+ 0, () => DescribeHsmRequest$, () => DescribeHsmResponse$
566
+ ];
567
+ var DescribeLunaClient$ = [9, n0, _DLCe,
568
+ 0, () => DescribeLunaClientRequest$, () => DescribeLunaClientResponse$
569
+ ];
570
+ var GetConfig$ = [9, n0, _GC,
571
+ 0, () => GetConfigRequest$, () => GetConfigResponse$
572
+ ];
573
+ var ListAvailableZones$ = [9, n0, _LAZ,
574
+ 0, () => ListAvailableZonesRequest$, () => ListAvailableZonesResponse$
575
+ ];
576
+ var ListHapgs$ = [9, n0, _LH,
577
+ 0, () => ListHapgsRequest$, () => ListHapgsResponse$
578
+ ];
579
+ var ListHsms$ = [9, n0, _LHi,
580
+ 0, () => ListHsmsRequest$, () => ListHsmsResponse$
581
+ ];
582
+ var ListLunaClients$ = [9, n0, _LLC,
583
+ 0, () => ListLunaClientsRequest$, () => ListLunaClientsResponse$
584
+ ];
585
+ var ListTagsForResource$ = [9, n0, _LTFR,
586
+ 0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
587
+ ];
588
+ var ModifyHapg$ = [9, n0, _MH,
589
+ 0, () => ModifyHapgRequest$, () => ModifyHapgResponse$
590
+ ];
591
+ var ModifyHsm$ = [9, n0, _MHo,
592
+ 0, () => ModifyHsmRequest$, () => ModifyHsmResponse$
593
+ ];
594
+ var ModifyLunaClient$ = [9, n0, _MLC,
595
+ 0, () => ModifyLunaClientRequest$, () => ModifyLunaClientResponse$
596
+ ];
597
+ var RemoveTagsFromResource$ = [9, n0, _RTFR,
598
+ 0, () => RemoveTagsFromResourceRequest$, () => RemoveTagsFromResourceResponse$
599
+ ];
600
+
601
+ const getRuntimeConfig$1 = (config) => {
602
+ return {
603
+ apiVersion: "2014-05-30",
604
+ base64Decoder: config?.base64Decoder ?? fromBase64,
605
+ base64Encoder: config?.base64Encoder ?? toBase64,
606
+ disableHostPrefix: config?.disableHostPrefix ?? false,
607
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
608
+ extensions: config?.extensions ?? [],
609
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCloudHSMHttpAuthSchemeProvider,
610
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
611
+ {
612
+ schemeId: "aws.auth#sigv4",
613
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
614
+ signer: new AwsSdkSigV4Signer(),
615
+ },
616
+ ],
617
+ logger: config?.logger ?? new NoOpLogger(),
618
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
619
+ protocolSettings: config?.protocolSettings ?? {
620
+ defaultNamespace: "com.amazonaws.cloudhsm",
621
+ errorTypeRegistries,
622
+ version: "2014-05-30",
623
+ serviceTarget: "CloudHsmFrontendService",
624
+ },
625
+ serviceId: config?.serviceId ?? "CloudHSM",
626
+ urlParser: config?.urlParser ?? parseUrl,
627
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
628
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
629
+ };
630
+ };
631
+
632
+ const getRuntimeConfig = (config) => {
633
+ emitWarningIfUnsupportedVersion(process.version);
634
+ const defaultsMode = resolveDefaultsModeConfig(config);
635
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
636
+ const clientSharedValues = getRuntimeConfig$1(config);
637
+ emitWarningIfUnsupportedVersion$1(process.version);
638
+ const loaderConfig = {
639
+ profile: config?.profile,
640
+ logger: clientSharedValues.logger,
641
+ };
642
+ return {
643
+ ...clientSharedValues,
644
+ ...config,
645
+ runtime: "node",
646
+ defaultsMode,
647
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
648
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
649
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
650
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
651
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
652
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
653
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
654
+ retryMode: config?.retryMode ??
655
+ loadConfig({
656
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
657
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
658
+ }, config),
659
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
660
+ streamCollector: config?.streamCollector ?? streamCollector,
661
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
662
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
663
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
664
+ };
665
+ };
666
+
34
667
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
668
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
669
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -399,29 +1032,99 @@ const HsmStatus = {
399
1032
  UPDATING: "UPDATING",
400
1033
  };
401
1034
 
1035
+ exports.AddTagsToResource$ = AddTagsToResource$;
402
1036
  exports.AddTagsToResourceCommand = AddTagsToResourceCommand;
1037
+ exports.AddTagsToResourceRequest$ = AddTagsToResourceRequest$;
1038
+ exports.AddTagsToResourceResponse$ = AddTagsToResourceResponse$;
403
1039
  exports.ClientVersion = ClientVersion;
404
1040
  exports.CloudHSM = CloudHSM;
405
1041
  exports.CloudHSMClient = CloudHSMClient;
1042
+ exports.CloudHSMServiceException = CloudHSMServiceException;
1043
+ exports.CloudHSMServiceException$ = CloudHSMServiceException$;
1044
+ exports.CloudHsmInternalException = CloudHsmInternalException;
1045
+ exports.CloudHsmInternalException$ = CloudHsmInternalException$;
406
1046
  exports.CloudHsmObjectState = CloudHsmObjectState;
1047
+ exports.CloudHsmServiceException = CloudHsmServiceException;
1048
+ exports.CloudHsmServiceException$ = CloudHsmServiceException$;
1049
+ exports.CreateHapg$ = CreateHapg$;
407
1050
  exports.CreateHapgCommand = CreateHapgCommand;
1051
+ exports.CreateHapgRequest$ = CreateHapgRequest$;
1052
+ exports.CreateHapgResponse$ = CreateHapgResponse$;
1053
+ exports.CreateHsm$ = CreateHsm$;
408
1054
  exports.CreateHsmCommand = CreateHsmCommand;
1055
+ exports.CreateHsmRequest$ = CreateHsmRequest$;
1056
+ exports.CreateHsmResponse$ = CreateHsmResponse$;
1057
+ exports.CreateLunaClient$ = CreateLunaClient$;
409
1058
  exports.CreateLunaClientCommand = CreateLunaClientCommand;
1059
+ exports.CreateLunaClientRequest$ = CreateLunaClientRequest$;
1060
+ exports.CreateLunaClientResponse$ = CreateLunaClientResponse$;
1061
+ exports.DeleteHapg$ = DeleteHapg$;
410
1062
  exports.DeleteHapgCommand = DeleteHapgCommand;
1063
+ exports.DeleteHapgRequest$ = DeleteHapgRequest$;
1064
+ exports.DeleteHapgResponse$ = DeleteHapgResponse$;
1065
+ exports.DeleteHsm$ = DeleteHsm$;
411
1066
  exports.DeleteHsmCommand = DeleteHsmCommand;
1067
+ exports.DeleteHsmRequest$ = DeleteHsmRequest$;
1068
+ exports.DeleteHsmResponse$ = DeleteHsmResponse$;
1069
+ exports.DeleteLunaClient$ = DeleteLunaClient$;
412
1070
  exports.DeleteLunaClientCommand = DeleteLunaClientCommand;
1071
+ exports.DeleteLunaClientRequest$ = DeleteLunaClientRequest$;
1072
+ exports.DeleteLunaClientResponse$ = DeleteLunaClientResponse$;
1073
+ exports.DescribeHapg$ = DescribeHapg$;
413
1074
  exports.DescribeHapgCommand = DescribeHapgCommand;
1075
+ exports.DescribeHapgRequest$ = DescribeHapgRequest$;
1076
+ exports.DescribeHapgResponse$ = DescribeHapgResponse$;
1077
+ exports.DescribeHsm$ = DescribeHsm$;
414
1078
  exports.DescribeHsmCommand = DescribeHsmCommand;
1079
+ exports.DescribeHsmRequest$ = DescribeHsmRequest$;
1080
+ exports.DescribeHsmResponse$ = DescribeHsmResponse$;
1081
+ exports.DescribeLunaClient$ = DescribeLunaClient$;
415
1082
  exports.DescribeLunaClientCommand = DescribeLunaClientCommand;
1083
+ exports.DescribeLunaClientRequest$ = DescribeLunaClientRequest$;
1084
+ exports.DescribeLunaClientResponse$ = DescribeLunaClientResponse$;
1085
+ exports.GetConfig$ = GetConfig$;
416
1086
  exports.GetConfigCommand = GetConfigCommand;
1087
+ exports.GetConfigRequest$ = GetConfigRequest$;
1088
+ exports.GetConfigResponse$ = GetConfigResponse$;
417
1089
  exports.HsmStatus = HsmStatus;
1090
+ exports.InvalidRequestException = InvalidRequestException;
1091
+ exports.InvalidRequestException$ = InvalidRequestException$;
1092
+ exports.ListAvailableZones$ = ListAvailableZones$;
418
1093
  exports.ListAvailableZonesCommand = ListAvailableZonesCommand;
1094
+ exports.ListAvailableZonesRequest$ = ListAvailableZonesRequest$;
1095
+ exports.ListAvailableZonesResponse$ = ListAvailableZonesResponse$;
1096
+ exports.ListHapgs$ = ListHapgs$;
419
1097
  exports.ListHapgsCommand = ListHapgsCommand;
1098
+ exports.ListHapgsRequest$ = ListHapgsRequest$;
1099
+ exports.ListHapgsResponse$ = ListHapgsResponse$;
1100
+ exports.ListHsms$ = ListHsms$;
420
1101
  exports.ListHsmsCommand = ListHsmsCommand;
1102
+ exports.ListHsmsRequest$ = ListHsmsRequest$;
1103
+ exports.ListHsmsResponse$ = ListHsmsResponse$;
1104
+ exports.ListLunaClients$ = ListLunaClients$;
421
1105
  exports.ListLunaClientsCommand = ListLunaClientsCommand;
1106
+ exports.ListLunaClientsRequest$ = ListLunaClientsRequest$;
1107
+ exports.ListLunaClientsResponse$ = ListLunaClientsResponse$;
1108
+ exports.ListTagsForResource$ = ListTagsForResource$;
422
1109
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1110
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1111
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1112
+ exports.ModifyHapg$ = ModifyHapg$;
423
1113
  exports.ModifyHapgCommand = ModifyHapgCommand;
1114
+ exports.ModifyHapgRequest$ = ModifyHapgRequest$;
1115
+ exports.ModifyHapgResponse$ = ModifyHapgResponse$;
1116
+ exports.ModifyHsm$ = ModifyHsm$;
424
1117
  exports.ModifyHsmCommand = ModifyHsmCommand;
1118
+ exports.ModifyHsmRequest$ = ModifyHsmRequest$;
1119
+ exports.ModifyHsmResponse$ = ModifyHsmResponse$;
1120
+ exports.ModifyLunaClient$ = ModifyLunaClient$;
425
1121
  exports.ModifyLunaClientCommand = ModifyLunaClientCommand;
1122
+ exports.ModifyLunaClientRequest$ = ModifyLunaClientRequest$;
1123
+ exports.ModifyLunaClientResponse$ = ModifyLunaClientResponse$;
1124
+ exports.RemoveTagsFromResource$ = RemoveTagsFromResource$;
426
1125
  exports.RemoveTagsFromResourceCommand = RemoveTagsFromResourceCommand;
1126
+ exports.RemoveTagsFromResourceRequest$ = RemoveTagsFromResourceRequest$;
1127
+ exports.RemoveTagsFromResourceResponse$ = RemoveTagsFromResourceResponse$;
427
1128
  exports.SubscriptionType = SubscriptionType;
1129
+ exports.Tag$ = Tag$;
1130
+ exports.errorTypeRegistries = errorTypeRegistries;