mypy-boto3-dynamodb 1.34.57__tar.gz → 1.34.91__tar.gz

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 (28) hide show
  1. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/PKG-INFO +4 -4
  2. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/README.md +2 -2
  3. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/__main__.py +4 -4
  4. mypy-boto3-dynamodb-1.34.57/mypy_boto3_dynamodb/client.pyi → mypy_boto3_dynamodb-1.34.91/mypy_boto3_dynamodb/client.py +61 -14
  5. mypy-boto3-dynamodb-1.34.57/mypy_boto3_dynamodb/client.py → mypy_boto3_dynamodb-1.34.91/mypy_boto3_dynamodb/client.pyi +58 -17
  6. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/literals.py +5 -1
  7. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/literals.pyi +5 -1
  8. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/service_resource.py +15 -14
  9. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/service_resource.pyi +15 -14
  10. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/type_defs.py +474 -360
  11. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/type_defs.pyi +474 -360
  12. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/version.py +1 -1
  13. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb.egg-info/PKG-INFO +4 -4
  14. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/setup.py +2 -2
  15. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/LICENSE +0 -0
  16. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/__init__.py +0 -0
  17. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/__init__.pyi +0 -0
  18. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/paginator.py +0 -0
  19. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/paginator.pyi +0 -0
  20. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/py.typed +0 -0
  21. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/waiter.py +0 -0
  22. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb/waiter.pyi +0 -0
  23. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb.egg-info/SOURCES.txt +0 -0
  24. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb.egg-info/dependency_links.txt +0 -0
  25. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb.egg-info/not-zip-safe +0 -0
  26. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb.egg-info/requires.txt +0 -0
  27. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/mypy_boto3_dynamodb.egg-info/top_level.txt +0 -0
  28. {mypy-boto3-dynamodb-1.34.57 → mypy_boto3_dynamodb-1.34.91}/setup.cfg +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mypy-boto3-dynamodb
3
- Version: 1.34.57
4
- Summary: Type annotations for boto3.DynamoDB 1.34.57 service generated with mypy-boto3-builder 7.23.2
3
+ Version: 1.34.91
4
+ Summary: Type annotations for boto3.DynamoDB 1.34.91 service generated with mypy-boto3-builder 7.24.0
5
5
  Home-page: https://github.com/youtype/mypy_boto3_builder
6
6
  Author: Vlad Emelianov
7
7
  Author-email: vlad.emelianov.nz@gmail.com
@@ -43,7 +43,7 @@ Requires-Dist: typing-extensions>=4.1.0; python_version < "3.12"
43
43
  ![boto3.typed](https://github.com/youtype/mypy_boto3_builder/raw/main/logo.png)
44
44
 
45
45
  Type annotations for
46
- [boto3.DynamoDB 1.34.57](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB)
46
+ [boto3.DynamoDB 1.34.91](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB)
47
47
  service compatible with [VSCode](https://code.visualstudio.com/),
48
48
  [PyCharm](https://www.jetbrains.com/pycharm/),
49
49
  [Emacs](https://www.gnu.org/software/emacs/),
@@ -52,7 +52,7 @@ service compatible with [VSCode](https://code.visualstudio.com/),
52
52
  [pyright](https://github.com/microsoft/pyright) and other tools.
53
53
 
54
54
  Generated by
55
- [mypy-boto3-builder 7.23.2](https://github.com/youtype/mypy_boto3_builder).
55
+ [mypy-boto3-builder 7.24.0](https://github.com/youtype/mypy_boto3_builder).
56
56
 
57
57
  More information can be found on
58
58
  [boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
@@ -10,7 +10,7 @@
10
10
  ![boto3.typed](https://github.com/youtype/mypy_boto3_builder/raw/main/logo.png)
11
11
 
12
12
  Type annotations for
13
- [boto3.DynamoDB 1.34.57](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB)
13
+ [boto3.DynamoDB 1.34.91](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB)
14
14
  service compatible with [VSCode](https://code.visualstudio.com/),
15
15
  [PyCharm](https://www.jetbrains.com/pycharm/),
16
16
  [Emacs](https://www.gnu.org/software/emacs/),
@@ -19,7 +19,7 @@ service compatible with [VSCode](https://code.visualstudio.com/),
19
19
  [pyright](https://github.com/microsoft/pyright) and other tools.
20
20
 
21
21
  Generated by
22
- [mypy-boto3-builder 7.23.2](https://github.com/youtype/mypy_boto3_builder).
22
+ [mypy-boto3-builder 7.24.0](https://github.com/youtype/mypy_boto3_builder).
23
23
 
24
24
  More information can be found on
25
25
  [boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
@@ -10,9 +10,9 @@ def print_info() -> None:
10
10
  Print package info to stdout.
11
11
  """
12
12
  print(
13
- "Type annotations for boto3.DynamoDB 1.34.57\n"
14
- "Version: 1.34.57\n"
15
- "Builder version: 7.23.2\n"
13
+ "Type annotations for boto3.DynamoDB 1.34.91\n"
14
+ "Version: 1.34.91\n"
15
+ "Builder version: 7.24.0\n"
16
16
  "Docs: https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb//\n"
17
17
  "Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB\n"
18
18
  "Other services: https://pypi.org/project/boto3-stubs/\n"
@@ -24,7 +24,7 @@ def print_version() -> None:
24
24
  """
25
25
  Print package version to stdout.
26
26
  """
27
- print("1.34.57")
27
+ print("1.34.91")
28
28
 
29
29
 
30
30
  def main() -> None:
@@ -57,6 +57,7 @@ from .type_defs import (
57
57
  CreateTableOutputTypeDef,
58
58
  DeleteBackupOutputTypeDef,
59
59
  DeleteItemOutputTypeDef,
60
+ DeleteResourcePolicyOutputTypeDef,
60
61
  DeleteTableOutputTypeDef,
61
62
  DescribeBackupOutputTypeDef,
62
63
  DescribeContinuousBackupsOutputTypeDef,
@@ -78,14 +79,15 @@ from .type_defs import (
78
79
  ExpectedAttributeValueTypeDef,
79
80
  ExportTableToPointInTimeOutputTypeDef,
80
81
  GetItemOutputTypeDef,
82
+ GetResourcePolicyOutputTypeDef,
81
83
  GlobalSecondaryIndexAutoScalingUpdateTypeDef,
82
- GlobalSecondaryIndexTypeDef,
84
+ GlobalSecondaryIndexUnionTypeDef,
83
85
  GlobalSecondaryIndexUpdateTypeDef,
84
86
  GlobalTableGlobalSecondaryIndexSettingsUpdateTypeDef,
85
87
  ImportTableOutputTypeDef,
86
- IncrementalExportSpecificationTypeDef,
87
- InputFormatOptionsTypeDef,
88
- KeysAndAttributesTypeDef,
88
+ IncrementalExportSpecificationUnionTypeDef,
89
+ InputFormatOptionsUnionTypeDef,
90
+ KeysAndAttributesUnionTypeDef,
89
91
  KeySchemaElementTypeDef,
90
92
  KinesisStreamingDestinationOutputTypeDef,
91
93
  ListBackupsOutputTypeDef,
@@ -100,6 +102,7 @@ from .type_defs import (
100
102
  PointInTimeRecoverySpecificationTypeDef,
101
103
  ProvisionedThroughputTypeDef,
102
104
  PutItemOutputTypeDef,
105
+ PutResourcePolicyOutputTypeDef,
103
106
  QueryOutputTypeDef,
104
107
  ReplicaAutoScalingUpdateTypeDef,
105
108
  ReplicaSettingsUpdateTypeDef,
@@ -112,7 +115,7 @@ from .type_defs import (
112
115
  ScanOutputTypeDef,
113
116
  SSESpecificationTypeDef,
114
117
  StreamSpecificationTypeDef,
115
- TableCreationParametersTypeDef,
118
+ TableCreationParametersUnionTypeDef,
116
119
  TagTypeDef,
117
120
  TimestampTypeDef,
118
121
  TimeToLiveSpecificationTypeDef,
@@ -131,7 +134,7 @@ from .type_defs import (
131
134
  UpdateTableOutputTypeDef,
132
135
  UpdateTableReplicaAutoScalingOutputTypeDef,
133
136
  UpdateTimeToLiveOutputTypeDef,
134
- WriteRequestTypeDef,
137
+ WriteRequestUnionTypeDef,
135
138
  )
136
139
  from .waiter import TableExistsWaiter, TableNotExistsWaiter
137
140
 
@@ -142,6 +145,7 @@ else:
142
145
 
143
146
  __all__ = ("DynamoDBClient",)
144
147
 
148
+
145
149
  class BotocoreClientError(Exception):
146
150
  MSG_TEMPLATE: str
147
151
 
@@ -149,6 +153,7 @@ class BotocoreClientError(Exception):
149
153
  self.response: Dict[str, Any]
150
154
  self.operation_name: str
151
155
 
156
+
152
157
  class Exceptions:
153
158
  BackupInUseException: Type[BotocoreClientError]
154
159
  BackupNotFoundException: Type[BotocoreClientError]
@@ -170,6 +175,7 @@ class Exceptions:
170
175
  ItemCollectionSizeLimitExceededException: Type[BotocoreClientError]
171
176
  LimitExceededException: Type[BotocoreClientError]
172
177
  PointInTimeRecoveryUnavailableException: Type[BotocoreClientError]
178
+ PolicyNotFoundException: Type[BotocoreClientError]
173
179
  ProvisionedThroughputExceededException: Type[BotocoreClientError]
174
180
  ReplicaAlreadyExistsException: Type[BotocoreClientError]
175
181
  ReplicaNotFoundException: Type[BotocoreClientError]
@@ -183,6 +189,7 @@ class Exceptions:
183
189
  TransactionConflictException: Type[BotocoreClientError]
184
190
  TransactionInProgressException: Type[BotocoreClientError]
185
191
 
192
+
186
193
  class DynamoDBClient(BaseClient):
187
194
  """
188
195
  [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Client)
@@ -218,7 +225,7 @@ class DynamoDBClient(BaseClient):
218
225
  def batch_get_item(
219
226
  self,
220
227
  *,
221
- RequestItems: Mapping[str, KeysAndAttributesTypeDef],
228
+ RequestItems: Mapping[str, KeysAndAttributesUnionTypeDef],
222
229
  ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
223
230
  ) -> BatchGetItemOutputTypeDef:
224
231
  """
@@ -233,7 +240,7 @@ class DynamoDBClient(BaseClient):
233
240
  def batch_write_item(
234
241
  self,
235
242
  *,
236
- RequestItems: Mapping[str, Sequence[WriteRequestTypeDef]],
243
+ RequestItems: Mapping[str, Sequence[WriteRequestUnionTypeDef]],
237
244
  ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
238
245
  ReturnItemCollectionMetrics: ReturnItemCollectionMetricsType = ...,
239
246
  ) -> BatchWriteItemOutputTypeDef:
@@ -286,7 +293,7 @@ class DynamoDBClient(BaseClient):
286
293
  TableName: str,
287
294
  KeySchema: Sequence[KeySchemaElementTypeDef],
288
295
  LocalSecondaryIndexes: Sequence[LocalSecondaryIndexTypeDef] = ...,
289
- GlobalSecondaryIndexes: Sequence[GlobalSecondaryIndexTypeDef] = ...,
296
+ GlobalSecondaryIndexes: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
290
297
  BillingMode: BillingModeType = ...,
291
298
  ProvisionedThroughput: ProvisionedThroughputTypeDef = ...,
292
299
  StreamSpecification: StreamSpecificationTypeDef = ...,
@@ -294,6 +301,7 @@ class DynamoDBClient(BaseClient):
294
301
  Tags: Sequence[TagTypeDef] = ...,
295
302
  TableClass: TableClassType = ...,
296
303
  DeletionProtectionEnabled: bool = ...,
304
+ ResourcePolicy: str = ...,
297
305
  ) -> CreateTableOutputTypeDef:
298
306
  """
299
307
  The `CreateTable` operation adds a new table to your account.
@@ -332,6 +340,18 @@ class DynamoDBClient(BaseClient):
332
340
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#delete_item)
333
341
  """
334
342
 
343
+ def delete_resource_policy(
344
+ self, *, ResourceArn: str, ExpectedRevisionId: str = ...
345
+ ) -> DeleteResourcePolicyOutputTypeDef:
346
+ """
347
+ Deletes the resource-based policy attached to the resource, which can be a
348
+ table or
349
+ stream.
350
+
351
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Client.delete_resource_policy)
352
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#delete_resource_policy)
353
+ """
354
+
335
355
  def delete_table(self, *, TableName: str) -> DeleteTableOutputTypeDef:
336
356
  """
337
357
  The `DeleteTable` operation deletes a table and all of its items.
@@ -542,7 +562,7 @@ class DynamoDBClient(BaseClient):
542
562
  S3SseKmsKeyId: str = ...,
543
563
  ExportFormat: ExportFormatType = ...,
544
564
  ExportType: ExportTypeType = ...,
545
- IncrementalExportSpecification: IncrementalExportSpecificationTypeDef = ...,
565
+ IncrementalExportSpecification: IncrementalExportSpecificationUnionTypeDef = ...,
546
566
  ) -> ExportTableToPointInTimeOutputTypeDef:
547
567
  """
548
568
  Exports table data to an S3 bucket.
@@ -585,14 +605,24 @@ class DynamoDBClient(BaseClient):
585
605
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#get_item)
586
606
  """
587
607
 
608
+ def get_resource_policy(self, *, ResourceArn: str) -> GetResourcePolicyOutputTypeDef:
609
+ """
610
+ Returns the resource-based policy document attached to the resource, which can
611
+ be a table or stream, in JSON
612
+ format.
613
+
614
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Client.get_resource_policy)
615
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#get_resource_policy)
616
+ """
617
+
588
618
  def import_table(
589
619
  self,
590
620
  *,
591
621
  S3BucketSource: S3BucketSourceTypeDef,
592
622
  InputFormat: InputFormatType,
593
- TableCreationParameters: TableCreationParametersTypeDef,
623
+ TableCreationParameters: TableCreationParametersUnionTypeDef,
594
624
  ClientToken: str = ...,
595
- InputFormatOptions: InputFormatOptionsTypeDef = ...,
625
+ InputFormatOptions: InputFormatOptionsUnionTypeDef = ...,
596
626
  InputCompressionType: InputCompressionTypeType = ...,
597
627
  ) -> ImportTableOutputTypeDef:
598
628
  """
@@ -706,6 +736,23 @@ class DynamoDBClient(BaseClient):
706
736
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#put_item)
707
737
  """
708
738
 
739
+ def put_resource_policy(
740
+ self,
741
+ *,
742
+ ResourceArn: str,
743
+ Policy: str,
744
+ ExpectedRevisionId: str = ...,
745
+ ConfirmRemoveSelfResourceAccess: bool = ...,
746
+ ) -> PutResourcePolicyOutputTypeDef:
747
+ """
748
+ Attaches a resource-based policy document to the resource, which can be a table
749
+ or
750
+ stream.
751
+
752
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Client.put_resource_policy)
753
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#put_resource_policy)
754
+ """
755
+
709
756
  def query(
710
757
  self,
711
758
  *,
@@ -742,7 +789,7 @@ class DynamoDBClient(BaseClient):
742
789
  TargetTableName: str,
743
790
  BackupArn: str,
744
791
  BillingModeOverride: BillingModeType = ...,
745
- GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexTypeDef] = ...,
792
+ GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
746
793
  LocalSecondaryIndexOverride: Sequence[LocalSecondaryIndexTypeDef] = ...,
747
794
  ProvisionedThroughputOverride: ProvisionedThroughputTypeDef = ...,
748
795
  SSESpecificationOverride: SSESpecificationTypeDef = ...,
@@ -763,7 +810,7 @@ class DynamoDBClient(BaseClient):
763
810
  UseLatestRestorableTime: bool = ...,
764
811
  RestoreDateTime: TimestampTypeDef = ...,
765
812
  BillingModeOverride: BillingModeType = ...,
766
- GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexTypeDef] = ...,
813
+ GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
767
814
  LocalSecondaryIndexOverride: Sequence[LocalSecondaryIndexTypeDef] = ...,
768
815
  ProvisionedThroughputOverride: ProvisionedThroughputTypeDef = ...,
769
816
  SSESpecificationOverride: SSESpecificationTypeDef = ...,
@@ -57,6 +57,7 @@ from .type_defs import (
57
57
  CreateTableOutputTypeDef,
58
58
  DeleteBackupOutputTypeDef,
59
59
  DeleteItemOutputTypeDef,
60
+ DeleteResourcePolicyOutputTypeDef,
60
61
  DeleteTableOutputTypeDef,
61
62
  DescribeBackupOutputTypeDef,
62
63
  DescribeContinuousBackupsOutputTypeDef,
@@ -78,14 +79,15 @@ from .type_defs import (
78
79
  ExpectedAttributeValueTypeDef,
79
80
  ExportTableToPointInTimeOutputTypeDef,
80
81
  GetItemOutputTypeDef,
82
+ GetResourcePolicyOutputTypeDef,
81
83
  GlobalSecondaryIndexAutoScalingUpdateTypeDef,
82
- GlobalSecondaryIndexTypeDef,
84
+ GlobalSecondaryIndexUnionTypeDef,
83
85
  GlobalSecondaryIndexUpdateTypeDef,
84
86
  GlobalTableGlobalSecondaryIndexSettingsUpdateTypeDef,
85
87
  ImportTableOutputTypeDef,
86
- IncrementalExportSpecificationTypeDef,
87
- InputFormatOptionsTypeDef,
88
- KeysAndAttributesTypeDef,
88
+ IncrementalExportSpecificationUnionTypeDef,
89
+ InputFormatOptionsUnionTypeDef,
90
+ KeysAndAttributesUnionTypeDef,
89
91
  KeySchemaElementTypeDef,
90
92
  KinesisStreamingDestinationOutputTypeDef,
91
93
  ListBackupsOutputTypeDef,
@@ -100,6 +102,7 @@ from .type_defs import (
100
102
  PointInTimeRecoverySpecificationTypeDef,
101
103
  ProvisionedThroughputTypeDef,
102
104
  PutItemOutputTypeDef,
105
+ PutResourcePolicyOutputTypeDef,
103
106
  QueryOutputTypeDef,
104
107
  ReplicaAutoScalingUpdateTypeDef,
105
108
  ReplicaSettingsUpdateTypeDef,
@@ -112,7 +115,7 @@ from .type_defs import (
112
115
  ScanOutputTypeDef,
113
116
  SSESpecificationTypeDef,
114
117
  StreamSpecificationTypeDef,
115
- TableCreationParametersTypeDef,
118
+ TableCreationParametersUnionTypeDef,
116
119
  TagTypeDef,
117
120
  TimestampTypeDef,
118
121
  TimeToLiveSpecificationTypeDef,
@@ -131,7 +134,7 @@ from .type_defs import (
131
134
  UpdateTableOutputTypeDef,
132
135
  UpdateTableReplicaAutoScalingOutputTypeDef,
133
136
  UpdateTimeToLiveOutputTypeDef,
134
- WriteRequestTypeDef,
137
+ WriteRequestUnionTypeDef,
135
138
  )
136
139
  from .waiter import TableExistsWaiter, TableNotExistsWaiter
137
140
 
@@ -142,7 +145,6 @@ else:
142
145
 
143
146
  __all__ = ("DynamoDBClient",)
144
147
 
145
-
146
148
  class BotocoreClientError(Exception):
147
149
  MSG_TEMPLATE: str
148
150
 
@@ -150,7 +152,6 @@ class BotocoreClientError(Exception):
150
152
  self.response: Dict[str, Any]
151
153
  self.operation_name: str
152
154
 
153
-
154
155
  class Exceptions:
155
156
  BackupInUseException: Type[BotocoreClientError]
156
157
  BackupNotFoundException: Type[BotocoreClientError]
@@ -172,6 +173,7 @@ class Exceptions:
172
173
  ItemCollectionSizeLimitExceededException: Type[BotocoreClientError]
173
174
  LimitExceededException: Type[BotocoreClientError]
174
175
  PointInTimeRecoveryUnavailableException: Type[BotocoreClientError]
176
+ PolicyNotFoundException: Type[BotocoreClientError]
175
177
  ProvisionedThroughputExceededException: Type[BotocoreClientError]
176
178
  ReplicaAlreadyExistsException: Type[BotocoreClientError]
177
179
  ReplicaNotFoundException: Type[BotocoreClientError]
@@ -185,7 +187,6 @@ class Exceptions:
185
187
  TransactionConflictException: Type[BotocoreClientError]
186
188
  TransactionInProgressException: Type[BotocoreClientError]
187
189
 
188
-
189
190
  class DynamoDBClient(BaseClient):
190
191
  """
191
192
  [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Client)
@@ -221,7 +222,7 @@ class DynamoDBClient(BaseClient):
221
222
  def batch_get_item(
222
223
  self,
223
224
  *,
224
- RequestItems: Mapping[str, KeysAndAttributesTypeDef],
225
+ RequestItems: Mapping[str, KeysAndAttributesUnionTypeDef],
225
226
  ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
226
227
  ) -> BatchGetItemOutputTypeDef:
227
228
  """
@@ -236,7 +237,7 @@ class DynamoDBClient(BaseClient):
236
237
  def batch_write_item(
237
238
  self,
238
239
  *,
239
- RequestItems: Mapping[str, Sequence[WriteRequestTypeDef]],
240
+ RequestItems: Mapping[str, Sequence[WriteRequestUnionTypeDef]],
240
241
  ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
241
242
  ReturnItemCollectionMetrics: ReturnItemCollectionMetricsType = ...,
242
243
  ) -> BatchWriteItemOutputTypeDef:
@@ -289,7 +290,7 @@ class DynamoDBClient(BaseClient):
289
290
  TableName: str,
290
291
  KeySchema: Sequence[KeySchemaElementTypeDef],
291
292
  LocalSecondaryIndexes: Sequence[LocalSecondaryIndexTypeDef] = ...,
292
- GlobalSecondaryIndexes: Sequence[GlobalSecondaryIndexTypeDef] = ...,
293
+ GlobalSecondaryIndexes: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
293
294
  BillingMode: BillingModeType = ...,
294
295
  ProvisionedThroughput: ProvisionedThroughputTypeDef = ...,
295
296
  StreamSpecification: StreamSpecificationTypeDef = ...,
@@ -297,6 +298,7 @@ class DynamoDBClient(BaseClient):
297
298
  Tags: Sequence[TagTypeDef] = ...,
298
299
  TableClass: TableClassType = ...,
299
300
  DeletionProtectionEnabled: bool = ...,
301
+ ResourcePolicy: str = ...,
300
302
  ) -> CreateTableOutputTypeDef:
301
303
  """
302
304
  The `CreateTable` operation adds a new table to your account.
@@ -335,6 +337,18 @@ class DynamoDBClient(BaseClient):
335
337
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#delete_item)
336
338
  """
337
339
 
340
+ def delete_resource_policy(
341
+ self, *, ResourceArn: str, ExpectedRevisionId: str = ...
342
+ ) -> DeleteResourcePolicyOutputTypeDef:
343
+ """
344
+ Deletes the resource-based policy attached to the resource, which can be a
345
+ table or
346
+ stream.
347
+
348
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Client.delete_resource_policy)
349
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#delete_resource_policy)
350
+ """
351
+
338
352
  def delete_table(self, *, TableName: str) -> DeleteTableOutputTypeDef:
339
353
  """
340
354
  The `DeleteTable` operation deletes a table and all of its items.
@@ -545,7 +559,7 @@ class DynamoDBClient(BaseClient):
545
559
  S3SseKmsKeyId: str = ...,
546
560
  ExportFormat: ExportFormatType = ...,
547
561
  ExportType: ExportTypeType = ...,
548
- IncrementalExportSpecification: IncrementalExportSpecificationTypeDef = ...,
562
+ IncrementalExportSpecification: IncrementalExportSpecificationUnionTypeDef = ...,
549
563
  ) -> ExportTableToPointInTimeOutputTypeDef:
550
564
  """
551
565
  Exports table data to an S3 bucket.
@@ -588,14 +602,24 @@ class DynamoDBClient(BaseClient):
588
602
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#get_item)
589
603
  """
590
604
 
605
+ def get_resource_policy(self, *, ResourceArn: str) -> GetResourcePolicyOutputTypeDef:
606
+ """
607
+ Returns the resource-based policy document attached to the resource, which can
608
+ be a table or stream, in JSON
609
+ format.
610
+
611
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Client.get_resource_policy)
612
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#get_resource_policy)
613
+ """
614
+
591
615
  def import_table(
592
616
  self,
593
617
  *,
594
618
  S3BucketSource: S3BucketSourceTypeDef,
595
619
  InputFormat: InputFormatType,
596
- TableCreationParameters: TableCreationParametersTypeDef,
620
+ TableCreationParameters: TableCreationParametersUnionTypeDef,
597
621
  ClientToken: str = ...,
598
- InputFormatOptions: InputFormatOptionsTypeDef = ...,
622
+ InputFormatOptions: InputFormatOptionsUnionTypeDef = ...,
599
623
  InputCompressionType: InputCompressionTypeType = ...,
600
624
  ) -> ImportTableOutputTypeDef:
601
625
  """
@@ -709,6 +733,23 @@ class DynamoDBClient(BaseClient):
709
733
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#put_item)
710
734
  """
711
735
 
736
+ def put_resource_policy(
737
+ self,
738
+ *,
739
+ ResourceArn: str,
740
+ Policy: str,
741
+ ExpectedRevisionId: str = ...,
742
+ ConfirmRemoveSelfResourceAccess: bool = ...,
743
+ ) -> PutResourcePolicyOutputTypeDef:
744
+ """
745
+ Attaches a resource-based policy document to the resource, which can be a table
746
+ or
747
+ stream.
748
+
749
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Client.put_resource_policy)
750
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#put_resource_policy)
751
+ """
752
+
712
753
  def query(
713
754
  self,
714
755
  *,
@@ -745,7 +786,7 @@ class DynamoDBClient(BaseClient):
745
786
  TargetTableName: str,
746
787
  BackupArn: str,
747
788
  BillingModeOverride: BillingModeType = ...,
748
- GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexTypeDef] = ...,
789
+ GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
749
790
  LocalSecondaryIndexOverride: Sequence[LocalSecondaryIndexTypeDef] = ...,
750
791
  ProvisionedThroughputOverride: ProvisionedThroughputTypeDef = ...,
751
792
  SSESpecificationOverride: SSESpecificationTypeDef = ...,
@@ -766,7 +807,7 @@ class DynamoDBClient(BaseClient):
766
807
  UseLatestRestorableTime: bool = ...,
767
808
  RestoreDateTime: TimestampTypeDef = ...,
768
809
  BillingModeOverride: BillingModeType = ...,
769
- GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexTypeDef] = ...,
810
+ GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
770
811
  LocalSecondaryIndexOverride: Sequence[LocalSecondaryIndexTypeDef] = ...,
771
812
  ProvisionedThroughputOverride: ProvisionedThroughputTypeDef = ...,
772
813
  SSESpecificationOverride: SSESpecificationTypeDef = ...,
@@ -236,6 +236,7 @@ ServiceName = Literal[
236
236
  "codebuild",
237
237
  "codecatalyst",
238
238
  "codecommit",
239
+ "codeconnections",
239
240
  "codedeploy",
240
241
  "codeguru-reviewer",
241
242
  "codeguru-security",
@@ -256,6 +257,7 @@ ServiceName = Literal[
256
257
  "connectcampaigns",
257
258
  "connectcases",
258
259
  "connectparticipant",
260
+ "controlcatalog",
259
261
  "controltower",
260
262
  "cost-optimization-hub",
261
263
  "cur",
@@ -266,6 +268,7 @@ ServiceName = Literal[
266
268
  "datasync",
267
269
  "datazone",
268
270
  "dax",
271
+ "deadline",
269
272
  "detective",
270
273
  "devicefarm",
271
274
  "devops-guru",
@@ -334,7 +337,6 @@ ServiceName = Literal[
334
337
  "iot",
335
338
  "iot-data",
336
339
  "iot-jobs-data",
337
- "iot-roborunner",
338
340
  "iot1click-devices",
339
341
  "iot1click-projects",
340
342
  "iotanalytics",
@@ -471,6 +473,7 @@ ServiceName = Literal[
471
473
  "route53-recovery-control-config",
472
474
  "route53-recovery-readiness",
473
475
  "route53domains",
476
+ "route53profiles",
474
477
  "route53resolver",
475
478
  "rum",
476
479
  "s3",
@@ -522,6 +525,7 @@ ServiceName = Literal[
522
525
  "swf",
523
526
  "synthetics",
524
527
  "textract",
528
+ "timestream-influxdb",
525
529
  "timestream-query",
526
530
  "timestream-write",
527
531
  "tnb",
@@ -236,6 +236,7 @@ ServiceName = Literal[
236
236
  "codebuild",
237
237
  "codecatalyst",
238
238
  "codecommit",
239
+ "codeconnections",
239
240
  "codedeploy",
240
241
  "codeguru-reviewer",
241
242
  "codeguru-security",
@@ -256,6 +257,7 @@ ServiceName = Literal[
256
257
  "connectcampaigns",
257
258
  "connectcases",
258
259
  "connectparticipant",
260
+ "controlcatalog",
259
261
  "controltower",
260
262
  "cost-optimization-hub",
261
263
  "cur",
@@ -266,6 +268,7 @@ ServiceName = Literal[
266
268
  "datasync",
267
269
  "datazone",
268
270
  "dax",
271
+ "deadline",
269
272
  "detective",
270
273
  "devicefarm",
271
274
  "devops-guru",
@@ -334,7 +337,6 @@ ServiceName = Literal[
334
337
  "iot",
335
338
  "iot-data",
336
339
  "iot-jobs-data",
337
- "iot-roborunner",
338
340
  "iot1click-devices",
339
341
  "iot1click-projects",
340
342
  "iotanalytics",
@@ -471,6 +473,7 @@ ServiceName = Literal[
471
473
  "route53-recovery-control-config",
472
474
  "route53-recovery-readiness",
473
475
  "route53domains",
476
+ "route53profiles",
474
477
  "route53resolver",
475
478
  "rum",
476
479
  "s3",
@@ -522,6 +525,7 @@ ServiceName = Literal[
522
525
  "swf",
523
526
  "synthetics",
524
527
  "textract",
528
+ "timestream-influxdb",
525
529
  "timestream-query",
526
530
  "timestream-write",
527
531
  "tnb",