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