localstack-core 4.7.1.dev139__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 (208) 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 +1041 -969
  5. localstack/aws/api/cloudwatch/__init__.py +408 -368
  6. localstack/aws/api/config/__init__.py +788 -786
  7. localstack/aws/api/core.py +4 -0
  8. localstack/aws/api/dynamodb/__init__.py +753 -759
  9. localstack/aws/api/dynamodbstreams/__init__.py +74 -74
  10. localstack/aws/api/ec2/__init__.py +9713 -8573
  11. localstack/aws/api/es/__init__.py +453 -453
  12. localstack/aws/api/events/__init__.py +552 -552
  13. localstack/aws/api/firehose/__init__.py +541 -543
  14. localstack/aws/api/iam/__init__.py +646 -572
  15. localstack/aws/api/kinesis/__init__.py +251 -144
  16. localstack/aws/api/kms/__init__.py +343 -333
  17. localstack/aws/api/lambda_/__init__.py +585 -571
  18. localstack/aws/api/logs/__init__.py +682 -666
  19. localstack/aws/api/opensearch/__init__.py +814 -785
  20. localstack/aws/api/pipes/__init__.py +336 -336
  21. localstack/aws/api/redshift/__init__.py +1192 -1164
  22. localstack/aws/api/resource_groups/__init__.py +175 -175
  23. localstack/aws/api/resourcegroupstaggingapi/__init__.py +67 -67
  24. localstack/aws/api/route53/__init__.py +256 -254
  25. localstack/aws/api/route53resolver/__init__.py +396 -396
  26. localstack/aws/api/s3/__init__.py +1358 -1345
  27. localstack/aws/api/s3control/__init__.py +616 -584
  28. localstack/aws/api/scheduler/__init__.py +118 -118
  29. localstack/aws/api/secretsmanager/__init__.py +193 -193
  30. localstack/aws/api/ses/__init__.py +227 -227
  31. localstack/aws/api/sns/__init__.py +115 -115
  32. localstack/aws/api/sqs/__init__.py +100 -100
  33. localstack/aws/api/ssm/__init__.py +1978 -1970
  34. localstack/aws/api/stepfunctions/__init__.py +323 -323
  35. localstack/aws/api/sts/__init__.py +90 -66
  36. localstack/aws/api/support/__init__.py +112 -112
  37. localstack/aws/api/swf/__init__.py +378 -386
  38. localstack/aws/api/transcribe/__init__.py +425 -425
  39. localstack/aws/client.py +7 -2
  40. localstack/aws/forwarder.py +52 -5
  41. localstack/aws/handlers/analytics.py +1 -1
  42. localstack/aws/handlers/logging.py +12 -2
  43. localstack/aws/handlers/metric_handler.py +41 -1
  44. localstack/aws/handlers/service.py +43 -10
  45. localstack/aws/protocol/parser.py +440 -21
  46. localstack/aws/protocol/serializer.py +684 -64
  47. localstack/aws/protocol/service_router.py +120 -20
  48. localstack/aws/scaffold.py +15 -17
  49. localstack/aws/skeleton.py +4 -2
  50. localstack/aws/spec-patches.json +58 -0
  51. localstack/aws/spec.py +33 -13
  52. localstack/cli/exceptions.py +1 -1
  53. localstack/cli/localstack.py +10 -5
  54. localstack/cli/lpm.py +3 -4
  55. localstack/cli/profiles.py +1 -2
  56. localstack/config.py +18 -12
  57. localstack/constants.py +4 -29
  58. localstack/dev/kubernetes/__main__.py +39 -4
  59. localstack/dev/run/paths.py +1 -1
  60. localstack/dns/plugins.py +5 -1
  61. localstack/dns/server.py +12 -3
  62. localstack/packages/api.py +9 -8
  63. localstack/packages/core.py +2 -2
  64. localstack/packages/plugins.py +0 -8
  65. localstack/runtime/init.py +1 -1
  66. localstack/services/apigateway/helpers.py +5 -9
  67. localstack/services/apigateway/legacy/provider.py +85 -12
  68. localstack/services/apigateway/next_gen/execute_api/integrations/aws.py +3 -0
  69. localstack/services/apigateway/next_gen/execute_api/integrations/http.py +3 -3
  70. localstack/services/apigateway/next_gen/execute_api/test_invoke.py +50 -6
  71. localstack/services/apigateway/next_gen/provider.py +5 -0
  72. localstack/services/apigateway/patches.py +0 -9
  73. localstack/services/cloudformation/engine/entities.py +12 -1
  74. localstack/services/cloudformation/engine/v2/change_set_model.py +0 -3
  75. localstack/services/cloudformation/engine/v2/change_set_model_describer.py +14 -0
  76. localstack/services/cloudformation/engine/v2/change_set_model_executor.py +13 -15
  77. localstack/services/cloudformation/engine/v2/change_set_model_preproc.py +118 -24
  78. localstack/services/cloudformation/engine/v2/change_set_model_transform.py +4 -1
  79. localstack/services/cloudformation/engine/v2/change_set_model_validator.py +5 -14
  80. localstack/services/cloudformation/engine/v2/change_set_model_visitor.py +1 -0
  81. localstack/services/cloudformation/engine/v2/resolving.py +6 -4
  82. localstack/services/cloudformation/engine/yaml_parser.py +9 -2
  83. localstack/services/cloudformation/provider.py +2 -2
  84. localstack/services/cloudformation/resource_provider.py +5 -1
  85. localstack/services/cloudformation/resources.py +24149 -0
  86. localstack/services/cloudformation/v2/entities.py +6 -3
  87. localstack/services/cloudformation/v2/provider.py +178 -33
  88. localstack/services/cloudformation/v2/types.py +8 -4
  89. localstack/services/cloudwatch/provider_v2.py +25 -28
  90. localstack/services/dynamodb/packages.py +2 -1
  91. localstack/services/dynamodb/provider.py +42 -0
  92. localstack/services/dynamodb/v2/provider.py +42 -0
  93. localstack/services/ecr/resource_providers/aws_ecr_repository.py +5 -2
  94. localstack/services/es/provider.py +2 -2
  95. localstack/services/events/event_rule_engine.py +31 -13
  96. localstack/services/events/models.py +4 -5
  97. localstack/services/events/target.py +17 -9
  98. localstack/services/iam/provider.py +11 -116
  99. localstack/services/iam/resources/policy_simulator.py +133 -0
  100. localstack/services/kinesis/models.py +15 -2
  101. localstack/services/kinesis/packages.py +1 -1
  102. localstack/services/kinesis/provider.py +77 -0
  103. localstack/services/kms/models.py +34 -4
  104. localstack/services/kms/provider.py +107 -21
  105. localstack/services/lambda_/api_utils.py +3 -1
  106. localstack/services/lambda_/invocation/internal_sqs_queue.py +5 -9
  107. localstack/services/lambda_/packages.py +1 -1
  108. localstack/services/lambda_/provider.py +1 -1
  109. localstack/services/lambda_/runtimes.py +8 -3
  110. localstack/services/logs/provider.py +36 -19
  111. localstack/services/moto.py +2 -1
  112. localstack/services/opensearch/cluster.py +15 -7
  113. localstack/services/opensearch/packages.py +26 -7
  114. localstack/services/opensearch/provider.py +6 -1
  115. localstack/services/opensearch/versions.py +56 -7
  116. localstack/services/s3/constants.py +5 -2
  117. localstack/services/s3/cors.py +4 -4
  118. localstack/services/s3/notifications.py +1 -1
  119. localstack/services/s3/presigned_url.py +27 -43
  120. localstack/services/s3/provider.py +68 -12
  121. localstack/services/s3/utils.py +42 -11
  122. localstack/services/ses/provider.py +16 -7
  123. localstack/services/sns/constants.py +7 -1
  124. localstack/services/sns/v2/models.py +190 -0
  125. localstack/services/sns/v2/provider.py +992 -2
  126. localstack/services/sns/v2/utils.py +138 -0
  127. localstack/services/sqs/developer_api.py +205 -0
  128. localstack/services/sqs/models.py +79 -13
  129. localstack/services/sqs/provider.py +8 -309
  130. localstack/services/sqs/query_api.py +1 -1
  131. localstack/services/sqs/utils.py +121 -2
  132. localstack/services/stepfunctions/asl/jsonata/jsonata.py +1 -1
  133. localstack/testing/aws/cloudformation_utils.py +1 -1
  134. localstack/testing/pytest/cloudformation/fixtures.py +3 -3
  135. localstack/testing/pytest/container.py +4 -5
  136. localstack/testing/pytest/fixtures.py +20 -19
  137. localstack/testing/pytest/in_memory_localstack.py +0 -4
  138. localstack/testing/pytest/marking.py +13 -4
  139. localstack/testing/pytest/stepfunctions/utils.py +4 -3
  140. localstack/testing/pytest/util.py +1 -1
  141. localstack/testing/pytest/validation_tracking.py +1 -2
  142. localstack/testing/snapshots/transformer_utility.py +7 -0
  143. localstack/testing/testselection/matching.py +0 -1
  144. localstack/utils/analytics/events.py +2 -2
  145. localstack/utils/analytics/metadata.py +1 -2
  146. localstack/utils/analytics/metrics/counter.py +6 -8
  147. localstack/utils/analytics/publisher.py +1 -2
  148. localstack/utils/analytics/service_request_aggregator.py +2 -2
  149. localstack/utils/archives.py +11 -11
  150. localstack/utils/aws/arns.py +17 -9
  151. localstack/utils/aws/aws_responses.py +7 -7
  152. localstack/utils/aws/aws_stack.py +2 -3
  153. localstack/utils/aws/client_types.py +0 -8
  154. localstack/utils/aws/message_forwarding.py +1 -2
  155. localstack/utils/aws/request_context.py +4 -5
  156. localstack/utils/batch_policy.py +3 -3
  157. localstack/utils/bootstrap.py +7 -7
  158. localstack/utils/catalog/catalog.py +139 -0
  159. localstack/utils/catalog/catalog_loader.py +119 -0
  160. localstack/utils/catalog/common.py +58 -0
  161. localstack/utils/catalog/plugins.py +28 -0
  162. localstack/utils/cloudwatch/cloudwatch_util.py +5 -5
  163. localstack/utils/collections.py +7 -8
  164. localstack/utils/config_listener.py +1 -1
  165. localstack/utils/container_networking.py +2 -3
  166. localstack/utils/container_utils/container_client.py +115 -131
  167. localstack/utils/container_utils/docker_cmd_client.py +42 -42
  168. localstack/utils/container_utils/docker_sdk_client.py +63 -62
  169. localstack/utils/crypto.py +109 -0
  170. localstack/utils/diagnose.py +2 -3
  171. localstack/utils/docker_utils.py +3 -4
  172. localstack/utils/files.py +31 -7
  173. localstack/utils/functions.py +3 -2
  174. localstack/utils/http.py +4 -5
  175. localstack/utils/json.py +19 -5
  176. localstack/utils/kinesis/kinesis_connector.py +2 -1
  177. localstack/utils/net.py +6 -6
  178. localstack/utils/no_exit_argument_parser.py +2 -2
  179. localstack/utils/numbers.py +9 -2
  180. localstack/utils/objects.py +6 -5
  181. localstack/utils/patch.py +2 -1
  182. localstack/utils/run.py +10 -9
  183. localstack/utils/scheduler.py +11 -11
  184. localstack/utils/server/tcp_proxy.py +2 -2
  185. localstack/utils/serving.py +2 -3
  186. localstack/utils/strings.py +10 -11
  187. localstack/utils/sync.py +126 -1
  188. localstack/utils/tagging.py +1 -4
  189. localstack/utils/testutil.py +5 -4
  190. localstack/utils/threads.py +2 -2
  191. localstack/utils/time.py +11 -3
  192. localstack/utils/urls.py +1 -3
  193. localstack/version.py +2 -2
  194. {localstack_core-4.7.1.dev139.dist-info → localstack_core-4.10.1.dev42.dist-info}/METADATA +19 -13
  195. {localstack_core-4.7.1.dev139.dist-info → localstack_core-4.10.1.dev42.dist-info}/RECORD +203 -199
  196. {localstack_core-4.7.1.dev139.dist-info → localstack_core-4.10.1.dev42.dist-info}/entry_points.txt +4 -2
  197. localstack_core-4.10.1.dev42.dist-info/plux.json +1 -0
  198. localstack/packages/terraform.py +0 -46
  199. localstack/services/cloudformation/deploy.html +0 -144
  200. localstack/services/cloudformation/deploy_ui.py +0 -47
  201. localstack/services/cloudformation/plugins.py +0 -12
  202. localstack_core-4.7.1.dev139.dist-info/plux.json +0 -1
  203. {localstack_core-4.7.1.dev139.data → localstack_core-4.10.1.dev42.data}/scripts/localstack +0 -0
  204. {localstack_core-4.7.1.dev139.data → localstack_core-4.10.1.dev42.data}/scripts/localstack-supervisor +0 -0
  205. {localstack_core-4.7.1.dev139.data → localstack_core-4.10.1.dev42.data}/scripts/localstack.bat +0 -0
  206. {localstack_core-4.7.1.dev139.dist-info → localstack_core-4.10.1.dev42.dist-info}/WHEEL +0 -0
  207. {localstack_core-4.7.1.dev139.dist-info → localstack_core-4.10.1.dev42.dist-info}/licenses/LICENSE.txt +0 -0
  208. {localstack_core-4.7.1.dev139.dist-info → localstack_core-4.10.1.dev42.dist-info}/top_level.txt +0 -0
@@ -1,10 +1,11 @@
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
 
7
7
  AWSAccountIdType = str
8
+ AccountIdType = str
8
9
  AliasNameType = str
9
10
  ArnType = str
10
11
  BackingKeyIdResponseType = str
@@ -114,6 +115,7 @@ class DataKeyPairSpec(StrEnum):
114
115
  ECC_NIST_P521 = "ECC_NIST_P521"
115
116
  ECC_SECG_P256K1 = "ECC_SECG_P256K1"
116
117
  SM2 = "SM2"
118
+ ECC_NIST_EDWARDS25519 = "ECC_NIST_EDWARDS25519"
117
119
 
118
120
 
119
121
  class DataKeySpec(StrEnum):
@@ -204,6 +206,7 @@ class KeySpec(StrEnum):
204
206
  ML_DSA_44 = "ML_DSA_44"
205
207
  ML_DSA_65 = "ML_DSA_65"
206
208
  ML_DSA_87 = "ML_DSA_87"
209
+ ECC_NIST_EDWARDS25519 = "ECC_NIST_EDWARDS25519"
207
210
 
208
211
 
209
212
  class KeyState(StrEnum):
@@ -266,6 +269,8 @@ class SigningAlgorithmSpec(StrEnum):
266
269
  ECDSA_SHA_512 = "ECDSA_SHA_512"
267
270
  SM2DSA = "SM2DSA"
268
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"
269
274
 
270
275
 
271
276
  class WrappingKeySpec(StrEnum):
@@ -572,14 +577,14 @@ DateType = datetime
572
577
 
573
578
 
574
579
  class AliasListEntry(TypedDict, total=False):
575
- AliasName: Optional[AliasNameType]
576
- AliasArn: Optional[ArnType]
577
- TargetKeyId: Optional[KeyIdType]
578
- CreationDate: Optional[DateType]
579
- LastUpdatedDate: Optional[DateType]
580
+ AliasName: AliasNameType | None
581
+ AliasArn: ArnType | None
582
+ TargetKeyId: KeyIdType | None
583
+ CreationDate: DateType | None
584
+ LastUpdatedDate: DateType | None
580
585
 
581
586
 
582
- AliasList = List[AliasListEntry]
587
+ AliasList = list[AliasListEntry]
583
588
  AttestationDocumentType = bytes
584
589
 
585
590
 
@@ -588,7 +593,7 @@ class CancelKeyDeletionRequest(ServiceRequest):
588
593
 
589
594
 
590
595
  class CancelKeyDeletionResponse(TypedDict, total=False):
591
- KeyId: Optional[KeyIdType]
596
+ KeyId: KeyIdType | None
592
597
 
593
598
 
594
599
  CiphertextType = bytes
@@ -614,47 +619,48 @@ class XksProxyAuthenticationCredentialType(TypedDict, total=False):
614
619
 
615
620
  class CreateCustomKeyStoreRequest(ServiceRequest):
616
621
  CustomKeyStoreName: CustomKeyStoreNameType
617
- CloudHsmClusterId: Optional[CloudHsmClusterIdType]
618
- TrustAnchorCertificate: Optional[TrustAnchorCertificateType]
619
- KeyStorePassword: Optional[KeyStorePasswordType]
620
- CustomKeyStoreType: Optional[CustomKeyStoreType]
621
- XksProxyUriEndpoint: Optional[XksProxyUriEndpointType]
622
- XksProxyUriPath: Optional[XksProxyUriPathType]
623
- XksProxyVpcEndpointServiceName: Optional[XksProxyVpcEndpointServiceNameType]
624
- XksProxyAuthenticationCredential: Optional[XksProxyAuthenticationCredentialType]
625
- 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
626
632
 
627
633
 
628
634
  class CreateCustomKeyStoreResponse(TypedDict, total=False):
629
- CustomKeyStoreId: Optional[CustomKeyStoreIdType]
635
+ CustomKeyStoreId: CustomKeyStoreIdType | None
630
636
 
631
637
 
632
- GrantTokenList = List[GrantTokenType]
633
- EncryptionContextType = Dict[EncryptionContextKey, EncryptionContextValue]
638
+ GrantTokenList = list[GrantTokenType]
639
+ EncryptionContextType = dict[EncryptionContextKey, EncryptionContextValue]
634
640
 
635
641
 
636
642
  class GrantConstraints(TypedDict, total=False):
637
- EncryptionContextSubset: Optional[EncryptionContextType]
638
- EncryptionContextEquals: Optional[EncryptionContextType]
643
+ EncryptionContextSubset: EncryptionContextType | None
644
+ EncryptionContextEquals: EncryptionContextType | None
639
645
 
640
646
 
641
- GrantOperationList = List[GrantOperation]
647
+ GrantOperationList = list[GrantOperation]
642
648
 
643
649
 
644
650
  class CreateGrantRequest(ServiceRequest):
645
651
  KeyId: KeyIdType
646
652
  GranteePrincipal: PrincipalIdType
647
- RetiringPrincipal: Optional[PrincipalIdType]
653
+ RetiringPrincipal: PrincipalIdType | None
648
654
  Operations: GrantOperationList
649
- Constraints: Optional[GrantConstraints]
650
- GrantTokens: Optional[GrantTokenList]
651
- Name: Optional[GrantNameType]
652
- DryRun: Optional[NullableBooleanType]
655
+ Constraints: GrantConstraints | None
656
+ GrantTokens: GrantTokenList | None
657
+ Name: GrantNameType | None
658
+ DryRun: NullableBooleanType | None
653
659
 
654
660
 
655
661
  class CreateGrantResponse(TypedDict, total=False):
656
- GrantToken: Optional[GrantTokenType]
657
- GrantId: Optional[GrantIdType]
662
+ GrantToken: GrantTokenType | None
663
+ GrantId: GrantIdType | None
658
664
 
659
665
 
660
666
  class Tag(TypedDict, total=False):
@@ -662,129 +668,130 @@ class Tag(TypedDict, total=False):
662
668
  TagValue: TagValueType
663
669
 
664
670
 
665
- TagList = List[Tag]
671
+ TagList = list[Tag]
666
672
 
667
673
 
668
674
  class CreateKeyRequest(ServiceRequest):
669
- Policy: Optional[PolicyType]
670
- Description: Optional[DescriptionType]
671
- KeyUsage: Optional[KeyUsageType]
672
- CustomerMasterKeySpec: Optional[CustomerMasterKeySpec]
673
- KeySpec: Optional[KeySpec]
674
- Origin: Optional[OriginType]
675
- CustomKeyStoreId: Optional[CustomKeyStoreIdType]
676
- BypassPolicyLockoutSafetyCheck: Optional[BooleanType]
677
- Tags: Optional[TagList]
678
- MultiRegion: Optional[NullableBooleanType]
679
- 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
680
686
 
681
687
 
682
688
  class XksKeyConfigurationType(TypedDict, total=False):
683
- Id: Optional[XksKeyIdType]
689
+ Id: XksKeyIdType | None
684
690
 
685
691
 
686
- MacAlgorithmSpecList = List[MacAlgorithmSpec]
692
+ MacAlgorithmSpecList = list[MacAlgorithmSpec]
687
693
 
688
694
 
689
695
  class MultiRegionKey(TypedDict, total=False):
690
- Arn: Optional[ArnType]
691
- Region: Optional[RegionType]
696
+ Arn: ArnType | None
697
+ Region: RegionType | None
692
698
 
693
699
 
694
- MultiRegionKeyList = List[MultiRegionKey]
700
+ MultiRegionKeyList = list[MultiRegionKey]
695
701
 
696
702
 
697
703
  class MultiRegionConfiguration(TypedDict, total=False):
698
- MultiRegionKeyType: Optional[MultiRegionKeyType]
699
- PrimaryKey: Optional[MultiRegionKey]
700
- ReplicaKeys: Optional[MultiRegionKeyList]
704
+ MultiRegionKeyType: MultiRegionKeyType | None
705
+ PrimaryKey: MultiRegionKey | None
706
+ ReplicaKeys: MultiRegionKeyList | None
701
707
 
702
708
 
703
- KeyAgreementAlgorithmSpecList = List[KeyAgreementAlgorithmSpec]
704
- SigningAlgorithmSpecList = List[SigningAlgorithmSpec]
705
- EncryptionAlgorithmSpecList = List[EncryptionAlgorithmSpec]
709
+ KeyAgreementAlgorithmSpecList = list[KeyAgreementAlgorithmSpec]
710
+ SigningAlgorithmSpecList = list[SigningAlgorithmSpec]
711
+ EncryptionAlgorithmSpecList = list[EncryptionAlgorithmSpec]
706
712
 
707
713
 
708
714
  class KeyMetadata(TypedDict, total=False):
709
- AWSAccountId: Optional[AWSAccountIdType]
715
+ AWSAccountId: AWSAccountIdType | None
710
716
  KeyId: KeyIdType
711
- Arn: Optional[ArnType]
712
- CreationDate: Optional[DateType]
713
- Enabled: Optional[BooleanType]
714
- Description: Optional[DescriptionType]
715
- KeyUsage: Optional[KeyUsageType]
716
- KeyState: Optional[KeyState]
717
- DeletionDate: Optional[DateType]
718
- ValidTo: Optional[DateType]
719
- Origin: Optional[OriginType]
720
- CustomKeyStoreId: Optional[CustomKeyStoreIdType]
721
- CloudHsmClusterId: Optional[CloudHsmClusterIdType]
722
- ExpirationModel: Optional[ExpirationModelType]
723
- KeyManager: Optional[KeyManagerType]
724
- CustomerMasterKeySpec: Optional[CustomerMasterKeySpec]
725
- KeySpec: Optional[KeySpec]
726
- EncryptionAlgorithms: Optional[EncryptionAlgorithmSpecList]
727
- SigningAlgorithms: Optional[SigningAlgorithmSpecList]
728
- KeyAgreementAlgorithms: Optional[KeyAgreementAlgorithmSpecList]
729
- MultiRegion: Optional[NullableBooleanType]
730
- MultiRegionConfiguration: Optional[MultiRegionConfiguration]
731
- PendingDeletionWindowInDays: Optional[PendingWindowInDaysType]
732
- MacAlgorithms: Optional[MacAlgorithmSpecList]
733
- XksKeyConfiguration: Optional[XksKeyConfigurationType]
734
- 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
735
741
 
736
742
 
737
743
  class CreateKeyResponse(TypedDict, total=False):
738
- KeyMetadata: Optional[KeyMetadata]
744
+ KeyMetadata: KeyMetadata | None
739
745
 
740
746
 
741
747
  class XksProxyConfigurationType(TypedDict, total=False):
742
- Connectivity: Optional[XksProxyConnectivityType]
743
- AccessKeyId: Optional[XksProxyAuthenticationAccessKeyIdType]
744
- UriEndpoint: Optional[XksProxyUriEndpointType]
745
- UriPath: Optional[XksProxyUriPathType]
746
- VpcEndpointServiceName: Optional[XksProxyVpcEndpointServiceNameType]
748
+ Connectivity: XksProxyConnectivityType | None
749
+ AccessKeyId: XksProxyAuthenticationAccessKeyIdType | None
750
+ UriEndpoint: XksProxyUriEndpointType | None
751
+ UriPath: XksProxyUriPathType | None
752
+ VpcEndpointServiceName: XksProxyVpcEndpointServiceNameType | None
753
+ VpcEndpointServiceOwner: AccountIdType | None
747
754
 
748
755
 
749
756
  class CustomKeyStoresListEntry(TypedDict, total=False):
750
- CustomKeyStoreId: Optional[CustomKeyStoreIdType]
751
- CustomKeyStoreName: Optional[CustomKeyStoreNameType]
752
- CloudHsmClusterId: Optional[CloudHsmClusterIdType]
753
- TrustAnchorCertificate: Optional[TrustAnchorCertificateType]
754
- ConnectionState: Optional[ConnectionStateType]
755
- ConnectionErrorCode: Optional[ConnectionErrorCodeType]
756
- CreationDate: Optional[DateType]
757
- CustomKeyStoreType: Optional[CustomKeyStoreType]
758
- 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
759
766
 
760
767
 
761
- CustomKeyStoresList = List[CustomKeyStoresListEntry]
768
+ CustomKeyStoresList = list[CustomKeyStoresListEntry]
762
769
 
763
770
 
764
771
  class RecipientInfo(TypedDict, total=False):
765
- KeyEncryptionAlgorithm: Optional[KeyEncryptionMechanism]
766
- AttestationDocument: Optional[AttestationDocumentType]
772
+ KeyEncryptionAlgorithm: KeyEncryptionMechanism | None
773
+ AttestationDocument: AttestationDocumentType | None
767
774
 
768
775
 
769
776
  class DecryptRequest(ServiceRequest):
770
777
  CiphertextBlob: CiphertextType
771
- EncryptionContext: Optional[EncryptionContextType]
772
- GrantTokens: Optional[GrantTokenList]
773
- KeyId: Optional[KeyIdType]
774
- EncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
775
- Recipient: Optional[RecipientInfo]
776
- 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
777
784
 
778
785
 
779
786
  PlaintextType = bytes
780
787
 
781
788
 
782
789
  class DecryptResponse(TypedDict, total=False):
783
- KeyId: Optional[KeyIdType]
784
- Plaintext: Optional[PlaintextType]
785
- EncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
786
- CiphertextForRecipient: Optional[CiphertextType]
787
- KeyMaterialId: Optional[BackingKeyIdType]
790
+ KeyId: KeyIdType | None
791
+ Plaintext: PlaintextType | None
792
+ EncryptionAlgorithm: EncryptionAlgorithmSpec | None
793
+ CiphertextForRecipient: CiphertextType | None
794
+ KeyMaterialId: BackingKeyIdType | None
788
795
 
789
796
 
790
797
  class DeleteAliasRequest(ServiceRequest):
@@ -801,12 +808,12 @@ class DeleteCustomKeyStoreResponse(TypedDict, total=False):
801
808
 
802
809
  class DeleteImportedKeyMaterialRequest(ServiceRequest):
803
810
  KeyId: KeyIdType
804
- KeyMaterialId: Optional[BackingKeyIdType]
811
+ KeyMaterialId: BackingKeyIdType | None
805
812
 
806
813
 
807
814
  class DeleteImportedKeyMaterialResponse(TypedDict, total=False):
808
- KeyId: Optional[KeyIdType]
809
- KeyMaterialId: Optional[BackingKeyIdResponseType]
815
+ KeyId: KeyIdType | None
816
+ KeyMaterialId: BackingKeyIdResponseType | None
810
817
 
811
818
 
812
819
  PublicKeyType = bytes
@@ -816,39 +823,39 @@ class DeriveSharedSecretRequest(ServiceRequest):
816
823
  KeyId: KeyIdType
817
824
  KeyAgreementAlgorithm: KeyAgreementAlgorithmSpec
818
825
  PublicKey: PublicKeyType
819
- GrantTokens: Optional[GrantTokenList]
820
- DryRun: Optional[NullableBooleanType]
821
- Recipient: Optional[RecipientInfo]
826
+ GrantTokens: GrantTokenList | None
827
+ DryRun: NullableBooleanType | None
828
+ Recipient: RecipientInfo | None
822
829
 
823
830
 
824
831
  class DeriveSharedSecretResponse(TypedDict, total=False):
825
- KeyId: Optional[KeyIdType]
826
- SharedSecret: Optional[PlaintextType]
827
- CiphertextForRecipient: Optional[CiphertextType]
828
- KeyAgreementAlgorithm: Optional[KeyAgreementAlgorithmSpec]
829
- KeyOrigin: Optional[OriginType]
832
+ KeyId: KeyIdType | None
833
+ SharedSecret: PlaintextType | None
834
+ CiphertextForRecipient: CiphertextType | None
835
+ KeyAgreementAlgorithm: KeyAgreementAlgorithmSpec | None
836
+ KeyOrigin: OriginType | None
830
837
 
831
838
 
832
839
  class DescribeCustomKeyStoresRequest(ServiceRequest):
833
- CustomKeyStoreId: Optional[CustomKeyStoreIdType]
834
- CustomKeyStoreName: Optional[CustomKeyStoreNameType]
835
- Limit: Optional[LimitType]
836
- Marker: Optional[MarkerType]
840
+ CustomKeyStoreId: CustomKeyStoreIdType | None
841
+ CustomKeyStoreName: CustomKeyStoreNameType | None
842
+ Limit: LimitType | None
843
+ Marker: MarkerType | None
837
844
 
838
845
 
839
846
  class DescribeCustomKeyStoresResponse(TypedDict, total=False):
840
- CustomKeyStores: Optional[CustomKeyStoresList]
841
- NextMarker: Optional[MarkerType]
842
- Truncated: Optional[BooleanType]
847
+ CustomKeyStores: CustomKeyStoresList | None
848
+ NextMarker: MarkerType | None
849
+ Truncated: BooleanType | None
843
850
 
844
851
 
845
852
  class DescribeKeyRequest(ServiceRequest):
846
853
  KeyId: KeyIdType
847
- GrantTokens: Optional[GrantTokenList]
854
+ GrantTokens: GrantTokenList | None
848
855
 
849
856
 
850
857
  class DescribeKeyResponse(TypedDict, total=False):
851
- KeyMetadata: Optional[KeyMetadata]
858
+ KeyMetadata: KeyMetadata | None
852
859
 
853
860
 
854
861
  class DisableKeyRequest(ServiceRequest):
@@ -873,125 +880,125 @@ class EnableKeyRequest(ServiceRequest):
873
880
 
874
881
  class EnableKeyRotationRequest(ServiceRequest):
875
882
  KeyId: KeyIdType
876
- RotationPeriodInDays: Optional[RotationPeriodInDaysType]
883
+ RotationPeriodInDays: RotationPeriodInDaysType | None
877
884
 
878
885
 
879
886
  class EncryptRequest(ServiceRequest):
880
887
  KeyId: KeyIdType
881
888
  Plaintext: PlaintextType
882
- EncryptionContext: Optional[EncryptionContextType]
883
- GrantTokens: Optional[GrantTokenList]
884
- EncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
885
- DryRun: Optional[NullableBooleanType]
889
+ EncryptionContext: EncryptionContextType | None
890
+ GrantTokens: GrantTokenList | None
891
+ EncryptionAlgorithm: EncryptionAlgorithmSpec | None
892
+ DryRun: NullableBooleanType | None
886
893
 
887
894
 
888
895
  class EncryptResponse(TypedDict, total=False):
889
- CiphertextBlob: Optional[CiphertextType]
890
- KeyId: Optional[KeyIdType]
891
- EncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
896
+ CiphertextBlob: CiphertextType | None
897
+ KeyId: KeyIdType | None
898
+ EncryptionAlgorithm: EncryptionAlgorithmSpec | None
892
899
 
893
900
 
894
901
  class GenerateDataKeyPairRequest(ServiceRequest):
895
- EncryptionContext: Optional[EncryptionContextType]
902
+ EncryptionContext: EncryptionContextType | None
896
903
  KeyId: KeyIdType
897
904
  KeyPairSpec: DataKeyPairSpec
898
- GrantTokens: Optional[GrantTokenList]
899
- Recipient: Optional[RecipientInfo]
900
- DryRun: Optional[NullableBooleanType]
905
+ GrantTokens: GrantTokenList | None
906
+ Recipient: RecipientInfo | None
907
+ DryRun: NullableBooleanType | None
901
908
 
902
909
 
903
910
  class GenerateDataKeyPairResponse(TypedDict, total=False):
904
- PrivateKeyCiphertextBlob: Optional[CiphertextType]
905
- PrivateKeyPlaintext: Optional[PlaintextType]
906
- PublicKey: Optional[PublicKeyType]
907
- KeyId: Optional[KeyIdType]
908
- KeyPairSpec: Optional[DataKeyPairSpec]
909
- CiphertextForRecipient: Optional[CiphertextType]
910
- 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
911
918
 
912
919
 
913
920
  class GenerateDataKeyPairWithoutPlaintextRequest(ServiceRequest):
914
- EncryptionContext: Optional[EncryptionContextType]
921
+ EncryptionContext: EncryptionContextType | None
915
922
  KeyId: KeyIdType
916
923
  KeyPairSpec: DataKeyPairSpec
917
- GrantTokens: Optional[GrantTokenList]
918
- DryRun: Optional[NullableBooleanType]
924
+ GrantTokens: GrantTokenList | None
925
+ DryRun: NullableBooleanType | None
919
926
 
920
927
 
921
928
  class GenerateDataKeyPairWithoutPlaintextResponse(TypedDict, total=False):
922
- PrivateKeyCiphertextBlob: Optional[CiphertextType]
923
- PublicKey: Optional[PublicKeyType]
924
- KeyId: Optional[KeyIdType]
925
- KeyPairSpec: Optional[DataKeyPairSpec]
926
- KeyMaterialId: Optional[BackingKeyIdType]
929
+ PrivateKeyCiphertextBlob: CiphertextType | None
930
+ PublicKey: PublicKeyType | None
931
+ KeyId: KeyIdType | None
932
+ KeyPairSpec: DataKeyPairSpec | None
933
+ KeyMaterialId: BackingKeyIdType | None
927
934
 
928
935
 
929
936
  class GenerateDataKeyRequest(ServiceRequest):
930
937
  KeyId: KeyIdType
931
- EncryptionContext: Optional[EncryptionContextType]
932
- NumberOfBytes: Optional[NumberOfBytesType]
933
- KeySpec: Optional[DataKeySpec]
934
- GrantTokens: Optional[GrantTokenList]
935
- Recipient: Optional[RecipientInfo]
936
- 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
937
944
 
938
945
 
939
946
  class GenerateDataKeyResponse(TypedDict, total=False):
940
- CiphertextBlob: Optional[CiphertextType]
941
- Plaintext: Optional[PlaintextType]
942
- KeyId: Optional[KeyIdType]
943
- CiphertextForRecipient: Optional[CiphertextType]
944
- KeyMaterialId: Optional[BackingKeyIdType]
947
+ CiphertextBlob: CiphertextType | None
948
+ Plaintext: PlaintextType | None
949
+ KeyId: KeyIdType | None
950
+ CiphertextForRecipient: CiphertextType | None
951
+ KeyMaterialId: BackingKeyIdType | None
945
952
 
946
953
 
947
954
  class GenerateDataKeyWithoutPlaintextRequest(ServiceRequest):
948
955
  KeyId: KeyIdType
949
- EncryptionContext: Optional[EncryptionContextType]
950
- KeySpec: Optional[DataKeySpec]
951
- NumberOfBytes: Optional[NumberOfBytesType]
952
- GrantTokens: Optional[GrantTokenList]
953
- DryRun: Optional[NullableBooleanType]
956
+ EncryptionContext: EncryptionContextType | None
957
+ KeySpec: DataKeySpec | None
958
+ NumberOfBytes: NumberOfBytesType | None
959
+ GrantTokens: GrantTokenList | None
960
+ DryRun: NullableBooleanType | None
954
961
 
955
962
 
956
963
  class GenerateDataKeyWithoutPlaintextResponse(TypedDict, total=False):
957
- CiphertextBlob: Optional[CiphertextType]
958
- KeyId: Optional[KeyIdType]
959
- KeyMaterialId: Optional[BackingKeyIdType]
964
+ CiphertextBlob: CiphertextType | None
965
+ KeyId: KeyIdType | None
966
+ KeyMaterialId: BackingKeyIdType | None
960
967
 
961
968
 
962
969
  class GenerateMacRequest(ServiceRequest):
963
970
  Message: PlaintextType
964
971
  KeyId: KeyIdType
965
972
  MacAlgorithm: MacAlgorithmSpec
966
- GrantTokens: Optional[GrantTokenList]
967
- DryRun: Optional[NullableBooleanType]
973
+ GrantTokens: GrantTokenList | None
974
+ DryRun: NullableBooleanType | None
968
975
 
969
976
 
970
977
  class GenerateMacResponse(TypedDict, total=False):
971
- Mac: Optional[CiphertextType]
972
- MacAlgorithm: Optional[MacAlgorithmSpec]
973
- KeyId: Optional[KeyIdType]
978
+ Mac: CiphertextType | None
979
+ MacAlgorithm: MacAlgorithmSpec | None
980
+ KeyId: KeyIdType | None
974
981
 
975
982
 
976
983
  class GenerateRandomRequest(ServiceRequest):
977
- NumberOfBytes: Optional[NumberOfBytesType]
978
- CustomKeyStoreId: Optional[CustomKeyStoreIdType]
979
- Recipient: Optional[RecipientInfo]
984
+ NumberOfBytes: NumberOfBytesType | None
985
+ CustomKeyStoreId: CustomKeyStoreIdType | None
986
+ Recipient: RecipientInfo | None
980
987
 
981
988
 
982
989
  class GenerateRandomResponse(TypedDict, total=False):
983
- Plaintext: Optional[PlaintextType]
984
- CiphertextForRecipient: Optional[CiphertextType]
990
+ Plaintext: PlaintextType | None
991
+ CiphertextForRecipient: CiphertextType | None
985
992
 
986
993
 
987
994
  class GetKeyPolicyRequest(ServiceRequest):
988
995
  KeyId: KeyIdType
989
- PolicyName: Optional[PolicyNameType]
996
+ PolicyName: PolicyNameType | None
990
997
 
991
998
 
992
999
  class GetKeyPolicyResponse(TypedDict, total=False):
993
- Policy: Optional[PolicyType]
994
- PolicyName: Optional[PolicyNameType]
1000
+ Policy: PolicyType | None
1001
+ PolicyName: PolicyNameType | None
995
1002
 
996
1003
 
997
1004
  class GetKeyRotationStatusRequest(ServiceRequest):
@@ -999,11 +1006,11 @@ class GetKeyRotationStatusRequest(ServiceRequest):
999
1006
 
1000
1007
 
1001
1008
  class GetKeyRotationStatusResponse(TypedDict, total=False):
1002
- KeyRotationEnabled: Optional[BooleanType]
1003
- KeyId: Optional[KeyIdType]
1004
- RotationPeriodInDays: Optional[RotationPeriodInDaysType]
1005
- NextRotationDate: Optional[DateType]
1006
- OnDemandRotationStartDate: Optional[DateType]
1009
+ KeyRotationEnabled: BooleanType | None
1010
+ KeyId: KeyIdType | None
1011
+ RotationPeriodInDays: RotationPeriodInDaysType | None
1012
+ NextRotationDate: DateType | None
1013
+ OnDemandRotationStartDate: DateType | None
1007
1014
 
1008
1015
 
1009
1016
  class GetParametersForImportRequest(ServiceRequest):
@@ -1013,220 +1020,220 @@ class GetParametersForImportRequest(ServiceRequest):
1013
1020
 
1014
1021
 
1015
1022
  class GetParametersForImportResponse(TypedDict, total=False):
1016
- KeyId: Optional[KeyIdType]
1017
- ImportToken: Optional[CiphertextType]
1018
- PublicKey: Optional[PlaintextType]
1019
- ParametersValidTo: Optional[DateType]
1023
+ KeyId: KeyIdType | None
1024
+ ImportToken: CiphertextType | None
1025
+ PublicKey: PlaintextType | None
1026
+ ParametersValidTo: DateType | None
1020
1027
 
1021
1028
 
1022
1029
  class GetPublicKeyRequest(ServiceRequest):
1023
1030
  KeyId: KeyIdType
1024
- GrantTokens: Optional[GrantTokenList]
1031
+ GrantTokens: GrantTokenList | None
1025
1032
 
1026
1033
 
1027
1034
  class GetPublicKeyResponse(TypedDict, total=False):
1028
- KeyId: Optional[KeyIdType]
1029
- PublicKey: Optional[PublicKeyType]
1030
- CustomerMasterKeySpec: Optional[CustomerMasterKeySpec]
1031
- KeySpec: Optional[KeySpec]
1032
- KeyUsage: Optional[KeyUsageType]
1033
- EncryptionAlgorithms: Optional[EncryptionAlgorithmSpecList]
1034
- SigningAlgorithms: Optional[SigningAlgorithmSpecList]
1035
- 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
1036
1043
 
1037
1044
 
1038
1045
  class GrantListEntry(TypedDict, total=False):
1039
- KeyId: Optional[KeyIdType]
1040
- GrantId: Optional[GrantIdType]
1041
- Name: Optional[GrantNameType]
1042
- CreationDate: Optional[DateType]
1043
- GranteePrincipal: Optional[PrincipalIdType]
1044
- RetiringPrincipal: Optional[PrincipalIdType]
1045
- IssuingAccount: Optional[PrincipalIdType]
1046
- Operations: Optional[GrantOperationList]
1047
- 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
1048
1055
 
1049
1056
 
1050
- GrantList = List[GrantListEntry]
1057
+ GrantList = list[GrantListEntry]
1051
1058
 
1052
1059
 
1053
1060
  class ImportKeyMaterialRequest(ServiceRequest):
1054
1061
  KeyId: KeyIdType
1055
1062
  ImportToken: CiphertextType
1056
1063
  EncryptedKeyMaterial: CiphertextType
1057
- ValidTo: Optional[DateType]
1058
- ExpirationModel: Optional[ExpirationModelType]
1059
- ImportType: Optional[ImportType]
1060
- KeyMaterialDescription: Optional[KeyMaterialDescriptionType]
1061
- KeyMaterialId: Optional[BackingKeyIdType]
1064
+ ValidTo: DateType | None
1065
+ ExpirationModel: ExpirationModelType | None
1066
+ ImportType: ImportType | None
1067
+ KeyMaterialDescription: KeyMaterialDescriptionType | None
1068
+ KeyMaterialId: BackingKeyIdType | None
1062
1069
 
1063
1070
 
1064
1071
  class ImportKeyMaterialResponse(TypedDict, total=False):
1065
- KeyId: Optional[KeyIdType]
1066
- KeyMaterialId: Optional[BackingKeyIdType]
1072
+ KeyId: KeyIdType | None
1073
+ KeyMaterialId: BackingKeyIdType | None
1067
1074
 
1068
1075
 
1069
1076
  class KeyListEntry(TypedDict, total=False):
1070
- KeyId: Optional[KeyIdType]
1071
- KeyArn: Optional[ArnType]
1077
+ KeyId: KeyIdType | None
1078
+ KeyArn: ArnType | None
1072
1079
 
1073
1080
 
1074
- KeyList = List[KeyListEntry]
1081
+ KeyList = list[KeyListEntry]
1075
1082
 
1076
1083
 
1077
1084
  class ListAliasesRequest(ServiceRequest):
1078
- KeyId: Optional[KeyIdType]
1079
- Limit: Optional[LimitType]
1080
- Marker: Optional[MarkerType]
1085
+ KeyId: KeyIdType | None
1086
+ Limit: LimitType | None
1087
+ Marker: MarkerType | None
1081
1088
 
1082
1089
 
1083
1090
  class ListAliasesResponse(TypedDict, total=False):
1084
- Aliases: Optional[AliasList]
1085
- NextMarker: Optional[MarkerType]
1086
- Truncated: Optional[BooleanType]
1091
+ Aliases: AliasList | None
1092
+ NextMarker: MarkerType | None
1093
+ Truncated: BooleanType | None
1087
1094
 
1088
1095
 
1089
1096
  class ListGrantsRequest(ServiceRequest):
1090
- Limit: Optional[LimitType]
1091
- Marker: Optional[MarkerType]
1097
+ Limit: LimitType | None
1098
+ Marker: MarkerType | None
1092
1099
  KeyId: KeyIdType
1093
- GrantId: Optional[GrantIdType]
1094
- GranteePrincipal: Optional[PrincipalIdType]
1100
+ GrantId: GrantIdType | None
1101
+ GranteePrincipal: PrincipalIdType | None
1095
1102
 
1096
1103
 
1097
1104
  class ListGrantsResponse(TypedDict, total=False):
1098
- Grants: Optional[GrantList]
1099
- NextMarker: Optional[MarkerType]
1100
- Truncated: Optional[BooleanType]
1105
+ Grants: GrantList | None
1106
+ NextMarker: MarkerType | None
1107
+ Truncated: BooleanType | None
1101
1108
 
1102
1109
 
1103
1110
  class ListKeyPoliciesRequest(ServiceRequest):
1104
1111
  KeyId: KeyIdType
1105
- Limit: Optional[LimitType]
1106
- Marker: Optional[MarkerType]
1112
+ Limit: LimitType | None
1113
+ Marker: MarkerType | None
1107
1114
 
1108
1115
 
1109
- PolicyNameList = List[PolicyNameType]
1116
+ PolicyNameList = list[PolicyNameType]
1110
1117
 
1111
1118
 
1112
1119
  class ListKeyPoliciesResponse(TypedDict, total=False):
1113
- PolicyNames: Optional[PolicyNameList]
1114
- NextMarker: Optional[MarkerType]
1115
- Truncated: Optional[BooleanType]
1120
+ PolicyNames: PolicyNameList | None
1121
+ NextMarker: MarkerType | None
1122
+ Truncated: BooleanType | None
1116
1123
 
1117
1124
 
1118
1125
  class ListKeyRotationsRequest(ServiceRequest):
1119
1126
  KeyId: KeyIdType
1120
- IncludeKeyMaterial: Optional[IncludeKeyMaterial]
1121
- Limit: Optional[LimitType]
1122
- Marker: Optional[MarkerType]
1127
+ IncludeKeyMaterial: IncludeKeyMaterial | None
1128
+ Limit: LimitType | None
1129
+ Marker: MarkerType | None
1123
1130
 
1124
1131
 
1125
1132
  class RotationsListEntry(TypedDict, total=False):
1126
- KeyId: Optional[KeyIdType]
1127
- KeyMaterialId: Optional[BackingKeyIdType]
1128
- KeyMaterialDescription: Optional[KeyMaterialDescriptionType]
1129
- ImportState: Optional[ImportState]
1130
- KeyMaterialState: Optional[KeyMaterialState]
1131
- ExpirationModel: Optional[ExpirationModelType]
1132
- ValidTo: Optional[DateType]
1133
- RotationDate: Optional[DateType]
1134
- 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
1135
1142
 
1136
1143
 
1137
- RotationsList = List[RotationsListEntry]
1144
+ RotationsList = list[RotationsListEntry]
1138
1145
 
1139
1146
 
1140
1147
  class ListKeyRotationsResponse(TypedDict, total=False):
1141
- Rotations: Optional[RotationsList]
1142
- NextMarker: Optional[MarkerType]
1143
- Truncated: Optional[BooleanType]
1148
+ Rotations: RotationsList | None
1149
+ NextMarker: MarkerType | None
1150
+ Truncated: BooleanType | None
1144
1151
 
1145
1152
 
1146
1153
  class ListKeysRequest(ServiceRequest):
1147
- Limit: Optional[LimitType]
1148
- Marker: Optional[MarkerType]
1154
+ Limit: LimitType | None
1155
+ Marker: MarkerType | None
1149
1156
 
1150
1157
 
1151
1158
  class ListKeysResponse(TypedDict, total=False):
1152
- Keys: Optional[KeyList]
1153
- NextMarker: Optional[MarkerType]
1154
- Truncated: Optional[BooleanType]
1159
+ Keys: KeyList | None
1160
+ NextMarker: MarkerType | None
1161
+ Truncated: BooleanType | None
1155
1162
 
1156
1163
 
1157
1164
  class ListResourceTagsRequest(ServiceRequest):
1158
1165
  KeyId: KeyIdType
1159
- Limit: Optional[LimitType]
1160
- Marker: Optional[MarkerType]
1166
+ Limit: LimitType | None
1167
+ Marker: MarkerType | None
1161
1168
 
1162
1169
 
1163
1170
  class ListResourceTagsResponse(TypedDict, total=False):
1164
- Tags: Optional[TagList]
1165
- NextMarker: Optional[MarkerType]
1166
- Truncated: Optional[BooleanType]
1171
+ Tags: TagList | None
1172
+ NextMarker: MarkerType | None
1173
+ Truncated: BooleanType | None
1167
1174
 
1168
1175
 
1169
1176
  class ListRetirableGrantsRequest(ServiceRequest):
1170
- Limit: Optional[LimitType]
1171
- Marker: Optional[MarkerType]
1177
+ Limit: LimitType | None
1178
+ Marker: MarkerType | None
1172
1179
  RetiringPrincipal: PrincipalIdType
1173
1180
 
1174
1181
 
1175
1182
  class PutKeyPolicyRequest(ServiceRequest):
1176
1183
  KeyId: KeyIdType
1177
- PolicyName: Optional[PolicyNameType]
1184
+ PolicyName: PolicyNameType | None
1178
1185
  Policy: PolicyType
1179
- BypassPolicyLockoutSafetyCheck: Optional[BooleanType]
1186
+ BypassPolicyLockoutSafetyCheck: BooleanType | None
1180
1187
 
1181
1188
 
1182
1189
  class ReEncryptRequest(ServiceRequest):
1183
1190
  CiphertextBlob: CiphertextType
1184
- SourceEncryptionContext: Optional[EncryptionContextType]
1185
- SourceKeyId: Optional[KeyIdType]
1191
+ SourceEncryptionContext: EncryptionContextType | None
1192
+ SourceKeyId: KeyIdType | None
1186
1193
  DestinationKeyId: KeyIdType
1187
- DestinationEncryptionContext: Optional[EncryptionContextType]
1188
- SourceEncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
1189
- DestinationEncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
1190
- GrantTokens: Optional[GrantTokenList]
1191
- DryRun: Optional[NullableBooleanType]
1194
+ DestinationEncryptionContext: EncryptionContextType | None
1195
+ SourceEncryptionAlgorithm: EncryptionAlgorithmSpec | None
1196
+ DestinationEncryptionAlgorithm: EncryptionAlgorithmSpec | None
1197
+ GrantTokens: GrantTokenList | None
1198
+ DryRun: NullableBooleanType | None
1192
1199
 
1193
1200
 
1194
1201
  class ReEncryptResponse(TypedDict, total=False):
1195
- CiphertextBlob: Optional[CiphertextType]
1196
- SourceKeyId: Optional[KeyIdType]
1197
- KeyId: Optional[KeyIdType]
1198
- SourceEncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
1199
- DestinationEncryptionAlgorithm: Optional[EncryptionAlgorithmSpec]
1200
- SourceKeyMaterialId: Optional[BackingKeyIdType]
1201
- 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
1202
1209
 
1203
1210
 
1204
1211
  class ReplicateKeyRequest(ServiceRequest):
1205
1212
  KeyId: KeyIdType
1206
1213
  ReplicaRegion: RegionType
1207
- Policy: Optional[PolicyType]
1208
- BypassPolicyLockoutSafetyCheck: Optional[BooleanType]
1209
- Description: Optional[DescriptionType]
1210
- Tags: Optional[TagList]
1214
+ Policy: PolicyType | None
1215
+ BypassPolicyLockoutSafetyCheck: BooleanType | None
1216
+ Description: DescriptionType | None
1217
+ Tags: TagList | None
1211
1218
 
1212
1219
 
1213
1220
  class ReplicateKeyResponse(TypedDict, total=False):
1214
- ReplicaKeyMetadata: Optional[KeyMetadata]
1215
- ReplicaPolicy: Optional[PolicyType]
1216
- ReplicaTags: Optional[TagList]
1221
+ ReplicaKeyMetadata: KeyMetadata | None
1222
+ ReplicaPolicy: PolicyType | None
1223
+ ReplicaTags: TagList | None
1217
1224
 
1218
1225
 
1219
1226
  class RetireGrantRequest(ServiceRequest):
1220
- GrantToken: Optional[GrantTokenType]
1221
- KeyId: Optional[KeyIdType]
1222
- GrantId: Optional[GrantIdType]
1223
- DryRun: Optional[NullableBooleanType]
1227
+ GrantToken: GrantTokenType | None
1228
+ KeyId: KeyIdType | None
1229
+ GrantId: GrantIdType | None
1230
+ DryRun: NullableBooleanType | None
1224
1231
 
1225
1232
 
1226
1233
  class RevokeGrantRequest(ServiceRequest):
1227
1234
  KeyId: KeyIdType
1228
1235
  GrantId: GrantIdType
1229
- DryRun: Optional[NullableBooleanType]
1236
+ DryRun: NullableBooleanType | None
1230
1237
 
1231
1238
 
1232
1239
  class RotateKeyOnDemandRequest(ServiceRequest):
@@ -1234,37 +1241,37 @@ class RotateKeyOnDemandRequest(ServiceRequest):
1234
1241
 
1235
1242
 
1236
1243
  class RotateKeyOnDemandResponse(TypedDict, total=False):
1237
- KeyId: Optional[KeyIdType]
1244
+ KeyId: KeyIdType | None
1238
1245
 
1239
1246
 
1240
1247
  class ScheduleKeyDeletionRequest(ServiceRequest):
1241
1248
  KeyId: KeyIdType
1242
- PendingWindowInDays: Optional[PendingWindowInDaysType]
1249
+ PendingWindowInDays: PendingWindowInDaysType | None
1243
1250
 
1244
1251
 
1245
1252
  class ScheduleKeyDeletionResponse(TypedDict, total=False):
1246
- KeyId: Optional[KeyIdType]
1247
- DeletionDate: Optional[DateType]
1248
- KeyState: Optional[KeyState]
1249
- PendingWindowInDays: Optional[PendingWindowInDaysType]
1253
+ KeyId: KeyIdType | None
1254
+ DeletionDate: DateType | None
1255
+ KeyState: KeyState | None
1256
+ PendingWindowInDays: PendingWindowInDaysType | None
1250
1257
 
1251
1258
 
1252
1259
  class SignRequest(ServiceRequest):
1253
1260
  KeyId: KeyIdType
1254
1261
  Message: PlaintextType
1255
- MessageType: Optional[MessageType]
1256
- GrantTokens: Optional[GrantTokenList]
1262
+ MessageType: MessageType | None
1263
+ GrantTokens: GrantTokenList | None
1257
1264
  SigningAlgorithm: SigningAlgorithmSpec
1258
- DryRun: Optional[NullableBooleanType]
1265
+ DryRun: NullableBooleanType | None
1259
1266
 
1260
1267
 
1261
1268
  class SignResponse(TypedDict, total=False):
1262
- KeyId: Optional[KeyIdType]
1263
- Signature: Optional[CiphertextType]
1264
- SigningAlgorithm: Optional[SigningAlgorithmSpec]
1269
+ KeyId: KeyIdType | None
1270
+ Signature: CiphertextType | None
1271
+ SigningAlgorithm: SigningAlgorithmSpec | None
1265
1272
 
1266
1273
 
1267
- TagKeyList = List[TagKeyType]
1274
+ TagKeyList = list[TagKeyType]
1268
1275
 
1269
1276
 
1270
1277
  class TagResourceRequest(ServiceRequest):
@@ -1284,14 +1291,15 @@ class UpdateAliasRequest(ServiceRequest):
1284
1291
 
1285
1292
  class UpdateCustomKeyStoreRequest(ServiceRequest):
1286
1293
  CustomKeyStoreId: CustomKeyStoreIdType
1287
- NewCustomKeyStoreName: Optional[CustomKeyStoreNameType]
1288
- KeyStorePassword: Optional[KeyStorePasswordType]
1289
- CloudHsmClusterId: Optional[CloudHsmClusterIdType]
1290
- XksProxyUriEndpoint: Optional[XksProxyUriEndpointType]
1291
- XksProxyUriPath: Optional[XksProxyUriPathType]
1292
- XksProxyVpcEndpointServiceName: Optional[XksProxyVpcEndpointServiceNameType]
1293
- XksProxyAuthenticationCredential: Optional[XksProxyAuthenticationCredentialType]
1294
- 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
1295
1303
 
1296
1304
 
1297
1305
  class UpdateCustomKeyStoreResponse(TypedDict, total=False):
@@ -1313,35 +1321,35 @@ class VerifyMacRequest(ServiceRequest):
1313
1321
  KeyId: KeyIdType
1314
1322
  MacAlgorithm: MacAlgorithmSpec
1315
1323
  Mac: CiphertextType
1316
- GrantTokens: Optional[GrantTokenList]
1317
- DryRun: Optional[NullableBooleanType]
1324
+ GrantTokens: GrantTokenList | None
1325
+ DryRun: NullableBooleanType | None
1318
1326
 
1319
1327
 
1320
1328
  class VerifyMacResponse(TypedDict, total=False):
1321
- KeyId: Optional[KeyIdType]
1322
- MacValid: Optional[BooleanType]
1323
- MacAlgorithm: Optional[MacAlgorithmSpec]
1329
+ KeyId: KeyIdType | None
1330
+ MacValid: BooleanType | None
1331
+ MacAlgorithm: MacAlgorithmSpec | None
1324
1332
 
1325
1333
 
1326
1334
  class VerifyRequest(ServiceRequest):
1327
1335
  KeyId: KeyIdType
1328
1336
  Message: PlaintextType
1329
- MessageType: Optional[MessageType]
1337
+ MessageType: MessageType | None
1330
1338
  Signature: CiphertextType
1331
1339
  SigningAlgorithm: SigningAlgorithmSpec
1332
- GrantTokens: Optional[GrantTokenList]
1333
- DryRun: Optional[NullableBooleanType]
1340
+ GrantTokens: GrantTokenList | None
1341
+ DryRun: NullableBooleanType | None
1334
1342
 
1335
1343
 
1336
1344
  class VerifyResponse(TypedDict, total=False):
1337
- KeyId: Optional[KeyIdType]
1338
- SignatureValid: Optional[BooleanType]
1339
- SigningAlgorithm: Optional[SigningAlgorithmSpec]
1345
+ KeyId: KeyIdType | None
1346
+ SignatureValid: BooleanType | None
1347
+ SigningAlgorithm: SigningAlgorithmSpec | None
1340
1348
 
1341
1349
 
1342
1350
  class KmsApi:
1343
- service = "kms"
1344
- version = "2014-11-01"
1351
+ service: str = "kms"
1352
+ version: str = "2014-11-01"
1345
1353
 
1346
1354
  @handler("CancelKeyDeletion")
1347
1355
  def cancel_key_deletion(
@@ -1373,6 +1381,7 @@ class KmsApi:
1373
1381
  xks_proxy_uri_endpoint: XksProxyUriEndpointType | None = None,
1374
1382
  xks_proxy_uri_path: XksProxyUriPathType | None = None,
1375
1383
  xks_proxy_vpc_endpoint_service_name: XksProxyVpcEndpointServiceNameType | None = None,
1384
+ xks_proxy_vpc_endpoint_service_owner: AccountIdType | None = None,
1376
1385
  xks_proxy_authentication_credential: XksProxyAuthenticationCredentialType | None = None,
1377
1386
  xks_proxy_connectivity: XksProxyConnectivityType | None = None,
1378
1387
  **kwargs,
@@ -1864,6 +1873,7 @@ class KmsApi:
1864
1873
  xks_proxy_uri_endpoint: XksProxyUriEndpointType | None = None,
1865
1874
  xks_proxy_uri_path: XksProxyUriPathType | None = None,
1866
1875
  xks_proxy_vpc_endpoint_service_name: XksProxyVpcEndpointServiceNameType | None = None,
1876
+ xks_proxy_vpc_endpoint_service_owner: AccountIdType | None = None,
1867
1877
  xks_proxy_authentication_credential: XksProxyAuthenticationCredentialType | None = None,
1868
1878
  xks_proxy_connectivity: XksProxyConnectivityType | None = None,
1869
1879
  **kwargs,