@aws-sdk/client-kms 3.362.0 → 3.366.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/KMS.js +1 -1
- package/dist-cjs/KMSClient.js +5 -5
- package/dist-cjs/commands/CancelKeyDeletionCommand.js +3 -3
- package/dist-cjs/commands/ConnectCustomKeyStoreCommand.js +3 -3
- package/dist-cjs/commands/CreateAliasCommand.js +3 -3
- package/dist-cjs/commands/CreateCustomKeyStoreCommand.js +3 -3
- package/dist-cjs/commands/CreateGrantCommand.js +3 -3
- package/dist-cjs/commands/CreateKeyCommand.js +3 -3
- package/dist-cjs/commands/DecryptCommand.js +3 -3
- package/dist-cjs/commands/DeleteAliasCommand.js +3 -3
- package/dist-cjs/commands/DeleteCustomKeyStoreCommand.js +3 -3
- package/dist-cjs/commands/DeleteImportedKeyMaterialCommand.js +3 -3
- package/dist-cjs/commands/DescribeCustomKeyStoresCommand.js +3 -3
- package/dist-cjs/commands/DescribeKeyCommand.js +3 -3
- package/dist-cjs/commands/DisableKeyCommand.js +3 -3
- package/dist-cjs/commands/DisableKeyRotationCommand.js +3 -3
- package/dist-cjs/commands/DisconnectCustomKeyStoreCommand.js +3 -3
- package/dist-cjs/commands/EnableKeyCommand.js +3 -3
- package/dist-cjs/commands/EnableKeyRotationCommand.js +3 -3
- package/dist-cjs/commands/EncryptCommand.js +3 -3
- package/dist-cjs/commands/GenerateDataKeyCommand.js +3 -3
- package/dist-cjs/commands/GenerateDataKeyPairCommand.js +3 -3
- package/dist-cjs/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +3 -3
- package/dist-cjs/commands/GenerateDataKeyWithoutPlaintextCommand.js +3 -3
- package/dist-cjs/commands/GenerateMacCommand.js +3 -3
- package/dist-cjs/commands/GenerateRandomCommand.js +3 -3
- package/dist-cjs/commands/GetKeyPolicyCommand.js +3 -3
- package/dist-cjs/commands/GetKeyRotationStatusCommand.js +3 -3
- package/dist-cjs/commands/GetParametersForImportCommand.js +3 -3
- package/dist-cjs/commands/GetPublicKeyCommand.js +3 -3
- package/dist-cjs/commands/ImportKeyMaterialCommand.js +3 -3
- package/dist-cjs/commands/ListAliasesCommand.js +3 -3
- package/dist-cjs/commands/ListGrantsCommand.js +3 -3
- package/dist-cjs/commands/ListKeyPoliciesCommand.js +3 -3
- package/dist-cjs/commands/ListKeysCommand.js +3 -3
- package/dist-cjs/commands/ListResourceTagsCommand.js +3 -3
- package/dist-cjs/commands/ListRetirableGrantsCommand.js +3 -3
- package/dist-cjs/commands/PutKeyPolicyCommand.js +3 -3
- package/dist-cjs/commands/ReEncryptCommand.js +3 -3
- package/dist-cjs/commands/ReplicateKeyCommand.js +3 -3
- package/dist-cjs/commands/RetireGrantCommand.js +3 -3
- package/dist-cjs/commands/RevokeGrantCommand.js +3 -3
- package/dist-cjs/commands/ScheduleKeyDeletionCommand.js +3 -3
- package/dist-cjs/commands/SignCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateAliasCommand.js +3 -3
- package/dist-cjs/commands/UpdateCustomKeyStoreCommand.js +3 -3
- package/dist-cjs/commands/UpdateKeyDescriptionCommand.js +3 -3
- package/dist-cjs/commands/UpdatePrimaryRegionCommand.js +3 -3
- package/dist-cjs/commands/VerifyCommand.js +3 -3
- package/dist-cjs/commands/VerifyMacCommand.js +3 -3
- package/dist-cjs/models/KMSServiceException.js +1 -1
- package/dist-cjs/models/models_0.js +16 -3
- package/dist-cjs/protocols/Aws_json1_1.js +61 -1
- package/dist-cjs/runtimeConfig.browser.js +7 -7
- package/dist-cjs/runtimeConfig.js +10 -10
- package/dist-cjs/runtimeConfig.shared.js +4 -4
- package/dist-es/KMS.js +1 -1
- package/dist-es/KMSClient.js +5 -5
- package/dist-es/commands/CancelKeyDeletionCommand.js +3 -3
- package/dist-es/commands/ConnectCustomKeyStoreCommand.js +3 -3
- package/dist-es/commands/CreateAliasCommand.js +3 -3
- package/dist-es/commands/CreateCustomKeyStoreCommand.js +3 -3
- package/dist-es/commands/CreateGrantCommand.js +3 -3
- package/dist-es/commands/CreateKeyCommand.js +3 -3
- package/dist-es/commands/DecryptCommand.js +3 -3
- package/dist-es/commands/DeleteAliasCommand.js +3 -3
- package/dist-es/commands/DeleteCustomKeyStoreCommand.js +3 -3
- package/dist-es/commands/DeleteImportedKeyMaterialCommand.js +3 -3
- package/dist-es/commands/DescribeCustomKeyStoresCommand.js +3 -3
- package/dist-es/commands/DescribeKeyCommand.js +3 -3
- package/dist-es/commands/DisableKeyCommand.js +3 -3
- package/dist-es/commands/DisableKeyRotationCommand.js +3 -3
- package/dist-es/commands/DisconnectCustomKeyStoreCommand.js +3 -3
- package/dist-es/commands/EnableKeyCommand.js +3 -3
- package/dist-es/commands/EnableKeyRotationCommand.js +3 -3
- package/dist-es/commands/EncryptCommand.js +3 -3
- package/dist-es/commands/GenerateDataKeyCommand.js +3 -3
- package/dist-es/commands/GenerateDataKeyPairCommand.js +3 -3
- package/dist-es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +3 -3
- package/dist-es/commands/GenerateDataKeyWithoutPlaintextCommand.js +3 -3
- package/dist-es/commands/GenerateMacCommand.js +3 -3
- package/dist-es/commands/GenerateRandomCommand.js +3 -3
- package/dist-es/commands/GetKeyPolicyCommand.js +3 -3
- package/dist-es/commands/GetKeyRotationStatusCommand.js +3 -3
- package/dist-es/commands/GetParametersForImportCommand.js +3 -3
- package/dist-es/commands/GetPublicKeyCommand.js +3 -3
- package/dist-es/commands/ImportKeyMaterialCommand.js +3 -3
- package/dist-es/commands/ListAliasesCommand.js +3 -3
- package/dist-es/commands/ListGrantsCommand.js +3 -3
- package/dist-es/commands/ListKeyPoliciesCommand.js +3 -3
- package/dist-es/commands/ListKeysCommand.js +3 -3
- package/dist-es/commands/ListResourceTagsCommand.js +3 -3
- package/dist-es/commands/ListRetirableGrantsCommand.js +3 -3
- package/dist-es/commands/PutKeyPolicyCommand.js +3 -3
- package/dist-es/commands/ReEncryptCommand.js +3 -3
- package/dist-es/commands/ReplicateKeyCommand.js +3 -3
- package/dist-es/commands/RetireGrantCommand.js +3 -3
- package/dist-es/commands/RevokeGrantCommand.js +3 -3
- package/dist-es/commands/ScheduleKeyDeletionCommand.js +3 -3
- package/dist-es/commands/SignCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAliasCommand.js +3 -3
- package/dist-es/commands/UpdateCustomKeyStoreCommand.js +3 -3
- package/dist-es/commands/UpdateKeyDescriptionCommand.js +3 -3
- package/dist-es/commands/UpdatePrimaryRegionCommand.js +3 -3
- package/dist-es/commands/VerifyCommand.js +3 -3
- package/dist-es/commands/VerifyMacCommand.js +3 -3
- package/dist-es/models/KMSServiceException.js +1 -1
- package/dist-es/models/models_0.js +13 -1
- package/dist-es/protocols/Aws_json1_1.js +62 -2
- package/dist-es/runtimeConfig.browser.js +7 -7
- package/dist-es/runtimeConfig.js +10 -10
- package/dist-es/runtimeConfig.shared.js +4 -4
- package/dist-types/KMS.d.ts +1 -1
- package/dist-types/KMSClient.d.ts +8 -8
- package/dist-types/commands/CancelKeyDeletionCommand.d.ts +6 -4
- package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +3 -3
- package/dist-types/commands/CreateAliasCommand.d.ts +6 -4
- package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +14 -11
- package/dist-types/commands/CreateGrantCommand.d.ts +12 -4
- package/dist-types/commands/CreateKeyCommand.d.ts +19 -16
- package/dist-types/commands/DecryptCommand.d.ts +13 -5
- package/dist-types/commands/DeleteAliasCommand.d.ts +6 -4
- package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +3 -3
- package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +6 -4
- package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +5 -5
- package/dist-types/commands/DescribeKeyCommand.d.ts +3 -3
- package/dist-types/commands/DisableKeyCommand.d.ts +6 -4
- package/dist-types/commands/DisableKeyRotationCommand.d.ts +6 -4
- package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +3 -3
- package/dist-types/commands/EnableKeyCommand.d.ts +6 -4
- package/dist-types/commands/EnableKeyRotationCommand.d.ts +6 -4
- package/dist-types/commands/EncryptCommand.d.ts +13 -6
- package/dist-types/commands/GenerateDataKeyCommand.d.ts +20 -11
- package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +24 -14
- package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +16 -7
- package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +16 -7
- package/dist-types/commands/GenerateMacCommand.d.ts +15 -6
- package/dist-types/commands/GenerateRandomCommand.d.ts +4 -4
- package/dist-types/commands/GetKeyPolicyCommand.d.ts +6 -4
- package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +6 -4
- package/dist-types/commands/GetParametersForImportCommand.d.ts +10 -7
- package/dist-types/commands/GetPublicKeyCommand.d.ts +11 -10
- package/dist-types/commands/ImportKeyMaterialCommand.d.ts +7 -6
- package/dist-types/commands/ListAliasesCommand.d.ts +3 -3
- package/dist-types/commands/ListGrantsCommand.d.ts +6 -4
- package/dist-types/commands/ListKeyPoliciesCommand.d.ts +6 -4
- package/dist-types/commands/ListKeysCommand.d.ts +3 -3
- package/dist-types/commands/ListResourceTagsCommand.d.ts +3 -3
- package/dist-types/commands/ListRetirableGrantsCommand.d.ts +3 -3
- package/dist-types/commands/PutKeyPolicyCommand.d.ts +6 -4
- package/dist-types/commands/ReEncryptCommand.d.ts +12 -4
- package/dist-types/commands/ReplicateKeyCommand.d.ts +6 -4
- package/dist-types/commands/RetireGrantCommand.d.ts +12 -4
- package/dist-types/commands/RevokeGrantCommand.d.ts +12 -4
- package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +9 -7
- package/dist-types/commands/SignCommand.d.ts +12 -4
- package/dist-types/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -4
- package/dist-types/commands/UpdateAliasCommand.d.ts +6 -4
- package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +8 -6
- package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +6 -4
- package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +6 -4
- package/dist-types/commands/VerifyCommand.d.ts +20 -13
- package/dist-types/commands/VerifyMacCommand.d.ts +12 -4
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -2
- package/dist-types/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/endpoint/ruleset.d.ts +1 -1
- package/dist-types/models/KMSServiceException.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +229 -127
- package/dist-types/pagination/DescribeCustomKeyStoresPaginator.d.ts +1 -1
- package/dist-types/pagination/Interfaces.d.ts +1 -1
- package/dist-types/pagination/ListAliasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGrantsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListKeyPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListKeysPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourceTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRetirableGrantsPaginator.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +20 -20
- package/dist-types/runtimeConfig.d.ts +20 -20
- package/dist-types/runtimeConfig.native.d.ts +19 -19
- package/dist-types/runtimeConfig.shared.d.ts +4 -4
- package/dist-types/ts3.4/KMS.d.ts +1 -1
- package/dist-types/ts3.4/KMSClient.d.ts +19 -21
- package/dist-types/ts3.4/commands/CancelKeyDeletionCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/CreateCustomKeyStoreCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/CreateGrantCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/DecryptCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/DisableKeyCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/DisableKeyRotationCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/EnableKeyCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/EnableKeyRotationCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/EncryptCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/GenerateDataKeyCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/GenerateRandomCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/GetKeyPolicyCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/ListGrantsCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/ListKeyPoliciesCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/ListResourceTagsCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/ListRetirableGrantsCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/PutKeyPolicyCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/ReEncryptCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/ReplicateKeyCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/RetireGrantCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/RevokeGrantCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/SignCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/VerifyCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +3 -3
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +3 -2
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +1 -1
- package/dist-types/ts3.4/models/KMSServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +22 -1
- package/dist-types/ts3.4/pagination/DescribeCustomKeyStoresPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListGrantsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListKeyPoliciesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListKeysPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListResourceTagsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListRetirableGrantsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +35 -40
- package/dist-types/ts3.4/runtimeConfig.d.ts +35 -37
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +33 -38
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -4
- package/package.json +31 -30
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _json, collectBody, 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
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { KMSServiceException as __BaseException } from "../models/KMSServiceException";
|
|
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";
|
|
4
|
+
import { AlreadyExistsException, CloudHsmClusterInUseException, CloudHsmClusterInvalidConfigurationException, CloudHsmClusterNotActiveException, CloudHsmClusterNotFoundException, CloudHsmClusterNotRelatedException, CustomKeyStoreHasCMKsException, CustomKeyStoreInvalidStateException, CustomKeyStoreNameInUseException, CustomKeyStoreNotFoundException, DependencyTimeoutException, DisabledException, DryRunOperationException, 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) => {
|
|
6
6
|
const headers = sharedHeaders("CancelKeyDeletion");
|
|
7
7
|
let body;
|
|
@@ -543,6 +543,9 @@ const de_CreateGrantCommandError = async (output, context) => {
|
|
|
543
543
|
case "DisabledException":
|
|
544
544
|
case "com.amazonaws.kms#DisabledException":
|
|
545
545
|
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
546
|
+
case "DryRunOperationException":
|
|
547
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
548
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
546
549
|
case "InvalidArnException":
|
|
547
550
|
case "com.amazonaws.kms#InvalidArnException":
|
|
548
551
|
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
@@ -664,6 +667,9 @@ const de_DecryptCommandError = async (output, context) => {
|
|
|
664
667
|
case "DisabledException":
|
|
665
668
|
case "com.amazonaws.kms#DisabledException":
|
|
666
669
|
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
670
|
+
case "DryRunOperationException":
|
|
671
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
672
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
667
673
|
case "IncorrectKeyException":
|
|
668
674
|
case "com.amazonaws.kms#IncorrectKeyException":
|
|
669
675
|
throw await de_IncorrectKeyExceptionRes(parsedOutput, context);
|
|
@@ -1142,6 +1148,9 @@ const de_EncryptCommandError = async (output, context) => {
|
|
|
1142
1148
|
case "DisabledException":
|
|
1143
1149
|
case "com.amazonaws.kms#DisabledException":
|
|
1144
1150
|
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
1151
|
+
case "DryRunOperationException":
|
|
1152
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
1153
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
1145
1154
|
case "InvalidGrantTokenException":
|
|
1146
1155
|
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
1147
1156
|
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
@@ -1195,6 +1204,9 @@ const de_GenerateDataKeyCommandError = async (output, context) => {
|
|
|
1195
1204
|
case "DisabledException":
|
|
1196
1205
|
case "com.amazonaws.kms#DisabledException":
|
|
1197
1206
|
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
1207
|
+
case "DryRunOperationException":
|
|
1208
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
1209
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
1198
1210
|
case "InvalidGrantTokenException":
|
|
1199
1211
|
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
1200
1212
|
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
@@ -1248,6 +1260,9 @@ const de_GenerateDataKeyPairCommandError = async (output, context) => {
|
|
|
1248
1260
|
case "DisabledException":
|
|
1249
1261
|
case "com.amazonaws.kms#DisabledException":
|
|
1250
1262
|
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
1263
|
+
case "DryRunOperationException":
|
|
1264
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
1265
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
1251
1266
|
case "InvalidGrantTokenException":
|
|
1252
1267
|
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
1253
1268
|
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
@@ -1304,6 +1319,9 @@ const de_GenerateDataKeyPairWithoutPlaintextCommandError = async (output, contex
|
|
|
1304
1319
|
case "DisabledException":
|
|
1305
1320
|
case "com.amazonaws.kms#DisabledException":
|
|
1306
1321
|
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
1322
|
+
case "DryRunOperationException":
|
|
1323
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
1324
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
1307
1325
|
case "InvalidGrantTokenException":
|
|
1308
1326
|
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
1309
1327
|
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
@@ -1360,6 +1378,9 @@ const de_GenerateDataKeyWithoutPlaintextCommandError = async (output, context) =
|
|
|
1360
1378
|
case "DisabledException":
|
|
1361
1379
|
case "com.amazonaws.kms#DisabledException":
|
|
1362
1380
|
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
1381
|
+
case "DryRunOperationException":
|
|
1382
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
1383
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
1363
1384
|
case "InvalidGrantTokenException":
|
|
1364
1385
|
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
1365
1386
|
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
@@ -1410,6 +1431,9 @@ const de_GenerateMacCommandError = async (output, context) => {
|
|
|
1410
1431
|
case "DisabledException":
|
|
1411
1432
|
case "com.amazonaws.kms#DisabledException":
|
|
1412
1433
|
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
1434
|
+
case "DryRunOperationException":
|
|
1435
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
1436
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
1413
1437
|
case "InvalidGrantTokenException":
|
|
1414
1438
|
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
1415
1439
|
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
@@ -2074,6 +2098,9 @@ const de_ReEncryptCommandError = async (output, context) => {
|
|
|
2074
2098
|
case "DisabledException":
|
|
2075
2099
|
case "com.amazonaws.kms#DisabledException":
|
|
2076
2100
|
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
2101
|
+
case "DryRunOperationException":
|
|
2102
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
2103
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
2077
2104
|
case "IncorrectKeyException":
|
|
2078
2105
|
case "com.amazonaws.kms#IncorrectKeyException":
|
|
2079
2106
|
throw await de_IncorrectKeyExceptionRes(parsedOutput, context);
|
|
@@ -2186,6 +2213,9 @@ const de_RetireGrantCommandError = async (output, context) => {
|
|
|
2186
2213
|
case "DependencyTimeoutException":
|
|
2187
2214
|
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2188
2215
|
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2216
|
+
case "DryRunOperationException":
|
|
2217
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
2218
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
2189
2219
|
case "InvalidArnException":
|
|
2190
2220
|
case "com.amazonaws.kms#InvalidArnException":
|
|
2191
2221
|
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
@@ -2233,6 +2263,9 @@ const de_RevokeGrantCommandError = async (output, context) => {
|
|
|
2233
2263
|
case "DependencyTimeoutException":
|
|
2234
2264
|
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2235
2265
|
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2266
|
+
case "DryRunOperationException":
|
|
2267
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
2268
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
2236
2269
|
case "InvalidArnException":
|
|
2237
2270
|
case "com.amazonaws.kms#InvalidArnException":
|
|
2238
2271
|
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
@@ -2327,6 +2360,9 @@ const de_SignCommandError = async (output, context) => {
|
|
|
2327
2360
|
case "DisabledException":
|
|
2328
2361
|
case "com.amazonaws.kms#DisabledException":
|
|
2329
2362
|
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
2363
|
+
case "DryRunOperationException":
|
|
2364
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
2365
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
2330
2366
|
case "InvalidGrantTokenException":
|
|
2331
2367
|
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
2332
2368
|
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
@@ -2671,6 +2707,9 @@ const de_VerifyCommandError = async (output, context) => {
|
|
|
2671
2707
|
case "DisabledException":
|
|
2672
2708
|
case "com.amazonaws.kms#DisabledException":
|
|
2673
2709
|
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
2710
|
+
case "DryRunOperationException":
|
|
2711
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
2712
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
2674
2713
|
case "InvalidGrantTokenException":
|
|
2675
2714
|
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
2676
2715
|
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
@@ -2724,6 +2763,9 @@ const de_VerifyMacCommandError = async (output, context) => {
|
|
|
2724
2763
|
case "DisabledException":
|
|
2725
2764
|
case "com.amazonaws.kms#DisabledException":
|
|
2726
2765
|
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
2766
|
+
case "DryRunOperationException":
|
|
2767
|
+
case "com.amazonaws.kms#DryRunOperationException":
|
|
2768
|
+
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
2727
2769
|
case "InvalidGrantTokenException":
|
|
2728
2770
|
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
2729
2771
|
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
@@ -2862,6 +2904,15 @@ const de_DisabledExceptionRes = async (parsedOutput, context) => {
|
|
|
2862
2904
|
});
|
|
2863
2905
|
return __decorateServiceException(exception, body);
|
|
2864
2906
|
};
|
|
2907
|
+
const de_DryRunOperationExceptionRes = async (parsedOutput, context) => {
|
|
2908
|
+
const body = parsedOutput.body;
|
|
2909
|
+
const deserialized = _json(body);
|
|
2910
|
+
const exception = new DryRunOperationException({
|
|
2911
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2912
|
+
...deserialized,
|
|
2913
|
+
});
|
|
2914
|
+
return __decorateServiceException(exception, body);
|
|
2915
|
+
};
|
|
2865
2916
|
const de_ExpiredImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
2866
2917
|
const body = parsedOutput.body;
|
|
2867
2918
|
const deserialized = _json(body);
|
|
@@ -3171,6 +3222,7 @@ const de_XksProxyVpcEndpointServiceNotFoundExceptionRes = async (parsedOutput, c
|
|
|
3171
3222
|
const se_DecryptRequest = (input, context) => {
|
|
3172
3223
|
return take(input, {
|
|
3173
3224
|
CiphertextBlob: context.base64Encoder,
|
|
3225
|
+
DryRun: [],
|
|
3174
3226
|
EncryptionAlgorithm: [],
|
|
3175
3227
|
EncryptionContext: _json,
|
|
3176
3228
|
GrantTokens: _json,
|
|
@@ -3180,6 +3232,7 @@ const se_DecryptRequest = (input, context) => {
|
|
|
3180
3232
|
};
|
|
3181
3233
|
const se_EncryptRequest = (input, context) => {
|
|
3182
3234
|
return take(input, {
|
|
3235
|
+
DryRun: [],
|
|
3183
3236
|
EncryptionAlgorithm: [],
|
|
3184
3237
|
EncryptionContext: _json,
|
|
3185
3238
|
GrantTokens: _json,
|
|
@@ -3189,6 +3242,7 @@ const se_EncryptRequest = (input, context) => {
|
|
|
3189
3242
|
};
|
|
3190
3243
|
const se_GenerateDataKeyPairRequest = (input, context) => {
|
|
3191
3244
|
return take(input, {
|
|
3245
|
+
DryRun: [],
|
|
3192
3246
|
EncryptionContext: _json,
|
|
3193
3247
|
GrantTokens: _json,
|
|
3194
3248
|
KeyId: [],
|
|
@@ -3198,6 +3252,7 @@ const se_GenerateDataKeyPairRequest = (input, context) => {
|
|
|
3198
3252
|
};
|
|
3199
3253
|
const se_GenerateDataKeyRequest = (input, context) => {
|
|
3200
3254
|
return take(input, {
|
|
3255
|
+
DryRun: [],
|
|
3201
3256
|
EncryptionContext: _json,
|
|
3202
3257
|
GrantTokens: _json,
|
|
3203
3258
|
KeyId: [],
|
|
@@ -3208,6 +3263,7 @@ const se_GenerateDataKeyRequest = (input, context) => {
|
|
|
3208
3263
|
};
|
|
3209
3264
|
const se_GenerateMacRequest = (input, context) => {
|
|
3210
3265
|
return take(input, {
|
|
3266
|
+
DryRun: [],
|
|
3211
3267
|
GrantTokens: _json,
|
|
3212
3268
|
KeyId: [],
|
|
3213
3269
|
MacAlgorithm: [],
|
|
@@ -3242,6 +3298,7 @@ const se_ReEncryptRequest = (input, context) => {
|
|
|
3242
3298
|
DestinationEncryptionAlgorithm: [],
|
|
3243
3299
|
DestinationEncryptionContext: _json,
|
|
3244
3300
|
DestinationKeyId: [],
|
|
3301
|
+
DryRun: [],
|
|
3245
3302
|
GrantTokens: _json,
|
|
3246
3303
|
SourceEncryptionAlgorithm: [],
|
|
3247
3304
|
SourceEncryptionContext: _json,
|
|
@@ -3250,6 +3307,7 @@ const se_ReEncryptRequest = (input, context) => {
|
|
|
3250
3307
|
};
|
|
3251
3308
|
const se_SignRequest = (input, context) => {
|
|
3252
3309
|
return take(input, {
|
|
3310
|
+
DryRun: [],
|
|
3253
3311
|
GrantTokens: _json,
|
|
3254
3312
|
KeyId: [],
|
|
3255
3313
|
Message: context.base64Encoder,
|
|
@@ -3259,6 +3317,7 @@ const se_SignRequest = (input, context) => {
|
|
|
3259
3317
|
};
|
|
3260
3318
|
const se_VerifyMacRequest = (input, context) => {
|
|
3261
3319
|
return take(input, {
|
|
3320
|
+
DryRun: [],
|
|
3262
3321
|
GrantTokens: _json,
|
|
3263
3322
|
KeyId: [],
|
|
3264
3323
|
Mac: context.base64Encoder,
|
|
@@ -3268,6 +3327,7 @@ const se_VerifyMacRequest = (input, context) => {
|
|
|
3268
3327
|
};
|
|
3269
3328
|
const se_VerifyRequest = (input, context) => {
|
|
3270
3329
|
return take(input, {
|
|
3330
|
+
DryRun: [],
|
|
3271
3331
|
GrantTokens: _json,
|
|
3272
3332
|
KeyId: [],
|
|
3273
3333
|
Message: context.base64Encoder,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
-
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
|
-
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
-
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
|
-
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
7
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
8
3
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
8
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
9
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
-
import { loadConfigsForDefaultMode } from "@
|
|
11
|
-
import { resolveDefaultsModeConfig } from "@
|
|
10
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
12
12
|
export const getRuntimeConfig = (config) => {
|
|
13
13
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
14
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
4
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
|
-
import { Hash } from "@aws-sdk/hash-node";
|
|
6
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
-
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
8
|
-
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
-
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
10
|
-
import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
11
4
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
5
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
|
+
import { Hash } from "@smithy/hash-node";
|
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
11
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
-
import { loadConfigsForDefaultMode } from "@
|
|
14
|
-
import { resolveDefaultsModeConfig } from "@
|
|
15
|
-
import { emitWarningIfUnsupportedVersion } from "@
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
16
16
|
export const getRuntimeConfig = (config) => {
|
|
17
17
|
emitWarningIfUnsupportedVersion(process.version);
|
|
18
18
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NoOpLogger } from "@
|
|
2
|
-
import { parseUrl } from "@
|
|
3
|
-
import { fromBase64, toBase64 } from "@
|
|
4
|
-
import { fromUtf8, toUtf8 } from "@
|
|
1
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
2
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
3
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
4
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
5
5
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
6
6
|
export const getRuntimeConfig = (config) => ({
|
|
7
7
|
apiVersion: "2014-11-01",
|
package/dist-types/KMS.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { CancelKeyDeletionCommandInput, CancelKeyDeletionCommandOutput } from "./commands/CancelKeyDeletionCommand";
|
|
3
3
|
import { ConnectCustomKeyStoreCommandInput, ConnectCustomKeyStoreCommandOutput } from "./commands/ConnectCustomKeyStoreCommand";
|
|
4
4
|
import { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
-
import { EndpointInputConfig, EndpointResolvedConfig } from "@aws-sdk/middleware-endpoint";
|
|
3
1
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
4
|
-
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
5
2
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
6
3
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
5
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
7
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
9
8
|
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
10
|
-
import {
|
|
9
|
+
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
10
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
11
11
|
import { CancelKeyDeletionCommandInput, CancelKeyDeletionCommandOutput } from "./commands/CancelKeyDeletionCommand";
|
|
12
12
|
import { ConnectCustomKeyStoreCommandInput, ConnectCustomKeyStoreCommandOutput } from "./commands/ConnectCustomKeyStoreCommand";
|
|
13
13
|
import { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
|
|
@@ -77,7 +77,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
77
77
|
*/
|
|
78
78
|
requestHandler?: __HttpHandler;
|
|
79
79
|
/**
|
|
80
|
-
* A constructor for a class implementing the {@link @
|
|
80
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
81
81
|
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
82
82
|
* @internal
|
|
83
83
|
*/
|
|
@@ -167,7 +167,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
167
167
|
*/
|
|
168
168
|
logger?: __Logger;
|
|
169
169
|
/**
|
|
170
|
-
* The {@link @
|
|
170
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
171
171
|
*/
|
|
172
172
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
173
173
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@
|
|
2
|
-
import { Command as $Command } from "@
|
|
3
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
|
|
5
5
|
import { CancelKeyDeletionRequest, CancelKeyDeletionResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
@@ -85,7 +85,9 @@ export interface CancelKeyDeletionCommandOutput extends CancelKeyDeletionRespons
|
|
|
85
85
|
* </i>.</p>
|
|
86
86
|
* </li>
|
|
87
87
|
* <li>
|
|
88
|
-
* <p>For cryptographic operations on KMS keys in custom key stores, this exception
|
|
88
|
+
* <p>For cryptographic operations on KMS keys in custom key stores, this exception
|
|
89
|
+
* represents a general failure with many possible causes. To identify the cause, see the
|
|
90
|
+
* error message that accompanies the exception.</p>
|
|
89
91
|
* </li>
|
|
90
92
|
* </ul>
|
|
91
93
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@
|
|
2
|
-
import { Command as $Command } from "@
|
|
3
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
|
|
5
5
|
import { ConnectCustomKeyStoreRequest, ConnectCustomKeyStoreResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@
|
|
2
|
-
import { Command as $Command } from "@
|
|
3
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
|
|
5
5
|
import { CreateAliasRequest } from "../models/models_0";
|
|
6
6
|
/**
|
|
@@ -131,7 +131,9 @@ export interface CreateAliasCommandOutput extends __MetadataBearer {
|
|
|
131
131
|
* </i>.</p>
|
|
132
132
|
* </li>
|
|
133
133
|
* <li>
|
|
134
|
-
* <p>For cryptographic operations on KMS keys in custom key stores, this exception
|
|
134
|
+
* <p>For cryptographic operations on KMS keys in custom key stores, this exception
|
|
135
|
+
* represents a general failure with many possible causes. To identify the cause, see the
|
|
136
|
+
* error message that accompanies the exception.</p>
|
|
135
137
|
* </li>
|
|
136
138
|
* </ul>
|
|
137
139
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@
|
|
2
|
-
import { Command as $Command } from "@
|
|
3
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
|
|
5
5
|
import { CreateCustomKeyStoreRequest, CreateCustomKeyStoreResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
@@ -27,8 +27,9 @@ export interface CreateCustomKeyStoreCommandOutput extends CreateCustomKeyStoreR
|
|
|
27
27
|
* KMS key in a custom key store for a cryptographic operation, the cryptographic operation is
|
|
28
28
|
* actually performed in your key store using your keys. KMS supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key stores</a>
|
|
29
29
|
* backed by an <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/clusters.html">CloudHSM cluster</a>
|
|
30
|
-
* and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key
|
|
31
|
-
*
|
|
30
|
+
* and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key
|
|
31
|
+
* stores</a> backed by an external key store proxy and external key manager outside of
|
|
32
|
+
* Amazon Web Services.</p>
|
|
32
33
|
* <p> This operation is part of the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a> feature in KMS, which
|
|
33
34
|
* combines the convenience and extensive integration of KMS with the isolation and control of a
|
|
34
35
|
* key store that you own and manage.</p>
|
|
@@ -64,9 +65,9 @@ export interface CreateCustomKeyStoreCommandOutput extends CreateCustomKeyStoreR
|
|
|
64
65
|
* <p>Some external key managers provide a simpler method for creating an external key store.
|
|
65
66
|
* For details, see your external key manager documentation.</p>
|
|
66
67
|
* <p>When creating an external key store in the KMS console, you can upload a JSON-based
|
|
67
|
-
* proxy configuration file with the desired values. You cannot use a proxy configuration
|
|
68
|
-
*
|
|
69
|
-
*
|
|
68
|
+
* proxy configuration file with the desired values. You cannot use a proxy configuration with
|
|
69
|
+
* the <code>CreateCustomKeyStore</code> operation. However, you can use the values in the file
|
|
70
|
+
* to help you determine the correct values for the <code>CreateCustomKeyStore</code>
|
|
70
71
|
* parameters.</p>
|
|
71
72
|
* </note>
|
|
72
73
|
* <p>When the operation completes successfully, it returns the ID of the new custom key store.
|
|
@@ -249,8 +250,9 @@ export interface CreateCustomKeyStoreCommandOutput extends CreateCustomKeyStoreR
|
|
|
249
250
|
* @throws {@link XksProxyUriUnreachableException} (client fault)
|
|
250
251
|
* <p>KMS was unable to reach the specified <code>XksProxyUriPath</code>. The path must be
|
|
251
252
|
* reachable before you create the external key store or update its settings.</p>
|
|
252
|
-
* <p>This exception is also thrown when the external key store proxy response to a
|
|
253
|
-
*
|
|
253
|
+
* <p>This exception is also thrown when the external key store proxy response to a
|
|
254
|
+
* <code>GetHealthStatus</code> request indicates that all external key manager instances are
|
|
255
|
+
* unavailable.</p>
|
|
254
256
|
*
|
|
255
257
|
* @throws {@link XksProxyVpcEndpointServiceInUseException} (client fault)
|
|
256
258
|
* <p>The request was rejected because the specified Amazon VPC endpoint service is already
|
|
@@ -260,7 +262,8 @@ export interface CreateCustomKeyStoreCommandOutput extends CreateCustomKeyStoreR
|
|
|
260
262
|
* @throws {@link XksProxyVpcEndpointServiceInvalidConfigurationException} (client fault)
|
|
261
263
|
* <p>The request was rejected because the Amazon VPC endpoint service configuration does not fulfill
|
|
262
264
|
* the requirements for an external key store proxy. For details, see the exception message and
|
|
263
|
-
* <a href="kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements">review the
|
|
265
|
+
* <a href="kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements">review the
|
|
266
|
+
* requirements</a> for Amazon VPC endpoint service connectivity for an external key
|
|
264
267
|
* store.</p>
|
|
265
268
|
*
|
|
266
269
|
* @throws {@link XksProxyVpcEndpointServiceNotFoundException} (client fault)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@
|
|
2
|
-
import { Command as $Command } from "@
|
|
3
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
|
|
5
5
|
import { CreateGrantRequest, CreateGrantResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
@@ -110,6 +110,7 @@ export interface CreateGrantCommandOutput extends CreateGrantResponse, __Metadat
|
|
|
110
110
|
* "STRING_VALUE",
|
|
111
111
|
* ],
|
|
112
112
|
* Name: "STRING_VALUE",
|
|
113
|
+
* DryRun: true || false,
|
|
113
114
|
* };
|
|
114
115
|
* const command = new CreateGrantCommand(input);
|
|
115
116
|
* const response = await client.send(command);
|
|
@@ -133,6 +134,11 @@ export interface CreateGrantCommandOutput extends CreateGrantResponse, __Metadat
|
|
|
133
134
|
* @throws {@link DisabledException} (client fault)
|
|
134
135
|
* <p>The request was rejected because the specified KMS key is not enabled.</p>
|
|
135
136
|
*
|
|
137
|
+
* @throws {@link DryRunOperationException} (client fault)
|
|
138
|
+
* <p>
|
|
139
|
+
* The request was rejected because the DryRun parameter was specified.
|
|
140
|
+
* </p>
|
|
141
|
+
*
|
|
136
142
|
* @throws {@link InvalidArnException} (client fault)
|
|
137
143
|
* <p>The request was rejected because a specified ARN, or an ARN in a key policy, is not
|
|
138
144
|
* valid.</p>
|
|
@@ -158,7 +164,9 @@ export interface CreateGrantCommandOutput extends CreateGrantResponse, __Metadat
|
|
|
158
164
|
* </i>.</p>
|
|
159
165
|
* </li>
|
|
160
166
|
* <li>
|
|
161
|
-
* <p>For cryptographic operations on KMS keys in custom key stores, this exception
|
|
167
|
+
* <p>For cryptographic operations on KMS keys in custom key stores, this exception
|
|
168
|
+
* represents a general failure with many possible causes. To identify the cause, see the
|
|
169
|
+
* error message that accompanies the exception.</p>
|
|
162
170
|
* </li>
|
|
163
171
|
* </ul>
|
|
164
172
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@
|
|
2
|
-
import { Command as $Command } from "@
|
|
3
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
|
|
5
5
|
import { CreateKeyRequest, CreateKeyResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
@@ -63,11 +63,14 @@ export interface CreateKeyCommandOutput extends CreateKeyResponse, __MetadataBea
|
|
|
63
63
|
* the type of key material in the KMS key. Then, use the <code>KeyUsage</code> parameter
|
|
64
64
|
* to determine whether the KMS key will be used to encrypt and decrypt or sign and verify.
|
|
65
65
|
* You can't change these properties after the KMS key is created.</p>
|
|
66
|
-
* <p>Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
66
|
+
* <p>Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an
|
|
67
|
+
* SM2 key pair (China Regions only). The private key in an asymmetric KMS key never leaves
|
|
68
|
+
* KMS unencrypted. However, you can use the <a>GetPublicKey</a> operation to
|
|
69
|
+
* download the public key so it can be used outside of KMS. KMS keys with RSA or SM2 key
|
|
70
|
+
* pairs can be used to encrypt or decrypt data or sign and verify messages (but not both).
|
|
71
|
+
* KMS keys with ECC key pairs can be used only to sign and verify messages. For
|
|
72
|
+
* information about asymmetric KMS keys, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in the
|
|
73
|
+
* <i>Key Management Service Developer Guide</i>.</p>
|
|
71
74
|
* <p> </p>
|
|
72
75
|
* </dd>
|
|
73
76
|
* <dt>HMAC KMS key</dt>
|
|
@@ -104,8 +107,8 @@ export interface CreateKeyCommandOutput extends CreateKeyResponse, __MetadataBea
|
|
|
104
107
|
* <p>To import your own key material into a KMS key, begin by creating a KMS key with no
|
|
105
108
|
* key material. To do this, use the <code>Origin</code> parameter of
|
|
106
109
|
* <code>CreateKey</code> with a value of <code>EXTERNAL</code>. Next, use <a>GetParametersForImport</a> operation to get a public key and import token. Use
|
|
107
|
-
* the wrapping public key to encrypt your key material. Then, use <a>ImportKeyMaterial</a> with your import token to import the key material. For
|
|
108
|
-
*
|
|
110
|
+
* the wrapping public key to encrypt your key material. Then, use <a>ImportKeyMaterial</a> with your import token to import the key material. For
|
|
111
|
+
* step-by-step instructions, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in the <i>
|
|
109
112
|
* <i>Key Management Service Developer Guide</i>
|
|
110
113
|
* </i>.</p>
|
|
111
114
|
* <p>You can import key material into KMS keys of all supported KMS key types: symmetric
|
|
@@ -147,9 +150,9 @@ export interface CreateKeyCommandOutput extends CreateKeyResponse, __MetadataBea
|
|
|
147
150
|
* <code>Origin</code> parameter with a value of <code>AWS_CLOUDHSM</code>. The CloudHSM
|
|
148
151
|
* cluster that is associated with the custom key store must have at least two active HSMs
|
|
149
152
|
* in different Availability Zones in the Amazon Web Services Region.</p>
|
|
150
|
-
* <p>To create a KMS key in an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key store</a>, use the
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
+
* <p>To create a KMS key in an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key store</a>, use the
|
|
154
|
+
* <code>Origin</code> parameter with a value of <code>EXTERNAL_KEY_STORE</code> and an
|
|
155
|
+
* <code>XksKeyId</code> parameter that identifies an existing external key.</p>
|
|
153
156
|
* <note>
|
|
154
157
|
* <p>Some external key managers provide a simpler method for creating a KMS key in an
|
|
155
158
|
* external key store. For details, see your external key manager documentation.</p>
|
|
@@ -380,9 +383,9 @@ export interface CreateKeyCommandOutput extends CreateKeyResponse, __MetadataBea
|
|
|
380
383
|
* and decryption.</p>
|
|
381
384
|
*
|
|
382
385
|
* @throws {@link XksKeyNotFoundException} (client fault)
|
|
383
|
-
* <p>The request was rejected because the external key store proxy could not find the external
|
|
384
|
-
* exception is thrown when the value of the <code>XksKeyId</code> parameter doesn't
|
|
385
|
-
* key in the external key manager associated with the external key proxy.</p>
|
|
386
|
+
* <p>The request was rejected because the external key store proxy could not find the external
|
|
387
|
+
* key. This exception is thrown when the value of the <code>XksKeyId</code> parameter doesn't
|
|
388
|
+
* identify a key in the external key manager associated with the external key proxy.</p>
|
|
386
389
|
* <p>Verify that the <code>XksKeyId</code> represents an existing key in the external key
|
|
387
390
|
* manager. Use the key identifier that the external key store proxy uses to identify the key.
|
|
388
391
|
* For details, see the documentation provided with your external key store proxy or key
|