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