@aws-sdk/client-cloudhsm-v2 3.899.0 → 3.906.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 +1166 -1294
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1,1350 +1,1222 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
CloudHsmInvalidRequestException: () => CloudHsmInvalidRequestException,
|
|
33
|
-
CloudHsmResourceLimitExceededException: () => CloudHsmResourceLimitExceededException,
|
|
34
|
-
CloudHsmResourceNotFoundException: () => CloudHsmResourceNotFoundException,
|
|
35
|
-
CloudHsmServiceException: () => CloudHsmServiceException,
|
|
36
|
-
CloudHsmTagException: () => CloudHsmTagException,
|
|
37
|
-
ClusterMode: () => ClusterMode,
|
|
38
|
-
ClusterState: () => ClusterState,
|
|
39
|
-
CopyBackupToRegionCommand: () => CopyBackupToRegionCommand,
|
|
40
|
-
CreateClusterCommand: () => CreateClusterCommand,
|
|
41
|
-
CreateHsmCommand: () => CreateHsmCommand,
|
|
42
|
-
DeleteBackupCommand: () => DeleteBackupCommand,
|
|
43
|
-
DeleteClusterCommand: () => DeleteClusterCommand,
|
|
44
|
-
DeleteHsmCommand: () => DeleteHsmCommand,
|
|
45
|
-
DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
|
|
46
|
-
DescribeBackupsCommand: () => DescribeBackupsCommand,
|
|
47
|
-
DescribeClustersCommand: () => DescribeClustersCommand,
|
|
48
|
-
GetResourcePolicyCommand: () => GetResourcePolicyCommand,
|
|
49
|
-
HsmState: () => HsmState,
|
|
50
|
-
InitializeClusterCommand: () => InitializeClusterCommand,
|
|
51
|
-
ListTagsCommand: () => ListTagsCommand,
|
|
52
|
-
ModifyBackupAttributesCommand: () => ModifyBackupAttributesCommand,
|
|
53
|
-
ModifyClusterCommand: () => ModifyClusterCommand,
|
|
54
|
-
NetworkType: () => NetworkType,
|
|
55
|
-
PutResourcePolicyCommand: () => PutResourcePolicyCommand,
|
|
56
|
-
RestoreBackupCommand: () => RestoreBackupCommand,
|
|
57
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
58
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
59
|
-
__Client: () => import_smithy_client.Client,
|
|
60
|
-
paginateDescribeBackups: () => paginateDescribeBackups,
|
|
61
|
-
paginateDescribeClusters: () => paginateDescribeClusters,
|
|
62
|
-
paginateListTags: () => paginateListTags
|
|
63
|
-
});
|
|
64
|
-
module.exports = __toCommonJS(index_exports);
|
|
65
|
-
|
|
66
|
-
// src/CloudHSMV2Client.ts
|
|
67
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
68
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
69
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
70
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
71
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
72
|
-
var import_core = require("@smithy/core");
|
|
73
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
74
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
75
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
76
|
-
|
|
77
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
78
|
-
|
|
79
|
-
// src/endpoint/EndpointParameters.ts
|
|
80
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
81
|
-
return Object.assign(options, {
|
|
82
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
83
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
84
|
-
defaultSigningName: "cloudhsm"
|
|
85
|
-
});
|
|
86
|
-
}, "resolveClientEndpointParameters");
|
|
87
|
-
var commonParams = {
|
|
88
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
89
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
90
|
-
Region: { type: "builtInParams", name: "region" },
|
|
91
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
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
|
+
});
|
|
26
|
+
};
|
|
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" },
|
|
92
32
|
};
|
|
93
33
|
|
|
94
|
-
|
|
95
|
-
|
|
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
|
+
};
|
|
71
|
+
};
|
|
96
72
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
+
};
|
|
101
78
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
79
|
+
class CloudHSMV2Client 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.defaultCloudHSMV2HttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
130
107
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
136
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
137
|
-
credentials: config.credentials()
|
|
138
|
-
};
|
|
139
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
140
112
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
148
|
-
);
|
|
149
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
150
|
-
return Object.assign(
|
|
151
|
-
runtimeConfig,
|
|
152
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
153
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
154
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
155
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
156
|
-
);
|
|
157
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class CloudHSMV2ServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, CloudHSMV2ServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
158
119
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* The resolved configuration of CloudHSMV2Client class. This is resolved and normalized from the {@link CloudHSMV2ClientConfig | constructor configuration interface}.
|
|
166
|
-
*/
|
|
167
|
-
config;
|
|
168
|
-
constructor(...[configuration]) {
|
|
169
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
170
|
-
super(_config_0);
|
|
171
|
-
this.initConfig = _config_0;
|
|
172
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
173
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
174
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
175
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
176
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
177
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
178
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
179
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
180
|
-
this.config = _config_8;
|
|
181
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
182
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
183
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
184
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
185
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
186
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
187
|
-
this.middlewareStack.use(
|
|
188
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
189
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultCloudHSMV2HttpAuthSchemeParametersProvider,
|
|
190
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
191
|
-
"aws.auth#sigv4": config.credentials
|
|
192
|
-
}), "identityProviderConfigProvider")
|
|
193
|
-
})
|
|
194
|
-
);
|
|
195
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
199
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
200
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
201
|
-
*/
|
|
202
|
-
destroy() {
|
|
203
|
-
super.destroy();
|
|
204
|
-
}
|
|
120
|
+
const BackupState = {
|
|
121
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
122
|
+
DELETED: "DELETED",
|
|
123
|
+
PENDING_DELETION: "PENDING_DELETION",
|
|
124
|
+
READY: "READY",
|
|
205
125
|
};
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
// src/protocols/Aws_json1_1.ts
|
|
216
|
-
var import_core2 = require("@aws-sdk/core");
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
// src/models/CloudHSMV2ServiceException.ts
|
|
221
|
-
|
|
222
|
-
var CloudHSMV2ServiceException = class _CloudHSMV2ServiceException extends import_smithy_client.ServiceException {
|
|
223
|
-
static {
|
|
224
|
-
__name(this, "CloudHSMV2ServiceException");
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* @internal
|
|
228
|
-
*/
|
|
229
|
-
constructor(options) {
|
|
230
|
-
super(options);
|
|
231
|
-
Object.setPrototypeOf(this, _CloudHSMV2ServiceException.prototype);
|
|
232
|
-
}
|
|
126
|
+
const ClusterMode = {
|
|
127
|
+
FIPS: "FIPS",
|
|
128
|
+
NON_FIPS: "NON_FIPS",
|
|
129
|
+
};
|
|
130
|
+
const BackupPolicy = {
|
|
131
|
+
DEFAULT: "DEFAULT",
|
|
132
|
+
};
|
|
133
|
+
const BackupRetentionType = {
|
|
134
|
+
DAYS: "DAYS",
|
|
233
135
|
};
|
|
136
|
+
class CloudHsmAccessDeniedException extends CloudHSMV2ServiceException {
|
|
137
|
+
name = "CloudHsmAccessDeniedException";
|
|
138
|
+
$fault = "client";
|
|
139
|
+
Message;
|
|
140
|
+
constructor(opts) {
|
|
141
|
+
super({
|
|
142
|
+
name: "CloudHsmAccessDeniedException",
|
|
143
|
+
$fault: "client",
|
|
144
|
+
...opts,
|
|
145
|
+
});
|
|
146
|
+
Object.setPrototypeOf(this, CloudHsmAccessDeniedException.prototype);
|
|
147
|
+
this.Message = opts.Message;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
class CloudHsmInternalFailureException extends CloudHSMV2ServiceException {
|
|
151
|
+
name = "CloudHsmInternalFailureException";
|
|
152
|
+
$fault = "server";
|
|
153
|
+
Message;
|
|
154
|
+
constructor(opts) {
|
|
155
|
+
super({
|
|
156
|
+
name: "CloudHsmInternalFailureException",
|
|
157
|
+
$fault: "server",
|
|
158
|
+
...opts,
|
|
159
|
+
});
|
|
160
|
+
Object.setPrototypeOf(this, CloudHsmInternalFailureException.prototype);
|
|
161
|
+
this.Message = opts.Message;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
class CloudHsmInvalidRequestException extends CloudHSMV2ServiceException {
|
|
165
|
+
name = "CloudHsmInvalidRequestException";
|
|
166
|
+
$fault = "client";
|
|
167
|
+
Message;
|
|
168
|
+
constructor(opts) {
|
|
169
|
+
super({
|
|
170
|
+
name: "CloudHsmInvalidRequestException",
|
|
171
|
+
$fault: "client",
|
|
172
|
+
...opts,
|
|
173
|
+
});
|
|
174
|
+
Object.setPrototypeOf(this, CloudHsmInvalidRequestException.prototype);
|
|
175
|
+
this.Message = opts.Message;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
class CloudHsmResourceNotFoundException extends CloudHSMV2ServiceException {
|
|
179
|
+
name = "CloudHsmResourceNotFoundException";
|
|
180
|
+
$fault = "client";
|
|
181
|
+
Message;
|
|
182
|
+
constructor(opts) {
|
|
183
|
+
super({
|
|
184
|
+
name: "CloudHsmResourceNotFoundException",
|
|
185
|
+
$fault: "client",
|
|
186
|
+
...opts,
|
|
187
|
+
});
|
|
188
|
+
Object.setPrototypeOf(this, CloudHsmResourceNotFoundException.prototype);
|
|
189
|
+
this.Message = opts.Message;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
class CloudHsmServiceException extends CloudHSMV2ServiceException {
|
|
193
|
+
name = "CloudHsmServiceException";
|
|
194
|
+
$fault = "client";
|
|
195
|
+
Message;
|
|
196
|
+
constructor(opts) {
|
|
197
|
+
super({
|
|
198
|
+
name: "CloudHsmServiceException",
|
|
199
|
+
$fault: "client",
|
|
200
|
+
...opts,
|
|
201
|
+
});
|
|
202
|
+
Object.setPrototypeOf(this, CloudHsmServiceException.prototype);
|
|
203
|
+
this.Message = opts.Message;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
class CloudHsmTagException extends CloudHSMV2ServiceException {
|
|
207
|
+
name = "CloudHsmTagException";
|
|
208
|
+
$fault = "client";
|
|
209
|
+
Message;
|
|
210
|
+
constructor(opts) {
|
|
211
|
+
super({
|
|
212
|
+
name: "CloudHsmTagException",
|
|
213
|
+
$fault: "client",
|
|
214
|
+
...opts,
|
|
215
|
+
});
|
|
216
|
+
Object.setPrototypeOf(this, CloudHsmTagException.prototype);
|
|
217
|
+
this.Message = opts.Message;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
const NetworkType = {
|
|
221
|
+
DUALSTACK: "DUALSTACK",
|
|
222
|
+
IPV4: "IPV4",
|
|
223
|
+
};
|
|
224
|
+
const HsmState = {
|
|
225
|
+
ACTIVE: "ACTIVE",
|
|
226
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
227
|
+
DEGRADED: "DEGRADED",
|
|
228
|
+
DELETED: "DELETED",
|
|
229
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
230
|
+
};
|
|
231
|
+
const ClusterState = {
|
|
232
|
+
ACTIVE: "ACTIVE",
|
|
233
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
234
|
+
DEGRADED: "DEGRADED",
|
|
235
|
+
DELETED: "DELETED",
|
|
236
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
237
|
+
INITIALIZED: "INITIALIZED",
|
|
238
|
+
INITIALIZE_IN_PROGRESS: "INITIALIZE_IN_PROGRESS",
|
|
239
|
+
MODIFY_IN_PROGRESS: "MODIFY_IN_PROGRESS",
|
|
240
|
+
ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
|
|
241
|
+
UNINITIALIZED: "UNINITIALIZED",
|
|
242
|
+
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
|
|
243
|
+
};
|
|
244
|
+
class CloudHsmResourceLimitExceededException extends CloudHSMV2ServiceException {
|
|
245
|
+
name = "CloudHsmResourceLimitExceededException";
|
|
246
|
+
$fault = "client";
|
|
247
|
+
Message;
|
|
248
|
+
constructor(opts) {
|
|
249
|
+
super({
|
|
250
|
+
name: "CloudHsmResourceLimitExceededException",
|
|
251
|
+
$fault: "client",
|
|
252
|
+
...opts,
|
|
253
|
+
});
|
|
254
|
+
Object.setPrototypeOf(this, CloudHsmResourceLimitExceededException.prototype);
|
|
255
|
+
this.Message = opts.Message;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
234
258
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
259
|
+
const se_CopyBackupToRegionCommand = async (input, context) => {
|
|
260
|
+
const headers = sharedHeaders("CopyBackupToRegion");
|
|
261
|
+
let body;
|
|
262
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
263
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
264
|
+
};
|
|
265
|
+
const se_CreateClusterCommand = async (input, context) => {
|
|
266
|
+
const headers = sharedHeaders("CreateCluster");
|
|
267
|
+
let body;
|
|
268
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
269
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
270
|
+
};
|
|
271
|
+
const se_CreateHsmCommand = async (input, context) => {
|
|
272
|
+
const headers = sharedHeaders("CreateHsm");
|
|
273
|
+
let body;
|
|
274
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
275
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
|
+
};
|
|
277
|
+
const se_DeleteBackupCommand = async (input, context) => {
|
|
278
|
+
const headers = sharedHeaders("DeleteBackup");
|
|
279
|
+
let body;
|
|
280
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
281
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
+
};
|
|
283
|
+
const se_DeleteClusterCommand = async (input, context) => {
|
|
284
|
+
const headers = sharedHeaders("DeleteCluster");
|
|
285
|
+
let body;
|
|
286
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
287
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
+
};
|
|
289
|
+
const se_DeleteHsmCommand = async (input, context) => {
|
|
290
|
+
const headers = sharedHeaders("DeleteHsm");
|
|
291
|
+
let body;
|
|
292
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
293
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
|
+
};
|
|
295
|
+
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
296
|
+
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
297
|
+
let body;
|
|
298
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
299
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
300
|
+
};
|
|
301
|
+
const se_DescribeBackupsCommand = async (input, context) => {
|
|
302
|
+
const headers = sharedHeaders("DescribeBackups");
|
|
303
|
+
let body;
|
|
304
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
305
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
306
|
+
};
|
|
307
|
+
const se_DescribeClustersCommand = async (input, context) => {
|
|
308
|
+
const headers = sharedHeaders("DescribeClusters");
|
|
309
|
+
let body;
|
|
310
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
311
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
312
|
+
};
|
|
313
|
+
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
314
|
+
const headers = sharedHeaders("GetResourcePolicy");
|
|
315
|
+
let body;
|
|
316
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
317
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
|
+
};
|
|
319
|
+
const se_InitializeClusterCommand = async (input, context) => {
|
|
320
|
+
const headers = sharedHeaders("InitializeCluster");
|
|
321
|
+
let body;
|
|
322
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
323
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
+
};
|
|
325
|
+
const se_ListTagsCommand = async (input, context) => {
|
|
326
|
+
const headers = sharedHeaders("ListTags");
|
|
327
|
+
let body;
|
|
328
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
329
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
330
|
+
};
|
|
331
|
+
const se_ModifyBackupAttributesCommand = async (input, context) => {
|
|
332
|
+
const headers = sharedHeaders("ModifyBackupAttributes");
|
|
333
|
+
let body;
|
|
334
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
335
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
336
|
+
};
|
|
337
|
+
const se_ModifyClusterCommand = async (input, context) => {
|
|
338
|
+
const headers = sharedHeaders("ModifyCluster");
|
|
339
|
+
let body;
|
|
340
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
341
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
342
|
+
};
|
|
343
|
+
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
344
|
+
const headers = sharedHeaders("PutResourcePolicy");
|
|
345
|
+
let body;
|
|
346
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
347
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
348
|
+
};
|
|
349
|
+
const se_RestoreBackupCommand = async (input, context) => {
|
|
350
|
+
const headers = sharedHeaders("RestoreBackup");
|
|
351
|
+
let body;
|
|
352
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
353
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
354
|
+
};
|
|
355
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
356
|
+
const headers = sharedHeaders("TagResource");
|
|
357
|
+
let body;
|
|
358
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
359
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
360
|
+
};
|
|
361
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
362
|
+
const headers = sharedHeaders("UntagResource");
|
|
363
|
+
let body;
|
|
364
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
365
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
+
};
|
|
367
|
+
const de_CopyBackupToRegionCommand = async (output, context) => {
|
|
368
|
+
if (output.statusCode >= 300) {
|
|
369
|
+
return de_CommandError(output, context);
|
|
370
|
+
}
|
|
371
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
372
|
+
let contents = {};
|
|
373
|
+
contents = de_CopyBackupToRegionResponse(data);
|
|
374
|
+
const response = {
|
|
375
|
+
$metadata: deserializeMetadata(output),
|
|
376
|
+
...contents,
|
|
377
|
+
};
|
|
378
|
+
return response;
|
|
379
|
+
};
|
|
380
|
+
const de_CreateClusterCommand = async (output, context) => {
|
|
381
|
+
if (output.statusCode >= 300) {
|
|
382
|
+
return de_CommandError(output, context);
|
|
383
|
+
}
|
|
384
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
385
|
+
let contents = {};
|
|
386
|
+
contents = de_CreateClusterResponse(data);
|
|
387
|
+
const response = {
|
|
388
|
+
$metadata: deserializeMetadata(output),
|
|
389
|
+
...contents,
|
|
390
|
+
};
|
|
391
|
+
return response;
|
|
392
|
+
};
|
|
393
|
+
const de_CreateHsmCommand = async (output, context) => {
|
|
394
|
+
if (output.statusCode >= 300) {
|
|
395
|
+
return de_CommandError(output, context);
|
|
396
|
+
}
|
|
397
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
398
|
+
let contents = {};
|
|
399
|
+
contents = smithyClient._json(data);
|
|
400
|
+
const response = {
|
|
401
|
+
$metadata: deserializeMetadata(output),
|
|
402
|
+
...contents,
|
|
403
|
+
};
|
|
404
|
+
return response;
|
|
405
|
+
};
|
|
406
|
+
const de_DeleteBackupCommand = async (output, context) => {
|
|
407
|
+
if (output.statusCode >= 300) {
|
|
408
|
+
return de_CommandError(output, context);
|
|
409
|
+
}
|
|
410
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
411
|
+
let contents = {};
|
|
412
|
+
contents = de_DeleteBackupResponse(data);
|
|
413
|
+
const response = {
|
|
414
|
+
$metadata: deserializeMetadata(output),
|
|
415
|
+
...contents,
|
|
416
|
+
};
|
|
417
|
+
return response;
|
|
418
|
+
};
|
|
419
|
+
const de_DeleteClusterCommand = async (output, context) => {
|
|
420
|
+
if (output.statusCode >= 300) {
|
|
421
|
+
return de_CommandError(output, context);
|
|
422
|
+
}
|
|
423
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
424
|
+
let contents = {};
|
|
425
|
+
contents = de_DeleteClusterResponse(data);
|
|
426
|
+
const response = {
|
|
427
|
+
$metadata: deserializeMetadata(output),
|
|
428
|
+
...contents,
|
|
429
|
+
};
|
|
430
|
+
return response;
|
|
431
|
+
};
|
|
432
|
+
const de_DeleteHsmCommand = async (output, context) => {
|
|
433
|
+
if (output.statusCode >= 300) {
|
|
434
|
+
return de_CommandError(output, context);
|
|
435
|
+
}
|
|
436
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
437
|
+
let contents = {};
|
|
438
|
+
contents = smithyClient._json(data);
|
|
439
|
+
const response = {
|
|
440
|
+
$metadata: deserializeMetadata(output),
|
|
441
|
+
...contents,
|
|
442
|
+
};
|
|
443
|
+
return response;
|
|
444
|
+
};
|
|
445
|
+
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
446
|
+
if (output.statusCode >= 300) {
|
|
447
|
+
return de_CommandError(output, context);
|
|
448
|
+
}
|
|
449
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
450
|
+
let contents = {};
|
|
451
|
+
contents = smithyClient._json(data);
|
|
452
|
+
const response = {
|
|
453
|
+
$metadata: deserializeMetadata(output),
|
|
454
|
+
...contents,
|
|
455
|
+
};
|
|
456
|
+
return response;
|
|
457
|
+
};
|
|
458
|
+
const de_DescribeBackupsCommand = async (output, context) => {
|
|
459
|
+
if (output.statusCode >= 300) {
|
|
460
|
+
return de_CommandError(output, context);
|
|
461
|
+
}
|
|
462
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
463
|
+
let contents = {};
|
|
464
|
+
contents = de_DescribeBackupsResponse(data);
|
|
465
|
+
const response = {
|
|
466
|
+
$metadata: deserializeMetadata(output),
|
|
467
|
+
...contents,
|
|
468
|
+
};
|
|
469
|
+
return response;
|
|
470
|
+
};
|
|
471
|
+
const de_DescribeClustersCommand = async (output, context) => {
|
|
472
|
+
if (output.statusCode >= 300) {
|
|
473
|
+
return de_CommandError(output, context);
|
|
474
|
+
}
|
|
475
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
476
|
+
let contents = {};
|
|
477
|
+
contents = de_DescribeClustersResponse(data);
|
|
478
|
+
const response = {
|
|
479
|
+
$metadata: deserializeMetadata(output),
|
|
480
|
+
...contents,
|
|
481
|
+
};
|
|
482
|
+
return response;
|
|
483
|
+
};
|
|
484
|
+
const de_GetResourcePolicyCommand = async (output, context) => {
|
|
485
|
+
if (output.statusCode >= 300) {
|
|
486
|
+
return de_CommandError(output, context);
|
|
487
|
+
}
|
|
488
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
489
|
+
let contents = {};
|
|
490
|
+
contents = smithyClient._json(data);
|
|
491
|
+
const response = {
|
|
492
|
+
$metadata: deserializeMetadata(output),
|
|
493
|
+
...contents,
|
|
494
|
+
};
|
|
495
|
+
return response;
|
|
496
|
+
};
|
|
497
|
+
const de_InitializeClusterCommand = async (output, context) => {
|
|
498
|
+
if (output.statusCode >= 300) {
|
|
499
|
+
return de_CommandError(output, context);
|
|
500
|
+
}
|
|
501
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
502
|
+
let contents = {};
|
|
503
|
+
contents = smithyClient._json(data);
|
|
504
|
+
const response = {
|
|
505
|
+
$metadata: deserializeMetadata(output),
|
|
506
|
+
...contents,
|
|
507
|
+
};
|
|
508
|
+
return response;
|
|
509
|
+
};
|
|
510
|
+
const de_ListTagsCommand = async (output, context) => {
|
|
511
|
+
if (output.statusCode >= 300) {
|
|
512
|
+
return de_CommandError(output, context);
|
|
513
|
+
}
|
|
514
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
515
|
+
let contents = {};
|
|
516
|
+
contents = smithyClient._json(data);
|
|
517
|
+
const response = {
|
|
518
|
+
$metadata: deserializeMetadata(output),
|
|
519
|
+
...contents,
|
|
520
|
+
};
|
|
521
|
+
return response;
|
|
522
|
+
};
|
|
523
|
+
const de_ModifyBackupAttributesCommand = async (output, context) => {
|
|
524
|
+
if (output.statusCode >= 300) {
|
|
525
|
+
return de_CommandError(output, context);
|
|
526
|
+
}
|
|
527
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
528
|
+
let contents = {};
|
|
529
|
+
contents = de_ModifyBackupAttributesResponse(data);
|
|
530
|
+
const response = {
|
|
531
|
+
$metadata: deserializeMetadata(output),
|
|
532
|
+
...contents,
|
|
533
|
+
};
|
|
534
|
+
return response;
|
|
535
|
+
};
|
|
536
|
+
const de_ModifyClusterCommand = async (output, context) => {
|
|
537
|
+
if (output.statusCode >= 300) {
|
|
538
|
+
return de_CommandError(output, context);
|
|
539
|
+
}
|
|
540
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
541
|
+
let contents = {};
|
|
542
|
+
contents = de_ModifyClusterResponse(data);
|
|
543
|
+
const response = {
|
|
544
|
+
$metadata: deserializeMetadata(output),
|
|
545
|
+
...contents,
|
|
546
|
+
};
|
|
547
|
+
return response;
|
|
548
|
+
};
|
|
549
|
+
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
550
|
+
if (output.statusCode >= 300) {
|
|
551
|
+
return de_CommandError(output, context);
|
|
552
|
+
}
|
|
553
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
554
|
+
let contents = {};
|
|
555
|
+
contents = smithyClient._json(data);
|
|
556
|
+
const response = {
|
|
557
|
+
$metadata: deserializeMetadata(output),
|
|
558
|
+
...contents,
|
|
559
|
+
};
|
|
560
|
+
return response;
|
|
561
|
+
};
|
|
562
|
+
const de_RestoreBackupCommand = async (output, context) => {
|
|
563
|
+
if (output.statusCode >= 300) {
|
|
564
|
+
return de_CommandError(output, context);
|
|
565
|
+
}
|
|
566
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
567
|
+
let contents = {};
|
|
568
|
+
contents = de_RestoreBackupResponse(data);
|
|
569
|
+
const response = {
|
|
570
|
+
$metadata: deserializeMetadata(output),
|
|
571
|
+
...contents,
|
|
572
|
+
};
|
|
573
|
+
return response;
|
|
574
|
+
};
|
|
575
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
576
|
+
if (output.statusCode >= 300) {
|
|
577
|
+
return de_CommandError(output, context);
|
|
578
|
+
}
|
|
579
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
580
|
+
let contents = {};
|
|
581
|
+
contents = smithyClient._json(data);
|
|
582
|
+
const response = {
|
|
583
|
+
$metadata: deserializeMetadata(output),
|
|
584
|
+
...contents,
|
|
585
|
+
};
|
|
586
|
+
return response;
|
|
587
|
+
};
|
|
588
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
589
|
+
if (output.statusCode >= 300) {
|
|
590
|
+
return de_CommandError(output, context);
|
|
591
|
+
}
|
|
592
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
593
|
+
let contents = {};
|
|
594
|
+
contents = smithyClient._json(data);
|
|
595
|
+
const response = {
|
|
596
|
+
$metadata: deserializeMetadata(output),
|
|
597
|
+
...contents,
|
|
598
|
+
};
|
|
599
|
+
return response;
|
|
600
|
+
};
|
|
601
|
+
const de_CommandError = async (output, context) => {
|
|
602
|
+
const parsedOutput = {
|
|
603
|
+
...output,
|
|
604
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
605
|
+
};
|
|
606
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
607
|
+
switch (errorCode) {
|
|
608
|
+
case "CloudHsmAccessDeniedException":
|
|
609
|
+
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
610
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput);
|
|
611
|
+
case "CloudHsmInternalFailureException":
|
|
612
|
+
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
613
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput);
|
|
614
|
+
case "CloudHsmInvalidRequestException":
|
|
615
|
+
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
616
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput);
|
|
617
|
+
case "CloudHsmResourceNotFoundException":
|
|
618
|
+
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
619
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput);
|
|
620
|
+
case "CloudHsmServiceException":
|
|
621
|
+
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
622
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput);
|
|
623
|
+
case "CloudHsmTagException":
|
|
624
|
+
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
625
|
+
throw await de_CloudHsmTagExceptionRes(parsedOutput);
|
|
626
|
+
case "CloudHsmResourceLimitExceededException":
|
|
627
|
+
case "com.amazonaws.cloudhsmv2#CloudHsmResourceLimitExceededException":
|
|
628
|
+
throw await de_CloudHsmResourceLimitExceededExceptionRes(parsedOutput);
|
|
629
|
+
default:
|
|
630
|
+
const parsedBody = parsedOutput.body;
|
|
631
|
+
return throwDefaultError({
|
|
632
|
+
output,
|
|
633
|
+
parsedBody,
|
|
634
|
+
errorCode,
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
};
|
|
638
|
+
const de_CloudHsmAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
639
|
+
const body = parsedOutput.body;
|
|
640
|
+
const deserialized = smithyClient._json(body);
|
|
641
|
+
const exception = new CloudHsmAccessDeniedException({
|
|
642
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
643
|
+
...deserialized,
|
|
267
644
|
});
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
name = "CloudHsmInternalFailureException";
|
|
277
|
-
$fault = "server";
|
|
278
|
-
Message;
|
|
279
|
-
/**
|
|
280
|
-
* @internal
|
|
281
|
-
*/
|
|
282
|
-
constructor(opts) {
|
|
283
|
-
super({
|
|
284
|
-
name: "CloudHsmInternalFailureException",
|
|
285
|
-
$fault: "server",
|
|
286
|
-
...opts
|
|
645
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
646
|
+
};
|
|
647
|
+
const de_CloudHsmInternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
648
|
+
const body = parsedOutput.body;
|
|
649
|
+
const deserialized = smithyClient._json(body);
|
|
650
|
+
const exception = new CloudHsmInternalFailureException({
|
|
651
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
652
|
+
...deserialized,
|
|
287
653
|
});
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
name = "CloudHsmInvalidRequestException";
|
|
297
|
-
$fault = "client";
|
|
298
|
-
Message;
|
|
299
|
-
/**
|
|
300
|
-
* @internal
|
|
301
|
-
*/
|
|
302
|
-
constructor(opts) {
|
|
303
|
-
super({
|
|
304
|
-
name: "CloudHsmInvalidRequestException",
|
|
305
|
-
$fault: "client",
|
|
306
|
-
...opts
|
|
654
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
655
|
+
};
|
|
656
|
+
const de_CloudHsmInvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
657
|
+
const body = parsedOutput.body;
|
|
658
|
+
const deserialized = smithyClient._json(body);
|
|
659
|
+
const exception = new CloudHsmInvalidRequestException({
|
|
660
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
661
|
+
...deserialized,
|
|
307
662
|
});
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
name = "CloudHsmResourceNotFoundException";
|
|
317
|
-
$fault = "client";
|
|
318
|
-
Message;
|
|
319
|
-
/**
|
|
320
|
-
* @internal
|
|
321
|
-
*/
|
|
322
|
-
constructor(opts) {
|
|
323
|
-
super({
|
|
324
|
-
name: "CloudHsmResourceNotFoundException",
|
|
325
|
-
$fault: "client",
|
|
326
|
-
...opts
|
|
663
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
664
|
+
};
|
|
665
|
+
const de_CloudHsmResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
666
|
+
const body = parsedOutput.body;
|
|
667
|
+
const deserialized = smithyClient._json(body);
|
|
668
|
+
const exception = new CloudHsmResourceLimitExceededException({
|
|
669
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
670
|
+
...deserialized,
|
|
327
671
|
});
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
name = "CloudHsmServiceException";
|
|
337
|
-
$fault = "client";
|
|
338
|
-
Message;
|
|
339
|
-
/**
|
|
340
|
-
* @internal
|
|
341
|
-
*/
|
|
342
|
-
constructor(opts) {
|
|
343
|
-
super({
|
|
344
|
-
name: "CloudHsmServiceException",
|
|
345
|
-
$fault: "client",
|
|
346
|
-
...opts
|
|
672
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
673
|
+
};
|
|
674
|
+
const de_CloudHsmResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
675
|
+
const body = parsedOutput.body;
|
|
676
|
+
const deserialized = smithyClient._json(body);
|
|
677
|
+
const exception = new CloudHsmResourceNotFoundException({
|
|
678
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
679
|
+
...deserialized,
|
|
347
680
|
});
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
name = "CloudHsmTagException";
|
|
357
|
-
$fault = "client";
|
|
358
|
-
Message;
|
|
359
|
-
/**
|
|
360
|
-
* @internal
|
|
361
|
-
*/
|
|
362
|
-
constructor(opts) {
|
|
363
|
-
super({
|
|
364
|
-
name: "CloudHsmTagException",
|
|
365
|
-
$fault: "client",
|
|
366
|
-
...opts
|
|
681
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
682
|
+
};
|
|
683
|
+
const de_CloudHsmServiceExceptionRes = async (parsedOutput, context) => {
|
|
684
|
+
const body = parsedOutput.body;
|
|
685
|
+
const deserialized = smithyClient._json(body);
|
|
686
|
+
const exception = new CloudHsmServiceException({
|
|
687
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
688
|
+
...deserialized,
|
|
367
689
|
});
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
var HsmState = {
|
|
377
|
-
ACTIVE: "ACTIVE",
|
|
378
|
-
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
379
|
-
DEGRADED: "DEGRADED",
|
|
380
|
-
DELETED: "DELETED",
|
|
381
|
-
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS"
|
|
382
|
-
};
|
|
383
|
-
var ClusterState = {
|
|
384
|
-
ACTIVE: "ACTIVE",
|
|
385
|
-
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
386
|
-
DEGRADED: "DEGRADED",
|
|
387
|
-
DELETED: "DELETED",
|
|
388
|
-
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
389
|
-
INITIALIZED: "INITIALIZED",
|
|
390
|
-
INITIALIZE_IN_PROGRESS: "INITIALIZE_IN_PROGRESS",
|
|
391
|
-
MODIFY_IN_PROGRESS: "MODIFY_IN_PROGRESS",
|
|
392
|
-
ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
|
|
393
|
-
UNINITIALIZED: "UNINITIALIZED",
|
|
394
|
-
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS"
|
|
395
|
-
};
|
|
396
|
-
var CloudHsmResourceLimitExceededException = class _CloudHsmResourceLimitExceededException extends CloudHSMV2ServiceException {
|
|
397
|
-
static {
|
|
398
|
-
__name(this, "CloudHsmResourceLimitExceededException");
|
|
399
|
-
}
|
|
400
|
-
name = "CloudHsmResourceLimitExceededException";
|
|
401
|
-
$fault = "client";
|
|
402
|
-
Message;
|
|
403
|
-
/**
|
|
404
|
-
* @internal
|
|
405
|
-
*/
|
|
406
|
-
constructor(opts) {
|
|
407
|
-
super({
|
|
408
|
-
name: "CloudHsmResourceLimitExceededException",
|
|
409
|
-
$fault: "client",
|
|
410
|
-
...opts
|
|
690
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
691
|
+
};
|
|
692
|
+
const de_CloudHsmTagExceptionRes = async (parsedOutput, context) => {
|
|
693
|
+
const body = parsedOutput.body;
|
|
694
|
+
const deserialized = smithyClient._json(body);
|
|
695
|
+
const exception = new CloudHsmTagException({
|
|
696
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
697
|
+
...deserialized,
|
|
411
698
|
});
|
|
412
|
-
|
|
413
|
-
this.Message = opts.Message;
|
|
414
|
-
}
|
|
699
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
415
700
|
};
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
434
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
435
|
-
}, "se_CreateHsmCommand");
|
|
436
|
-
var se_DeleteBackupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
437
|
-
const headers = sharedHeaders("DeleteBackup");
|
|
438
|
-
let body;
|
|
439
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
440
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
441
|
-
}, "se_DeleteBackupCommand");
|
|
442
|
-
var se_DeleteClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
443
|
-
const headers = sharedHeaders("DeleteCluster");
|
|
444
|
-
let body;
|
|
445
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
446
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
447
|
-
}, "se_DeleteClusterCommand");
|
|
448
|
-
var se_DeleteHsmCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
449
|
-
const headers = sharedHeaders("DeleteHsm");
|
|
450
|
-
let body;
|
|
451
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
452
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
453
|
-
}, "se_DeleteHsmCommand");
|
|
454
|
-
var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
455
|
-
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
456
|
-
let body;
|
|
457
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
458
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
459
|
-
}, "se_DeleteResourcePolicyCommand");
|
|
460
|
-
var se_DescribeBackupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
461
|
-
const headers = sharedHeaders("DescribeBackups");
|
|
462
|
-
let body;
|
|
463
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
464
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
465
|
-
}, "se_DescribeBackupsCommand");
|
|
466
|
-
var se_DescribeClustersCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
467
|
-
const headers = sharedHeaders("DescribeClusters");
|
|
468
|
-
let body;
|
|
469
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
470
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
471
|
-
}, "se_DescribeClustersCommand");
|
|
472
|
-
var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
473
|
-
const headers = sharedHeaders("GetResourcePolicy");
|
|
474
|
-
let body;
|
|
475
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
476
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
477
|
-
}, "se_GetResourcePolicyCommand");
|
|
478
|
-
var se_InitializeClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
479
|
-
const headers = sharedHeaders("InitializeCluster");
|
|
480
|
-
let body;
|
|
481
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
482
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
483
|
-
}, "se_InitializeClusterCommand");
|
|
484
|
-
var se_ListTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
485
|
-
const headers = sharedHeaders("ListTags");
|
|
486
|
-
let body;
|
|
487
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
488
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
489
|
-
}, "se_ListTagsCommand");
|
|
490
|
-
var se_ModifyBackupAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
491
|
-
const headers = sharedHeaders("ModifyBackupAttributes");
|
|
492
|
-
let body;
|
|
493
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
494
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
495
|
-
}, "se_ModifyBackupAttributesCommand");
|
|
496
|
-
var se_ModifyClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
497
|
-
const headers = sharedHeaders("ModifyCluster");
|
|
498
|
-
let body;
|
|
499
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
500
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
501
|
-
}, "se_ModifyClusterCommand");
|
|
502
|
-
var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
503
|
-
const headers = sharedHeaders("PutResourcePolicy");
|
|
504
|
-
let body;
|
|
505
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
506
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
507
|
-
}, "se_PutResourcePolicyCommand");
|
|
508
|
-
var se_RestoreBackupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
509
|
-
const headers = sharedHeaders("RestoreBackup");
|
|
510
|
-
let body;
|
|
511
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
512
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
513
|
-
}, "se_RestoreBackupCommand");
|
|
514
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
515
|
-
const headers = sharedHeaders("TagResource");
|
|
516
|
-
let body;
|
|
517
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
518
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
519
|
-
}, "se_TagResourceCommand");
|
|
520
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
521
|
-
const headers = sharedHeaders("UntagResource");
|
|
522
|
-
let body;
|
|
523
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
524
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
525
|
-
}, "se_UntagResourceCommand");
|
|
526
|
-
var de_CopyBackupToRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
527
|
-
if (output.statusCode >= 300) {
|
|
528
|
-
return de_CommandError(output, context);
|
|
529
|
-
}
|
|
530
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
531
|
-
let contents = {};
|
|
532
|
-
contents = de_CopyBackupToRegionResponse(data, context);
|
|
533
|
-
const response = {
|
|
534
|
-
$metadata: deserializeMetadata(output),
|
|
535
|
-
...contents
|
|
536
|
-
};
|
|
537
|
-
return response;
|
|
538
|
-
}, "de_CopyBackupToRegionCommand");
|
|
539
|
-
var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
540
|
-
if (output.statusCode >= 300) {
|
|
541
|
-
return de_CommandError(output, context);
|
|
542
|
-
}
|
|
543
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
544
|
-
let contents = {};
|
|
545
|
-
contents = de_CreateClusterResponse(data, context);
|
|
546
|
-
const response = {
|
|
547
|
-
$metadata: deserializeMetadata(output),
|
|
548
|
-
...contents
|
|
549
|
-
};
|
|
550
|
-
return response;
|
|
551
|
-
}, "de_CreateClusterCommand");
|
|
552
|
-
var de_CreateHsmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
553
|
-
if (output.statusCode >= 300) {
|
|
554
|
-
return de_CommandError(output, context);
|
|
555
|
-
}
|
|
556
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
557
|
-
let contents = {};
|
|
558
|
-
contents = (0, import_smithy_client._json)(data);
|
|
559
|
-
const response = {
|
|
560
|
-
$metadata: deserializeMetadata(output),
|
|
561
|
-
...contents
|
|
562
|
-
};
|
|
563
|
-
return response;
|
|
564
|
-
}, "de_CreateHsmCommand");
|
|
565
|
-
var de_DeleteBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
566
|
-
if (output.statusCode >= 300) {
|
|
567
|
-
return de_CommandError(output, context);
|
|
568
|
-
}
|
|
569
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
570
|
-
let contents = {};
|
|
571
|
-
contents = de_DeleteBackupResponse(data, context);
|
|
572
|
-
const response = {
|
|
573
|
-
$metadata: deserializeMetadata(output),
|
|
574
|
-
...contents
|
|
575
|
-
};
|
|
576
|
-
return response;
|
|
577
|
-
}, "de_DeleteBackupCommand");
|
|
578
|
-
var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
579
|
-
if (output.statusCode >= 300) {
|
|
580
|
-
return de_CommandError(output, context);
|
|
581
|
-
}
|
|
582
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
583
|
-
let contents = {};
|
|
584
|
-
contents = de_DeleteClusterResponse(data, context);
|
|
585
|
-
const response = {
|
|
586
|
-
$metadata: deserializeMetadata(output),
|
|
587
|
-
...contents
|
|
588
|
-
};
|
|
589
|
-
return response;
|
|
590
|
-
}, "de_DeleteClusterCommand");
|
|
591
|
-
var de_DeleteHsmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
592
|
-
if (output.statusCode >= 300) {
|
|
593
|
-
return de_CommandError(output, context);
|
|
594
|
-
}
|
|
595
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
596
|
-
let contents = {};
|
|
597
|
-
contents = (0, import_smithy_client._json)(data);
|
|
598
|
-
const response = {
|
|
599
|
-
$metadata: deserializeMetadata(output),
|
|
600
|
-
...contents
|
|
601
|
-
};
|
|
602
|
-
return response;
|
|
603
|
-
}, "de_DeleteHsmCommand");
|
|
604
|
-
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
605
|
-
if (output.statusCode >= 300) {
|
|
606
|
-
return de_CommandError(output, context);
|
|
607
|
-
}
|
|
608
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
609
|
-
let contents = {};
|
|
610
|
-
contents = (0, import_smithy_client._json)(data);
|
|
611
|
-
const response = {
|
|
612
|
-
$metadata: deserializeMetadata(output),
|
|
613
|
-
...contents
|
|
614
|
-
};
|
|
615
|
-
return response;
|
|
616
|
-
}, "de_DeleteResourcePolicyCommand");
|
|
617
|
-
var de_DescribeBackupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
618
|
-
if (output.statusCode >= 300) {
|
|
619
|
-
return de_CommandError(output, context);
|
|
620
|
-
}
|
|
621
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
622
|
-
let contents = {};
|
|
623
|
-
contents = de_DescribeBackupsResponse(data, context);
|
|
624
|
-
const response = {
|
|
625
|
-
$metadata: deserializeMetadata(output),
|
|
626
|
-
...contents
|
|
627
|
-
};
|
|
628
|
-
return response;
|
|
629
|
-
}, "de_DescribeBackupsCommand");
|
|
630
|
-
var de_DescribeClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
631
|
-
if (output.statusCode >= 300) {
|
|
632
|
-
return de_CommandError(output, context);
|
|
633
|
-
}
|
|
634
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
635
|
-
let contents = {};
|
|
636
|
-
contents = de_DescribeClustersResponse(data, context);
|
|
637
|
-
const response = {
|
|
638
|
-
$metadata: deserializeMetadata(output),
|
|
639
|
-
...contents
|
|
640
|
-
};
|
|
641
|
-
return response;
|
|
642
|
-
}, "de_DescribeClustersCommand");
|
|
643
|
-
var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
644
|
-
if (output.statusCode >= 300) {
|
|
645
|
-
return de_CommandError(output, context);
|
|
646
|
-
}
|
|
647
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
648
|
-
let contents = {};
|
|
649
|
-
contents = (0, import_smithy_client._json)(data);
|
|
650
|
-
const response = {
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
...contents
|
|
653
|
-
};
|
|
654
|
-
return response;
|
|
655
|
-
}, "de_GetResourcePolicyCommand");
|
|
656
|
-
var de_InitializeClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
657
|
-
if (output.statusCode >= 300) {
|
|
658
|
-
return de_CommandError(output, context);
|
|
659
|
-
}
|
|
660
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
661
|
-
let contents = {};
|
|
662
|
-
contents = (0, import_smithy_client._json)(data);
|
|
663
|
-
const response = {
|
|
664
|
-
$metadata: deserializeMetadata(output),
|
|
665
|
-
...contents
|
|
666
|
-
};
|
|
667
|
-
return response;
|
|
668
|
-
}, "de_InitializeClusterCommand");
|
|
669
|
-
var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
670
|
-
if (output.statusCode >= 300) {
|
|
671
|
-
return de_CommandError(output, context);
|
|
672
|
-
}
|
|
673
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
674
|
-
let contents = {};
|
|
675
|
-
contents = (0, import_smithy_client._json)(data);
|
|
676
|
-
const response = {
|
|
677
|
-
$metadata: deserializeMetadata(output),
|
|
678
|
-
...contents
|
|
679
|
-
};
|
|
680
|
-
return response;
|
|
681
|
-
}, "de_ListTagsCommand");
|
|
682
|
-
var de_ModifyBackupAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
683
|
-
if (output.statusCode >= 300) {
|
|
684
|
-
return de_CommandError(output, context);
|
|
685
|
-
}
|
|
686
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
687
|
-
let contents = {};
|
|
688
|
-
contents = de_ModifyBackupAttributesResponse(data, context);
|
|
689
|
-
const response = {
|
|
690
|
-
$metadata: deserializeMetadata(output),
|
|
691
|
-
...contents
|
|
692
|
-
};
|
|
693
|
-
return response;
|
|
694
|
-
}, "de_ModifyBackupAttributesCommand");
|
|
695
|
-
var de_ModifyClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
696
|
-
if (output.statusCode >= 300) {
|
|
697
|
-
return de_CommandError(output, context);
|
|
698
|
-
}
|
|
699
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
700
|
-
let contents = {};
|
|
701
|
-
contents = de_ModifyClusterResponse(data, context);
|
|
702
|
-
const response = {
|
|
703
|
-
$metadata: deserializeMetadata(output),
|
|
704
|
-
...contents
|
|
705
|
-
};
|
|
706
|
-
return response;
|
|
707
|
-
}, "de_ModifyClusterCommand");
|
|
708
|
-
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
709
|
-
if (output.statusCode >= 300) {
|
|
710
|
-
return de_CommandError(output, context);
|
|
711
|
-
}
|
|
712
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
713
|
-
let contents = {};
|
|
714
|
-
contents = (0, import_smithy_client._json)(data);
|
|
715
|
-
const response = {
|
|
716
|
-
$metadata: deserializeMetadata(output),
|
|
717
|
-
...contents
|
|
718
|
-
};
|
|
719
|
-
return response;
|
|
720
|
-
}, "de_PutResourcePolicyCommand");
|
|
721
|
-
var de_RestoreBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
722
|
-
if (output.statusCode >= 300) {
|
|
723
|
-
return de_CommandError(output, context);
|
|
724
|
-
}
|
|
725
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
726
|
-
let contents = {};
|
|
727
|
-
contents = de_RestoreBackupResponse(data, context);
|
|
728
|
-
const response = {
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
...contents
|
|
731
|
-
};
|
|
732
|
-
return response;
|
|
733
|
-
}, "de_RestoreBackupCommand");
|
|
734
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
735
|
-
if (output.statusCode >= 300) {
|
|
736
|
-
return de_CommandError(output, context);
|
|
737
|
-
}
|
|
738
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
739
|
-
let contents = {};
|
|
740
|
-
contents = (0, import_smithy_client._json)(data);
|
|
741
|
-
const response = {
|
|
742
|
-
$metadata: deserializeMetadata(output),
|
|
743
|
-
...contents
|
|
744
|
-
};
|
|
745
|
-
return response;
|
|
746
|
-
}, "de_TagResourceCommand");
|
|
747
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
748
|
-
if (output.statusCode >= 300) {
|
|
749
|
-
return de_CommandError(output, context);
|
|
750
|
-
}
|
|
751
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
752
|
-
let contents = {};
|
|
753
|
-
contents = (0, import_smithy_client._json)(data);
|
|
754
|
-
const response = {
|
|
755
|
-
$metadata: deserializeMetadata(output),
|
|
756
|
-
...contents
|
|
757
|
-
};
|
|
758
|
-
return response;
|
|
759
|
-
}, "de_UntagResourceCommand");
|
|
760
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
761
|
-
const parsedOutput = {
|
|
762
|
-
...output,
|
|
763
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
764
|
-
};
|
|
765
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
766
|
-
switch (errorCode) {
|
|
767
|
-
case "CloudHsmAccessDeniedException":
|
|
768
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
769
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
770
|
-
case "CloudHsmInternalFailureException":
|
|
771
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
772
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
773
|
-
case "CloudHsmInvalidRequestException":
|
|
774
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
775
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
776
|
-
case "CloudHsmResourceNotFoundException":
|
|
777
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
778
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
779
|
-
case "CloudHsmServiceException":
|
|
780
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
781
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
782
|
-
case "CloudHsmTagException":
|
|
783
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
784
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
785
|
-
case "CloudHsmResourceLimitExceededException":
|
|
786
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceLimitExceededException":
|
|
787
|
-
throw await de_CloudHsmResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
return throwDefaultError({
|
|
791
|
-
output,
|
|
792
|
-
parsedBody,
|
|
793
|
-
errorCode
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
}, "de_CommandError");
|
|
797
|
-
var de_CloudHsmAccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
798
|
-
const body = parsedOutput.body;
|
|
799
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
800
|
-
const exception = new CloudHsmAccessDeniedException({
|
|
801
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
802
|
-
...deserialized
|
|
803
|
-
});
|
|
804
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
805
|
-
}, "de_CloudHsmAccessDeniedExceptionRes");
|
|
806
|
-
var de_CloudHsmInternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
807
|
-
const body = parsedOutput.body;
|
|
808
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
809
|
-
const exception = new CloudHsmInternalFailureException({
|
|
810
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
811
|
-
...deserialized
|
|
812
|
-
});
|
|
813
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
814
|
-
}, "de_CloudHsmInternalFailureExceptionRes");
|
|
815
|
-
var de_CloudHsmInvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
816
|
-
const body = parsedOutput.body;
|
|
817
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
818
|
-
const exception = new CloudHsmInvalidRequestException({
|
|
819
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
820
|
-
...deserialized
|
|
821
|
-
});
|
|
822
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
823
|
-
}, "de_CloudHsmInvalidRequestExceptionRes");
|
|
824
|
-
var de_CloudHsmResourceLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
825
|
-
const body = parsedOutput.body;
|
|
826
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
827
|
-
const exception = new CloudHsmResourceLimitExceededException({
|
|
828
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
829
|
-
...deserialized
|
|
830
|
-
});
|
|
831
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
832
|
-
}, "de_CloudHsmResourceLimitExceededExceptionRes");
|
|
833
|
-
var de_CloudHsmResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
834
|
-
const body = parsedOutput.body;
|
|
835
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
836
|
-
const exception = new CloudHsmResourceNotFoundException({
|
|
837
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
838
|
-
...deserialized
|
|
839
|
-
});
|
|
840
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
841
|
-
}, "de_CloudHsmResourceNotFoundExceptionRes");
|
|
842
|
-
var de_CloudHsmServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
843
|
-
const body = parsedOutput.body;
|
|
844
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
845
|
-
const exception = new CloudHsmServiceException({
|
|
846
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
847
|
-
...deserialized
|
|
848
|
-
});
|
|
849
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
850
|
-
}, "de_CloudHsmServiceExceptionRes");
|
|
851
|
-
var de_CloudHsmTagExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
852
|
-
const body = parsedOutput.body;
|
|
853
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
854
|
-
const exception = new CloudHsmTagException({
|
|
855
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
856
|
-
...deserialized
|
|
857
|
-
});
|
|
858
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
859
|
-
}, "de_CloudHsmTagExceptionRes");
|
|
860
|
-
var de_Backup = /* @__PURE__ */ __name((output, context) => {
|
|
861
|
-
return (0, import_smithy_client.take)(output, {
|
|
862
|
-
BackupArn: import_smithy_client.expectString,
|
|
863
|
-
BackupId: import_smithy_client.expectString,
|
|
864
|
-
BackupState: import_smithy_client.expectString,
|
|
865
|
-
ClusterId: import_smithy_client.expectString,
|
|
866
|
-
CopyTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CopyTimestamp"),
|
|
867
|
-
CreateTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreateTimestamp"),
|
|
868
|
-
DeleteTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeleteTimestamp"),
|
|
869
|
-
HsmType: import_smithy_client.expectString,
|
|
870
|
-
Mode: import_smithy_client.expectString,
|
|
871
|
-
NeverExpires: import_smithy_client.expectBoolean,
|
|
872
|
-
SourceBackup: import_smithy_client.expectString,
|
|
873
|
-
SourceCluster: import_smithy_client.expectString,
|
|
874
|
-
SourceRegion: import_smithy_client.expectString,
|
|
875
|
-
TagList: import_smithy_client._json
|
|
876
|
-
});
|
|
877
|
-
}, "de_Backup");
|
|
878
|
-
var de_Backups = /* @__PURE__ */ __name((output, context) => {
|
|
879
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
880
|
-
return de_Backup(entry, context);
|
|
881
|
-
});
|
|
882
|
-
return retVal;
|
|
883
|
-
}, "de_Backups");
|
|
884
|
-
var de_Cluster = /* @__PURE__ */ __name((output, context) => {
|
|
885
|
-
return (0, import_smithy_client.take)(output, {
|
|
886
|
-
BackupPolicy: import_smithy_client.expectString,
|
|
887
|
-
BackupRetentionPolicy: import_smithy_client._json,
|
|
888
|
-
Certificates: import_smithy_client._json,
|
|
889
|
-
ClusterId: import_smithy_client.expectString,
|
|
890
|
-
CreateTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreateTimestamp"),
|
|
891
|
-
HsmType: import_smithy_client.expectString,
|
|
892
|
-
HsmTypeRollbackExpiration: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "HsmTypeRollbackExpiration"),
|
|
893
|
-
Hsms: import_smithy_client._json,
|
|
894
|
-
Mode: import_smithy_client.expectString,
|
|
895
|
-
NetworkType: import_smithy_client.expectString,
|
|
896
|
-
PreCoPassword: import_smithy_client.expectString,
|
|
897
|
-
SecurityGroup: import_smithy_client.expectString,
|
|
898
|
-
SourceBackupId: import_smithy_client.expectString,
|
|
899
|
-
State: import_smithy_client.expectString,
|
|
900
|
-
StateMessage: import_smithy_client.expectString,
|
|
901
|
-
SubnetMapping: import_smithy_client._json,
|
|
902
|
-
TagList: import_smithy_client._json,
|
|
903
|
-
VpcId: import_smithy_client.expectString
|
|
904
|
-
});
|
|
905
|
-
}, "de_Cluster");
|
|
906
|
-
var de_Clusters = /* @__PURE__ */ __name((output, context) => {
|
|
907
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
908
|
-
return de_Cluster(entry, context);
|
|
909
|
-
});
|
|
910
|
-
return retVal;
|
|
911
|
-
}, "de_Clusters");
|
|
912
|
-
var de_CopyBackupToRegionResponse = /* @__PURE__ */ __name((output, context) => {
|
|
913
|
-
return (0, import_smithy_client.take)(output, {
|
|
914
|
-
DestinationBackup: /* @__PURE__ */ __name((_) => de_DestinationBackup(_, context), "DestinationBackup")
|
|
915
|
-
});
|
|
916
|
-
}, "de_CopyBackupToRegionResponse");
|
|
917
|
-
var de_CreateClusterResponse = /* @__PURE__ */ __name((output, context) => {
|
|
918
|
-
return (0, import_smithy_client.take)(output, {
|
|
919
|
-
Cluster: /* @__PURE__ */ __name((_) => de_Cluster(_, context), "Cluster")
|
|
920
|
-
});
|
|
921
|
-
}, "de_CreateClusterResponse");
|
|
922
|
-
var de_DeleteBackupResponse = /* @__PURE__ */ __name((output, context) => {
|
|
923
|
-
return (0, import_smithy_client.take)(output, {
|
|
924
|
-
Backup: /* @__PURE__ */ __name((_) => de_Backup(_, context), "Backup")
|
|
925
|
-
});
|
|
926
|
-
}, "de_DeleteBackupResponse");
|
|
927
|
-
var de_DeleteClusterResponse = /* @__PURE__ */ __name((output, context) => {
|
|
928
|
-
return (0, import_smithy_client.take)(output, {
|
|
929
|
-
Cluster: /* @__PURE__ */ __name((_) => de_Cluster(_, context), "Cluster")
|
|
930
|
-
});
|
|
931
|
-
}, "de_DeleteClusterResponse");
|
|
932
|
-
var de_DescribeBackupsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
933
|
-
return (0, import_smithy_client.take)(output, {
|
|
934
|
-
Backups: /* @__PURE__ */ __name((_) => de_Backups(_, context), "Backups"),
|
|
935
|
-
NextToken: import_smithy_client.expectString
|
|
936
|
-
});
|
|
937
|
-
}, "de_DescribeBackupsResponse");
|
|
938
|
-
var de_DescribeClustersResponse = /* @__PURE__ */ __name((output, context) => {
|
|
939
|
-
return (0, import_smithy_client.take)(output, {
|
|
940
|
-
Clusters: /* @__PURE__ */ __name((_) => de_Clusters(_, context), "Clusters"),
|
|
941
|
-
NextToken: import_smithy_client.expectString
|
|
942
|
-
});
|
|
943
|
-
}, "de_DescribeClustersResponse");
|
|
944
|
-
var de_DestinationBackup = /* @__PURE__ */ __name((output, context) => {
|
|
945
|
-
return (0, import_smithy_client.take)(output, {
|
|
946
|
-
CreateTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreateTimestamp"),
|
|
947
|
-
SourceBackup: import_smithy_client.expectString,
|
|
948
|
-
SourceCluster: import_smithy_client.expectString,
|
|
949
|
-
SourceRegion: import_smithy_client.expectString
|
|
950
|
-
});
|
|
951
|
-
}, "de_DestinationBackup");
|
|
952
|
-
var de_ModifyBackupAttributesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
953
|
-
return (0, import_smithy_client.take)(output, {
|
|
954
|
-
Backup: /* @__PURE__ */ __name((_) => de_Backup(_, context), "Backup")
|
|
955
|
-
});
|
|
956
|
-
}, "de_ModifyBackupAttributesResponse");
|
|
957
|
-
var de_ModifyClusterResponse = /* @__PURE__ */ __name((output, context) => {
|
|
958
|
-
return (0, import_smithy_client.take)(output, {
|
|
959
|
-
Cluster: /* @__PURE__ */ __name((_) => de_Cluster(_, context), "Cluster")
|
|
960
|
-
});
|
|
961
|
-
}, "de_ModifyClusterResponse");
|
|
962
|
-
var de_RestoreBackupResponse = /* @__PURE__ */ __name((output, context) => {
|
|
963
|
-
return (0, import_smithy_client.take)(output, {
|
|
964
|
-
Backup: /* @__PURE__ */ __name((_) => de_Backup(_, context), "Backup")
|
|
965
|
-
});
|
|
966
|
-
}, "de_RestoreBackupResponse");
|
|
967
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
968
|
-
httpStatusCode: output.statusCode,
|
|
969
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
970
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
971
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
972
|
-
}), "deserializeMetadata");
|
|
973
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(CloudHSMV2ServiceException);
|
|
974
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
975
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
976
|
-
const contents = {
|
|
977
|
-
protocol,
|
|
978
|
-
hostname,
|
|
979
|
-
port,
|
|
980
|
-
method: "POST",
|
|
981
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
982
|
-
headers
|
|
983
|
-
};
|
|
984
|
-
if (resolvedHostname !== void 0) {
|
|
985
|
-
contents.hostname = resolvedHostname;
|
|
986
|
-
}
|
|
987
|
-
if (body !== void 0) {
|
|
988
|
-
contents.body = body;
|
|
989
|
-
}
|
|
990
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
991
|
-
}, "buildHttpRpcRequest");
|
|
992
|
-
function sharedHeaders(operation) {
|
|
993
|
-
return {
|
|
994
|
-
"content-type": "application/x-amz-json-1.1",
|
|
995
|
-
"x-amz-target": `BaldrApiService.${operation}`
|
|
996
|
-
};
|
|
997
|
-
}
|
|
998
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
999
|
-
|
|
1000
|
-
// src/commands/CopyBackupToRegionCommand.ts
|
|
1001
|
-
var CopyBackupToRegionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1002
|
-
return [
|
|
1003
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1004
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1005
|
-
];
|
|
1006
|
-
}).s("BaldrApiService", "CopyBackupToRegion", {}).n("CloudHSMV2Client", "CopyBackupToRegionCommand").f(void 0, void 0).ser(se_CopyBackupToRegionCommand).de(de_CopyBackupToRegionCommand).build() {
|
|
1007
|
-
static {
|
|
1008
|
-
__name(this, "CopyBackupToRegionCommand");
|
|
1009
|
-
}
|
|
701
|
+
const de_Backup = (output, context) => {
|
|
702
|
+
return smithyClient.take(output, {
|
|
703
|
+
BackupArn: smithyClient.expectString,
|
|
704
|
+
BackupId: smithyClient.expectString,
|
|
705
|
+
BackupState: smithyClient.expectString,
|
|
706
|
+
ClusterId: smithyClient.expectString,
|
|
707
|
+
CopyTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
708
|
+
CreateTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
709
|
+
DeleteTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
710
|
+
HsmType: smithyClient.expectString,
|
|
711
|
+
Mode: smithyClient.expectString,
|
|
712
|
+
NeverExpires: smithyClient.expectBoolean,
|
|
713
|
+
SourceBackup: smithyClient.expectString,
|
|
714
|
+
SourceCluster: smithyClient.expectString,
|
|
715
|
+
SourceRegion: smithyClient.expectString,
|
|
716
|
+
TagList: smithyClient._json,
|
|
717
|
+
});
|
|
1010
718
|
};
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1019
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1020
|
-
];
|
|
1021
|
-
}).s("BaldrApiService", "CreateCluster", {}).n("CloudHSMV2Client", "CreateClusterCommand").f(void 0, void 0).ser(se_CreateClusterCommand).de(de_CreateClusterCommand).build() {
|
|
1022
|
-
static {
|
|
1023
|
-
__name(this, "CreateClusterCommand");
|
|
1024
|
-
}
|
|
719
|
+
const de_Backups = (output, context) => {
|
|
720
|
+
const retVal = (output || [])
|
|
721
|
+
.filter((e) => e != null)
|
|
722
|
+
.map((entry) => {
|
|
723
|
+
return de_Backup(entry);
|
|
724
|
+
});
|
|
725
|
+
return retVal;
|
|
1025
726
|
};
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
727
|
+
const de_Cluster = (output, context) => {
|
|
728
|
+
return smithyClient.take(output, {
|
|
729
|
+
BackupPolicy: smithyClient.expectString,
|
|
730
|
+
BackupRetentionPolicy: smithyClient._json,
|
|
731
|
+
Certificates: smithyClient._json,
|
|
732
|
+
ClusterId: smithyClient.expectString,
|
|
733
|
+
CreateTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
734
|
+
HsmType: smithyClient.expectString,
|
|
735
|
+
HsmTypeRollbackExpiration: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
736
|
+
Hsms: smithyClient._json,
|
|
737
|
+
Mode: smithyClient.expectString,
|
|
738
|
+
NetworkType: smithyClient.expectString,
|
|
739
|
+
PreCoPassword: smithyClient.expectString,
|
|
740
|
+
SecurityGroup: smithyClient.expectString,
|
|
741
|
+
SourceBackupId: smithyClient.expectString,
|
|
742
|
+
State: smithyClient.expectString,
|
|
743
|
+
StateMessage: smithyClient.expectString,
|
|
744
|
+
SubnetMapping: smithyClient._json,
|
|
745
|
+
TagList: smithyClient._json,
|
|
746
|
+
VpcId: smithyClient.expectString,
|
|
747
|
+
});
|
|
1040
748
|
};
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1049
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1050
|
-
];
|
|
1051
|
-
}).s("BaldrApiService", "DeleteBackup", {}).n("CloudHSMV2Client", "DeleteBackupCommand").f(void 0, void 0).ser(se_DeleteBackupCommand).de(de_DeleteBackupCommand).build() {
|
|
1052
|
-
static {
|
|
1053
|
-
__name(this, "DeleteBackupCommand");
|
|
1054
|
-
}
|
|
749
|
+
const de_Clusters = (output, context) => {
|
|
750
|
+
const retVal = (output || [])
|
|
751
|
+
.filter((e) => e != null)
|
|
752
|
+
.map((entry) => {
|
|
753
|
+
return de_Cluster(entry);
|
|
754
|
+
});
|
|
755
|
+
return retVal;
|
|
1055
756
|
};
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
var DeleteClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1062
|
-
return [
|
|
1063
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1064
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1065
|
-
];
|
|
1066
|
-
}).s("BaldrApiService", "DeleteCluster", {}).n("CloudHSMV2Client", "DeleteClusterCommand").f(void 0, void 0).ser(se_DeleteClusterCommand).de(de_DeleteClusterCommand).build() {
|
|
1067
|
-
static {
|
|
1068
|
-
__name(this, "DeleteClusterCommand");
|
|
1069
|
-
}
|
|
757
|
+
const de_CopyBackupToRegionResponse = (output, context) => {
|
|
758
|
+
return smithyClient.take(output, {
|
|
759
|
+
DestinationBackup: (_) => de_DestinationBackup(_),
|
|
760
|
+
});
|
|
1070
761
|
};
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
var DeleteHsmCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1077
|
-
return [
|
|
1078
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1079
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1080
|
-
];
|
|
1081
|
-
}).s("BaldrApiService", "DeleteHsm", {}).n("CloudHSMV2Client", "DeleteHsmCommand").f(void 0, void 0).ser(se_DeleteHsmCommand).de(de_DeleteHsmCommand).build() {
|
|
1082
|
-
static {
|
|
1083
|
-
__name(this, "DeleteHsmCommand");
|
|
1084
|
-
}
|
|
762
|
+
const de_CreateClusterResponse = (output, context) => {
|
|
763
|
+
return smithyClient.take(output, {
|
|
764
|
+
Cluster: (_) => de_Cluster(_),
|
|
765
|
+
});
|
|
1085
766
|
};
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
var DeleteResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1092
|
-
return [
|
|
1093
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1094
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1095
|
-
];
|
|
1096
|
-
}).s("BaldrApiService", "DeleteResourcePolicy", {}).n("CloudHSMV2Client", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
|
|
1097
|
-
static {
|
|
1098
|
-
__name(this, "DeleteResourcePolicyCommand");
|
|
1099
|
-
}
|
|
767
|
+
const de_DeleteBackupResponse = (output, context) => {
|
|
768
|
+
return smithyClient.take(output, {
|
|
769
|
+
Backup: (_) => de_Backup(_),
|
|
770
|
+
});
|
|
1100
771
|
};
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
var DescribeBackupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1107
|
-
return [
|
|
1108
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1109
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1110
|
-
];
|
|
1111
|
-
}).s("BaldrApiService", "DescribeBackups", {}).n("CloudHSMV2Client", "DescribeBackupsCommand").f(void 0, void 0).ser(se_DescribeBackupsCommand).de(de_DescribeBackupsCommand).build() {
|
|
1112
|
-
static {
|
|
1113
|
-
__name(this, "DescribeBackupsCommand");
|
|
1114
|
-
}
|
|
772
|
+
const de_DeleteClusterResponse = (output, context) => {
|
|
773
|
+
return smithyClient.take(output, {
|
|
774
|
+
Cluster: (_) => de_Cluster(_),
|
|
775
|
+
});
|
|
1115
776
|
};
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
var DescribeClustersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1122
|
-
return [
|
|
1123
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1124
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1125
|
-
];
|
|
1126
|
-
}).s("BaldrApiService", "DescribeClusters", {}).n("CloudHSMV2Client", "DescribeClustersCommand").f(void 0, void 0).ser(se_DescribeClustersCommand).de(de_DescribeClustersCommand).build() {
|
|
1127
|
-
static {
|
|
1128
|
-
__name(this, "DescribeClustersCommand");
|
|
1129
|
-
}
|
|
777
|
+
const de_DescribeBackupsResponse = (output, context) => {
|
|
778
|
+
return smithyClient.take(output, {
|
|
779
|
+
Backups: (_) => de_Backups(_),
|
|
780
|
+
NextToken: smithyClient.expectString,
|
|
781
|
+
});
|
|
1130
782
|
};
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
var GetResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1137
|
-
return [
|
|
1138
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1139
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1140
|
-
];
|
|
1141
|
-
}).s("BaldrApiService", "GetResourcePolicy", {}).n("CloudHSMV2Client", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
|
|
1142
|
-
static {
|
|
1143
|
-
__name(this, "GetResourcePolicyCommand");
|
|
1144
|
-
}
|
|
783
|
+
const de_DescribeClustersResponse = (output, context) => {
|
|
784
|
+
return smithyClient.take(output, {
|
|
785
|
+
Clusters: (_) => de_Clusters(_),
|
|
786
|
+
NextToken: smithyClient.expectString,
|
|
787
|
+
});
|
|
1145
788
|
};
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1154
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1155
|
-
];
|
|
1156
|
-
}).s("BaldrApiService", "InitializeCluster", {}).n("CloudHSMV2Client", "InitializeClusterCommand").f(void 0, void 0).ser(se_InitializeClusterCommand).de(de_InitializeClusterCommand).build() {
|
|
1157
|
-
static {
|
|
1158
|
-
__name(this, "InitializeClusterCommand");
|
|
1159
|
-
}
|
|
789
|
+
const de_DestinationBackup = (output, context) => {
|
|
790
|
+
return smithyClient.take(output, {
|
|
791
|
+
CreateTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
792
|
+
SourceBackup: smithyClient.expectString,
|
|
793
|
+
SourceCluster: smithyClient.expectString,
|
|
794
|
+
SourceRegion: smithyClient.expectString,
|
|
795
|
+
});
|
|
1160
796
|
};
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
var ListTagsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1167
|
-
return [
|
|
1168
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1169
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1170
|
-
];
|
|
1171
|
-
}).s("BaldrApiService", "ListTags", {}).n("CloudHSMV2Client", "ListTagsCommand").f(void 0, void 0).ser(se_ListTagsCommand).de(de_ListTagsCommand).build() {
|
|
1172
|
-
static {
|
|
1173
|
-
__name(this, "ListTagsCommand");
|
|
1174
|
-
}
|
|
797
|
+
const de_ModifyBackupAttributesResponse = (output, context) => {
|
|
798
|
+
return smithyClient.take(output, {
|
|
799
|
+
Backup: (_) => de_Backup(_),
|
|
800
|
+
});
|
|
1175
801
|
};
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
var ModifyBackupAttributesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1182
|
-
return [
|
|
1183
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1184
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1185
|
-
];
|
|
1186
|
-
}).s("BaldrApiService", "ModifyBackupAttributes", {}).n("CloudHSMV2Client", "ModifyBackupAttributesCommand").f(void 0, void 0).ser(se_ModifyBackupAttributesCommand).de(de_ModifyBackupAttributesCommand).build() {
|
|
1187
|
-
static {
|
|
1188
|
-
__name(this, "ModifyBackupAttributesCommand");
|
|
1189
|
-
}
|
|
802
|
+
const de_ModifyClusterResponse = (output, context) => {
|
|
803
|
+
return smithyClient.take(output, {
|
|
804
|
+
Cluster: (_) => de_Cluster(_),
|
|
805
|
+
});
|
|
1190
806
|
};
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
var ModifyClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1197
|
-
return [
|
|
1198
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1199
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1200
|
-
];
|
|
1201
|
-
}).s("BaldrApiService", "ModifyCluster", {}).n("CloudHSMV2Client", "ModifyClusterCommand").f(void 0, void 0).ser(se_ModifyClusterCommand).de(de_ModifyClusterCommand).build() {
|
|
1202
|
-
static {
|
|
1203
|
-
__name(this, "ModifyClusterCommand");
|
|
1204
|
-
}
|
|
807
|
+
const de_RestoreBackupResponse = (output, context) => {
|
|
808
|
+
return smithyClient.take(output, {
|
|
809
|
+
Backup: (_) => de_Backup(_),
|
|
810
|
+
});
|
|
1205
811
|
};
|
|
812
|
+
const deserializeMetadata = (output) => ({
|
|
813
|
+
httpStatusCode: output.statusCode,
|
|
814
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
815
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
816
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
817
|
+
});
|
|
818
|
+
const throwDefaultError = smithyClient.withBaseException(CloudHSMV2ServiceException);
|
|
819
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
820
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
821
|
+
const contents = {
|
|
822
|
+
protocol,
|
|
823
|
+
hostname,
|
|
824
|
+
port,
|
|
825
|
+
method: "POST",
|
|
826
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
827
|
+
headers,
|
|
828
|
+
};
|
|
829
|
+
if (body !== undefined) {
|
|
830
|
+
contents.body = body;
|
|
831
|
+
}
|
|
832
|
+
return new protocolHttp.HttpRequest(contents);
|
|
833
|
+
};
|
|
834
|
+
function sharedHeaders(operation) {
|
|
835
|
+
return {
|
|
836
|
+
"content-type": "application/x-amz-json-1.1",
|
|
837
|
+
"x-amz-target": `BaldrApiService.${operation}`,
|
|
838
|
+
};
|
|
839
|
+
}
|
|
1206
840
|
|
|
1207
|
-
|
|
1208
|
-
|
|
841
|
+
class CopyBackupToRegionCommand extends smithyClient.Command
|
|
842
|
+
.classBuilder()
|
|
843
|
+
.ep(commonParams)
|
|
844
|
+
.m(function (Command, cs, config, o) {
|
|
845
|
+
return [
|
|
846
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
847
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
848
|
+
];
|
|
849
|
+
})
|
|
850
|
+
.s("BaldrApiService", "CopyBackupToRegion", {})
|
|
851
|
+
.n("CloudHSMV2Client", "CopyBackupToRegionCommand")
|
|
852
|
+
.f(void 0, void 0)
|
|
853
|
+
.ser(se_CopyBackupToRegionCommand)
|
|
854
|
+
.de(de_CopyBackupToRegionCommand)
|
|
855
|
+
.build() {
|
|
856
|
+
}
|
|
1209
857
|
|
|
858
|
+
class CreateClusterCommand extends smithyClient.Command
|
|
859
|
+
.classBuilder()
|
|
860
|
+
.ep(commonParams)
|
|
861
|
+
.m(function (Command, cs, config, o) {
|
|
862
|
+
return [
|
|
863
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
864
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
865
|
+
];
|
|
866
|
+
})
|
|
867
|
+
.s("BaldrApiService", "CreateCluster", {})
|
|
868
|
+
.n("CloudHSMV2Client", "CreateClusterCommand")
|
|
869
|
+
.f(void 0, void 0)
|
|
870
|
+
.ser(se_CreateClusterCommand)
|
|
871
|
+
.de(de_CreateClusterCommand)
|
|
872
|
+
.build() {
|
|
873
|
+
}
|
|
1210
874
|
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
(
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
}
|
|
875
|
+
class CreateHsmCommand extends smithyClient.Command
|
|
876
|
+
.classBuilder()
|
|
877
|
+
.ep(commonParams)
|
|
878
|
+
.m(function (Command, cs, config, o) {
|
|
879
|
+
return [
|
|
880
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
881
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
882
|
+
];
|
|
883
|
+
})
|
|
884
|
+
.s("BaldrApiService", "CreateHsm", {})
|
|
885
|
+
.n("CloudHSMV2Client", "CreateHsmCommand")
|
|
886
|
+
.f(void 0, void 0)
|
|
887
|
+
.ser(se_CreateHsmCommand)
|
|
888
|
+
.de(de_CreateHsmCommand)
|
|
889
|
+
.build() {
|
|
890
|
+
}
|
|
1221
891
|
|
|
1222
|
-
|
|
892
|
+
class DeleteBackupCommand extends smithyClient.Command
|
|
893
|
+
.classBuilder()
|
|
894
|
+
.ep(commonParams)
|
|
895
|
+
.m(function (Command, cs, config, o) {
|
|
896
|
+
return [
|
|
897
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
898
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
899
|
+
];
|
|
900
|
+
})
|
|
901
|
+
.s("BaldrApiService", "DeleteBackup", {})
|
|
902
|
+
.n("CloudHSMV2Client", "DeleteBackupCommand")
|
|
903
|
+
.f(void 0, void 0)
|
|
904
|
+
.ser(se_DeleteBackupCommand)
|
|
905
|
+
.de(de_DeleteBackupCommand)
|
|
906
|
+
.build() {
|
|
907
|
+
}
|
|
1223
908
|
|
|
909
|
+
class DeleteClusterCommand extends smithyClient.Command
|
|
910
|
+
.classBuilder()
|
|
911
|
+
.ep(commonParams)
|
|
912
|
+
.m(function (Command, cs, config, o) {
|
|
913
|
+
return [
|
|
914
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
915
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
916
|
+
];
|
|
917
|
+
})
|
|
918
|
+
.s("BaldrApiService", "DeleteCluster", {})
|
|
919
|
+
.n("CloudHSMV2Client", "DeleteClusterCommand")
|
|
920
|
+
.f(void 0, void 0)
|
|
921
|
+
.ser(se_DeleteClusterCommand)
|
|
922
|
+
.de(de_DeleteClusterCommand)
|
|
923
|
+
.build() {
|
|
924
|
+
}
|
|
1224
925
|
|
|
926
|
+
class DeleteHsmCommand extends smithyClient.Command
|
|
927
|
+
.classBuilder()
|
|
928
|
+
.ep(commonParams)
|
|
929
|
+
.m(function (Command, cs, config, o) {
|
|
930
|
+
return [
|
|
931
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
932
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
933
|
+
];
|
|
934
|
+
})
|
|
935
|
+
.s("BaldrApiService", "DeleteHsm", {})
|
|
936
|
+
.n("CloudHSMV2Client", "DeleteHsmCommand")
|
|
937
|
+
.f(void 0, void 0)
|
|
938
|
+
.ser(se_DeleteHsmCommand)
|
|
939
|
+
.de(de_DeleteHsmCommand)
|
|
940
|
+
.build() {
|
|
941
|
+
}
|
|
1225
942
|
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
(
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
}
|
|
943
|
+
class DeleteResourcePolicyCommand extends smithyClient.Command
|
|
944
|
+
.classBuilder()
|
|
945
|
+
.ep(commonParams)
|
|
946
|
+
.m(function (Command, cs, config, o) {
|
|
947
|
+
return [
|
|
948
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
949
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
950
|
+
];
|
|
951
|
+
})
|
|
952
|
+
.s("BaldrApiService", "DeleteResourcePolicy", {})
|
|
953
|
+
.n("CloudHSMV2Client", "DeleteResourcePolicyCommand")
|
|
954
|
+
.f(void 0, void 0)
|
|
955
|
+
.ser(se_DeleteResourcePolicyCommand)
|
|
956
|
+
.de(de_DeleteResourcePolicyCommand)
|
|
957
|
+
.build() {
|
|
958
|
+
}
|
|
1236
959
|
|
|
1237
|
-
|
|
960
|
+
class DescribeBackupsCommand extends smithyClient.Command
|
|
961
|
+
.classBuilder()
|
|
962
|
+
.ep(commonParams)
|
|
963
|
+
.m(function (Command, cs, config, o) {
|
|
964
|
+
return [
|
|
965
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
966
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
967
|
+
];
|
|
968
|
+
})
|
|
969
|
+
.s("BaldrApiService", "DescribeBackups", {})
|
|
970
|
+
.n("CloudHSMV2Client", "DescribeBackupsCommand")
|
|
971
|
+
.f(void 0, void 0)
|
|
972
|
+
.ser(se_DescribeBackupsCommand)
|
|
973
|
+
.de(de_DescribeBackupsCommand)
|
|
974
|
+
.build() {
|
|
975
|
+
}
|
|
1238
976
|
|
|
977
|
+
class DescribeClustersCommand extends smithyClient.Command
|
|
978
|
+
.classBuilder()
|
|
979
|
+
.ep(commonParams)
|
|
980
|
+
.m(function (Command, cs, config, o) {
|
|
981
|
+
return [
|
|
982
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
983
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
984
|
+
];
|
|
985
|
+
})
|
|
986
|
+
.s("BaldrApiService", "DescribeClusters", {})
|
|
987
|
+
.n("CloudHSMV2Client", "DescribeClustersCommand")
|
|
988
|
+
.f(void 0, void 0)
|
|
989
|
+
.ser(se_DescribeClustersCommand)
|
|
990
|
+
.de(de_DescribeClustersCommand)
|
|
991
|
+
.build() {
|
|
992
|
+
}
|
|
1239
993
|
|
|
994
|
+
class GetResourcePolicyCommand extends smithyClient.Command
|
|
995
|
+
.classBuilder()
|
|
996
|
+
.ep(commonParams)
|
|
997
|
+
.m(function (Command, cs, config, o) {
|
|
998
|
+
return [
|
|
999
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1000
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1001
|
+
];
|
|
1002
|
+
})
|
|
1003
|
+
.s("BaldrApiService", "GetResourcePolicy", {})
|
|
1004
|
+
.n("CloudHSMV2Client", "GetResourcePolicyCommand")
|
|
1005
|
+
.f(void 0, void 0)
|
|
1006
|
+
.ser(se_GetResourcePolicyCommand)
|
|
1007
|
+
.de(de_GetResourcePolicyCommand)
|
|
1008
|
+
.build() {
|
|
1009
|
+
}
|
|
1240
1010
|
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
(
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
}
|
|
1011
|
+
class InitializeClusterCommand extends smithyClient.Command
|
|
1012
|
+
.classBuilder()
|
|
1013
|
+
.ep(commonParams)
|
|
1014
|
+
.m(function (Command, cs, config, o) {
|
|
1015
|
+
return [
|
|
1016
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1017
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1018
|
+
];
|
|
1019
|
+
})
|
|
1020
|
+
.s("BaldrApiService", "InitializeCluster", {})
|
|
1021
|
+
.n("CloudHSMV2Client", "InitializeClusterCommand")
|
|
1022
|
+
.f(void 0, void 0)
|
|
1023
|
+
.ser(se_InitializeClusterCommand)
|
|
1024
|
+
.de(de_InitializeClusterCommand)
|
|
1025
|
+
.build() {
|
|
1026
|
+
}
|
|
1251
1027
|
|
|
1252
|
-
|
|
1028
|
+
class ListTagsCommand extends smithyClient.Command
|
|
1029
|
+
.classBuilder()
|
|
1030
|
+
.ep(commonParams)
|
|
1031
|
+
.m(function (Command, cs, config, o) {
|
|
1032
|
+
return [
|
|
1033
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1034
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1035
|
+
];
|
|
1036
|
+
})
|
|
1037
|
+
.s("BaldrApiService", "ListTags", {})
|
|
1038
|
+
.n("CloudHSMV2Client", "ListTagsCommand")
|
|
1039
|
+
.f(void 0, void 0)
|
|
1040
|
+
.ser(se_ListTagsCommand)
|
|
1041
|
+
.de(de_ListTagsCommand)
|
|
1042
|
+
.build() {
|
|
1043
|
+
}
|
|
1253
1044
|
|
|
1045
|
+
class ModifyBackupAttributesCommand extends smithyClient.Command
|
|
1046
|
+
.classBuilder()
|
|
1047
|
+
.ep(commonParams)
|
|
1048
|
+
.m(function (Command, cs, config, o) {
|
|
1049
|
+
return [
|
|
1050
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1051
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1052
|
+
];
|
|
1053
|
+
})
|
|
1054
|
+
.s("BaldrApiService", "ModifyBackupAttributes", {})
|
|
1055
|
+
.n("CloudHSMV2Client", "ModifyBackupAttributesCommand")
|
|
1056
|
+
.f(void 0, void 0)
|
|
1057
|
+
.ser(se_ModifyBackupAttributesCommand)
|
|
1058
|
+
.de(de_ModifyBackupAttributesCommand)
|
|
1059
|
+
.build() {
|
|
1060
|
+
}
|
|
1254
1061
|
|
|
1062
|
+
class ModifyClusterCommand extends smithyClient.Command
|
|
1063
|
+
.classBuilder()
|
|
1064
|
+
.ep(commonParams)
|
|
1065
|
+
.m(function (Command, cs, config, o) {
|
|
1066
|
+
return [
|
|
1067
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1068
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1069
|
+
];
|
|
1070
|
+
})
|
|
1071
|
+
.s("BaldrApiService", "ModifyCluster", {})
|
|
1072
|
+
.n("CloudHSMV2Client", "ModifyClusterCommand")
|
|
1073
|
+
.f(void 0, void 0)
|
|
1074
|
+
.ser(se_ModifyClusterCommand)
|
|
1075
|
+
.de(de_ModifyClusterCommand)
|
|
1076
|
+
.build() {
|
|
1077
|
+
}
|
|
1255
1078
|
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
(
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
}
|
|
1079
|
+
class PutResourcePolicyCommand extends smithyClient.Command
|
|
1080
|
+
.classBuilder()
|
|
1081
|
+
.ep(commonParams)
|
|
1082
|
+
.m(function (Command, cs, config, o) {
|
|
1083
|
+
return [
|
|
1084
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1085
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1086
|
+
];
|
|
1087
|
+
})
|
|
1088
|
+
.s("BaldrApiService", "PutResourcePolicy", {})
|
|
1089
|
+
.n("CloudHSMV2Client", "PutResourcePolicyCommand")
|
|
1090
|
+
.f(void 0, void 0)
|
|
1091
|
+
.ser(se_PutResourcePolicyCommand)
|
|
1092
|
+
.de(de_PutResourcePolicyCommand)
|
|
1093
|
+
.build() {
|
|
1094
|
+
}
|
|
1266
1095
|
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
PutResourcePolicyCommand,
|
|
1284
|
-
RestoreBackupCommand,
|
|
1285
|
-
TagResourceCommand,
|
|
1286
|
-
UntagResourceCommand
|
|
1287
|
-
};
|
|
1288
|
-
var CloudHSMV2 = class extends CloudHSMV2Client {
|
|
1289
|
-
static {
|
|
1290
|
-
__name(this, "CloudHSMV2");
|
|
1291
|
-
}
|
|
1292
|
-
};
|
|
1293
|
-
(0, import_smithy_client.createAggregatedClient)(commands, CloudHSMV2);
|
|
1096
|
+
class RestoreBackupCommand extends smithyClient.Command
|
|
1097
|
+
.classBuilder()
|
|
1098
|
+
.ep(commonParams)
|
|
1099
|
+
.m(function (Command, cs, config, o) {
|
|
1100
|
+
return [
|
|
1101
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1102
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1103
|
+
];
|
|
1104
|
+
})
|
|
1105
|
+
.s("BaldrApiService", "RestoreBackup", {})
|
|
1106
|
+
.n("CloudHSMV2Client", "RestoreBackupCommand")
|
|
1107
|
+
.f(void 0, void 0)
|
|
1108
|
+
.ser(se_RestoreBackupCommand)
|
|
1109
|
+
.de(de_RestoreBackupCommand)
|
|
1110
|
+
.build() {
|
|
1111
|
+
}
|
|
1294
1112
|
|
|
1295
|
-
|
|
1113
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1114
|
+
.classBuilder()
|
|
1115
|
+
.ep(commonParams)
|
|
1116
|
+
.m(function (Command, cs, config, o) {
|
|
1117
|
+
return [
|
|
1118
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1119
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1120
|
+
];
|
|
1121
|
+
})
|
|
1122
|
+
.s("BaldrApiService", "TagResource", {})
|
|
1123
|
+
.n("CloudHSMV2Client", "TagResourceCommand")
|
|
1124
|
+
.f(void 0, void 0)
|
|
1125
|
+
.ser(se_TagResourceCommand)
|
|
1126
|
+
.de(de_TagResourceCommand)
|
|
1127
|
+
.build() {
|
|
1128
|
+
}
|
|
1296
1129
|
|
|
1297
|
-
|
|
1130
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1131
|
+
.classBuilder()
|
|
1132
|
+
.ep(commonParams)
|
|
1133
|
+
.m(function (Command, cs, config, o) {
|
|
1134
|
+
return [
|
|
1135
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1136
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1137
|
+
];
|
|
1138
|
+
})
|
|
1139
|
+
.s("BaldrApiService", "UntagResource", {})
|
|
1140
|
+
.n("CloudHSMV2Client", "UntagResourceCommand")
|
|
1141
|
+
.f(void 0, void 0)
|
|
1142
|
+
.ser(se_UntagResourceCommand)
|
|
1143
|
+
.de(de_UntagResourceCommand)
|
|
1144
|
+
.build() {
|
|
1145
|
+
}
|
|
1298
1146
|
|
|
1299
|
-
|
|
1147
|
+
const commands = {
|
|
1148
|
+
CopyBackupToRegionCommand,
|
|
1149
|
+
CreateClusterCommand,
|
|
1150
|
+
CreateHsmCommand,
|
|
1151
|
+
DeleteBackupCommand,
|
|
1152
|
+
DeleteClusterCommand,
|
|
1153
|
+
DeleteHsmCommand,
|
|
1154
|
+
DeleteResourcePolicyCommand,
|
|
1155
|
+
DescribeBackupsCommand,
|
|
1156
|
+
DescribeClustersCommand,
|
|
1157
|
+
GetResourcePolicyCommand,
|
|
1158
|
+
InitializeClusterCommand,
|
|
1159
|
+
ListTagsCommand,
|
|
1160
|
+
ModifyBackupAttributesCommand,
|
|
1161
|
+
ModifyClusterCommand,
|
|
1162
|
+
PutResourcePolicyCommand,
|
|
1163
|
+
RestoreBackupCommand,
|
|
1164
|
+
TagResourceCommand,
|
|
1165
|
+
UntagResourceCommand,
|
|
1166
|
+
};
|
|
1167
|
+
class CloudHSMV2 extends CloudHSMV2Client {
|
|
1168
|
+
}
|
|
1169
|
+
smithyClient.createAggregatedClient(commands, CloudHSMV2);
|
|
1300
1170
|
|
|
1301
|
-
|
|
1171
|
+
const paginateDescribeBackups = core.createPaginator(CloudHSMV2Client, DescribeBackupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1302
1172
|
|
|
1303
|
-
|
|
1173
|
+
const paginateDescribeClusters = core.createPaginator(CloudHSMV2Client, DescribeClustersCommand, "NextToken", "NextToken", "MaxResults");
|
|
1304
1174
|
|
|
1305
|
-
|
|
1306
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1175
|
+
const paginateListTags = core.createPaginator(CloudHSMV2Client, ListTagsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1307
1176
|
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
CloudHSMV2Client,
|
|
1312
|
-
CloudHSMV2,
|
|
1313
|
-
$Command,
|
|
1314
|
-
CopyBackupToRegionCommand,
|
|
1315
|
-
CreateClusterCommand,
|
|
1316
|
-
CreateHsmCommand,
|
|
1317
|
-
DeleteBackupCommand,
|
|
1318
|
-
DeleteClusterCommand,
|
|
1319
|
-
DeleteHsmCommand,
|
|
1320
|
-
DeleteResourcePolicyCommand,
|
|
1321
|
-
DescribeBackupsCommand,
|
|
1322
|
-
DescribeClustersCommand,
|
|
1323
|
-
GetResourcePolicyCommand,
|
|
1324
|
-
InitializeClusterCommand,
|
|
1325
|
-
ListTagsCommand,
|
|
1326
|
-
ModifyBackupAttributesCommand,
|
|
1327
|
-
ModifyClusterCommand,
|
|
1328
|
-
PutResourcePolicyCommand,
|
|
1329
|
-
RestoreBackupCommand,
|
|
1330
|
-
TagResourceCommand,
|
|
1331
|
-
UntagResourceCommand,
|
|
1332
|
-
paginateDescribeBackups,
|
|
1333
|
-
paginateDescribeClusters,
|
|
1334
|
-
paginateListTags,
|
|
1335
|
-
BackupState,
|
|
1336
|
-
ClusterMode,
|
|
1337
|
-
BackupPolicy,
|
|
1338
|
-
BackupRetentionType,
|
|
1339
|
-
CloudHsmAccessDeniedException,
|
|
1340
|
-
CloudHsmInternalFailureException,
|
|
1341
|
-
CloudHsmInvalidRequestException,
|
|
1342
|
-
CloudHsmResourceNotFoundException,
|
|
1343
|
-
CloudHsmServiceException,
|
|
1344
|
-
CloudHsmTagException,
|
|
1345
|
-
NetworkType,
|
|
1346
|
-
HsmState,
|
|
1347
|
-
ClusterState,
|
|
1348
|
-
CloudHsmResourceLimitExceededException
|
|
1177
|
+
Object.defineProperty(exports, "$Command", {
|
|
1178
|
+
enumerable: true,
|
|
1179
|
+
get: function () { return smithyClient.Command; }
|
|
1349
1180
|
});
|
|
1350
|
-
|
|
1181
|
+
Object.defineProperty(exports, "__Client", {
|
|
1182
|
+
enumerable: true,
|
|
1183
|
+
get: function () { return smithyClient.Client; }
|
|
1184
|
+
});
|
|
1185
|
+
exports.BackupPolicy = BackupPolicy;
|
|
1186
|
+
exports.BackupRetentionType = BackupRetentionType;
|
|
1187
|
+
exports.BackupState = BackupState;
|
|
1188
|
+
exports.CloudHSMV2 = CloudHSMV2;
|
|
1189
|
+
exports.CloudHSMV2Client = CloudHSMV2Client;
|
|
1190
|
+
exports.CloudHSMV2ServiceException = CloudHSMV2ServiceException;
|
|
1191
|
+
exports.CloudHsmAccessDeniedException = CloudHsmAccessDeniedException;
|
|
1192
|
+
exports.CloudHsmInternalFailureException = CloudHsmInternalFailureException;
|
|
1193
|
+
exports.CloudHsmInvalidRequestException = CloudHsmInvalidRequestException;
|
|
1194
|
+
exports.CloudHsmResourceLimitExceededException = CloudHsmResourceLimitExceededException;
|
|
1195
|
+
exports.CloudHsmResourceNotFoundException = CloudHsmResourceNotFoundException;
|
|
1196
|
+
exports.CloudHsmServiceException = CloudHsmServiceException;
|
|
1197
|
+
exports.CloudHsmTagException = CloudHsmTagException;
|
|
1198
|
+
exports.ClusterMode = ClusterMode;
|
|
1199
|
+
exports.ClusterState = ClusterState;
|
|
1200
|
+
exports.CopyBackupToRegionCommand = CopyBackupToRegionCommand;
|
|
1201
|
+
exports.CreateClusterCommand = CreateClusterCommand;
|
|
1202
|
+
exports.CreateHsmCommand = CreateHsmCommand;
|
|
1203
|
+
exports.DeleteBackupCommand = DeleteBackupCommand;
|
|
1204
|
+
exports.DeleteClusterCommand = DeleteClusterCommand;
|
|
1205
|
+
exports.DeleteHsmCommand = DeleteHsmCommand;
|
|
1206
|
+
exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
|
|
1207
|
+
exports.DescribeBackupsCommand = DescribeBackupsCommand;
|
|
1208
|
+
exports.DescribeClustersCommand = DescribeClustersCommand;
|
|
1209
|
+
exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
|
|
1210
|
+
exports.HsmState = HsmState;
|
|
1211
|
+
exports.InitializeClusterCommand = InitializeClusterCommand;
|
|
1212
|
+
exports.ListTagsCommand = ListTagsCommand;
|
|
1213
|
+
exports.ModifyBackupAttributesCommand = ModifyBackupAttributesCommand;
|
|
1214
|
+
exports.ModifyClusterCommand = ModifyClusterCommand;
|
|
1215
|
+
exports.NetworkType = NetworkType;
|
|
1216
|
+
exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
|
|
1217
|
+
exports.RestoreBackupCommand = RestoreBackupCommand;
|
|
1218
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1219
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1220
|
+
exports.paginateDescribeBackups = paginateDescribeBackups;
|
|
1221
|
+
exports.paginateDescribeClusters = paginateDescribeClusters;
|
|
1222
|
+
exports.paginateListTags = paginateListTags;
|