@aws-sdk/client-cloudhsm 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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/CloudHSM.js +89 -82
- package/dist-es/CloudHSMClient.js +28 -22
- package/dist-es/commands/AddTagsToResourceCommand.js +28 -21
- package/dist-es/commands/CreateHapgCommand.js +28 -21
- package/dist-es/commands/CreateHsmCommand.js +28 -21
- package/dist-es/commands/CreateLunaClientCommand.js +28 -21
- package/dist-es/commands/DeleteHapgCommand.js +28 -21
- package/dist-es/commands/DeleteHsmCommand.js +28 -21
- package/dist-es/commands/DeleteLunaClientCommand.js +28 -21
- package/dist-es/commands/DescribeHapgCommand.js +28 -21
- package/dist-es/commands/DescribeHsmCommand.js +28 -21
- package/dist-es/commands/DescribeLunaClientCommand.js +28 -21
- package/dist-es/commands/GetConfigCommand.js +28 -21
- package/dist-es/commands/ListAvailableZonesCommand.js +28 -21
- package/dist-es/commands/ListHapgsCommand.js +28 -21
- package/dist-es/commands/ListHsmsCommand.js +28 -21
- package/dist-es/commands/ListLunaClientsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ModifyHapgCommand.js +28 -21
- package/dist-es/commands/ModifyHsmCommand.js +28 -21
- package/dist-es/commands/ModifyLunaClientCommand.js +28 -21
- package/dist-es/commands/RemoveTagsFromResourceCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CloudHSMServiceException.js +10 -5
- package/dist-es/models/models_0.js +78 -159
- package/dist-es/protocols/Aws_json1_1.js +1591 -1192
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- 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
|
|
@@ -1429,10 +1429,10 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
1429
1429
|
return retVal;
|
|
1430
1430
|
};
|
|
1431
1431
|
const deserializeMetadata = (output) => {
|
|
1432
|
-
var _a;
|
|
1432
|
+
var _a, _b;
|
|
1433
1433
|
return ({
|
|
1434
1434
|
httpStatusCode: output.statusCode,
|
|
1435
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
1435
|
+
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"],
|
|
1436
1436
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1437
1437
|
cfId: output.headers["x-amz-cf-id"],
|
|
1438
1438
|
});
|
package/dist-es/CloudHSM.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { CloudHSMClient } from "./CloudHSMClient";
|
|
2
3
|
import { AddTagsToResourceCommand, } from "./commands/AddTagsToResourceCommand";
|
|
3
4
|
import { CreateHapgCommand } from "./commands/CreateHapgCommand";
|
|
@@ -19,285 +20,291 @@ import { ModifyHapgCommand } from "./commands/ModifyHapgCommand";
|
|
|
19
20
|
import { ModifyHsmCommand } from "./commands/ModifyHsmCommand";
|
|
20
21
|
import { ModifyLunaClientCommand, } from "./commands/ModifyLunaClientCommand";
|
|
21
22
|
import { RemoveTagsFromResourceCommand, } from "./commands/RemoveTagsFromResourceCommand";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
var CloudHSM = (function (_super) {
|
|
24
|
+
__extends(CloudHSM, _super);
|
|
25
|
+
function CloudHSM() {
|
|
26
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
+
}
|
|
28
|
+
CloudHSM.prototype.addTagsToResource = function (args, optionsOrCb, cb) {
|
|
29
|
+
var command = new AddTagsToResourceCommand(args);
|
|
25
30
|
if (typeof optionsOrCb === "function") {
|
|
26
31
|
this.send(command, optionsOrCb);
|
|
27
32
|
}
|
|
28
33
|
else if (typeof cb === "function") {
|
|
29
34
|
if (typeof optionsOrCb !== "object")
|
|
30
|
-
throw new Error(
|
|
35
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
31
36
|
this.send(command, optionsOrCb || {}, cb);
|
|
32
37
|
}
|
|
33
38
|
else {
|
|
34
39
|
return this.send(command, optionsOrCb);
|
|
35
40
|
}
|
|
36
|
-
}
|
|
37
|
-
createHapg(args, optionsOrCb, cb) {
|
|
38
|
-
|
|
41
|
+
};
|
|
42
|
+
CloudHSM.prototype.createHapg = function (args, optionsOrCb, cb) {
|
|
43
|
+
var command = new CreateHapgCommand(args);
|
|
39
44
|
if (typeof optionsOrCb === "function") {
|
|
40
45
|
this.send(command, optionsOrCb);
|
|
41
46
|
}
|
|
42
47
|
else if (typeof cb === "function") {
|
|
43
48
|
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error(
|
|
49
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
45
50
|
this.send(command, optionsOrCb || {}, cb);
|
|
46
51
|
}
|
|
47
52
|
else {
|
|
48
53
|
return this.send(command, optionsOrCb);
|
|
49
54
|
}
|
|
50
|
-
}
|
|
51
|
-
createHsm(args, optionsOrCb, cb) {
|
|
52
|
-
|
|
55
|
+
};
|
|
56
|
+
CloudHSM.prototype.createHsm = function (args, optionsOrCb, cb) {
|
|
57
|
+
var command = new CreateHsmCommand(args);
|
|
53
58
|
if (typeof optionsOrCb === "function") {
|
|
54
59
|
this.send(command, optionsOrCb);
|
|
55
60
|
}
|
|
56
61
|
else if (typeof cb === "function") {
|
|
57
62
|
if (typeof optionsOrCb !== "object")
|
|
58
|
-
throw new Error(
|
|
63
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
59
64
|
this.send(command, optionsOrCb || {}, cb);
|
|
60
65
|
}
|
|
61
66
|
else {
|
|
62
67
|
return this.send(command, optionsOrCb);
|
|
63
68
|
}
|
|
64
|
-
}
|
|
65
|
-
createLunaClient(args, optionsOrCb, cb) {
|
|
66
|
-
|
|
69
|
+
};
|
|
70
|
+
CloudHSM.prototype.createLunaClient = function (args, optionsOrCb, cb) {
|
|
71
|
+
var command = new CreateLunaClientCommand(args);
|
|
67
72
|
if (typeof optionsOrCb === "function") {
|
|
68
73
|
this.send(command, optionsOrCb);
|
|
69
74
|
}
|
|
70
75
|
else if (typeof cb === "function") {
|
|
71
76
|
if (typeof optionsOrCb !== "object")
|
|
72
|
-
throw new Error(
|
|
77
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
73
78
|
this.send(command, optionsOrCb || {}, cb);
|
|
74
79
|
}
|
|
75
80
|
else {
|
|
76
81
|
return this.send(command, optionsOrCb);
|
|
77
82
|
}
|
|
78
|
-
}
|
|
79
|
-
deleteHapg(args, optionsOrCb, cb) {
|
|
80
|
-
|
|
83
|
+
};
|
|
84
|
+
CloudHSM.prototype.deleteHapg = function (args, optionsOrCb, cb) {
|
|
85
|
+
var command = new DeleteHapgCommand(args);
|
|
81
86
|
if (typeof optionsOrCb === "function") {
|
|
82
87
|
this.send(command, optionsOrCb);
|
|
83
88
|
}
|
|
84
89
|
else if (typeof cb === "function") {
|
|
85
90
|
if (typeof optionsOrCb !== "object")
|
|
86
|
-
throw new Error(
|
|
91
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
87
92
|
this.send(command, optionsOrCb || {}, cb);
|
|
88
93
|
}
|
|
89
94
|
else {
|
|
90
95
|
return this.send(command, optionsOrCb);
|
|
91
96
|
}
|
|
92
|
-
}
|
|
93
|
-
deleteHsm(args, optionsOrCb, cb) {
|
|
94
|
-
|
|
97
|
+
};
|
|
98
|
+
CloudHSM.prototype.deleteHsm = function (args, optionsOrCb, cb) {
|
|
99
|
+
var command = new DeleteHsmCommand(args);
|
|
95
100
|
if (typeof optionsOrCb === "function") {
|
|
96
101
|
this.send(command, optionsOrCb);
|
|
97
102
|
}
|
|
98
103
|
else if (typeof cb === "function") {
|
|
99
104
|
if (typeof optionsOrCb !== "object")
|
|
100
|
-
throw new Error(
|
|
105
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
101
106
|
this.send(command, optionsOrCb || {}, cb);
|
|
102
107
|
}
|
|
103
108
|
else {
|
|
104
109
|
return this.send(command, optionsOrCb);
|
|
105
110
|
}
|
|
106
|
-
}
|
|
107
|
-
deleteLunaClient(args, optionsOrCb, cb) {
|
|
108
|
-
|
|
111
|
+
};
|
|
112
|
+
CloudHSM.prototype.deleteLunaClient = function (args, optionsOrCb, cb) {
|
|
113
|
+
var command = new DeleteLunaClientCommand(args);
|
|
109
114
|
if (typeof optionsOrCb === "function") {
|
|
110
115
|
this.send(command, optionsOrCb);
|
|
111
116
|
}
|
|
112
117
|
else if (typeof cb === "function") {
|
|
113
118
|
if (typeof optionsOrCb !== "object")
|
|
114
|
-
throw new Error(
|
|
119
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
115
120
|
this.send(command, optionsOrCb || {}, cb);
|
|
116
121
|
}
|
|
117
122
|
else {
|
|
118
123
|
return this.send(command, optionsOrCb);
|
|
119
124
|
}
|
|
120
|
-
}
|
|
121
|
-
describeHapg(args, optionsOrCb, cb) {
|
|
122
|
-
|
|
125
|
+
};
|
|
126
|
+
CloudHSM.prototype.describeHapg = function (args, optionsOrCb, cb) {
|
|
127
|
+
var command = new DescribeHapgCommand(args);
|
|
123
128
|
if (typeof optionsOrCb === "function") {
|
|
124
129
|
this.send(command, optionsOrCb);
|
|
125
130
|
}
|
|
126
131
|
else if (typeof cb === "function") {
|
|
127
132
|
if (typeof optionsOrCb !== "object")
|
|
128
|
-
throw new Error(
|
|
133
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
129
134
|
this.send(command, optionsOrCb || {}, cb);
|
|
130
135
|
}
|
|
131
136
|
else {
|
|
132
137
|
return this.send(command, optionsOrCb);
|
|
133
138
|
}
|
|
134
|
-
}
|
|
135
|
-
describeHsm(args, optionsOrCb, cb) {
|
|
136
|
-
|
|
139
|
+
};
|
|
140
|
+
CloudHSM.prototype.describeHsm = function (args, optionsOrCb, cb) {
|
|
141
|
+
var command = new DescribeHsmCommand(args);
|
|
137
142
|
if (typeof optionsOrCb === "function") {
|
|
138
143
|
this.send(command, optionsOrCb);
|
|
139
144
|
}
|
|
140
145
|
else if (typeof cb === "function") {
|
|
141
146
|
if (typeof optionsOrCb !== "object")
|
|
142
|
-
throw new Error(
|
|
147
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
143
148
|
this.send(command, optionsOrCb || {}, cb);
|
|
144
149
|
}
|
|
145
150
|
else {
|
|
146
151
|
return this.send(command, optionsOrCb);
|
|
147
152
|
}
|
|
148
|
-
}
|
|
149
|
-
describeLunaClient(args, optionsOrCb, cb) {
|
|
150
|
-
|
|
153
|
+
};
|
|
154
|
+
CloudHSM.prototype.describeLunaClient = function (args, optionsOrCb, cb) {
|
|
155
|
+
var command = new DescribeLunaClientCommand(args);
|
|
151
156
|
if (typeof optionsOrCb === "function") {
|
|
152
157
|
this.send(command, optionsOrCb);
|
|
153
158
|
}
|
|
154
159
|
else if (typeof cb === "function") {
|
|
155
160
|
if (typeof optionsOrCb !== "object")
|
|
156
|
-
throw new Error(
|
|
161
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
157
162
|
this.send(command, optionsOrCb || {}, cb);
|
|
158
163
|
}
|
|
159
164
|
else {
|
|
160
165
|
return this.send(command, optionsOrCb);
|
|
161
166
|
}
|
|
162
|
-
}
|
|
163
|
-
getConfig(args, optionsOrCb, cb) {
|
|
164
|
-
|
|
167
|
+
};
|
|
168
|
+
CloudHSM.prototype.getConfig = function (args, optionsOrCb, cb) {
|
|
169
|
+
var command = new GetConfigCommand(args);
|
|
165
170
|
if (typeof optionsOrCb === "function") {
|
|
166
171
|
this.send(command, optionsOrCb);
|
|
167
172
|
}
|
|
168
173
|
else if (typeof cb === "function") {
|
|
169
174
|
if (typeof optionsOrCb !== "object")
|
|
170
|
-
throw new Error(
|
|
175
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
171
176
|
this.send(command, optionsOrCb || {}, cb);
|
|
172
177
|
}
|
|
173
178
|
else {
|
|
174
179
|
return this.send(command, optionsOrCb);
|
|
175
180
|
}
|
|
176
|
-
}
|
|
177
|
-
listAvailableZones(args, optionsOrCb, cb) {
|
|
178
|
-
|
|
181
|
+
};
|
|
182
|
+
CloudHSM.prototype.listAvailableZones = function (args, optionsOrCb, cb) {
|
|
183
|
+
var command = new ListAvailableZonesCommand(args);
|
|
179
184
|
if (typeof optionsOrCb === "function") {
|
|
180
185
|
this.send(command, optionsOrCb);
|
|
181
186
|
}
|
|
182
187
|
else if (typeof cb === "function") {
|
|
183
188
|
if (typeof optionsOrCb !== "object")
|
|
184
|
-
throw new Error(
|
|
189
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
185
190
|
this.send(command, optionsOrCb || {}, cb);
|
|
186
191
|
}
|
|
187
192
|
else {
|
|
188
193
|
return this.send(command, optionsOrCb);
|
|
189
194
|
}
|
|
190
|
-
}
|
|
191
|
-
listHapgs(args, optionsOrCb, cb) {
|
|
192
|
-
|
|
195
|
+
};
|
|
196
|
+
CloudHSM.prototype.listHapgs = function (args, optionsOrCb, cb) {
|
|
197
|
+
var command = new ListHapgsCommand(args);
|
|
193
198
|
if (typeof optionsOrCb === "function") {
|
|
194
199
|
this.send(command, optionsOrCb);
|
|
195
200
|
}
|
|
196
201
|
else if (typeof cb === "function") {
|
|
197
202
|
if (typeof optionsOrCb !== "object")
|
|
198
|
-
throw new Error(
|
|
203
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
199
204
|
this.send(command, optionsOrCb || {}, cb);
|
|
200
205
|
}
|
|
201
206
|
else {
|
|
202
207
|
return this.send(command, optionsOrCb);
|
|
203
208
|
}
|
|
204
|
-
}
|
|
205
|
-
listHsms(args, optionsOrCb, cb) {
|
|
206
|
-
|
|
209
|
+
};
|
|
210
|
+
CloudHSM.prototype.listHsms = function (args, optionsOrCb, cb) {
|
|
211
|
+
var command = new ListHsmsCommand(args);
|
|
207
212
|
if (typeof optionsOrCb === "function") {
|
|
208
213
|
this.send(command, optionsOrCb);
|
|
209
214
|
}
|
|
210
215
|
else if (typeof cb === "function") {
|
|
211
216
|
if (typeof optionsOrCb !== "object")
|
|
212
|
-
throw new Error(
|
|
217
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
213
218
|
this.send(command, optionsOrCb || {}, cb);
|
|
214
219
|
}
|
|
215
220
|
else {
|
|
216
221
|
return this.send(command, optionsOrCb);
|
|
217
222
|
}
|
|
218
|
-
}
|
|
219
|
-
listLunaClients(args, optionsOrCb, cb) {
|
|
220
|
-
|
|
223
|
+
};
|
|
224
|
+
CloudHSM.prototype.listLunaClients = function (args, optionsOrCb, cb) {
|
|
225
|
+
var command = new ListLunaClientsCommand(args);
|
|
221
226
|
if (typeof optionsOrCb === "function") {
|
|
222
227
|
this.send(command, optionsOrCb);
|
|
223
228
|
}
|
|
224
229
|
else if (typeof cb === "function") {
|
|
225
230
|
if (typeof optionsOrCb !== "object")
|
|
226
|
-
throw new Error(
|
|
231
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
227
232
|
this.send(command, optionsOrCb || {}, cb);
|
|
228
233
|
}
|
|
229
234
|
else {
|
|
230
235
|
return this.send(command, optionsOrCb);
|
|
231
236
|
}
|
|
232
|
-
}
|
|
233
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
234
|
-
|
|
237
|
+
};
|
|
238
|
+
CloudHSM.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
239
|
+
var command = new ListTagsForResourceCommand(args);
|
|
235
240
|
if (typeof optionsOrCb === "function") {
|
|
236
241
|
this.send(command, optionsOrCb);
|
|
237
242
|
}
|
|
238
243
|
else if (typeof cb === "function") {
|
|
239
244
|
if (typeof optionsOrCb !== "object")
|
|
240
|
-
throw new Error(
|
|
245
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
241
246
|
this.send(command, optionsOrCb || {}, cb);
|
|
242
247
|
}
|
|
243
248
|
else {
|
|
244
249
|
return this.send(command, optionsOrCb);
|
|
245
250
|
}
|
|
246
|
-
}
|
|
247
|
-
modifyHapg(args, optionsOrCb, cb) {
|
|
248
|
-
|
|
251
|
+
};
|
|
252
|
+
CloudHSM.prototype.modifyHapg = function (args, optionsOrCb, cb) {
|
|
253
|
+
var command = new ModifyHapgCommand(args);
|
|
249
254
|
if (typeof optionsOrCb === "function") {
|
|
250
255
|
this.send(command, optionsOrCb);
|
|
251
256
|
}
|
|
252
257
|
else if (typeof cb === "function") {
|
|
253
258
|
if (typeof optionsOrCb !== "object")
|
|
254
|
-
throw new Error(
|
|
259
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
255
260
|
this.send(command, optionsOrCb || {}, cb);
|
|
256
261
|
}
|
|
257
262
|
else {
|
|
258
263
|
return this.send(command, optionsOrCb);
|
|
259
264
|
}
|
|
260
|
-
}
|
|
261
|
-
modifyHsm(args, optionsOrCb, cb) {
|
|
262
|
-
|
|
265
|
+
};
|
|
266
|
+
CloudHSM.prototype.modifyHsm = function (args, optionsOrCb, cb) {
|
|
267
|
+
var command = new ModifyHsmCommand(args);
|
|
263
268
|
if (typeof optionsOrCb === "function") {
|
|
264
269
|
this.send(command, optionsOrCb);
|
|
265
270
|
}
|
|
266
271
|
else if (typeof cb === "function") {
|
|
267
272
|
if (typeof optionsOrCb !== "object")
|
|
268
|
-
throw new Error(
|
|
273
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
269
274
|
this.send(command, optionsOrCb || {}, cb);
|
|
270
275
|
}
|
|
271
276
|
else {
|
|
272
277
|
return this.send(command, optionsOrCb);
|
|
273
278
|
}
|
|
274
|
-
}
|
|
275
|
-
modifyLunaClient(args, optionsOrCb, cb) {
|
|
276
|
-
|
|
279
|
+
};
|
|
280
|
+
CloudHSM.prototype.modifyLunaClient = function (args, optionsOrCb, cb) {
|
|
281
|
+
var command = new ModifyLunaClientCommand(args);
|
|
277
282
|
if (typeof optionsOrCb === "function") {
|
|
278
283
|
this.send(command, optionsOrCb);
|
|
279
284
|
}
|
|
280
285
|
else if (typeof cb === "function") {
|
|
281
286
|
if (typeof optionsOrCb !== "object")
|
|
282
|
-
throw new Error(
|
|
287
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
283
288
|
this.send(command, optionsOrCb || {}, cb);
|
|
284
289
|
}
|
|
285
290
|
else {
|
|
286
291
|
return this.send(command, optionsOrCb);
|
|
287
292
|
}
|
|
288
|
-
}
|
|
289
|
-
removeTagsFromResource(args, optionsOrCb, cb) {
|
|
290
|
-
|
|
293
|
+
};
|
|
294
|
+
CloudHSM.prototype.removeTagsFromResource = function (args, optionsOrCb, cb) {
|
|
295
|
+
var command = new RemoveTagsFromResourceCommand(args);
|
|
291
296
|
if (typeof optionsOrCb === "function") {
|
|
292
297
|
this.send(command, optionsOrCb);
|
|
293
298
|
}
|
|
294
299
|
else if (typeof cb === "function") {
|
|
295
300
|
if (typeof optionsOrCb !== "object")
|
|
296
|
-
throw new Error(
|
|
301
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
297
302
|
this.send(command, optionsOrCb || {}, cb);
|
|
298
303
|
}
|
|
299
304
|
else {
|
|
300
305
|
return this.send(command, optionsOrCb);
|
|
301
306
|
}
|
|
302
|
-
}
|
|
303
|
-
|
|
307
|
+
};
|
|
308
|
+
return CloudHSM;
|
|
309
|
+
}(CloudHSMClient));
|
|
310
|
+
export { CloudHSM };
|
|
@@ -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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var CloudHSMClient = (function (_super) {
|
|
13
|
+
__extends(CloudHSMClient, _super);
|
|
14
|
+
function CloudHSMClient(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
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
CloudHSMClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return CloudHSMClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { CloudHSMClient };
|
|
@@ -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 { AddTagsToResourceRequestFilterSensitiveLog, AddTagsToResourceResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1AddTagsToResourceCommand, serializeAws_json1_1AddTagsToResourceCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var AddTagsToResourceCommand = (function (_super) {
|
|
7
|
+
__extends(AddTagsToResourceCommand, _super);
|
|
8
|
+
function AddTagsToResourceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
AddTagsToResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CloudHSMClient";
|
|
18
|
+
var commandName = "AddTagsToResourceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: AddTagsToResourceRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: AddTagsToResourceResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AddTagsToResourceCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1AddTagsToResourceCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
AddTagsToResourceCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1AddTagsToResourceCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return AddTagsToResourceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AddTagsToResourceCommand };
|
|
@@ -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 { CreateHapgRequestFilterSensitiveLog, CreateHapgResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateHapgCommand, serializeAws_json1_1CreateHapgCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateHapgCommand = (function (_super) {
|
|
7
|
+
__extends(CreateHapgCommand, _super);
|
|
8
|
+
function CreateHapgCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateHapgCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CloudHSMClient";
|
|
18
|
+
var commandName = "CreateHapgCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateHapgRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateHapgResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateHapgCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateHapgCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateHapgCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateHapgCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateHapgCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateHapgCommand };
|