@aws-sdk/client-kms 3.363.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.
Files changed (49) hide show
  1. package/dist-cjs/models/models_0.js +15 -2
  2. package/dist-cjs/protocols/Aws_json1_1.js +60 -0
  3. package/dist-es/models/models_0.js +12 -0
  4. package/dist-es/protocols/Aws_json1_1.js +61 -1
  5. package/dist-types/commands/CancelKeyDeletionCommand.d.ts +3 -1
  6. package/dist-types/commands/CreateAliasCommand.d.ts +3 -1
  7. package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +11 -8
  8. package/dist-types/commands/CreateGrantCommand.d.ts +9 -1
  9. package/dist-types/commands/CreateKeyCommand.d.ts +16 -13
  10. package/dist-types/commands/DecryptCommand.d.ts +10 -2
  11. package/dist-types/commands/DeleteAliasCommand.d.ts +3 -1
  12. package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +3 -1
  13. package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +2 -2
  14. package/dist-types/commands/DisableKeyCommand.d.ts +3 -1
  15. package/dist-types/commands/DisableKeyRotationCommand.d.ts +3 -1
  16. package/dist-types/commands/EnableKeyCommand.d.ts +3 -1
  17. package/dist-types/commands/EnableKeyRotationCommand.d.ts +3 -1
  18. package/dist-types/commands/EncryptCommand.d.ts +10 -3
  19. package/dist-types/commands/GenerateDataKeyCommand.d.ts +17 -8
  20. package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +21 -11
  21. package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +13 -4
  22. package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +13 -4
  23. package/dist-types/commands/GenerateMacCommand.d.ts +12 -3
  24. package/dist-types/commands/GenerateRandomCommand.d.ts +1 -1
  25. package/dist-types/commands/GetKeyPolicyCommand.d.ts +3 -1
  26. package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +3 -1
  27. package/dist-types/commands/GetParametersForImportCommand.d.ts +7 -4
  28. package/dist-types/commands/GetPublicKeyCommand.d.ts +8 -7
  29. package/dist-types/commands/ImportKeyMaterialCommand.d.ts +4 -3
  30. package/dist-types/commands/ListGrantsCommand.d.ts +3 -1
  31. package/dist-types/commands/ListKeyPoliciesCommand.d.ts +3 -1
  32. package/dist-types/commands/PutKeyPolicyCommand.d.ts +3 -1
  33. package/dist-types/commands/ReEncryptCommand.d.ts +9 -1
  34. package/dist-types/commands/ReplicateKeyCommand.d.ts +3 -1
  35. package/dist-types/commands/RetireGrantCommand.d.ts +9 -1
  36. package/dist-types/commands/RevokeGrantCommand.d.ts +9 -1
  37. package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +6 -4
  38. package/dist-types/commands/SignCommand.d.ts +9 -1
  39. package/dist-types/commands/TagResourceCommand.d.ts +3 -1
  40. package/dist-types/commands/UntagResourceCommand.d.ts +3 -1
  41. package/dist-types/commands/UpdateAliasCommand.d.ts +3 -1
  42. package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +5 -3
  43. package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +3 -1
  44. package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +3 -1
  45. package/dist-types/commands/VerifyCommand.d.ts +17 -10
  46. package/dist-types/commands/VerifyMacCommand.d.ts +9 -1
  47. package/dist-types/models/models_0.d.ts +228 -126
  48. package/dist-types/ts3.4/models/models_0.d.ts +21 -0
  49. package/package.json +1 -1
@@ -348,6 +348,7 @@ export interface CreateGrantRequest {
348
348
  Constraints?: GrantConstraints;
349
349
  GrantTokens?: string[];
350
350
  Name?: string;
351
+ DryRun?: boolean;
351
352
  }
352
353
  export interface CreateGrantResponse {
353
354
  GrantToken?: string;
@@ -358,6 +359,13 @@ export declare class DisabledException extends __BaseException {
358
359
  readonly $fault: "client";
359
360
  constructor(opts: __ExceptionOptionType<DisabledException, __BaseException>);
360
361
  }
362
+ export declare class DryRunOperationException extends __BaseException {
363
+ readonly name: "DryRunOperationException";
364
+ readonly $fault: "client";
365
+ constructor(
366
+ opts: __ExceptionOptionType<DryRunOperationException, __BaseException>
367
+ );
368
+ }
361
369
  export declare class InvalidGrantTokenException extends __BaseException {
362
370
  readonly name: "InvalidGrantTokenException";
363
371
  readonly $fault: "client";
@@ -632,6 +640,7 @@ export interface DecryptRequest {
632
640
  KeyId?: string;
633
641
  EncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
634
642
  Recipient?: RecipientInfo;
643
+ DryRun?: boolean;
635
644
  }
636
645
  export interface DecryptResponse {
637
646
  KeyId?: string;
@@ -724,6 +733,7 @@ export interface EncryptRequest {
724
733
  EncryptionContext?: Record<string, string>;
725
734
  GrantTokens?: string[];
726
735
  EncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
736
+ DryRun?: boolean;
727
737
  }
728
738
  export interface EncryptResponse {
729
739
  CiphertextBlob?: Uint8Array;
@@ -744,6 +754,7 @@ export interface GenerateDataKeyRequest {
744
754
  KeySpec?: DataKeySpec | string;
745
755
  GrantTokens?: string[];
746
756
  Recipient?: RecipientInfo;
757
+ DryRun?: boolean;
747
758
  }
748
759
  export interface GenerateDataKeyResponse {
749
760
  CiphertextBlob?: Uint8Array;
@@ -757,6 +768,7 @@ export interface GenerateDataKeyPairRequest {
757
768
  KeyPairSpec: DataKeyPairSpec | string | undefined;
758
769
  GrantTokens?: string[];
759
770
  Recipient?: RecipientInfo;
771
+ DryRun?: boolean;
760
772
  }
761
773
  export interface GenerateDataKeyPairResponse {
762
774
  PrivateKeyCiphertextBlob?: Uint8Array;
@@ -771,6 +783,7 @@ export interface GenerateDataKeyPairWithoutPlaintextRequest {
771
783
  KeyId: string | undefined;
772
784
  KeyPairSpec: DataKeyPairSpec | string | undefined;
773
785
  GrantTokens?: string[];
786
+ DryRun?: boolean;
774
787
  }
775
788
  export interface GenerateDataKeyPairWithoutPlaintextResponse {
776
789
  PrivateKeyCiphertextBlob?: Uint8Array;
@@ -784,6 +797,7 @@ export interface GenerateDataKeyWithoutPlaintextRequest {
784
797
  KeySpec?: DataKeySpec | string;
785
798
  NumberOfBytes?: number;
786
799
  GrantTokens?: string[];
800
+ DryRun?: boolean;
787
801
  }
788
802
  export interface GenerateDataKeyWithoutPlaintextResponse {
789
803
  CiphertextBlob?: Uint8Array;
@@ -794,6 +808,7 @@ export interface GenerateMacRequest {
794
808
  KeyId: string | undefined;
795
809
  MacAlgorithm: MacAlgorithmSpec | string | undefined;
796
810
  GrantTokens?: string[];
811
+ DryRun?: boolean;
797
812
  }
798
813
  export interface GenerateMacResponse {
799
814
  Mac?: Uint8Array;
@@ -987,6 +1002,7 @@ export interface ReEncryptRequest {
987
1002
  SourceEncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
988
1003
  DestinationEncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
989
1004
  GrantTokens?: string[];
1005
+ DryRun?: boolean;
990
1006
  }
991
1007
  export interface ReEncryptResponse {
992
1008
  CiphertextBlob?: Uint8Array;
@@ -1012,10 +1028,12 @@ export interface RetireGrantRequest {
1012
1028
  GrantToken?: string;
1013
1029
  KeyId?: string;
1014
1030
  GrantId?: string;
1031
+ DryRun?: boolean;
1015
1032
  }
1016
1033
  export interface RevokeGrantRequest {
1017
1034
  KeyId: string | undefined;
1018
1035
  GrantId: string | undefined;
1036
+ DryRun?: boolean;
1019
1037
  }
1020
1038
  export interface ScheduleKeyDeletionRequest {
1021
1039
  KeyId: string | undefined;
@@ -1033,6 +1051,7 @@ export interface SignRequest {
1033
1051
  MessageType?: MessageType | string;
1034
1052
  GrantTokens?: string[];
1035
1053
  SigningAlgorithm: SigningAlgorithmSpec | string | undefined;
1054
+ DryRun?: boolean;
1036
1055
  }
1037
1056
  export interface SignResponse {
1038
1057
  KeyId?: string;
@@ -1078,6 +1097,7 @@ export interface VerifyRequest {
1078
1097
  Signature: Uint8Array | undefined;
1079
1098
  SigningAlgorithm: SigningAlgorithmSpec | string | undefined;
1080
1099
  GrantTokens?: string[];
1100
+ DryRun?: boolean;
1081
1101
  }
1082
1102
  export interface VerifyResponse {
1083
1103
  KeyId?: string;
@@ -1090,6 +1110,7 @@ export interface VerifyMacRequest {
1090
1110
  MacAlgorithm: MacAlgorithmSpec | string | undefined;
1091
1111
  Mac: Uint8Array | undefined;
1092
1112
  GrantTokens?: string[];
1113
+ DryRun?: boolean;
1093
1114
  }
1094
1115
  export interface VerifyMacResponse {
1095
1116
  KeyId?: string;
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.363.0",
4
+ "version": "3.366.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",