mypy-boto3-dynamodb 1.35.60__py3-none-any.whl → 1.35.93__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.
@@ -1,7 +1,7 @@
1
1
  """
2
- Type annotations for dynamodb service ServiceResource
2
+ Type annotations for dynamodb service ServiceResource.
3
3
 
4
- [Open documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/)
4
+ [Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/)
5
5
 
6
6
  Usage::
7
7
 
@@ -16,18 +16,21 @@ Usage::
16
16
 
17
17
  my_table: dynamodb_resources.Table = resource.Table(...)
18
18
  ```
19
+
20
+ Copyright 2025 Vlad Emelianov
19
21
  """
20
22
 
23
+ from __future__ import annotations
24
+
21
25
  import sys
22
26
  from datetime import datetime
23
- from typing import Iterator, List, Sequence
24
27
 
25
28
  from boto3.dynamodb.table import BatchWriter
26
29
  from boto3.resources.base import ResourceMeta, ServiceResource
27
30
  from boto3.resources.collection import ResourceCollection
28
31
 
29
32
  from .client import DynamoDBClient
30
- from .literals import TableStatusType
33
+ from .literals import MultiRegionConsistencyType, TableStatusType
31
34
  from .type_defs import (
32
35
  ArchivalSummaryTypeDef,
33
36
  AttributeDefinitionTypeDef,
@@ -64,6 +67,11 @@ from .type_defs import (
64
67
  UpdateTableInputTableUpdateTypeDef,
65
68
  )
66
69
 
70
+ if sys.version_info >= (3, 9):
71
+ from builtins import list as List
72
+ from collections.abc import Iterator, Sequence
73
+ else:
74
+ from typing import Iterator, List, Sequence
67
75
  if sys.version_info >= (3, 12):
68
76
  from typing import Unpack
69
77
  else:
@@ -75,67 +83,71 @@ __all__ = ("DynamoDBServiceResource", "ServiceResourceTablesCollection", "Table"
75
83
 
76
84
  class ServiceResourceTablesCollection(ResourceCollection):
77
85
  """
78
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
86
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#DynamoDB.ServiceResource.tables)
79
87
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
80
88
  """
81
89
 
82
- def all(self) -> "ServiceResourceTablesCollection":
90
+ def all(self) -> ServiceResourceTablesCollection:
83
91
  """
84
- Get all items from the collection, optionally with a custom page size and item count limit.
92
+ Get all items from the collection, optionally with a custom page size and item
93
+ count limit.
85
94
 
86
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
95
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#DynamoDB.ServiceResource.all)
87
96
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
88
97
  """
89
98
 
90
- def filter( # type: ignore
99
+ def filter( # type: ignore[override]
91
100
  self, *, ExclusiveStartTableName: str = ..., Limit: int = ...
92
- ) -> "ServiceResourceTablesCollection":
101
+ ) -> ServiceResourceTablesCollection:
93
102
  """
94
- Get items from the collection, passing keyword arguments along as parameters to the underlying service operation, which are typically used to filter the results.
103
+ Get items from the collection, passing keyword arguments along as parameters to
104
+ the underlying service operation, which are typically used to filter the
105
+ results.
95
106
 
96
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
107
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#filter)
97
108
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
98
109
  """
99
110
 
100
- def limit(self, count: int) -> "ServiceResourceTablesCollection":
111
+ def limit(self, count: int) -> ServiceResourceTablesCollection:
101
112
  """
102
113
  Return at most this many Tables.
103
114
 
104
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
115
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#limit)
105
116
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
106
117
  """
107
118
 
108
- def page_size(self, count: int) -> "ServiceResourceTablesCollection":
119
+ def page_size(self, count: int) -> ServiceResourceTablesCollection:
109
120
  """
110
121
  Fetch at most this many Tables per service request.
111
122
 
112
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
123
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#page_size)
113
124
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
114
125
  """
115
126
 
116
- def pages(self) -> Iterator[List["Table"]]:
127
+ def pages(self) -> Iterator[List[Table]]:
117
128
  """
118
129
  A generator which yields pages of Tables.
119
130
 
120
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
131
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#pages)
121
132
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
122
133
  """
123
134
 
124
- def __iter__(self) -> Iterator["Table"]:
135
+ def __iter__(self) -> Iterator[Table]:
125
136
  """
126
137
  A generator which yields Tables.
127
138
 
128
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
139
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#__iter__)
129
140
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
130
141
  """
131
142
 
132
143
 
133
144
  class Table(ServiceResource):
134
145
  """
135
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.Table)
146
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/index.html#DynamoDB.Table)
136
147
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#table)
137
148
  """
138
149
 
150
+ name: str
139
151
  attribute_definitions: List[AttributeDefinitionTypeDef]
140
152
  table_name: str
141
153
  key_schema: List[KeySchemaElementTypeDef]
@@ -161,22 +173,22 @@ class Table(ServiceResource):
161
173
  deletion_protection_enabled: bool
162
174
  on_demand_throughput: OnDemandThroughputTypeDef
163
175
  warm_throughput: TableWarmThroughputDescriptionTypeDef
164
- name: str
165
- meta: "DynamoDBResourceMeta" # type: ignore
176
+ multi_region_consistency: MultiRegionConsistencyType
177
+ meta: DynamoDBResourceMeta # type: ignore[override]
166
178
 
167
- def batch_writer(self, overwrite_by_pkeys: List[str] = ...) -> BatchWriter:
179
+ def get_available_subresources(self) -> Sequence[str]:
168
180
  """
169
- Create a batch writer object.
181
+ Returns a list of all the available sub-resources for this Table.
170
182
 
171
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.batch_writer)
172
- [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablebatch_writer-method)
183
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/get_available_subresources.html)
184
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableget_available_subresources-method)
173
185
  """
174
186
 
175
187
  def delete(self) -> DeleteTableOutputTypeDef:
176
188
  """
177
- The `DeleteTable` operation deletes a table and all of its items.
189
+ The <code>DeleteTable</code> operation deletes a table and all of its items.
178
190
 
179
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.delete)
191
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/delete.html)
180
192
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tabledelete-method)
181
193
  """
182
194
 
@@ -186,87 +198,55 @@ class Table(ServiceResource):
186
198
  """
187
199
  Deletes a single item in a table by primary key.
188
200
 
189
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.delete_item)
201
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/delete_item.html)
190
202
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tabledelete_item-method)
191
203
  """
192
204
 
193
- def get_available_subresources(self) -> Sequence[str]:
194
- """
195
- Returns a list of all the available sub-resources for this Resource.
196
-
197
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.get_available_subresources)
198
- [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableget_available_subresources-method)
199
- """
200
-
201
205
  def get_item(
202
206
  self, **kwargs: Unpack[GetItemInputTableGetItemTypeDef]
203
207
  ) -> GetItemOutputTableTypeDef:
204
208
  """
205
- The `GetItem` operation returns a set of attributes for the item with the given
206
- primary
207
- key.
209
+ The <code>GetItem</code> operation returns a set of attributes for the item
210
+ with the given primary key.
208
211
 
209
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.get_item)
212
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/get_item.html)
210
213
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableget_item-method)
211
214
  """
212
215
 
213
- def load(self) -> None:
214
- """
215
- Calls :py:meth:`DynamoDB.Client.describe_table` to update the attributes of the
216
- Table
217
- resource.
218
-
219
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.load)
220
- [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableload-method)
221
- """
222
-
223
216
  def put_item(
224
217
  self, **kwargs: Unpack[PutItemInputTablePutItemTypeDef]
225
218
  ) -> PutItemOutputTableTypeDef:
226
219
  """
227
220
  Creates a new item, or replaces an old item with a new item.
228
221
 
229
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.put_item)
222
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/put_item.html)
230
223
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableput_item-method)
231
224
  """
232
225
 
233
226
  def query(self, **kwargs: Unpack[QueryInputTableQueryTypeDef]) -> QueryOutputTableTypeDef:
234
227
  """
235
228
  You must provide the name of the partition key attribute and a single value for
236
- that
237
- attribute.
229
+ that attribute.
238
230
 
239
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.query)
231
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/query.html)
240
232
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablequery-method)
241
233
  """
242
234
 
243
- def reload(self) -> None:
244
- """
245
- Calls :py:meth:`DynamoDB.Client.describe_table` to update the attributes of the
246
- Table
247
- resource.
248
-
249
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.reload)
250
- [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablereload-method)
251
- """
252
-
253
235
  def scan(self, **kwargs: Unpack[ScanInputTableScanTypeDef]) -> ScanOutputTableTypeDef:
254
236
  """
255
- The `Scan` operation returns one or more items and item attributes by accessing
256
- every item in a table or a secondary
257
- index.
237
+ The <code>Scan</code> operation returns one or more items and item attributes
238
+ by accessing every item in a table or a secondary index.
258
239
 
259
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.scan)
240
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/scan.html)
260
241
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablescan-method)
261
242
  """
262
243
 
263
- def update(self, **kwargs: Unpack[UpdateTableInputTableUpdateTypeDef]) -> "_Table":
244
+ def update(self, **kwargs: Unpack[UpdateTableInputTableUpdateTypeDef]) -> _Table:
264
245
  """
265
246
  Modifies the provisioned throughput settings, global secondary indexes, or
266
- DynamoDB Streams settings for a given
267
- table.
247
+ DynamoDB Streams settings for a given table.
268
248
 
269
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.update)
249
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/update.html)
270
250
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableupdate-method)
271
251
  """
272
252
 
@@ -275,63 +255,81 @@ class Table(ServiceResource):
275
255
  ) -> UpdateItemOutputTableTypeDef:
276
256
  """
277
257
  Edits an existing item's attributes, or adds a new item to the table if it does
278
- not already
279
- exist.
258
+ not already exist.
280
259
 
281
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.update_item)
260
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/update_item.html)
282
261
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableupdate_item-method)
283
262
  """
284
263
 
285
264
  def wait_until_exists(self) -> None:
286
265
  """
287
- Waits until this Table is exists.
266
+ Waits until Table is exists.
288
267
 
289
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.wait_until_exists)
268
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/wait_until_exists.html)
290
269
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablewait_until_exists-method)
291
270
  """
292
271
 
293
272
  def wait_until_not_exists(self) -> None:
294
273
  """
295
- Waits until this Table is not exists.
274
+ Waits until Table is not_exists.
296
275
 
297
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.wait_until_not_exists)
276
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/wait_until_not_exists.html)
298
277
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablewait_until_not_exists-method)
299
278
  """
300
279
 
280
+ def batch_writer(self, overwrite_by_pkeys: List[str] = ...) -> BatchWriter:
281
+ """
282
+ Create a batch writer object.
283
+
284
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/batch_writer.html)
285
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablebatch_writer-method)
286
+ """
287
+
288
+ def load(self) -> None:
289
+ """
290
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/load.html)
291
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableload-method)
292
+ """
293
+
294
+ def reload(self) -> None:
295
+ """
296
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/reload.html)
297
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablereload-method)
298
+ """
299
+
301
300
 
302
301
  _Table = Table
303
302
 
304
303
 
305
304
  class DynamoDBResourceMeta(ResourceMeta):
306
- client: DynamoDBClient
305
+ client: DynamoDBClient # type: ignore[override]
307
306
 
308
307
 
309
308
  class DynamoDBServiceResource(ServiceResource):
310
309
  """
311
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource)
310
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/index.html)
312
311
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/)
313
312
  """
314
313
 
315
- meta: "DynamoDBResourceMeta" # type: ignore
314
+ meta: DynamoDBResourceMeta # type: ignore[override]
316
315
  tables: ServiceResourceTablesCollection
317
316
 
318
- def Table(self, name: str) -> "_Table":
317
+ def get_available_subresources(self) -> Sequence[str]:
319
318
  """
320
- Creates a Table resource.
319
+ Returns a list of all the available sub-resources for this resource.
321
320
 
322
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.Table)
323
- [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcetable-method)
321
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/get_available_subresources.html)
322
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourceget_available_subresources-method)
324
323
  """
325
324
 
326
325
  def batch_get_item(
327
326
  self, **kwargs: Unpack[BatchGetItemInputServiceResourceBatchGetItemTypeDef]
328
327
  ) -> BatchGetItemOutputServiceResourceTypeDef:
329
328
  """
330
- The `BatchGetItem` operation returns the attributes of one or more items from
331
- one or more
332
- tables.
329
+ The <code>BatchGetItem</code> operation returns the attributes of one or more
330
+ items from one or more tables.
333
331
 
334
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.batch_get_item)
332
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/batch_get_item.html)
335
333
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcebatch_get_item-method)
336
334
  """
337
335
 
@@ -339,27 +337,27 @@ class DynamoDBServiceResource(ServiceResource):
339
337
  self, **kwargs: Unpack[BatchWriteItemInputServiceResourceBatchWriteItemTypeDef]
340
338
  ) -> BatchWriteItemOutputServiceResourceTypeDef:
341
339
  """
342
- The `BatchWriteItem` operation puts or deletes multiple items in one or more
343
- tables.
340
+ The <code>BatchWriteItem</code> operation puts or deletes multiple items in one
341
+ or more tables.
344
342
 
345
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.batch_write_item)
343
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/batch_write_item.html)
346
344
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcebatch_write_item-method)
347
345
  """
348
346
 
349
347
  def create_table(
350
348
  self, **kwargs: Unpack[CreateTableInputServiceResourceCreateTableTypeDef]
351
- ) -> "_Table":
349
+ ) -> _Table:
352
350
  """
353
- The `CreateTable` operation adds a new table to your account.
351
+ The <code>CreateTable</code> operation adds a new table to your account.
354
352
 
355
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.create_table)
353
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/create_table.html)
356
354
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcecreate_table-method)
357
355
  """
358
356
 
359
- def get_available_subresources(self) -> Sequence[str]:
357
+ def Table(self, name: str) -> _Table:
360
358
  """
361
- Returns a list of all the available sub-resources for this Resource.
359
+ Creates a Table resource.
362
360
 
363
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.get_available_subresources)
364
- [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourceget_available_subresources-method)
361
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/Table.html)
362
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcetable-method)
365
363
  """