@aws-sdk/client-kms 3.686.0 → 3.691.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.
@@ -10,11 +10,11 @@ export declare const AlgorithmSpec: {
10
10
  };
11
11
  export type AlgorithmSpec = (typeof AlgorithmSpec)[keyof typeof AlgorithmSpec];
12
12
  export interface AliasListEntry {
13
- AliasName?: string;
14
- AliasArn?: string;
15
- TargetKeyId?: string;
16
- CreationDate?: Date;
17
- LastUpdatedDate?: Date;
13
+ AliasName?: string | undefined;
14
+ AliasArn?: string | undefined;
15
+ TargetKeyId?: string | undefined;
16
+ CreationDate?: Date | undefined;
17
+ LastUpdatedDate?: Date | undefined;
18
18
  }
19
19
  export declare class AlreadyExistsException extends __BaseException {
20
20
  readonly name: "AlreadyExistsException";
@@ -27,7 +27,7 @@ export interface CancelKeyDeletionRequest {
27
27
  KeyId: string | undefined;
28
28
  }
29
29
  export interface CancelKeyDeletionResponse {
30
- KeyId?: string;
30
+ KeyId?: string | undefined;
31
31
  }
32
32
  export declare class DependencyTimeoutException extends __BaseException {
33
33
  readonly name: "DependencyTimeoutException";
@@ -205,18 +205,20 @@ export type XksProxyConnectivityType =
205
205
  (typeof XksProxyConnectivityType)[keyof typeof XksProxyConnectivityType];
206
206
  export interface CreateCustomKeyStoreRequest {
207
207
  CustomKeyStoreName: string | undefined;
208
- CloudHsmClusterId?: string;
209
- TrustAnchorCertificate?: string;
210
- KeyStorePassword?: string;
211
- CustomKeyStoreType?: CustomKeyStoreType;
212
- XksProxyUriEndpoint?: string;
213
- XksProxyUriPath?: string;
214
- XksProxyVpcEndpointServiceName?: string;
215
- XksProxyAuthenticationCredential?: XksProxyAuthenticationCredentialType;
216
- XksProxyConnectivity?: XksProxyConnectivityType;
208
+ CloudHsmClusterId?: string | undefined;
209
+ TrustAnchorCertificate?: string | undefined;
210
+ KeyStorePassword?: string | undefined;
211
+ CustomKeyStoreType?: CustomKeyStoreType | undefined;
212
+ XksProxyUriEndpoint?: string | undefined;
213
+ XksProxyUriPath?: string | undefined;
214
+ XksProxyVpcEndpointServiceName?: string | undefined;
215
+ XksProxyAuthenticationCredential?:
216
+ | XksProxyAuthenticationCredentialType
217
+ | undefined;
218
+ XksProxyConnectivity?: XksProxyConnectivityType | undefined;
217
219
  }
218
220
  export interface CreateCustomKeyStoreResponse {
219
- CustomKeyStoreId?: string;
221
+ CustomKeyStoreId?: string | undefined;
220
222
  }
221
223
  export declare class CustomKeyStoreNameInUseException extends __BaseException {
222
224
  readonly name: "CustomKeyStoreNameInUseException";
@@ -323,8 +325,8 @@ export declare class XksProxyVpcEndpointServiceNotFoundException extends __BaseE
323
325
  );
324
326
  }
325
327
  export interface GrantConstraints {
326
- EncryptionContextSubset?: Record<string, string>;
327
- EncryptionContextEquals?: Record<string, string>;
328
+ EncryptionContextSubset?: Record<string, string> | undefined;
329
+ EncryptionContextEquals?: Record<string, string> | undefined;
328
330
  }
329
331
  export declare const GrantOperation: {
330
332
  readonly CreateGrant: "CreateGrant";
@@ -350,16 +352,16 @@ export type GrantOperation =
350
352
  export interface CreateGrantRequest {
351
353
  KeyId: string | undefined;
352
354
  GranteePrincipal: string | undefined;
353
- RetiringPrincipal?: string;
355
+ RetiringPrincipal?: string | undefined;
354
356
  Operations: GrantOperation[] | undefined;
355
- Constraints?: GrantConstraints;
356
- GrantTokens?: string[];
357
- Name?: string;
358
- DryRun?: boolean;
357
+ Constraints?: GrantConstraints | undefined;
358
+ GrantTokens?: string[] | undefined;
359
+ Name?: string | undefined;
360
+ DryRun?: boolean | undefined;
359
361
  }
360
362
  export interface CreateGrantResponse {
361
- GrantToken?: string;
362
- GrantId?: string;
363
+ GrantToken?: string | undefined;
364
+ GrantId?: string | undefined;
363
365
  }
364
366
  export declare class DisabledException extends __BaseException {
365
367
  readonly name: "DisabledException";
@@ -432,17 +434,17 @@ export interface Tag {
432
434
  TagValue: string | undefined;
433
435
  }
434
436
  export interface CreateKeyRequest {
435
- Policy?: string;
436
- Description?: string;
437
- KeyUsage?: KeyUsageType;
438
- CustomerMasterKeySpec?: CustomerMasterKeySpec;
439
- KeySpec?: KeySpec;
440
- Origin?: OriginType;
441
- CustomKeyStoreId?: string;
442
- BypassPolicyLockoutSafetyCheck?: boolean;
443
- Tags?: Tag[];
444
- MultiRegion?: boolean;
445
- XksKeyId?: string;
437
+ Policy?: string | undefined;
438
+ Description?: string | undefined;
439
+ KeyUsage?: KeyUsageType | undefined;
440
+ CustomerMasterKeySpec?: CustomerMasterKeySpec | undefined;
441
+ KeySpec?: KeySpec | undefined;
442
+ Origin?: OriginType | undefined;
443
+ CustomKeyStoreId?: string | undefined;
444
+ BypassPolicyLockoutSafetyCheck?: boolean | undefined;
445
+ Tags?: Tag[] | undefined;
446
+ MultiRegion?: boolean | undefined;
447
+ XksKeyId?: string | undefined;
446
448
  }
447
449
  export declare const EncryptionAlgorithmSpec: {
448
450
  readonly RSAES_OAEP_SHA_1: "RSAES_OAEP_SHA_1";
@@ -495,13 +497,13 @@ export declare const MultiRegionKeyType: {
495
497
  export type MultiRegionKeyType =
496
498
  (typeof MultiRegionKeyType)[keyof typeof MultiRegionKeyType];
497
499
  export interface MultiRegionKey {
498
- Arn?: string;
499
- Region?: string;
500
+ Arn?: string | undefined;
501
+ Region?: string | undefined;
500
502
  }
501
503
  export interface MultiRegionConfiguration {
502
- MultiRegionKeyType?: MultiRegionKeyType;
503
- PrimaryKey?: MultiRegionKey;
504
- ReplicaKeys?: MultiRegionKey[];
504
+ MultiRegionKeyType?: MultiRegionKeyType | undefined;
505
+ PrimaryKey?: MultiRegionKey | undefined;
506
+ ReplicaKeys?: MultiRegionKey[] | undefined;
505
507
  }
506
508
  export declare const SigningAlgorithmSpec: {
507
509
  readonly ECDSA_SHA_256: "ECDSA_SHA_256";
@@ -518,37 +520,37 @@ export declare const SigningAlgorithmSpec: {
518
520
  export type SigningAlgorithmSpec =
519
521
  (typeof SigningAlgorithmSpec)[keyof typeof SigningAlgorithmSpec];
520
522
  export interface XksKeyConfigurationType {
521
- Id?: string;
523
+ Id?: string | undefined;
522
524
  }
523
525
  export interface KeyMetadata {
524
- AWSAccountId?: string;
526
+ AWSAccountId?: string | undefined;
525
527
  KeyId: string | undefined;
526
- Arn?: string;
527
- CreationDate?: Date;
528
- Enabled?: boolean;
529
- Description?: string;
530
- KeyUsage?: KeyUsageType;
531
- KeyState?: KeyState;
532
- DeletionDate?: Date;
533
- ValidTo?: Date;
534
- Origin?: OriginType;
535
- CustomKeyStoreId?: string;
536
- CloudHsmClusterId?: string;
537
- ExpirationModel?: ExpirationModelType;
538
- KeyManager?: KeyManagerType;
539
- CustomerMasterKeySpec?: CustomerMasterKeySpec;
540
- KeySpec?: KeySpec;
541
- EncryptionAlgorithms?: EncryptionAlgorithmSpec[];
542
- SigningAlgorithms?: SigningAlgorithmSpec[];
543
- KeyAgreementAlgorithms?: KeyAgreementAlgorithmSpec[];
544
- MultiRegion?: boolean;
545
- MultiRegionConfiguration?: MultiRegionConfiguration;
546
- PendingDeletionWindowInDays?: number;
547
- MacAlgorithms?: MacAlgorithmSpec[];
548
- XksKeyConfiguration?: XksKeyConfigurationType;
528
+ Arn?: string | undefined;
529
+ CreationDate?: Date | undefined;
530
+ Enabled?: boolean | undefined;
531
+ Description?: string | undefined;
532
+ KeyUsage?: KeyUsageType | undefined;
533
+ KeyState?: KeyState | undefined;
534
+ DeletionDate?: Date | undefined;
535
+ ValidTo?: Date | undefined;
536
+ Origin?: OriginType | undefined;
537
+ CustomKeyStoreId?: string | undefined;
538
+ CloudHsmClusterId?: string | undefined;
539
+ ExpirationModel?: ExpirationModelType | undefined;
540
+ KeyManager?: KeyManagerType | undefined;
541
+ CustomerMasterKeySpec?: CustomerMasterKeySpec | undefined;
542
+ KeySpec?: KeySpec | undefined;
543
+ EncryptionAlgorithms?: EncryptionAlgorithmSpec[] | undefined;
544
+ SigningAlgorithms?: SigningAlgorithmSpec[] | undefined;
545
+ KeyAgreementAlgorithms?: KeyAgreementAlgorithmSpec[] | undefined;
546
+ MultiRegion?: boolean | undefined;
547
+ MultiRegionConfiguration?: MultiRegionConfiguration | undefined;
548
+ PendingDeletionWindowInDays?: number | undefined;
549
+ MacAlgorithms?: MacAlgorithmSpec[] | undefined;
550
+ XksKeyConfiguration?: XksKeyConfigurationType | undefined;
549
551
  }
550
552
  export interface CreateKeyResponse {
551
- KeyMetadata?: KeyMetadata;
553
+ KeyMetadata?: KeyMetadata | undefined;
552
554
  }
553
555
  export declare class MalformedPolicyDocumentException extends __BaseException {
554
556
  readonly name: "MalformedPolicyDocumentException";
@@ -604,22 +606,22 @@ export declare class CustomKeyStoreHasCMKsException extends __BaseException {
604
606
  );
605
607
  }
606
608
  export interface XksProxyConfigurationType {
607
- Connectivity?: XksProxyConnectivityType;
608
- AccessKeyId?: string;
609
- UriEndpoint?: string;
610
- UriPath?: string;
611
- VpcEndpointServiceName?: string;
609
+ Connectivity?: XksProxyConnectivityType | undefined;
610
+ AccessKeyId?: string | undefined;
611
+ UriEndpoint?: string | undefined;
612
+ UriPath?: string | undefined;
613
+ VpcEndpointServiceName?: string | undefined;
612
614
  }
613
615
  export interface CustomKeyStoresListEntry {
614
- CustomKeyStoreId?: string;
615
- CustomKeyStoreName?: string;
616
- CloudHsmClusterId?: string;
617
- TrustAnchorCertificate?: string;
618
- ConnectionState?: ConnectionStateType;
619
- ConnectionErrorCode?: ConnectionErrorCodeType;
620
- CreationDate?: Date;
621
- CustomKeyStoreType?: CustomKeyStoreType;
622
- XksProxyConfiguration?: XksProxyConfigurationType;
616
+ CustomKeyStoreId?: string | undefined;
617
+ CustomKeyStoreName?: string | undefined;
618
+ CloudHsmClusterId?: string | undefined;
619
+ TrustAnchorCertificate?: string | undefined;
620
+ ConnectionState?: ConnectionStateType | undefined;
621
+ ConnectionErrorCode?: ConnectionErrorCodeType | undefined;
622
+ CreationDate?: Date | undefined;
623
+ CustomKeyStoreType?: CustomKeyStoreType | undefined;
624
+ XksProxyConfiguration?: XksProxyConfigurationType | undefined;
623
625
  }
624
626
  export declare const DataKeyPairSpec: {
625
627
  readonly ECC_NIST_P256: "ECC_NIST_P256";
@@ -644,23 +646,23 @@ export declare const KeyEncryptionMechanism: {
644
646
  export type KeyEncryptionMechanism =
645
647
  (typeof KeyEncryptionMechanism)[keyof typeof KeyEncryptionMechanism];
646
648
  export interface RecipientInfo {
647
- KeyEncryptionAlgorithm?: KeyEncryptionMechanism;
648
- AttestationDocument?: Uint8Array;
649
+ KeyEncryptionAlgorithm?: KeyEncryptionMechanism | undefined;
650
+ AttestationDocument?: Uint8Array | undefined;
649
651
  }
650
652
  export interface DecryptRequest {
651
653
  CiphertextBlob: Uint8Array | undefined;
652
- EncryptionContext?: Record<string, string>;
653
- GrantTokens?: string[];
654
- KeyId?: string;
655
- EncryptionAlgorithm?: EncryptionAlgorithmSpec;
656
- Recipient?: RecipientInfo;
657
- DryRun?: boolean;
654
+ EncryptionContext?: Record<string, string> | undefined;
655
+ GrantTokens?: string[] | undefined;
656
+ KeyId?: string | undefined;
657
+ EncryptionAlgorithm?: EncryptionAlgorithmSpec | undefined;
658
+ Recipient?: RecipientInfo | undefined;
659
+ DryRun?: boolean | undefined;
658
660
  }
659
661
  export interface DecryptResponse {
660
- KeyId?: string;
661
- Plaintext?: Uint8Array;
662
- EncryptionAlgorithm?: EncryptionAlgorithmSpec;
663
- CiphertextForRecipient?: Uint8Array;
662
+ KeyId?: string | undefined;
663
+ Plaintext?: Uint8Array | undefined;
664
+ EncryptionAlgorithm?: EncryptionAlgorithmSpec | undefined;
665
+ CiphertextForRecipient?: Uint8Array | undefined;
664
666
  }
665
667
  export declare class IncorrectKeyException extends __BaseException {
666
668
  readonly name: "IncorrectKeyException";
@@ -704,27 +706,27 @@ export interface DeriveSharedSecretRequest {
704
706
  KeyId: string | undefined;
705
707
  KeyAgreementAlgorithm: KeyAgreementAlgorithmSpec | undefined;
706
708
  PublicKey: Uint8Array | undefined;
707
- GrantTokens?: string[];
708
- DryRun?: boolean;
709
- Recipient?: RecipientInfo;
709
+ GrantTokens?: string[] | undefined;
710
+ DryRun?: boolean | undefined;
711
+ Recipient?: RecipientInfo | undefined;
710
712
  }
711
713
  export interface DeriveSharedSecretResponse {
712
- KeyId?: string;
713
- SharedSecret?: Uint8Array;
714
- CiphertextForRecipient?: Uint8Array;
715
- KeyAgreementAlgorithm?: KeyAgreementAlgorithmSpec;
716
- KeyOrigin?: OriginType;
714
+ KeyId?: string | undefined;
715
+ SharedSecret?: Uint8Array | undefined;
716
+ CiphertextForRecipient?: Uint8Array | undefined;
717
+ KeyAgreementAlgorithm?: KeyAgreementAlgorithmSpec | undefined;
718
+ KeyOrigin?: OriginType | undefined;
717
719
  }
718
720
  export interface DescribeCustomKeyStoresRequest {
719
- CustomKeyStoreId?: string;
720
- CustomKeyStoreName?: string;
721
- Limit?: number;
722
- Marker?: string;
721
+ CustomKeyStoreId?: string | undefined;
722
+ CustomKeyStoreName?: string | undefined;
723
+ Limit?: number | undefined;
724
+ Marker?: string | undefined;
723
725
  }
724
726
  export interface DescribeCustomKeyStoresResponse {
725
- CustomKeyStores?: CustomKeyStoresListEntry[];
726
- NextMarker?: string;
727
- Truncated?: boolean;
727
+ CustomKeyStores?: CustomKeyStoresListEntry[] | undefined;
728
+ NextMarker?: string | undefined;
729
+ Truncated?: boolean | undefined;
728
730
  }
729
731
  export declare class InvalidMarkerException extends __BaseException {
730
732
  readonly name: "InvalidMarkerException";
@@ -735,10 +737,10 @@ export declare class InvalidMarkerException extends __BaseException {
735
737
  }
736
738
  export interface DescribeKeyRequest {
737
739
  KeyId: string | undefined;
738
- GrantTokens?: string[];
740
+ GrantTokens?: string[] | undefined;
739
741
  }
740
742
  export interface DescribeKeyResponse {
741
- KeyMetadata?: KeyMetadata;
743
+ KeyMetadata?: KeyMetadata | undefined;
742
744
  }
743
745
  export interface DisableKeyRequest {
744
746
  KeyId: string | undefined;
@@ -755,20 +757,20 @@ export interface EnableKeyRequest {
755
757
  }
756
758
  export interface EnableKeyRotationRequest {
757
759
  KeyId: string | undefined;
758
- RotationPeriodInDays?: number;
760
+ RotationPeriodInDays?: number | undefined;
759
761
  }
760
762
  export interface EncryptRequest {
761
763
  KeyId: string | undefined;
762
764
  Plaintext: Uint8Array | undefined;
763
- EncryptionContext?: Record<string, string>;
764
- GrantTokens?: string[];
765
- EncryptionAlgorithm?: EncryptionAlgorithmSpec;
766
- DryRun?: boolean;
765
+ EncryptionContext?: Record<string, string> | undefined;
766
+ GrantTokens?: string[] | undefined;
767
+ EncryptionAlgorithm?: EncryptionAlgorithmSpec | undefined;
768
+ DryRun?: boolean | undefined;
767
769
  }
768
770
  export interface EncryptResponse {
769
- CiphertextBlob?: Uint8Array;
770
- KeyId?: string;
771
- EncryptionAlgorithm?: EncryptionAlgorithmSpec;
771
+ CiphertextBlob?: Uint8Array | undefined;
772
+ KeyId?: string | undefined;
773
+ EncryptionAlgorithm?: EncryptionAlgorithmSpec | undefined;
772
774
  }
773
775
  export declare class ExpiredImportTokenException extends __BaseException {
774
776
  readonly name: "ExpiredImportTokenException";
@@ -779,98 +781,98 @@ export declare class ExpiredImportTokenException extends __BaseException {
779
781
  }
780
782
  export interface GenerateDataKeyRequest {
781
783
  KeyId: string | undefined;
782
- EncryptionContext?: Record<string, string>;
783
- NumberOfBytes?: number;
784
- KeySpec?: DataKeySpec;
785
- GrantTokens?: string[];
786
- Recipient?: RecipientInfo;
787
- DryRun?: boolean;
784
+ EncryptionContext?: Record<string, string> | undefined;
785
+ NumberOfBytes?: number | undefined;
786
+ KeySpec?: DataKeySpec | undefined;
787
+ GrantTokens?: string[] | undefined;
788
+ Recipient?: RecipientInfo | undefined;
789
+ DryRun?: boolean | undefined;
788
790
  }
789
791
  export interface GenerateDataKeyResponse {
790
- CiphertextBlob?: Uint8Array;
791
- Plaintext?: Uint8Array;
792
- KeyId?: string;
793
- CiphertextForRecipient?: Uint8Array;
792
+ CiphertextBlob?: Uint8Array | undefined;
793
+ Plaintext?: Uint8Array | undefined;
794
+ KeyId?: string | undefined;
795
+ CiphertextForRecipient?: Uint8Array | undefined;
794
796
  }
795
797
  export interface GenerateDataKeyPairRequest {
796
- EncryptionContext?: Record<string, string>;
798
+ EncryptionContext?: Record<string, string> | undefined;
797
799
  KeyId: string | undefined;
798
800
  KeyPairSpec: DataKeyPairSpec | undefined;
799
- GrantTokens?: string[];
800
- Recipient?: RecipientInfo;
801
- DryRun?: boolean;
801
+ GrantTokens?: string[] | undefined;
802
+ Recipient?: RecipientInfo | undefined;
803
+ DryRun?: boolean | undefined;
802
804
  }
803
805
  export interface GenerateDataKeyPairResponse {
804
- PrivateKeyCiphertextBlob?: Uint8Array;
805
- PrivateKeyPlaintext?: Uint8Array;
806
- PublicKey?: Uint8Array;
807
- KeyId?: string;
808
- KeyPairSpec?: DataKeyPairSpec;
809
- CiphertextForRecipient?: Uint8Array;
806
+ PrivateKeyCiphertextBlob?: Uint8Array | undefined;
807
+ PrivateKeyPlaintext?: Uint8Array | undefined;
808
+ PublicKey?: Uint8Array | undefined;
809
+ KeyId?: string | undefined;
810
+ KeyPairSpec?: DataKeyPairSpec | undefined;
811
+ CiphertextForRecipient?: Uint8Array | undefined;
810
812
  }
811
813
  export interface GenerateDataKeyPairWithoutPlaintextRequest {
812
- EncryptionContext?: Record<string, string>;
814
+ EncryptionContext?: Record<string, string> | undefined;
813
815
  KeyId: string | undefined;
814
816
  KeyPairSpec: DataKeyPairSpec | undefined;
815
- GrantTokens?: string[];
816
- DryRun?: boolean;
817
+ GrantTokens?: string[] | undefined;
818
+ DryRun?: boolean | undefined;
817
819
  }
818
820
  export interface GenerateDataKeyPairWithoutPlaintextResponse {
819
- PrivateKeyCiphertextBlob?: Uint8Array;
820
- PublicKey?: Uint8Array;
821
- KeyId?: string;
822
- KeyPairSpec?: DataKeyPairSpec;
821
+ PrivateKeyCiphertextBlob?: Uint8Array | undefined;
822
+ PublicKey?: Uint8Array | undefined;
823
+ KeyId?: string | undefined;
824
+ KeyPairSpec?: DataKeyPairSpec | undefined;
823
825
  }
824
826
  export interface GenerateDataKeyWithoutPlaintextRequest {
825
827
  KeyId: string | undefined;
826
- EncryptionContext?: Record<string, string>;
827
- KeySpec?: DataKeySpec;
828
- NumberOfBytes?: number;
829
- GrantTokens?: string[];
830
- DryRun?: boolean;
828
+ EncryptionContext?: Record<string, string> | undefined;
829
+ KeySpec?: DataKeySpec | undefined;
830
+ NumberOfBytes?: number | undefined;
831
+ GrantTokens?: string[] | undefined;
832
+ DryRun?: boolean | undefined;
831
833
  }
832
834
  export interface GenerateDataKeyWithoutPlaintextResponse {
833
- CiphertextBlob?: Uint8Array;
834
- KeyId?: string;
835
+ CiphertextBlob?: Uint8Array | undefined;
836
+ KeyId?: string | undefined;
835
837
  }
836
838
  export interface GenerateMacRequest {
837
839
  Message: Uint8Array | undefined;
838
840
  KeyId: string | undefined;
839
841
  MacAlgorithm: MacAlgorithmSpec | undefined;
840
- GrantTokens?: string[];
841
- DryRun?: boolean;
842
+ GrantTokens?: string[] | undefined;
843
+ DryRun?: boolean | undefined;
842
844
  }
843
845
  export interface GenerateMacResponse {
844
- Mac?: Uint8Array;
845
- MacAlgorithm?: MacAlgorithmSpec;
846
- KeyId?: string;
846
+ Mac?: Uint8Array | undefined;
847
+ MacAlgorithm?: MacAlgorithmSpec | undefined;
848
+ KeyId?: string | undefined;
847
849
  }
848
850
  export interface GenerateRandomRequest {
849
- NumberOfBytes?: number;
850
- CustomKeyStoreId?: string;
851
- Recipient?: RecipientInfo;
851
+ NumberOfBytes?: number | undefined;
852
+ CustomKeyStoreId?: string | undefined;
853
+ Recipient?: RecipientInfo | undefined;
852
854
  }
853
855
  export interface GenerateRandomResponse {
854
- Plaintext?: Uint8Array;
855
- CiphertextForRecipient?: Uint8Array;
856
+ Plaintext?: Uint8Array | undefined;
857
+ CiphertextForRecipient?: Uint8Array | undefined;
856
858
  }
857
859
  export interface GetKeyPolicyRequest {
858
860
  KeyId: string | undefined;
859
- PolicyName?: string;
861
+ PolicyName?: string | undefined;
860
862
  }
861
863
  export interface GetKeyPolicyResponse {
862
- Policy?: string;
863
- PolicyName?: string;
864
+ Policy?: string | undefined;
865
+ PolicyName?: string | undefined;
864
866
  }
865
867
  export interface GetKeyRotationStatusRequest {
866
868
  KeyId: string | undefined;
867
869
  }
868
870
  export interface GetKeyRotationStatusResponse {
869
- KeyRotationEnabled?: boolean;
870
- KeyId?: string;
871
- RotationPeriodInDays?: number;
872
- NextRotationDate?: Date;
873
- OnDemandRotationStartDate?: Date;
871
+ KeyRotationEnabled?: boolean | undefined;
872
+ KeyId?: string | undefined;
873
+ RotationPeriodInDays?: number | undefined;
874
+ NextRotationDate?: Date | undefined;
875
+ OnDemandRotationStartDate?: Date | undefined;
874
876
  }
875
877
  export declare const WrappingKeySpec: {
876
878
  readonly RSA_2048: "RSA_2048";
@@ -886,42 +888,42 @@ export interface GetParametersForImportRequest {
886
888
  WrappingKeySpec: WrappingKeySpec | undefined;
887
889
  }
888
890
  export interface GetParametersForImportResponse {
889
- KeyId?: string;
890
- ImportToken?: Uint8Array;
891
- PublicKey?: Uint8Array;
892
- ParametersValidTo?: Date;
891
+ KeyId?: string | undefined;
892
+ ImportToken?: Uint8Array | undefined;
893
+ PublicKey?: Uint8Array | undefined;
894
+ ParametersValidTo?: Date | undefined;
893
895
  }
894
896
  export interface GetPublicKeyRequest {
895
897
  KeyId: string | undefined;
896
- GrantTokens?: string[];
898
+ GrantTokens?: string[] | undefined;
897
899
  }
898
900
  export interface GetPublicKeyResponse {
899
- KeyId?: string;
900
- PublicKey?: Uint8Array;
901
- CustomerMasterKeySpec?: CustomerMasterKeySpec;
902
- KeySpec?: KeySpec;
903
- KeyUsage?: KeyUsageType;
904
- EncryptionAlgorithms?: EncryptionAlgorithmSpec[];
905
- SigningAlgorithms?: SigningAlgorithmSpec[];
906
- KeyAgreementAlgorithms?: KeyAgreementAlgorithmSpec[];
901
+ KeyId?: string | undefined;
902
+ PublicKey?: Uint8Array | undefined;
903
+ CustomerMasterKeySpec?: CustomerMasterKeySpec | undefined;
904
+ KeySpec?: KeySpec | undefined;
905
+ KeyUsage?: KeyUsageType | undefined;
906
+ EncryptionAlgorithms?: EncryptionAlgorithmSpec[] | undefined;
907
+ SigningAlgorithms?: SigningAlgorithmSpec[] | undefined;
908
+ KeyAgreementAlgorithms?: KeyAgreementAlgorithmSpec[] | undefined;
907
909
  }
908
910
  export interface GrantListEntry {
909
- KeyId?: string;
910
- GrantId?: string;
911
- Name?: string;
912
- CreationDate?: Date;
913
- GranteePrincipal?: string;
914
- RetiringPrincipal?: string;
915
- IssuingAccount?: string;
916
- Operations?: GrantOperation[];
917
- Constraints?: GrantConstraints;
911
+ KeyId?: string | undefined;
912
+ GrantId?: string | undefined;
913
+ Name?: string | undefined;
914
+ CreationDate?: Date | undefined;
915
+ GranteePrincipal?: string | undefined;
916
+ RetiringPrincipal?: string | undefined;
917
+ IssuingAccount?: string | undefined;
918
+ Operations?: GrantOperation[] | undefined;
919
+ Constraints?: GrantConstraints | undefined;
918
920
  }
919
921
  export interface ImportKeyMaterialRequest {
920
922
  KeyId: string | undefined;
921
923
  ImportToken: Uint8Array | undefined;
922
924
  EncryptedKeyMaterial: Uint8Array | undefined;
923
- ValidTo?: Date;
924
- ExpirationModel?: ExpirationModelType;
925
+ ValidTo?: Date | undefined;
926
+ ExpirationModel?: ExpirationModelType | undefined;
925
927
  }
926
928
  export interface ImportKeyMaterialResponse {}
927
929
  export declare class IncorrectKeyMaterialException extends __BaseException {
@@ -946,8 +948,8 @@ export declare class InvalidGrantIdException extends __BaseException {
946
948
  );
947
949
  }
948
950
  export interface KeyListEntry {
949
- KeyId?: string;
950
- KeyArn?: string;
951
+ KeyId?: string | undefined;
952
+ KeyArn?: string | undefined;
951
953
  }
952
954
  export declare class KMSInvalidMacException extends __BaseException {
953
955
  readonly name: "KMSInvalidMacException";
@@ -964,41 +966,41 @@ export declare class KMSInvalidSignatureException extends __BaseException {
964
966
  );
965
967
  }
966
968
  export interface ListAliasesRequest {
967
- KeyId?: string;
968
- Limit?: number;
969
- Marker?: string;
969
+ KeyId?: string | undefined;
970
+ Limit?: number | undefined;
971
+ Marker?: string | undefined;
970
972
  }
971
973
  export interface ListAliasesResponse {
972
- Aliases?: AliasListEntry[];
973
- NextMarker?: string;
974
- Truncated?: boolean;
974
+ Aliases?: AliasListEntry[] | undefined;
975
+ NextMarker?: string | undefined;
976
+ Truncated?: boolean | undefined;
975
977
  }
976
978
  export interface ListGrantsRequest {
977
- Limit?: number;
978
- Marker?: string;
979
+ Limit?: number | undefined;
980
+ Marker?: string | undefined;
979
981
  KeyId: string | undefined;
980
- GrantId?: string;
981
- GranteePrincipal?: string;
982
+ GrantId?: string | undefined;
983
+ GranteePrincipal?: string | undefined;
982
984
  }
983
985
  export interface ListGrantsResponse {
984
- Grants?: GrantListEntry[];
985
- NextMarker?: string;
986
- Truncated?: boolean;
986
+ Grants?: GrantListEntry[] | undefined;
987
+ NextMarker?: string | undefined;
988
+ Truncated?: boolean | undefined;
987
989
  }
988
990
  export interface ListKeyPoliciesRequest {
989
991
  KeyId: string | undefined;
990
- Limit?: number;
991
- Marker?: string;
992
+ Limit?: number | undefined;
993
+ Marker?: string | undefined;
992
994
  }
993
995
  export interface ListKeyPoliciesResponse {
994
- PolicyNames?: string[];
995
- NextMarker?: string;
996
- Truncated?: boolean;
996
+ PolicyNames?: string[] | undefined;
997
+ NextMarker?: string | undefined;
998
+ Truncated?: boolean | undefined;
997
999
  }
998
1000
  export interface ListKeyRotationsRequest {
999
1001
  KeyId: string | undefined;
1000
- Limit?: number;
1001
- Marker?: string;
1002
+ Limit?: number | undefined;
1003
+ Marker?: string | undefined;
1002
1004
  }
1003
1005
  export declare const RotationType: {
1004
1006
  readonly AUTOMATIC: "AUTOMATIC";
@@ -1006,37 +1008,37 @@ export declare const RotationType: {
1006
1008
  };
1007
1009
  export type RotationType = (typeof RotationType)[keyof typeof RotationType];
1008
1010
  export interface RotationsListEntry {
1009
- KeyId?: string;
1010
- RotationDate?: Date;
1011
- RotationType?: RotationType;
1011
+ KeyId?: string | undefined;
1012
+ RotationDate?: Date | undefined;
1013
+ RotationType?: RotationType | undefined;
1012
1014
  }
1013
1015
  export interface ListKeyRotationsResponse {
1014
- Rotations?: RotationsListEntry[];
1015
- NextMarker?: string;
1016
- Truncated?: boolean;
1016
+ Rotations?: RotationsListEntry[] | undefined;
1017
+ NextMarker?: string | undefined;
1018
+ Truncated?: boolean | undefined;
1017
1019
  }
1018
1020
  export interface ListKeysRequest {
1019
- Limit?: number;
1020
- Marker?: string;
1021
+ Limit?: number | undefined;
1022
+ Marker?: string | undefined;
1021
1023
  }
1022
1024
  export interface ListKeysResponse {
1023
- Keys?: KeyListEntry[];
1024
- NextMarker?: string;
1025
- Truncated?: boolean;
1025
+ Keys?: KeyListEntry[] | undefined;
1026
+ NextMarker?: string | undefined;
1027
+ Truncated?: boolean | undefined;
1026
1028
  }
1027
1029
  export interface ListResourceTagsRequest {
1028
1030
  KeyId: string | undefined;
1029
- Limit?: number;
1030
- Marker?: string;
1031
+ Limit?: number | undefined;
1032
+ Marker?: string | undefined;
1031
1033
  }
1032
1034
  export interface ListResourceTagsResponse {
1033
- Tags?: Tag[];
1034
- NextMarker?: string;
1035
- Truncated?: boolean;
1035
+ Tags?: Tag[] | undefined;
1036
+ NextMarker?: string | undefined;
1037
+ Truncated?: boolean | undefined;
1036
1038
  }
1037
1039
  export interface ListRetirableGrantsRequest {
1038
- Limit?: number;
1039
- Marker?: string;
1040
+ Limit?: number | undefined;
1041
+ Marker?: string | undefined;
1040
1042
  RetiringPrincipal: string | undefined;
1041
1043
  }
1042
1044
  export declare const MessageType: {
@@ -1046,80 +1048,80 @@ export declare const MessageType: {
1046
1048
  export type MessageType = (typeof MessageType)[keyof typeof MessageType];
1047
1049
  export interface PutKeyPolicyRequest {
1048
1050
  KeyId: string | undefined;
1049
- PolicyName?: string;
1051
+ PolicyName?: string | undefined;
1050
1052
  Policy: string | undefined;
1051
- BypassPolicyLockoutSafetyCheck?: boolean;
1053
+ BypassPolicyLockoutSafetyCheck?: boolean | undefined;
1052
1054
  }
1053
1055
  export interface ReEncryptRequest {
1054
1056
  CiphertextBlob: Uint8Array | undefined;
1055
- SourceEncryptionContext?: Record<string, string>;
1056
- SourceKeyId?: string;
1057
+ SourceEncryptionContext?: Record<string, string> | undefined;
1058
+ SourceKeyId?: string | undefined;
1057
1059
  DestinationKeyId: string | undefined;
1058
- DestinationEncryptionContext?: Record<string, string>;
1059
- SourceEncryptionAlgorithm?: EncryptionAlgorithmSpec;
1060
- DestinationEncryptionAlgorithm?: EncryptionAlgorithmSpec;
1061
- GrantTokens?: string[];
1062
- DryRun?: boolean;
1060
+ DestinationEncryptionContext?: Record<string, string> | undefined;
1061
+ SourceEncryptionAlgorithm?: EncryptionAlgorithmSpec | undefined;
1062
+ DestinationEncryptionAlgorithm?: EncryptionAlgorithmSpec | undefined;
1063
+ GrantTokens?: string[] | undefined;
1064
+ DryRun?: boolean | undefined;
1063
1065
  }
1064
1066
  export interface ReEncryptResponse {
1065
- CiphertextBlob?: Uint8Array;
1066
- SourceKeyId?: string;
1067
- KeyId?: string;
1068
- SourceEncryptionAlgorithm?: EncryptionAlgorithmSpec;
1069
- DestinationEncryptionAlgorithm?: EncryptionAlgorithmSpec;
1067
+ CiphertextBlob?: Uint8Array | undefined;
1068
+ SourceKeyId?: string | undefined;
1069
+ KeyId?: string | undefined;
1070
+ SourceEncryptionAlgorithm?: EncryptionAlgorithmSpec | undefined;
1071
+ DestinationEncryptionAlgorithm?: EncryptionAlgorithmSpec | undefined;
1070
1072
  }
1071
1073
  export interface ReplicateKeyRequest {
1072
1074
  KeyId: string | undefined;
1073
1075
  ReplicaRegion: string | undefined;
1074
- Policy?: string;
1075
- BypassPolicyLockoutSafetyCheck?: boolean;
1076
- Description?: string;
1077
- Tags?: Tag[];
1076
+ Policy?: string | undefined;
1077
+ BypassPolicyLockoutSafetyCheck?: boolean | undefined;
1078
+ Description?: string | undefined;
1079
+ Tags?: Tag[] | undefined;
1078
1080
  }
1079
1081
  export interface ReplicateKeyResponse {
1080
- ReplicaKeyMetadata?: KeyMetadata;
1081
- ReplicaPolicy?: string;
1082
- ReplicaTags?: Tag[];
1082
+ ReplicaKeyMetadata?: KeyMetadata | undefined;
1083
+ ReplicaPolicy?: string | undefined;
1084
+ ReplicaTags?: Tag[] | undefined;
1083
1085
  }
1084
1086
  export interface RetireGrantRequest {
1085
- GrantToken?: string;
1086
- KeyId?: string;
1087
- GrantId?: string;
1088
- DryRun?: boolean;
1087
+ GrantToken?: string | undefined;
1088
+ KeyId?: string | undefined;
1089
+ GrantId?: string | undefined;
1090
+ DryRun?: boolean | undefined;
1089
1091
  }
1090
1092
  export interface RevokeGrantRequest {
1091
1093
  KeyId: string | undefined;
1092
1094
  GrantId: string | undefined;
1093
- DryRun?: boolean;
1095
+ DryRun?: boolean | undefined;
1094
1096
  }
1095
1097
  export interface RotateKeyOnDemandRequest {
1096
1098
  KeyId: string | undefined;
1097
1099
  }
1098
1100
  export interface RotateKeyOnDemandResponse {
1099
- KeyId?: string;
1101
+ KeyId?: string | undefined;
1100
1102
  }
1101
1103
  export interface ScheduleKeyDeletionRequest {
1102
1104
  KeyId: string | undefined;
1103
- PendingWindowInDays?: number;
1105
+ PendingWindowInDays?: number | undefined;
1104
1106
  }
1105
1107
  export interface ScheduleKeyDeletionResponse {
1106
- KeyId?: string;
1107
- DeletionDate?: Date;
1108
- KeyState?: KeyState;
1109
- PendingWindowInDays?: number;
1108
+ KeyId?: string | undefined;
1109
+ DeletionDate?: Date | undefined;
1110
+ KeyState?: KeyState | undefined;
1111
+ PendingWindowInDays?: number | undefined;
1110
1112
  }
1111
1113
  export interface SignRequest {
1112
1114
  KeyId: string | undefined;
1113
1115
  Message: Uint8Array | undefined;
1114
- MessageType?: MessageType;
1115
- GrantTokens?: string[];
1116
+ MessageType?: MessageType | undefined;
1117
+ GrantTokens?: string[] | undefined;
1116
1118
  SigningAlgorithm: SigningAlgorithmSpec | undefined;
1117
- DryRun?: boolean;
1119
+ DryRun?: boolean | undefined;
1118
1120
  }
1119
1121
  export interface SignResponse {
1120
- KeyId?: string;
1121
- Signature?: Uint8Array;
1122
- SigningAlgorithm?: SigningAlgorithmSpec;
1122
+ KeyId?: string | undefined;
1123
+ Signature?: Uint8Array | undefined;
1124
+ SigningAlgorithm?: SigningAlgorithmSpec | undefined;
1123
1125
  }
1124
1126
  export interface TagResourceRequest {
1125
1127
  KeyId: string | undefined;
@@ -1135,14 +1137,16 @@ export interface UpdateAliasRequest {
1135
1137
  }
1136
1138
  export interface UpdateCustomKeyStoreRequest {
1137
1139
  CustomKeyStoreId: string | undefined;
1138
- NewCustomKeyStoreName?: string;
1139
- KeyStorePassword?: string;
1140
- CloudHsmClusterId?: string;
1141
- XksProxyUriEndpoint?: string;
1142
- XksProxyUriPath?: string;
1143
- XksProxyVpcEndpointServiceName?: string;
1144
- XksProxyAuthenticationCredential?: XksProxyAuthenticationCredentialType;
1145
- XksProxyConnectivity?: XksProxyConnectivityType;
1140
+ NewCustomKeyStoreName?: string | undefined;
1141
+ KeyStorePassword?: string | undefined;
1142
+ CloudHsmClusterId?: string | undefined;
1143
+ XksProxyUriEndpoint?: string | undefined;
1144
+ XksProxyUriPath?: string | undefined;
1145
+ XksProxyVpcEndpointServiceName?: string | undefined;
1146
+ XksProxyAuthenticationCredential?:
1147
+ | XksProxyAuthenticationCredentialType
1148
+ | undefined;
1149
+ XksProxyConnectivity?: XksProxyConnectivityType | undefined;
1146
1150
  }
1147
1151
  export interface UpdateCustomKeyStoreResponse {}
1148
1152
  export interface UpdateKeyDescriptionRequest {
@@ -1156,29 +1160,29 @@ export interface UpdatePrimaryRegionRequest {
1156
1160
  export interface VerifyRequest {
1157
1161
  KeyId: string | undefined;
1158
1162
  Message: Uint8Array | undefined;
1159
- MessageType?: MessageType;
1163
+ MessageType?: MessageType | undefined;
1160
1164
  Signature: Uint8Array | undefined;
1161
1165
  SigningAlgorithm: SigningAlgorithmSpec | undefined;
1162
- GrantTokens?: string[];
1163
- DryRun?: boolean;
1166
+ GrantTokens?: string[] | undefined;
1167
+ DryRun?: boolean | undefined;
1164
1168
  }
1165
1169
  export interface VerifyResponse {
1166
- KeyId?: string;
1167
- SignatureValid?: boolean;
1168
- SigningAlgorithm?: SigningAlgorithmSpec;
1170
+ KeyId?: string | undefined;
1171
+ SignatureValid?: boolean | undefined;
1172
+ SigningAlgorithm?: SigningAlgorithmSpec | undefined;
1169
1173
  }
1170
1174
  export interface VerifyMacRequest {
1171
1175
  Message: Uint8Array | undefined;
1172
1176
  KeyId: string | undefined;
1173
1177
  MacAlgorithm: MacAlgorithmSpec | undefined;
1174
1178
  Mac: Uint8Array | undefined;
1175
- GrantTokens?: string[];
1176
- DryRun?: boolean;
1179
+ GrantTokens?: string[] | undefined;
1180
+ DryRun?: boolean | undefined;
1177
1181
  }
1178
1182
  export interface VerifyMacResponse {
1179
- KeyId?: string;
1180
- MacValid?: boolean;
1181
- MacAlgorithm?: MacAlgorithmSpec;
1183
+ KeyId?: string | undefined;
1184
+ MacValid?: boolean | undefined;
1185
+ MacAlgorithm?: MacAlgorithmSpec | undefined;
1182
1186
  }
1183
1187
  export declare const XksProxyAuthenticationCredentialTypeFilterSensitiveLog: (
1184
1188
  obj: XksProxyAuthenticationCredentialType