@aws-sdk/client-kms 3.332.0 → 3.335.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/protocols/Aws_json1_1.js +1 -1
- package/dist-es/protocols/Aws_json1_1.js +1 -1
- package/dist-types/KMSClient.d.ts +3 -2
- package/dist-types/commands/DecryptCommand.d.ts +1 -43
- package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +0 -11
- package/dist-types/commands/EncryptCommand.d.ts +0 -20
- package/dist-types/commands/GenerateDataKeyCommand.d.ts +1 -24
- package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +1 -26
- package/dist-types/commands/GenerateRandomCommand.d.ts +1 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +2 -1
- package/dist-types/protocols/Aws_json1_1.d.ts +2 -2
- package/dist-types/runtimeConfig.browser.d.ts +12 -12
- package/dist-types/runtimeConfig.d.ts +9 -9
- package/dist-types/runtimeConfig.native.d.ts +13 -13
- package/dist-types/runtimeConfig.shared.d.ts +4 -4
- package/dist-types/ts3.4/KMSClient.d.ts +7 -5
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -2
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +18 -15
- package/dist-types/ts3.4/runtimeConfig.d.ts +12 -12
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -15
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -4
- package/package.json +5 -4
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.se_VerifyMacCommand = exports.se_VerifyCommand = exports.se_UpdatePrimaryRegionCommand = exports.se_UpdateKeyDescriptionCommand = exports.se_UpdateCustomKeyStoreCommand = exports.se_UpdateAliasCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SignCommand = exports.se_ScheduleKeyDeletionCommand = exports.se_RevokeGrantCommand = exports.se_RetireGrantCommand = exports.se_ReplicateKeyCommand = exports.se_ReEncryptCommand = exports.se_PutKeyPolicyCommand = exports.se_ListRetirableGrantsCommand = exports.se_ListResourceTagsCommand = exports.se_ListKeysCommand = exports.se_ListKeyPoliciesCommand = exports.se_ListGrantsCommand = exports.se_ListAliasesCommand = exports.se_ImportKeyMaterialCommand = exports.se_GetPublicKeyCommand = exports.se_GetParametersForImportCommand = exports.se_GetKeyRotationStatusCommand = exports.se_GetKeyPolicyCommand = exports.se_GenerateRandomCommand = exports.se_GenerateMacCommand = exports.se_GenerateDataKeyWithoutPlaintextCommand = exports.se_GenerateDataKeyPairWithoutPlaintextCommand = exports.se_GenerateDataKeyPairCommand = exports.se_GenerateDataKeyCommand = exports.se_EncryptCommand = exports.se_EnableKeyRotationCommand = exports.se_EnableKeyCommand = exports.se_DisconnectCustomKeyStoreCommand = exports.se_DisableKeyRotationCommand = exports.se_DisableKeyCommand = exports.se_DescribeKeyCommand = exports.se_DescribeCustomKeyStoresCommand = exports.se_DeleteImportedKeyMaterialCommand = exports.se_DeleteCustomKeyStoreCommand = exports.se_DeleteAliasCommand = exports.se_DecryptCommand = exports.se_CreateKeyCommand = exports.se_CreateGrantCommand = exports.se_CreateCustomKeyStoreCommand = exports.se_CreateAliasCommand = exports.se_ConnectCustomKeyStoreCommand = exports.se_CancelKeyDeletionCommand = void 0;
|
|
4
4
|
exports.de_VerifyMacCommand = exports.de_VerifyCommand = exports.de_UpdatePrimaryRegionCommand = exports.de_UpdateKeyDescriptionCommand = exports.de_UpdateCustomKeyStoreCommand = exports.de_UpdateAliasCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SignCommand = exports.de_ScheduleKeyDeletionCommand = exports.de_RevokeGrantCommand = exports.de_RetireGrantCommand = exports.de_ReplicateKeyCommand = exports.de_ReEncryptCommand = exports.de_PutKeyPolicyCommand = exports.de_ListRetirableGrantsCommand = exports.de_ListResourceTagsCommand = exports.de_ListKeysCommand = exports.de_ListKeyPoliciesCommand = exports.de_ListGrantsCommand = exports.de_ListAliasesCommand = exports.de_ImportKeyMaterialCommand = exports.de_GetPublicKeyCommand = exports.de_GetParametersForImportCommand = exports.de_GetKeyRotationStatusCommand = exports.de_GetKeyPolicyCommand = exports.de_GenerateRandomCommand = exports.de_GenerateMacCommand = exports.de_GenerateDataKeyWithoutPlaintextCommand = exports.de_GenerateDataKeyPairWithoutPlaintextCommand = exports.de_GenerateDataKeyPairCommand = exports.de_GenerateDataKeyCommand = exports.de_EncryptCommand = exports.de_EnableKeyRotationCommand = exports.de_EnableKeyCommand = exports.de_DisconnectCustomKeyStoreCommand = exports.de_DisableKeyRotationCommand = exports.de_DisableKeyCommand = exports.de_DescribeKeyCommand = exports.de_DescribeCustomKeyStoresCommand = exports.de_DeleteImportedKeyMaterialCommand = exports.de_DeleteCustomKeyStoreCommand = exports.de_DeleteAliasCommand = exports.de_DecryptCommand = exports.de_CreateKeyCommand = exports.de_CreateGrantCommand = exports.de_CreateCustomKeyStoreCommand = exports.de_CreateAliasCommand = exports.de_ConnectCustomKeyStoreCommand = exports.de_CancelKeyDeletionCommand = void 0;
|
|
5
|
-
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const KMSServiceException_1 = require("../models/KMSServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_CancelKeyDeletionCommand = async (input, context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
1
|
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { KMSServiceException as __BaseException } from "../models/KMSServiceException";
|
|
4
4
|
import { AlreadyExistsException, CloudHsmClusterInUseException, CloudHsmClusterInvalidConfigurationException, CloudHsmClusterNotActiveException, CloudHsmClusterNotFoundException, CloudHsmClusterNotRelatedException, CustomKeyStoreHasCMKsException, CustomKeyStoreInvalidStateException, CustomKeyStoreNameInUseException, CustomKeyStoreNotFoundException, DependencyTimeoutException, DisabledException, ExpiredImportTokenException, IncorrectKeyException, IncorrectKeyMaterialException, IncorrectTrustAnchorException, InvalidAliasNameException, InvalidArnException, InvalidCiphertextException, InvalidGrantIdException, InvalidGrantTokenException, InvalidImportTokenException, InvalidKeyUsageException, InvalidMarkerException, KeyUnavailableException, KMSInternalException, KMSInvalidMacException, KMSInvalidSignatureException, KMSInvalidStateException, LimitExceededException, MalformedPolicyDocumentException, NotFoundException, TagException, UnsupportedOperationException, XksKeyAlreadyInUseException, XksKeyInvalidConfigurationException, XksKeyNotFoundException, XksProxyIncorrectAuthenticationCredentialException, XksProxyInvalidConfigurationException, XksProxyInvalidResponseException, XksProxyUriEndpointInUseException, XksProxyUriInUseException, XksProxyUriUnreachableException, XksProxyVpcEndpointServiceInUseException, XksProxyVpcEndpointServiceInvalidConfigurationException, XksProxyVpcEndpointServiceNotFoundException, } from "../models/models_0";
|
|
5
5
|
export const se_CancelKeyDeletionCommand = async (input, context) => {
|
|
@@ -4,9 +4,10 @@ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middle
|
|
|
4
4
|
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
5
5
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
6
6
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
7
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
8
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
9
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials,
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
10
|
+
import { Decoder as __Decoder, Encoder as __Encoder, Provider as __Provider, StreamCollector as __StreamCollector } from "@smithy/types";
|
|
10
11
|
import { CancelKeyDeletionCommandInput, CancelKeyDeletionCommandOutput } from "./commands/CancelKeyDeletionCommand";
|
|
11
12
|
import { ConnectCustomKeyStoreCommandInput, ConnectCustomKeyStoreCommandOutput } from "./commands/ConnectCustomKeyStoreCommand";
|
|
12
13
|
import { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
|
|
@@ -140,6 +140,7 @@ export interface DecryptCommandOutput extends DecryptResponse, __MetadataBearer
|
|
|
140
140
|
* // KeyId: "STRING_VALUE",
|
|
141
141
|
* // Plaintext: "BLOB_VALUE",
|
|
142
142
|
* // EncryptionAlgorithm: "SYMMETRIC_DEFAULT" || "RSAES_OAEP_SHA_1" || "RSAES_OAEP_SHA_256" || "SM2PKE",
|
|
143
|
+
* // CiphertextForRecipient: "BLOB_VALUE",
|
|
143
144
|
* // };
|
|
144
145
|
*
|
|
145
146
|
* ```
|
|
@@ -290,49 +291,6 @@ export interface DecryptCommandOutput extends DecryptResponse, __MetadataBearer
|
|
|
290
291
|
* // example id: to-decrypt-data-for-a-nitro-enclave-2
|
|
291
292
|
* ```
|
|
292
293
|
*
|
|
293
|
-
* @example To decrypt data with an asymmetric encryption KMS key
|
|
294
|
-
* ```javascript
|
|
295
|
-
* // The following example decrypts data that was encrypted with an asymmetric encryption KMS key. When the KMS encryption key is asymmetric, you must specify the KMS key ID and the encryption algorithm that was used to encrypt the data.
|
|
296
|
-
* const input = {
|
|
297
|
-
* "CiphertextBlob": "<binary data>",
|
|
298
|
-
* "EncryptionAlgorithm": "RSAES_OAEP_SHA_256",
|
|
299
|
-
* "KeyId": "0987dcba-09fe-87dc-65ba-ab0987654321"
|
|
300
|
-
* };
|
|
301
|
-
* const command = new DecryptCommand(input);
|
|
302
|
-
* const response = await client.send(command);
|
|
303
|
-
* /* response ==
|
|
304
|
-
* {
|
|
305
|
-
* "EncryptionAlgorithm": "RSAES_OAEP_SHA_256",
|
|
306
|
-
* "KeyId": "arn:aws:kms:us-west-2:111122223333:key/0987dcba-09fe-87dc-65ba-ab0987654321",
|
|
307
|
-
* "Plaintext": "<binary data>"
|
|
308
|
-
* }
|
|
309
|
-
* *\/
|
|
310
|
-
* // example id: to-decrypt-data-2
|
|
311
|
-
* ```
|
|
312
|
-
*
|
|
313
|
-
* @example To decrypt data for a Nitro enclave
|
|
314
|
-
* ```javascript
|
|
315
|
-
* // The following Decrypt example includes the Recipient parameter with a signed attestation document from an AWS Nitro enclave. Instead of returning the decrypted data in plaintext (Plaintext), the operation returns the decrypted data encrypted by the public key from the attestation document (CiphertextForRecipient).
|
|
316
|
-
* const input = {
|
|
317
|
-
* "CiphertextBlob": "<binary data>",
|
|
318
|
-
* "KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
319
|
-
* "Recipient": {
|
|
320
|
-
* "AttestationDocument": "<attestation document>",
|
|
321
|
-
* "KeyEncryptionAlgorithm": "RSAES_OAEP_SHA_256"
|
|
322
|
-
* }
|
|
323
|
-
* };
|
|
324
|
-
* const command = new DecryptCommand(input);
|
|
325
|
-
* const response = await client.send(command);
|
|
326
|
-
* /* response ==
|
|
327
|
-
* {
|
|
328
|
-
* "CiphertextForRecipient": "<binary data>",
|
|
329
|
-
* "KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
330
|
-
* "Plaintext": ""
|
|
331
|
-
* }
|
|
332
|
-
* *\/
|
|
333
|
-
* // example id: to-decrypt-data-for-a-nitro-enclave-2
|
|
334
|
-
* ```
|
|
335
|
-
*
|
|
336
294
|
*/
|
|
337
295
|
export declare class DecryptCommand extends $Command<DecryptCommandInput, DecryptCommandOutput, KMSClientResolvedConfig> {
|
|
338
296
|
readonly input: DecryptCommandInput;
|
|
@@ -150,17 +150,6 @@ export interface DisconnectCustomKeyStoreCommandOutput extends DisconnectCustomK
|
|
|
150
150
|
* // example id: to-disconnect-a-custom-key-store-from-its-cloudhsm-cluster-234abcdefABC
|
|
151
151
|
* ```
|
|
152
152
|
*
|
|
153
|
-
* @example To disconnect a custom key store from its CloudHSM cluster
|
|
154
|
-
* ```javascript
|
|
155
|
-
* // This example disconnects an AWS KMS custom key store from its backing key store. For an AWS CloudHSM key store, it disconnects the key store from its AWS CloudHSM cluster. For an external key store, it disconnects the key store from the external key store proxy that communicates with your external key manager. This operation doesn't return any data. To verify that the custom key store is disconnected, use the <code>DescribeCustomKeyStores</code> operation.
|
|
156
|
-
* const input = {
|
|
157
|
-
* "CustomKeyStoreId": "cks-1234567890abcdef0"
|
|
158
|
-
* };
|
|
159
|
-
* const command = new DisconnectCustomKeyStoreCommand(input);
|
|
160
|
-
* await client.send(command);
|
|
161
|
-
* // example id: to-disconnect-a-custom-key-store-from-its-cloudhsm-cluster-234abcdefABC
|
|
162
|
-
* ```
|
|
163
|
-
*
|
|
164
153
|
*/
|
|
165
154
|
export declare class DisconnectCustomKeyStoreCommand extends $Command<DisconnectCustomKeyStoreCommandInput, DisconnectCustomKeyStoreCommandOutput, KMSClientResolvedConfig> {
|
|
166
155
|
readonly input: DisconnectCustomKeyStoreCommandInput;
|
|
@@ -265,26 +265,6 @@ export interface EncryptCommandOutput extends EncryptResponse, __MetadataBearer
|
|
|
265
265
|
* // example id: to-encrypt-data-2
|
|
266
266
|
* ```
|
|
267
267
|
*
|
|
268
|
-
* @example To encrypt data with an asymmetric encryption KMS key
|
|
269
|
-
* ```javascript
|
|
270
|
-
* // The following example encrypts data with the specified RSA asymmetric KMS key. When you encrypt with an asymmetric key, you must specify the encryption algorithm.
|
|
271
|
-
* const input = {
|
|
272
|
-
* "EncryptionAlgorithm": "RSAES_OAEP_SHA_256",
|
|
273
|
-
* "KeyId": "0987dcba-09fe-87dc-65ba-ab0987654321",
|
|
274
|
-
* "Plaintext": "<binary data>"
|
|
275
|
-
* };
|
|
276
|
-
* const command = new EncryptCommand(input);
|
|
277
|
-
* const response = await client.send(command);
|
|
278
|
-
* /* response ==
|
|
279
|
-
* {
|
|
280
|
-
* "CiphertextBlob": "<binary data>",
|
|
281
|
-
* "EncryptionAlgorithm": "RSAES_OAEP_SHA_256",
|
|
282
|
-
* "KeyId": "arn:aws:kms:us-west-2:111122223333:key/0987dcba-09fe-87dc-65ba-ab0987654321"
|
|
283
|
-
* }
|
|
284
|
-
* *\/
|
|
285
|
-
* // example id: to-encrypt-data-2
|
|
286
|
-
* ```
|
|
287
|
-
*
|
|
288
268
|
*/
|
|
289
269
|
export declare class EncryptCommand extends $Command<EncryptCommandInput, EncryptCommandOutput, KMSClientResolvedConfig> {
|
|
290
270
|
readonly input: EncryptCommandInput;
|
|
@@ -148,6 +148,7 @@ export interface GenerateDataKeyCommandOutput extends GenerateDataKeyResponse, _
|
|
|
148
148
|
* // CiphertextBlob: "BLOB_VALUE",
|
|
149
149
|
* // Plaintext: "BLOB_VALUE",
|
|
150
150
|
* // KeyId: "STRING_VALUE",
|
|
151
|
+
* // CiphertextForRecipient: "BLOB_VALUE",
|
|
151
152
|
* // };
|
|
152
153
|
*
|
|
153
154
|
* ```
|
|
@@ -265,30 +266,6 @@ export interface GenerateDataKeyCommandOutput extends GenerateDataKeyResponse, _
|
|
|
265
266
|
* // example id: to-generate-a-data-key-for-a-nitro-enclave-2
|
|
266
267
|
* ```
|
|
267
268
|
*
|
|
268
|
-
* @example To generate a data key pair for a Nitro enclave
|
|
269
|
-
* ```javascript
|
|
270
|
-
* // The following example includes the Recipient parameter with a signed attestation document from an AWS Nitro enclave. Instead of returning a copy of the data key encrypted by the KMS key and a plaintext copy of the data key, GenerateDataKey returns one copy of the data key encrypted by the KMS key (CiphertextBlob) and one copy of the data key encrypted by the public key from the attestation document (CiphertextForRecipient). The operation doesn't return a plaintext data key.
|
|
271
|
-
* const input = {
|
|
272
|
-
* "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
273
|
-
* "KeySpec": "AES_256",
|
|
274
|
-
* "Recipient": {
|
|
275
|
-
* "AttestationDocument": "<attestation document>",
|
|
276
|
-
* "KeyEncryptionAlgorithm": "RSAES_OAEP_SHA_256"
|
|
277
|
-
* }
|
|
278
|
-
* };
|
|
279
|
-
* const command = new GenerateDataKeyCommand(input);
|
|
280
|
-
* const response = await client.send(command);
|
|
281
|
-
* /* response ==
|
|
282
|
-
* {
|
|
283
|
-
* "CiphertextBlob": "<binary data>",
|
|
284
|
-
* "CiphertextForRecipient": "<binary data>",
|
|
285
|
-
* "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
286
|
-
* "Plaintext": ""
|
|
287
|
-
* }
|
|
288
|
-
* *\/
|
|
289
|
-
* // example id: to-generate-a-data-key-for-a-nitro-enclave-2
|
|
290
|
-
* ```
|
|
291
|
-
*
|
|
292
269
|
*/
|
|
293
270
|
export declare class GenerateDataKeyCommand extends $Command<GenerateDataKeyCommandInput, GenerateDataKeyCommandOutput, KMSClientResolvedConfig> {
|
|
294
271
|
readonly input: GenerateDataKeyCommandInput;
|
|
@@ -127,6 +127,7 @@ export interface GenerateDataKeyPairCommandOutput extends GenerateDataKeyPairRes
|
|
|
127
127
|
* // PublicKey: "BLOB_VALUE",
|
|
128
128
|
* // KeyId: "STRING_VALUE",
|
|
129
129
|
* // KeyPairSpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SM2",
|
|
130
|
+
* // CiphertextForRecipient: "BLOB_VALUE",
|
|
130
131
|
* // };
|
|
131
132
|
*
|
|
132
133
|
* ```
|
|
@@ -252,32 +253,6 @@ export interface GenerateDataKeyPairCommandOutput extends GenerateDataKeyPairRes
|
|
|
252
253
|
* // example id: to-generate-a-data-key-pair-for-a-nitro-enclave-2
|
|
253
254
|
* ```
|
|
254
255
|
*
|
|
255
|
-
* @example To generate a data key pair for a Nitro enclave
|
|
256
|
-
* ```javascript
|
|
257
|
-
* // The following example includes the Recipient parameter with a signed attestation document from an AWS Nitro enclave. Instead of returning a plaintext copy of the private data key, GenerateDataKeyPair returns a copy of the private data key encrypted by the public key from the attestation document (CiphertextForRecipient). It returns the public data key (PublicKey) and a copy of private data key encrypted under the specified KMS key (PrivateKeyCiphertextBlob), as usual, but plaintext private data key field (PrivateKeyPlaintext) is null or empty.
|
|
258
|
-
* const input = {
|
|
259
|
-
* "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
260
|
-
* "KeyPairSpec": "RSA_3072",
|
|
261
|
-
* "Recipient": {
|
|
262
|
-
* "AttestationDocument": "<attestation document>",
|
|
263
|
-
* "KeyEncryptionAlgorithm": "RSAES_OAEP_SHA_256"
|
|
264
|
-
* }
|
|
265
|
-
* };
|
|
266
|
-
* const command = new GenerateDataKeyPairCommand(input);
|
|
267
|
-
* const response = await client.send(command);
|
|
268
|
-
* /* response ==
|
|
269
|
-
* {
|
|
270
|
-
* "CiphertextForRecipient": "<binary data>",
|
|
271
|
-
* "KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
272
|
-
* "KeyPairSpec": "RSA_3072",
|
|
273
|
-
* "PrivateKeyCiphertextBlob": "<binary data>",
|
|
274
|
-
* "PrivateKeyPlaintext": "",
|
|
275
|
-
* "PublicKey": "<binary data>"
|
|
276
|
-
* }
|
|
277
|
-
* *\/
|
|
278
|
-
* // example id: to-generate-a-data-key-pair-for-a-nitro-enclave-2
|
|
279
|
-
* ```
|
|
280
|
-
*
|
|
281
256
|
*/
|
|
282
257
|
export declare class GenerateDataKeyPairCommand extends $Command<GenerateDataKeyPairCommandInput, GenerateDataKeyPairCommandOutput, KMSClientResolvedConfig> {
|
|
283
258
|
readonly input: GenerateDataKeyPairCommandInput;
|
|
@@ -58,6 +58,7 @@ export interface GenerateRandomCommandOutput extends GenerateRandomResponse, __M
|
|
|
58
58
|
* const response = await client.send(command);
|
|
59
59
|
* // { // GenerateRandomResponse
|
|
60
60
|
* // Plaintext: "BLOB_VALUE",
|
|
61
|
+
* // CiphertextForRecipient: "BLOB_VALUE",
|
|
61
62
|
* // };
|
|
62
63
|
*
|
|
63
64
|
* ```
|
|
@@ -160,27 +161,6 @@ export interface GenerateRandomCommandOutput extends GenerateRandomResponse, __M
|
|
|
160
161
|
* // example id: to-generate-random-data-2
|
|
161
162
|
* ```
|
|
162
163
|
*
|
|
163
|
-
* @example To generate random data
|
|
164
|
-
* ```javascript
|
|
165
|
-
* // The following example includes the Recipient parameter with a signed attestation document from an AWS Nitro enclave. Instead of returning a plaintext (unencrypted) byte string, GenerateRandom returns the byte string encrypted by the public key from the enclave's attestation document.
|
|
166
|
-
* const input = {
|
|
167
|
-
* "NumberOfBytes": 1024,
|
|
168
|
-
* "Recipient": {
|
|
169
|
-
* "AttestationDocument": "<attestation document>",
|
|
170
|
-
* "KeyEncryptionAlgorithm": "RSAES_OAEP_SHA_256"
|
|
171
|
-
* }
|
|
172
|
-
* };
|
|
173
|
-
* const command = new GenerateRandomCommand(input);
|
|
174
|
-
* const response = await client.send(command);
|
|
175
|
-
* /* response ==
|
|
176
|
-
* {
|
|
177
|
-
* "CiphertextForRecipient": "<binary data>",
|
|
178
|
-
* "Plaintext": ""
|
|
179
|
-
* }
|
|
180
|
-
* *\/
|
|
181
|
-
* // example id: to-generate-random-data-2
|
|
182
|
-
* ```
|
|
183
|
-
*
|
|
184
164
|
*/
|
|
185
165
|
export declare class GenerateRandomCommand extends $Command<GenerateRandomCommandInput, GenerateRandomCommandOutput, KMSClientResolvedConfig> {
|
|
186
166
|
readonly input: GenerateRandomCommandInput;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EndpointParameters as __EndpointParameters, EndpointV2 } from "@aws-sdk/types";
|
|
2
|
+
import { Endpoint, Provider } from "@smithy/types";
|
|
2
3
|
export interface ClientInputEndpointParameters {
|
|
3
4
|
region?: string | Provider<string>;
|
|
4
5
|
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@
|
|
1
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
+
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
3
|
import { CancelKeyDeletionCommandInput, CancelKeyDeletionCommandOutput } from "../commands/CancelKeyDeletionCommand";
|
|
4
4
|
import { ConnectCustomKeyStoreCommandInput, ConnectCustomKeyStoreCommandOutput } from "../commands/ConnectCustomKeyStoreCommand";
|
|
5
5
|
import { CreateAliasCommandInput, CreateAliasCommandOutput } from "../commands/CreateAliasCommand";
|
|
@@ -7,26 +7,26 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (input: any) => import("@
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
|
-
maxAttempts: number | import("@aws-sdk/types").Provider<number
|
|
12
|
+
maxAttempts: (number | import("@smithy/types").Provider<number>) & (number | import("@aws-sdk/types").Provider<number>);
|
|
13
13
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
14
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@
|
|
15
|
-
retryMode: string | import("@
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
17
|
-
streamCollector: import("@
|
|
18
|
-
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean
|
|
19
|
-
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean
|
|
17
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
19
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
20
20
|
apiVersion: string;
|
|
21
21
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
22
|
-
base64Decoder: import("@
|
|
23
|
-
base64Encoder: import("@
|
|
24
|
-
utf8Decoder: import("@
|
|
25
|
-
utf8Encoder: import("@
|
|
22
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
23
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
24
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
25
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
26
26
|
disableHostPrefix: boolean;
|
|
27
27
|
serviceId: string;
|
|
28
28
|
logger: import("@aws-sdk/types").Logger;
|
|
29
|
-
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@
|
|
29
|
+
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@smithy/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
30
30
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
31
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
32
32
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
@@ -7,26 +7,26 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (input: any) => import("@
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
13
13
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
14
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@
|
|
15
|
-
retryMode: string | import("@
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
17
|
-
streamCollector: import("@
|
|
17
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
18
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
19
19
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
20
|
apiVersion: string;
|
|
21
21
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
22
|
-
base64Decoder: import("@
|
|
23
|
-
base64Encoder: import("@
|
|
24
|
-
utf8Decoder: import("@
|
|
25
|
-
utf8Encoder: import("@
|
|
22
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
23
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
24
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
25
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
26
26
|
disableHostPrefix: boolean;
|
|
27
27
|
serviceId: string;
|
|
28
28
|
logger: import("@aws-sdk/types").Logger;
|
|
29
|
-
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@
|
|
29
|
+
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@smithy/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
30
30
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
31
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
32
32
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
@@ -5,27 +5,27 @@ import { KMSClientConfig } from "./KMSClient";
|
|
|
5
5
|
export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
6
6
|
runtime: string;
|
|
7
7
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
8
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@
|
|
8
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
11
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
|
-
streamCollector: import("@
|
|
13
|
-
base64Decoder: import("@
|
|
14
|
-
base64Encoder: import("@
|
|
15
|
-
utf8Decoder: import("@
|
|
16
|
-
utf8Encoder: import("@
|
|
12
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
13
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
14
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
15
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
16
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
17
17
|
disableHostPrefix: boolean;
|
|
18
18
|
serviceId: string;
|
|
19
|
-
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean
|
|
20
|
-
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean
|
|
19
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
20
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
21
21
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
22
|
-
credentialDefaultProvider: (input: any) => import("@
|
|
22
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
23
23
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
24
|
-
maxAttempts: number | import("@aws-sdk/types").Provider<number
|
|
25
|
-
retryMode: string | import("@
|
|
24
|
+
maxAttempts: (number | import("@smithy/types").Provider<number>) & (number | import("@aws-sdk/types").Provider<number>);
|
|
25
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
26
26
|
logger: import("@aws-sdk/types").Logger;
|
|
27
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@
|
|
28
|
-
endpoint?: string | import("@aws-sdk/types").
|
|
27
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
28
|
+
endpoint?: string | import("@aws-sdk/types").EndpointV2 | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> & import("@smithy/types").Provider<import("@smithy/types").Endpoint>) | (import("@aws-sdk/types").Endpoint & import("@smithy/types").Endpoint) | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> & import("@smithy/types").Provider<import("@aws-sdk/types").EndpointV2>) | undefined;
|
|
29
29
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
30
30
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
31
31
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
@@ -4,8 +4,8 @@ import { KMSClientConfig } from "./KMSClient";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
6
6
|
apiVersion: string;
|
|
7
|
-
base64Decoder: import("@
|
|
8
|
-
base64Encoder: import("@
|
|
7
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
8
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
9
9
|
disableHostPrefix: boolean;
|
|
10
10
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
11
11
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
@@ -13,6 +13,6 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
|
13
13
|
logger: import("@aws-sdk/types").Logger;
|
|
14
14
|
serviceId: string;
|
|
15
15
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
16
|
-
utf8Decoder: import("@
|
|
17
|
-
utf8Encoder: import("@
|
|
16
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
17
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
18
18
|
};
|
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
UserAgentInputConfig,
|
|
23
23
|
UserAgentResolvedConfig,
|
|
24
24
|
} from "@aws-sdk/middleware-user-agent";
|
|
25
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
26
25
|
import {
|
|
27
26
|
Client as __Client,
|
|
28
27
|
DefaultsMode as __DefaultsMode,
|
|
@@ -33,17 +32,20 @@ import {
|
|
|
33
32
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
34
33
|
ChecksumConstructor as __ChecksumConstructor,
|
|
35
34
|
Credentials as __Credentials,
|
|
36
|
-
Decoder as __Decoder,
|
|
37
|
-
Encoder as __Encoder,
|
|
38
35
|
HashConstructor as __HashConstructor,
|
|
39
36
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
40
37
|
Logger as __Logger,
|
|
41
|
-
Provider as __Provider,
|
|
42
38
|
Provider,
|
|
43
|
-
StreamCollector as __StreamCollector,
|
|
44
39
|
UrlParser as __UrlParser,
|
|
45
40
|
UserAgent as __UserAgent,
|
|
46
41
|
} from "@aws-sdk/types";
|
|
42
|
+
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
43
|
+
import {
|
|
44
|
+
Decoder as __Decoder,
|
|
45
|
+
Encoder as __Encoder,
|
|
46
|
+
Provider as __Provider,
|
|
47
|
+
StreamCollector as __StreamCollector,
|
|
48
|
+
} from "@smithy/types";
|
|
47
49
|
import {
|
|
48
50
|
CancelKeyDeletionCommandInput,
|
|
49
51
|
CancelKeyDeletionCommandOutput,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Endpoint,
|
|
3
2
|
EndpointParameters as __EndpointParameters,
|
|
4
3
|
EndpointV2,
|
|
5
|
-
Provider,
|
|
6
4
|
} from "@aws-sdk/types";
|
|
5
|
+
import { Endpoint, Provider } from "@smithy/types";
|
|
7
6
|
export interface ClientInputEndpointParameters {
|
|
8
7
|
region?: string | Provider<string>;
|
|
9
8
|
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HttpRequest as __HttpRequest,
|
|
3
3
|
HttpResponse as __HttpResponse,
|
|
4
|
-
} from "@
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@
|
|
4
|
+
} from "@smithy/protocol-http";
|
|
5
|
+
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
6
|
import {
|
|
7
7
|
CancelKeyDeletionCommandInput,
|
|
8
8
|
CancelKeyDeletionCommandOutput,
|
|
@@ -8,11 +8,12 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
|
8
8
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
9
9
|
credentialDefaultProvider: (
|
|
10
10
|
input: any
|
|
11
|
-
) => import("@
|
|
11
|
+
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
12
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<
|
|
13
13
|
import("@aws-sdk/types").UserAgent
|
|
14
14
|
>;
|
|
15
|
-
maxAttempts: number | import("@
|
|
15
|
+
maxAttempts: (number | import("@smithy/types").Provider<number>) &
|
|
16
|
+
(number | import("@aws-sdk/types").Provider<number>);
|
|
16
17
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
17
18
|
requestHandler:
|
|
18
19
|
| (import("@aws-sdk/types").RequestHandler<
|
|
@@ -20,19 +21,21 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
|
20
21
|
any,
|
|
21
22
|
import("@aws-sdk/types").HttpHandlerOptions
|
|
22
23
|
> &
|
|
23
|
-
import("@
|
|
24
|
+
import("@smithy/protocol-http").HttpHandler)
|
|
24
25
|
| RequestHandler;
|
|
25
|
-
retryMode: string | import("@
|
|
26
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
26
27
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
27
|
-
streamCollector: import("@
|
|
28
|
-
useDualstackEndpoint: boolean | import("@
|
|
29
|
-
|
|
28
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
29
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
30
|
+
(boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
31
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
32
|
+
(boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
30
33
|
apiVersion: string;
|
|
31
34
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
32
|
-
base64Decoder: import("@
|
|
33
|
-
base64Encoder: import("@
|
|
34
|
-
utf8Decoder: import("@
|
|
35
|
-
utf8Encoder: import("@
|
|
35
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
36
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
37
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
38
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
36
39
|
disableHostPrefix: boolean;
|
|
37
40
|
serviceId: string;
|
|
38
41
|
logger: import("@aws-sdk/types").Logger;
|
|
@@ -46,11 +49,11 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
|
46
49
|
) &
|
|
47
50
|
(
|
|
48
51
|
| string
|
|
49
|
-
| import("@
|
|
50
|
-
| import("@
|
|
51
|
-
| import("@
|
|
52
|
+
| import("@smithy/types").Provider<string>
|
|
53
|
+
| import("@smithy/types").Endpoint
|
|
54
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
52
55
|
| import("@aws-sdk/types").EndpointV2
|
|
53
|
-
| import("@
|
|
56
|
+
| import("@smithy/types").Provider<
|
|
54
57
|
import("@aws-sdk/types").EndpointV2
|
|
55
58
|
>
|
|
56
59
|
))
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
|
8
8
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
9
9
|
credentialDefaultProvider: (
|
|
10
10
|
input: any
|
|
11
|
-
) => import("@
|
|
11
|
+
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
12
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<
|
|
13
13
|
import("@aws-sdk/types").UserAgent
|
|
14
14
|
>;
|
|
@@ -20,19 +20,19 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
|
20
20
|
any,
|
|
21
21
|
import("@aws-sdk/types").HttpHandlerOptions
|
|
22
22
|
> &
|
|
23
|
-
import("@
|
|
23
|
+
import("@smithy/protocol-http").HttpHandler)
|
|
24
24
|
| RequestHandler;
|
|
25
|
-
retryMode: string | import("@
|
|
25
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
26
26
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
27
|
-
streamCollector: import("@
|
|
27
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
28
28
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
29
29
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
30
30
|
apiVersion: string;
|
|
31
31
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
32
|
-
base64Decoder: import("@
|
|
33
|
-
base64Encoder: import("@
|
|
34
|
-
utf8Decoder: import("@
|
|
35
|
-
utf8Encoder: import("@
|
|
32
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
33
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
34
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
35
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
36
36
|
disableHostPrefix: boolean;
|
|
37
37
|
serviceId: string;
|
|
38
38
|
logger: import("@aws-sdk/types").Logger;
|
|
@@ -46,11 +46,11 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
|
46
46
|
) &
|
|
47
47
|
(
|
|
48
48
|
| string
|
|
49
|
-
| import("@
|
|
50
|
-
| import("@
|
|
51
|
-
| import("@
|
|
49
|
+
| import("@smithy/types").Provider<string>
|
|
50
|
+
| import("@smithy/types").Endpoint
|
|
51
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
52
52
|
| import("@aws-sdk/types").EndpointV2
|
|
53
|
-
| import("@
|
|
53
|
+
| import("@smithy/types").Provider<
|
|
54
54
|
import("@aws-sdk/types").EndpointV2
|
|
55
55
|
>
|
|
56
56
|
))
|
|
@@ -8,41 +8,46 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
|
8
8
|
any,
|
|
9
9
|
import("@aws-sdk/types").HttpHandlerOptions
|
|
10
10
|
> &
|
|
11
|
-
import("@
|
|
11
|
+
import("@smithy/protocol-http").HttpHandler)
|
|
12
12
|
| import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
13
13
|
apiVersion: string;
|
|
14
14
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
15
15
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
16
|
-
streamCollector: import("@
|
|
17
|
-
base64Decoder: import("@
|
|
18
|
-
base64Encoder: import("@
|
|
19
|
-
utf8Decoder: import("@
|
|
20
|
-
utf8Encoder: import("@
|
|
16
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
17
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
18
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
19
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
20
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
21
21
|
disableHostPrefix: boolean;
|
|
22
22
|
serviceId: string;
|
|
23
|
-
useDualstackEndpoint: boolean | import("@
|
|
24
|
-
|
|
23
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
24
|
+
(boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
25
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
26
|
+
(boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
25
27
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
26
28
|
credentialDefaultProvider: (
|
|
27
29
|
input: any
|
|
28
|
-
) => import("@
|
|
30
|
+
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
29
31
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<
|
|
30
32
|
import("@aws-sdk/types").UserAgent
|
|
31
33
|
>;
|
|
32
|
-
maxAttempts: number | import("@
|
|
33
|
-
|
|
34
|
+
maxAttempts: (number | import("@smithy/types").Provider<number>) &
|
|
35
|
+
(number | import("@aws-sdk/types").Provider<number>);
|
|
36
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
34
37
|
logger: import("@aws-sdk/types").Logger;
|
|
35
38
|
defaultsMode:
|
|
36
39
|
| import("@aws-sdk/smithy-client").DefaultsMode
|
|
37
|
-
| import("@
|
|
40
|
+
| import("@smithy/types").Provider<
|
|
38
41
|
import("@aws-sdk/smithy-client").DefaultsMode
|
|
39
42
|
>;
|
|
40
43
|
endpoint?:
|
|
41
44
|
| string
|
|
42
|
-
| import("@aws-sdk/types").Endpoint
|
|
43
|
-
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
|
|
44
45
|
| import("@aws-sdk/types").EndpointV2
|
|
45
|
-
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").
|
|
46
|
+
| (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> &
|
|
47
|
+
import("@smithy/types").Provider<import("@smithy/types").Endpoint>)
|
|
48
|
+
| (import("@aws-sdk/types").Endpoint & import("@smithy/types").Endpoint)
|
|
49
|
+
| (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> &
|
|
50
|
+
import("@smithy/types").Provider<import("@aws-sdk/types").EndpointV2>)
|
|
46
51
|
| undefined;
|
|
47
52
|
endpointProvider: (
|
|
48
53
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { KMSClientConfig } from "./KMSClient";
|
|
2
2
|
export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
3
3
|
apiVersion: string;
|
|
4
|
-
base64Decoder: import("@
|
|
5
|
-
base64Encoder: import("@
|
|
4
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
5
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
6
6
|
disableHostPrefix: boolean;
|
|
7
7
|
endpointProvider: (
|
|
8
8
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
@@ -13,6 +13,6 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
|
|
|
13
13
|
logger: import("@aws-sdk/types").Logger;
|
|
14
14
|
serviceId: string;
|
|
15
15
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
16
|
-
utf8Decoder: import("@
|
|
17
|
-
utf8Encoder: import("@
|
|
16
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
17
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kms",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.335.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.335.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.329.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.335.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.329.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.329.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.329.0",
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"@aws-sdk/middleware-user-agent": "3.332.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.329.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.329.0",
|
|
42
|
-
"@aws-sdk/protocol-http": "3.329.0",
|
|
43
42
|
"@aws-sdk/smithy-client": "3.329.0",
|
|
44
43
|
"@aws-sdk/types": "3.329.0",
|
|
45
44
|
"@aws-sdk/url-parser": "3.329.0",
|
|
@@ -53,6 +52,8 @@
|
|
|
53
52
|
"@aws-sdk/util-user-agent-browser": "3.329.0",
|
|
54
53
|
"@aws-sdk/util-user-agent-node": "3.329.0",
|
|
55
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
|
+
"@smithy/protocol-http": "^1.0.1",
|
|
56
|
+
"@smithy/types": "^1.0.0",
|
|
56
57
|
"tslib": "^2.5.0"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|