mypy-boto3-dynamodb 1.34.57__py3-none-any.whl → 1.34.91__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.
@@ -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
 
@@ -172,6 +175,7 @@ class Exceptions:
172
175
  ItemCollectionSizeLimitExceededException: Type[BotocoreClientError]
173
176
  LimitExceededException: Type[BotocoreClientError]
174
177
  PointInTimeRecoveryUnavailableException: Type[BotocoreClientError]
178
+ PolicyNotFoundException: Type[BotocoreClientError]
175
179
  ProvisionedThroughputExceededException: Type[BotocoreClientError]
176
180
  ReplicaAlreadyExistsException: Type[BotocoreClientError]
177
181
  ReplicaNotFoundException: Type[BotocoreClientError]
@@ -221,7 +225,7 @@ class DynamoDBClient(BaseClient):
221
225
  def batch_get_item(
222
226
  self,
223
227
  *,
224
- RequestItems: Mapping[str, KeysAndAttributesTypeDef],
228
+ RequestItems: Mapping[str, KeysAndAttributesUnionTypeDef],
225
229
  ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
226
230
  ) -> BatchGetItemOutputTypeDef:
227
231
  """
@@ -236,7 +240,7 @@ class DynamoDBClient(BaseClient):
236
240
  def batch_write_item(
237
241
  self,
238
242
  *,
239
- RequestItems: Mapping[str, Sequence[WriteRequestTypeDef]],
243
+ RequestItems: Mapping[str, Sequence[WriteRequestUnionTypeDef]],
240
244
  ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
241
245
  ReturnItemCollectionMetrics: ReturnItemCollectionMetricsType = ...,
242
246
  ) -> BatchWriteItemOutputTypeDef:
@@ -289,7 +293,7 @@ class DynamoDBClient(BaseClient):
289
293
  TableName: str,
290
294
  KeySchema: Sequence[KeySchemaElementTypeDef],
291
295
  LocalSecondaryIndexes: Sequence[LocalSecondaryIndexTypeDef] = ...,
292
- GlobalSecondaryIndexes: Sequence[GlobalSecondaryIndexTypeDef] = ...,
296
+ GlobalSecondaryIndexes: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
293
297
  BillingMode: BillingModeType = ...,
294
298
  ProvisionedThroughput: ProvisionedThroughputTypeDef = ...,
295
299
  StreamSpecification: StreamSpecificationTypeDef = ...,
@@ -297,6 +301,7 @@ class DynamoDBClient(BaseClient):
297
301
  Tags: Sequence[TagTypeDef] = ...,
298
302
  TableClass: TableClassType = ...,
299
303
  DeletionProtectionEnabled: bool = ...,
304
+ ResourcePolicy: str = ...,
300
305
  ) -> CreateTableOutputTypeDef:
301
306
  """
302
307
  The `CreateTable` operation adds a new table to your account.
@@ -335,6 +340,18 @@ class DynamoDBClient(BaseClient):
335
340
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#delete_item)
336
341
  """
337
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
+
338
355
  def delete_table(self, *, TableName: str) -> DeleteTableOutputTypeDef:
339
356
  """
340
357
  The `DeleteTable` operation deletes a table and all of its items.
@@ -545,7 +562,7 @@ class DynamoDBClient(BaseClient):
545
562
  S3SseKmsKeyId: str = ...,
546
563
  ExportFormat: ExportFormatType = ...,
547
564
  ExportType: ExportTypeType = ...,
548
- IncrementalExportSpecification: IncrementalExportSpecificationTypeDef = ...,
565
+ IncrementalExportSpecification: IncrementalExportSpecificationUnionTypeDef = ...,
549
566
  ) -> ExportTableToPointInTimeOutputTypeDef:
550
567
  """
551
568
  Exports table data to an S3 bucket.
@@ -588,14 +605,24 @@ class DynamoDBClient(BaseClient):
588
605
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#get_item)
589
606
  """
590
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
+
591
618
  def import_table(
592
619
  self,
593
620
  *,
594
621
  S3BucketSource: S3BucketSourceTypeDef,
595
622
  InputFormat: InputFormatType,
596
- TableCreationParameters: TableCreationParametersTypeDef,
623
+ TableCreationParameters: TableCreationParametersUnionTypeDef,
597
624
  ClientToken: str = ...,
598
- InputFormatOptions: InputFormatOptionsTypeDef = ...,
625
+ InputFormatOptions: InputFormatOptionsUnionTypeDef = ...,
599
626
  InputCompressionType: InputCompressionTypeType = ...,
600
627
  ) -> ImportTableOutputTypeDef:
601
628
  """
@@ -709,6 +736,23 @@ class DynamoDBClient(BaseClient):
709
736
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#put_item)
710
737
  """
711
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
+
712
756
  def query(
713
757
  self,
714
758
  *,
@@ -745,7 +789,7 @@ class DynamoDBClient(BaseClient):
745
789
  TargetTableName: str,
746
790
  BackupArn: str,
747
791
  BillingModeOverride: BillingModeType = ...,
748
- GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexTypeDef] = ...,
792
+ GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
749
793
  LocalSecondaryIndexOverride: Sequence[LocalSecondaryIndexTypeDef] = ...,
750
794
  ProvisionedThroughputOverride: ProvisionedThroughputTypeDef = ...,
751
795
  SSESpecificationOverride: SSESpecificationTypeDef = ...,
@@ -766,7 +810,7 @@ class DynamoDBClient(BaseClient):
766
810
  UseLatestRestorableTime: bool = ...,
767
811
  RestoreDateTime: TimestampTypeDef = ...,
768
812
  BillingModeOverride: BillingModeType = ...,
769
- GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexTypeDef] = ...,
813
+ GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
770
814
  LocalSecondaryIndexOverride: Sequence[LocalSecondaryIndexTypeDef] = ...,
771
815
  ProvisionedThroughputOverride: ProvisionedThroughputTypeDef = ...,
772
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
 
@@ -170,6 +173,7 @@ class Exceptions:
170
173
  ItemCollectionSizeLimitExceededException: Type[BotocoreClientError]
171
174
  LimitExceededException: Type[BotocoreClientError]
172
175
  PointInTimeRecoveryUnavailableException: Type[BotocoreClientError]
176
+ PolicyNotFoundException: Type[BotocoreClientError]
173
177
  ProvisionedThroughputExceededException: Type[BotocoreClientError]
174
178
  ReplicaAlreadyExistsException: Type[BotocoreClientError]
175
179
  ReplicaNotFoundException: Type[BotocoreClientError]
@@ -218,7 +222,7 @@ class DynamoDBClient(BaseClient):
218
222
  def batch_get_item(
219
223
  self,
220
224
  *,
221
- RequestItems: Mapping[str, KeysAndAttributesTypeDef],
225
+ RequestItems: Mapping[str, KeysAndAttributesUnionTypeDef],
222
226
  ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
223
227
  ) -> BatchGetItemOutputTypeDef:
224
228
  """
@@ -233,7 +237,7 @@ class DynamoDBClient(BaseClient):
233
237
  def batch_write_item(
234
238
  self,
235
239
  *,
236
- RequestItems: Mapping[str, Sequence[WriteRequestTypeDef]],
240
+ RequestItems: Mapping[str, Sequence[WriteRequestUnionTypeDef]],
237
241
  ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
238
242
  ReturnItemCollectionMetrics: ReturnItemCollectionMetricsType = ...,
239
243
  ) -> BatchWriteItemOutputTypeDef:
@@ -286,7 +290,7 @@ class DynamoDBClient(BaseClient):
286
290
  TableName: str,
287
291
  KeySchema: Sequence[KeySchemaElementTypeDef],
288
292
  LocalSecondaryIndexes: Sequence[LocalSecondaryIndexTypeDef] = ...,
289
- GlobalSecondaryIndexes: Sequence[GlobalSecondaryIndexTypeDef] = ...,
293
+ GlobalSecondaryIndexes: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
290
294
  BillingMode: BillingModeType = ...,
291
295
  ProvisionedThroughput: ProvisionedThroughputTypeDef = ...,
292
296
  StreamSpecification: StreamSpecificationTypeDef = ...,
@@ -294,6 +298,7 @@ class DynamoDBClient(BaseClient):
294
298
  Tags: Sequence[TagTypeDef] = ...,
295
299
  TableClass: TableClassType = ...,
296
300
  DeletionProtectionEnabled: bool = ...,
301
+ ResourcePolicy: str = ...,
297
302
  ) -> CreateTableOutputTypeDef:
298
303
  """
299
304
  The `CreateTable` operation adds a new table to your account.
@@ -332,6 +337,18 @@ class DynamoDBClient(BaseClient):
332
337
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#delete_item)
333
338
  """
334
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
+
335
352
  def delete_table(self, *, TableName: str) -> DeleteTableOutputTypeDef:
336
353
  """
337
354
  The `DeleteTable` operation deletes a table and all of its items.
@@ -542,7 +559,7 @@ class DynamoDBClient(BaseClient):
542
559
  S3SseKmsKeyId: str = ...,
543
560
  ExportFormat: ExportFormatType = ...,
544
561
  ExportType: ExportTypeType = ...,
545
- IncrementalExportSpecification: IncrementalExportSpecificationTypeDef = ...,
562
+ IncrementalExportSpecification: IncrementalExportSpecificationUnionTypeDef = ...,
546
563
  ) -> ExportTableToPointInTimeOutputTypeDef:
547
564
  """
548
565
  Exports table data to an S3 bucket.
@@ -585,14 +602,24 @@ class DynamoDBClient(BaseClient):
585
602
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#get_item)
586
603
  """
587
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
+
588
615
  def import_table(
589
616
  self,
590
617
  *,
591
618
  S3BucketSource: S3BucketSourceTypeDef,
592
619
  InputFormat: InputFormatType,
593
- TableCreationParameters: TableCreationParametersTypeDef,
620
+ TableCreationParameters: TableCreationParametersUnionTypeDef,
594
621
  ClientToken: str = ...,
595
- InputFormatOptions: InputFormatOptionsTypeDef = ...,
622
+ InputFormatOptions: InputFormatOptionsUnionTypeDef = ...,
596
623
  InputCompressionType: InputCompressionTypeType = ...,
597
624
  ) -> ImportTableOutputTypeDef:
598
625
  """
@@ -706,6 +733,23 @@ class DynamoDBClient(BaseClient):
706
733
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client/#put_item)
707
734
  """
708
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
+
709
753
  def query(
710
754
  self,
711
755
  *,
@@ -742,7 +786,7 @@ class DynamoDBClient(BaseClient):
742
786
  TargetTableName: str,
743
787
  BackupArn: str,
744
788
  BillingModeOverride: BillingModeType = ...,
745
- GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexTypeDef] = ...,
789
+ GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
746
790
  LocalSecondaryIndexOverride: Sequence[LocalSecondaryIndexTypeDef] = ...,
747
791
  ProvisionedThroughputOverride: ProvisionedThroughputTypeDef = ...,
748
792
  SSESpecificationOverride: SSESpecificationTypeDef = ...,
@@ -763,7 +807,7 @@ class DynamoDBClient(BaseClient):
763
807
  UseLatestRestorableTime: bool = ...,
764
808
  RestoreDateTime: TimestampTypeDef = ...,
765
809
  BillingModeOverride: BillingModeType = ...,
766
- GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexTypeDef] = ...,
810
+ GlobalSecondaryIndexOverride: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
767
811
  LocalSecondaryIndexOverride: Sequence[LocalSecondaryIndexTypeDef] = ...,
768
812
  ProvisionedThroughputOverride: ProvisionedThroughputTypeDef = ...,
769
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",
@@ -47,15 +47,15 @@ from .type_defs import (
47
47
  ConditionBaseImportTypeDef,
48
48
  ConditionTableTypeDef,
49
49
  DeleteItemOutputTableTypeDef,
50
- DeleteTableOutputTableTypeDef,
50
+ DeleteTableOutputTypeDef,
51
51
  ExpectedAttributeValueTableTypeDef,
52
52
  GetItemOutputTableTypeDef,
53
- GlobalSecondaryIndexDescriptionTableTypeDef,
54
- GlobalSecondaryIndexTypeDef,
55
- GlobalSecondaryIndexUpdateTableTypeDef,
56
- KeysAndAttributesServiceResourceTypeDef,
53
+ GlobalSecondaryIndexDescriptionTypeDef,
54
+ GlobalSecondaryIndexUnionTypeDef,
55
+ GlobalSecondaryIndexUpdateTypeDef,
56
+ KeysAndAttributesServiceResourceUnionTypeDef,
57
57
  KeySchemaElementTypeDef,
58
- LocalSecondaryIndexDescriptionTableTypeDef,
58
+ LocalSecondaryIndexDescriptionTypeDef,
59
59
  LocalSecondaryIndexTypeDef,
60
60
  ProvisionedThroughputDescriptionResponseTypeDef,
61
61
  ProvisionedThroughputTypeDef,
@@ -73,7 +73,7 @@ from .type_defs import (
73
73
  TableClassSummaryResponseTypeDef,
74
74
  TagTypeDef,
75
75
  UpdateItemOutputTableTypeDef,
76
- WriteRequestServiceResourceTypeDef,
76
+ WriteRequestServiceResourceUnionTypeDef,
77
77
  )
78
78
 
79
79
  __all__ = ("DynamoDBServiceResource", "Table", "ServiceResourceTablesCollection")
@@ -153,8 +153,8 @@ class Table(ServiceResource):
153
153
  table_arn: str
154
154
  table_id: str
155
155
  billing_mode_summary: BillingModeSummaryResponseTypeDef
156
- local_secondary_indexes: List[LocalSecondaryIndexDescriptionTableTypeDef]
157
- global_secondary_indexes: List[GlobalSecondaryIndexDescriptionTableTypeDef]
156
+ local_secondary_indexes: List[LocalSecondaryIndexDescriptionTypeDef]
157
+ global_secondary_indexes: List[GlobalSecondaryIndexDescriptionTypeDef]
158
158
  stream_specification: StreamSpecificationResponseTypeDef
159
159
  latest_stream_label: str
160
160
  latest_stream_arn: str
@@ -176,7 +176,7 @@ class Table(ServiceResource):
176
176
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablebatch_writer-method)
177
177
  """
178
178
 
179
- def delete(self) -> DeleteTableOutputTableTypeDef:
179
+ def delete(self) -> DeleteTableOutputTypeDef:
180
180
  """
181
181
  The `DeleteTable` operation deletes a table and all of its items.
182
182
 
@@ -336,7 +336,7 @@ class Table(ServiceResource):
336
336
  AttributeDefinitions: Sequence[AttributeDefinitionTypeDef] = ...,
337
337
  BillingMode: BillingModeType = ...,
338
338
  ProvisionedThroughput: ProvisionedThroughputTypeDef = ...,
339
- GlobalSecondaryIndexUpdates: Sequence[GlobalSecondaryIndexUpdateTableTypeDef] = ...,
339
+ GlobalSecondaryIndexUpdates: Sequence[GlobalSecondaryIndexUpdateTypeDef] = ...,
340
340
  StreamSpecification: StreamSpecificationTypeDef = ...,
341
341
  SSESpecification: SSESpecificationTypeDef = ...,
342
342
  ReplicaUpdates: Sequence[ReplicationGroupUpdateTypeDef] = ...,
@@ -421,7 +421,7 @@ class DynamoDBServiceResource(ServiceResource):
421
421
  def batch_get_item(
422
422
  self,
423
423
  *,
424
- RequestItems: Mapping[str, KeysAndAttributesServiceResourceTypeDef],
424
+ RequestItems: Mapping[str, KeysAndAttributesServiceResourceUnionTypeDef],
425
425
  ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
426
426
  ) -> BatchGetItemOutputServiceResourceTypeDef:
427
427
  """
@@ -436,7 +436,7 @@ class DynamoDBServiceResource(ServiceResource):
436
436
  def batch_write_item(
437
437
  self,
438
438
  *,
439
- RequestItems: Mapping[str, Sequence[WriteRequestServiceResourceTypeDef]],
439
+ RequestItems: Mapping[str, Sequence[WriteRequestServiceResourceUnionTypeDef]],
440
440
  ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
441
441
  ReturnItemCollectionMetrics: ReturnItemCollectionMetricsType = ...,
442
442
  ) -> BatchWriteItemOutputServiceResourceTypeDef:
@@ -455,7 +455,7 @@ class DynamoDBServiceResource(ServiceResource):
455
455
  TableName: str,
456
456
  KeySchema: Sequence[KeySchemaElementTypeDef],
457
457
  LocalSecondaryIndexes: Sequence[LocalSecondaryIndexTypeDef] = ...,
458
- GlobalSecondaryIndexes: Sequence[GlobalSecondaryIndexTypeDef] = ...,
458
+ GlobalSecondaryIndexes: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
459
459
  BillingMode: BillingModeType = ...,
460
460
  ProvisionedThroughput: ProvisionedThroughputTypeDef = ...,
461
461
  StreamSpecification: StreamSpecificationTypeDef = ...,
@@ -463,6 +463,7 @@ class DynamoDBServiceResource(ServiceResource):
463
463
  Tags: Sequence[TagTypeDef] = ...,
464
464
  TableClass: TableClassType = ...,
465
465
  DeletionProtectionEnabled: bool = ...,
466
+ ResourcePolicy: str = ...,
466
467
  ) -> "_Table":
467
468
  """
468
469
  The `CreateTable` operation adds a new table to your account.