export_table_to_point_in_time
¶
export_table_to_point_in_time(
table_arn: TableArn,
s3_bucket: S3Bucket,
*,
config_overrides: Optional[DynamoDBClientConfig] = None,
export_time: Optional[ExportTime] = None,
client_token: Optional[ClientToken] = None,
s3_bucket_owner: Optional[S3BucketOwner] = None,
s3_prefix: Optional[S3Prefix] = None,
s3_sse_algorithm: Optional[S3SseAlgorithm] = None,
s3_sse_kms_key_id: Optional[S3SseKmsKeyId] = None,
export_format: Optional[ExportFormat] = None,
export_type: Optional[ExportType] = None,
incremental_export_specification: Optional[IncrementalExportSpecification] = None,
filter_specification: Optional[FilterSpecification] = None,
) -> ExportTableToPointInTimeOutput
Exports table data to an S3 bucket. The table must have point in time recovery enabled, and you can export data from any time within the point in time recovery window.
Parameters:
-
table_arn(TableArn) –The Amazon Resource Name (ARN) associated with the table to export.
-
export_time(Optional[ExportTime], default:None) –Time in the past from which to export table data, counted in seconds from the start of the Unix epoch. The table export will be a snapshot of the table's state at this point in time.
-
client_token(Optional[ClientToken], default:None) –Providing a
ClientTokenmakes the call toExportTableToPointInTimeInputidempotent, meaning that multiple identical calls have the same effect as one single call.A client token is valid for 8 hours after the first request that uses it is completed. After 8 hours, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 8 hours, or the result might not be idempotent.
If you submit a request with the same client token but a change in other parameters within the 8-hour idempotency window, DynamoDB returns an
ExportConflictException. -
s3_bucket(S3Bucket) –The name of the Amazon S3 bucket to export the snapshot to.
-
s3_bucket_owner(Optional[S3BucketOwner], default:None) –The ID of the Amazon Web Services account that owns the bucket the export will be stored in.
S3BucketOwner is a required parameter when exporting to a S3 bucket in another account.
-
s3_prefix(Optional[S3Prefix], default:None) –The Amazon S3 bucket prefix to use as the file name and path of the exported snapshot.
-
s3_sse_algorithm(Optional[S3SseAlgorithm], default:None) –Type of encryption used on the bucket where export data will be stored. Valid values for
S3SseAlgorithmare:-
AES256- server-side encryption with Amazon S3 managed keys -
KMS- server-side encryption with KMS managed keys
-
-
s3_sse_kms_key_id(Optional[S3SseKmsKeyId], default:None) –The ID of the KMS managed key used to encrypt the S3 bucket where export data will be stored (if applicable).
-
export_format(Optional[ExportFormat], default:None) –The format for the exported data. Valid values for
ExportFormatareDYNAMODB_JSONorION. -
export_type(Optional[ExportType], default:None) –Choice of whether to execute as a full export or incremental export. Valid values are FULL_EXPORT or INCREMENTAL_EXPORT. The default value is FULL_EXPORT. If INCREMENTAL_EXPORT is provided, the IncrementalExportSpecification must also be used.
-
incremental_export_specification(Optional[IncrementalExportSpecification], default:None) –Optional object containing the parameters specific to an incremental export.
-
filter_specification(Optional[FilterSpecification], default:None) –The criteria used to filter which items are included in the point-in-time export. When you specify this parameter, only items that match the key conditions and filter expressions are exported.
Raises:
-
ExportConflictException–There was a conflict when writing to the specified S3 bucket.
-
InternalServerError–An error occurred on the server side.
-
InvalidExportTimeException–The specified
ExportTimeis outside of the point in time recovery window. -
LimitExceededException–There is no limit to the number of daily on-demand backups that can be taken.
For most purposes, up to 500 simultaneous table operations are allowed per account. These operations include
CreateTable,UpdateTable,DeleteTable,UpdateTimeToLive,RestoreTableFromBackup, andRestoreTableToPointInTime.When you are creating a table with one or more secondary indexes, you can have up to 250 such requests running at a time. However, if the table or index specifications are complex, then DynamoDB might temporarily reduce the number of concurrent operations.
When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.
There is a soft account quota of 2,500 tables.
GetRecords was called with a value of more than 1000 for the limit request parameter.
More than 2 processes are reading from the same streams shard at the same time. Exceeding this limit may result in request throttling.
-
PointInTimeRecoveryUnavailableException–Point in time recovery has not yet been enabled for this source table.
-
TableNotFoundException–A source table with the name
TableNamedoes not currently exist within the subscriber's account or the subscriber is operating in the wrong Amazon Web Services Region. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_dynamodb/_services/dynamo_db.py
2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 | |