tencentcloud-sdk-nodejs-intl-en 3.0.1214 → 3.0.1216
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/package.json +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/index.js +1 -0
- package/tencentcloud/kms/v20190118/kms_client.js +248 -50
- package/tencentcloud/kms/v20190118/models.js +1679 -173
- package/tencentcloud/mdl/v20200326/models.js +2 -2
- package/tencentcloud/region/index.js +3 -0
- package/tencentcloud/region/v20220627/index.js +4 -0
- package/tencentcloud/region/v20220627/models.js +527 -0
- package/tencentcloud/region/v20220627/region_client.js +75 -0
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1216";
|
|
2
2
|
module.exports = sdkVersion
|
package/tencentcloud/index.js
CHANGED
|
@@ -25,15 +25,20 @@ const CreateKeyRequest = models.CreateKeyRequest;
|
|
|
25
25
|
const DisableWhiteBoxKeyResponse = models.DisableWhiteBoxKeyResponse;
|
|
26
26
|
const DisableKeyResponse = models.DisableKeyResponse;
|
|
27
27
|
const DescribeWhiteBoxServiceStatusRequest = models.DescribeWhiteBoxServiceStatusRequest;
|
|
28
|
-
const
|
|
28
|
+
const UpdateDataKeyDescriptionRequest = models.UpdateDataKeyDescriptionRequest;
|
|
29
|
+
const DescribeDataKeyResponse = models.DescribeDataKeyResponse;
|
|
30
|
+
const DisableDataKeyResponse = models.DisableDataKeyResponse;
|
|
29
31
|
const DescribeKeyRequest = models.DescribeKeyRequest;
|
|
30
32
|
const WhiteboxKeyInfo = models.WhiteboxKeyInfo;
|
|
33
|
+
const DescribeDataKeysRequest = models.DescribeDataKeysRequest;
|
|
31
34
|
const ListAlgorithmsResponse = models.ListAlgorithmsResponse;
|
|
32
35
|
const DisableKeysResponse = models.DisableKeysResponse;
|
|
36
|
+
const EnableDataKeyResponse = models.EnableDataKeyResponse;
|
|
33
37
|
const DescribeWhiteBoxKeyResponse = models.DescribeWhiteBoxKeyResponse;
|
|
34
38
|
const UpdateKeyDescriptionResponse = models.UpdateKeyDescriptionResponse;
|
|
35
39
|
const DescribeWhiteBoxServiceStatusResponse = models.DescribeWhiteBoxServiceStatusResponse;
|
|
36
|
-
const
|
|
40
|
+
const AsymmetricRsaDecryptResponse = models.AsymmetricRsaDecryptResponse;
|
|
41
|
+
const ScheduleDataKeyDeletionResponse = models.ScheduleDataKeyDeletionResponse;
|
|
37
42
|
const EnableKeyRequest = models.EnableKeyRequest;
|
|
38
43
|
const GetKeyRotationStatusRequest = models.GetKeyRotationStatusRequest;
|
|
39
44
|
const ListAlgorithmsRequest = models.ListAlgorithmsRequest;
|
|
@@ -44,35 +49,52 @@ const UpdateAliasResponse = models.UpdateAliasResponse;
|
|
|
44
49
|
const ScheduleKeyDeletionResponse = models.ScheduleKeyDeletionResponse;
|
|
45
50
|
const PostQuantumCryptoVerifyRequest = models.PostQuantumCryptoVerifyRequest;
|
|
46
51
|
const GenerateRandomResponse = models.GenerateRandomResponse;
|
|
52
|
+
const UpdateDataKeyNameRequest = models.UpdateDataKeyNameRequest;
|
|
53
|
+
const ScheduleDataKeyDeletionRequest = models.ScheduleDataKeyDeletionRequest;
|
|
47
54
|
const DescribeKeysRequest = models.DescribeKeysRequest;
|
|
48
55
|
const GetPublicKeyRequest = models.GetPublicKeyRequest;
|
|
49
56
|
const GetServiceStatusRequest = models.GetServiceStatusRequest;
|
|
50
57
|
const EnableWhiteBoxKeysResponse = models.EnableWhiteBoxKeysResponse;
|
|
51
58
|
const ArchiveKeyResponse = models.ArchiveKeyResponse;
|
|
52
59
|
const VerifyByAsymmetricKeyResponse = models.VerifyByAsymmetricKeyResponse;
|
|
60
|
+
const DescribeDataKeysResponse = models.DescribeDataKeysResponse;
|
|
53
61
|
const DescribeWhiteBoxKeyRequest = models.DescribeWhiteBoxKeyRequest;
|
|
54
62
|
const GetParametersForImportResponse = models.GetParametersForImportResponse;
|
|
55
63
|
const DecryptResponse = models.DecryptResponse;
|
|
64
|
+
const ListDataKeyDetailResponse = models.ListDataKeyDetailResponse;
|
|
56
65
|
const CreateWhiteBoxKeyResponse = models.CreateWhiteBoxKeyResponse;
|
|
57
|
-
const
|
|
66
|
+
const ImportKeyMaterialRequest = models.ImportKeyMaterialRequest;
|
|
58
67
|
const DeleteImportedKeyMaterialResponse = models.DeleteImportedKeyMaterialResponse;
|
|
59
68
|
const EnableKeysRequest = models.EnableKeysRequest;
|
|
60
69
|
const EnableWhiteBoxKeysRequest = models.EnableWhiteBoxKeysRequest;
|
|
61
70
|
const EncryptByWhiteBoxResponse = models.EncryptByWhiteBoxResponse;
|
|
71
|
+
const UpdateDataKeyNameResponse = models.UpdateDataKeyNameResponse;
|
|
62
72
|
const DescribeKeysResponse = models.DescribeKeysResponse;
|
|
63
73
|
const EnableWhiteBoxKeyResponse = models.EnableWhiteBoxKeyResponse;
|
|
74
|
+
const ListDataKeysResponse = models.ListDataKeysResponse;
|
|
64
75
|
const ReEncryptRequest = models.ReEncryptRequest;
|
|
65
76
|
const ListKeysResponse = models.ListKeysResponse;
|
|
77
|
+
const TagFilter = models.TagFilter;
|
|
78
|
+
const DescribeDataKeyRequest = models.DescribeDataKeyRequest;
|
|
66
79
|
const AsymmetricSm2DecryptResponse = models.AsymmetricSm2DecryptResponse;
|
|
67
80
|
const DisableKeyRotationResponse = models.DisableKeyRotationResponse;
|
|
81
|
+
const DataKeyMetadata = models.DataKeyMetadata;
|
|
82
|
+
const VerifyByAsymmetricKeyRequest = models.VerifyByAsymmetricKeyRequest;
|
|
68
83
|
const DisableWhiteBoxKeysRequest = models.DisableWhiteBoxKeysRequest;
|
|
84
|
+
const ImportDataKeyRequest = models.ImportDataKeyRequest;
|
|
69
85
|
const ListKeyDetailRequest = models.ListKeyDetailRequest;
|
|
70
86
|
const DeleteWhiteBoxKeyRequest = models.DeleteWhiteBoxKeyRequest;
|
|
71
87
|
const AlgorithmInfo = models.AlgorithmInfo;
|
|
72
88
|
const GetRegionsResponse = models.GetRegionsResponse;
|
|
89
|
+
const UpdateDataKeyDescriptionResponse = models.UpdateDataKeyDescriptionResponse;
|
|
73
90
|
const ExclusiveHSM = models.ExclusiveHSM;
|
|
91
|
+
const CancelKeyDeletionRequest = models.CancelKeyDeletionRequest;
|
|
92
|
+
const EnableDataKeysResponse = models.EnableDataKeysResponse;
|
|
74
93
|
const GenerateDataKeyResponse = models.GenerateDataKeyResponse;
|
|
94
|
+
const EnableDataKeysRequest = models.EnableDataKeysRequest;
|
|
75
95
|
const CreateWhiteBoxKeyRequest = models.CreateWhiteBoxKeyRequest;
|
|
96
|
+
const GetDataKeyPlaintextResponse = models.GetDataKeyPlaintextResponse;
|
|
97
|
+
const DisableDataKeyRequest = models.DisableDataKeyRequest;
|
|
76
98
|
const OverwriteWhiteBoxDeviceFingerprintsResponse = models.OverwriteWhiteBoxDeviceFingerprintsResponse;
|
|
77
99
|
const DisableWhiteBoxKeysResponse = models.DisableWhiteBoxKeysResponse;
|
|
78
100
|
const ArchiveKeyRequest = models.ArchiveKeyRequest;
|
|
@@ -80,24 +102,31 @@ const GetParametersForImportRequest = models.GetParametersForImportRequest;
|
|
|
80
102
|
const CreateKeyResponse = models.CreateKeyResponse;
|
|
81
103
|
const ReEncryptResponse = models.ReEncryptResponse;
|
|
82
104
|
const EncryptResponse = models.EncryptResponse;
|
|
83
|
-
const
|
|
105
|
+
const GetDataKeyPlaintextRequest = models.GetDataKeyPlaintextRequest;
|
|
106
|
+
const GetDataKeyCiphertextBlobRequest = models.GetDataKeyCiphertextBlobRequest;
|
|
84
107
|
const DeleteImportedKeyMaterialRequest = models.DeleteImportedKeyMaterialRequest;
|
|
85
108
|
const EnableKeyResponse = models.EnableKeyResponse;
|
|
109
|
+
const ImportDataKeyResponse = models.ImportDataKeyResponse;
|
|
86
110
|
const GetServiceStatusResponse = models.GetServiceStatusResponse;
|
|
87
111
|
const DeviceFingerprint = models.DeviceFingerprint;
|
|
88
112
|
const GetKeyRotationStatusResponse = models.GetKeyRotationStatusResponse;
|
|
89
113
|
const EncryptRequest = models.EncryptRequest;
|
|
90
114
|
const AsymmetricSm2DecryptRequest = models.AsymmetricSm2DecryptRequest;
|
|
115
|
+
const ListDataKeysRequest = models.ListDataKeysRequest;
|
|
91
116
|
const DeleteWhiteBoxKeyResponse = models.DeleteWhiteBoxKeyResponse;
|
|
117
|
+
const ListDataKeyDetailRequest = models.ListDataKeyDetailRequest;
|
|
118
|
+
const CancelDataKeyDeletionResponse = models.CancelDataKeyDeletionResponse;
|
|
92
119
|
const ListKeysRequest = models.ListKeysRequest;
|
|
93
120
|
const DescribeWhiteBoxDecryptKeyRequest = models.DescribeWhiteBoxDecryptKeyRequest;
|
|
121
|
+
const DataKey = models.DataKey;
|
|
94
122
|
const KeyMetadata = models.KeyMetadata;
|
|
95
123
|
const CancelKeyArchiveResponse = models.CancelKeyArchiveResponse;
|
|
124
|
+
const GetPublicKeyResponse = models.GetPublicKeyResponse;
|
|
96
125
|
const DecryptRequest = models.DecryptRequest;
|
|
97
126
|
const DescribeWhiteBoxKeyDetailsRequest = models.DescribeWhiteBoxKeyDetailsRequest;
|
|
98
127
|
const PostQuantumCryptoSignRequest = models.PostQuantumCryptoSignRequest;
|
|
99
128
|
const PostQuantumCryptoDecryptRequest = models.PostQuantumCryptoDecryptRequest;
|
|
100
|
-
const
|
|
129
|
+
const DestinationSyncConfig = models.DestinationSyncConfig;
|
|
101
130
|
const CancelKeyDeletionResponse = models.CancelKeyDeletionResponse;
|
|
102
131
|
const DisableKeysRequest = models.DisableKeysRequest;
|
|
103
132
|
const DisableWhiteBoxKeyRequest = models.DisableWhiteBoxKeyRequest;
|
|
@@ -112,19 +141,23 @@ const GetRegionsRequest = models.GetRegionsRequest;
|
|
|
112
141
|
const PostQuantumCryptoEncryptResponse = models.PostQuantumCryptoEncryptResponse;
|
|
113
142
|
const EncryptByWhiteBoxRequest = models.EncryptByWhiteBoxRequest;
|
|
114
143
|
const GenerateRandomRequest = models.GenerateRandomRequest;
|
|
144
|
+
const Key = models.Key;
|
|
145
|
+
const DisableDataKeysResponse = models.DisableDataKeysResponse;
|
|
115
146
|
const ScheduleKeyDeletionRequest = models.ScheduleKeyDeletionRequest;
|
|
147
|
+
const CancelDataKeyDeletionRequest = models.CancelDataKeyDeletionRequest;
|
|
116
148
|
const PostQuantumCryptoEncryptRequest = models.PostQuantumCryptoEncryptRequest;
|
|
117
149
|
const DisableKeyRequest = models.DisableKeyRequest;
|
|
118
150
|
const ImportKeyMaterialResponse = models.ImportKeyMaterialResponse;
|
|
119
|
-
const
|
|
151
|
+
const EnableDataKeyRequest = models.EnableDataKeyRequest;
|
|
120
152
|
const BindCloudResourceRequest = models.BindCloudResourceRequest;
|
|
121
|
-
const
|
|
153
|
+
const GetDataKeyCiphertextBlobResponse = models.GetDataKeyCiphertextBlobResponse;
|
|
122
154
|
const PostQuantumCryptoSignResponse = models.PostQuantumCryptoSignResponse;
|
|
123
155
|
const SignByAsymmetricKeyResponse = models.SignByAsymmetricKeyResponse;
|
|
124
156
|
const PostQuantumCryptoVerifyResponse = models.PostQuantumCryptoVerifyResponse;
|
|
125
157
|
const DescribeWhiteBoxDecryptKeyResponse = models.DescribeWhiteBoxDecryptKeyResponse;
|
|
126
158
|
const DescribeWhiteBoxDeviceFingerprintsResponse = models.DescribeWhiteBoxDeviceFingerprintsResponse;
|
|
127
159
|
const PostQuantumCryptoDecryptResponse = models.PostQuantumCryptoDecryptResponse;
|
|
160
|
+
const DisableDataKeysRequest = models.DisableDataKeysRequest;
|
|
128
161
|
const UpdateKeyDescriptionRequest = models.UpdateKeyDescriptionRequest;
|
|
129
162
|
const UnbindCloudResourceResponse = models.UnbindCloudResourceResponse;
|
|
130
163
|
const DescribeKeyResponse = models.DescribeKeyResponse;
|
|
@@ -142,6 +175,17 @@ class KmsClient extends AbstractClient {
|
|
|
142
175
|
super("kms.intl.tencentcloudapi.com", "2019-01-18", credential, region, profile);
|
|
143
176
|
}
|
|
144
177
|
|
|
178
|
+
/**
|
|
179
|
+
* This API is used to query the list of data keys.
|
|
180
|
+
* @param {ListDataKeysRequest} req
|
|
181
|
+
* @param {function(string, ListDataKeysResponse):void} cb
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
ListDataKeys(req, cb) {
|
|
185
|
+
let resp = new ListDataKeysResponse();
|
|
186
|
+
this.request("ListDataKeys", req, resp, cb);
|
|
187
|
+
}
|
|
188
|
+
|
|
145
189
|
/**
|
|
146
190
|
* This API is used to verify a signature using PQC.
|
|
147
191
|
* @param {PostQuantumCryptoVerifyRequest} req
|
|
@@ -209,6 +253,17 @@ Key material can only be imported into CMKs in `Enabled` and `PendingImport` sta
|
|
|
209
253
|
this.request("ImportKeyMaterial", req, resp, cb);
|
|
210
254
|
}
|
|
211
255
|
|
|
256
|
+
/**
|
|
257
|
+
* This API is used to retrieve data key details.
|
|
258
|
+
* @param {DescribeDataKeyRequest} req
|
|
259
|
+
* @param {function(string, DescribeDataKeyResponse):void} cb
|
|
260
|
+
* @public
|
|
261
|
+
*/
|
|
262
|
+
DescribeDataKey(req, cb) {
|
|
263
|
+
let resp = new DescribeDataKeyResponse();
|
|
264
|
+
this.request("DescribeDataKey", req, resp, cb);
|
|
265
|
+
}
|
|
266
|
+
|
|
212
267
|
/**
|
|
213
268
|
* This API is used to get the public key of an asymmetric KMS key (which must be enabled). With the public key, you can encrypt messages and verify signatures.
|
|
214
269
|
* @param {GetPublicKeyRequest} req
|
|
@@ -253,6 +308,17 @@ Key material can only be imported into CMKs in `Enabled` and `PendingImport` sta
|
|
|
253
308
|
this.request("GetServiceStatus", req, resp, cb);
|
|
254
309
|
}
|
|
255
310
|
|
|
311
|
+
/**
|
|
312
|
+
* This API is used to retrieve the key plaintext.
|
|
313
|
+
* @param {GetDataKeyPlaintextRequest} req
|
|
314
|
+
* @param {function(string, GetDataKeyPlaintextResponse):void} cb
|
|
315
|
+
* @public
|
|
316
|
+
*/
|
|
317
|
+
GetDataKeyPlaintext(req, cb) {
|
|
318
|
+
let resp = new GetDataKeyPlaintextResponse();
|
|
319
|
+
this.request("GetDataKeyPlaintext", req, resp, cb);
|
|
320
|
+
}
|
|
321
|
+
|
|
256
322
|
/**
|
|
257
323
|
* This API is used to decrypt data with the specified private key that is encrypted with SM2 asymmetric cryptographic algorithm. The ciphertext must be encrypted with the corresponding public key. The asymmetric key must be in `Enabled` state for decryption. The length of the ciphertext passed in cannot exceed 256 bytes.
|
|
258
324
|
* @param {AsymmetricSm2DecryptRequest} req
|
|
@@ -265,15 +331,14 @@ Key material can only be imported into CMKs in `Enabled` and `PendingImport` sta
|
|
|
265
331
|
}
|
|
266
332
|
|
|
267
333
|
/**
|
|
268
|
-
* This API is used to
|
|
269
|
-
|
|
270
|
-
* @param {
|
|
271
|
-
* @param {function(string, SignByAsymmetricKeyResponse):void} cb
|
|
334
|
+
* This API is used to encrypt using PQC. It supports up to 4 KB of data. It is applicable for encryption of database passwords, RSA keys, or other sensitive information. You can also apply `DataKey` generated by API `GenerateDataKey` to encrypt or decrypt your local data.
|
|
335
|
+
* @param {PostQuantumCryptoEncryptRequest} req
|
|
336
|
+
* @param {function(string, PostQuantumCryptoEncryptResponse):void} cb
|
|
272
337
|
* @public
|
|
273
338
|
*/
|
|
274
|
-
|
|
275
|
-
let resp = new
|
|
276
|
-
this.request("
|
|
339
|
+
PostQuantumCryptoEncrypt(req, cb) {
|
|
340
|
+
let resp = new PostQuantumCryptoEncryptResponse();
|
|
341
|
+
this.request("PostQuantumCryptoEncrypt", req, resp, cb);
|
|
277
342
|
}
|
|
278
343
|
|
|
279
344
|
/**
|
|
@@ -298,6 +363,17 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
|
|
|
298
363
|
this.request("GetKeyRotationStatus", req, resp, cb);
|
|
299
364
|
}
|
|
300
365
|
|
|
366
|
+
/**
|
|
367
|
+
* Schedule deletion for a data key.
|
|
368
|
+
* @param {ScheduleDataKeyDeletionRequest} req
|
|
369
|
+
* @param {function(string, ScheduleDataKeyDeletionResponse):void} cb
|
|
370
|
+
* @public
|
|
371
|
+
*/
|
|
372
|
+
ScheduleDataKeyDeletion(req, cb) {
|
|
373
|
+
let resp = new ScheduleDataKeyDeletionResponse();
|
|
374
|
+
this.request("ScheduleDataKeyDeletion", req, resp, cb);
|
|
375
|
+
}
|
|
376
|
+
|
|
301
377
|
/**
|
|
302
378
|
* This API is used to get the white-box key list.
|
|
303
379
|
* @param {DescribeWhiteBoxKeyDetailsRequest} req
|
|
@@ -320,6 +396,17 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
|
|
|
320
396
|
this.request("BindCloudResource", req, resp, cb);
|
|
321
397
|
}
|
|
322
398
|
|
|
399
|
+
/**
|
|
400
|
+
* This API is used to overwrite the device fingerprint information of a specified key.
|
|
401
|
+
* @param {OverwriteWhiteBoxDeviceFingerprintsRequest} req
|
|
402
|
+
* @param {function(string, OverwriteWhiteBoxDeviceFingerprintsResponse):void} cb
|
|
403
|
+
* @public
|
|
404
|
+
*/
|
|
405
|
+
OverwriteWhiteBoxDeviceFingerprints(req, cb) {
|
|
406
|
+
let resp = new OverwriteWhiteBoxDeviceFingerprintsResponse();
|
|
407
|
+
this.request("OverwriteWhiteBoxDeviceFingerprints", req, resp, cb);
|
|
408
|
+
}
|
|
409
|
+
|
|
323
410
|
/**
|
|
324
411
|
* This API is used to archive keys.The archived keys can only be used for decryption but not encryption.
|
|
325
412
|
* @param {ArchiveKeyRequest} req
|
|
@@ -332,14 +419,59 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
|
|
|
332
419
|
}
|
|
333
420
|
|
|
334
421
|
/**
|
|
335
|
-
* This API is used to
|
|
336
|
-
* @param {
|
|
337
|
-
* @param {function(string,
|
|
422
|
+
* This API is used to modify the description of a data key.
|
|
423
|
+
* @param {UpdateDataKeyDescriptionRequest} req
|
|
424
|
+
* @param {function(string, UpdateDataKeyDescriptionResponse):void} cb
|
|
338
425
|
* @public
|
|
339
426
|
*/
|
|
340
|
-
|
|
341
|
-
let resp = new
|
|
342
|
-
this.request("
|
|
427
|
+
UpdateDataKeyDescription(req, cb) {
|
|
428
|
+
let resp = new UpdateDataKeyDescriptionResponse();
|
|
429
|
+
this.request("UpdateDataKeyDescription", req, resp, cb);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* This API is used to modify the data key name.
|
|
434
|
+
* @param {UpdateDataKeyNameRequest} req
|
|
435
|
+
* @param {function(string, UpdateDataKeyNameResponse):void} cb
|
|
436
|
+
* @public
|
|
437
|
+
*/
|
|
438
|
+
UpdateDataKeyName(req, cb) {
|
|
439
|
+
let resp = new UpdateDataKeyNameResponse();
|
|
440
|
+
this.request("UpdateDataKeyName", req, resp, cb);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* This API is used to generate a signature with an asymmetric key.
|
|
445
|
+
Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `ASYMMETRIC_SIGN_VERIFY_SM2` and `ASYMMETRIC_SIGN_VERIFY_ECC`), the key can be used for signing.
|
|
446
|
+
* @param {SignByAsymmetricKeyRequest} req
|
|
447
|
+
* @param {function(string, SignByAsymmetricKeyResponse):void} cb
|
|
448
|
+
* @public
|
|
449
|
+
*/
|
|
450
|
+
SignByAsymmetricKey(req, cb) {
|
|
451
|
+
let resp = new SignByAsymmetricKeyResponse();
|
|
452
|
+
this.request("SignByAsymmetricKey", req, resp, cb);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* This API is used to batch prohibit the use of CMK.
|
|
457
|
+
* @param {DisableKeysRequest} req
|
|
458
|
+
* @param {function(string, DisableKeysResponse):void} cb
|
|
459
|
+
* @public
|
|
460
|
+
*/
|
|
461
|
+
DisableKeys(req, cb) {
|
|
462
|
+
let resp = new DisableKeysResponse();
|
|
463
|
+
this.request("DisableKeys", req, resp, cb);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* This API is used to cancel scheduled deletion for a data key.
|
|
468
|
+
* @param {CancelDataKeyDeletionRequest} req
|
|
469
|
+
* @param {function(string, CancelDataKeyDeletionResponse):void} cb
|
|
470
|
+
* @public
|
|
471
|
+
*/
|
|
472
|
+
CancelDataKeyDeletion(req, cb) {
|
|
473
|
+
let resp = new CancelDataKeyDeletionResponse();
|
|
474
|
+
this.request("CancelDataKeyDeletion", req, resp, cb);
|
|
343
475
|
}
|
|
344
476
|
|
|
345
477
|
/**
|
|
@@ -408,6 +540,17 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
|
|
|
408
540
|
this.request("GenerateRandom", req, resp, cb);
|
|
409
541
|
}
|
|
410
542
|
|
|
543
|
+
/**
|
|
544
|
+
* This API is used to download the encrypted data key.
|
|
545
|
+
* @param {GetDataKeyCiphertextBlobRequest} req
|
|
546
|
+
* @param {function(string, GetDataKeyCiphertextBlobResponse):void} cb
|
|
547
|
+
* @public
|
|
548
|
+
*/
|
|
549
|
+
GetDataKeyCiphertextBlob(req, cb) {
|
|
550
|
+
let resp = new GetDataKeyCiphertextBlobResponse();
|
|
551
|
+
this.request("GetDataKeyCiphertextBlob", req, resp, cb);
|
|
552
|
+
}
|
|
553
|
+
|
|
411
554
|
/**
|
|
412
555
|
* This API is used to decrypt ciphertext using post-quantum cryptography (PQC) algorithm, and return the plaintext.
|
|
413
556
|
* @param {PostQuantumCryptoDecryptRequest} req
|
|
@@ -420,14 +563,36 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
|
|
|
420
563
|
}
|
|
421
564
|
|
|
422
565
|
/**
|
|
423
|
-
* This API is used to
|
|
424
|
-
* @param {
|
|
425
|
-
* @param {function(string,
|
|
566
|
+
* This API is used to verify a signature with an asymmetric key.
|
|
567
|
+
* @param {VerifyByAsymmetricKeyRequest} req
|
|
568
|
+
* @param {function(string, VerifyByAsymmetricKeyResponse):void} cb
|
|
426
569
|
* @public
|
|
427
570
|
*/
|
|
428
|
-
|
|
429
|
-
let resp = new
|
|
430
|
-
this.request("
|
|
571
|
+
VerifyByAsymmetricKey(req, cb) {
|
|
572
|
+
let resp = new VerifyByAsymmetricKeyResponse();
|
|
573
|
+
this.request("VerifyByAsymmetricKey", req, resp, cb);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* This API is used to batch enable data keys.
|
|
578
|
+
* @param {EnableDataKeysRequest} req
|
|
579
|
+
* @param {function(string, EnableDataKeysResponse):void} cb
|
|
580
|
+
* @public
|
|
581
|
+
*/
|
|
582
|
+
EnableDataKeys(req, cb) {
|
|
583
|
+
let resp = new EnableDataKeysResponse();
|
|
584
|
+
this.request("EnableDataKeys", req, resp, cb);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Data key import API, managed by KMS.
|
|
589
|
+
* @param {ImportDataKeyRequest} req
|
|
590
|
+
* @param {function(string, ImportDataKeyResponse):void} cb
|
|
591
|
+
* @public
|
|
592
|
+
*/
|
|
593
|
+
ImportDataKey(req, cb) {
|
|
594
|
+
let resp = new ImportDataKeyResponse();
|
|
595
|
+
this.request("ImportDataKey", req, resp, cb);
|
|
431
596
|
}
|
|
432
597
|
|
|
433
598
|
/**
|
|
@@ -486,14 +651,25 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
|
|
|
486
651
|
}
|
|
487
652
|
|
|
488
653
|
/**
|
|
489
|
-
*
|
|
490
|
-
* @param {
|
|
491
|
-
* @param {function(string,
|
|
654
|
+
* This API is used to disable the data key.
|
|
655
|
+
* @param {DisableDataKeyRequest} req
|
|
656
|
+
* @param {function(string, DisableDataKeyResponse):void} cb
|
|
492
657
|
* @public
|
|
493
658
|
*/
|
|
494
|
-
|
|
495
|
-
let resp = new
|
|
496
|
-
this.request("
|
|
659
|
+
DisableDataKey(req, cb) {
|
|
660
|
+
let resp = new DisableDataKeyResponse();
|
|
661
|
+
this.request("DisableDataKey", req, resp, cb);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* This API is used to return the key attribute information list.
|
|
666
|
+
* @param {DescribeDataKeysRequest} req
|
|
667
|
+
* @param {function(string, DescribeDataKeysResponse):void} cb
|
|
668
|
+
* @public
|
|
669
|
+
*/
|
|
670
|
+
DescribeDataKeys(req, cb) {
|
|
671
|
+
let resp = new DescribeDataKeysResponse();
|
|
672
|
+
this.request("DescribeDataKeys", req, resp, cb);
|
|
497
673
|
}
|
|
498
674
|
|
|
499
675
|
/**
|
|
@@ -507,6 +683,17 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
|
|
|
507
683
|
this.request("DisableKeyRotation", req, resp, cb);
|
|
508
684
|
}
|
|
509
685
|
|
|
686
|
+
/**
|
|
687
|
+
* Get the master key list details according to the specified Offset and Limit.
|
|
688
|
+
* @param {ListKeyDetailRequest} req
|
|
689
|
+
* @param {function(string, ListKeyDetailResponse):void} cb
|
|
690
|
+
* @public
|
|
691
|
+
*/
|
|
692
|
+
ListKeyDetail(req, cb) {
|
|
693
|
+
let resp = new ListKeyDetailResponse();
|
|
694
|
+
this.request("ListKeyDetail", req, resp, cb);
|
|
695
|
+
}
|
|
696
|
+
|
|
510
697
|
/**
|
|
511
698
|
* This API is used to disable a white-box key.
|
|
512
699
|
* @param {DisableWhiteBoxKeyRequest} req
|
|
@@ -596,14 +783,14 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
|
|
|
596
783
|
}
|
|
597
784
|
|
|
598
785
|
/**
|
|
599
|
-
* This API is used to
|
|
600
|
-
* @param {
|
|
601
|
-
* @param {function(string,
|
|
786
|
+
* This API is used to enable the data key.
|
|
787
|
+
* @param {EnableDataKeyRequest} req
|
|
788
|
+
* @param {function(string, EnableDataKeyResponse):void} cb
|
|
602
789
|
* @public
|
|
603
790
|
*/
|
|
604
|
-
|
|
605
|
-
let resp = new
|
|
606
|
-
this.request("
|
|
791
|
+
EnableDataKey(req, cb) {
|
|
792
|
+
let resp = new EnableDataKeyResponse();
|
|
793
|
+
this.request("EnableDataKey", req, resp, cb);
|
|
607
794
|
}
|
|
608
795
|
|
|
609
796
|
/**
|
|
@@ -673,14 +860,14 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
|
|
|
673
860
|
}
|
|
674
861
|
|
|
675
862
|
/**
|
|
676
|
-
* This API is used to
|
|
677
|
-
* @param {
|
|
678
|
-
* @param {function(string,
|
|
863
|
+
* This API is used to unarchive keys. If a key is unarchived, its status will be `Enabled`.
|
|
864
|
+
* @param {CancelKeyArchiveRequest} req
|
|
865
|
+
* @param {function(string, CancelKeyArchiveResponse):void} cb
|
|
679
866
|
* @public
|
|
680
867
|
*/
|
|
681
|
-
|
|
682
|
-
let resp = new
|
|
683
|
-
this.request("
|
|
868
|
+
CancelKeyArchive(req, cb) {
|
|
869
|
+
let resp = new CancelKeyArchiveResponse();
|
|
870
|
+
this.request("CancelKeyArchive", req, resp, cb);
|
|
684
871
|
}
|
|
685
872
|
|
|
686
873
|
/**
|
|
@@ -717,14 +904,25 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
|
|
|
717
904
|
}
|
|
718
905
|
|
|
719
906
|
/**
|
|
720
|
-
* This API is used to
|
|
721
|
-
* @param {
|
|
722
|
-
* @param {function(string,
|
|
907
|
+
* This API is used to retrieve data key list details based on specified Offset and Limit.
|
|
908
|
+
* @param {ListDataKeyDetailRequest} req
|
|
909
|
+
* @param {function(string, ListDataKeyDetailResponse):void} cb
|
|
723
910
|
* @public
|
|
724
911
|
*/
|
|
725
|
-
|
|
726
|
-
let resp = new
|
|
727
|
-
this.request("
|
|
912
|
+
ListDataKeyDetail(req, cb) {
|
|
913
|
+
let resp = new ListDataKeyDetailResponse();
|
|
914
|
+
this.request("ListDataKeyDetail", req, resp, cb);
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* This API is used to batch disable data keys.
|
|
919
|
+
* @param {DisableDataKeysRequest} req
|
|
920
|
+
* @param {function(string, DisableDataKeysResponse):void} cb
|
|
921
|
+
* @public
|
|
922
|
+
*/
|
|
923
|
+
DisableDataKeys(req, cb) {
|
|
924
|
+
let resp = new DisableDataKeysResponse();
|
|
925
|
+
this.request("DisableDataKeys", req, resp, cb);
|
|
728
926
|
}
|
|
729
927
|
|
|
730
928
|
|