@aws-sdk/client-cloudhsm-v2 3.183.0 → 3.185.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.
Files changed (31) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/CloudHSMV2.js +69 -62
  4. package/dist-es/CloudHSMV2Client.js +28 -22
  5. package/dist-es/commands/CopyBackupToRegionCommand.js +28 -21
  6. package/dist-es/commands/CreateClusterCommand.js +28 -21
  7. package/dist-es/commands/CreateHsmCommand.js +28 -21
  8. package/dist-es/commands/DeleteBackupCommand.js +28 -21
  9. package/dist-es/commands/DeleteClusterCommand.js +28 -21
  10. package/dist-es/commands/DeleteHsmCommand.js +28 -21
  11. package/dist-es/commands/DescribeBackupsCommand.js +28 -21
  12. package/dist-es/commands/DescribeClustersCommand.js +28 -21
  13. package/dist-es/commands/InitializeClusterCommand.js +28 -21
  14. package/dist-es/commands/ListTagsCommand.js +28 -21
  15. package/dist-es/commands/ModifyBackupAttributesCommand.js +28 -21
  16. package/dist-es/commands/ModifyClusterCommand.js +28 -21
  17. package/dist-es/commands/RestoreBackupCommand.js +28 -21
  18. package/dist-es/commands/TagResourceCommand.js +28 -21
  19. package/dist-es/commands/UntagResourceCommand.js +28 -21
  20. package/dist-es/endpoints.js +8 -8
  21. package/dist-es/models/CloudHSMV2ServiceException.js +10 -5
  22. package/dist-es/models/models_0.js +110 -183
  23. package/dist-es/pagination/DescribeBackupsPaginator.js +68 -25
  24. package/dist-es/pagination/DescribeClustersPaginator.js +68 -25
  25. package/dist-es/pagination/ListTagsPaginator.js +68 -25
  26. package/dist-es/protocols/Aws_json1_1.js +1415 -1086
  27. package/dist-es/runtimeConfig.browser.js +12 -26
  28. package/dist-es/runtimeConfig.js +12 -30
  29. package/dist-es/runtimeConfig.native.js +5 -8
  30. package/dist-es/runtimeConfig.shared.js +11 -8
  31. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-cloudhsm-v2
@@ -1326,10 +1326,10 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
1326
1326
  return {};
1327
1327
  };
1328
1328
  const deserializeMetadata = (output) => {
1329
- var _a;
1329
+ var _a, _b;
1330
1330
  return ({
1331
1331
  httpStatusCode: output.statusCode,
1332
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
1332
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
1333
1333
  extendedRequestId: output.headers["x-amz-id-2"],
1334
1334
  cfId: output.headers["x-amz-cf-id"],
1335
1335
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CloudHSMV2Client } from "./CloudHSMV2Client";
2
3
  import { CopyBackupToRegionCommand, } from "./commands/CopyBackupToRegionCommand";
3
4
  import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
@@ -14,215 +15,221 @@ import { ModifyClusterCommand, } from "./commands/ModifyClusterCommand";
14
15
  import { RestoreBackupCommand, } from "./commands/RestoreBackupCommand";
15
16
  import { TagResourceCommand } from "./commands/TagResourceCommand";
16
17
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
17
- export class CloudHSMV2 extends CloudHSMV2Client {
18
- copyBackupToRegion(args, optionsOrCb, cb) {
19
- const command = new CopyBackupToRegionCommand(args);
18
+ var CloudHSMV2 = (function (_super) {
19
+ __extends(CloudHSMV2, _super);
20
+ function CloudHSMV2() {
21
+ return _super !== null && _super.apply(this, arguments) || this;
22
+ }
23
+ CloudHSMV2.prototype.copyBackupToRegion = function (args, optionsOrCb, cb) {
24
+ var command = new CopyBackupToRegionCommand(args);
20
25
  if (typeof optionsOrCb === "function") {
21
26
  this.send(command, optionsOrCb);
22
27
  }
23
28
  else if (typeof cb === "function") {
24
29
  if (typeof optionsOrCb !== "object")
25
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
30
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
26
31
  this.send(command, optionsOrCb || {}, cb);
27
32
  }
28
33
  else {
29
34
  return this.send(command, optionsOrCb);
30
35
  }
31
- }
32
- createCluster(args, optionsOrCb, cb) {
33
- const command = new CreateClusterCommand(args);
36
+ };
37
+ CloudHSMV2.prototype.createCluster = function (args, optionsOrCb, cb) {
38
+ var command = new CreateClusterCommand(args);
34
39
  if (typeof optionsOrCb === "function") {
35
40
  this.send(command, optionsOrCb);
36
41
  }
37
42
  else if (typeof cb === "function") {
38
43
  if (typeof optionsOrCb !== "object")
39
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
44
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
40
45
  this.send(command, optionsOrCb || {}, cb);
41
46
  }
42
47
  else {
43
48
  return this.send(command, optionsOrCb);
44
49
  }
45
- }
46
- createHsm(args, optionsOrCb, cb) {
47
- const command = new CreateHsmCommand(args);
50
+ };
51
+ CloudHSMV2.prototype.createHsm = function (args, optionsOrCb, cb) {
52
+ var command = new CreateHsmCommand(args);
48
53
  if (typeof optionsOrCb === "function") {
49
54
  this.send(command, optionsOrCb);
50
55
  }
51
56
  else if (typeof cb === "function") {
52
57
  if (typeof optionsOrCb !== "object")
53
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
54
59
  this.send(command, optionsOrCb || {}, cb);
55
60
  }
56
61
  else {
57
62
  return this.send(command, optionsOrCb);
58
63
  }
59
- }
60
- deleteBackup(args, optionsOrCb, cb) {
61
- const command = new DeleteBackupCommand(args);
64
+ };
65
+ CloudHSMV2.prototype.deleteBackup = function (args, optionsOrCb, cb) {
66
+ var command = new DeleteBackupCommand(args);
62
67
  if (typeof optionsOrCb === "function") {
63
68
  this.send(command, optionsOrCb);
64
69
  }
65
70
  else if (typeof cb === "function") {
66
71
  if (typeof optionsOrCb !== "object")
67
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
68
73
  this.send(command, optionsOrCb || {}, cb);
69
74
  }
70
75
  else {
71
76
  return this.send(command, optionsOrCb);
72
77
  }
73
- }
74
- deleteCluster(args, optionsOrCb, cb) {
75
- const command = new DeleteClusterCommand(args);
78
+ };
79
+ CloudHSMV2.prototype.deleteCluster = function (args, optionsOrCb, cb) {
80
+ var command = new DeleteClusterCommand(args);
76
81
  if (typeof optionsOrCb === "function") {
77
82
  this.send(command, optionsOrCb);
78
83
  }
79
84
  else if (typeof cb === "function") {
80
85
  if (typeof optionsOrCb !== "object")
81
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
82
87
  this.send(command, optionsOrCb || {}, cb);
83
88
  }
84
89
  else {
85
90
  return this.send(command, optionsOrCb);
86
91
  }
87
- }
88
- deleteHsm(args, optionsOrCb, cb) {
89
- const command = new DeleteHsmCommand(args);
92
+ };
93
+ CloudHSMV2.prototype.deleteHsm = function (args, optionsOrCb, cb) {
94
+ var command = new DeleteHsmCommand(args);
90
95
  if (typeof optionsOrCb === "function") {
91
96
  this.send(command, optionsOrCb);
92
97
  }
93
98
  else if (typeof cb === "function") {
94
99
  if (typeof optionsOrCb !== "object")
95
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
96
101
  this.send(command, optionsOrCb || {}, cb);
97
102
  }
98
103
  else {
99
104
  return this.send(command, optionsOrCb);
100
105
  }
101
- }
102
- describeBackups(args, optionsOrCb, cb) {
103
- const command = new DescribeBackupsCommand(args);
106
+ };
107
+ CloudHSMV2.prototype.describeBackups = function (args, optionsOrCb, cb) {
108
+ var command = new DescribeBackupsCommand(args);
104
109
  if (typeof optionsOrCb === "function") {
105
110
  this.send(command, optionsOrCb);
106
111
  }
107
112
  else if (typeof cb === "function") {
108
113
  if (typeof optionsOrCb !== "object")
109
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
110
115
  this.send(command, optionsOrCb || {}, cb);
111
116
  }
112
117
  else {
113
118
  return this.send(command, optionsOrCb);
114
119
  }
115
- }
116
- describeClusters(args, optionsOrCb, cb) {
117
- const command = new DescribeClustersCommand(args);
120
+ };
121
+ CloudHSMV2.prototype.describeClusters = function (args, optionsOrCb, cb) {
122
+ var command = new DescribeClustersCommand(args);
118
123
  if (typeof optionsOrCb === "function") {
119
124
  this.send(command, optionsOrCb);
120
125
  }
121
126
  else if (typeof cb === "function") {
122
127
  if (typeof optionsOrCb !== "object")
123
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
124
129
  this.send(command, optionsOrCb || {}, cb);
125
130
  }
126
131
  else {
127
132
  return this.send(command, optionsOrCb);
128
133
  }
129
- }
130
- initializeCluster(args, optionsOrCb, cb) {
131
- const command = new InitializeClusterCommand(args);
134
+ };
135
+ CloudHSMV2.prototype.initializeCluster = function (args, optionsOrCb, cb) {
136
+ var command = new InitializeClusterCommand(args);
132
137
  if (typeof optionsOrCb === "function") {
133
138
  this.send(command, optionsOrCb);
134
139
  }
135
140
  else if (typeof cb === "function") {
136
141
  if (typeof optionsOrCb !== "object")
137
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
142
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
138
143
  this.send(command, optionsOrCb || {}, cb);
139
144
  }
140
145
  else {
141
146
  return this.send(command, optionsOrCb);
142
147
  }
143
- }
144
- listTags(args, optionsOrCb, cb) {
145
- const command = new ListTagsCommand(args);
148
+ };
149
+ CloudHSMV2.prototype.listTags = function (args, optionsOrCb, cb) {
150
+ var command = new ListTagsCommand(args);
146
151
  if (typeof optionsOrCb === "function") {
147
152
  this.send(command, optionsOrCb);
148
153
  }
149
154
  else if (typeof cb === "function") {
150
155
  if (typeof optionsOrCb !== "object")
151
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
152
157
  this.send(command, optionsOrCb || {}, cb);
153
158
  }
154
159
  else {
155
160
  return this.send(command, optionsOrCb);
156
161
  }
157
- }
158
- modifyBackupAttributes(args, optionsOrCb, cb) {
159
- const command = new ModifyBackupAttributesCommand(args);
162
+ };
163
+ CloudHSMV2.prototype.modifyBackupAttributes = function (args, optionsOrCb, cb) {
164
+ var command = new ModifyBackupAttributesCommand(args);
160
165
  if (typeof optionsOrCb === "function") {
161
166
  this.send(command, optionsOrCb);
162
167
  }
163
168
  else if (typeof cb === "function") {
164
169
  if (typeof optionsOrCb !== "object")
165
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
166
171
  this.send(command, optionsOrCb || {}, cb);
167
172
  }
168
173
  else {
169
174
  return this.send(command, optionsOrCb);
170
175
  }
171
- }
172
- modifyCluster(args, optionsOrCb, cb) {
173
- const command = new ModifyClusterCommand(args);
176
+ };
177
+ CloudHSMV2.prototype.modifyCluster = function (args, optionsOrCb, cb) {
178
+ var command = new ModifyClusterCommand(args);
174
179
  if (typeof optionsOrCb === "function") {
175
180
  this.send(command, optionsOrCb);
176
181
  }
177
182
  else if (typeof cb === "function") {
178
183
  if (typeof optionsOrCb !== "object")
179
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
180
185
  this.send(command, optionsOrCb || {}, cb);
181
186
  }
182
187
  else {
183
188
  return this.send(command, optionsOrCb);
184
189
  }
185
- }
186
- restoreBackup(args, optionsOrCb, cb) {
187
- const command = new RestoreBackupCommand(args);
190
+ };
191
+ CloudHSMV2.prototype.restoreBackup = function (args, optionsOrCb, cb) {
192
+ var command = new RestoreBackupCommand(args);
188
193
  if (typeof optionsOrCb === "function") {
189
194
  this.send(command, optionsOrCb);
190
195
  }
191
196
  else if (typeof cb === "function") {
192
197
  if (typeof optionsOrCb !== "object")
193
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
194
199
  this.send(command, optionsOrCb || {}, cb);
195
200
  }
196
201
  else {
197
202
  return this.send(command, optionsOrCb);
198
203
  }
199
- }
200
- tagResource(args, optionsOrCb, cb) {
201
- const command = new TagResourceCommand(args);
204
+ };
205
+ CloudHSMV2.prototype.tagResource = function (args, optionsOrCb, cb) {
206
+ var command = new TagResourceCommand(args);
202
207
  if (typeof optionsOrCb === "function") {
203
208
  this.send(command, optionsOrCb);
204
209
  }
205
210
  else if (typeof cb === "function") {
206
211
  if (typeof optionsOrCb !== "object")
207
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
208
213
  this.send(command, optionsOrCb || {}, cb);
209
214
  }
210
215
  else {
211
216
  return this.send(command, optionsOrCb);
212
217
  }
213
- }
214
- untagResource(args, optionsOrCb, cb) {
215
- const command = new UntagResourceCommand(args);
218
+ };
219
+ CloudHSMV2.prototype.untagResource = function (args, optionsOrCb, cb) {
220
+ var command = new UntagResourceCommand(args);
216
221
  if (typeof optionsOrCb === "function") {
217
222
  this.send(command, optionsOrCb);
218
223
  }
219
224
  else if (typeof cb === "function") {
220
225
  if (typeof optionsOrCb !== "object")
221
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
222
227
  this.send(command, optionsOrCb || {}, cb);
223
228
  }
224
229
  else {
225
230
  return this.send(command, optionsOrCb);
226
231
  }
227
- }
228
- }
232
+ };
233
+ return CloudHSMV2;
234
+ }(CloudHSMV2Client));
235
+ export { CloudHSMV2 };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class CloudHSMV2Client extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var CloudHSMV2Client = (function (_super) {
13
+ __extends(CloudHSMV2Client, _super);
14
+ function CloudHSMV2Client(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ CloudHSMV2Client.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return CloudHSMV2Client;
38
+ }(__Client));
39
+ export { CloudHSMV2Client };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CopyBackupToRegionRequestFilterSensitiveLog, CopyBackupToRegionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CopyBackupToRegionCommand, serializeAws_json1_1CopyBackupToRegionCommand, } from "../protocols/Aws_json1_1";
5
- export class CopyBackupToRegionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CopyBackupToRegionCommand = (function (_super) {
7
+ __extends(CopyBackupToRegionCommand, _super);
8
+ function CopyBackupToRegionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CopyBackupToRegionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMV2Client";
15
- const commandName = "CopyBackupToRegionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMV2Client";
18
+ var commandName = "CopyBackupToRegionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CopyBackupToRegionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CopyBackupToRegionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CopyBackupToRegionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CopyBackupToRegionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CopyBackupToRegionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CopyBackupToRegionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CopyBackupToRegionCommand;
38
+ }($Command));
39
+ export { CopyBackupToRegionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateClusterRequestFilterSensitiveLog, CreateClusterResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateClusterCommand, serializeAws_json1_1CreateClusterCommand, } from "../protocols/Aws_json1_1";
5
- export class CreateClusterCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateClusterCommand = (function (_super) {
7
+ __extends(CreateClusterCommand, _super);
8
+ function CreateClusterCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateClusterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMV2Client";
15
- const commandName = "CreateClusterCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMV2Client";
18
+ var commandName = "CreateClusterCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateClusterRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateClusterResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateClusterCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateClusterCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateClusterCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateClusterCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateClusterCommand;
38
+ }($Command));
39
+ export { CreateClusterCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateHsmRequestFilterSensitiveLog, CreateHsmResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateHsmCommand, serializeAws_json1_1CreateHsmCommand } from "../protocols/Aws_json1_1";
5
- export class CreateHsmCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateHsmCommand = (function (_super) {
7
+ __extends(CreateHsmCommand, _super);
8
+ function CreateHsmCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateHsmCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMV2Client";
15
- const commandName = "CreateHsmCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMV2Client";
18
+ var commandName = "CreateHsmCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateHsmRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateHsmResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateHsmCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateHsmCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateHsmCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateHsmCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateHsmCommand;
38
+ }($Command));
39
+ export { CreateHsmCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteBackupRequestFilterSensitiveLog, DeleteBackupResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DeleteBackupCommand, serializeAws_json1_1DeleteBackupCommand, } from "../protocols/Aws_json1_1";
5
- export class DeleteBackupCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteBackupCommand = (function (_super) {
7
+ __extends(DeleteBackupCommand, _super);
8
+ function DeleteBackupCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteBackupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMV2Client";
15
- const commandName = "DeleteBackupCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMV2Client";
18
+ var commandName = "DeleteBackupCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteBackupRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteBackupResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteBackupCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DeleteBackupCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteBackupCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DeleteBackupCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteBackupCommand;
38
+ }($Command));
39
+ export { DeleteBackupCommand };