@aws-sdk/client-cloudhsm 3.901.0 → 3.907.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 +990 -1092
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,1150 +1,1048 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "cloudhsm",
|
|
25
|
+
});
|
|
10
26
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
32
|
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
AddTagsToResourceCommand: () => AddTagsToResourceCommand,
|
|
25
|
-
ClientVersion: () => ClientVersion,
|
|
26
|
-
CloudHSM: () => CloudHSM,
|
|
27
|
-
CloudHSMClient: () => CloudHSMClient,
|
|
28
|
-
CloudHSMServiceException: () => CloudHSMServiceException,
|
|
29
|
-
CloudHsmInternalException: () => CloudHsmInternalException,
|
|
30
|
-
CloudHsmObjectState: () => CloudHsmObjectState,
|
|
31
|
-
CloudHsmServiceException: () => CloudHsmServiceException,
|
|
32
|
-
CreateHapgCommand: () => CreateHapgCommand,
|
|
33
|
-
CreateHsmCommand: () => CreateHsmCommand,
|
|
34
|
-
CreateLunaClientCommand: () => CreateLunaClientCommand,
|
|
35
|
-
DeleteHapgCommand: () => DeleteHapgCommand,
|
|
36
|
-
DeleteHsmCommand: () => DeleteHsmCommand,
|
|
37
|
-
DeleteLunaClientCommand: () => DeleteLunaClientCommand,
|
|
38
|
-
DescribeHapgCommand: () => DescribeHapgCommand,
|
|
39
|
-
DescribeHsmCommand: () => DescribeHsmCommand,
|
|
40
|
-
DescribeLunaClientCommand: () => DescribeLunaClientCommand,
|
|
41
|
-
GetConfigCommand: () => GetConfigCommand,
|
|
42
|
-
HsmStatus: () => HsmStatus,
|
|
43
|
-
InvalidRequestException: () => InvalidRequestException,
|
|
44
|
-
ListAvailableZonesCommand: () => ListAvailableZonesCommand,
|
|
45
|
-
ListHapgsCommand: () => ListHapgsCommand,
|
|
46
|
-
ListHsmsCommand: () => ListHsmsCommand,
|
|
47
|
-
ListLunaClientsCommand: () => ListLunaClientsCommand,
|
|
48
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
49
|
-
ModifyHapgCommand: () => ModifyHapgCommand,
|
|
50
|
-
ModifyHsmCommand: () => ModifyHsmCommand,
|
|
51
|
-
ModifyLunaClientCommand: () => ModifyLunaClientCommand,
|
|
52
|
-
RemoveTagsFromResourceCommand: () => RemoveTagsFromResourceCommand,
|
|
53
|
-
SubscriptionType: () => SubscriptionType,
|
|
54
|
-
__Client: () => import_smithy_client.Client
|
|
55
|
-
});
|
|
56
|
-
module.exports = __toCommonJS(index_exports);
|
|
57
33
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
84
71
|
};
|
|
85
72
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
92
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
93
78
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
79
|
+
class CloudHSMClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultCloudHSMHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
107
|
+
}
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
122
110
|
}
|
|
123
|
-
|
|
124
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
125
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
126
|
-
return {
|
|
127
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
128
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
129
|
-
credentials: config.credentials()
|
|
130
|
-
};
|
|
131
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
111
|
+
}
|
|
132
112
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
140
|
-
);
|
|
141
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
142
|
-
return Object.assign(
|
|
143
|
-
runtimeConfig,
|
|
144
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
145
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
146
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
147
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
148
|
-
);
|
|
149
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class CloudHSMServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, CloudHSMServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
150
119
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
120
|
+
class CloudHsmInternalException extends CloudHSMServiceException {
|
|
121
|
+
name = "CloudHsmInternalException";
|
|
122
|
+
$fault = "server";
|
|
123
|
+
retryable;
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "CloudHsmInternalException",
|
|
127
|
+
$fault: "server",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, CloudHsmInternalException.prototype);
|
|
131
|
+
this.retryable = opts.retryable;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
class CloudHsmServiceException extends CloudHSMServiceException {
|
|
135
|
+
name = "CloudHsmServiceException";
|
|
136
|
+
$fault = "client";
|
|
137
|
+
retryable;
|
|
138
|
+
constructor(opts) {
|
|
139
|
+
super({
|
|
140
|
+
name: "CloudHsmServiceException",
|
|
141
|
+
$fault: "client",
|
|
142
|
+
...opts,
|
|
143
|
+
});
|
|
144
|
+
Object.setPrototypeOf(this, CloudHsmServiceException.prototype);
|
|
145
|
+
this.retryable = opts.retryable;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
class InvalidRequestException extends CloudHSMServiceException {
|
|
149
|
+
name = "InvalidRequestException";
|
|
150
|
+
$fault = "client";
|
|
151
|
+
retryable;
|
|
152
|
+
constructor(opts) {
|
|
153
|
+
super({
|
|
154
|
+
name: "InvalidRequestException",
|
|
155
|
+
$fault: "client",
|
|
156
|
+
...opts,
|
|
157
|
+
});
|
|
158
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
159
|
+
this.retryable = opts.retryable;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
const ClientVersion = {
|
|
163
|
+
FIVE_ONE: "5.1",
|
|
164
|
+
FIVE_THREE: "5.3",
|
|
197
165
|
};
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
var CloudHSMServiceException = class _CloudHSMServiceException extends import_smithy_client.ServiceException {
|
|
215
|
-
static {
|
|
216
|
-
__name(this, "CloudHSMServiceException");
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* @internal
|
|
220
|
-
*/
|
|
221
|
-
constructor(options) {
|
|
222
|
-
super(options);
|
|
223
|
-
Object.setPrototypeOf(this, _CloudHSMServiceException.prototype);
|
|
224
|
-
}
|
|
166
|
+
const SubscriptionType = {
|
|
167
|
+
PRODUCTION: "PRODUCTION",
|
|
168
|
+
};
|
|
169
|
+
const CloudHsmObjectState = {
|
|
170
|
+
DEGRADED: "DEGRADED",
|
|
171
|
+
READY: "READY",
|
|
172
|
+
UPDATING: "UPDATING",
|
|
173
|
+
};
|
|
174
|
+
const HsmStatus = {
|
|
175
|
+
DEGRADED: "DEGRADED",
|
|
176
|
+
PENDING: "PENDING",
|
|
177
|
+
RUNNING: "RUNNING",
|
|
178
|
+
SUSPENDED: "SUSPENDED",
|
|
179
|
+
TERMINATED: "TERMINATED",
|
|
180
|
+
TERMINATING: "TERMINATING",
|
|
181
|
+
UPDATING: "UPDATING",
|
|
225
182
|
};
|
|
226
183
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
name = "CloudHsmInternalException";
|
|
233
|
-
$fault = "server";
|
|
234
|
-
/**
|
|
235
|
-
* <p>Indicates if the action can be retried.</p>
|
|
236
|
-
* @public
|
|
237
|
-
*/
|
|
238
|
-
retryable;
|
|
239
|
-
/**
|
|
240
|
-
* @internal
|
|
241
|
-
*/
|
|
242
|
-
constructor(opts) {
|
|
243
|
-
super({
|
|
244
|
-
name: "CloudHsmInternalException",
|
|
245
|
-
$fault: "server",
|
|
246
|
-
...opts
|
|
247
|
-
});
|
|
248
|
-
Object.setPrototypeOf(this, _CloudHsmInternalException.prototype);
|
|
249
|
-
this.retryable = opts.retryable;
|
|
250
|
-
}
|
|
184
|
+
const se_AddTagsToResourceCommand = async (input, context) => {
|
|
185
|
+
const headers = sharedHeaders("AddTagsToResource");
|
|
186
|
+
let body;
|
|
187
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
188
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
251
189
|
};
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
$fault = "client";
|
|
258
|
-
/**
|
|
259
|
-
* <p>Indicates if the action can be retried.</p>
|
|
260
|
-
* @public
|
|
261
|
-
*/
|
|
262
|
-
retryable;
|
|
263
|
-
/**
|
|
264
|
-
* @internal
|
|
265
|
-
*/
|
|
266
|
-
constructor(opts) {
|
|
267
|
-
super({
|
|
268
|
-
name: "CloudHsmServiceException",
|
|
269
|
-
$fault: "client",
|
|
270
|
-
...opts
|
|
271
|
-
});
|
|
272
|
-
Object.setPrototypeOf(this, _CloudHsmServiceException.prototype);
|
|
273
|
-
this.retryable = opts.retryable;
|
|
274
|
-
}
|
|
190
|
+
const se_CreateHapgCommand = async (input, context) => {
|
|
191
|
+
const headers = sharedHeaders("CreateHapg");
|
|
192
|
+
let body;
|
|
193
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
194
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
195
|
};
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
$fault = "client";
|
|
282
|
-
/**
|
|
283
|
-
* <p>Indicates if the action can be retried.</p>
|
|
284
|
-
* @public
|
|
285
|
-
*/
|
|
286
|
-
retryable;
|
|
287
|
-
/**
|
|
288
|
-
* @internal
|
|
289
|
-
*/
|
|
290
|
-
constructor(opts) {
|
|
291
|
-
super({
|
|
292
|
-
name: "InvalidRequestException",
|
|
293
|
-
$fault: "client",
|
|
294
|
-
...opts
|
|
295
|
-
});
|
|
296
|
-
Object.setPrototypeOf(this, _InvalidRequestException.prototype);
|
|
297
|
-
this.retryable = opts.retryable;
|
|
298
|
-
}
|
|
196
|
+
const se_CreateHsmCommand = async (input, context) => {
|
|
197
|
+
const headers = sharedHeaders("CreateHsm");
|
|
198
|
+
let body;
|
|
199
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
200
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
299
201
|
};
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
202
|
+
const se_CreateLunaClientCommand = async (input, context) => {
|
|
203
|
+
const headers = sharedHeaders("CreateLunaClient");
|
|
204
|
+
let body;
|
|
205
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
206
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
207
|
};
|
|
304
|
-
|
|
305
|
-
|
|
208
|
+
const se_DeleteHapgCommand = async (input, context) => {
|
|
209
|
+
const headers = sharedHeaders("DeleteHapg");
|
|
210
|
+
let body;
|
|
211
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
212
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
306
213
|
};
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
214
|
+
const se_DeleteHsmCommand = async (input, context) => {
|
|
215
|
+
const headers = sharedHeaders("DeleteHsm");
|
|
216
|
+
let body;
|
|
217
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
218
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
311
219
|
};
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
TERMINATED: "TERMINATED",
|
|
318
|
-
TERMINATING: "TERMINATING",
|
|
319
|
-
UPDATING: "UPDATING"
|
|
220
|
+
const se_DeleteLunaClientCommand = async (input, context) => {
|
|
221
|
+
const headers = sharedHeaders("DeleteLunaClient");
|
|
222
|
+
let body;
|
|
223
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
224
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
320
225
|
};
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
327
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
328
|
-
}, "se_AddTagsToResourceCommand");
|
|
329
|
-
var se_CreateHapgCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
330
|
-
const headers = sharedHeaders("CreateHapg");
|
|
331
|
-
let body;
|
|
332
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
333
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
334
|
-
}, "se_CreateHapgCommand");
|
|
335
|
-
var se_CreateHsmCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
336
|
-
const headers = sharedHeaders("CreateHsm");
|
|
337
|
-
let body;
|
|
338
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
339
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
340
|
-
}, "se_CreateHsmCommand");
|
|
341
|
-
var se_CreateLunaClientCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
342
|
-
const headers = sharedHeaders("CreateLunaClient");
|
|
343
|
-
let body;
|
|
344
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
345
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
346
|
-
}, "se_CreateLunaClientCommand");
|
|
347
|
-
var se_DeleteHapgCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
348
|
-
const headers = sharedHeaders("DeleteHapg");
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
351
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
352
|
-
}, "se_DeleteHapgCommand");
|
|
353
|
-
var se_DeleteHsmCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
354
|
-
const headers = sharedHeaders("DeleteHsm");
|
|
355
|
-
let body;
|
|
356
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
357
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
358
|
-
}, "se_DeleteHsmCommand");
|
|
359
|
-
var se_DeleteLunaClientCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
360
|
-
const headers = sharedHeaders("DeleteLunaClient");
|
|
361
|
-
let body;
|
|
362
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
363
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
364
|
-
}, "se_DeleteLunaClientCommand");
|
|
365
|
-
var se_DescribeHapgCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
366
|
-
const headers = sharedHeaders("DescribeHapg");
|
|
367
|
-
let body;
|
|
368
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
369
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
370
|
-
}, "se_DescribeHapgCommand");
|
|
371
|
-
var se_DescribeHsmCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
372
|
-
const headers = sharedHeaders("DescribeHsm");
|
|
373
|
-
let body;
|
|
374
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
375
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
376
|
-
}, "se_DescribeHsmCommand");
|
|
377
|
-
var se_DescribeLunaClientCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
378
|
-
const headers = sharedHeaders("DescribeLunaClient");
|
|
379
|
-
let body;
|
|
380
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
381
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
382
|
-
}, "se_DescribeLunaClientCommand");
|
|
383
|
-
var se_GetConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
384
|
-
const headers = sharedHeaders("GetConfig");
|
|
385
|
-
let body;
|
|
386
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
387
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
388
|
-
}, "se_GetConfigCommand");
|
|
389
|
-
var se_ListAvailableZonesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
390
|
-
const headers = sharedHeaders("ListAvailableZones");
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
393
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
394
|
-
}, "se_ListAvailableZonesCommand");
|
|
395
|
-
var se_ListHapgsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
396
|
-
const headers = sharedHeaders("ListHapgs");
|
|
397
|
-
let body;
|
|
398
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
399
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
400
|
-
}, "se_ListHapgsCommand");
|
|
401
|
-
var se_ListHsmsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
402
|
-
const headers = sharedHeaders("ListHsms");
|
|
403
|
-
let body;
|
|
404
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
405
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
406
|
-
}, "se_ListHsmsCommand");
|
|
407
|
-
var se_ListLunaClientsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
408
|
-
const headers = sharedHeaders("ListLunaClients");
|
|
409
|
-
let body;
|
|
410
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
411
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
412
|
-
}, "se_ListLunaClientsCommand");
|
|
413
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
414
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
415
|
-
let body;
|
|
416
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
417
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
418
|
-
}, "se_ListTagsForResourceCommand");
|
|
419
|
-
var se_ModifyHapgCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
420
|
-
const headers = sharedHeaders("ModifyHapg");
|
|
421
|
-
let body;
|
|
422
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
423
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
424
|
-
}, "se_ModifyHapgCommand");
|
|
425
|
-
var se_ModifyHsmCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
426
|
-
const headers = sharedHeaders("ModifyHsm");
|
|
427
|
-
let body;
|
|
428
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
429
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
430
|
-
}, "se_ModifyHsmCommand");
|
|
431
|
-
var se_ModifyLunaClientCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
432
|
-
const headers = sharedHeaders("ModifyLunaClient");
|
|
433
|
-
let body;
|
|
434
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
435
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
436
|
-
}, "se_ModifyLunaClientCommand");
|
|
437
|
-
var se_RemoveTagsFromResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
438
|
-
const headers = sharedHeaders("RemoveTagsFromResource");
|
|
439
|
-
let body;
|
|
440
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
441
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
442
|
-
}, "se_RemoveTagsFromResourceCommand");
|
|
443
|
-
var de_AddTagsToResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
444
|
-
if (output.statusCode >= 300) {
|
|
445
|
-
return de_CommandError(output, context);
|
|
446
|
-
}
|
|
447
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
448
|
-
let contents = {};
|
|
449
|
-
contents = (0, import_smithy_client._json)(data);
|
|
450
|
-
const response = {
|
|
451
|
-
$metadata: deserializeMetadata(output),
|
|
452
|
-
...contents
|
|
453
|
-
};
|
|
454
|
-
return response;
|
|
455
|
-
}, "de_AddTagsToResourceCommand");
|
|
456
|
-
var de_CreateHapgCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
457
|
-
if (output.statusCode >= 300) {
|
|
458
|
-
return de_CommandError(output, context);
|
|
459
|
-
}
|
|
460
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
461
|
-
let contents = {};
|
|
462
|
-
contents = (0, import_smithy_client._json)(data);
|
|
463
|
-
const response = {
|
|
464
|
-
$metadata: deserializeMetadata(output),
|
|
465
|
-
...contents
|
|
466
|
-
};
|
|
467
|
-
return response;
|
|
468
|
-
}, "de_CreateHapgCommand");
|
|
469
|
-
var de_CreateHsmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
470
|
-
if (output.statusCode >= 300) {
|
|
471
|
-
return de_CommandError(output, context);
|
|
472
|
-
}
|
|
473
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
474
|
-
let contents = {};
|
|
475
|
-
contents = (0, import_smithy_client._json)(data);
|
|
476
|
-
const response = {
|
|
477
|
-
$metadata: deserializeMetadata(output),
|
|
478
|
-
...contents
|
|
479
|
-
};
|
|
480
|
-
return response;
|
|
481
|
-
}, "de_CreateHsmCommand");
|
|
482
|
-
var de_CreateLunaClientCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
483
|
-
if (output.statusCode >= 300) {
|
|
484
|
-
return de_CommandError(output, context);
|
|
485
|
-
}
|
|
486
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
487
|
-
let contents = {};
|
|
488
|
-
contents = (0, import_smithy_client._json)(data);
|
|
489
|
-
const response = {
|
|
490
|
-
$metadata: deserializeMetadata(output),
|
|
491
|
-
...contents
|
|
492
|
-
};
|
|
493
|
-
return response;
|
|
494
|
-
}, "de_CreateLunaClientCommand");
|
|
495
|
-
var de_DeleteHapgCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
496
|
-
if (output.statusCode >= 300) {
|
|
497
|
-
return de_CommandError(output, context);
|
|
498
|
-
}
|
|
499
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
500
|
-
let contents = {};
|
|
501
|
-
contents = (0, import_smithy_client._json)(data);
|
|
502
|
-
const response = {
|
|
503
|
-
$metadata: deserializeMetadata(output),
|
|
504
|
-
...contents
|
|
505
|
-
};
|
|
506
|
-
return response;
|
|
507
|
-
}, "de_DeleteHapgCommand");
|
|
508
|
-
var de_DeleteHsmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
509
|
-
if (output.statusCode >= 300) {
|
|
510
|
-
return de_CommandError(output, context);
|
|
511
|
-
}
|
|
512
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
513
|
-
let contents = {};
|
|
514
|
-
contents = (0, import_smithy_client._json)(data);
|
|
515
|
-
const response = {
|
|
516
|
-
$metadata: deserializeMetadata(output),
|
|
517
|
-
...contents
|
|
518
|
-
};
|
|
519
|
-
return response;
|
|
520
|
-
}, "de_DeleteHsmCommand");
|
|
521
|
-
var de_DeleteLunaClientCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
522
|
-
if (output.statusCode >= 300) {
|
|
523
|
-
return de_CommandError(output, context);
|
|
524
|
-
}
|
|
525
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
526
|
-
let contents = {};
|
|
527
|
-
contents = (0, import_smithy_client._json)(data);
|
|
528
|
-
const response = {
|
|
529
|
-
$metadata: deserializeMetadata(output),
|
|
530
|
-
...contents
|
|
531
|
-
};
|
|
532
|
-
return response;
|
|
533
|
-
}, "de_DeleteLunaClientCommand");
|
|
534
|
-
var de_DescribeHapgCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
535
|
-
if (output.statusCode >= 300) {
|
|
536
|
-
return de_CommandError(output, context);
|
|
537
|
-
}
|
|
538
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
539
|
-
let contents = {};
|
|
540
|
-
contents = (0, import_smithy_client._json)(data);
|
|
541
|
-
const response = {
|
|
542
|
-
$metadata: deserializeMetadata(output),
|
|
543
|
-
...contents
|
|
544
|
-
};
|
|
545
|
-
return response;
|
|
546
|
-
}, "de_DescribeHapgCommand");
|
|
547
|
-
var de_DescribeHsmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
548
|
-
if (output.statusCode >= 300) {
|
|
549
|
-
return de_CommandError(output, context);
|
|
550
|
-
}
|
|
551
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
552
|
-
let contents = {};
|
|
553
|
-
contents = (0, import_smithy_client._json)(data);
|
|
554
|
-
const response = {
|
|
555
|
-
$metadata: deserializeMetadata(output),
|
|
556
|
-
...contents
|
|
557
|
-
};
|
|
558
|
-
return response;
|
|
559
|
-
}, "de_DescribeHsmCommand");
|
|
560
|
-
var de_DescribeLunaClientCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
561
|
-
if (output.statusCode >= 300) {
|
|
562
|
-
return de_CommandError(output, context);
|
|
563
|
-
}
|
|
564
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
565
|
-
let contents = {};
|
|
566
|
-
contents = (0, import_smithy_client._json)(data);
|
|
567
|
-
const response = {
|
|
568
|
-
$metadata: deserializeMetadata(output),
|
|
569
|
-
...contents
|
|
570
|
-
};
|
|
571
|
-
return response;
|
|
572
|
-
}, "de_DescribeLunaClientCommand");
|
|
573
|
-
var de_GetConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
574
|
-
if (output.statusCode >= 300) {
|
|
575
|
-
return de_CommandError(output, context);
|
|
576
|
-
}
|
|
577
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
578
|
-
let contents = {};
|
|
579
|
-
contents = (0, import_smithy_client._json)(data);
|
|
580
|
-
const response = {
|
|
581
|
-
$metadata: deserializeMetadata(output),
|
|
582
|
-
...contents
|
|
583
|
-
};
|
|
584
|
-
return response;
|
|
585
|
-
}, "de_GetConfigCommand");
|
|
586
|
-
var de_ListAvailableZonesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
587
|
-
if (output.statusCode >= 300) {
|
|
588
|
-
return de_CommandError(output, context);
|
|
589
|
-
}
|
|
590
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
591
|
-
let contents = {};
|
|
592
|
-
contents = (0, import_smithy_client._json)(data);
|
|
593
|
-
const response = {
|
|
594
|
-
$metadata: deserializeMetadata(output),
|
|
595
|
-
...contents
|
|
596
|
-
};
|
|
597
|
-
return response;
|
|
598
|
-
}, "de_ListAvailableZonesCommand");
|
|
599
|
-
var de_ListHapgsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
600
|
-
if (output.statusCode >= 300) {
|
|
601
|
-
return de_CommandError(output, context);
|
|
602
|
-
}
|
|
603
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
604
|
-
let contents = {};
|
|
605
|
-
contents = (0, import_smithy_client._json)(data);
|
|
606
|
-
const response = {
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
...contents
|
|
609
|
-
};
|
|
610
|
-
return response;
|
|
611
|
-
}, "de_ListHapgsCommand");
|
|
612
|
-
var de_ListHsmsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
613
|
-
if (output.statusCode >= 300) {
|
|
614
|
-
return de_CommandError(output, context);
|
|
615
|
-
}
|
|
616
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
617
|
-
let contents = {};
|
|
618
|
-
contents = (0, import_smithy_client._json)(data);
|
|
619
|
-
const response = {
|
|
620
|
-
$metadata: deserializeMetadata(output),
|
|
621
|
-
...contents
|
|
622
|
-
};
|
|
623
|
-
return response;
|
|
624
|
-
}, "de_ListHsmsCommand");
|
|
625
|
-
var de_ListLunaClientsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
626
|
-
if (output.statusCode >= 300) {
|
|
627
|
-
return de_CommandError(output, context);
|
|
628
|
-
}
|
|
629
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
630
|
-
let contents = {};
|
|
631
|
-
contents = (0, import_smithy_client._json)(data);
|
|
632
|
-
const response = {
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
...contents
|
|
635
|
-
};
|
|
636
|
-
return response;
|
|
637
|
-
}, "de_ListLunaClientsCommand");
|
|
638
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
639
|
-
if (output.statusCode >= 300) {
|
|
640
|
-
return de_CommandError(output, context);
|
|
641
|
-
}
|
|
642
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
643
|
-
let contents = {};
|
|
644
|
-
contents = (0, import_smithy_client._json)(data);
|
|
645
|
-
const response = {
|
|
646
|
-
$metadata: deserializeMetadata(output),
|
|
647
|
-
...contents
|
|
648
|
-
};
|
|
649
|
-
return response;
|
|
650
|
-
}, "de_ListTagsForResourceCommand");
|
|
651
|
-
var de_ModifyHapgCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
652
|
-
if (output.statusCode >= 300) {
|
|
653
|
-
return de_CommandError(output, context);
|
|
654
|
-
}
|
|
655
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
656
|
-
let contents = {};
|
|
657
|
-
contents = (0, import_smithy_client._json)(data);
|
|
658
|
-
const response = {
|
|
659
|
-
$metadata: deserializeMetadata(output),
|
|
660
|
-
...contents
|
|
661
|
-
};
|
|
662
|
-
return response;
|
|
663
|
-
}, "de_ModifyHapgCommand");
|
|
664
|
-
var de_ModifyHsmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
665
|
-
if (output.statusCode >= 300) {
|
|
666
|
-
return de_CommandError(output, context);
|
|
667
|
-
}
|
|
668
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
669
|
-
let contents = {};
|
|
670
|
-
contents = (0, import_smithy_client._json)(data);
|
|
671
|
-
const response = {
|
|
672
|
-
$metadata: deserializeMetadata(output),
|
|
673
|
-
...contents
|
|
674
|
-
};
|
|
675
|
-
return response;
|
|
676
|
-
}, "de_ModifyHsmCommand");
|
|
677
|
-
var de_ModifyLunaClientCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
678
|
-
if (output.statusCode >= 300) {
|
|
679
|
-
return de_CommandError(output, context);
|
|
680
|
-
}
|
|
681
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
682
|
-
let contents = {};
|
|
683
|
-
contents = (0, import_smithy_client._json)(data);
|
|
684
|
-
const response = {
|
|
685
|
-
$metadata: deserializeMetadata(output),
|
|
686
|
-
...contents
|
|
687
|
-
};
|
|
688
|
-
return response;
|
|
689
|
-
}, "de_ModifyLunaClientCommand");
|
|
690
|
-
var de_RemoveTagsFromResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
691
|
-
if (output.statusCode >= 300) {
|
|
692
|
-
return de_CommandError(output, context);
|
|
693
|
-
}
|
|
694
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
695
|
-
let contents = {};
|
|
696
|
-
contents = (0, import_smithy_client._json)(data);
|
|
697
|
-
const response = {
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
...contents
|
|
700
|
-
};
|
|
701
|
-
return response;
|
|
702
|
-
}, "de_RemoveTagsFromResourceCommand");
|
|
703
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
704
|
-
const parsedOutput = {
|
|
705
|
-
...output,
|
|
706
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
707
|
-
};
|
|
708
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
709
|
-
switch (errorCode) {
|
|
710
|
-
case "CloudHsmInternalException":
|
|
711
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
712
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
713
|
-
case "CloudHsmServiceException":
|
|
714
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
715
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
716
|
-
case "InvalidRequestException":
|
|
717
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
718
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
719
|
-
default:
|
|
720
|
-
const parsedBody = parsedOutput.body;
|
|
721
|
-
return throwDefaultError({
|
|
722
|
-
output,
|
|
723
|
-
parsedBody,
|
|
724
|
-
errorCode
|
|
725
|
-
});
|
|
726
|
-
}
|
|
727
|
-
}, "de_CommandError");
|
|
728
|
-
var de_CloudHsmInternalExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
729
|
-
const body = parsedOutput.body;
|
|
730
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
731
|
-
const exception = new CloudHsmInternalException({
|
|
732
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
733
|
-
...deserialized
|
|
734
|
-
});
|
|
735
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
736
|
-
}, "de_CloudHsmInternalExceptionRes");
|
|
737
|
-
var de_CloudHsmServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
738
|
-
const body = parsedOutput.body;
|
|
739
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
740
|
-
const exception = new CloudHsmServiceException({
|
|
741
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
742
|
-
...deserialized
|
|
743
|
-
});
|
|
744
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
745
|
-
}, "de_CloudHsmServiceExceptionRes");
|
|
746
|
-
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
747
|
-
const body = parsedOutput.body;
|
|
748
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
749
|
-
const exception = new InvalidRequestException({
|
|
750
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
751
|
-
...deserialized
|
|
752
|
-
});
|
|
753
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
754
|
-
}, "de_InvalidRequestExceptionRes");
|
|
755
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
756
|
-
httpStatusCode: output.statusCode,
|
|
757
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
758
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
759
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
760
|
-
}), "deserializeMetadata");
|
|
761
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(CloudHSMServiceException);
|
|
762
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
763
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
764
|
-
const contents = {
|
|
765
|
-
protocol,
|
|
766
|
-
hostname,
|
|
767
|
-
port,
|
|
768
|
-
method: "POST",
|
|
769
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
770
|
-
headers
|
|
771
|
-
};
|
|
772
|
-
if (resolvedHostname !== void 0) {
|
|
773
|
-
contents.hostname = resolvedHostname;
|
|
774
|
-
}
|
|
775
|
-
if (body !== void 0) {
|
|
776
|
-
contents.body = body;
|
|
777
|
-
}
|
|
778
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
779
|
-
}, "buildHttpRpcRequest");
|
|
780
|
-
function sharedHeaders(operation) {
|
|
781
|
-
return {
|
|
782
|
-
"content-type": "application/x-amz-json-1.1",
|
|
783
|
-
"x-amz-target": `CloudHsmFrontendService.${operation}`
|
|
784
|
-
};
|
|
785
|
-
}
|
|
786
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
787
|
-
|
|
788
|
-
// src/commands/AddTagsToResourceCommand.ts
|
|
789
|
-
var AddTagsToResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
790
|
-
return [
|
|
791
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
792
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
793
|
-
];
|
|
794
|
-
}).s("CloudHsmFrontendService", "AddTagsToResource", {}).n("CloudHSMClient", "AddTagsToResourceCommand").f(void 0, void 0).ser(se_AddTagsToResourceCommand).de(de_AddTagsToResourceCommand).build() {
|
|
795
|
-
static {
|
|
796
|
-
__name(this, "AddTagsToResourceCommand");
|
|
797
|
-
}
|
|
226
|
+
const se_DescribeHapgCommand = async (input, context) => {
|
|
227
|
+
const headers = sharedHeaders("DescribeHapg");
|
|
228
|
+
let body;
|
|
229
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
230
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
798
231
|
};
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
var CreateHapgCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
805
|
-
return [
|
|
806
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
807
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
808
|
-
];
|
|
809
|
-
}).s("CloudHsmFrontendService", "CreateHapg", {}).n("CloudHSMClient", "CreateHapgCommand").f(void 0, void 0).ser(se_CreateHapgCommand).de(de_CreateHapgCommand).build() {
|
|
810
|
-
static {
|
|
811
|
-
__name(this, "CreateHapgCommand");
|
|
812
|
-
}
|
|
232
|
+
const se_DescribeHsmCommand = async (input, context) => {
|
|
233
|
+
const headers = sharedHeaders("DescribeHsm");
|
|
234
|
+
let body;
|
|
235
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
236
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
813
237
|
};
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
var CreateHsmCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
820
|
-
return [
|
|
821
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
822
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
823
|
-
];
|
|
824
|
-
}).s("CloudHsmFrontendService", "CreateHsm", {}).n("CloudHSMClient", "CreateHsmCommand").f(void 0, void 0).ser(se_CreateHsmCommand).de(de_CreateHsmCommand).build() {
|
|
825
|
-
static {
|
|
826
|
-
__name(this, "CreateHsmCommand");
|
|
827
|
-
}
|
|
238
|
+
const se_DescribeLunaClientCommand = async (input, context) => {
|
|
239
|
+
const headers = sharedHeaders("DescribeLunaClient");
|
|
240
|
+
let body;
|
|
241
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
242
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
828
243
|
};
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
var CreateLunaClientCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
835
|
-
return [
|
|
836
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
837
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
838
|
-
];
|
|
839
|
-
}).s("CloudHsmFrontendService", "CreateLunaClient", {}).n("CloudHSMClient", "CreateLunaClientCommand").f(void 0, void 0).ser(se_CreateLunaClientCommand).de(de_CreateLunaClientCommand).build() {
|
|
840
|
-
static {
|
|
841
|
-
__name(this, "CreateLunaClientCommand");
|
|
842
|
-
}
|
|
244
|
+
const se_GetConfigCommand = async (input, context) => {
|
|
245
|
+
const headers = sharedHeaders("GetConfig");
|
|
246
|
+
let body;
|
|
247
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
248
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
843
249
|
};
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
var DeleteHapgCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
850
|
-
return [
|
|
851
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
852
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
853
|
-
];
|
|
854
|
-
}).s("CloudHsmFrontendService", "DeleteHapg", {}).n("CloudHSMClient", "DeleteHapgCommand").f(void 0, void 0).ser(se_DeleteHapgCommand).de(de_DeleteHapgCommand).build() {
|
|
855
|
-
static {
|
|
856
|
-
__name(this, "DeleteHapgCommand");
|
|
857
|
-
}
|
|
250
|
+
const se_ListAvailableZonesCommand = async (input, context) => {
|
|
251
|
+
const headers = sharedHeaders("ListAvailableZones");
|
|
252
|
+
let body;
|
|
253
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
254
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
858
255
|
};
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
var DeleteHsmCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
865
|
-
return [
|
|
866
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
867
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
868
|
-
];
|
|
869
|
-
}).s("CloudHsmFrontendService", "DeleteHsm", {}).n("CloudHSMClient", "DeleteHsmCommand").f(void 0, void 0).ser(se_DeleteHsmCommand).de(de_DeleteHsmCommand).build() {
|
|
870
|
-
static {
|
|
871
|
-
__name(this, "DeleteHsmCommand");
|
|
872
|
-
}
|
|
256
|
+
const se_ListHapgsCommand = async (input, context) => {
|
|
257
|
+
const headers = sharedHeaders("ListHapgs");
|
|
258
|
+
let body;
|
|
259
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
260
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
873
261
|
};
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
var DeleteLunaClientCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
880
|
-
return [
|
|
881
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
882
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
883
|
-
];
|
|
884
|
-
}).s("CloudHsmFrontendService", "DeleteLunaClient", {}).n("CloudHSMClient", "DeleteLunaClientCommand").f(void 0, void 0).ser(se_DeleteLunaClientCommand).de(de_DeleteLunaClientCommand).build() {
|
|
885
|
-
static {
|
|
886
|
-
__name(this, "DeleteLunaClientCommand");
|
|
887
|
-
}
|
|
262
|
+
const se_ListHsmsCommand = async (input, context) => {
|
|
263
|
+
const headers = sharedHeaders("ListHsms");
|
|
264
|
+
let body;
|
|
265
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
266
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
888
267
|
};
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
var DescribeHapgCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
895
|
-
return [
|
|
896
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
897
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
898
|
-
];
|
|
899
|
-
}).s("CloudHsmFrontendService", "DescribeHapg", {}).n("CloudHSMClient", "DescribeHapgCommand").f(void 0, void 0).ser(se_DescribeHapgCommand).de(de_DescribeHapgCommand).build() {
|
|
900
|
-
static {
|
|
901
|
-
__name(this, "DescribeHapgCommand");
|
|
902
|
-
}
|
|
268
|
+
const se_ListLunaClientsCommand = async (input, context) => {
|
|
269
|
+
const headers = sharedHeaders("ListLunaClients");
|
|
270
|
+
let body;
|
|
271
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
272
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
903
273
|
};
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
var DescribeHsmCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
910
|
-
return [
|
|
911
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
912
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
913
|
-
];
|
|
914
|
-
}).s("CloudHsmFrontendService", "DescribeHsm", {}).n("CloudHSMClient", "DescribeHsmCommand").f(void 0, void 0).ser(se_DescribeHsmCommand).de(de_DescribeHsmCommand).build() {
|
|
915
|
-
static {
|
|
916
|
-
__name(this, "DescribeHsmCommand");
|
|
917
|
-
}
|
|
274
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
275
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
276
|
+
let body;
|
|
277
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
278
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
918
279
|
};
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
var DescribeLunaClientCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
925
|
-
return [
|
|
926
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
927
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
928
|
-
];
|
|
929
|
-
}).s("CloudHsmFrontendService", "DescribeLunaClient", {}).n("CloudHSMClient", "DescribeLunaClientCommand").f(void 0, void 0).ser(se_DescribeLunaClientCommand).de(de_DescribeLunaClientCommand).build() {
|
|
930
|
-
static {
|
|
931
|
-
__name(this, "DescribeLunaClientCommand");
|
|
932
|
-
}
|
|
280
|
+
const se_ModifyHapgCommand = async (input, context) => {
|
|
281
|
+
const headers = sharedHeaders("ModifyHapg");
|
|
282
|
+
let body;
|
|
283
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
284
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
933
285
|
};
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
var GetConfigCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
940
|
-
return [
|
|
941
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
942
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
943
|
-
];
|
|
944
|
-
}).s("CloudHsmFrontendService", "GetConfig", {}).n("CloudHSMClient", "GetConfigCommand").f(void 0, void 0).ser(se_GetConfigCommand).de(de_GetConfigCommand).build() {
|
|
945
|
-
static {
|
|
946
|
-
__name(this, "GetConfigCommand");
|
|
947
|
-
}
|
|
286
|
+
const se_ModifyHsmCommand = async (input, context) => {
|
|
287
|
+
const headers = sharedHeaders("ModifyHsm");
|
|
288
|
+
let body;
|
|
289
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
290
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
948
291
|
};
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
var ListAvailableZonesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
955
|
-
return [
|
|
956
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
957
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
958
|
-
];
|
|
959
|
-
}).s("CloudHsmFrontendService", "ListAvailableZones", {}).n("CloudHSMClient", "ListAvailableZonesCommand").f(void 0, void 0).ser(se_ListAvailableZonesCommand).de(de_ListAvailableZonesCommand).build() {
|
|
960
|
-
static {
|
|
961
|
-
__name(this, "ListAvailableZonesCommand");
|
|
962
|
-
}
|
|
292
|
+
const se_ModifyLunaClientCommand = async (input, context) => {
|
|
293
|
+
const headers = sharedHeaders("ModifyLunaClient");
|
|
294
|
+
let body;
|
|
295
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
296
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
963
297
|
};
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
var ListHapgsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
970
|
-
return [
|
|
971
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
972
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
973
|
-
];
|
|
974
|
-
}).s("CloudHsmFrontendService", "ListHapgs", {}).n("CloudHSMClient", "ListHapgsCommand").f(void 0, void 0).ser(se_ListHapgsCommand).de(de_ListHapgsCommand).build() {
|
|
975
|
-
static {
|
|
976
|
-
__name(this, "ListHapgsCommand");
|
|
977
|
-
}
|
|
298
|
+
const se_RemoveTagsFromResourceCommand = async (input, context) => {
|
|
299
|
+
const headers = sharedHeaders("RemoveTagsFromResource");
|
|
300
|
+
let body;
|
|
301
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
302
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
978
303
|
};
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
__name(this, "ListHsmsCommand");
|
|
992
|
-
}
|
|
304
|
+
const de_AddTagsToResourceCommand = async (output, context) => {
|
|
305
|
+
if (output.statusCode >= 300) {
|
|
306
|
+
return de_CommandError(output, context);
|
|
307
|
+
}
|
|
308
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
309
|
+
let contents = {};
|
|
310
|
+
contents = smithyClient._json(data);
|
|
311
|
+
const response = {
|
|
312
|
+
$metadata: deserializeMetadata(output),
|
|
313
|
+
...contents,
|
|
314
|
+
};
|
|
315
|
+
return response;
|
|
993
316
|
};
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
317
|
+
const de_CreateHapgCommand = async (output, context) => {
|
|
318
|
+
if (output.statusCode >= 300) {
|
|
319
|
+
return de_CommandError(output, context);
|
|
320
|
+
}
|
|
321
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
322
|
+
let contents = {};
|
|
323
|
+
contents = smithyClient._json(data);
|
|
324
|
+
const response = {
|
|
325
|
+
$metadata: deserializeMetadata(output),
|
|
326
|
+
...contents,
|
|
327
|
+
};
|
|
328
|
+
return response;
|
|
329
|
+
};
|
|
330
|
+
const de_CreateHsmCommand = async (output, context) => {
|
|
331
|
+
if (output.statusCode >= 300) {
|
|
332
|
+
return de_CommandError(output, context);
|
|
333
|
+
}
|
|
334
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
335
|
+
let contents = {};
|
|
336
|
+
contents = smithyClient._json(data);
|
|
337
|
+
const response = {
|
|
338
|
+
$metadata: deserializeMetadata(output),
|
|
339
|
+
...contents,
|
|
340
|
+
};
|
|
341
|
+
return response;
|
|
342
|
+
};
|
|
343
|
+
const de_CreateLunaClientCommand = async (output, context) => {
|
|
344
|
+
if (output.statusCode >= 300) {
|
|
345
|
+
return de_CommandError(output, context);
|
|
346
|
+
}
|
|
347
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
348
|
+
let contents = {};
|
|
349
|
+
contents = smithyClient._json(data);
|
|
350
|
+
const response = {
|
|
351
|
+
$metadata: deserializeMetadata(output),
|
|
352
|
+
...contents,
|
|
353
|
+
};
|
|
354
|
+
return response;
|
|
355
|
+
};
|
|
356
|
+
const de_DeleteHapgCommand = async (output, context) => {
|
|
357
|
+
if (output.statusCode >= 300) {
|
|
358
|
+
return de_CommandError(output, context);
|
|
359
|
+
}
|
|
360
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
361
|
+
let contents = {};
|
|
362
|
+
contents = smithyClient._json(data);
|
|
363
|
+
const response = {
|
|
364
|
+
$metadata: deserializeMetadata(output),
|
|
365
|
+
...contents,
|
|
366
|
+
};
|
|
367
|
+
return response;
|
|
368
|
+
};
|
|
369
|
+
const de_DeleteHsmCommand = async (output, context) => {
|
|
370
|
+
if (output.statusCode >= 300) {
|
|
371
|
+
return de_CommandError(output, context);
|
|
372
|
+
}
|
|
373
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
374
|
+
let contents = {};
|
|
375
|
+
contents = smithyClient._json(data);
|
|
376
|
+
const response = {
|
|
377
|
+
$metadata: deserializeMetadata(output),
|
|
378
|
+
...contents,
|
|
379
|
+
};
|
|
380
|
+
return response;
|
|
381
|
+
};
|
|
382
|
+
const de_DeleteLunaClientCommand = async (output, context) => {
|
|
383
|
+
if (output.statusCode >= 300) {
|
|
384
|
+
return de_CommandError(output, context);
|
|
385
|
+
}
|
|
386
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
387
|
+
let contents = {};
|
|
388
|
+
contents = smithyClient._json(data);
|
|
389
|
+
const response = {
|
|
390
|
+
$metadata: deserializeMetadata(output),
|
|
391
|
+
...contents,
|
|
392
|
+
};
|
|
393
|
+
return response;
|
|
394
|
+
};
|
|
395
|
+
const de_DescribeHapgCommand = async (output, context) => {
|
|
396
|
+
if (output.statusCode >= 300) {
|
|
397
|
+
return de_CommandError(output, context);
|
|
398
|
+
}
|
|
399
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
400
|
+
let contents = {};
|
|
401
|
+
contents = smithyClient._json(data);
|
|
402
|
+
const response = {
|
|
403
|
+
$metadata: deserializeMetadata(output),
|
|
404
|
+
...contents,
|
|
405
|
+
};
|
|
406
|
+
return response;
|
|
407
|
+
};
|
|
408
|
+
const de_DescribeHsmCommand = async (output, context) => {
|
|
409
|
+
if (output.statusCode >= 300) {
|
|
410
|
+
return de_CommandError(output, context);
|
|
411
|
+
}
|
|
412
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
413
|
+
let contents = {};
|
|
414
|
+
contents = smithyClient._json(data);
|
|
415
|
+
const response = {
|
|
416
|
+
$metadata: deserializeMetadata(output),
|
|
417
|
+
...contents,
|
|
418
|
+
};
|
|
419
|
+
return response;
|
|
420
|
+
};
|
|
421
|
+
const de_DescribeLunaClientCommand = async (output, context) => {
|
|
422
|
+
if (output.statusCode >= 300) {
|
|
423
|
+
return de_CommandError(output, context);
|
|
424
|
+
}
|
|
425
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
426
|
+
let contents = {};
|
|
427
|
+
contents = smithyClient._json(data);
|
|
428
|
+
const response = {
|
|
429
|
+
$metadata: deserializeMetadata(output),
|
|
430
|
+
...contents,
|
|
431
|
+
};
|
|
432
|
+
return response;
|
|
433
|
+
};
|
|
434
|
+
const de_GetConfigCommand = async (output, context) => {
|
|
435
|
+
if (output.statusCode >= 300) {
|
|
436
|
+
return de_CommandError(output, context);
|
|
437
|
+
}
|
|
438
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
439
|
+
let contents = {};
|
|
440
|
+
contents = smithyClient._json(data);
|
|
441
|
+
const response = {
|
|
442
|
+
$metadata: deserializeMetadata(output),
|
|
443
|
+
...contents,
|
|
444
|
+
};
|
|
445
|
+
return response;
|
|
446
|
+
};
|
|
447
|
+
const de_ListAvailableZonesCommand = async (output, context) => {
|
|
448
|
+
if (output.statusCode >= 300) {
|
|
449
|
+
return de_CommandError(output, context);
|
|
450
|
+
}
|
|
451
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
452
|
+
let contents = {};
|
|
453
|
+
contents = smithyClient._json(data);
|
|
454
|
+
const response = {
|
|
455
|
+
$metadata: deserializeMetadata(output),
|
|
456
|
+
...contents,
|
|
457
|
+
};
|
|
458
|
+
return response;
|
|
459
|
+
};
|
|
460
|
+
const de_ListHapgsCommand = async (output, context) => {
|
|
461
|
+
if (output.statusCode >= 300) {
|
|
462
|
+
return de_CommandError(output, context);
|
|
463
|
+
}
|
|
464
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
465
|
+
let contents = {};
|
|
466
|
+
contents = smithyClient._json(data);
|
|
467
|
+
const response = {
|
|
468
|
+
$metadata: deserializeMetadata(output),
|
|
469
|
+
...contents,
|
|
470
|
+
};
|
|
471
|
+
return response;
|
|
472
|
+
};
|
|
473
|
+
const de_ListHsmsCommand = async (output, context) => {
|
|
474
|
+
if (output.statusCode >= 300) {
|
|
475
|
+
return de_CommandError(output, context);
|
|
476
|
+
}
|
|
477
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
478
|
+
let contents = {};
|
|
479
|
+
contents = smithyClient._json(data);
|
|
480
|
+
const response = {
|
|
481
|
+
$metadata: deserializeMetadata(output),
|
|
482
|
+
...contents,
|
|
483
|
+
};
|
|
484
|
+
return response;
|
|
485
|
+
};
|
|
486
|
+
const de_ListLunaClientsCommand = async (output, context) => {
|
|
487
|
+
if (output.statusCode >= 300) {
|
|
488
|
+
return de_CommandError(output, context);
|
|
489
|
+
}
|
|
490
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
491
|
+
let contents = {};
|
|
492
|
+
contents = smithyClient._json(data);
|
|
493
|
+
const response = {
|
|
494
|
+
$metadata: deserializeMetadata(output),
|
|
495
|
+
...contents,
|
|
496
|
+
};
|
|
497
|
+
return response;
|
|
498
|
+
};
|
|
499
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
500
|
+
if (output.statusCode >= 300) {
|
|
501
|
+
return de_CommandError(output, context);
|
|
502
|
+
}
|
|
503
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
504
|
+
let contents = {};
|
|
505
|
+
contents = smithyClient._json(data);
|
|
506
|
+
const response = {
|
|
507
|
+
$metadata: deserializeMetadata(output),
|
|
508
|
+
...contents,
|
|
509
|
+
};
|
|
510
|
+
return response;
|
|
511
|
+
};
|
|
512
|
+
const de_ModifyHapgCommand = async (output, context) => {
|
|
513
|
+
if (output.statusCode >= 300) {
|
|
514
|
+
return de_CommandError(output, context);
|
|
515
|
+
}
|
|
516
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
517
|
+
let contents = {};
|
|
518
|
+
contents = smithyClient._json(data);
|
|
519
|
+
const response = {
|
|
520
|
+
$metadata: deserializeMetadata(output),
|
|
521
|
+
...contents,
|
|
522
|
+
};
|
|
523
|
+
return response;
|
|
524
|
+
};
|
|
525
|
+
const de_ModifyHsmCommand = async (output, context) => {
|
|
526
|
+
if (output.statusCode >= 300) {
|
|
527
|
+
return de_CommandError(output, context);
|
|
528
|
+
}
|
|
529
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
530
|
+
let contents = {};
|
|
531
|
+
contents = smithyClient._json(data);
|
|
532
|
+
const response = {
|
|
533
|
+
$metadata: deserializeMetadata(output),
|
|
534
|
+
...contents,
|
|
535
|
+
};
|
|
536
|
+
return response;
|
|
537
|
+
};
|
|
538
|
+
const de_ModifyLunaClientCommand = async (output, context) => {
|
|
539
|
+
if (output.statusCode >= 300) {
|
|
540
|
+
return de_CommandError(output, context);
|
|
541
|
+
}
|
|
542
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
543
|
+
let contents = {};
|
|
544
|
+
contents = smithyClient._json(data);
|
|
545
|
+
const response = {
|
|
546
|
+
$metadata: deserializeMetadata(output),
|
|
547
|
+
...contents,
|
|
548
|
+
};
|
|
549
|
+
return response;
|
|
550
|
+
};
|
|
551
|
+
const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
552
|
+
if (output.statusCode >= 300) {
|
|
553
|
+
return de_CommandError(output, context);
|
|
554
|
+
}
|
|
555
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
556
|
+
let contents = {};
|
|
557
|
+
contents = smithyClient._json(data);
|
|
558
|
+
const response = {
|
|
559
|
+
$metadata: deserializeMetadata(output),
|
|
560
|
+
...contents,
|
|
561
|
+
};
|
|
562
|
+
return response;
|
|
563
|
+
};
|
|
564
|
+
const de_CommandError = async (output, context) => {
|
|
565
|
+
const parsedOutput = {
|
|
566
|
+
...output,
|
|
567
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
568
|
+
};
|
|
569
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
570
|
+
switch (errorCode) {
|
|
571
|
+
case "CloudHsmInternalException":
|
|
572
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
573
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput);
|
|
574
|
+
case "CloudHsmServiceException":
|
|
575
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
576
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput);
|
|
577
|
+
case "InvalidRequestException":
|
|
578
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
579
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput);
|
|
580
|
+
default:
|
|
581
|
+
const parsedBody = parsedOutput.body;
|
|
582
|
+
return throwDefaultError({
|
|
583
|
+
output,
|
|
584
|
+
parsedBody,
|
|
585
|
+
errorCode,
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
const de_CloudHsmInternalExceptionRes = async (parsedOutput, context) => {
|
|
590
|
+
const body = parsedOutput.body;
|
|
591
|
+
const deserialized = smithyClient._json(body);
|
|
592
|
+
const exception = new CloudHsmInternalException({
|
|
593
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
594
|
+
...deserialized,
|
|
595
|
+
});
|
|
596
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
597
|
+
};
|
|
598
|
+
const de_CloudHsmServiceExceptionRes = async (parsedOutput, context) => {
|
|
599
|
+
const body = parsedOutput.body;
|
|
600
|
+
const deserialized = smithyClient._json(body);
|
|
601
|
+
const exception = new CloudHsmServiceException({
|
|
602
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
603
|
+
...deserialized,
|
|
604
|
+
});
|
|
605
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
606
|
+
};
|
|
607
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
608
|
+
const body = parsedOutput.body;
|
|
609
|
+
const deserialized = smithyClient._json(body);
|
|
610
|
+
const exception = new InvalidRequestException({
|
|
611
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
612
|
+
...deserialized,
|
|
613
|
+
});
|
|
614
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
615
|
+
};
|
|
616
|
+
const deserializeMetadata = (output) => ({
|
|
617
|
+
httpStatusCode: output.statusCode,
|
|
618
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
619
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
620
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
621
|
+
});
|
|
622
|
+
const throwDefaultError = smithyClient.withBaseException(CloudHSMServiceException);
|
|
623
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
624
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
625
|
+
const contents = {
|
|
626
|
+
protocol,
|
|
627
|
+
hostname,
|
|
628
|
+
port,
|
|
629
|
+
method: "POST",
|
|
630
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
631
|
+
headers,
|
|
632
|
+
};
|
|
633
|
+
if (body !== undefined) {
|
|
634
|
+
contents.body = body;
|
|
635
|
+
}
|
|
636
|
+
return new protocolHttp.HttpRequest(contents);
|
|
1008
637
|
};
|
|
638
|
+
function sharedHeaders(operation) {
|
|
639
|
+
return {
|
|
640
|
+
"content-type": "application/x-amz-json-1.1",
|
|
641
|
+
"x-amz-target": `CloudHsmFrontendService.${operation}`,
|
|
642
|
+
};
|
|
643
|
+
}
|
|
1009
644
|
|
|
1010
|
-
|
|
645
|
+
class AddTagsToResourceCommand extends smithyClient.Command
|
|
646
|
+
.classBuilder()
|
|
647
|
+
.ep(commonParams)
|
|
648
|
+
.m(function (Command, cs, config, o) {
|
|
649
|
+
return [
|
|
650
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
651
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
652
|
+
];
|
|
653
|
+
})
|
|
654
|
+
.s("CloudHsmFrontendService", "AddTagsToResource", {})
|
|
655
|
+
.n("CloudHSMClient", "AddTagsToResourceCommand")
|
|
656
|
+
.f(void 0, void 0)
|
|
657
|
+
.ser(se_AddTagsToResourceCommand)
|
|
658
|
+
.de(de_AddTagsToResourceCommand)
|
|
659
|
+
.build() {
|
|
660
|
+
}
|
|
1011
661
|
|
|
662
|
+
class CreateHapgCommand extends smithyClient.Command
|
|
663
|
+
.classBuilder()
|
|
664
|
+
.ep(commonParams)
|
|
665
|
+
.m(function (Command, cs, config, o) {
|
|
666
|
+
return [
|
|
667
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
668
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
669
|
+
];
|
|
670
|
+
})
|
|
671
|
+
.s("CloudHsmFrontendService", "CreateHapg", {})
|
|
672
|
+
.n("CloudHSMClient", "CreateHapgCommand")
|
|
673
|
+
.f(void 0, void 0)
|
|
674
|
+
.ser(se_CreateHapgCommand)
|
|
675
|
+
.de(de_CreateHapgCommand)
|
|
676
|
+
.build() {
|
|
677
|
+
}
|
|
1012
678
|
|
|
679
|
+
class CreateHsmCommand extends smithyClient.Command
|
|
680
|
+
.classBuilder()
|
|
681
|
+
.ep(commonParams)
|
|
682
|
+
.m(function (Command, cs, config, o) {
|
|
683
|
+
return [
|
|
684
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
685
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
686
|
+
];
|
|
687
|
+
})
|
|
688
|
+
.s("CloudHsmFrontendService", "CreateHsm", {})
|
|
689
|
+
.n("CloudHSMClient", "CreateHsmCommand")
|
|
690
|
+
.f(void 0, void 0)
|
|
691
|
+
.ser(se_CreateHsmCommand)
|
|
692
|
+
.de(de_CreateHsmCommand)
|
|
693
|
+
.build() {
|
|
694
|
+
}
|
|
1013
695
|
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
(
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
}
|
|
696
|
+
class CreateLunaClientCommand extends smithyClient.Command
|
|
697
|
+
.classBuilder()
|
|
698
|
+
.ep(commonParams)
|
|
699
|
+
.m(function (Command, cs, config, o) {
|
|
700
|
+
return [
|
|
701
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
702
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
703
|
+
];
|
|
704
|
+
})
|
|
705
|
+
.s("CloudHsmFrontendService", "CreateLunaClient", {})
|
|
706
|
+
.n("CloudHSMClient", "CreateLunaClientCommand")
|
|
707
|
+
.f(void 0, void 0)
|
|
708
|
+
.ser(se_CreateLunaClientCommand)
|
|
709
|
+
.de(de_CreateLunaClientCommand)
|
|
710
|
+
.build() {
|
|
711
|
+
}
|
|
1024
712
|
|
|
1025
|
-
|
|
713
|
+
class DeleteHapgCommand extends smithyClient.Command
|
|
714
|
+
.classBuilder()
|
|
715
|
+
.ep(commonParams)
|
|
716
|
+
.m(function (Command, cs, config, o) {
|
|
717
|
+
return [
|
|
718
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
719
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
720
|
+
];
|
|
721
|
+
})
|
|
722
|
+
.s("CloudHsmFrontendService", "DeleteHapg", {})
|
|
723
|
+
.n("CloudHSMClient", "DeleteHapgCommand")
|
|
724
|
+
.f(void 0, void 0)
|
|
725
|
+
.ser(se_DeleteHapgCommand)
|
|
726
|
+
.de(de_DeleteHapgCommand)
|
|
727
|
+
.build() {
|
|
728
|
+
}
|
|
1026
729
|
|
|
730
|
+
class DeleteHsmCommand extends smithyClient.Command
|
|
731
|
+
.classBuilder()
|
|
732
|
+
.ep(commonParams)
|
|
733
|
+
.m(function (Command, cs, config, o) {
|
|
734
|
+
return [
|
|
735
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
736
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
737
|
+
];
|
|
738
|
+
})
|
|
739
|
+
.s("CloudHsmFrontendService", "DeleteHsm", {})
|
|
740
|
+
.n("CloudHSMClient", "DeleteHsmCommand")
|
|
741
|
+
.f(void 0, void 0)
|
|
742
|
+
.ser(se_DeleteHsmCommand)
|
|
743
|
+
.de(de_DeleteHsmCommand)
|
|
744
|
+
.build() {
|
|
745
|
+
}
|
|
1027
746
|
|
|
747
|
+
class DeleteLunaClientCommand extends smithyClient.Command
|
|
748
|
+
.classBuilder()
|
|
749
|
+
.ep(commonParams)
|
|
750
|
+
.m(function (Command, cs, config, o) {
|
|
751
|
+
return [
|
|
752
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
753
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
754
|
+
];
|
|
755
|
+
})
|
|
756
|
+
.s("CloudHsmFrontendService", "DeleteLunaClient", {})
|
|
757
|
+
.n("CloudHSMClient", "DeleteLunaClientCommand")
|
|
758
|
+
.f(void 0, void 0)
|
|
759
|
+
.ser(se_DeleteLunaClientCommand)
|
|
760
|
+
.de(de_DeleteLunaClientCommand)
|
|
761
|
+
.build() {
|
|
762
|
+
}
|
|
1028
763
|
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
(
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
}
|
|
764
|
+
class DescribeHapgCommand extends smithyClient.Command
|
|
765
|
+
.classBuilder()
|
|
766
|
+
.ep(commonParams)
|
|
767
|
+
.m(function (Command, cs, config, o) {
|
|
768
|
+
return [
|
|
769
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
770
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
771
|
+
];
|
|
772
|
+
})
|
|
773
|
+
.s("CloudHsmFrontendService", "DescribeHapg", {})
|
|
774
|
+
.n("CloudHSMClient", "DescribeHapgCommand")
|
|
775
|
+
.f(void 0, void 0)
|
|
776
|
+
.ser(se_DescribeHapgCommand)
|
|
777
|
+
.de(de_DescribeHapgCommand)
|
|
778
|
+
.build() {
|
|
779
|
+
}
|
|
1039
780
|
|
|
1040
|
-
|
|
781
|
+
class DescribeHsmCommand extends smithyClient.Command
|
|
782
|
+
.classBuilder()
|
|
783
|
+
.ep(commonParams)
|
|
784
|
+
.m(function (Command, cs, config, o) {
|
|
785
|
+
return [
|
|
786
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
787
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
788
|
+
];
|
|
789
|
+
})
|
|
790
|
+
.s("CloudHsmFrontendService", "DescribeHsm", {})
|
|
791
|
+
.n("CloudHSMClient", "DescribeHsmCommand")
|
|
792
|
+
.f(void 0, void 0)
|
|
793
|
+
.ser(se_DescribeHsmCommand)
|
|
794
|
+
.de(de_DescribeHsmCommand)
|
|
795
|
+
.build() {
|
|
796
|
+
}
|
|
1041
797
|
|
|
798
|
+
class DescribeLunaClientCommand extends smithyClient.Command
|
|
799
|
+
.classBuilder()
|
|
800
|
+
.ep(commonParams)
|
|
801
|
+
.m(function (Command, cs, config, o) {
|
|
802
|
+
return [
|
|
803
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
804
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
805
|
+
];
|
|
806
|
+
})
|
|
807
|
+
.s("CloudHsmFrontendService", "DescribeLunaClient", {})
|
|
808
|
+
.n("CloudHSMClient", "DescribeLunaClientCommand")
|
|
809
|
+
.f(void 0, void 0)
|
|
810
|
+
.ser(se_DescribeLunaClientCommand)
|
|
811
|
+
.de(de_DescribeLunaClientCommand)
|
|
812
|
+
.build() {
|
|
813
|
+
}
|
|
1042
814
|
|
|
815
|
+
class GetConfigCommand extends smithyClient.Command
|
|
816
|
+
.classBuilder()
|
|
817
|
+
.ep(commonParams)
|
|
818
|
+
.m(function (Command, cs, config, o) {
|
|
819
|
+
return [
|
|
820
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
821
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
822
|
+
];
|
|
823
|
+
})
|
|
824
|
+
.s("CloudHsmFrontendService", "GetConfig", {})
|
|
825
|
+
.n("CloudHSMClient", "GetConfigCommand")
|
|
826
|
+
.f(void 0, void 0)
|
|
827
|
+
.ser(se_GetConfigCommand)
|
|
828
|
+
.de(de_GetConfigCommand)
|
|
829
|
+
.build() {
|
|
830
|
+
}
|
|
1043
831
|
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
(
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
}
|
|
832
|
+
class ListAvailableZonesCommand extends smithyClient.Command
|
|
833
|
+
.classBuilder()
|
|
834
|
+
.ep(commonParams)
|
|
835
|
+
.m(function (Command, cs, config, o) {
|
|
836
|
+
return [
|
|
837
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
838
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
839
|
+
];
|
|
840
|
+
})
|
|
841
|
+
.s("CloudHsmFrontendService", "ListAvailableZones", {})
|
|
842
|
+
.n("CloudHSMClient", "ListAvailableZonesCommand")
|
|
843
|
+
.f(void 0, void 0)
|
|
844
|
+
.ser(se_ListAvailableZonesCommand)
|
|
845
|
+
.de(de_ListAvailableZonesCommand)
|
|
846
|
+
.build() {
|
|
847
|
+
}
|
|
1054
848
|
|
|
1055
|
-
|
|
849
|
+
class ListHapgsCommand extends smithyClient.Command
|
|
850
|
+
.classBuilder()
|
|
851
|
+
.ep(commonParams)
|
|
852
|
+
.m(function (Command, cs, config, o) {
|
|
853
|
+
return [
|
|
854
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
855
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
856
|
+
];
|
|
857
|
+
})
|
|
858
|
+
.s("CloudHsmFrontendService", "ListHapgs", {})
|
|
859
|
+
.n("CloudHSMClient", "ListHapgsCommand")
|
|
860
|
+
.f(void 0, void 0)
|
|
861
|
+
.ser(se_ListHapgsCommand)
|
|
862
|
+
.de(de_ListHapgsCommand)
|
|
863
|
+
.build() {
|
|
864
|
+
}
|
|
1056
865
|
|
|
866
|
+
class ListHsmsCommand extends smithyClient.Command
|
|
867
|
+
.classBuilder()
|
|
868
|
+
.ep(commonParams)
|
|
869
|
+
.m(function (Command, cs, config, o) {
|
|
870
|
+
return [
|
|
871
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
872
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
873
|
+
];
|
|
874
|
+
})
|
|
875
|
+
.s("CloudHsmFrontendService", "ListHsms", {})
|
|
876
|
+
.n("CloudHSMClient", "ListHsmsCommand")
|
|
877
|
+
.f(void 0, void 0)
|
|
878
|
+
.ser(se_ListHsmsCommand)
|
|
879
|
+
.de(de_ListHsmsCommand)
|
|
880
|
+
.build() {
|
|
881
|
+
}
|
|
1057
882
|
|
|
883
|
+
class ListLunaClientsCommand extends smithyClient.Command
|
|
884
|
+
.classBuilder()
|
|
885
|
+
.ep(commonParams)
|
|
886
|
+
.m(function (Command, cs, config, o) {
|
|
887
|
+
return [
|
|
888
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
889
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
890
|
+
];
|
|
891
|
+
})
|
|
892
|
+
.s("CloudHsmFrontendService", "ListLunaClients", {})
|
|
893
|
+
.n("CloudHSMClient", "ListLunaClientsCommand")
|
|
894
|
+
.f(void 0, void 0)
|
|
895
|
+
.ser(se_ListLunaClientsCommand)
|
|
896
|
+
.de(de_ListLunaClientsCommand)
|
|
897
|
+
.build() {
|
|
898
|
+
}
|
|
1058
899
|
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
(
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
}
|
|
900
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
901
|
+
.classBuilder()
|
|
902
|
+
.ep(commonParams)
|
|
903
|
+
.m(function (Command, cs, config, o) {
|
|
904
|
+
return [
|
|
905
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
906
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
907
|
+
];
|
|
908
|
+
})
|
|
909
|
+
.s("CloudHsmFrontendService", "ListTagsForResource", {})
|
|
910
|
+
.n("CloudHSMClient", "ListTagsForResourceCommand")
|
|
911
|
+
.f(void 0, void 0)
|
|
912
|
+
.ser(se_ListTagsForResourceCommand)
|
|
913
|
+
.de(de_ListTagsForResourceCommand)
|
|
914
|
+
.build() {
|
|
915
|
+
}
|
|
1069
916
|
|
|
1070
|
-
|
|
917
|
+
class ModifyHapgCommand extends smithyClient.Command
|
|
918
|
+
.classBuilder()
|
|
919
|
+
.ep(commonParams)
|
|
920
|
+
.m(function (Command, cs, config, o) {
|
|
921
|
+
return [
|
|
922
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
923
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
924
|
+
];
|
|
925
|
+
})
|
|
926
|
+
.s("CloudHsmFrontendService", "ModifyHapg", {})
|
|
927
|
+
.n("CloudHSMClient", "ModifyHapgCommand")
|
|
928
|
+
.f(void 0, void 0)
|
|
929
|
+
.ser(se_ModifyHapgCommand)
|
|
930
|
+
.de(de_ModifyHapgCommand)
|
|
931
|
+
.build() {
|
|
932
|
+
}
|
|
1071
933
|
|
|
934
|
+
class ModifyHsmCommand extends smithyClient.Command
|
|
935
|
+
.classBuilder()
|
|
936
|
+
.ep(commonParams)
|
|
937
|
+
.m(function (Command, cs, config, o) {
|
|
938
|
+
return [
|
|
939
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
940
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
941
|
+
];
|
|
942
|
+
})
|
|
943
|
+
.s("CloudHsmFrontendService", "ModifyHsm", {})
|
|
944
|
+
.n("CloudHSMClient", "ModifyHsmCommand")
|
|
945
|
+
.f(void 0, void 0)
|
|
946
|
+
.ser(se_ModifyHsmCommand)
|
|
947
|
+
.de(de_ModifyHsmCommand)
|
|
948
|
+
.build() {
|
|
949
|
+
}
|
|
1072
950
|
|
|
951
|
+
class ModifyLunaClientCommand extends smithyClient.Command
|
|
952
|
+
.classBuilder()
|
|
953
|
+
.ep(commonParams)
|
|
954
|
+
.m(function (Command, cs, config, o) {
|
|
955
|
+
return [
|
|
956
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
957
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
958
|
+
];
|
|
959
|
+
})
|
|
960
|
+
.s("CloudHsmFrontendService", "ModifyLunaClient", {})
|
|
961
|
+
.n("CloudHSMClient", "ModifyLunaClientCommand")
|
|
962
|
+
.f(void 0, void 0)
|
|
963
|
+
.ser(se_ModifyLunaClientCommand)
|
|
964
|
+
.de(de_ModifyLunaClientCommand)
|
|
965
|
+
.build() {
|
|
966
|
+
}
|
|
1073
967
|
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
(
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
}
|
|
968
|
+
class RemoveTagsFromResourceCommand extends smithyClient.Command
|
|
969
|
+
.classBuilder()
|
|
970
|
+
.ep(commonParams)
|
|
971
|
+
.m(function (Command, cs, config, o) {
|
|
972
|
+
return [
|
|
973
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
974
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
975
|
+
];
|
|
976
|
+
})
|
|
977
|
+
.s("CloudHsmFrontendService", "RemoveTagsFromResource", {})
|
|
978
|
+
.n("CloudHSMClient", "RemoveTagsFromResourceCommand")
|
|
979
|
+
.f(void 0, void 0)
|
|
980
|
+
.ser(se_RemoveTagsFromResourceCommand)
|
|
981
|
+
.de(de_RemoveTagsFromResourceCommand)
|
|
982
|
+
.build() {
|
|
983
|
+
}
|
|
1084
984
|
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
RemoveTagsFromResourceCommand
|
|
1107
|
-
};
|
|
1108
|
-
var CloudHSM = class extends CloudHSMClient {
|
|
1109
|
-
static {
|
|
1110
|
-
__name(this, "CloudHSM");
|
|
1111
|
-
}
|
|
985
|
+
const commands = {
|
|
986
|
+
AddTagsToResourceCommand,
|
|
987
|
+
CreateHapgCommand,
|
|
988
|
+
CreateHsmCommand,
|
|
989
|
+
CreateLunaClientCommand,
|
|
990
|
+
DeleteHapgCommand,
|
|
991
|
+
DeleteHsmCommand,
|
|
992
|
+
DeleteLunaClientCommand,
|
|
993
|
+
DescribeHapgCommand,
|
|
994
|
+
DescribeHsmCommand,
|
|
995
|
+
DescribeLunaClientCommand,
|
|
996
|
+
GetConfigCommand,
|
|
997
|
+
ListAvailableZonesCommand,
|
|
998
|
+
ListHapgsCommand,
|
|
999
|
+
ListHsmsCommand,
|
|
1000
|
+
ListLunaClientsCommand,
|
|
1001
|
+
ListTagsForResourceCommand,
|
|
1002
|
+
ModifyHapgCommand,
|
|
1003
|
+
ModifyHsmCommand,
|
|
1004
|
+
ModifyLunaClientCommand,
|
|
1005
|
+
RemoveTagsFromResourceCommand,
|
|
1112
1006
|
};
|
|
1113
|
-
|
|
1114
|
-
|
|
1007
|
+
class CloudHSM extends CloudHSMClient {
|
|
1008
|
+
}
|
|
1009
|
+
smithyClient.createAggregatedClient(commands, CloudHSM);
|
|
1115
1010
|
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
CloudHSMClient,
|
|
1120
|
-
CloudHSM,
|
|
1121
|
-
$Command,
|
|
1122
|
-
AddTagsToResourceCommand,
|
|
1123
|
-
CreateHapgCommand,
|
|
1124
|
-
CreateHsmCommand,
|
|
1125
|
-
CreateLunaClientCommand,
|
|
1126
|
-
DeleteHapgCommand,
|
|
1127
|
-
DeleteHsmCommand,
|
|
1128
|
-
DeleteLunaClientCommand,
|
|
1129
|
-
DescribeHapgCommand,
|
|
1130
|
-
DescribeHsmCommand,
|
|
1131
|
-
DescribeLunaClientCommand,
|
|
1132
|
-
GetConfigCommand,
|
|
1133
|
-
ListAvailableZonesCommand,
|
|
1134
|
-
ListHapgsCommand,
|
|
1135
|
-
ListHsmsCommand,
|
|
1136
|
-
ListLunaClientsCommand,
|
|
1137
|
-
ListTagsForResourceCommand,
|
|
1138
|
-
ModifyHapgCommand,
|
|
1139
|
-
ModifyHsmCommand,
|
|
1140
|
-
ModifyLunaClientCommand,
|
|
1141
|
-
RemoveTagsFromResourceCommand,
|
|
1142
|
-
CloudHsmInternalException,
|
|
1143
|
-
CloudHsmServiceException,
|
|
1144
|
-
InvalidRequestException,
|
|
1145
|
-
ClientVersion,
|
|
1146
|
-
SubscriptionType,
|
|
1147
|
-
CloudHsmObjectState,
|
|
1148
|
-
HsmStatus
|
|
1011
|
+
Object.defineProperty(exports, "$Command", {
|
|
1012
|
+
enumerable: true,
|
|
1013
|
+
get: function () { return smithyClient.Command; }
|
|
1149
1014
|
});
|
|
1150
|
-
|
|
1015
|
+
Object.defineProperty(exports, "__Client", {
|
|
1016
|
+
enumerable: true,
|
|
1017
|
+
get: function () { return smithyClient.Client; }
|
|
1018
|
+
});
|
|
1019
|
+
exports.AddTagsToResourceCommand = AddTagsToResourceCommand;
|
|
1020
|
+
exports.ClientVersion = ClientVersion;
|
|
1021
|
+
exports.CloudHSM = CloudHSM;
|
|
1022
|
+
exports.CloudHSMClient = CloudHSMClient;
|
|
1023
|
+
exports.CloudHSMServiceException = CloudHSMServiceException;
|
|
1024
|
+
exports.CloudHsmInternalException = CloudHsmInternalException;
|
|
1025
|
+
exports.CloudHsmObjectState = CloudHsmObjectState;
|
|
1026
|
+
exports.CloudHsmServiceException = CloudHsmServiceException;
|
|
1027
|
+
exports.CreateHapgCommand = CreateHapgCommand;
|
|
1028
|
+
exports.CreateHsmCommand = CreateHsmCommand;
|
|
1029
|
+
exports.CreateLunaClientCommand = CreateLunaClientCommand;
|
|
1030
|
+
exports.DeleteHapgCommand = DeleteHapgCommand;
|
|
1031
|
+
exports.DeleteHsmCommand = DeleteHsmCommand;
|
|
1032
|
+
exports.DeleteLunaClientCommand = DeleteLunaClientCommand;
|
|
1033
|
+
exports.DescribeHapgCommand = DescribeHapgCommand;
|
|
1034
|
+
exports.DescribeHsmCommand = DescribeHsmCommand;
|
|
1035
|
+
exports.DescribeLunaClientCommand = DescribeLunaClientCommand;
|
|
1036
|
+
exports.GetConfigCommand = GetConfigCommand;
|
|
1037
|
+
exports.HsmStatus = HsmStatus;
|
|
1038
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
1039
|
+
exports.ListAvailableZonesCommand = ListAvailableZonesCommand;
|
|
1040
|
+
exports.ListHapgsCommand = ListHapgsCommand;
|
|
1041
|
+
exports.ListHsmsCommand = ListHsmsCommand;
|
|
1042
|
+
exports.ListLunaClientsCommand = ListLunaClientsCommand;
|
|
1043
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1044
|
+
exports.ModifyHapgCommand = ModifyHapgCommand;
|
|
1045
|
+
exports.ModifyHsmCommand = ModifyHsmCommand;
|
|
1046
|
+
exports.ModifyLunaClientCommand = ModifyLunaClientCommand;
|
|
1047
|
+
exports.RemoveTagsFromResourceCommand = RemoveTagsFromResourceCommand;
|
|
1048
|
+
exports.SubscriptionType = SubscriptionType;
|