@aws-sdk/client-cloudhsm 3.987.0 → 3.989.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 +39 -552
- package/dist-cjs/models/CloudHSMServiceException.js +12 -0
- package/dist-cjs/models/errors.js +49 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +432 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +28 -22
- package/dist-types/schemas/schemas_0.d.ts +11 -4
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -4
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloudHSMServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class CloudHSMServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, CloudHSMServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.CloudHSMServiceException = CloudHSMServiceException;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidRequestException = exports.CloudHsmServiceException = exports.CloudHsmInternalException = void 0;
|
|
4
|
+
const CloudHSMServiceException_1 = require("./CloudHSMServiceException");
|
|
5
|
+
class CloudHsmInternalException extends CloudHSMServiceException_1.CloudHSMServiceException {
|
|
6
|
+
name = "CloudHsmInternalException";
|
|
7
|
+
$fault = "server";
|
|
8
|
+
retryable;
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "CloudHsmInternalException",
|
|
12
|
+
$fault: "server",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
Object.setPrototypeOf(this, CloudHsmInternalException.prototype);
|
|
16
|
+
this.retryable = opts.retryable;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.CloudHsmInternalException = CloudHsmInternalException;
|
|
20
|
+
class CloudHsmServiceException extends CloudHSMServiceException_1.CloudHSMServiceException {
|
|
21
|
+
name = "CloudHsmServiceException";
|
|
22
|
+
$fault = "client";
|
|
23
|
+
retryable;
|
|
24
|
+
constructor(opts) {
|
|
25
|
+
super({
|
|
26
|
+
name: "CloudHsmServiceException",
|
|
27
|
+
$fault: "client",
|
|
28
|
+
...opts,
|
|
29
|
+
});
|
|
30
|
+
Object.setPrototypeOf(this, CloudHsmServiceException.prototype);
|
|
31
|
+
this.retryable = opts.retryable;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.CloudHsmServiceException = CloudHsmServiceException;
|
|
35
|
+
class InvalidRequestException extends CloudHSMServiceException_1.CloudHSMServiceException {
|
|
36
|
+
name = "InvalidRequestException";
|
|
37
|
+
$fault = "client";
|
|
38
|
+
retryable;
|
|
39
|
+
constructor(opts) {
|
|
40
|
+
super({
|
|
41
|
+
name: "InvalidRequestException",
|
|
42
|
+
$fault: "client",
|
|
43
|
+
...opts,
|
|
44
|
+
});
|
|
45
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
46
|
+
this.retryable = opts.retryable;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2014-05-30",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.cloudhsm",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2014-05-30",
|
|
33
35
|
serviceTarget: "CloudHsmFrontendService",
|
|
34
36
|
},
|
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateLunaClient$ = exports.CreateHsm$ = exports.CreateHapg$ = exports.AddTagsToResource$ = exports.Tag$ = exports.RemoveTagsFromResourceResponse$ = exports.RemoveTagsFromResourceRequest$ = exports.ModifyLunaClientResponse$ = exports.ModifyLunaClientRequest$ = exports.ModifyHsmResponse$ = exports.ModifyHsmRequest$ = exports.ModifyHapgResponse$ = exports.ModifyHapgRequest$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceRequest$ = exports.ListLunaClientsResponse$ = exports.ListLunaClientsRequest$ = exports.ListHsmsResponse$ = exports.ListHsmsRequest$ = exports.ListHapgsResponse$ = exports.ListHapgsRequest$ = exports.ListAvailableZonesResponse$ = exports.ListAvailableZonesRequest$ = exports.GetConfigResponse$ = exports.GetConfigRequest$ = exports.DescribeLunaClientResponse$ = exports.DescribeLunaClientRequest$ = exports.DescribeHsmResponse$ = exports.DescribeHsmRequest$ = exports.DescribeHapgResponse$ = exports.DescribeHapgRequest$ = exports.DeleteLunaClientResponse$ = exports.DeleteLunaClientRequest$ = exports.DeleteHsmResponse$ = exports.DeleteHsmRequest$ = exports.DeleteHapgResponse$ = exports.DeleteHapgRequest$ = exports.CreateLunaClientResponse$ = exports.CreateLunaClientRequest$ = exports.CreateHsmResponse$ = exports.CreateHsmRequest$ = exports.CreateHapgResponse$ = exports.CreateHapgRequest$ = exports.AddTagsToResourceResponse$ = exports.AddTagsToResourceRequest$ = exports.errorTypeRegistries = exports.InvalidRequestException$ = exports.CloudHsmServiceException$ = exports.CloudHsmInternalException$ = exports.CloudHSMServiceException$ = void 0;
|
|
4
|
+
exports.RemoveTagsFromResource$ = exports.ModifyLunaClient$ = exports.ModifyHsm$ = exports.ModifyHapg$ = exports.ListTagsForResource$ = exports.ListLunaClients$ = exports.ListHsms$ = exports.ListHapgs$ = exports.ListAvailableZones$ = exports.GetConfig$ = exports.DescribeLunaClient$ = exports.DescribeHsm$ = exports.DescribeHapg$ = exports.DeleteLunaClient$ = exports.DeleteHsm$ = exports.DeleteHapg$ = void 0;
|
|
5
|
+
const _ATTR = "AddTagsToResource";
|
|
6
|
+
const _ATTRR = "AddTagsToResourceRequest";
|
|
7
|
+
const _ATTRRd = "AddTagsToResourceResponse";
|
|
8
|
+
const _AZ = "AvailabilityZone";
|
|
9
|
+
const _AZL = "AZList";
|
|
10
|
+
const _C = "Certificate";
|
|
11
|
+
const _CA = "ClientArn";
|
|
12
|
+
const _CC = "ConfigCred";
|
|
13
|
+
const _CF = "CertificateFingerprint";
|
|
14
|
+
const _CFo = "ConfigFile";
|
|
15
|
+
const _CH = "CreateHapg";
|
|
16
|
+
const _CHIE = "CloudHsmInternalException";
|
|
17
|
+
const _CHR = "CreateHapgRequest";
|
|
18
|
+
const _CHRr = "CreateHapgResponse";
|
|
19
|
+
const _CHRre = "CreateHsmRequest";
|
|
20
|
+
const _CHRrea = "CreateHsmResponse";
|
|
21
|
+
const _CHSE = "CloudHsmServiceException";
|
|
22
|
+
const _CHr = "CreateHsm";
|
|
23
|
+
const _CL = "ClientList";
|
|
24
|
+
const _CLC = "CreateLunaClient";
|
|
25
|
+
const _CLCR = "CreateLunaClientRequest";
|
|
26
|
+
const _CLCRr = "CreateLunaClientResponse";
|
|
27
|
+
const _CT = "ClientToken";
|
|
28
|
+
const _CTo = "ConfigType";
|
|
29
|
+
const _CV = "ClientVersion";
|
|
30
|
+
const _DH = "DeleteHapg";
|
|
31
|
+
const _DHR = "DeleteHapgRequest";
|
|
32
|
+
const _DHRe = "DeleteHapgResponse";
|
|
33
|
+
const _DHRel = "DeleteHsmRequest";
|
|
34
|
+
const _DHRele = "DeleteHsmResponse";
|
|
35
|
+
const _DHRes = "DescribeHapgRequest";
|
|
36
|
+
const _DHResc = "DescribeHapgResponse";
|
|
37
|
+
const _DHRescr = "DescribeHsmRequest";
|
|
38
|
+
const _DHRescri = "DescribeHsmResponse";
|
|
39
|
+
const _DHe = "DeleteHsm";
|
|
40
|
+
const _DHes = "DescribeHapg";
|
|
41
|
+
const _DHesc = "DescribeHsm";
|
|
42
|
+
const _DLC = "DeleteLunaClient";
|
|
43
|
+
const _DLCR = "DeleteLunaClientRequest";
|
|
44
|
+
const _DLCRe = "DeleteLunaClientResponse";
|
|
45
|
+
const _DLCRes = "DescribeLunaClientRequest";
|
|
46
|
+
const _DLCResc = "DescribeLunaClientResponse";
|
|
47
|
+
const _DLCe = "DescribeLunaClient";
|
|
48
|
+
const _EI = "EniIp";
|
|
49
|
+
const _EIn = "EniId";
|
|
50
|
+
const _EIx = "ExternalId";
|
|
51
|
+
const _GC = "GetConfig";
|
|
52
|
+
const _GCR = "GetConfigRequest";
|
|
53
|
+
const _GCRe = "GetConfigResponse";
|
|
54
|
+
const _HA = "HapgArn";
|
|
55
|
+
const _HAs = "HsmArn";
|
|
56
|
+
const _HL = "HapgList";
|
|
57
|
+
const _HLAF = "HsmsLastActionFailed";
|
|
58
|
+
const _HLs = "HsmList";
|
|
59
|
+
const _HPD = "HsmsPendingDeletion";
|
|
60
|
+
const _HPR = "HsmsPendingRegistration";
|
|
61
|
+
const _HS = "HapgSerial";
|
|
62
|
+
const _HSN = "HsmSerialNumber";
|
|
63
|
+
const _HT = "HsmType";
|
|
64
|
+
const _IRA = "IamRoleArn";
|
|
65
|
+
const _IRE = "InvalidRequestException";
|
|
66
|
+
const _K = "Key";
|
|
67
|
+
const _L = "Label";
|
|
68
|
+
const _LAZ = "ListAvailableZones";
|
|
69
|
+
const _LAZR = "ListAvailableZonesRequest";
|
|
70
|
+
const _LAZRi = "ListAvailableZonesResponse";
|
|
71
|
+
const _LH = "ListHapgs";
|
|
72
|
+
const _LHR = "ListHapgsRequest";
|
|
73
|
+
const _LHRi = "ListHapgsResponse";
|
|
74
|
+
const _LHRis = "ListHsmsRequest";
|
|
75
|
+
const _LHRist = "ListHsmsResponse";
|
|
76
|
+
const _LHi = "ListHsms";
|
|
77
|
+
const _LLC = "ListLunaClients";
|
|
78
|
+
const _LLCR = "ListLunaClientsRequest";
|
|
79
|
+
const _LLCRi = "ListLunaClientsResponse";
|
|
80
|
+
const _LMT = "LastModifiedTimestamp";
|
|
81
|
+
const _LTFR = "ListTagsForResource";
|
|
82
|
+
const _LTFRR = "ListTagsForResourceRequest";
|
|
83
|
+
const _LTFRRi = "ListTagsForResourceResponse";
|
|
84
|
+
const _MH = "ModifyHapg";
|
|
85
|
+
const _MHR = "ModifyHapgRequest";
|
|
86
|
+
const _MHRo = "ModifyHapgResponse";
|
|
87
|
+
const _MHRod = "ModifyHsmRequest";
|
|
88
|
+
const _MHRodi = "ModifyHsmResponse";
|
|
89
|
+
const _MHo = "ModifyHsm";
|
|
90
|
+
const _MLC = "ModifyLunaClient";
|
|
91
|
+
const _MLCR = "ModifyLunaClientRequest";
|
|
92
|
+
const _MLCRo = "ModifyLunaClientResponse";
|
|
93
|
+
const _NT = "NextToken";
|
|
94
|
+
const _P = "Partitions";
|
|
95
|
+
const _PSL = "PartitionSerialList";
|
|
96
|
+
const _RA = "ResourceArn";
|
|
97
|
+
const _RTFR = "RemoveTagsFromResource";
|
|
98
|
+
const _RTFRR = "RemoveTagsFromResourceRequest";
|
|
99
|
+
const _RTFRRe = "RemoveTagsFromResourceResponse";
|
|
100
|
+
const _S = "Status";
|
|
101
|
+
const _SCLU = "ServerCertLastUpdated";
|
|
102
|
+
const _SCU = "ServerCertUri";
|
|
103
|
+
const _SD = "StatusDetails";
|
|
104
|
+
const _SED = "SubscriptionEndDate";
|
|
105
|
+
const _SI = "SubnetId";
|
|
106
|
+
const _SIy = "SyslogIp";
|
|
107
|
+
const _SK = "SshKey";
|
|
108
|
+
const _SKLU = "SshKeyLastUpdated";
|
|
109
|
+
const _SN = "SerialNumber";
|
|
110
|
+
const _SPK = "SshPublicKey";
|
|
111
|
+
const _SSD = "SubscriptionStartDate";
|
|
112
|
+
const _ST = "SubscriptionType";
|
|
113
|
+
const _SV = "SoftwareVersion";
|
|
114
|
+
const _St = "State";
|
|
115
|
+
const _T = "Tag";
|
|
116
|
+
const _TKL = "TagKeyList";
|
|
117
|
+
const _TL = "TagList";
|
|
118
|
+
const _V = "Value";
|
|
119
|
+
const _VI = "VpcId";
|
|
120
|
+
const _VN = "VendorName";
|
|
121
|
+
const _c = "client";
|
|
122
|
+
const _e = "error";
|
|
123
|
+
const _m = "message";
|
|
124
|
+
const _r = "retryable";
|
|
125
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloudhsm";
|
|
126
|
+
const _se = "server";
|
|
127
|
+
const _xN = "xmlName";
|
|
128
|
+
const n0 = "com.amazonaws.cloudhsm";
|
|
129
|
+
const schema_1 = require("@smithy/core/schema");
|
|
130
|
+
const CloudHSMServiceException_1 = require("../models/CloudHSMServiceException");
|
|
131
|
+
const errors_1 = require("../models/errors");
|
|
132
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
133
|
+
exports.CloudHSMServiceException$ = [-3, _s, "CloudHSMServiceException", 0, [], []];
|
|
134
|
+
_s_registry.registerError(exports.CloudHSMServiceException$, CloudHSMServiceException_1.CloudHSMServiceException);
|
|
135
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
136
|
+
exports.CloudHsmInternalException$ = [-3, n0, _CHIE,
|
|
137
|
+
{ [_e]: _se },
|
|
138
|
+
[_m, _r],
|
|
139
|
+
[0, 2]
|
|
140
|
+
];
|
|
141
|
+
n0_registry.registerError(exports.CloudHsmInternalException$, errors_1.CloudHsmInternalException);
|
|
142
|
+
exports.CloudHsmServiceException$ = [-3, n0, _CHSE,
|
|
143
|
+
{ [_e]: _c },
|
|
144
|
+
[_m, _r],
|
|
145
|
+
[0, 2]
|
|
146
|
+
];
|
|
147
|
+
n0_registry.registerError(exports.CloudHsmServiceException$, errors_1.CloudHsmServiceException);
|
|
148
|
+
exports.InvalidRequestException$ = [-3, n0, _IRE,
|
|
149
|
+
{ [_e]: _c },
|
|
150
|
+
[_m, _r],
|
|
151
|
+
[0, 2]
|
|
152
|
+
];
|
|
153
|
+
n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
|
|
154
|
+
exports.errorTypeRegistries = [
|
|
155
|
+
_s_registry,
|
|
156
|
+
n0_registry,
|
|
157
|
+
];
|
|
158
|
+
exports.AddTagsToResourceRequest$ = [3, n0, _ATTRR,
|
|
159
|
+
0,
|
|
160
|
+
[_RA, _TL],
|
|
161
|
+
[0, () => TagList], 2
|
|
162
|
+
];
|
|
163
|
+
exports.AddTagsToResourceResponse$ = [3, n0, _ATTRRd,
|
|
164
|
+
0,
|
|
165
|
+
[_S],
|
|
166
|
+
[0], 1
|
|
167
|
+
];
|
|
168
|
+
exports.CreateHapgRequest$ = [3, n0, _CHR,
|
|
169
|
+
0,
|
|
170
|
+
[_L],
|
|
171
|
+
[0], 1
|
|
172
|
+
];
|
|
173
|
+
exports.CreateHapgResponse$ = [3, n0, _CHRr,
|
|
174
|
+
0,
|
|
175
|
+
[_HA],
|
|
176
|
+
[0]
|
|
177
|
+
];
|
|
178
|
+
exports.CreateHsmRequest$ = [3, n0, _CHRre,
|
|
179
|
+
{ [_xN]: _CHRre },
|
|
180
|
+
[_SI, _SK, _IRA, _ST, _EI, _EIx, _CT, _SIy],
|
|
181
|
+
[[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
|
|
182
|
+
];
|
|
183
|
+
exports.CreateHsmResponse$ = [3, n0, _CHRrea,
|
|
184
|
+
0,
|
|
185
|
+
[_HAs],
|
|
186
|
+
[0]
|
|
187
|
+
];
|
|
188
|
+
exports.CreateLunaClientRequest$ = [3, n0, _CLCR,
|
|
189
|
+
0,
|
|
190
|
+
[_C, _L],
|
|
191
|
+
[0, 0], 1
|
|
192
|
+
];
|
|
193
|
+
exports.CreateLunaClientResponse$ = [3, n0, _CLCRr,
|
|
194
|
+
0,
|
|
195
|
+
[_CA],
|
|
196
|
+
[0]
|
|
197
|
+
];
|
|
198
|
+
exports.DeleteHapgRequest$ = [3, n0, _DHR,
|
|
199
|
+
0,
|
|
200
|
+
[_HA],
|
|
201
|
+
[0], 1
|
|
202
|
+
];
|
|
203
|
+
exports.DeleteHapgResponse$ = [3, n0, _DHRe,
|
|
204
|
+
0,
|
|
205
|
+
[_S],
|
|
206
|
+
[0], 1
|
|
207
|
+
];
|
|
208
|
+
exports.DeleteHsmRequest$ = [3, n0, _DHRel,
|
|
209
|
+
{ [_xN]: _DHRel },
|
|
210
|
+
[_HAs],
|
|
211
|
+
[[0, { [_xN]: _HAs }]], 1
|
|
212
|
+
];
|
|
213
|
+
exports.DeleteHsmResponse$ = [3, n0, _DHRele,
|
|
214
|
+
0,
|
|
215
|
+
[_S],
|
|
216
|
+
[0], 1
|
|
217
|
+
];
|
|
218
|
+
exports.DeleteLunaClientRequest$ = [3, n0, _DLCR,
|
|
219
|
+
0,
|
|
220
|
+
[_CA],
|
|
221
|
+
[0], 1
|
|
222
|
+
];
|
|
223
|
+
exports.DeleteLunaClientResponse$ = [3, n0, _DLCRe,
|
|
224
|
+
0,
|
|
225
|
+
[_S],
|
|
226
|
+
[0], 1
|
|
227
|
+
];
|
|
228
|
+
exports.DescribeHapgRequest$ = [3, n0, _DHRes,
|
|
229
|
+
0,
|
|
230
|
+
[_HA],
|
|
231
|
+
[0], 1
|
|
232
|
+
];
|
|
233
|
+
exports.DescribeHapgResponse$ = [3, n0, _DHResc,
|
|
234
|
+
0,
|
|
235
|
+
[_HA, _HS, _HLAF, _HPD, _HPR, _L, _LMT, _PSL, _St],
|
|
236
|
+
[0, 0, 64 | 0, 64 | 0, 64 | 0, 0, 0, 64 | 0, 0]
|
|
237
|
+
];
|
|
238
|
+
exports.DescribeHsmRequest$ = [3, n0, _DHRescr,
|
|
239
|
+
0,
|
|
240
|
+
[_HAs, _HSN],
|
|
241
|
+
[0, 0]
|
|
242
|
+
];
|
|
243
|
+
exports.DescribeHsmResponse$ = [3, n0, _DHRescri,
|
|
244
|
+
0,
|
|
245
|
+
[_HAs, _S, _SD, _AZ, _EIn, _EI, _ST, _SSD, _SED, _VI, _SI, _IRA, _SN, _VN, _HT, _SV, _SPK, _SKLU, _SCU, _SCLU, _P],
|
|
246
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64 | 0]
|
|
247
|
+
];
|
|
248
|
+
exports.DescribeLunaClientRequest$ = [3, n0, _DLCRes,
|
|
249
|
+
0,
|
|
250
|
+
[_CA, _CF],
|
|
251
|
+
[0, 0]
|
|
252
|
+
];
|
|
253
|
+
exports.DescribeLunaClientResponse$ = [3, n0, _DLCResc,
|
|
254
|
+
0,
|
|
255
|
+
[_CA, _C, _CF, _LMT, _L],
|
|
256
|
+
[0, 0, 0, 0, 0]
|
|
257
|
+
];
|
|
258
|
+
exports.GetConfigRequest$ = [3, n0, _GCR,
|
|
259
|
+
0,
|
|
260
|
+
[_CA, _CV, _HL],
|
|
261
|
+
[0, 0, 64 | 0], 3
|
|
262
|
+
];
|
|
263
|
+
exports.GetConfigResponse$ = [3, n0, _GCRe,
|
|
264
|
+
0,
|
|
265
|
+
[_CTo, _CFo, _CC],
|
|
266
|
+
[0, 0, 0]
|
|
267
|
+
];
|
|
268
|
+
exports.ListAvailableZonesRequest$ = [3, n0, _LAZR,
|
|
269
|
+
0,
|
|
270
|
+
[],
|
|
271
|
+
[]
|
|
272
|
+
];
|
|
273
|
+
exports.ListAvailableZonesResponse$ = [3, n0, _LAZRi,
|
|
274
|
+
0,
|
|
275
|
+
[_AZL],
|
|
276
|
+
[64 | 0]
|
|
277
|
+
];
|
|
278
|
+
exports.ListHapgsRequest$ = [3, n0, _LHR,
|
|
279
|
+
0,
|
|
280
|
+
[_NT],
|
|
281
|
+
[0]
|
|
282
|
+
];
|
|
283
|
+
exports.ListHapgsResponse$ = [3, n0, _LHRi,
|
|
284
|
+
0,
|
|
285
|
+
[_HL, _NT],
|
|
286
|
+
[64 | 0, 0], 1
|
|
287
|
+
];
|
|
288
|
+
exports.ListHsmsRequest$ = [3, n0, _LHRis,
|
|
289
|
+
0,
|
|
290
|
+
[_NT],
|
|
291
|
+
[0]
|
|
292
|
+
];
|
|
293
|
+
exports.ListHsmsResponse$ = [3, n0, _LHRist,
|
|
294
|
+
0,
|
|
295
|
+
[_HLs, _NT],
|
|
296
|
+
[64 | 0, 0]
|
|
297
|
+
];
|
|
298
|
+
exports.ListLunaClientsRequest$ = [3, n0, _LLCR,
|
|
299
|
+
0,
|
|
300
|
+
[_NT],
|
|
301
|
+
[0]
|
|
302
|
+
];
|
|
303
|
+
exports.ListLunaClientsResponse$ = [3, n0, _LLCRi,
|
|
304
|
+
0,
|
|
305
|
+
[_CL, _NT],
|
|
306
|
+
[64 | 0, 0], 1
|
|
307
|
+
];
|
|
308
|
+
exports.ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
309
|
+
0,
|
|
310
|
+
[_RA],
|
|
311
|
+
[0], 1
|
|
312
|
+
];
|
|
313
|
+
exports.ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
314
|
+
0,
|
|
315
|
+
[_TL],
|
|
316
|
+
[() => TagList], 1
|
|
317
|
+
];
|
|
318
|
+
exports.ModifyHapgRequest$ = [3, n0, _MHR,
|
|
319
|
+
0,
|
|
320
|
+
[_HA, _L, _PSL],
|
|
321
|
+
[0, 0, 64 | 0], 1
|
|
322
|
+
];
|
|
323
|
+
exports.ModifyHapgResponse$ = [3, n0, _MHRo,
|
|
324
|
+
0,
|
|
325
|
+
[_HA],
|
|
326
|
+
[0]
|
|
327
|
+
];
|
|
328
|
+
exports.ModifyHsmRequest$ = [3, n0, _MHRod,
|
|
329
|
+
{ [_xN]: _MHRod },
|
|
330
|
+
[_HAs, _SI, _EI, _IRA, _EIx, _SIy],
|
|
331
|
+
[[0, { [_xN]: _HAs }], [0, { [_xN]: _SI }], [0, { [_xN]: _EI }], [0, { [_xN]: _IRA }], [0, { [_xN]: _EIx }], [0, { [_xN]: _SIy }]], 1
|
|
332
|
+
];
|
|
333
|
+
exports.ModifyHsmResponse$ = [3, n0, _MHRodi,
|
|
334
|
+
0,
|
|
335
|
+
[_HAs],
|
|
336
|
+
[0]
|
|
337
|
+
];
|
|
338
|
+
exports.ModifyLunaClientRequest$ = [3, n0, _MLCR,
|
|
339
|
+
0,
|
|
340
|
+
[_CA, _C],
|
|
341
|
+
[0, 0], 2
|
|
342
|
+
];
|
|
343
|
+
exports.ModifyLunaClientResponse$ = [3, n0, _MLCRo,
|
|
344
|
+
0,
|
|
345
|
+
[_CA],
|
|
346
|
+
[0]
|
|
347
|
+
];
|
|
348
|
+
exports.RemoveTagsFromResourceRequest$ = [3, n0, _RTFRR,
|
|
349
|
+
0,
|
|
350
|
+
[_RA, _TKL],
|
|
351
|
+
[0, 64 | 0], 2
|
|
352
|
+
];
|
|
353
|
+
exports.RemoveTagsFromResourceResponse$ = [3, n0, _RTFRRe,
|
|
354
|
+
0,
|
|
355
|
+
[_S],
|
|
356
|
+
[0], 1
|
|
357
|
+
];
|
|
358
|
+
exports.Tag$ = [3, n0, _T,
|
|
359
|
+
0,
|
|
360
|
+
[_K, _V],
|
|
361
|
+
[0, 0], 2
|
|
362
|
+
];
|
|
363
|
+
var AZList = 64 | 0;
|
|
364
|
+
var ClientList = 64 | 0;
|
|
365
|
+
var HapgList = 64 | 0;
|
|
366
|
+
var HsmList = 64 | 0;
|
|
367
|
+
var PartitionList = 64 | 0;
|
|
368
|
+
var PartitionSerialList = 64 | 0;
|
|
369
|
+
var TagKeyList = 64 | 0;
|
|
370
|
+
var TagList = [1, n0, _TL,
|
|
371
|
+
0, () => exports.Tag$
|
|
372
|
+
];
|
|
373
|
+
exports.AddTagsToResource$ = [9, n0, _ATTR,
|
|
374
|
+
0, () => exports.AddTagsToResourceRequest$, () => exports.AddTagsToResourceResponse$
|
|
375
|
+
];
|
|
376
|
+
exports.CreateHapg$ = [9, n0, _CH,
|
|
377
|
+
0, () => exports.CreateHapgRequest$, () => exports.CreateHapgResponse$
|
|
378
|
+
];
|
|
379
|
+
exports.CreateHsm$ = [9, n0, _CHr,
|
|
380
|
+
0, () => exports.CreateHsmRequest$, () => exports.CreateHsmResponse$
|
|
381
|
+
];
|
|
382
|
+
exports.CreateLunaClient$ = [9, n0, _CLC,
|
|
383
|
+
0, () => exports.CreateLunaClientRequest$, () => exports.CreateLunaClientResponse$
|
|
384
|
+
];
|
|
385
|
+
exports.DeleteHapg$ = [9, n0, _DH,
|
|
386
|
+
0, () => exports.DeleteHapgRequest$, () => exports.DeleteHapgResponse$
|
|
387
|
+
];
|
|
388
|
+
exports.DeleteHsm$ = [9, n0, _DHe,
|
|
389
|
+
0, () => exports.DeleteHsmRequest$, () => exports.DeleteHsmResponse$
|
|
390
|
+
];
|
|
391
|
+
exports.DeleteLunaClient$ = [9, n0, _DLC,
|
|
392
|
+
0, () => exports.DeleteLunaClientRequest$, () => exports.DeleteLunaClientResponse$
|
|
393
|
+
];
|
|
394
|
+
exports.DescribeHapg$ = [9, n0, _DHes,
|
|
395
|
+
0, () => exports.DescribeHapgRequest$, () => exports.DescribeHapgResponse$
|
|
396
|
+
];
|
|
397
|
+
exports.DescribeHsm$ = [9, n0, _DHesc,
|
|
398
|
+
0, () => exports.DescribeHsmRequest$, () => exports.DescribeHsmResponse$
|
|
399
|
+
];
|
|
400
|
+
exports.DescribeLunaClient$ = [9, n0, _DLCe,
|
|
401
|
+
0, () => exports.DescribeLunaClientRequest$, () => exports.DescribeLunaClientResponse$
|
|
402
|
+
];
|
|
403
|
+
exports.GetConfig$ = [9, n0, _GC,
|
|
404
|
+
0, () => exports.GetConfigRequest$, () => exports.GetConfigResponse$
|
|
405
|
+
];
|
|
406
|
+
exports.ListAvailableZones$ = [9, n0, _LAZ,
|
|
407
|
+
0, () => exports.ListAvailableZonesRequest$, () => exports.ListAvailableZonesResponse$
|
|
408
|
+
];
|
|
409
|
+
exports.ListHapgs$ = [9, n0, _LH,
|
|
410
|
+
0, () => exports.ListHapgsRequest$, () => exports.ListHapgsResponse$
|
|
411
|
+
];
|
|
412
|
+
exports.ListHsms$ = [9, n0, _LHi,
|
|
413
|
+
0, () => exports.ListHsmsRequest$, () => exports.ListHsmsResponse$
|
|
414
|
+
];
|
|
415
|
+
exports.ListLunaClients$ = [9, n0, _LLC,
|
|
416
|
+
0, () => exports.ListLunaClientsRequest$, () => exports.ListLunaClientsResponse$
|
|
417
|
+
];
|
|
418
|
+
exports.ListTagsForResource$ = [9, n0, _LTFR,
|
|
419
|
+
0, () => exports.ListTagsForResourceRequest$, () => exports.ListTagsForResourceResponse$
|
|
420
|
+
];
|
|
421
|
+
exports.ModifyHapg$ = [9, n0, _MH,
|
|
422
|
+
0, () => exports.ModifyHapgRequest$, () => exports.ModifyHapgResponse$
|
|
423
|
+
];
|
|
424
|
+
exports.ModifyHsm$ = [9, n0, _MHo,
|
|
425
|
+
0, () => exports.ModifyHsmRequest$, () => exports.ModifyHsmResponse$
|
|
426
|
+
];
|
|
427
|
+
exports.ModifyLunaClient$ = [9, n0, _MLC,
|
|
428
|
+
0, () => exports.ModifyLunaClientRequest$, () => exports.ModifyLunaClientResponse$
|
|
429
|
+
];
|
|
430
|
+
exports.RemoveTagsFromResource$ = [9, n0, _RTFR,
|
|
431
|
+
0, () => exports.RemoveTagsFromResourceRequest$, () => exports.RemoveTagsFromResourceResponse$
|
|
432
|
+
];
|
|
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
6
6
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
7
|
import { defaultCloudHSMHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
9
10
|
export const getRuntimeConfig = (config) => {
|
|
10
11
|
return {
|
|
11
12
|
apiVersion: "2014-05-30",
|
|
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
27
|
protocol: config?.protocol ?? AwsJson1_1Protocol,
|
|
27
28
|
protocolSettings: config?.protocolSettings ?? {
|
|
28
29
|
defaultNamespace: "com.amazonaws.cloudhsm",
|
|
30
|
+
errorTypeRegistries,
|
|
29
31
|
version: "2014-05-30",
|
|
30
32
|
serviceTarget: "CloudHsmFrontendService",
|
|
31
33
|
},
|
|
@@ -118,13 +118,39 @@ const _c = "client";
|
|
|
118
118
|
const _e = "error";
|
|
119
119
|
const _m = "message";
|
|
120
120
|
const _r = "retryable";
|
|
121
|
-
const _s = "
|
|
122
|
-
const
|
|
121
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloudhsm";
|
|
122
|
+
const _se = "server";
|
|
123
123
|
const _xN = "xmlName";
|
|
124
124
|
const n0 = "com.amazonaws.cloudhsm";
|
|
125
125
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
126
126
|
import { CloudHSMServiceException } from "../models/CloudHSMServiceException";
|
|
127
127
|
import { CloudHsmInternalException, CloudHsmServiceException, InvalidRequestException } from "../models/errors";
|
|
128
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
129
|
+
export var CloudHSMServiceException$ = [-3, _s, "CloudHSMServiceException", 0, [], []];
|
|
130
|
+
_s_registry.registerError(CloudHSMServiceException$, CloudHSMServiceException);
|
|
131
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
132
|
+
export var CloudHsmInternalException$ = [-3, n0, _CHIE,
|
|
133
|
+
{ [_e]: _se },
|
|
134
|
+
[_m, _r],
|
|
135
|
+
[0, 2]
|
|
136
|
+
];
|
|
137
|
+
n0_registry.registerError(CloudHsmInternalException$, CloudHsmInternalException);
|
|
138
|
+
export var CloudHsmServiceException$ = [-3, n0, _CHSE,
|
|
139
|
+
{ [_e]: _c },
|
|
140
|
+
[_m, _r],
|
|
141
|
+
[0, 2]
|
|
142
|
+
];
|
|
143
|
+
n0_registry.registerError(CloudHsmServiceException$, CloudHsmServiceException);
|
|
144
|
+
export var InvalidRequestException$ = [-3, n0, _IRE,
|
|
145
|
+
{ [_e]: _c },
|
|
146
|
+
[_m, _r],
|
|
147
|
+
[0, 2]
|
|
148
|
+
];
|
|
149
|
+
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
150
|
+
export const errorTypeRegistries = [
|
|
151
|
+
_s_registry,
|
|
152
|
+
n0_registry,
|
|
153
|
+
];
|
|
128
154
|
export var AddTagsToResourceRequest$ = [3, n0, _ATTRR,
|
|
129
155
|
0,
|
|
130
156
|
[_RA, _TL],
|
|
@@ -135,18 +161,6 @@ export var AddTagsToResourceResponse$ = [3, n0, _ATTRRd,
|
|
|
135
161
|
[_S],
|
|
136
162
|
[0], 1
|
|
137
163
|
];
|
|
138
|
-
export var CloudHsmInternalException$ = [-3, n0, _CHIE,
|
|
139
|
-
{ [_e]: _s },
|
|
140
|
-
[_m, _r],
|
|
141
|
-
[0, 2]
|
|
142
|
-
];
|
|
143
|
-
TypeRegistry.for(n0).registerError(CloudHsmInternalException$, CloudHsmInternalException);
|
|
144
|
-
export var CloudHsmServiceException$ = [-3, n0, _CHSE,
|
|
145
|
-
{ [_e]: _c },
|
|
146
|
-
[_m, _r],
|
|
147
|
-
[0, 2]
|
|
148
|
-
];
|
|
149
|
-
TypeRegistry.for(n0).registerError(CloudHsmServiceException$, CloudHsmServiceException);
|
|
150
164
|
export var CreateHapgRequest$ = [3, n0, _CHR,
|
|
151
165
|
0,
|
|
152
166
|
[_L],
|
|
@@ -247,12 +261,6 @@ export var GetConfigResponse$ = [3, n0, _GCRe,
|
|
|
247
261
|
[_CTo, _CFo, _CC],
|
|
248
262
|
[0, 0, 0]
|
|
249
263
|
];
|
|
250
|
-
export var InvalidRequestException$ = [-3, n0, _IRE,
|
|
251
|
-
{ [_e]: _c },
|
|
252
|
-
[_m, _r],
|
|
253
|
-
[0, 2]
|
|
254
|
-
];
|
|
255
|
-
TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
|
|
256
264
|
export var ListAvailableZonesRequest$ = [3, n0, _LAZR,
|
|
257
265
|
0,
|
|
258
266
|
[],
|
|
@@ -348,8 +356,6 @@ export var Tag$ = [3, n0, _T,
|
|
|
348
356
|
[_K, _V],
|
|
349
357
|
[0, 0], 2
|
|
350
358
|
];
|
|
351
|
-
export var CloudHSMServiceException$ = [-3, _sm, "CloudHSMServiceException", 0, [], []];
|
|
352
|
-
TypeRegistry.for(_sm).registerError(CloudHSMServiceException$, CloudHSMServiceException);
|
|
353
359
|
var AZList = 64 | 0;
|
|
354
360
|
var ClientList = 64 | 0;
|
|
355
361
|
var HapgList = 64 | 0;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
-
export declare var
|
|
3
|
-
export declare var AddTagsToResourceResponse$: StaticStructureSchema;
|
|
3
|
+
export declare var CloudHSMServiceException$: StaticErrorSchema;
|
|
4
4
|
export declare var CloudHsmInternalException$: StaticErrorSchema;
|
|
5
5
|
export declare var CloudHsmServiceException$: StaticErrorSchema;
|
|
6
|
+
export declare var InvalidRequestException$: StaticErrorSchema;
|
|
7
|
+
/**
|
|
8
|
+
* TypeRegistry instances containing modeled errors.
|
|
9
|
+
* @internal
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
13
|
+
export declare var AddTagsToResourceRequest$: StaticStructureSchema;
|
|
14
|
+
export declare var AddTagsToResourceResponse$: StaticStructureSchema;
|
|
6
15
|
export declare var CreateHapgRequest$: StaticStructureSchema;
|
|
7
16
|
export declare var CreateHapgResponse$: StaticStructureSchema;
|
|
8
17
|
export declare var CreateHsmRequest$: StaticStructureSchema;
|
|
@@ -23,7 +32,6 @@ export declare var DescribeLunaClientRequest$: StaticStructureSchema;
|
|
|
23
32
|
export declare var DescribeLunaClientResponse$: StaticStructureSchema;
|
|
24
33
|
export declare var GetConfigRequest$: StaticStructureSchema;
|
|
25
34
|
export declare var GetConfigResponse$: StaticStructureSchema;
|
|
26
|
-
export declare var InvalidRequestException$: StaticErrorSchema;
|
|
27
35
|
export declare var ListAvailableZonesRequest$: StaticStructureSchema;
|
|
28
36
|
export declare var ListAvailableZonesResponse$: StaticStructureSchema;
|
|
29
37
|
export declare var ListHapgsRequest$: StaticStructureSchema;
|
|
@@ -43,7 +51,6 @@ export declare var ModifyLunaClientResponse$: StaticStructureSchema;
|
|
|
43
51
|
export declare var RemoveTagsFromResourceRequest$: StaticStructureSchema;
|
|
44
52
|
export declare var RemoveTagsFromResourceResponse$: StaticStructureSchema;
|
|
45
53
|
export declare var Tag$: StaticStructureSchema;
|
|
46
|
-
export declare var CloudHSMServiceException$: StaticErrorSchema;
|
|
47
54
|
export declare var AddTagsToResource$: StaticOperationSchema;
|
|
48
55
|
export declare var CreateHapg$: StaticOperationSchema;
|
|
49
56
|
export declare var CreateHsm$: StaticOperationSchema;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
} from "@smithy/types";
|
|
6
|
-
export declare var
|
|
7
|
-
export declare var AddTagsToResourceResponse$: StaticStructureSchema;
|
|
7
|
+
export declare var CloudHSMServiceException$: StaticErrorSchema;
|
|
8
8
|
export declare var CloudHsmInternalException$: StaticErrorSchema;
|
|
9
9
|
export declare var CloudHsmServiceException$: StaticErrorSchema;
|
|
10
|
+
export declare var InvalidRequestException$: StaticErrorSchema;
|
|
11
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
12
|
+
export declare var AddTagsToResourceRequest$: StaticStructureSchema;
|
|
13
|
+
export declare var AddTagsToResourceResponse$: StaticStructureSchema;
|
|
10
14
|
export declare var CreateHapgRequest$: StaticStructureSchema;
|
|
11
15
|
export declare var CreateHapgResponse$: StaticStructureSchema;
|
|
12
16
|
export declare var CreateHsmRequest$: StaticStructureSchema;
|
|
@@ -27,7 +31,6 @@ export declare var DescribeLunaClientRequest$: StaticStructureSchema;
|
|
|
27
31
|
export declare var DescribeLunaClientResponse$: StaticStructureSchema;
|
|
28
32
|
export declare var GetConfigRequest$: StaticStructureSchema;
|
|
29
33
|
export declare var GetConfigResponse$: StaticStructureSchema;
|
|
30
|
-
export declare var InvalidRequestException$: StaticErrorSchema;
|
|
31
34
|
export declare var ListAvailableZonesRequest$: StaticStructureSchema;
|
|
32
35
|
export declare var ListAvailableZonesResponse$: StaticStructureSchema;
|
|
33
36
|
export declare var ListHapgsRequest$: StaticStructureSchema;
|
|
@@ -47,7 +50,6 @@ export declare var ModifyLunaClientResponse$: StaticStructureSchema;
|
|
|
47
50
|
export declare var RemoveTagsFromResourceRequest$: StaticStructureSchema;
|
|
48
51
|
export declare var RemoveTagsFromResourceResponse$: StaticStructureSchema;
|
|
49
52
|
export declare var Tag$: StaticStructureSchema;
|
|
50
|
-
export declare var CloudHSMServiceException$: StaticErrorSchema;
|
|
51
53
|
export declare var AddTagsToResource$: StaticOperationSchema;
|
|
52
54
|
export declare var CreateHapg$: StaticOperationSchema;
|
|
53
55
|
export declare var CreateHsm$: StaticOperationSchema;
|