localstack-core 4.10.1.dev7__py3-none-any.whl → 4.10.1.dev42__py3-none-any.whl

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.

Potentially problematic release.


This version of localstack-core might be problematic. Click here for more details.

Files changed (77) hide show
  1. localstack/aws/api/acm/__init__.py +122 -122
  2. localstack/aws/api/apigateway/__init__.py +560 -559
  3. localstack/aws/api/cloudcontrol/__init__.py +63 -63
  4. localstack/aws/api/cloudformation/__init__.py +1040 -969
  5. localstack/aws/api/cloudwatch/__init__.py +375 -375
  6. localstack/aws/api/config/__init__.py +784 -786
  7. localstack/aws/api/dynamodb/__init__.py +753 -759
  8. localstack/aws/api/dynamodbstreams/__init__.py +74 -74
  9. localstack/aws/api/ec2/__init__.py +8901 -8818
  10. localstack/aws/api/es/__init__.py +453 -453
  11. localstack/aws/api/events/__init__.py +552 -552
  12. localstack/aws/api/firehose/__init__.py +541 -543
  13. localstack/aws/api/iam/__init__.py +639 -572
  14. localstack/aws/api/kinesis/__init__.py +235 -147
  15. localstack/aws/api/kms/__init__.py +340 -336
  16. localstack/aws/api/lambda_/__init__.py +574 -573
  17. localstack/aws/api/logs/__init__.py +676 -675
  18. localstack/aws/api/opensearch/__init__.py +814 -785
  19. localstack/aws/api/pipes/__init__.py +336 -336
  20. localstack/aws/api/redshift/__init__.py +1188 -1166
  21. localstack/aws/api/resource_groups/__init__.py +175 -175
  22. localstack/aws/api/resourcegroupstaggingapi/__init__.py +67 -67
  23. localstack/aws/api/route53/__init__.py +254 -254
  24. localstack/aws/api/route53resolver/__init__.py +396 -396
  25. localstack/aws/api/s3/__init__.py +1350 -1349
  26. localstack/aws/api/s3control/__init__.py +594 -594
  27. localstack/aws/api/scheduler/__init__.py +118 -118
  28. localstack/aws/api/secretsmanager/__init__.py +193 -193
  29. localstack/aws/api/ses/__init__.py +227 -227
  30. localstack/aws/api/sns/__init__.py +115 -115
  31. localstack/aws/api/sqs/__init__.py +100 -100
  32. localstack/aws/api/ssm/__init__.py +1977 -1971
  33. localstack/aws/api/stepfunctions/__init__.py +323 -323
  34. localstack/aws/api/sts/__init__.py +90 -66
  35. localstack/aws/api/support/__init__.py +112 -112
  36. localstack/aws/api/swf/__init__.py +378 -386
  37. localstack/aws/api/transcribe/__init__.py +425 -425
  38. localstack/aws/handlers/service.py +11 -1
  39. localstack/aws/protocol/parser.py +1 -1
  40. localstack/aws/scaffold.py +15 -17
  41. localstack/cli/localstack.py +6 -1
  42. localstack/dev/kubernetes/__main__.py +38 -3
  43. localstack/services/apigateway/helpers.py +5 -9
  44. localstack/services/apigateway/legacy/provider.py +32 -9
  45. localstack/services/apigateway/patches.py +0 -9
  46. localstack/services/cloudformation/provider.py +2 -2
  47. localstack/services/cloudformation/v2/provider.py +6 -6
  48. localstack/services/kinesis/packages.py +1 -1
  49. localstack/services/kms/models.py +34 -4
  50. localstack/services/kms/provider.py +93 -16
  51. localstack/services/lambda_/api_utils.py +3 -1
  52. localstack/services/lambda_/packages.py +1 -1
  53. localstack/services/lambda_/provider.py +1 -1
  54. localstack/services/lambda_/runtimes.py +8 -3
  55. localstack/services/logs/provider.py +36 -19
  56. localstack/services/s3/provider.py +1 -1
  57. localstack/services/sns/v2/models.py +24 -1
  58. localstack/services/sns/v2/provider.py +144 -12
  59. localstack/services/sns/v2/utils.py +8 -0
  60. localstack/services/sqs/models.py +37 -10
  61. localstack/testing/snapshots/transformer_utility.py +2 -0
  62. localstack/testing/testselection/matching.py +0 -1
  63. localstack/utils/aws/client_types.py +0 -8
  64. localstack/utils/catalog/catalog_loader.py +111 -3
  65. localstack/utils/crypto.py +109 -0
  66. localstack/version.py +2 -2
  67. {localstack_core-4.10.1.dev7.dist-info → localstack_core-4.10.1.dev42.dist-info}/METADATA +6 -5
  68. {localstack_core-4.10.1.dev7.dist-info → localstack_core-4.10.1.dev42.dist-info}/RECORD +76 -76
  69. localstack_core-4.10.1.dev42.dist-info/plux.json +1 -0
  70. localstack_core-4.10.1.dev7.dist-info/plux.json +0 -1
  71. {localstack_core-4.10.1.dev7.data → localstack_core-4.10.1.dev42.data}/scripts/localstack +0 -0
  72. {localstack_core-4.10.1.dev7.data → localstack_core-4.10.1.dev42.data}/scripts/localstack-supervisor +0 -0
  73. {localstack_core-4.10.1.dev7.data → localstack_core-4.10.1.dev42.data}/scripts/localstack.bat +0 -0
  74. {localstack_core-4.10.1.dev7.dist-info → localstack_core-4.10.1.dev42.dist-info}/WHEEL +0 -0
  75. {localstack_core-4.10.1.dev7.dist-info → localstack_core-4.10.1.dev42.dist-info}/entry_points.txt +0 -0
  76. {localstack_core-4.10.1.dev7.dist-info → localstack_core-4.10.1.dev42.dist-info}/licenses/LICENSE.txt +0 -0
  77. {localstack_core-4.10.1.dev7.dist-info → localstack_core-4.10.1.dev42.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  from datetime import datetime
2
2
  from enum import StrEnum
3
- from typing import Dict, List, Optional, TypedDict
3
+ from typing import TypedDict
4
4
 
5
5
  from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
6
6
 
@@ -115,6 +115,7 @@ class DataKeyPairSpec(StrEnum):
115
115
  ECC_NIST_P521 = "ECC_NIST_P521"
116
116
  ECC_SECG_P256K1 = "ECC_SECG_P256K1"
117
117
  SM2 = "SM2"
118
+ ECC_NIST_EDWARDS25519 = "ECC_NIST_EDWARDS25519"
118
119
 
119
120
 
120
121
  class DataKeySpec(StrEnum):
@@ -205,6 +206,7 @@ class KeySpec(StrEnum):
205
206
  ML_DSA_44 = "ML_DSA_44"
206
207
  ML_DSA_65 = "ML_DSA_65"
207
208
  ML_DSA_87 = "ML_DSA_87"
209
+ ECC_NIST_EDWARDS25519 = "ECC_NIST_EDWARDS25519"
208
210
 
209
211
 
210
212
  class KeyState(StrEnum):
@@ -267,6 +269,8 @@ class SigningAlgorithmSpec(StrEnum):
267
269
  ECDSA_SHA_512 = "ECDSA_SHA_512"
268
270
  SM2DSA = "SM2DSA"
269
271
  ML_DSA_SHAKE_256 = "ML_DSA_SHAKE_256"
272
+ ED25519_SHA_512 = "ED25519_SHA_512"
273
+ ED25519_PH_SHA_512 = "ED25519_PH_SHA_512"
270
274
 
271
275
 
272
276
  class WrappingKeySpec(StrEnum):
@@ -573,14 +577,14 @@ DateType = datetime
573
577
 
574
578
 
575
579
  class AliasListEntry(TypedDict, total=False):
576
- AliasName: Optional[AliasNameType]
577
- AliasArn: Optional[ArnType]
578
- TargetKeyId: Optional[KeyIdType]
579
- CreationDate: Optional[DateType]
580
- LastUpdatedDate: Optional[DateType]
580
+ AliasName: AliasNameType | None
581
+ AliasArn: ArnType | None
582
+ TargetKeyId: KeyIdType | None
583
+ CreationDate: DateType | None
584
+ LastUpdatedDate: DateType | None
581
585
 
582
586
 
583
- AliasList = List[AliasListEntry]
587
+ AliasList = list[AliasListEntry]
584
588
  AttestationDocumentType = bytes
585
589
 
586
590
 
@@ -589,7 +593,7 @@ class CancelKeyDeletionRequest(ServiceRequest):
589
593
 
590
594
 
591
595
  class CancelKeyDeletionResponse(TypedDict, total=False):
592
- KeyId: Optional[KeyIdType]
596
+ KeyId: KeyIdType | None
593
597
 
594
598
 
595
599
  CiphertextType = bytes
@@ -615,48 +619,48 @@ class XksProxyAuthenticationCredentialType(TypedDict, total=False):
615
619
 
616
620
  class CreateCustomKeyStoreRequest(ServiceRequest):
617
621
  CustomKeyStoreName: CustomKeyStoreNameType
618
- CloudHsmClusterId: Optional[CloudHsmClusterIdType]
619
- TrustAnchorCertificate: Optional[TrustAnchorCertificateType]
620
- KeyStorePassword: Optional[KeyStorePasswordType]
621
- CustomKeyStoreType: Optional[CustomKeyStoreType]
622
- XksProxyUriEndpoint: Optional[XksProxyUriEndpointType]
623
- XksProxyUriPath: Optional[XksProxyUriPathType]
624
- XksProxyVpcEndpointServiceName: Optional[XksProxyVpcEndpointServiceNameType]
625
- XksProxyVpcEndpointServiceOwner: Optional[AccountIdType]
626
- XksProxyAuthenticationCredential: Optional[XksProxyAuthenticationCredentialType]
627
- XksProxyConnectivity: Optional[XksProxyConnectivityType]
622
+ CloudHsmClusterId: CloudHsmClusterIdType | None
623
+ TrustAnchorCertificate: TrustAnchorCertificateType | None
624
+ KeyStorePassword: KeyStorePasswordType | None
625
+ CustomKeyStoreType: CustomKeyStoreType | None
626
+ XksProxyUriEndpoint: XksProxyUriEndpointType | None
627
+ XksProxyUriPath: XksProxyUriPathType | None
628
+ XksProxyVpcEndpointServiceName: XksProxyVpcEndpointServiceNameType | None
629
+ XksProxyVpcEndpointServiceOwner: AccountIdType | None
630
+ XksProxyAuthenticationCredential: XksProxyAuthenticationCredentialType | None
631
+ XksProxyConnectivity: XksProxyConnectivityType | None
628
632
 
629
633
 
630
634
  class CreateCustomKeyStoreResponse(TypedDict, total=False):
631
- CustomKeyStoreId: Optional[CustomKeyStoreIdType]
635
+ CustomKeyStoreId: CustomKeyStoreIdType | None
632
636
 
633
637
 
634
- GrantTokenList = List[GrantTokenType]
635
- EncryptionContextType = Dict[EncryptionContextKey, EncryptionContextValue]
638
+ GrantTokenList = list[GrantTokenType]
639
+ EncryptionContextType = dict[EncryptionContextKey, EncryptionContextValue]
636
640
 
637
641
 
638
642
  class GrantConstraints(TypedDict, total=False):
639
- EncryptionContextSubset: Optional[EncryptionContextType]
640
- EncryptionContextEquals: Optional[EncryptionContextType]
643
+ EncryptionContextSubset: EncryptionContextType | None
644
+ EncryptionContextEquals: EncryptionContextType | None
641
645
 
642
646
 
643
- GrantOperationList = List[GrantOperation]
647
+ GrantOperationList = list[GrantOperation]
644
648
 
645
649
 
646
650
  class CreateGrantRequest(ServiceRequest):
647
651
  KeyId: KeyIdType
648
652
  GranteePrincipal: PrincipalIdType
649
- RetiringPrincipal: Optional[PrincipalIdType]
653
+ RetiringPrincipal: PrincipalIdType | None
650
654
  Operations: GrantOperationList
651
- Constraints: Optional[GrantConstraints]
652
- GrantTokens: Optional[GrantTokenList]
653
- Name: Optional[GrantNameType]
654
- DryRun: Optional[NullableBooleanType]
655
+ Constraints: GrantConstraints | None
656
+ GrantTokens: GrantTokenList | None
657
+ Name: GrantNameType | None
658
+ DryRun: NullableBooleanType | None
655
659
 
656
660
 
657
661
  class CreateGrantResponse(TypedDict, total=False):
658
- GrantToken: Optional[GrantTokenType]
659
- GrantId: Optional[GrantIdType]
662
+ GrantToken: GrantTokenType | None
663
+ GrantId: GrantIdType | None
660
664
 
661
665
 
662
666
  class Tag(TypedDict, total=False):
@@ -664,130 +668,130 @@ class Tag(TypedDict, total=False):
664
668
  TagValue: TagValueType
665
669
 
666
670
 
667
- TagList = List[Tag]
671
+ TagList = list[Tag]
668
672
 
669
673
 
670
674
  class CreateKeyRequest(ServiceRequest):
671
- Policy: Optional[PolicyType]
672
- Description: Optional[DescriptionType]
673
- KeyUsage: Optional[KeyUsageType]
674
- CustomerMasterKeySpec: Optional[CustomerMasterKeySpec]
675
- KeySpec: Optional[KeySpec]
676
- Origin: Optional[OriginType]
677
- CustomKeyStoreId: Optional[CustomKeyStoreIdType]
678
- BypassPolicyLockoutSafetyCheck: Optional[BooleanType]
679
- Tags: Optional[TagList]
680
- MultiRegion: Optional[NullableBooleanType]
681
- XksKeyId: Optional[XksKeyIdType]
675
+ Policy: PolicyType | None
676
+ Description: DescriptionType | None
677
+ KeyUsage: KeyUsageType | None
678
+ CustomerMasterKeySpec: CustomerMasterKeySpec | None
679
+ KeySpec: KeySpec | None
680
+ Origin: OriginType | None
681
+ CustomKeyStoreId: CustomKeyStoreIdType | None
682
+ BypassPolicyLockoutSafetyCheck: BooleanType | None
683
+ Tags: TagList | None
684
+ MultiRegion: NullableBooleanType | None
685
+ XksKeyId: XksKeyIdType | None
682
686
 
683
687
 
684
688
  class XksKeyConfigurationType(TypedDict, total=False):
685
- Id: Optional[XksKeyIdType]
689
+ Id: XksKeyIdType | None
686
690
 
687
691
 
688
- MacAlgorithmSpecList = List[MacAlgorithmSpec]
692
+ MacAlgorithmSpecList = list[MacAlgorithmSpec]
689
693
 
690
694
 
691
695
  class MultiRegionKey(TypedDict, total=False):
692
- Arn: Optional[ArnType]
693
- Region: Optional[RegionType]
696
+ Arn: ArnType | None
697
+ Region: RegionType | None
694
698
 
695
699
 
696
- MultiRegionKeyList = List[MultiRegionKey]
700
+ MultiRegionKeyList = list[MultiRegionKey]
697
701
 
698
702
 
699
703
  class MultiRegionConfiguration(TypedDict, total=False):
700
- MultiRegionKeyType: Optional[MultiRegionKeyType]
701
- PrimaryKey: Optional[MultiRegionKey]
702
- ReplicaKeys: Optional[MultiRegionKeyList]
704
+ MultiRegionKeyType: MultiRegionKeyType | None
705
+ PrimaryKey: MultiRegionKey | None
706
+ ReplicaKeys: MultiRegionKeyList | None
703
707
 
704
708
 
705
- KeyAgreementAlgorithmSpecList = List[KeyAgreementAlgorithmSpec]
706
- SigningAlgorithmSpecList = List[SigningAlgorithmSpec]
707
- EncryptionAlgorithmSpecList = List[EncryptionAlgorithmSpec]
709
+ KeyAgreementAlgorithmSpecList = list[KeyAgreementAlgorithmSpec]
710
+ SigningAlgorithmSpecList = list[SigningAlgorithmSpec]
711
+ EncryptionAlgorithmSpecList = list[EncryptionAlgorithmSpec]
708
712
 
709
713
 
710
714
  class KeyMetadata(TypedDict, total=False):
711
- AWSAccountId: Optional[AWSAccountIdType]
715
+ AWSAccountId: AWSAccountIdType | None
712
716
  KeyId: KeyIdType
713
- Arn: Optional[ArnType]
714
- CreationDate: Optional[DateType]
715
- Enabled: Optional[BooleanType]
716
- Description: Optional[DescriptionType]
717
- KeyUsage: Optional[KeyUsageType]
718
- KeyState: Optional[KeyState]
719
- DeletionDate: Optional[DateType]
720
- ValidTo: Optional[DateType]
721
- Origin: Optional[OriginType]
722
- CustomKeyStoreId: Optional[CustomKeyStoreIdType]
723
- CloudHsmClusterId: Optional[CloudHsmClusterIdType]
724
- ExpirationModel: Optional[ExpirationModelType]
725
- KeyManager: Optional[KeyManagerType]
726
- CustomerMasterKeySpec: Optional[CustomerMasterKeySpec]
727
- KeySpec: Optional[KeySpec]
728
- EncryptionAlgorithms: Optional[EncryptionAlgorithmSpecList]
729
- SigningAlgorithms: Optional[SigningAlgorithmSpecList]
730
- KeyAgreementAlgorithms: Optional[KeyAgreementAlgorithmSpecList]
731
- MultiRegion: Optional[NullableBooleanType]
732
- MultiRegionConfiguration: Optional[MultiRegionConfiguration]
733
- PendingDeletionWindowInDays: Optional[PendingWindowInDaysType]
734
- MacAlgorithms: Optional[MacAlgorithmSpecList]
735
- XksKeyConfiguration: Optional[XksKeyConfigurationType]
736
- CurrentKeyMaterialId: Optional[BackingKeyIdType]
717
+ Arn: ArnType | None
718
+ CreationDate: DateType | None
719
+ Enabled: BooleanType | None
720
+ Description: DescriptionType | None
721
+ KeyUsage: KeyUsageType | None
722
+ KeyState: KeyState | None
723
+ DeletionDate: DateType | None
724
+ ValidTo: DateType | None
725
+ Origin: OriginType | None
726
+ CustomKeyStoreId: CustomKeyStoreIdType | None
727
+ CloudHsmClusterId: CloudHsmClusterIdType | None
728
+ ExpirationModel: ExpirationModelType | None
729
+ KeyManager: KeyManagerType | None
730
+ CustomerMasterKeySpec: CustomerMasterKeySpec | None
731
+ KeySpec: KeySpec | None
732
+ EncryptionAlgorithms: EncryptionAlgorithmSpecList | None
733
+ SigningAlgorithms: SigningAlgorithmSpecList | None
734
+ KeyAgreementAlgorithms: KeyAgreementAlgorithmSpecList | None
735
+ MultiRegion: NullableBooleanType | None
736
+ MultiRegionConfiguration: MultiRegionConfiguration | None
737
+ PendingDeletionWindowInDays: PendingWindowInDaysType | None
738
+ MacAlgorithms: MacAlgorithmSpecList | None
739
+ XksKeyConfiguration: XksKeyConfigurationType | None
740
+ CurrentKeyMaterialId: BackingKeyIdType | None
737
741
 
738
742
 
739
743
  class CreateKeyResponse(TypedDict, total=False):
740
- KeyMetadata: Optional[KeyMetadata]
744
+ KeyMetadata: KeyMetadata | None
741
745
 
742
746
 
743
747
  class XksProxyConfigurationType(TypedDict, total=False):
744
- Connectivity: Optional[XksProxyConnectivityType]
745
- AccessKeyId: Optional[XksProxyAuthenticationAccessKeyIdType]
746
- UriEndpoint: Optional[XksProxyUriEndpointType]
747
- UriPath: Optional[XksProxyUriPathType]
748
- VpcEndpointServiceName: Optional[XksProxyVpcEndpointServiceNameType]
749
- VpcEndpointServiceOwner: Optional[AccountIdType]
748
+ Connectivity: XksProxyConnectivityType | None
749
+ AccessKeyId: XksProxyAuthenticationAccessKeyIdType | None
750
+ UriEndpoint: XksProxyUriEndpointType | None
751
+ UriPath: XksProxyUriPathType | None
752
+ VpcEndpointServiceName: XksProxyVpcEndpointServiceNameType | None
753
+ VpcEndpointServiceOwner: AccountIdType | None
750
754
 
751
755
 
752
756
  class CustomKeyStoresListEntry(TypedDict, total=False):
753
- CustomKeyStoreId: Optional[CustomKeyStoreIdType]
754
- CustomKeyStoreName: Optional[CustomKeyStoreNameType]
755
- CloudHsmClusterId: Optional[CloudHsmClusterIdType]
756
- TrustAnchorCertificate: Optional[TrustAnchorCertificateType]
757
- ConnectionState: Optional[ConnectionStateType]
758
- ConnectionErrorCode: Optional[ConnectionErrorCodeType]
759
- CreationDate: Optional[DateType]
760
- CustomKeyStoreType: Optional[CustomKeyStoreType]
761
- XksProxyConfiguration: Optional[XksProxyConfigurationType]
757
+ CustomKeyStoreId: CustomKeyStoreIdType | None
758
+ CustomKeyStoreName: CustomKeyStoreNameType | None
759
+ CloudHsmClusterId: CloudHsmClusterIdType | None
760
+ TrustAnchorCertificate: TrustAnchorCertificateType | None
761
+ ConnectionState: ConnectionStateType | None
762
+ ConnectionErrorCode: ConnectionErrorCodeType | None
763
+ CreationDate: DateType | None
764
+ CustomKeyStoreType: CustomKeyStoreType | None
765
+ XksProxyConfiguration: XksProxyConfigurationType | None
762
766
 
763
767
 
764
- CustomKeyStoresList = List[CustomKeyStoresListEntry]
768
+ CustomKeyStoresList = list[CustomKeyStoresListEntry]
765
769
 
766
770
 
767
771
  class RecipientInfo(TypedDict, total=False):
768
- KeyEncryptionAlgorithm: Optional[KeyEncryptionMechanism]
769
- AttestationDocument: Optional[AttestationDocumentType]
772
+ KeyEncryptionAlgorithm: KeyEncryptionMechanism | None
773
+ AttestationDocument: AttestationDocumentType | None
770
774
 
771
775
 
772
776
  class DecryptRequest(ServiceRequest):
773
777
  CiphertextBlob: CiphertextType
774
- EncryptionContext: Optional[EncryptionContextType]
775
- GrantTokens: Optional[GrantTokenList]
776
- KeyId: Optional[KeyIdType]
777
- EncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
778
- Recipient: Optional[RecipientInfo]
779
- DryRun: Optional[NullableBooleanType]
778
+ EncryptionContext: EncryptionContextType | None
779
+ GrantTokens: GrantTokenList | None
780
+ KeyId: KeyIdType | None
781
+ EncryptionAlgorithm: EncryptionAlgorithmSpec | None
782
+ Recipient: RecipientInfo | None
783
+ DryRun: NullableBooleanType | None
780
784
 
781
785
 
782
786
  PlaintextType = bytes
783
787
 
784
788
 
785
789
  class DecryptResponse(TypedDict, total=False):
786
- KeyId: Optional[KeyIdType]
787
- Plaintext: Optional[PlaintextType]
788
- EncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
789
- CiphertextForRecipient: Optional[CiphertextType]
790
- KeyMaterialId: Optional[BackingKeyIdType]
790
+ KeyId: KeyIdType | None
791
+ Plaintext: PlaintextType | None
792
+ EncryptionAlgorithm: EncryptionAlgorithmSpec | None
793
+ CiphertextForRecipient: CiphertextType | None
794
+ KeyMaterialId: BackingKeyIdType | None
791
795
 
792
796
 
793
797
  class DeleteAliasRequest(ServiceRequest):
@@ -804,12 +808,12 @@ class DeleteCustomKeyStoreResponse(TypedDict, total=False):
804
808
 
805
809
  class DeleteImportedKeyMaterialRequest(ServiceRequest):
806
810
  KeyId: KeyIdType
807
- KeyMaterialId: Optional[BackingKeyIdType]
811
+ KeyMaterialId: BackingKeyIdType | None
808
812
 
809
813
 
810
814
  class DeleteImportedKeyMaterialResponse(TypedDict, total=False):
811
- KeyId: Optional[KeyIdType]
812
- KeyMaterialId: Optional[BackingKeyIdResponseType]
815
+ KeyId: KeyIdType | None
816
+ KeyMaterialId: BackingKeyIdResponseType | None
813
817
 
814
818
 
815
819
  PublicKeyType = bytes
@@ -819,39 +823,39 @@ class DeriveSharedSecretRequest(ServiceRequest):
819
823
  KeyId: KeyIdType
820
824
  KeyAgreementAlgorithm: KeyAgreementAlgorithmSpec
821
825
  PublicKey: PublicKeyType
822
- GrantTokens: Optional[GrantTokenList]
823
- DryRun: Optional[NullableBooleanType]
824
- Recipient: Optional[RecipientInfo]
826
+ GrantTokens: GrantTokenList | None
827
+ DryRun: NullableBooleanType | None
828
+ Recipient: RecipientInfo | None
825
829
 
826
830
 
827
831
  class DeriveSharedSecretResponse(TypedDict, total=False):
828
- KeyId: Optional[KeyIdType]
829
- SharedSecret: Optional[PlaintextType]
830
- CiphertextForRecipient: Optional[CiphertextType]
831
- KeyAgreementAlgorithm: Optional[KeyAgreementAlgorithmSpec]
832
- KeyOrigin: Optional[OriginType]
832
+ KeyId: KeyIdType | None
833
+ SharedSecret: PlaintextType | None
834
+ CiphertextForRecipient: CiphertextType | None
835
+ KeyAgreementAlgorithm: KeyAgreementAlgorithmSpec | None
836
+ KeyOrigin: OriginType | None
833
837
 
834
838
 
835
839
  class DescribeCustomKeyStoresRequest(ServiceRequest):
836
- CustomKeyStoreId: Optional[CustomKeyStoreIdType]
837
- CustomKeyStoreName: Optional[CustomKeyStoreNameType]
838
- Limit: Optional[LimitType]
839
- Marker: Optional[MarkerType]
840
+ CustomKeyStoreId: CustomKeyStoreIdType | None
841
+ CustomKeyStoreName: CustomKeyStoreNameType | None
842
+ Limit: LimitType | None
843
+ Marker: MarkerType | None
840
844
 
841
845
 
842
846
  class DescribeCustomKeyStoresResponse(TypedDict, total=False):
843
- CustomKeyStores: Optional[CustomKeyStoresList]
844
- NextMarker: Optional[MarkerType]
845
- Truncated: Optional[BooleanType]
847
+ CustomKeyStores: CustomKeyStoresList | None
848
+ NextMarker: MarkerType | None
849
+ Truncated: BooleanType | None
846
850
 
847
851
 
848
852
  class DescribeKeyRequest(ServiceRequest):
849
853
  KeyId: KeyIdType
850
- GrantTokens: Optional[GrantTokenList]
854
+ GrantTokens: GrantTokenList | None
851
855
 
852
856
 
853
857
  class DescribeKeyResponse(TypedDict, total=False):
854
- KeyMetadata: Optional[KeyMetadata]
858
+ KeyMetadata: KeyMetadata | None
855
859
 
856
860
 
857
861
  class DisableKeyRequest(ServiceRequest):
@@ -876,125 +880,125 @@ class EnableKeyRequest(ServiceRequest):
876
880
 
877
881
  class EnableKeyRotationRequest(ServiceRequest):
878
882
  KeyId: KeyIdType
879
- RotationPeriodInDays: Optional[RotationPeriodInDaysType]
883
+ RotationPeriodInDays: RotationPeriodInDaysType | None
880
884
 
881
885
 
882
886
  class EncryptRequest(ServiceRequest):
883
887
  KeyId: KeyIdType
884
888
  Plaintext: PlaintextType
885
- EncryptionContext: Optional[EncryptionContextType]
886
- GrantTokens: Optional[GrantTokenList]
887
- EncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
888
- DryRun: Optional[NullableBooleanType]
889
+ EncryptionContext: EncryptionContextType | None
890
+ GrantTokens: GrantTokenList | None
891
+ EncryptionAlgorithm: EncryptionAlgorithmSpec | None
892
+ DryRun: NullableBooleanType | None
889
893
 
890
894
 
891
895
  class EncryptResponse(TypedDict, total=False):
892
- CiphertextBlob: Optional[CiphertextType]
893
- KeyId: Optional[KeyIdType]
894
- EncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
896
+ CiphertextBlob: CiphertextType | None
897
+ KeyId: KeyIdType | None
898
+ EncryptionAlgorithm: EncryptionAlgorithmSpec | None
895
899
 
896
900
 
897
901
  class GenerateDataKeyPairRequest(ServiceRequest):
898
- EncryptionContext: Optional[EncryptionContextType]
902
+ EncryptionContext: EncryptionContextType | None
899
903
  KeyId: KeyIdType
900
904
  KeyPairSpec: DataKeyPairSpec
901
- GrantTokens: Optional[GrantTokenList]
902
- Recipient: Optional[RecipientInfo]
903
- DryRun: Optional[NullableBooleanType]
905
+ GrantTokens: GrantTokenList | None
906
+ Recipient: RecipientInfo | None
907
+ DryRun: NullableBooleanType | None
904
908
 
905
909
 
906
910
  class GenerateDataKeyPairResponse(TypedDict, total=False):
907
- PrivateKeyCiphertextBlob: Optional[CiphertextType]
908
- PrivateKeyPlaintext: Optional[PlaintextType]
909
- PublicKey: Optional[PublicKeyType]
910
- KeyId: Optional[KeyIdType]
911
- KeyPairSpec: Optional[DataKeyPairSpec]
912
- CiphertextForRecipient: Optional[CiphertextType]
913
- KeyMaterialId: Optional[BackingKeyIdType]
911
+ PrivateKeyCiphertextBlob: CiphertextType | None
912
+ PrivateKeyPlaintext: PlaintextType | None
913
+ PublicKey: PublicKeyType | None
914
+ KeyId: KeyIdType | None
915
+ KeyPairSpec: DataKeyPairSpec | None
916
+ CiphertextForRecipient: CiphertextType | None
917
+ KeyMaterialId: BackingKeyIdType | None
914
918
 
915
919
 
916
920
  class GenerateDataKeyPairWithoutPlaintextRequest(ServiceRequest):
917
- EncryptionContext: Optional[EncryptionContextType]
921
+ EncryptionContext: EncryptionContextType | None
918
922
  KeyId: KeyIdType
919
923
  KeyPairSpec: DataKeyPairSpec
920
- GrantTokens: Optional[GrantTokenList]
921
- DryRun: Optional[NullableBooleanType]
924
+ GrantTokens: GrantTokenList | None
925
+ DryRun: NullableBooleanType | None
922
926
 
923
927
 
924
928
  class GenerateDataKeyPairWithoutPlaintextResponse(TypedDict, total=False):
925
- PrivateKeyCiphertextBlob: Optional[CiphertextType]
926
- PublicKey: Optional[PublicKeyType]
927
- KeyId: Optional[KeyIdType]
928
- KeyPairSpec: Optional[DataKeyPairSpec]
929
- KeyMaterialId: Optional[BackingKeyIdType]
929
+ PrivateKeyCiphertextBlob: CiphertextType | None
930
+ PublicKey: PublicKeyType | None
931
+ KeyId: KeyIdType | None
932
+ KeyPairSpec: DataKeyPairSpec | None
933
+ KeyMaterialId: BackingKeyIdType | None
930
934
 
931
935
 
932
936
  class GenerateDataKeyRequest(ServiceRequest):
933
937
  KeyId: KeyIdType
934
- EncryptionContext: Optional[EncryptionContextType]
935
- NumberOfBytes: Optional[NumberOfBytesType]
936
- KeySpec: Optional[DataKeySpec]
937
- GrantTokens: Optional[GrantTokenList]
938
- Recipient: Optional[RecipientInfo]
939
- DryRun: Optional[NullableBooleanType]
938
+ EncryptionContext: EncryptionContextType | None
939
+ NumberOfBytes: NumberOfBytesType | None
940
+ KeySpec: DataKeySpec | None
941
+ GrantTokens: GrantTokenList | None
942
+ Recipient: RecipientInfo | None
943
+ DryRun: NullableBooleanType | None
940
944
 
941
945
 
942
946
  class GenerateDataKeyResponse(TypedDict, total=False):
943
- CiphertextBlob: Optional[CiphertextType]
944
- Plaintext: Optional[PlaintextType]
945
- KeyId: Optional[KeyIdType]
946
- CiphertextForRecipient: Optional[CiphertextType]
947
- KeyMaterialId: Optional[BackingKeyIdType]
947
+ CiphertextBlob: CiphertextType | None
948
+ Plaintext: PlaintextType | None
949
+ KeyId: KeyIdType | None
950
+ CiphertextForRecipient: CiphertextType | None
951
+ KeyMaterialId: BackingKeyIdType | None
948
952
 
949
953
 
950
954
  class GenerateDataKeyWithoutPlaintextRequest(ServiceRequest):
951
955
  KeyId: KeyIdType
952
- EncryptionContext: Optional[EncryptionContextType]
953
- KeySpec: Optional[DataKeySpec]
954
- NumberOfBytes: Optional[NumberOfBytesType]
955
- GrantTokens: Optional[GrantTokenList]
956
- DryRun: Optional[NullableBooleanType]
956
+ EncryptionContext: EncryptionContextType | None
957
+ KeySpec: DataKeySpec | None
958
+ NumberOfBytes: NumberOfBytesType | None
959
+ GrantTokens: GrantTokenList | None
960
+ DryRun: NullableBooleanType | None
957
961
 
958
962
 
959
963
  class GenerateDataKeyWithoutPlaintextResponse(TypedDict, total=False):
960
- CiphertextBlob: Optional[CiphertextType]
961
- KeyId: Optional[KeyIdType]
962
- KeyMaterialId: Optional[BackingKeyIdType]
964
+ CiphertextBlob: CiphertextType | None
965
+ KeyId: KeyIdType | None
966
+ KeyMaterialId: BackingKeyIdType | None
963
967
 
964
968
 
965
969
  class GenerateMacRequest(ServiceRequest):
966
970
  Message: PlaintextType
967
971
  KeyId: KeyIdType
968
972
  MacAlgorithm: MacAlgorithmSpec
969
- GrantTokens: Optional[GrantTokenList]
970
- DryRun: Optional[NullableBooleanType]
973
+ GrantTokens: GrantTokenList | None
974
+ DryRun: NullableBooleanType | None
971
975
 
972
976
 
973
977
  class GenerateMacResponse(TypedDict, total=False):
974
- Mac: Optional[CiphertextType]
975
- MacAlgorithm: Optional[MacAlgorithmSpec]
976
- KeyId: Optional[KeyIdType]
978
+ Mac: CiphertextType | None
979
+ MacAlgorithm: MacAlgorithmSpec | None
980
+ KeyId: KeyIdType | None
977
981
 
978
982
 
979
983
  class GenerateRandomRequest(ServiceRequest):
980
- NumberOfBytes: Optional[NumberOfBytesType]
981
- CustomKeyStoreId: Optional[CustomKeyStoreIdType]
982
- Recipient: Optional[RecipientInfo]
984
+ NumberOfBytes: NumberOfBytesType | None
985
+ CustomKeyStoreId: CustomKeyStoreIdType | None
986
+ Recipient: RecipientInfo | None
983
987
 
984
988
 
985
989
  class GenerateRandomResponse(TypedDict, total=False):
986
- Plaintext: Optional[PlaintextType]
987
- CiphertextForRecipient: Optional[CiphertextType]
990
+ Plaintext: PlaintextType | None
991
+ CiphertextForRecipient: CiphertextType | None
988
992
 
989
993
 
990
994
  class GetKeyPolicyRequest(ServiceRequest):
991
995
  KeyId: KeyIdType
992
- PolicyName: Optional[PolicyNameType]
996
+ PolicyName: PolicyNameType | None
993
997
 
994
998
 
995
999
  class GetKeyPolicyResponse(TypedDict, total=False):
996
- Policy: Optional[PolicyType]
997
- PolicyName: Optional[PolicyNameType]
1000
+ Policy: PolicyType | None
1001
+ PolicyName: PolicyNameType | None
998
1002
 
999
1003
 
1000
1004
  class GetKeyRotationStatusRequest(ServiceRequest):
@@ -1002,11 +1006,11 @@ class GetKeyRotationStatusRequest(ServiceRequest):
1002
1006
 
1003
1007
 
1004
1008
  class GetKeyRotationStatusResponse(TypedDict, total=False):
1005
- KeyRotationEnabled: Optional[BooleanType]
1006
- KeyId: Optional[KeyIdType]
1007
- RotationPeriodInDays: Optional[RotationPeriodInDaysType]
1008
- NextRotationDate: Optional[DateType]
1009
- OnDemandRotationStartDate: Optional[DateType]
1009
+ KeyRotationEnabled: BooleanType | None
1010
+ KeyId: KeyIdType | None
1011
+ RotationPeriodInDays: RotationPeriodInDaysType | None
1012
+ NextRotationDate: DateType | None
1013
+ OnDemandRotationStartDate: DateType | None
1010
1014
 
1011
1015
 
1012
1016
  class GetParametersForImportRequest(ServiceRequest):
@@ -1016,220 +1020,220 @@ class GetParametersForImportRequest(ServiceRequest):
1016
1020
 
1017
1021
 
1018
1022
  class GetParametersForImportResponse(TypedDict, total=False):
1019
- KeyId: Optional[KeyIdType]
1020
- ImportToken: Optional[CiphertextType]
1021
- PublicKey: Optional[PlaintextType]
1022
- ParametersValidTo: Optional[DateType]
1023
+ KeyId: KeyIdType | None
1024
+ ImportToken: CiphertextType | None
1025
+ PublicKey: PlaintextType | None
1026
+ ParametersValidTo: DateType | None
1023
1027
 
1024
1028
 
1025
1029
  class GetPublicKeyRequest(ServiceRequest):
1026
1030
  KeyId: KeyIdType
1027
- GrantTokens: Optional[GrantTokenList]
1031
+ GrantTokens: GrantTokenList | None
1028
1032
 
1029
1033
 
1030
1034
  class GetPublicKeyResponse(TypedDict, total=False):
1031
- KeyId: Optional[KeyIdType]
1032
- PublicKey: Optional[PublicKeyType]
1033
- CustomerMasterKeySpec: Optional[CustomerMasterKeySpec]
1034
- KeySpec: Optional[KeySpec]
1035
- KeyUsage: Optional[KeyUsageType]
1036
- EncryptionAlgorithms: Optional[EncryptionAlgorithmSpecList]
1037
- SigningAlgorithms: Optional[SigningAlgorithmSpecList]
1038
- KeyAgreementAlgorithms: Optional[KeyAgreementAlgorithmSpecList]
1035
+ KeyId: KeyIdType | None
1036
+ PublicKey: PublicKeyType | None
1037
+ CustomerMasterKeySpec: CustomerMasterKeySpec | None
1038
+ KeySpec: KeySpec | None
1039
+ KeyUsage: KeyUsageType | None
1040
+ EncryptionAlgorithms: EncryptionAlgorithmSpecList | None
1041
+ SigningAlgorithms: SigningAlgorithmSpecList | None
1042
+ KeyAgreementAlgorithms: KeyAgreementAlgorithmSpecList | None
1039
1043
 
1040
1044
 
1041
1045
  class GrantListEntry(TypedDict, total=False):
1042
- KeyId: Optional[KeyIdType]
1043
- GrantId: Optional[GrantIdType]
1044
- Name: Optional[GrantNameType]
1045
- CreationDate: Optional[DateType]
1046
- GranteePrincipal: Optional[PrincipalIdType]
1047
- RetiringPrincipal: Optional[PrincipalIdType]
1048
- IssuingAccount: Optional[PrincipalIdType]
1049
- Operations: Optional[GrantOperationList]
1050
- Constraints: Optional[GrantConstraints]
1046
+ KeyId: KeyIdType | None
1047
+ GrantId: GrantIdType | None
1048
+ Name: GrantNameType | None
1049
+ CreationDate: DateType | None
1050
+ GranteePrincipal: PrincipalIdType | None
1051
+ RetiringPrincipal: PrincipalIdType | None
1052
+ IssuingAccount: PrincipalIdType | None
1053
+ Operations: GrantOperationList | None
1054
+ Constraints: GrantConstraints | None
1051
1055
 
1052
1056
 
1053
- GrantList = List[GrantListEntry]
1057
+ GrantList = list[GrantListEntry]
1054
1058
 
1055
1059
 
1056
1060
  class ImportKeyMaterialRequest(ServiceRequest):
1057
1061
  KeyId: KeyIdType
1058
1062
  ImportToken: CiphertextType
1059
1063
  EncryptedKeyMaterial: CiphertextType
1060
- ValidTo: Optional[DateType]
1061
- ExpirationModel: Optional[ExpirationModelType]
1062
- ImportType: Optional[ImportType]
1063
- KeyMaterialDescription: Optional[KeyMaterialDescriptionType]
1064
- KeyMaterialId: Optional[BackingKeyIdType]
1064
+ ValidTo: DateType | None
1065
+ ExpirationModel: ExpirationModelType | None
1066
+ ImportType: ImportType | None
1067
+ KeyMaterialDescription: KeyMaterialDescriptionType | None
1068
+ KeyMaterialId: BackingKeyIdType | None
1065
1069
 
1066
1070
 
1067
1071
  class ImportKeyMaterialResponse(TypedDict, total=False):
1068
- KeyId: Optional[KeyIdType]
1069
- KeyMaterialId: Optional[BackingKeyIdType]
1072
+ KeyId: KeyIdType | None
1073
+ KeyMaterialId: BackingKeyIdType | None
1070
1074
 
1071
1075
 
1072
1076
  class KeyListEntry(TypedDict, total=False):
1073
- KeyId: Optional[KeyIdType]
1074
- KeyArn: Optional[ArnType]
1077
+ KeyId: KeyIdType | None
1078
+ KeyArn: ArnType | None
1075
1079
 
1076
1080
 
1077
- KeyList = List[KeyListEntry]
1081
+ KeyList = list[KeyListEntry]
1078
1082
 
1079
1083
 
1080
1084
  class ListAliasesRequest(ServiceRequest):
1081
- KeyId: Optional[KeyIdType]
1082
- Limit: Optional[LimitType]
1083
- Marker: Optional[MarkerType]
1085
+ KeyId: KeyIdType | None
1086
+ Limit: LimitType | None
1087
+ Marker: MarkerType | None
1084
1088
 
1085
1089
 
1086
1090
  class ListAliasesResponse(TypedDict, total=False):
1087
- Aliases: Optional[AliasList]
1088
- NextMarker: Optional[MarkerType]
1089
- Truncated: Optional[BooleanType]
1091
+ Aliases: AliasList | None
1092
+ NextMarker: MarkerType | None
1093
+ Truncated: BooleanType | None
1090
1094
 
1091
1095
 
1092
1096
  class ListGrantsRequest(ServiceRequest):
1093
- Limit: Optional[LimitType]
1094
- Marker: Optional[MarkerType]
1097
+ Limit: LimitType | None
1098
+ Marker: MarkerType | None
1095
1099
  KeyId: KeyIdType
1096
- GrantId: Optional[GrantIdType]
1097
- GranteePrincipal: Optional[PrincipalIdType]
1100
+ GrantId: GrantIdType | None
1101
+ GranteePrincipal: PrincipalIdType | None
1098
1102
 
1099
1103
 
1100
1104
  class ListGrantsResponse(TypedDict, total=False):
1101
- Grants: Optional[GrantList]
1102
- NextMarker: Optional[MarkerType]
1103
- Truncated: Optional[BooleanType]
1105
+ Grants: GrantList | None
1106
+ NextMarker: MarkerType | None
1107
+ Truncated: BooleanType | None
1104
1108
 
1105
1109
 
1106
1110
  class ListKeyPoliciesRequest(ServiceRequest):
1107
1111
  KeyId: KeyIdType
1108
- Limit: Optional[LimitType]
1109
- Marker: Optional[MarkerType]
1112
+ Limit: LimitType | None
1113
+ Marker: MarkerType | None
1110
1114
 
1111
1115
 
1112
- PolicyNameList = List[PolicyNameType]
1116
+ PolicyNameList = list[PolicyNameType]
1113
1117
 
1114
1118
 
1115
1119
  class ListKeyPoliciesResponse(TypedDict, total=False):
1116
- PolicyNames: Optional[PolicyNameList]
1117
- NextMarker: Optional[MarkerType]
1118
- Truncated: Optional[BooleanType]
1120
+ PolicyNames: PolicyNameList | None
1121
+ NextMarker: MarkerType | None
1122
+ Truncated: BooleanType | None
1119
1123
 
1120
1124
 
1121
1125
  class ListKeyRotationsRequest(ServiceRequest):
1122
1126
  KeyId: KeyIdType
1123
- IncludeKeyMaterial: Optional[IncludeKeyMaterial]
1124
- Limit: Optional[LimitType]
1125
- Marker: Optional[MarkerType]
1127
+ IncludeKeyMaterial: IncludeKeyMaterial | None
1128
+ Limit: LimitType | None
1129
+ Marker: MarkerType | None
1126
1130
 
1127
1131
 
1128
1132
  class RotationsListEntry(TypedDict, total=False):
1129
- KeyId: Optional[KeyIdType]
1130
- KeyMaterialId: Optional[BackingKeyIdType]
1131
- KeyMaterialDescription: Optional[KeyMaterialDescriptionType]
1132
- ImportState: Optional[ImportState]
1133
- KeyMaterialState: Optional[KeyMaterialState]
1134
- ExpirationModel: Optional[ExpirationModelType]
1135
- ValidTo: Optional[DateType]
1136
- RotationDate: Optional[DateType]
1137
- RotationType: Optional[RotationType]
1133
+ KeyId: KeyIdType | None
1134
+ KeyMaterialId: BackingKeyIdType | None
1135
+ KeyMaterialDescription: KeyMaterialDescriptionType | None
1136
+ ImportState: ImportState | None
1137
+ KeyMaterialState: KeyMaterialState | None
1138
+ ExpirationModel: ExpirationModelType | None
1139
+ ValidTo: DateType | None
1140
+ RotationDate: DateType | None
1141
+ RotationType: RotationType | None
1138
1142
 
1139
1143
 
1140
- RotationsList = List[RotationsListEntry]
1144
+ RotationsList = list[RotationsListEntry]
1141
1145
 
1142
1146
 
1143
1147
  class ListKeyRotationsResponse(TypedDict, total=False):
1144
- Rotations: Optional[RotationsList]
1145
- NextMarker: Optional[MarkerType]
1146
- Truncated: Optional[BooleanType]
1148
+ Rotations: RotationsList | None
1149
+ NextMarker: MarkerType | None
1150
+ Truncated: BooleanType | None
1147
1151
 
1148
1152
 
1149
1153
  class ListKeysRequest(ServiceRequest):
1150
- Limit: Optional[LimitType]
1151
- Marker: Optional[MarkerType]
1154
+ Limit: LimitType | None
1155
+ Marker: MarkerType | None
1152
1156
 
1153
1157
 
1154
1158
  class ListKeysResponse(TypedDict, total=False):
1155
- Keys: Optional[KeyList]
1156
- NextMarker: Optional[MarkerType]
1157
- Truncated: Optional[BooleanType]
1159
+ Keys: KeyList | None
1160
+ NextMarker: MarkerType | None
1161
+ Truncated: BooleanType | None
1158
1162
 
1159
1163
 
1160
1164
  class ListResourceTagsRequest(ServiceRequest):
1161
1165
  KeyId: KeyIdType
1162
- Limit: Optional[LimitType]
1163
- Marker: Optional[MarkerType]
1166
+ Limit: LimitType | None
1167
+ Marker: MarkerType | None
1164
1168
 
1165
1169
 
1166
1170
  class ListResourceTagsResponse(TypedDict, total=False):
1167
- Tags: Optional[TagList]
1168
- NextMarker: Optional[MarkerType]
1169
- Truncated: Optional[BooleanType]
1171
+ Tags: TagList | None
1172
+ NextMarker: MarkerType | None
1173
+ Truncated: BooleanType | None
1170
1174
 
1171
1175
 
1172
1176
  class ListRetirableGrantsRequest(ServiceRequest):
1173
- Limit: Optional[LimitType]
1174
- Marker: Optional[MarkerType]
1177
+ Limit: LimitType | None
1178
+ Marker: MarkerType | None
1175
1179
  RetiringPrincipal: PrincipalIdType
1176
1180
 
1177
1181
 
1178
1182
  class PutKeyPolicyRequest(ServiceRequest):
1179
1183
  KeyId: KeyIdType
1180
- PolicyName: Optional[PolicyNameType]
1184
+ PolicyName: PolicyNameType | None
1181
1185
  Policy: PolicyType
1182
- BypassPolicyLockoutSafetyCheck: Optional[BooleanType]
1186
+ BypassPolicyLockoutSafetyCheck: BooleanType | None
1183
1187
 
1184
1188
 
1185
1189
  class ReEncryptRequest(ServiceRequest):
1186
1190
  CiphertextBlob: CiphertextType
1187
- SourceEncryptionContext: Optional[EncryptionContextType]
1188
- SourceKeyId: Optional[KeyIdType]
1191
+ SourceEncryptionContext: EncryptionContextType | None
1192
+ SourceKeyId: KeyIdType | None
1189
1193
  DestinationKeyId: KeyIdType
1190
- DestinationEncryptionContext: Optional[EncryptionContextType]
1191
- SourceEncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
1192
- DestinationEncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
1193
- GrantTokens: Optional[GrantTokenList]
1194
- DryRun: Optional[NullableBooleanType]
1194
+ DestinationEncryptionContext: EncryptionContextType | None
1195
+ SourceEncryptionAlgorithm: EncryptionAlgorithmSpec | None
1196
+ DestinationEncryptionAlgorithm: EncryptionAlgorithmSpec | None
1197
+ GrantTokens: GrantTokenList | None
1198
+ DryRun: NullableBooleanType | None
1195
1199
 
1196
1200
 
1197
1201
  class ReEncryptResponse(TypedDict, total=False):
1198
- CiphertextBlob: Optional[CiphertextType]
1199
- SourceKeyId: Optional[KeyIdType]
1200
- KeyId: Optional[KeyIdType]
1201
- SourceEncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
1202
- DestinationEncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
1203
- SourceKeyMaterialId: Optional[BackingKeyIdType]
1204
- DestinationKeyMaterialId: Optional[BackingKeyIdType]
1202
+ CiphertextBlob: CiphertextType | None
1203
+ SourceKeyId: KeyIdType | None
1204
+ KeyId: KeyIdType | None
1205
+ SourceEncryptionAlgorithm: EncryptionAlgorithmSpec | None
1206
+ DestinationEncryptionAlgorithm: EncryptionAlgorithmSpec | None
1207
+ SourceKeyMaterialId: BackingKeyIdType | None
1208
+ DestinationKeyMaterialId: BackingKeyIdType | None
1205
1209
 
1206
1210
 
1207
1211
  class ReplicateKeyRequest(ServiceRequest):
1208
1212
  KeyId: KeyIdType
1209
1213
  ReplicaRegion: RegionType
1210
- Policy: Optional[PolicyType]
1211
- BypassPolicyLockoutSafetyCheck: Optional[BooleanType]
1212
- Description: Optional[DescriptionType]
1213
- Tags: Optional[TagList]
1214
+ Policy: PolicyType | None
1215
+ BypassPolicyLockoutSafetyCheck: BooleanType | None
1216
+ Description: DescriptionType | None
1217
+ Tags: TagList | None
1214
1218
 
1215
1219
 
1216
1220
  class ReplicateKeyResponse(TypedDict, total=False):
1217
- ReplicaKeyMetadata: Optional[KeyMetadata]
1218
- ReplicaPolicy: Optional[PolicyType]
1219
- ReplicaTags: Optional[TagList]
1221
+ ReplicaKeyMetadata: KeyMetadata | None
1222
+ ReplicaPolicy: PolicyType | None
1223
+ ReplicaTags: TagList | None
1220
1224
 
1221
1225
 
1222
1226
  class RetireGrantRequest(ServiceRequest):
1223
- GrantToken: Optional[GrantTokenType]
1224
- KeyId: Optional[KeyIdType]
1225
- GrantId: Optional[GrantIdType]
1226
- DryRun: Optional[NullableBooleanType]
1227
+ GrantToken: GrantTokenType | None
1228
+ KeyId: KeyIdType | None
1229
+ GrantId: GrantIdType | None
1230
+ DryRun: NullableBooleanType | None
1227
1231
 
1228
1232
 
1229
1233
  class RevokeGrantRequest(ServiceRequest):
1230
1234
  KeyId: KeyIdType
1231
1235
  GrantId: GrantIdType
1232
- DryRun: Optional[NullableBooleanType]
1236
+ DryRun: NullableBooleanType | None
1233
1237
 
1234
1238
 
1235
1239
  class RotateKeyOnDemandRequest(ServiceRequest):
@@ -1237,37 +1241,37 @@ class RotateKeyOnDemandRequest(ServiceRequest):
1237
1241
 
1238
1242
 
1239
1243
  class RotateKeyOnDemandResponse(TypedDict, total=False):
1240
- KeyId: Optional[KeyIdType]
1244
+ KeyId: KeyIdType | None
1241
1245
 
1242
1246
 
1243
1247
  class ScheduleKeyDeletionRequest(ServiceRequest):
1244
1248
  KeyId: KeyIdType
1245
- PendingWindowInDays: Optional[PendingWindowInDaysType]
1249
+ PendingWindowInDays: PendingWindowInDaysType | None
1246
1250
 
1247
1251
 
1248
1252
  class ScheduleKeyDeletionResponse(TypedDict, total=False):
1249
- KeyId: Optional[KeyIdType]
1250
- DeletionDate: Optional[DateType]
1251
- KeyState: Optional[KeyState]
1252
- PendingWindowInDays: Optional[PendingWindowInDaysType]
1253
+ KeyId: KeyIdType | None
1254
+ DeletionDate: DateType | None
1255
+ KeyState: KeyState | None
1256
+ PendingWindowInDays: PendingWindowInDaysType | None
1253
1257
 
1254
1258
 
1255
1259
  class SignRequest(ServiceRequest):
1256
1260
  KeyId: KeyIdType
1257
1261
  Message: PlaintextType
1258
- MessageType: Optional[MessageType]
1259
- GrantTokens: Optional[GrantTokenList]
1262
+ MessageType: MessageType | None
1263
+ GrantTokens: GrantTokenList | None
1260
1264
  SigningAlgorithm: SigningAlgorithmSpec
1261
- DryRun: Optional[NullableBooleanType]
1265
+ DryRun: NullableBooleanType | None
1262
1266
 
1263
1267
 
1264
1268
  class SignResponse(TypedDict, total=False):
1265
- KeyId: Optional[KeyIdType]
1266
- Signature: Optional[CiphertextType]
1267
- SigningAlgorithm: Optional[SigningAlgorithmSpec]
1269
+ KeyId: KeyIdType | None
1270
+ Signature: CiphertextType | None
1271
+ SigningAlgorithm: SigningAlgorithmSpec | None
1268
1272
 
1269
1273
 
1270
- TagKeyList = List[TagKeyType]
1274
+ TagKeyList = list[TagKeyType]
1271
1275
 
1272
1276
 
1273
1277
  class TagResourceRequest(ServiceRequest):
@@ -1287,15 +1291,15 @@ class UpdateAliasRequest(ServiceRequest):
1287
1291
 
1288
1292
  class UpdateCustomKeyStoreRequest(ServiceRequest):
1289
1293
  CustomKeyStoreId: CustomKeyStoreIdType
1290
- NewCustomKeyStoreName: Optional[CustomKeyStoreNameType]
1291
- KeyStorePassword: Optional[KeyStorePasswordType]
1292
- CloudHsmClusterId: Optional[CloudHsmClusterIdType]
1293
- XksProxyUriEndpoint: Optional[XksProxyUriEndpointType]
1294
- XksProxyUriPath: Optional[XksProxyUriPathType]
1295
- XksProxyVpcEndpointServiceName: Optional[XksProxyVpcEndpointServiceNameType]
1296
- XksProxyVpcEndpointServiceOwner: Optional[AccountIdType]
1297
- XksProxyAuthenticationCredential: Optional[XksProxyAuthenticationCredentialType]
1298
- XksProxyConnectivity: Optional[XksProxyConnectivityType]
1294
+ NewCustomKeyStoreName: CustomKeyStoreNameType | None
1295
+ KeyStorePassword: KeyStorePasswordType | None
1296
+ CloudHsmClusterId: CloudHsmClusterIdType | None
1297
+ XksProxyUriEndpoint: XksProxyUriEndpointType | None
1298
+ XksProxyUriPath: XksProxyUriPathType | None
1299
+ XksProxyVpcEndpointServiceName: XksProxyVpcEndpointServiceNameType | None
1300
+ XksProxyVpcEndpointServiceOwner: AccountIdType | None
1301
+ XksProxyAuthenticationCredential: XksProxyAuthenticationCredentialType | None
1302
+ XksProxyConnectivity: XksProxyConnectivityType | None
1299
1303
 
1300
1304
 
1301
1305
  class UpdateCustomKeyStoreResponse(TypedDict, total=False):
@@ -1317,35 +1321,35 @@ class VerifyMacRequest(ServiceRequest):
1317
1321
  KeyId: KeyIdType
1318
1322
  MacAlgorithm: MacAlgorithmSpec
1319
1323
  Mac: CiphertextType
1320
- GrantTokens: Optional[GrantTokenList]
1321
- DryRun: Optional[NullableBooleanType]
1324
+ GrantTokens: GrantTokenList | None
1325
+ DryRun: NullableBooleanType | None
1322
1326
 
1323
1327
 
1324
1328
  class VerifyMacResponse(TypedDict, total=False):
1325
- KeyId: Optional[KeyIdType]
1326
- MacValid: Optional[BooleanType]
1327
- MacAlgorithm: Optional[MacAlgorithmSpec]
1329
+ KeyId: KeyIdType | None
1330
+ MacValid: BooleanType | None
1331
+ MacAlgorithm: MacAlgorithmSpec | None
1328
1332
 
1329
1333
 
1330
1334
  class VerifyRequest(ServiceRequest):
1331
1335
  KeyId: KeyIdType
1332
1336
  Message: PlaintextType
1333
- MessageType: Optional[MessageType]
1337
+ MessageType: MessageType | None
1334
1338
  Signature: CiphertextType
1335
1339
  SigningAlgorithm: SigningAlgorithmSpec
1336
- GrantTokens: Optional[GrantTokenList]
1337
- DryRun: Optional[NullableBooleanType]
1340
+ GrantTokens: GrantTokenList | None
1341
+ DryRun: NullableBooleanType | None
1338
1342
 
1339
1343
 
1340
1344
  class VerifyResponse(TypedDict, total=False):
1341
- KeyId: Optional[KeyIdType]
1342
- SignatureValid: Optional[BooleanType]
1343
- SigningAlgorithm: Optional[SigningAlgorithmSpec]
1345
+ KeyId: KeyIdType | None
1346
+ SignatureValid: BooleanType | None
1347
+ SigningAlgorithm: SigningAlgorithmSpec | None
1344
1348
 
1345
1349
 
1346
1350
  class KmsApi:
1347
- service = "kms"
1348
- version = "2014-11-01"
1351
+ service: str = "kms"
1352
+ version: str = "2014-11-01"
1349
1353
 
1350
1354
  @handler("CancelKeyDeletion")
1351
1355
  def cancel_key_deletion(