types-boto3-dynamodb 1.35.71__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.
@@ -0,0 +1,148 @@
1
+ """
2
+ Type annotations for dynamodb service client paginators.
3
+
4
+ [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/)
5
+
6
+ Usage::
7
+
8
+ ```python
9
+ from boto3.session import Session
10
+
11
+ from types_boto3_dynamodb.client import DynamoDBClient
12
+ from types_boto3_dynamodb.paginator import (
13
+ ListBackupsPaginator,
14
+ ListTablesPaginator,
15
+ ListTagsOfResourcePaginator,
16
+ QueryPaginator,
17
+ ScanPaginator,
18
+ )
19
+
20
+ session = Session()
21
+ client: DynamoDBClient = session.client("dynamodb")
22
+
23
+ list_backups_paginator: ListBackupsPaginator = client.get_paginator("list_backups")
24
+ list_tables_paginator: ListTablesPaginator = client.get_paginator("list_tables")
25
+ list_tags_of_resource_paginator: ListTagsOfResourcePaginator = client.get_paginator("list_tags_of_resource")
26
+ query_paginator: QueryPaginator = client.get_paginator("query")
27
+ scan_paginator: ScanPaginator = client.get_paginator("scan")
28
+ ```
29
+
30
+ Copyright 2024 Vlad Emelianov
31
+ """
32
+
33
+ import sys
34
+ from typing import Generic, Iterator, TypeVar
35
+
36
+ from botocore.paginate import PageIterator, Paginator
37
+
38
+ from .type_defs import (
39
+ ListBackupsInputListBackupsPaginateTypeDef,
40
+ ListBackupsOutputTypeDef,
41
+ ListTablesInputListTablesPaginateTypeDef,
42
+ ListTablesOutputTypeDef,
43
+ ListTagsOfResourceInputListTagsOfResourcePaginateTypeDef,
44
+ ListTagsOfResourceOutputTypeDef,
45
+ QueryInputQueryPaginateTypeDef,
46
+ QueryOutputTypeDef,
47
+ ScanInputScanPaginateTypeDef,
48
+ ScanOutputTypeDef,
49
+ )
50
+
51
+ if sys.version_info >= (3, 12):
52
+ from typing import Unpack
53
+ else:
54
+ from typing_extensions import Unpack
55
+
56
+
57
+ __all__ = (
58
+ "ListBackupsPaginator",
59
+ "ListTablesPaginator",
60
+ "ListTagsOfResourcePaginator",
61
+ "QueryPaginator",
62
+ "ScanPaginator",
63
+ )
64
+
65
+
66
+ _ItemTypeDef = TypeVar("_ItemTypeDef")
67
+
68
+
69
+ class _PageIterator(PageIterator, Generic[_ItemTypeDef]):
70
+ def __iter__(self) -> Iterator[_ItemTypeDef]:
71
+ """
72
+ Proxy method to specify iterator item type.
73
+ """
74
+
75
+
76
+ class ListBackupsPaginator(Paginator):
77
+ """
78
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/ListBackups.html#DynamoDB.Paginator.ListBackups)
79
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#listbackupspaginator)
80
+ """
81
+
82
+ def paginate(
83
+ self, **kwargs: Unpack[ListBackupsInputListBackupsPaginateTypeDef]
84
+ ) -> _PageIterator[ListBackupsOutputTypeDef]:
85
+ """
86
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/ListBackups.html#DynamoDB.Paginator.ListBackups.paginate)
87
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#listbackupspaginator)
88
+ """
89
+
90
+
91
+ class ListTablesPaginator(Paginator):
92
+ """
93
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/ListTables.html#DynamoDB.Paginator.ListTables)
94
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#listtablespaginator)
95
+ """
96
+
97
+ def paginate(
98
+ self, **kwargs: Unpack[ListTablesInputListTablesPaginateTypeDef]
99
+ ) -> _PageIterator[ListTablesOutputTypeDef]:
100
+ """
101
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/ListTables.html#DynamoDB.Paginator.ListTables.paginate)
102
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#listtablespaginator)
103
+ """
104
+
105
+
106
+ class ListTagsOfResourcePaginator(Paginator):
107
+ """
108
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/ListTagsOfResource.html#DynamoDB.Paginator.ListTagsOfResource)
109
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#listtagsofresourcepaginator)
110
+ """
111
+
112
+ def paginate(
113
+ self, **kwargs: Unpack[ListTagsOfResourceInputListTagsOfResourcePaginateTypeDef]
114
+ ) -> _PageIterator[ListTagsOfResourceOutputTypeDef]:
115
+ """
116
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/ListTagsOfResource.html#DynamoDB.Paginator.ListTagsOfResource.paginate)
117
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#listtagsofresourcepaginator)
118
+ """
119
+
120
+
121
+ class QueryPaginator(Paginator):
122
+ """
123
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/Query.html#DynamoDB.Paginator.Query)
124
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#querypaginator)
125
+ """
126
+
127
+ def paginate(
128
+ self, **kwargs: Unpack[QueryInputQueryPaginateTypeDef]
129
+ ) -> _PageIterator[QueryOutputTypeDef]:
130
+ """
131
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/Query.html#DynamoDB.Paginator.Query.paginate)
132
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#querypaginator)
133
+ """
134
+
135
+
136
+ class ScanPaginator(Paginator):
137
+ """
138
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/Scan.html#DynamoDB.Paginator.Scan)
139
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#scanpaginator)
140
+ """
141
+
142
+ def paginate(
143
+ self, **kwargs: Unpack[ScanInputScanPaginateTypeDef]
144
+ ) -> _PageIterator[ScanOutputTypeDef]:
145
+ """
146
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/Scan.html#DynamoDB.Paginator.Scan.paginate)
147
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#scanpaginator)
148
+ """
@@ -0,0 +1,135 @@
1
+ """
2
+ Type annotations for dynamodb service client paginators.
3
+
4
+ [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/)
5
+
6
+ Usage::
7
+
8
+ ```python
9
+ from boto3.session import Session
10
+
11
+ from types_boto3_dynamodb.client import DynamoDBClient
12
+ from types_boto3_dynamodb.paginator import (
13
+ ListBackupsPaginator,
14
+ ListTablesPaginator,
15
+ ListTagsOfResourcePaginator,
16
+ QueryPaginator,
17
+ ScanPaginator,
18
+ )
19
+
20
+ session = Session()
21
+ client: DynamoDBClient = session.client("dynamodb")
22
+
23
+ list_backups_paginator: ListBackupsPaginator = client.get_paginator("list_backups")
24
+ list_tables_paginator: ListTablesPaginator = client.get_paginator("list_tables")
25
+ list_tags_of_resource_paginator: ListTagsOfResourcePaginator = client.get_paginator("list_tags_of_resource")
26
+ query_paginator: QueryPaginator = client.get_paginator("query")
27
+ scan_paginator: ScanPaginator = client.get_paginator("scan")
28
+ ```
29
+
30
+ Copyright 2024 Vlad Emelianov
31
+ """
32
+
33
+ import sys
34
+ from typing import Generic, Iterator, TypeVar
35
+
36
+ from botocore.paginate import PageIterator, Paginator
37
+
38
+ from .type_defs import (
39
+ ListBackupsInputListBackupsPaginateTypeDef,
40
+ ListBackupsOutputTypeDef,
41
+ ListTablesInputListTablesPaginateTypeDef,
42
+ ListTablesOutputTypeDef,
43
+ ListTagsOfResourceInputListTagsOfResourcePaginateTypeDef,
44
+ ListTagsOfResourceOutputTypeDef,
45
+ QueryInputQueryPaginateTypeDef,
46
+ QueryOutputTypeDef,
47
+ ScanInputScanPaginateTypeDef,
48
+ ScanOutputTypeDef,
49
+ )
50
+
51
+ if sys.version_info >= (3, 12):
52
+ from typing import Unpack
53
+ else:
54
+ from typing_extensions import Unpack
55
+
56
+ __all__ = (
57
+ "ListBackupsPaginator",
58
+ "ListTablesPaginator",
59
+ "ListTagsOfResourcePaginator",
60
+ "QueryPaginator",
61
+ "ScanPaginator",
62
+ )
63
+
64
+ _ItemTypeDef = TypeVar("_ItemTypeDef")
65
+
66
+ class _PageIterator(PageIterator, Generic[_ItemTypeDef]):
67
+ def __iter__(self) -> Iterator[_ItemTypeDef]:
68
+ """
69
+ Proxy method to specify iterator item type.
70
+ """
71
+
72
+ class ListBackupsPaginator(Paginator):
73
+ """
74
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/ListBackups.html#DynamoDB.Paginator.ListBackups)
75
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#listbackupspaginator)
76
+ """
77
+ def paginate(
78
+ self, **kwargs: Unpack[ListBackupsInputListBackupsPaginateTypeDef]
79
+ ) -> _PageIterator[ListBackupsOutputTypeDef]:
80
+ """
81
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/ListBackups.html#DynamoDB.Paginator.ListBackups.paginate)
82
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#listbackupspaginator)
83
+ """
84
+
85
+ class ListTablesPaginator(Paginator):
86
+ """
87
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/ListTables.html#DynamoDB.Paginator.ListTables)
88
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#listtablespaginator)
89
+ """
90
+ def paginate(
91
+ self, **kwargs: Unpack[ListTablesInputListTablesPaginateTypeDef]
92
+ ) -> _PageIterator[ListTablesOutputTypeDef]:
93
+ """
94
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/ListTables.html#DynamoDB.Paginator.ListTables.paginate)
95
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#listtablespaginator)
96
+ """
97
+
98
+ class ListTagsOfResourcePaginator(Paginator):
99
+ """
100
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/ListTagsOfResource.html#DynamoDB.Paginator.ListTagsOfResource)
101
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#listtagsofresourcepaginator)
102
+ """
103
+ def paginate(
104
+ self, **kwargs: Unpack[ListTagsOfResourceInputListTagsOfResourcePaginateTypeDef]
105
+ ) -> _PageIterator[ListTagsOfResourceOutputTypeDef]:
106
+ """
107
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/ListTagsOfResource.html#DynamoDB.Paginator.ListTagsOfResource.paginate)
108
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#listtagsofresourcepaginator)
109
+ """
110
+
111
+ class QueryPaginator(Paginator):
112
+ """
113
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/Query.html#DynamoDB.Paginator.Query)
114
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#querypaginator)
115
+ """
116
+ def paginate(
117
+ self, **kwargs: Unpack[QueryInputQueryPaginateTypeDef]
118
+ ) -> _PageIterator[QueryOutputTypeDef]:
119
+ """
120
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/Query.html#DynamoDB.Paginator.Query.paginate)
121
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#querypaginator)
122
+ """
123
+
124
+ class ScanPaginator(Paginator):
125
+ """
126
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/Scan.html#DynamoDB.Paginator.Scan)
127
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#scanpaginator)
128
+ """
129
+ def paginate(
130
+ self, **kwargs: Unpack[ScanInputScanPaginateTypeDef]
131
+ ) -> _PageIterator[ScanOutputTypeDef]:
132
+ """
133
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/paginator/Scan.html#DynamoDB.Paginator.Scan.paginate)
134
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/paginators/#scanpaginator)
135
+ """
File without changes
@@ -0,0 +1,356 @@
1
+ """
2
+ Type annotations for dynamodb service ServiceResource
3
+
4
+ [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/)
5
+
6
+ Usage::
7
+
8
+ ```python
9
+ from boto3.session import Session
10
+
11
+ from types_boto3_dynamodb.service_resource import DynamoDBServiceResource
12
+ import types_boto3_dynamodb.service_resource as dynamodb_resources
13
+
14
+ session = Session()
15
+ resource: DynamoDBServiceResource = session.resource("dynamodb")
16
+
17
+ my_table: dynamodb_resources.Table = resource.Table(...)
18
+ ```
19
+
20
+ Copyright 2024 Vlad Emelianov
21
+ """
22
+
23
+ import sys
24
+ from datetime import datetime
25
+ from typing import Iterator, List, Sequence
26
+
27
+ from boto3.dynamodb.table import BatchWriter
28
+ from boto3.resources.base import ResourceMeta, ServiceResource
29
+ from boto3.resources.collection import ResourceCollection
30
+
31
+ from .client import DynamoDBClient
32
+ from .literals import TableStatusType
33
+ from .type_defs import (
34
+ ArchivalSummaryTypeDef,
35
+ AttributeDefinitionTypeDef,
36
+ BatchGetItemInputServiceResourceBatchGetItemTypeDef,
37
+ BatchGetItemOutputServiceResourceTypeDef,
38
+ BatchWriteItemInputServiceResourceBatchWriteItemTypeDef,
39
+ BatchWriteItemOutputServiceResourceTypeDef,
40
+ BillingModeSummaryTypeDef,
41
+ CreateTableInputServiceResourceCreateTableTypeDef,
42
+ DeleteItemInputTableDeleteItemTypeDef,
43
+ DeleteItemOutputTableTypeDef,
44
+ DeleteTableOutputTypeDef,
45
+ GetItemInputTableGetItemTypeDef,
46
+ GetItemOutputTableTypeDef,
47
+ GlobalSecondaryIndexDescriptionTypeDef,
48
+ KeySchemaElementTypeDef,
49
+ LocalSecondaryIndexDescriptionTypeDef,
50
+ OnDemandThroughputTypeDef,
51
+ ProvisionedThroughputDescriptionTypeDef,
52
+ PutItemInputTablePutItemTypeDef,
53
+ PutItemOutputTableTypeDef,
54
+ QueryInputTableQueryTypeDef,
55
+ QueryOutputTableTypeDef,
56
+ ReplicaDescriptionTypeDef,
57
+ RestoreSummaryTypeDef,
58
+ ScanInputTableScanTypeDef,
59
+ ScanOutputTableTypeDef,
60
+ SSEDescriptionTypeDef,
61
+ StreamSpecificationTypeDef,
62
+ TableClassSummaryTypeDef,
63
+ TableWarmThroughputDescriptionTypeDef,
64
+ UpdateItemInputTableUpdateItemTypeDef,
65
+ UpdateItemOutputTableTypeDef,
66
+ UpdateTableInputTableUpdateTypeDef,
67
+ )
68
+
69
+ if sys.version_info >= (3, 12):
70
+ from typing import Unpack
71
+ else:
72
+ from typing_extensions import Unpack
73
+
74
+
75
+ __all__ = ("DynamoDBServiceResource", "ServiceResourceTablesCollection", "Table")
76
+
77
+
78
+ class ServiceResourceTablesCollection(ResourceCollection):
79
+ """
80
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#DynamoDB.ServiceResource.tables)
81
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
82
+ """
83
+
84
+ def all(self) -> "ServiceResourceTablesCollection":
85
+ """
86
+ Get all items from the collection, optionally with a custom page size and item
87
+ count limit.
88
+
89
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#DynamoDB.ServiceResource.all)
90
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
91
+ """
92
+
93
+ def filter( # type: ignore
94
+ self, *, ExclusiveStartTableName: str = ..., Limit: int = ...
95
+ ) -> "ServiceResourceTablesCollection":
96
+ """
97
+ Get items from the collection, passing keyword arguments along as parameters to
98
+ the underlying service operation, which are typically used to filter the
99
+ results.
100
+
101
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#filter)
102
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
103
+ """
104
+
105
+ def limit(self, count: int) -> "ServiceResourceTablesCollection":
106
+ """
107
+ Return at most this many Tables.
108
+
109
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#limit)
110
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
111
+ """
112
+
113
+ def page_size(self, count: int) -> "ServiceResourceTablesCollection":
114
+ """
115
+ Fetch at most this many Tables per service request.
116
+
117
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#page_size)
118
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
119
+ """
120
+
121
+ def pages(self) -> Iterator[List["Table"]]:
122
+ """
123
+ A generator which yields pages of Tables.
124
+
125
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#pages)
126
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
127
+ """
128
+
129
+ def __iter__(self) -> Iterator["Table"]:
130
+ """
131
+ A generator which yields Tables.
132
+
133
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#__iter__)
134
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
135
+ """
136
+
137
+
138
+ class Table(ServiceResource):
139
+ """
140
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/index.html#DynamoDB.Table)
141
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#table)
142
+ """
143
+
144
+ name: str
145
+ attribute_definitions: List[AttributeDefinitionTypeDef]
146
+ table_name: str
147
+ key_schema: List[KeySchemaElementTypeDef]
148
+ table_status: TableStatusType
149
+ creation_date_time: datetime
150
+ provisioned_throughput: ProvisionedThroughputDescriptionTypeDef
151
+ table_size_bytes: int
152
+ item_count: int
153
+ table_arn: str
154
+ table_id: str
155
+ billing_mode_summary: BillingModeSummaryTypeDef
156
+ local_secondary_indexes: List[LocalSecondaryIndexDescriptionTypeDef]
157
+ global_secondary_indexes: List[GlobalSecondaryIndexDescriptionTypeDef]
158
+ stream_specification: StreamSpecificationTypeDef
159
+ latest_stream_label: str
160
+ latest_stream_arn: str
161
+ global_table_version: str
162
+ replicas: List[ReplicaDescriptionTypeDef]
163
+ restore_summary: RestoreSummaryTypeDef
164
+ sse_description: SSEDescriptionTypeDef
165
+ archival_summary: ArchivalSummaryTypeDef
166
+ table_class_summary: TableClassSummaryTypeDef
167
+ deletion_protection_enabled: bool
168
+ on_demand_throughput: OnDemandThroughputTypeDef
169
+ warm_throughput: TableWarmThroughputDescriptionTypeDef
170
+ meta: "DynamoDBResourceMeta" # type: ignore
171
+
172
+ def get_available_subresources(self) -> Sequence[str]:
173
+ """
174
+ Returns a list of all the available sub-resources for this Table.
175
+
176
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/get_available_subresources.html)
177
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tableget_available_subresources-method)
178
+ """
179
+
180
+ def delete(self) -> DeleteTableOutputTypeDef:
181
+ """
182
+ The <code>DeleteTable</code> operation deletes a table and all of its items.
183
+
184
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/delete.html)
185
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tabledelete-method)
186
+ """
187
+
188
+ def delete_item(
189
+ self, **kwargs: Unpack[DeleteItemInputTableDeleteItemTypeDef]
190
+ ) -> DeleteItemOutputTableTypeDef:
191
+ """
192
+ Deletes a single item in a table by primary key.
193
+
194
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/delete_item.html)
195
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tabledelete_item-method)
196
+ """
197
+
198
+ def get_item(
199
+ self, **kwargs: Unpack[GetItemInputTableGetItemTypeDef]
200
+ ) -> GetItemOutputTableTypeDef:
201
+ """
202
+ The <code>GetItem</code> operation returns a set of attributes for the item
203
+ with the given primary key.
204
+
205
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/get_item.html)
206
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tableget_item-method)
207
+ """
208
+
209
+ def put_item(
210
+ self, **kwargs: Unpack[PutItemInputTablePutItemTypeDef]
211
+ ) -> PutItemOutputTableTypeDef:
212
+ """
213
+ Creates a new item, or replaces an old item with a new item.
214
+
215
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/put_item.html)
216
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tableput_item-method)
217
+ """
218
+
219
+ def query(self, **kwargs: Unpack[QueryInputTableQueryTypeDef]) -> QueryOutputTableTypeDef:
220
+ """
221
+ You must provide the name of the partition key attribute and a single value for
222
+ that attribute.
223
+
224
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/query.html)
225
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tablequery-method)
226
+ """
227
+
228
+ def scan(self, **kwargs: Unpack[ScanInputTableScanTypeDef]) -> ScanOutputTableTypeDef:
229
+ """
230
+ The <code>Scan</code> operation returns one or more items and item attributes
231
+ by accessing every item in a table or a secondary index.
232
+
233
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/scan.html)
234
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tablescan-method)
235
+ """
236
+
237
+ def update(self, **kwargs: Unpack[UpdateTableInputTableUpdateTypeDef]) -> "_Table":
238
+ """
239
+ Modifies the provisioned throughput settings, global secondary indexes, or
240
+ DynamoDB Streams settings for a given table.
241
+
242
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/update.html)
243
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tableupdate-method)
244
+ """
245
+
246
+ def update_item(
247
+ self, **kwargs: Unpack[UpdateItemInputTableUpdateItemTypeDef]
248
+ ) -> UpdateItemOutputTableTypeDef:
249
+ """
250
+ Edits an existing item's attributes, or adds a new item to the table if it does
251
+ not already exist.
252
+
253
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/update_item.html)
254
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tableupdate_item-method)
255
+ """
256
+
257
+ def wait_until_exists(self) -> None:
258
+ """
259
+ Waits until Table is exists.
260
+
261
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/wait_until_exists.html)
262
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tablewait_until_exists-method)
263
+ """
264
+
265
+ def wait_until_not_exists(self) -> None:
266
+ """
267
+ Waits until Table is not_exists.
268
+
269
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/wait_until_not_exists.html)
270
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tablewait_until_not_exists-method)
271
+ """
272
+
273
+ def batch_writer(self, overwrite_by_pkeys: List[str] = ...) -> BatchWriter:
274
+ """
275
+ Create a batch writer object.
276
+
277
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/batch_writer.html)
278
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tablebatch_writer-method)
279
+ """
280
+
281
+ def load(self) -> None:
282
+ """
283
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/load.html)
284
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tableload-method)
285
+ """
286
+
287
+ def reload(self) -> None:
288
+ """
289
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/reload.html)
290
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#tablereload-method)
291
+ """
292
+
293
+
294
+ _Table = Table
295
+
296
+
297
+ class DynamoDBResourceMeta(ResourceMeta):
298
+ client: DynamoDBClient
299
+
300
+
301
+ class DynamoDBServiceResource(ServiceResource):
302
+ """
303
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/index.html)
304
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/)
305
+ """
306
+
307
+ meta: "DynamoDBResourceMeta" # type: ignore
308
+ tables: ServiceResourceTablesCollection
309
+
310
+ def get_available_subresources(self) -> Sequence[str]:
311
+ """
312
+ Returns a list of all the available sub-resources for this resource.
313
+
314
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/get_available_subresources.html)
315
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#dynamodbserviceresourceget_available_subresources-method)
316
+ """
317
+
318
+ def batch_get_item(
319
+ self, **kwargs: Unpack[BatchGetItemInputServiceResourceBatchGetItemTypeDef]
320
+ ) -> BatchGetItemOutputServiceResourceTypeDef:
321
+ """
322
+ The <code>BatchGetItem</code> operation returns the attributes of one or more
323
+ items from one or more tables.
324
+
325
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/batch_get_item.html)
326
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#dynamodbserviceresourcebatch_get_item-method)
327
+ """
328
+
329
+ def batch_write_item(
330
+ self, **kwargs: Unpack[BatchWriteItemInputServiceResourceBatchWriteItemTypeDef]
331
+ ) -> BatchWriteItemOutputServiceResourceTypeDef:
332
+ """
333
+ The <code>BatchWriteItem</code> operation puts or deletes multiple items in one
334
+ or more tables.
335
+
336
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/batch_write_item.html)
337
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#dynamodbserviceresourcebatch_write_item-method)
338
+ """
339
+
340
+ def create_table(
341
+ self, **kwargs: Unpack[CreateTableInputServiceResourceCreateTableTypeDef]
342
+ ) -> "_Table":
343
+ """
344
+ The <code>CreateTable</code> operation adds a new table to your account.
345
+
346
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/create_table.html)
347
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#dynamodbserviceresourcecreate_table-method)
348
+ """
349
+
350
+ def Table(self, name: str) -> "_Table":
351
+ """
352
+ Creates a Table resource.
353
+
354
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/Table.html)
355
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodb/service_resource/#dynamodbserviceresourcetable-method)
356
+ """