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