DynamoDB¶
Client¶
AsyncDynamoDBClient
¶
AsyncDynamoDBClient(config: AsyncDynamoDBConfig | None = None, plugins: list[Plugin] | None = None)
Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. DynamoDB lets you offload the administrative burdens of operating and scaling a distributed database, so that you don't have to worry about hardware provisioning, setup and configuration, replication, software patching, or cluster scaling.
With DynamoDB, you can create database tables that can store and retrieve any amount of data, and serve any level of request traffic. You can scale up or scale down your tables' throughput capacity without downtime or performance degradation, and use the Amazon Web Services Management Console to monitor resource utilization and performance metrics.
DynamoDB automatically spreads the data and traffic for your tables over a sufficient number of servers to handle your throughput and storage requirements, while maintaining consistent and fast performance. All of your data is stored on solid state disks (SSDs) and automatically replicated across multiple Availability Zones in an Amazon Web Services Region, providing built-in high availability and data durability.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
AsyncDynamoDBConfig | None
|
Optional configuration for the client. Here you can set things like the endpoint for HTTP services or auth credentials. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables applied once to the client's base configuration. Their changes are inherited by every operation invocation. |
None
|
Operations¶
batch_execute_statementbatch_get_itembatch_write_itemcreate_backupcreate_global_tablecreate_tabledelete_backupdelete_itemdelete_resource_policydelete_tabledescribe_backupdescribe_continuous_backupsdescribe_contributor_insightsdescribe_endpointsdescribe_exportdescribe_global_tabledescribe_global_table_settingsdescribe_importdescribe_kinesis_streaming_destinationdescribe_limitsdescribe_tabledescribe_table_replica_auto_scalingdescribe_time_to_livedisable_kinesis_streaming_destinationenable_kinesis_streaming_destinationexecute_statementexecute_transactionexport_table_to_point_in_timeget_itemget_resource_policyimport_tablelist_backupslist_contributor_insightslist_exportslist_global_tableslist_importslist_tableslist_tags_of_resourceput_itemput_resource_policyqueryrestore_table_from_backuprestore_table_to_point_in_timescansearch_vectorstag_resourcetransact_get_itemstransact_write_itemsuntag_resourceupdate_continuous_backupsupdate_contributor_insightsupdate_global_tableupdate_global_table_settingsupdate_itemupdate_kinesis_streaming_destinationupdate_tableupdate_table_replica_auto_scalingupdate_time_to_live
Configuration¶
AsyncDynamoDBConfig
dataclass
¶
Bases: AsyncAwsConfig
DynamoDB configuration (async-resolved).
Attributes¶
auth_scheme_resolver
class-attribute
instance-attribute
¶
An auth scheme resolver that determines the auth scheme for each operation.
auth_schemes
class-attribute
instance-attribute
¶
A map of auth scheme ids to auth schemes.
aws_access_key_id
class-attribute
instance-attribute
¶
aws_access_key_id: str | None = None
The identifier for a secret access key.
aws_credentials_identity_resolver
class-attribute
instance-attribute
¶
aws_credentials_identity_resolver: IdentityResolver[AWSCredentialsIdentity, AWSIdentityProperties] | None = None
Resolves AWS Credentials. Required for operations that use Sigv4 Auth.
aws_secret_access_key
class-attribute
instance-attribute
¶
aws_secret_access_key: str | None = None
A secret access key that can be used to sign requests.
aws_session_token
class-attribute
instance-attribute
¶
aws_session_token: str | None = None
The session token used with temporary AWS credentials.
endpoint_resolver
class-attribute
instance-attribute
¶
The endpoint resolver used to resolve the final endpoint per-operation based on the configuration.
interceptors
class-attribute
instance-attribute
¶
The list of interceptors, which are hooks that are called during the execution of a request.
protocol
class-attribute
instance-attribute
¶
The protocol to serialize and deserialize requests with.
region
class-attribute
instance-attribute
¶
region: str | None = None
The AWS region to connect to. The configured region is used to determine the service endpoint.
sdk_ua_app_id
class-attribute
instance-attribute
¶
sdk_ua_app_id: str | None = None
A unique and opaque application ID that is appended to the User-Agent header.
user_agent_extra
class-attribute
instance-attribute
¶
user_agent_extra: str | None = None
Additional suffix to be added to the User-Agent header.
Methods:¶
resolve
async
classmethod
¶
resolve(*, profile: str | None = None, fs: FileSystem | None = None, config_file_path: str | None = None, credentials_file_path: str | None = None, **overrides: Unpack[_AsyncDynamoDBConfigOverrides]) -> Self
Resolve config from environment, config files, defaults, and explicit overrides.
Plugin
module-attribute
¶
Plugin: TypeAlias = Callable[[AsyncDynamoDBConfig], None]
A callable that customizes a client configuration. Service-level plugins are applied once to the base configuration inherited by every operation. Operation-level plugins apply only to a single operation invocation.
Structures¶
ArchivalSummaryAttributeDefinitionAttributeValueUpdateAutoScalingPolicyDescriptionAutoScalingPolicyUpdateAutoScalingSettingsDescriptionAutoScalingSettingsUpdateAutoScalingTargetTrackingScalingPolicyConfigurationDescriptionAutoScalingTargetTrackingScalingPolicyConfigurationUpdateBackupDescriptionBackupDetailsBackupSummaryBatchStatementErrorBatchStatementRequestBatchStatementResponseBillingModeSummaryCancellationReasonCapacityConditionConditionCheckConsumedCapacityContinuousBackupsDescriptionContributorInsightsSummaryCreateGlobalSecondaryIndexActionCreateGlobalTableWitnessGroupMemberActionCreateReplicaActionCreateReplicationGroupMemberActionCreateVectorIndexActionCsvOptionsDeleteDeleteGlobalSecondaryIndexActionDeleteGlobalTableWitnessGroupMemberActionDeleteReplicaActionDeleteReplicationGroupMemberActionDeleteRequestDeleteVectorIndexActionEnableKinesisStreamingConfigurationEndpointExpectedAttributeValueExportDescriptionExportSummaryFailureExceptionGetGlobalSecondaryIndexGlobalSecondaryIndexAutoScalingUpdateGlobalSecondaryIndexDescriptionGlobalSecondaryIndexInfoGlobalSecondaryIndexUpdateGlobalSecondaryIndexWarmThroughputDescriptionGlobalTableGlobalTableDescriptionGlobalTableGlobalSecondaryIndexSettingsUpdateGlobalTableWitnessDescriptionGlobalTableWitnessGroupUpdateImportSummaryImportTableDescriptionIncrementalExportSpecificationInputFormatOptionsItemCollectionMetricsItemResponseKeySchemaElementKeysAndAttributesKinesisDataStreamDestinationLocalSecondaryIndexLocalSecondaryIndexDescriptionLocalSecondaryIndexInfoOnDemandThroughputOnDemandThroughputOverrideParameterizedStatementPointInTimeRecoveryDescriptionPointInTimeRecoverySpecificationProjectionProvisionedThroughputProvisionedThroughputDescriptionProvisionedThroughputOverridePutPutRequestReplicaReplicaAutoScalingDescriptionReplicaAutoScalingUpdateReplicaDescriptionReplicaGlobalSecondaryIndexReplicaGlobalSecondaryIndexAutoScalingDescriptionReplicaGlobalSecondaryIndexAutoScalingUpdateReplicaGlobalSecondaryIndexDescriptionReplicaGlobalSecondaryIndexSettingsDescriptionReplicaGlobalSecondaryIndexSettingsUpdateReplicaSettingsDescriptionReplicaSettingsUpdateReplicaUpdateReplicationGroupUpdateRestoreSummaryS3BucketSourceSSEDescriptionSSESpecificationSearchResultItemSearchSchemaElementSourceTableDetailsSourceTableFeatureDetailsStreamSpecificationTableAutoScalingDescriptionTableClassSummaryTableCreationParametersTableDescriptionTableWarmThroughputDescriptionTagThrottlingReasonTimeToLiveDescriptionTimeToLiveSpecificationTransactGetItemTransactWriteItemUpdateUpdateGlobalSecondaryIndexActionUpdateKinesisStreamingConfigurationUpdateReplicationGroupMemberActionVectorAttributeDefinitionVectorCapacityVectorIndexVectorIndexDescriptionVectorIndexInfoVectorIndexUpdateWarmThroughputWriteRequest
Errors¶
BackupInUseExceptionBackupNotFoundExceptionConditionalCheckFailedExceptionContinuousBackupsUnavailableExceptionDuplicateItemExceptionExportConflictExceptionExportNotFoundExceptionGlobalTableAlreadyExistsExceptionGlobalTableNotFoundExceptionIdempotentParameterMismatchExceptionImportConflictExceptionImportNotFoundExceptionIndexNotFoundExceptionInternalServerErrorInvalidEndpointExceptionInvalidExportTimeExceptionInvalidRestoreTimeExceptionItemCollectionSizeLimitExceededExceptionLimitExceededExceptionPointInTimeRecoveryUnavailableExceptionPolicyNotFoundExceptionProvisionedThroughputExceededExceptionReplicaAlreadyExistsExceptionReplicaNotFoundExceptionReplicatedWriteConflictExceptionRequestLimitExceededResourceInUseExceptionResourceNotFoundExceptionServiceErrorTableAlreadyExistsExceptionTableInUseExceptionTableNotFoundExceptionThrottlingExceptionTransactionCanceledExceptionTransactionConflictExceptionTransactionInProgressException
Unions¶
Enums¶
ApproximateCreationDateTimePrecisionAttributeActionBackupStatusBackupTypeBackupTypeFilterBatchStatementErrorCodeEnumBillingModeComparisonOperatorConditionalOperatorContinuousBackupsStatusContributorInsightsActionContributorInsightsModeContributorInsightsStatusDestinationStatusExportFormatExportStatusExportTypeExportViewTypeGlobalTableSettingsReplicationModeGlobalTableStatusImportStatusIndexStatusInputCompressionTypeInputFormatKeyTypeMultiRegionConsistencyPointInTimeRecoveryStatusProjectionTypeReplicaStatusReturnConsumedCapacityReturnItemCollectionMetricsReturnValueReturnValuesOnConditionCheckFailureS3SseAlgorithmSSEStatusSSETypeScalarAttributeTypeSearchSchemaElementTypeSelectStreamViewTypeTableClassTableStatusTimeToLiveStatusVectorDistanceFunctionWitnessStatus