@aws-sdk/client-cloudhsm-v2 3.1075.0 → 3.1076.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +829 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -51
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/CloudHSMV2ServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -99
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -521
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
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 {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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 defaultCloudHSMV2HttpAuthSchemeParametersProvider = 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 defaultCloudHSMV2HttpAuthSchemeProvider = (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,706 @@ 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 m = "ref";
|
|
75
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { "fn": f, "argv": [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
|
|
76
|
+
const _data = {
|
|
77
|
+
conditions: [
|
|
78
|
+
[c, [h]],
|
|
79
|
+
[c, l],
|
|
80
|
+
["aws.partition", l, d],
|
|
81
|
+
[e, [{ [m]: "UseFIPS" }, b]],
|
|
82
|
+
[e, [{ [m]: "UseDualStack" }, b]],
|
|
83
|
+
[e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
|
|
85
|
+
[g, [j, "aws-us-gov"]],
|
|
86
|
+
[g, [j, "aws"]]
|
|
87
|
+
],
|
|
88
|
+
results: [
|
|
89
|
+
[a],
|
|
90
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
91
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
92
|
+
[h, k],
|
|
93
|
+
["https://cloudhsmv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
94
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
95
|
+
["https://cloudhsmv2-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
96
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
97
|
+
["https://cloudhsmv2.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
98
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
99
|
+
["https://cloudhsmv2.{Region}.amazonaws.com", k],
|
|
100
|
+
["https://cloudhsmv2.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
101
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
102
|
+
]
|
|
103
|
+
};
|
|
104
|
+
const root = 2;
|
|
105
|
+
const r = 100_000_000;
|
|
106
|
+
const nodes = new Int32Array([
|
|
107
|
+
-1, 1, -1,
|
|
108
|
+
0, 14, 3,
|
|
109
|
+
1, 4, r + 12,
|
|
110
|
+
2, 5, r + 12,
|
|
111
|
+
3, 10, 6,
|
|
112
|
+
4, 9, 7,
|
|
113
|
+
7, r + 10, 8,
|
|
114
|
+
8, r + 10, r + 11,
|
|
115
|
+
5, r + 8, r + 9,
|
|
116
|
+
4, 12, 11,
|
|
117
|
+
6, r + 6, r + 7,
|
|
118
|
+
5, 13, r + 5,
|
|
119
|
+
6, r + 4, r + 5,
|
|
120
|
+
3, r + 1, 15,
|
|
121
|
+
4, r + 2, r + 3,
|
|
122
|
+
]);
|
|
123
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
124
|
+
|
|
125
|
+
const cache = new EndpointCache({
|
|
126
|
+
size: 50,
|
|
127
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
128
|
+
});
|
|
129
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
130
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
131
|
+
endpointParams: endpointParams,
|
|
132
|
+
logger: context.logger,
|
|
133
|
+
}));
|
|
134
|
+
};
|
|
135
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
136
|
+
|
|
137
|
+
class CloudHSMV2ServiceException extends ServiceException {
|
|
138
|
+
constructor(options) {
|
|
139
|
+
super(options);
|
|
140
|
+
Object.setPrototypeOf(this, CloudHSMV2ServiceException.prototype);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
class CloudHsmAccessDeniedException extends CloudHSMV2ServiceException {
|
|
145
|
+
name = "CloudHsmAccessDeniedException";
|
|
146
|
+
$fault = "client";
|
|
147
|
+
Message;
|
|
148
|
+
constructor(opts) {
|
|
149
|
+
super({
|
|
150
|
+
name: "CloudHsmAccessDeniedException",
|
|
151
|
+
$fault: "client",
|
|
152
|
+
...opts,
|
|
153
|
+
});
|
|
154
|
+
Object.setPrototypeOf(this, CloudHsmAccessDeniedException.prototype);
|
|
155
|
+
this.Message = opts.Message;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
class CloudHsmInternalFailureException extends CloudHSMV2ServiceException {
|
|
159
|
+
name = "CloudHsmInternalFailureException";
|
|
160
|
+
$fault = "server";
|
|
161
|
+
Message;
|
|
162
|
+
constructor(opts) {
|
|
163
|
+
super({
|
|
164
|
+
name: "CloudHsmInternalFailureException",
|
|
165
|
+
$fault: "server",
|
|
166
|
+
...opts,
|
|
167
|
+
});
|
|
168
|
+
Object.setPrototypeOf(this, CloudHsmInternalFailureException.prototype);
|
|
169
|
+
this.Message = opts.Message;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
class CloudHsmInvalidRequestException extends CloudHSMV2ServiceException {
|
|
173
|
+
name = "CloudHsmInvalidRequestException";
|
|
174
|
+
$fault = "client";
|
|
175
|
+
Message;
|
|
176
|
+
constructor(opts) {
|
|
177
|
+
super({
|
|
178
|
+
name: "CloudHsmInvalidRequestException",
|
|
179
|
+
$fault: "client",
|
|
180
|
+
...opts,
|
|
181
|
+
});
|
|
182
|
+
Object.setPrototypeOf(this, CloudHsmInvalidRequestException.prototype);
|
|
183
|
+
this.Message = opts.Message;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
class CloudHsmResourceNotFoundException extends CloudHSMV2ServiceException {
|
|
187
|
+
name = "CloudHsmResourceNotFoundException";
|
|
188
|
+
$fault = "client";
|
|
189
|
+
Message;
|
|
190
|
+
constructor(opts) {
|
|
191
|
+
super({
|
|
192
|
+
name: "CloudHsmResourceNotFoundException",
|
|
193
|
+
$fault: "client",
|
|
194
|
+
...opts,
|
|
195
|
+
});
|
|
196
|
+
Object.setPrototypeOf(this, CloudHsmResourceNotFoundException.prototype);
|
|
197
|
+
this.Message = opts.Message;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
class CloudHsmServiceException extends CloudHSMV2ServiceException {
|
|
201
|
+
name = "CloudHsmServiceException";
|
|
202
|
+
$fault = "client";
|
|
203
|
+
Message;
|
|
204
|
+
constructor(opts) {
|
|
205
|
+
super({
|
|
206
|
+
name: "CloudHsmServiceException",
|
|
207
|
+
$fault: "client",
|
|
208
|
+
...opts,
|
|
209
|
+
});
|
|
210
|
+
Object.setPrototypeOf(this, CloudHsmServiceException.prototype);
|
|
211
|
+
this.Message = opts.Message;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
class CloudHsmTagException extends CloudHSMV2ServiceException {
|
|
215
|
+
name = "CloudHsmTagException";
|
|
216
|
+
$fault = "client";
|
|
217
|
+
Message;
|
|
218
|
+
constructor(opts) {
|
|
219
|
+
super({
|
|
220
|
+
name: "CloudHsmTagException",
|
|
221
|
+
$fault: "client",
|
|
222
|
+
...opts,
|
|
223
|
+
});
|
|
224
|
+
Object.setPrototypeOf(this, CloudHsmTagException.prototype);
|
|
225
|
+
this.Message = opts.Message;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
class CloudHsmResourceLimitExceededException extends CloudHSMV2ServiceException {
|
|
229
|
+
name = "CloudHsmResourceLimitExceededException";
|
|
230
|
+
$fault = "client";
|
|
231
|
+
Message;
|
|
232
|
+
constructor(opts) {
|
|
233
|
+
super({
|
|
234
|
+
name: "CloudHsmResourceLimitExceededException",
|
|
235
|
+
$fault: "client",
|
|
236
|
+
...opts,
|
|
237
|
+
});
|
|
238
|
+
Object.setPrototypeOf(this, CloudHsmResourceLimitExceededException.prototype);
|
|
239
|
+
this.Message = opts.Message;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
const _AHC = "AwsHardwareCertificate";
|
|
244
|
+
const _AZ = "AvailabilityZone";
|
|
245
|
+
const _B = "Backup";
|
|
246
|
+
const _BA = "BackupArn";
|
|
247
|
+
const _BI = "BackupId";
|
|
248
|
+
const _BP = "BackupPolicy";
|
|
249
|
+
const _BRP = "BackupRetentionPolicy";
|
|
250
|
+
const _BS = "BackupState";
|
|
251
|
+
const _Ba = "Backups";
|
|
252
|
+
const _C = "Certificates";
|
|
253
|
+
const _CBTR = "CopyBackupToRegion";
|
|
254
|
+
const _CBTRR = "CopyBackupToRegionRequest";
|
|
255
|
+
const _CBTRRo = "CopyBackupToRegionResponse";
|
|
256
|
+
const _CC = "ClusterCsr";
|
|
257
|
+
const _CCR = "CreateClusterRequest";
|
|
258
|
+
const _CCRr = "CreateClusterResponse";
|
|
259
|
+
const _CCl = "ClusterCertificate";
|
|
260
|
+
const _CCr = "CreateCluster";
|
|
261
|
+
const _CH = "CreateHsm";
|
|
262
|
+
const _CHADE = "CloudHsmAccessDeniedException";
|
|
263
|
+
const _CHIFE = "CloudHsmInternalFailureException";
|
|
264
|
+
const _CHIRE = "CloudHsmInvalidRequestException";
|
|
265
|
+
const _CHR = "CreateHsmRequest";
|
|
266
|
+
const _CHRLEE = "CloudHsmResourceLimitExceededException";
|
|
267
|
+
const _CHRNFE = "CloudHsmResourceNotFoundException";
|
|
268
|
+
const _CHRr = "CreateHsmResponse";
|
|
269
|
+
const _CHSE = "CloudHsmServiceException";
|
|
270
|
+
const _CHTE = "CloudHsmTagException";
|
|
271
|
+
const _CI = "ClusterId";
|
|
272
|
+
const _CT = "CreateTimestamp";
|
|
273
|
+
const _CTo = "CopyTimestamp";
|
|
274
|
+
const _Cl = "Cluster";
|
|
275
|
+
const _Clu = "Clusters";
|
|
276
|
+
const _DB = "DestinationBackup";
|
|
277
|
+
const _DBR = "DeleteBackupRequest";
|
|
278
|
+
const _DBRe = "DeleteBackupResponse";
|
|
279
|
+
const _DBRes = "DescribeBackupsRequest";
|
|
280
|
+
const _DBResc = "DescribeBackupsResponse";
|
|
281
|
+
const _DBe = "DeleteBackup";
|
|
282
|
+
const _DBes = "DescribeBackups";
|
|
283
|
+
const _DC = "DeleteCluster";
|
|
284
|
+
const _DCR = "DeleteClusterRequest";
|
|
285
|
+
const _DCRe = "DeleteClusterResponse";
|
|
286
|
+
const _DCRes = "DescribeClustersRequest";
|
|
287
|
+
const _DCResc = "DescribeClustersResponse";
|
|
288
|
+
const _DCe = "DescribeClusters";
|
|
289
|
+
const _DH = "DeleteHsm";
|
|
290
|
+
const _DHR = "DeleteHsmRequest";
|
|
291
|
+
const _DHRe = "DeleteHsmResponse";
|
|
292
|
+
const _DR = "DestinationRegion";
|
|
293
|
+
const _DRP = "DeleteResourcePolicy";
|
|
294
|
+
const _DRPR = "DeleteResourcePolicyRequest";
|
|
295
|
+
const _DRPRe = "DeleteResourcePolicyResponse";
|
|
296
|
+
const _DT = "DeleteTimestamp";
|
|
297
|
+
const _EI = "EniId";
|
|
298
|
+
const _EIV = "EniIpV6";
|
|
299
|
+
const _EIn = "EniIp";
|
|
300
|
+
const _F = "Filters";
|
|
301
|
+
const _GRP = "GetResourcePolicy";
|
|
302
|
+
const _GRPR = "GetResourcePolicyRequest";
|
|
303
|
+
const _GRPRe = "GetResourcePolicyResponse";
|
|
304
|
+
const _H = "Hsms";
|
|
305
|
+
const _HC = "HsmCertificate";
|
|
306
|
+
const _HI = "HsmId";
|
|
307
|
+
const _HT = "HsmType";
|
|
308
|
+
const _HTRE = "HsmTypeRollbackExpiration";
|
|
309
|
+
const _Hs = "Hsm";
|
|
310
|
+
const _IA = "IpAddress";
|
|
311
|
+
const _IC = "InitializeCluster";
|
|
312
|
+
const _ICR = "InitializeClusterRequest";
|
|
313
|
+
const _ICRn = "InitializeClusterResponse";
|
|
314
|
+
const _K = "Key";
|
|
315
|
+
const _LT = "ListTags";
|
|
316
|
+
const _LTR = "ListTagsRequest";
|
|
317
|
+
const _LTRi = "ListTagsResponse";
|
|
318
|
+
const _M = "Message";
|
|
319
|
+
const _MBA = "ModifyBackupAttributes";
|
|
320
|
+
const _MBAR = "ModifyBackupAttributesRequest";
|
|
321
|
+
const _MBARo = "ModifyBackupAttributesResponse";
|
|
322
|
+
const _MC = "ModifyCluster";
|
|
323
|
+
const _MCR = "ModifyClusterRequest";
|
|
324
|
+
const _MCRo = "ModifyClusterResponse";
|
|
325
|
+
const _MHC = "ManufacturerHardwareCertificate";
|
|
326
|
+
const _MR = "MaxResults";
|
|
327
|
+
const _Mo = "Mode";
|
|
328
|
+
const _NE = "NeverExpires";
|
|
329
|
+
const _NT = "NetworkType";
|
|
330
|
+
const _NTe = "NextToken";
|
|
331
|
+
const _P = "Policy";
|
|
332
|
+
const _PCP = "PreCoPassword";
|
|
333
|
+
const _PRP = "PutResourcePolicy";
|
|
334
|
+
const _PRPR = "PutResourcePolicyRequest";
|
|
335
|
+
const _PRPRu = "PutResourcePolicyResponse";
|
|
336
|
+
const _RA = "ResourceArn";
|
|
337
|
+
const _RB = "RestoreBackup";
|
|
338
|
+
const _RBR = "RestoreBackupRequest";
|
|
339
|
+
const _RBRe = "RestoreBackupResponse";
|
|
340
|
+
const _RI = "ResourceId";
|
|
341
|
+
const _S = "State";
|
|
342
|
+
const _SA = "SortAscending";
|
|
343
|
+
const _SB = "SourceBackup";
|
|
344
|
+
const _SBI = "SourceBackupId";
|
|
345
|
+
const _SC = "SourceCluster";
|
|
346
|
+
const _SCi = "SignedCert";
|
|
347
|
+
const _SG = "SecurityGroup";
|
|
348
|
+
const _SI = "SubnetIds";
|
|
349
|
+
const _SIu = "SubnetId";
|
|
350
|
+
const _SM = "StateMessage";
|
|
351
|
+
const _SMu = "SubnetMapping";
|
|
352
|
+
const _SR = "SourceRegion";
|
|
353
|
+
const _Sh = "Shared";
|
|
354
|
+
const _T = "Type";
|
|
355
|
+
const _TA = "TrustAnchor";
|
|
356
|
+
const _TKL = "TagKeyList";
|
|
357
|
+
const _TL = "TagList";
|
|
358
|
+
const _TR = "TagResource";
|
|
359
|
+
const _TRR = "TagResourceRequest";
|
|
360
|
+
const _TRRa = "TagResourceResponse";
|
|
361
|
+
const _Ta = "Tag";
|
|
362
|
+
const _UR = "UntagResource";
|
|
363
|
+
const _URR = "UntagResourceRequest";
|
|
364
|
+
const _URRn = "UntagResourceResponse";
|
|
365
|
+
const _V = "Value";
|
|
366
|
+
const _VI = "VpcId";
|
|
367
|
+
const _c = "client";
|
|
368
|
+
const _e = "error";
|
|
369
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloudhsmv2";
|
|
370
|
+
const _se = "server";
|
|
371
|
+
const n0 = "com.amazonaws.cloudhsmv2";
|
|
372
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
373
|
+
var CloudHSMV2ServiceException$ = [-3, _s, "CloudHSMV2ServiceException", 0, [], []];
|
|
374
|
+
_s_registry.registerError(CloudHSMV2ServiceException$, CloudHSMV2ServiceException);
|
|
375
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
376
|
+
var CloudHsmAccessDeniedException$ = [-3, n0, _CHADE,
|
|
377
|
+
{ [_e]: _c },
|
|
378
|
+
[_M],
|
|
379
|
+
[0]
|
|
380
|
+
];
|
|
381
|
+
n0_registry.registerError(CloudHsmAccessDeniedException$, CloudHsmAccessDeniedException);
|
|
382
|
+
var CloudHsmInternalFailureException$ = [-3, n0, _CHIFE,
|
|
383
|
+
{ [_e]: _se },
|
|
384
|
+
[_M],
|
|
385
|
+
[0]
|
|
386
|
+
];
|
|
387
|
+
n0_registry.registerError(CloudHsmInternalFailureException$, CloudHsmInternalFailureException);
|
|
388
|
+
var CloudHsmInvalidRequestException$ = [-3, n0, _CHIRE,
|
|
389
|
+
{ [_e]: _c },
|
|
390
|
+
[_M],
|
|
391
|
+
[0]
|
|
392
|
+
];
|
|
393
|
+
n0_registry.registerError(CloudHsmInvalidRequestException$, CloudHsmInvalidRequestException);
|
|
394
|
+
var CloudHsmResourceLimitExceededException$ = [-3, n0, _CHRLEE,
|
|
395
|
+
{ [_e]: _c },
|
|
396
|
+
[_M],
|
|
397
|
+
[0]
|
|
398
|
+
];
|
|
399
|
+
n0_registry.registerError(CloudHsmResourceLimitExceededException$, CloudHsmResourceLimitExceededException);
|
|
400
|
+
var CloudHsmResourceNotFoundException$ = [-3, n0, _CHRNFE,
|
|
401
|
+
{ [_e]: _c },
|
|
402
|
+
[_M],
|
|
403
|
+
[0]
|
|
404
|
+
];
|
|
405
|
+
n0_registry.registerError(CloudHsmResourceNotFoundException$, CloudHsmResourceNotFoundException);
|
|
406
|
+
var CloudHsmServiceException$ = [-3, n0, _CHSE,
|
|
407
|
+
{ [_e]: _c },
|
|
408
|
+
[_M],
|
|
409
|
+
[0]
|
|
410
|
+
];
|
|
411
|
+
n0_registry.registerError(CloudHsmServiceException$, CloudHsmServiceException);
|
|
412
|
+
var CloudHsmTagException$ = [-3, n0, _CHTE,
|
|
413
|
+
{ [_e]: _c },
|
|
414
|
+
[_M],
|
|
415
|
+
[0]
|
|
416
|
+
];
|
|
417
|
+
n0_registry.registerError(CloudHsmTagException$, CloudHsmTagException);
|
|
418
|
+
const errorTypeRegistries = [
|
|
419
|
+
_s_registry,
|
|
420
|
+
n0_registry,
|
|
421
|
+
];
|
|
422
|
+
var Backup$ = [3, n0, _B,
|
|
423
|
+
0,
|
|
424
|
+
[_BI, _BA, _BS, _CI, _CT, _CTo, _NE, _SR, _SB, _SC, _DT, _TL, _HT, _Mo],
|
|
425
|
+
[0, 0, 0, 0, 4, 4, 2, 0, 0, 0, 4, () => TagList, 0, 0], 1
|
|
426
|
+
];
|
|
427
|
+
var BackupRetentionPolicy$ = [3, n0, _BRP,
|
|
428
|
+
0,
|
|
429
|
+
[_T, _V],
|
|
430
|
+
[0, 0]
|
|
431
|
+
];
|
|
432
|
+
var Certificates$ = [3, n0, _C,
|
|
433
|
+
0,
|
|
434
|
+
[_CC, _HC, _AHC, _MHC, _CCl],
|
|
435
|
+
[0, 0, 0, 0, 0]
|
|
436
|
+
];
|
|
437
|
+
var Cluster$ = [3, n0, _Cl,
|
|
438
|
+
0,
|
|
439
|
+
[_BP, _BRP, _CI, _CT, _H, _HT, _HTRE, _PCP, _SG, _SBI, _S, _SM, _SMu, _VI, _NT, _C, _TL, _Mo],
|
|
440
|
+
[0, () => BackupRetentionPolicy$, 0, 4, () => Hsms, 0, 4, 0, 0, 0, 0, 0, 128 | 0, 0, 0, () => Certificates$, () => TagList, 0]
|
|
441
|
+
];
|
|
442
|
+
var CopyBackupToRegionRequest$ = [3, n0, _CBTRR,
|
|
443
|
+
0,
|
|
444
|
+
[_DR, _BI, _TL],
|
|
445
|
+
[0, 0, () => TagList], 2
|
|
446
|
+
];
|
|
447
|
+
var CopyBackupToRegionResponse$ = [3, n0, _CBTRRo,
|
|
448
|
+
0,
|
|
449
|
+
[_DB],
|
|
450
|
+
[() => DestinationBackup$]
|
|
451
|
+
];
|
|
452
|
+
var CreateClusterRequest$ = [3, n0, _CCR,
|
|
453
|
+
0,
|
|
454
|
+
[_HT, _SI, _BRP, _SBI, _NT, _TL, _Mo],
|
|
455
|
+
[0, 64 | 0, () => BackupRetentionPolicy$, 0, 0, () => TagList, 0], 2
|
|
456
|
+
];
|
|
457
|
+
var CreateClusterResponse$ = [3, n0, _CCRr,
|
|
458
|
+
0,
|
|
459
|
+
[_Cl],
|
|
460
|
+
[() => Cluster$]
|
|
461
|
+
];
|
|
462
|
+
var CreateHsmRequest$ = [3, n0, _CHR,
|
|
463
|
+
0,
|
|
464
|
+
[_CI, _AZ, _IA],
|
|
465
|
+
[0, 0, 0], 2
|
|
466
|
+
];
|
|
467
|
+
var CreateHsmResponse$ = [3, n0, _CHRr,
|
|
468
|
+
0,
|
|
469
|
+
[_Hs],
|
|
470
|
+
[() => Hsm$]
|
|
471
|
+
];
|
|
472
|
+
var DeleteBackupRequest$ = [3, n0, _DBR,
|
|
473
|
+
0,
|
|
474
|
+
[_BI],
|
|
475
|
+
[0], 1
|
|
476
|
+
];
|
|
477
|
+
var DeleteBackupResponse$ = [3, n0, _DBRe,
|
|
478
|
+
0,
|
|
479
|
+
[_B],
|
|
480
|
+
[() => Backup$]
|
|
481
|
+
];
|
|
482
|
+
var DeleteClusterRequest$ = [3, n0, _DCR,
|
|
483
|
+
0,
|
|
484
|
+
[_CI],
|
|
485
|
+
[0], 1
|
|
486
|
+
];
|
|
487
|
+
var DeleteClusterResponse$ = [3, n0, _DCRe,
|
|
488
|
+
0,
|
|
489
|
+
[_Cl],
|
|
490
|
+
[() => Cluster$]
|
|
491
|
+
];
|
|
492
|
+
var DeleteHsmRequest$ = [3, n0, _DHR,
|
|
493
|
+
0,
|
|
494
|
+
[_CI, _HI, _EI, _EIn],
|
|
495
|
+
[0, 0, 0, 0], 1
|
|
496
|
+
];
|
|
497
|
+
var DeleteHsmResponse$ = [3, n0, _DHRe,
|
|
498
|
+
0,
|
|
499
|
+
[_HI],
|
|
500
|
+
[0]
|
|
501
|
+
];
|
|
502
|
+
var DeleteResourcePolicyRequest$ = [3, n0, _DRPR,
|
|
503
|
+
0,
|
|
504
|
+
[_RA],
|
|
505
|
+
[0]
|
|
506
|
+
];
|
|
507
|
+
var DeleteResourcePolicyResponse$ = [3, n0, _DRPRe,
|
|
508
|
+
0,
|
|
509
|
+
[_RA, _P],
|
|
510
|
+
[0, 0]
|
|
511
|
+
];
|
|
512
|
+
var DescribeBackupsRequest$ = [3, n0, _DBRes,
|
|
513
|
+
0,
|
|
514
|
+
[_NTe, _MR, _F, _Sh, _SA],
|
|
515
|
+
[0, 1, [2, n0, _F, 0, 0, 64 | 0], 2, 2]
|
|
516
|
+
];
|
|
517
|
+
var DescribeBackupsResponse$ = [3, n0, _DBResc,
|
|
518
|
+
0,
|
|
519
|
+
[_Ba, _NTe],
|
|
520
|
+
[() => Backups, 0]
|
|
521
|
+
];
|
|
522
|
+
var DescribeClustersRequest$ = [3, n0, _DCRes,
|
|
523
|
+
0,
|
|
524
|
+
[_F, _NTe, _MR],
|
|
525
|
+
[[2, n0, _F, 0, 0, 64 | 0], 0, 1]
|
|
526
|
+
];
|
|
527
|
+
var DescribeClustersResponse$ = [3, n0, _DCResc,
|
|
528
|
+
0,
|
|
529
|
+
[_Clu, _NTe],
|
|
530
|
+
[() => Clusters, 0]
|
|
531
|
+
];
|
|
532
|
+
var DestinationBackup$ = [3, n0, _DB,
|
|
533
|
+
0,
|
|
534
|
+
[_CT, _SR, _SB, _SC],
|
|
535
|
+
[4, 0, 0, 0]
|
|
536
|
+
];
|
|
537
|
+
var GetResourcePolicyRequest$ = [3, n0, _GRPR,
|
|
538
|
+
0,
|
|
539
|
+
[_RA],
|
|
540
|
+
[0]
|
|
541
|
+
];
|
|
542
|
+
var GetResourcePolicyResponse$ = [3, n0, _GRPRe,
|
|
543
|
+
0,
|
|
544
|
+
[_P],
|
|
545
|
+
[0]
|
|
546
|
+
];
|
|
547
|
+
var Hsm$ = [3, n0, _Hs,
|
|
548
|
+
0,
|
|
549
|
+
[_HI, _AZ, _CI, _SIu, _EI, _EIn, _EIV, _HT, _S, _SM],
|
|
550
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 1
|
|
551
|
+
];
|
|
552
|
+
var InitializeClusterRequest$ = [3, n0, _ICR,
|
|
553
|
+
0,
|
|
554
|
+
[_CI, _SCi, _TA],
|
|
555
|
+
[0, 0, 0], 3
|
|
556
|
+
];
|
|
557
|
+
var InitializeClusterResponse$ = [3, n0, _ICRn,
|
|
558
|
+
0,
|
|
559
|
+
[_S, _SM],
|
|
560
|
+
[0, 0]
|
|
561
|
+
];
|
|
562
|
+
var ListTagsRequest$ = [3, n0, _LTR,
|
|
563
|
+
0,
|
|
564
|
+
[_RI, _NTe, _MR],
|
|
565
|
+
[0, 0, 1], 1
|
|
566
|
+
];
|
|
567
|
+
var ListTagsResponse$ = [3, n0, _LTRi,
|
|
568
|
+
0,
|
|
569
|
+
[_TL, _NTe],
|
|
570
|
+
[() => TagList, 0], 1
|
|
571
|
+
];
|
|
572
|
+
var ModifyBackupAttributesRequest$ = [3, n0, _MBAR,
|
|
573
|
+
0,
|
|
574
|
+
[_BI, _NE],
|
|
575
|
+
[0, 2], 2
|
|
576
|
+
];
|
|
577
|
+
var ModifyBackupAttributesResponse$ = [3, n0, _MBARo,
|
|
578
|
+
0,
|
|
579
|
+
[_B],
|
|
580
|
+
[() => Backup$]
|
|
581
|
+
];
|
|
582
|
+
var ModifyClusterRequest$ = [3, n0, _MCR,
|
|
583
|
+
0,
|
|
584
|
+
[_CI, _HT, _BRP],
|
|
585
|
+
[0, 0, () => BackupRetentionPolicy$], 1
|
|
586
|
+
];
|
|
587
|
+
var ModifyClusterResponse$ = [3, n0, _MCRo,
|
|
588
|
+
0,
|
|
589
|
+
[_Cl],
|
|
590
|
+
[() => Cluster$]
|
|
591
|
+
];
|
|
592
|
+
var PutResourcePolicyRequest$ = [3, n0, _PRPR,
|
|
593
|
+
0,
|
|
594
|
+
[_RA, _P],
|
|
595
|
+
[0, 0]
|
|
596
|
+
];
|
|
597
|
+
var PutResourcePolicyResponse$ = [3, n0, _PRPRu,
|
|
598
|
+
0,
|
|
599
|
+
[_RA, _P],
|
|
600
|
+
[0, 0]
|
|
601
|
+
];
|
|
602
|
+
var RestoreBackupRequest$ = [3, n0, _RBR,
|
|
603
|
+
0,
|
|
604
|
+
[_BI],
|
|
605
|
+
[0], 1
|
|
606
|
+
];
|
|
607
|
+
var RestoreBackupResponse$ = [3, n0, _RBRe,
|
|
608
|
+
0,
|
|
609
|
+
[_B],
|
|
610
|
+
[() => Backup$]
|
|
611
|
+
];
|
|
612
|
+
var Tag$ = [3, n0, _Ta,
|
|
613
|
+
0,
|
|
614
|
+
[_K, _V],
|
|
615
|
+
[0, 0], 2
|
|
616
|
+
];
|
|
617
|
+
var TagResourceRequest$ = [3, n0, _TRR,
|
|
618
|
+
0,
|
|
619
|
+
[_RI, _TL],
|
|
620
|
+
[0, () => TagList], 2
|
|
621
|
+
];
|
|
622
|
+
var TagResourceResponse$ = [3, n0, _TRRa,
|
|
623
|
+
0,
|
|
624
|
+
[],
|
|
625
|
+
[]
|
|
626
|
+
];
|
|
627
|
+
var UntagResourceRequest$ = [3, n0, _URR,
|
|
628
|
+
0,
|
|
629
|
+
[_RI, _TKL],
|
|
630
|
+
[0, 64 | 0], 2
|
|
631
|
+
];
|
|
632
|
+
var UntagResourceResponse$ = [3, n0, _URRn,
|
|
633
|
+
0,
|
|
634
|
+
[],
|
|
635
|
+
[]
|
|
636
|
+
];
|
|
637
|
+
var Backups = [1, n0, _Ba,
|
|
638
|
+
0, () => Backup$
|
|
639
|
+
];
|
|
640
|
+
var Clusters = [1, n0, _Clu,
|
|
641
|
+
0, () => Cluster$
|
|
642
|
+
];
|
|
643
|
+
var Hsms = [1, n0, _H,
|
|
644
|
+
0, () => Hsm$
|
|
645
|
+
];
|
|
646
|
+
var TagList = [1, n0, _TL,
|
|
647
|
+
0, () => Tag$
|
|
648
|
+
];
|
|
649
|
+
var CopyBackupToRegion$ = [9, n0, _CBTR,
|
|
650
|
+
0, () => CopyBackupToRegionRequest$, () => CopyBackupToRegionResponse$
|
|
651
|
+
];
|
|
652
|
+
var CreateCluster$ = [9, n0, _CCr,
|
|
653
|
+
0, () => CreateClusterRequest$, () => CreateClusterResponse$
|
|
654
|
+
];
|
|
655
|
+
var CreateHsm$ = [9, n0, _CH,
|
|
656
|
+
0, () => CreateHsmRequest$, () => CreateHsmResponse$
|
|
657
|
+
];
|
|
658
|
+
var DeleteBackup$ = [9, n0, _DBe,
|
|
659
|
+
0, () => DeleteBackupRequest$, () => DeleteBackupResponse$
|
|
660
|
+
];
|
|
661
|
+
var DeleteCluster$ = [9, n0, _DC,
|
|
662
|
+
0, () => DeleteClusterRequest$, () => DeleteClusterResponse$
|
|
663
|
+
];
|
|
664
|
+
var DeleteHsm$ = [9, n0, _DH,
|
|
665
|
+
0, () => DeleteHsmRequest$, () => DeleteHsmResponse$
|
|
666
|
+
];
|
|
667
|
+
var DeleteResourcePolicy$ = [9, n0, _DRP,
|
|
668
|
+
0, () => DeleteResourcePolicyRequest$, () => DeleteResourcePolicyResponse$
|
|
669
|
+
];
|
|
670
|
+
var DescribeBackups$ = [9, n0, _DBes,
|
|
671
|
+
0, () => DescribeBackupsRequest$, () => DescribeBackupsResponse$
|
|
672
|
+
];
|
|
673
|
+
var DescribeClusters$ = [9, n0, _DCe,
|
|
674
|
+
0, () => DescribeClustersRequest$, () => DescribeClustersResponse$
|
|
675
|
+
];
|
|
676
|
+
var GetResourcePolicy$ = [9, n0, _GRP,
|
|
677
|
+
0, () => GetResourcePolicyRequest$, () => GetResourcePolicyResponse$
|
|
678
|
+
];
|
|
679
|
+
var InitializeCluster$ = [9, n0, _IC,
|
|
680
|
+
0, () => InitializeClusterRequest$, () => InitializeClusterResponse$
|
|
681
|
+
];
|
|
682
|
+
var ListTags$ = [9, n0, _LT,
|
|
683
|
+
0, () => ListTagsRequest$, () => ListTagsResponse$
|
|
684
|
+
];
|
|
685
|
+
var ModifyBackupAttributes$ = [9, n0, _MBA,
|
|
686
|
+
0, () => ModifyBackupAttributesRequest$, () => ModifyBackupAttributesResponse$
|
|
687
|
+
];
|
|
688
|
+
var ModifyCluster$ = [9, n0, _MC,
|
|
689
|
+
0, () => ModifyClusterRequest$, () => ModifyClusterResponse$
|
|
690
|
+
];
|
|
691
|
+
var PutResourcePolicy$ = [9, n0, _PRP,
|
|
692
|
+
0, () => PutResourcePolicyRequest$, () => PutResourcePolicyResponse$
|
|
693
|
+
];
|
|
694
|
+
var RestoreBackup$ = [9, n0, _RB,
|
|
695
|
+
0, () => RestoreBackupRequest$, () => RestoreBackupResponse$
|
|
696
|
+
];
|
|
697
|
+
var TagResource$ = [9, n0, _TR,
|
|
698
|
+
0, () => TagResourceRequest$, () => TagResourceResponse$
|
|
699
|
+
];
|
|
700
|
+
var UntagResource$ = [9, n0, _UR,
|
|
701
|
+
0, () => UntagResourceRequest$, () => UntagResourceResponse$
|
|
702
|
+
];
|
|
703
|
+
|
|
704
|
+
const getRuntimeConfig$1 = (config) => {
|
|
705
|
+
return {
|
|
706
|
+
apiVersion: "2017-04-28",
|
|
707
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
708
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
709
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
710
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
711
|
+
extensions: config?.extensions ?? [],
|
|
712
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCloudHSMV2HttpAuthSchemeProvider,
|
|
713
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
714
|
+
{
|
|
715
|
+
schemeId: "aws.auth#sigv4",
|
|
716
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
717
|
+
signer: new AwsSdkSigV4Signer(),
|
|
718
|
+
},
|
|
719
|
+
],
|
|
720
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
721
|
+
protocol: config?.protocol ?? AwsJson1_1Protocol,
|
|
722
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
723
|
+
defaultNamespace: "com.amazonaws.cloudhsmv2",
|
|
724
|
+
errorTypeRegistries,
|
|
725
|
+
version: "2017-04-28",
|
|
726
|
+
serviceTarget: "BaldrApiService",
|
|
727
|
+
},
|
|
728
|
+
serviceId: config?.serviceId ?? "CloudHSM V2",
|
|
729
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
730
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
731
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
|
|
735
|
+
const getRuntimeConfig = (config) => {
|
|
736
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
737
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
738
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
739
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
740
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
741
|
+
const loaderConfig = {
|
|
742
|
+
profile: config?.profile,
|
|
743
|
+
logger: clientSharedValues.logger,
|
|
744
|
+
};
|
|
745
|
+
return {
|
|
746
|
+
...clientSharedValues,
|
|
747
|
+
...config,
|
|
748
|
+
runtime: "node",
|
|
749
|
+
defaultsMode,
|
|
750
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
751
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
752
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
753
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
754
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
755
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
756
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
757
|
+
retryMode: config?.retryMode ??
|
|
758
|
+
loadConfig({
|
|
759
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
760
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
761
|
+
}, config),
|
|
762
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
763
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
764
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
765
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
766
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
|
|
34
770
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
771
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
772
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -403,33 +1139,111 @@ const ClusterState = {
|
|
|
403
1139
|
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
|
|
404
1140
|
};
|
|
405
1141
|
|
|
1142
|
+
exports.Backup$ = Backup$;
|
|
406
1143
|
exports.BackupPolicy = BackupPolicy;
|
|
1144
|
+
exports.BackupRetentionPolicy$ = BackupRetentionPolicy$;
|
|
407
1145
|
exports.BackupRetentionType = BackupRetentionType;
|
|
408
1146
|
exports.BackupState = BackupState;
|
|
1147
|
+
exports.Certificates$ = Certificates$;
|
|
409
1148
|
exports.CloudHSMV2 = CloudHSMV2;
|
|
410
1149
|
exports.CloudHSMV2Client = CloudHSMV2Client;
|
|
1150
|
+
exports.CloudHSMV2ServiceException = CloudHSMV2ServiceException;
|
|
1151
|
+
exports.CloudHSMV2ServiceException$ = CloudHSMV2ServiceException$;
|
|
1152
|
+
exports.CloudHsmAccessDeniedException = CloudHsmAccessDeniedException;
|
|
1153
|
+
exports.CloudHsmAccessDeniedException$ = CloudHsmAccessDeniedException$;
|
|
1154
|
+
exports.CloudHsmInternalFailureException = CloudHsmInternalFailureException;
|
|
1155
|
+
exports.CloudHsmInternalFailureException$ = CloudHsmInternalFailureException$;
|
|
1156
|
+
exports.CloudHsmInvalidRequestException = CloudHsmInvalidRequestException;
|
|
1157
|
+
exports.CloudHsmInvalidRequestException$ = CloudHsmInvalidRequestException$;
|
|
1158
|
+
exports.CloudHsmResourceLimitExceededException = CloudHsmResourceLimitExceededException;
|
|
1159
|
+
exports.CloudHsmResourceLimitExceededException$ = CloudHsmResourceLimitExceededException$;
|
|
1160
|
+
exports.CloudHsmResourceNotFoundException = CloudHsmResourceNotFoundException;
|
|
1161
|
+
exports.CloudHsmResourceNotFoundException$ = CloudHsmResourceNotFoundException$;
|
|
1162
|
+
exports.CloudHsmServiceException = CloudHsmServiceException;
|
|
1163
|
+
exports.CloudHsmServiceException$ = CloudHsmServiceException$;
|
|
1164
|
+
exports.CloudHsmTagException = CloudHsmTagException;
|
|
1165
|
+
exports.CloudHsmTagException$ = CloudHsmTagException$;
|
|
1166
|
+
exports.Cluster$ = Cluster$;
|
|
411
1167
|
exports.ClusterMode = ClusterMode;
|
|
412
1168
|
exports.ClusterState = ClusterState;
|
|
1169
|
+
exports.CopyBackupToRegion$ = CopyBackupToRegion$;
|
|
413
1170
|
exports.CopyBackupToRegionCommand = CopyBackupToRegionCommand;
|
|
1171
|
+
exports.CopyBackupToRegionRequest$ = CopyBackupToRegionRequest$;
|
|
1172
|
+
exports.CopyBackupToRegionResponse$ = CopyBackupToRegionResponse$;
|
|
1173
|
+
exports.CreateCluster$ = CreateCluster$;
|
|
414
1174
|
exports.CreateClusterCommand = CreateClusterCommand;
|
|
1175
|
+
exports.CreateClusterRequest$ = CreateClusterRequest$;
|
|
1176
|
+
exports.CreateClusterResponse$ = CreateClusterResponse$;
|
|
1177
|
+
exports.CreateHsm$ = CreateHsm$;
|
|
415
1178
|
exports.CreateHsmCommand = CreateHsmCommand;
|
|
1179
|
+
exports.CreateHsmRequest$ = CreateHsmRequest$;
|
|
1180
|
+
exports.CreateHsmResponse$ = CreateHsmResponse$;
|
|
1181
|
+
exports.DeleteBackup$ = DeleteBackup$;
|
|
416
1182
|
exports.DeleteBackupCommand = DeleteBackupCommand;
|
|
1183
|
+
exports.DeleteBackupRequest$ = DeleteBackupRequest$;
|
|
1184
|
+
exports.DeleteBackupResponse$ = DeleteBackupResponse$;
|
|
1185
|
+
exports.DeleteCluster$ = DeleteCluster$;
|
|
417
1186
|
exports.DeleteClusterCommand = DeleteClusterCommand;
|
|
1187
|
+
exports.DeleteClusterRequest$ = DeleteClusterRequest$;
|
|
1188
|
+
exports.DeleteClusterResponse$ = DeleteClusterResponse$;
|
|
1189
|
+
exports.DeleteHsm$ = DeleteHsm$;
|
|
418
1190
|
exports.DeleteHsmCommand = DeleteHsmCommand;
|
|
1191
|
+
exports.DeleteHsmRequest$ = DeleteHsmRequest$;
|
|
1192
|
+
exports.DeleteHsmResponse$ = DeleteHsmResponse$;
|
|
1193
|
+
exports.DeleteResourcePolicy$ = DeleteResourcePolicy$;
|
|
419
1194
|
exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
|
|
1195
|
+
exports.DeleteResourcePolicyRequest$ = DeleteResourcePolicyRequest$;
|
|
1196
|
+
exports.DeleteResourcePolicyResponse$ = DeleteResourcePolicyResponse$;
|
|
1197
|
+
exports.DescribeBackups$ = DescribeBackups$;
|
|
420
1198
|
exports.DescribeBackupsCommand = DescribeBackupsCommand;
|
|
1199
|
+
exports.DescribeBackupsRequest$ = DescribeBackupsRequest$;
|
|
1200
|
+
exports.DescribeBackupsResponse$ = DescribeBackupsResponse$;
|
|
1201
|
+
exports.DescribeClusters$ = DescribeClusters$;
|
|
421
1202
|
exports.DescribeClustersCommand = DescribeClustersCommand;
|
|
1203
|
+
exports.DescribeClustersRequest$ = DescribeClustersRequest$;
|
|
1204
|
+
exports.DescribeClustersResponse$ = DescribeClustersResponse$;
|
|
1205
|
+
exports.DestinationBackup$ = DestinationBackup$;
|
|
1206
|
+
exports.GetResourcePolicy$ = GetResourcePolicy$;
|
|
422
1207
|
exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
|
|
1208
|
+
exports.GetResourcePolicyRequest$ = GetResourcePolicyRequest$;
|
|
1209
|
+
exports.GetResourcePolicyResponse$ = GetResourcePolicyResponse$;
|
|
1210
|
+
exports.Hsm$ = Hsm$;
|
|
423
1211
|
exports.HsmState = HsmState;
|
|
1212
|
+
exports.InitializeCluster$ = InitializeCluster$;
|
|
424
1213
|
exports.InitializeClusterCommand = InitializeClusterCommand;
|
|
1214
|
+
exports.InitializeClusterRequest$ = InitializeClusterRequest$;
|
|
1215
|
+
exports.InitializeClusterResponse$ = InitializeClusterResponse$;
|
|
1216
|
+
exports.ListTags$ = ListTags$;
|
|
425
1217
|
exports.ListTagsCommand = ListTagsCommand;
|
|
1218
|
+
exports.ListTagsRequest$ = ListTagsRequest$;
|
|
1219
|
+
exports.ListTagsResponse$ = ListTagsResponse$;
|
|
1220
|
+
exports.ModifyBackupAttributes$ = ModifyBackupAttributes$;
|
|
426
1221
|
exports.ModifyBackupAttributesCommand = ModifyBackupAttributesCommand;
|
|
1222
|
+
exports.ModifyBackupAttributesRequest$ = ModifyBackupAttributesRequest$;
|
|
1223
|
+
exports.ModifyBackupAttributesResponse$ = ModifyBackupAttributesResponse$;
|
|
1224
|
+
exports.ModifyCluster$ = ModifyCluster$;
|
|
427
1225
|
exports.ModifyClusterCommand = ModifyClusterCommand;
|
|
1226
|
+
exports.ModifyClusterRequest$ = ModifyClusterRequest$;
|
|
1227
|
+
exports.ModifyClusterResponse$ = ModifyClusterResponse$;
|
|
428
1228
|
exports.NetworkType = NetworkType;
|
|
1229
|
+
exports.PutResourcePolicy$ = PutResourcePolicy$;
|
|
429
1230
|
exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
|
|
1231
|
+
exports.PutResourcePolicyRequest$ = PutResourcePolicyRequest$;
|
|
1232
|
+
exports.PutResourcePolicyResponse$ = PutResourcePolicyResponse$;
|
|
1233
|
+
exports.RestoreBackup$ = RestoreBackup$;
|
|
430
1234
|
exports.RestoreBackupCommand = RestoreBackupCommand;
|
|
1235
|
+
exports.RestoreBackupRequest$ = RestoreBackupRequest$;
|
|
1236
|
+
exports.RestoreBackupResponse$ = RestoreBackupResponse$;
|
|
1237
|
+
exports.Tag$ = Tag$;
|
|
1238
|
+
exports.TagResource$ = TagResource$;
|
|
431
1239
|
exports.TagResourceCommand = TagResourceCommand;
|
|
1240
|
+
exports.TagResourceRequest$ = TagResourceRequest$;
|
|
1241
|
+
exports.TagResourceResponse$ = TagResourceResponse$;
|
|
1242
|
+
exports.UntagResource$ = UntagResource$;
|
|
432
1243
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1244
|
+
exports.UntagResourceRequest$ = UntagResourceRequest$;
|
|
1245
|
+
exports.UntagResourceResponse$ = UntagResourceResponse$;
|
|
1246
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
433
1247
|
exports.paginateDescribeBackups = paginateDescribeBackups;
|
|
434
1248
|
exports.paginateDescribeClusters = paginateDescribeClusters;
|
|
435
1249
|
exports.paginateListTags = paginateListTags;
|