aws-sdk-dynamodb 1.73.0 → 1.76.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +333 -54
- data/lib/aws-sdk-dynamodb/client_api.rb +153 -0
- data/lib/aws-sdk-dynamodb/errors.rb +32 -0
- data/lib/aws-sdk-dynamodb/table.rb +28 -18
- data/lib/aws-sdk-dynamodb/types.rb +675 -38
- data/lib/aws-sdk-dynamodb.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38e9a6c4390046dd80d332b38be8078908a2b7a60249805aabc34ed489c9edd1
|
4
|
+
data.tar.gz: f1b07247a61dc67564a2d37779247a438025d9a242d00b08eb4aa0c4a229a911
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8dd2c846e884e49051e21144be2f432f6fbc81d33a98bf7eea5ce3150ca1e40018e7318f56778648c33212ac54b748808bb0c6e6d938016d0444e4d8ad8e2f8
|
7
|
+
data.tar.gz: a032cbaad4f8ac8d1994220c48d82ff81c918f567cb3aca4bd86b8e9db7f728a1442c4188fd44ef024698700fdf2bae66b90003d388b027ef6e6f317c63dbcbb
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.76.0 (2022-08-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for importing data from S3 into a new DynamoDB table
|
8
|
+
|
9
|
+
1.75.0 (2022-06-17)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Doc only update for DynamoDB service
|
13
|
+
|
14
|
+
1.74.0 (2022-02-24)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
4
19
|
1.73.0 (2022-02-21)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.76.0
|
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
30
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
32
33
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
@@ -78,6 +79,7 @@ module Aws::DynamoDB
|
|
78
79
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
79
80
|
add_plugin(Aws::Plugins::TransferEncoding)
|
80
81
|
add_plugin(Aws::Plugins::HttpChecksum)
|
82
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
81
83
|
add_plugin(Aws::Plugins::DefaultsMode)
|
82
84
|
add_plugin(Aws::Plugins::RecursionDetection)
|
83
85
|
add_plugin(Aws::Plugins::SignatureV4)
|
@@ -379,13 +381,25 @@ module Aws::DynamoDB
|
|
379
381
|
# @!group API Operations
|
380
382
|
|
381
383
|
# This operation allows you to perform batch reads or writes on data
|
382
|
-
# stored in DynamoDB, using PartiQL.
|
384
|
+
# stored in DynamoDB, using PartiQL. Each read statement in a
|
385
|
+
# `BatchExecuteStatement` must specify an equality condition on all key
|
386
|
+
# attributes. This enforces that each `SELECT` statement in a batch
|
387
|
+
# returns at most a single item.
|
383
388
|
#
|
384
389
|
# <note markdown="1"> The entire batch must consist of either read statements or write
|
385
390
|
# statements, you cannot mix both in one batch.
|
386
391
|
#
|
387
392
|
# </note>
|
388
393
|
#
|
394
|
+
# A HTTP 200 response does not mean that all statements in the
|
395
|
+
# BatchExecuteStatement succeeded. Error details for individual
|
396
|
+
# statements can be found under the [Error][1] field of the
|
397
|
+
# `BatchStatementResponse` for each statement.
|
398
|
+
#
|
399
|
+
#
|
400
|
+
#
|
401
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchStatementResponse.html#DDB-Type-BatchStatementResponse-Error
|
402
|
+
#
|
389
403
|
# @option params [required, Array<Types::BatchStatementRequest>] :statements
|
390
404
|
# The list of PartiQL statements representing the batch to run.
|
391
405
|
#
|
@@ -1760,6 +1774,10 @@ module Aws::DynamoDB
|
|
1760
1774
|
#
|
1761
1775
|
# * `ALL_OLD` - The content of the old item is returned.
|
1762
1776
|
#
|
1777
|
+
# There is no additional cost associated with requesting a return value
|
1778
|
+
# aside from the small network and processing overhead of receiving a
|
1779
|
+
# larger response. No read capacity units are consumed.
|
1780
|
+
#
|
1763
1781
|
# <note markdown="1"> The `ReturnValues` parameter is used by several DynamoDB operations;
|
1764
1782
|
# however, `DeleteItem` does not recognize any values other than `NONE`
|
1765
1783
|
# or `ALL_OLD`.
|
@@ -2509,6 +2527,79 @@ module Aws::DynamoDB
|
|
2509
2527
|
req.send_request(options)
|
2510
2528
|
end
|
2511
2529
|
|
2530
|
+
# Represents the properties of the import.
|
2531
|
+
#
|
2532
|
+
# @option params [required, String] :import_arn
|
2533
|
+
# The Amazon Resource Name (ARN) associated with the table you're
|
2534
|
+
# importing to.
|
2535
|
+
#
|
2536
|
+
# @return [Types::DescribeImportOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2537
|
+
#
|
2538
|
+
# * {Types::DescribeImportOutput#import_table_description #import_table_description} => Types::ImportTableDescription
|
2539
|
+
#
|
2540
|
+
# @example Request syntax with placeholder values
|
2541
|
+
#
|
2542
|
+
# resp = client.describe_import({
|
2543
|
+
# import_arn: "ImportArn", # required
|
2544
|
+
# })
|
2545
|
+
#
|
2546
|
+
# @example Response structure
|
2547
|
+
#
|
2548
|
+
# resp.import_table_description.import_arn #=> String
|
2549
|
+
# resp.import_table_description.import_status #=> String, one of "IN_PROGRESS", "COMPLETED", "CANCELLING", "CANCELLED", "FAILED"
|
2550
|
+
# resp.import_table_description.table_arn #=> String
|
2551
|
+
# resp.import_table_description.table_id #=> String
|
2552
|
+
# resp.import_table_description.client_token #=> String
|
2553
|
+
# resp.import_table_description.s3_bucket_source.s3_bucket_owner #=> String
|
2554
|
+
# resp.import_table_description.s3_bucket_source.s3_bucket #=> String
|
2555
|
+
# resp.import_table_description.s3_bucket_source.s3_key_prefix #=> String
|
2556
|
+
# resp.import_table_description.error_count #=> Integer
|
2557
|
+
# resp.import_table_description.cloud_watch_log_group_arn #=> String
|
2558
|
+
# resp.import_table_description.input_format #=> String, one of "DYNAMODB_JSON", "ION", "CSV"
|
2559
|
+
# resp.import_table_description.input_format_options.csv.delimiter #=> String
|
2560
|
+
# resp.import_table_description.input_format_options.csv.header_list #=> Array
|
2561
|
+
# resp.import_table_description.input_format_options.csv.header_list[0] #=> String
|
2562
|
+
# resp.import_table_description.input_compression_type #=> String, one of "GZIP", "ZSTD", "NONE"
|
2563
|
+
# resp.import_table_description.table_creation_parameters.table_name #=> String
|
2564
|
+
# resp.import_table_description.table_creation_parameters.attribute_definitions #=> Array
|
2565
|
+
# resp.import_table_description.table_creation_parameters.attribute_definitions[0].attribute_name #=> String
|
2566
|
+
# resp.import_table_description.table_creation_parameters.attribute_definitions[0].attribute_type #=> String, one of "S", "N", "B"
|
2567
|
+
# resp.import_table_description.table_creation_parameters.key_schema #=> Array
|
2568
|
+
# resp.import_table_description.table_creation_parameters.key_schema[0].attribute_name #=> String
|
2569
|
+
# resp.import_table_description.table_creation_parameters.key_schema[0].key_type #=> String, one of "HASH", "RANGE"
|
2570
|
+
# resp.import_table_description.table_creation_parameters.billing_mode #=> String, one of "PROVISIONED", "PAY_PER_REQUEST"
|
2571
|
+
# resp.import_table_description.table_creation_parameters.provisioned_throughput.read_capacity_units #=> Integer
|
2572
|
+
# resp.import_table_description.table_creation_parameters.provisioned_throughput.write_capacity_units #=> Integer
|
2573
|
+
# resp.import_table_description.table_creation_parameters.sse_specification.enabled #=> Boolean
|
2574
|
+
# resp.import_table_description.table_creation_parameters.sse_specification.sse_type #=> String, one of "AES256", "KMS"
|
2575
|
+
# resp.import_table_description.table_creation_parameters.sse_specification.kms_master_key_id #=> String
|
2576
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes #=> Array
|
2577
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].index_name #=> String
|
2578
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].key_schema #=> Array
|
2579
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].key_schema[0].attribute_name #=> String
|
2580
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].key_schema[0].key_type #=> String, one of "HASH", "RANGE"
|
2581
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].projection.projection_type #=> String, one of "ALL", "KEYS_ONLY", "INCLUDE"
|
2582
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].projection.non_key_attributes #=> Array
|
2583
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].projection.non_key_attributes[0] #=> String
|
2584
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].provisioned_throughput.read_capacity_units #=> Integer
|
2585
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].provisioned_throughput.write_capacity_units #=> Integer
|
2586
|
+
# resp.import_table_description.start_time #=> Time
|
2587
|
+
# resp.import_table_description.end_time #=> Time
|
2588
|
+
# resp.import_table_description.processed_size_bytes #=> Integer
|
2589
|
+
# resp.import_table_description.processed_item_count #=> Integer
|
2590
|
+
# resp.import_table_description.imported_item_count #=> Integer
|
2591
|
+
# resp.import_table_description.failure_code #=> String
|
2592
|
+
# resp.import_table_description.failure_message #=> String
|
2593
|
+
#
|
2594
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeImport AWS API Documentation
|
2595
|
+
#
|
2596
|
+
# @overload describe_import(params = {})
|
2597
|
+
# @param [Hash] params ({})
|
2598
|
+
def describe_import(params = {}, options = {})
|
2599
|
+
req = build_request(:describe_import, params)
|
2600
|
+
req.send_request(options)
|
2601
|
+
end
|
2602
|
+
|
2512
2603
|
# Returns information about the status of Kinesis streaming.
|
2513
2604
|
#
|
2514
2605
|
# @option params [required, String] :table_name
|
@@ -3216,8 +3307,9 @@ module Aws::DynamoDB
|
|
3216
3307
|
# The Amazon Resource Name (ARN) associated with the table to export.
|
3217
3308
|
#
|
3218
3309
|
# @option params [Time,DateTime,Date,Integer,String] :export_time
|
3219
|
-
# Time in the past from which to export table data
|
3220
|
-
#
|
3310
|
+
# Time in the past from which to export table data, counted in seconds
|
3311
|
+
# from the start of the Unix epoch. The table export will be a snapshot
|
3312
|
+
# of the table's state at this point in time.
|
3221
3313
|
#
|
3222
3314
|
# @option params [String] :client_token
|
3223
3315
|
# Providing a `ClientToken` makes the call to
|
@@ -3232,7 +3324,7 @@ module Aws::DynamoDB
|
|
3232
3324
|
#
|
3233
3325
|
# If you submit a request with the same client token but a change in
|
3234
3326
|
# other parameters within the 8-hour idempotency window, DynamoDB
|
3235
|
-
# returns an `
|
3327
|
+
# returns an `ImportConflictException`.
|
3236
3328
|
#
|
3237
3329
|
# **A suitable default value is auto-generated.** You should normally
|
3238
3330
|
# not need to pass this option.**
|
@@ -3508,6 +3600,167 @@ module Aws::DynamoDB
|
|
3508
3600
|
req.send_request(options)
|
3509
3601
|
end
|
3510
3602
|
|
3603
|
+
# Imports table data from an S3 bucket.
|
3604
|
+
#
|
3605
|
+
# @option params [String] :client_token
|
3606
|
+
# Providing a `ClientToken` makes the call to `ImportTableInput`
|
3607
|
+
# idempotent, meaning that multiple identical calls have the same effect
|
3608
|
+
# as one single call.
|
3609
|
+
#
|
3610
|
+
# A client token is valid for 8 hours after the first request that uses
|
3611
|
+
# it is completed. After 8 hours, any request with the same client token
|
3612
|
+
# is treated as a new request. Do not resubmit the same request with the
|
3613
|
+
# same client token for more than 8 hours, or the result might not be
|
3614
|
+
# idempotent.
|
3615
|
+
#
|
3616
|
+
# If you submit a request with the same client token but a change in
|
3617
|
+
# other parameters within the 8-hour idempotency window, DynamoDB
|
3618
|
+
# returns an `IdempotentParameterMismatch` exception.
|
3619
|
+
#
|
3620
|
+
# **A suitable default value is auto-generated.** You should normally
|
3621
|
+
# not need to pass this option.**
|
3622
|
+
#
|
3623
|
+
# @option params [required, Types::S3BucketSource] :s3_bucket_source
|
3624
|
+
# The S3 bucket that provides the source for the import.
|
3625
|
+
#
|
3626
|
+
# @option params [required, String] :input_format
|
3627
|
+
# The format of the source data. Valid values for `ImportFormat` are
|
3628
|
+
# `CSV`, `DYNAMODB_JSON` or `ION`.
|
3629
|
+
#
|
3630
|
+
# @option params [Types::InputFormatOptions] :input_format_options
|
3631
|
+
# Additional properties that specify how the input is formatted,
|
3632
|
+
#
|
3633
|
+
# @option params [String] :input_compression_type
|
3634
|
+
# Type of compression to be used on the input coming from the imported
|
3635
|
+
# table.
|
3636
|
+
#
|
3637
|
+
# @option params [required, Types::TableCreationParameters] :table_creation_parameters
|
3638
|
+
# Parameters for the table to import the data into.
|
3639
|
+
#
|
3640
|
+
# @return [Types::ImportTableOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3641
|
+
#
|
3642
|
+
# * {Types::ImportTableOutput#import_table_description #import_table_description} => Types::ImportTableDescription
|
3643
|
+
#
|
3644
|
+
# @example Request syntax with placeholder values
|
3645
|
+
#
|
3646
|
+
# resp = client.import_table({
|
3647
|
+
# client_token: "ClientToken",
|
3648
|
+
# s3_bucket_source: { # required
|
3649
|
+
# s3_bucket_owner: "S3BucketOwner",
|
3650
|
+
# s3_bucket: "S3Bucket", # required
|
3651
|
+
# s3_key_prefix: "S3Prefix",
|
3652
|
+
# },
|
3653
|
+
# input_format: "DYNAMODB_JSON", # required, accepts DYNAMODB_JSON, ION, CSV
|
3654
|
+
# input_format_options: {
|
3655
|
+
# csv: {
|
3656
|
+
# delimiter: "CsvDelimiter",
|
3657
|
+
# header_list: ["CsvHeader"],
|
3658
|
+
# },
|
3659
|
+
# },
|
3660
|
+
# input_compression_type: "GZIP", # accepts GZIP, ZSTD, NONE
|
3661
|
+
# table_creation_parameters: { # required
|
3662
|
+
# table_name: "TableName", # required
|
3663
|
+
# attribute_definitions: [ # required
|
3664
|
+
# {
|
3665
|
+
# attribute_name: "KeySchemaAttributeName", # required
|
3666
|
+
# attribute_type: "S", # required, accepts S, N, B
|
3667
|
+
# },
|
3668
|
+
# ],
|
3669
|
+
# key_schema: [ # required
|
3670
|
+
# {
|
3671
|
+
# attribute_name: "KeySchemaAttributeName", # required
|
3672
|
+
# key_type: "HASH", # required, accepts HASH, RANGE
|
3673
|
+
# },
|
3674
|
+
# ],
|
3675
|
+
# billing_mode: "PROVISIONED", # accepts PROVISIONED, PAY_PER_REQUEST
|
3676
|
+
# provisioned_throughput: {
|
3677
|
+
# read_capacity_units: 1, # required
|
3678
|
+
# write_capacity_units: 1, # required
|
3679
|
+
# },
|
3680
|
+
# sse_specification: {
|
3681
|
+
# enabled: false,
|
3682
|
+
# sse_type: "AES256", # accepts AES256, KMS
|
3683
|
+
# kms_master_key_id: "KMSMasterKeyId",
|
3684
|
+
# },
|
3685
|
+
# global_secondary_indexes: [
|
3686
|
+
# {
|
3687
|
+
# index_name: "IndexName", # required
|
3688
|
+
# key_schema: [ # required
|
3689
|
+
# {
|
3690
|
+
# attribute_name: "KeySchemaAttributeName", # required
|
3691
|
+
# key_type: "HASH", # required, accepts HASH, RANGE
|
3692
|
+
# },
|
3693
|
+
# ],
|
3694
|
+
# projection: { # required
|
3695
|
+
# projection_type: "ALL", # accepts ALL, KEYS_ONLY, INCLUDE
|
3696
|
+
# non_key_attributes: ["NonKeyAttributeName"],
|
3697
|
+
# },
|
3698
|
+
# provisioned_throughput: {
|
3699
|
+
# read_capacity_units: 1, # required
|
3700
|
+
# write_capacity_units: 1, # required
|
3701
|
+
# },
|
3702
|
+
# },
|
3703
|
+
# ],
|
3704
|
+
# },
|
3705
|
+
# })
|
3706
|
+
#
|
3707
|
+
# @example Response structure
|
3708
|
+
#
|
3709
|
+
# resp.import_table_description.import_arn #=> String
|
3710
|
+
# resp.import_table_description.import_status #=> String, one of "IN_PROGRESS", "COMPLETED", "CANCELLING", "CANCELLED", "FAILED"
|
3711
|
+
# resp.import_table_description.table_arn #=> String
|
3712
|
+
# resp.import_table_description.table_id #=> String
|
3713
|
+
# resp.import_table_description.client_token #=> String
|
3714
|
+
# resp.import_table_description.s3_bucket_source.s3_bucket_owner #=> String
|
3715
|
+
# resp.import_table_description.s3_bucket_source.s3_bucket #=> String
|
3716
|
+
# resp.import_table_description.s3_bucket_source.s3_key_prefix #=> String
|
3717
|
+
# resp.import_table_description.error_count #=> Integer
|
3718
|
+
# resp.import_table_description.cloud_watch_log_group_arn #=> String
|
3719
|
+
# resp.import_table_description.input_format #=> String, one of "DYNAMODB_JSON", "ION", "CSV"
|
3720
|
+
# resp.import_table_description.input_format_options.csv.delimiter #=> String
|
3721
|
+
# resp.import_table_description.input_format_options.csv.header_list #=> Array
|
3722
|
+
# resp.import_table_description.input_format_options.csv.header_list[0] #=> String
|
3723
|
+
# resp.import_table_description.input_compression_type #=> String, one of "GZIP", "ZSTD", "NONE"
|
3724
|
+
# resp.import_table_description.table_creation_parameters.table_name #=> String
|
3725
|
+
# resp.import_table_description.table_creation_parameters.attribute_definitions #=> Array
|
3726
|
+
# resp.import_table_description.table_creation_parameters.attribute_definitions[0].attribute_name #=> String
|
3727
|
+
# resp.import_table_description.table_creation_parameters.attribute_definitions[0].attribute_type #=> String, one of "S", "N", "B"
|
3728
|
+
# resp.import_table_description.table_creation_parameters.key_schema #=> Array
|
3729
|
+
# resp.import_table_description.table_creation_parameters.key_schema[0].attribute_name #=> String
|
3730
|
+
# resp.import_table_description.table_creation_parameters.key_schema[0].key_type #=> String, one of "HASH", "RANGE"
|
3731
|
+
# resp.import_table_description.table_creation_parameters.billing_mode #=> String, one of "PROVISIONED", "PAY_PER_REQUEST"
|
3732
|
+
# resp.import_table_description.table_creation_parameters.provisioned_throughput.read_capacity_units #=> Integer
|
3733
|
+
# resp.import_table_description.table_creation_parameters.provisioned_throughput.write_capacity_units #=> Integer
|
3734
|
+
# resp.import_table_description.table_creation_parameters.sse_specification.enabled #=> Boolean
|
3735
|
+
# resp.import_table_description.table_creation_parameters.sse_specification.sse_type #=> String, one of "AES256", "KMS"
|
3736
|
+
# resp.import_table_description.table_creation_parameters.sse_specification.kms_master_key_id #=> String
|
3737
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes #=> Array
|
3738
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].index_name #=> String
|
3739
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].key_schema #=> Array
|
3740
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].key_schema[0].attribute_name #=> String
|
3741
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].key_schema[0].key_type #=> String, one of "HASH", "RANGE"
|
3742
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].projection.projection_type #=> String, one of "ALL", "KEYS_ONLY", "INCLUDE"
|
3743
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].projection.non_key_attributes #=> Array
|
3744
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].projection.non_key_attributes[0] #=> String
|
3745
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].provisioned_throughput.read_capacity_units #=> Integer
|
3746
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].provisioned_throughput.write_capacity_units #=> Integer
|
3747
|
+
# resp.import_table_description.start_time #=> Time
|
3748
|
+
# resp.import_table_description.end_time #=> Time
|
3749
|
+
# resp.import_table_description.processed_size_bytes #=> Integer
|
3750
|
+
# resp.import_table_description.processed_item_count #=> Integer
|
3751
|
+
# resp.import_table_description.imported_item_count #=> Integer
|
3752
|
+
# resp.import_table_description.failure_code #=> String
|
3753
|
+
# resp.import_table_description.failure_message #=> String
|
3754
|
+
#
|
3755
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ImportTable AWS API Documentation
|
3756
|
+
#
|
3757
|
+
# @overload import_table(params = {})
|
3758
|
+
# @param [Hash] params ({})
|
3759
|
+
def import_table(params = {}, options = {})
|
3760
|
+
req = build_request(:import_table, params)
|
3761
|
+
req.send_request(options)
|
3762
|
+
end
|
3763
|
+
|
3511
3764
|
# List backups associated with an Amazon Web Services account. To list
|
3512
3765
|
# backups for a given table, specify `TableName`. `ListBackups` returns
|
3513
3766
|
# a paginated list of results with at most 1 MB worth of items in a
|
@@ -3546,7 +3799,8 @@ module Aws::DynamoDB
|
|
3546
3799
|
#
|
3547
3800
|
# Where `BackupType` can be:
|
3548
3801
|
#
|
3549
|
-
# * `USER` - On-demand backup created by you.
|
3802
|
+
# * `USER` - On-demand backup created by you. (The default setting if no
|
3803
|
+
# other backup types are specified.)
|
3550
3804
|
#
|
3551
3805
|
# * `SYSTEM` - On-demand backup automatically created by DynamoDB.
|
3552
3806
|
#
|
@@ -3737,6 +3991,59 @@ module Aws::DynamoDB
|
|
3737
3991
|
req.send_request(options)
|
3738
3992
|
end
|
3739
3993
|
|
3994
|
+
# Lists completed imports within the past 90 days.
|
3995
|
+
#
|
3996
|
+
# @option params [String] :table_arn
|
3997
|
+
# The Amazon Resource Name (ARN) associated with the table that was
|
3998
|
+
# imported to.
|
3999
|
+
#
|
4000
|
+
# @option params [Integer] :page_size
|
4001
|
+
# The number of `ImportSummary `objects returned in a single page.
|
4002
|
+
#
|
4003
|
+
# @option params [String] :next_token
|
4004
|
+
# An optional string that, if supplied, must be copied from the output
|
4005
|
+
# of a previous call to `ListImports`. When provided in this manner, the
|
4006
|
+
# API fetches the next page of results.
|
4007
|
+
#
|
4008
|
+
# @return [Types::ListImportsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4009
|
+
#
|
4010
|
+
# * {Types::ListImportsOutput#import_summary_list #import_summary_list} => Array<Types::ImportSummary>
|
4011
|
+
# * {Types::ListImportsOutput#next_token #next_token} => String
|
4012
|
+
#
|
4013
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4014
|
+
#
|
4015
|
+
# @example Request syntax with placeholder values
|
4016
|
+
#
|
4017
|
+
# resp = client.list_imports({
|
4018
|
+
# table_arn: "TableArn",
|
4019
|
+
# page_size: 1,
|
4020
|
+
# next_token: "ImportNextToken",
|
4021
|
+
# })
|
4022
|
+
#
|
4023
|
+
# @example Response structure
|
4024
|
+
#
|
4025
|
+
# resp.import_summary_list #=> Array
|
4026
|
+
# resp.import_summary_list[0].import_arn #=> String
|
4027
|
+
# resp.import_summary_list[0].import_status #=> String, one of "IN_PROGRESS", "COMPLETED", "CANCELLING", "CANCELLED", "FAILED"
|
4028
|
+
# resp.import_summary_list[0].table_arn #=> String
|
4029
|
+
# resp.import_summary_list[0].s3_bucket_source.s3_bucket_owner #=> String
|
4030
|
+
# resp.import_summary_list[0].s3_bucket_source.s3_bucket #=> String
|
4031
|
+
# resp.import_summary_list[0].s3_bucket_source.s3_key_prefix #=> String
|
4032
|
+
# resp.import_summary_list[0].cloud_watch_log_group_arn #=> String
|
4033
|
+
# resp.import_summary_list[0].input_format #=> String, one of "DYNAMODB_JSON", "ION", "CSV"
|
4034
|
+
# resp.import_summary_list[0].start_time #=> Time
|
4035
|
+
# resp.import_summary_list[0].end_time #=> Time
|
4036
|
+
# resp.next_token #=> String
|
4037
|
+
#
|
4038
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListImports AWS API Documentation
|
4039
|
+
#
|
4040
|
+
# @overload list_imports(params = {})
|
4041
|
+
# @param [Hash] params ({})
|
4042
|
+
def list_imports(params = {}, options = {})
|
4043
|
+
req = build_request(:list_imports, params)
|
4044
|
+
req.send_request(options)
|
4045
|
+
end
|
4046
|
+
|
3740
4047
|
# Returns an array of table names associated with the current account
|
3741
4048
|
# and endpoint. The output from `ListTables` is paginated, with each
|
3742
4049
|
# page returning a maximum of 100 table names.
|
@@ -3853,29 +4160,6 @@ module Aws::DynamoDB
|
|
3853
4160
|
# item's attribute values in the same operation, using the
|
3854
4161
|
# `ReturnValues` parameter.
|
3855
4162
|
#
|
3856
|
-
# This topic provides general information about the `PutItem` API.
|
3857
|
-
#
|
3858
|
-
# For information on how to call the `PutItem` API using the Amazon Web
|
3859
|
-
# Services SDK in specific languages, see the following:
|
3860
|
-
#
|
3861
|
-
# * [ PutItem in the Command Line Interface][1]
|
3862
|
-
#
|
3863
|
-
# * [ PutItem in the SDK for .NET][2]
|
3864
|
-
#
|
3865
|
-
# * [ PutItem in the SDK for C++][3]
|
3866
|
-
#
|
3867
|
-
# * [ PutItem in the SDK for Go][4]
|
3868
|
-
#
|
3869
|
-
# * [ PutItem in the SDK for Java][5]
|
3870
|
-
#
|
3871
|
-
# * [ PutItem in the SDK for JavaScript][6]
|
3872
|
-
#
|
3873
|
-
# * [ PutItem in the SDK for PHP V3][7]
|
3874
|
-
#
|
3875
|
-
# * [ PutItem in the SDK for Python (Boto)][8]
|
3876
|
-
#
|
3877
|
-
# * [ PutItem in the SDK for Ruby V2][9]
|
3878
|
-
#
|
3879
4163
|
# When you add an item, the primary key attributes are the only required
|
3880
4164
|
# attributes. Attribute values cannot be null.
|
3881
4165
|
#
|
@@ -3896,21 +4180,12 @@ module Aws::DynamoDB
|
|
3896
4180
|
#
|
3897
4181
|
# </note>
|
3898
4182
|
#
|
3899
|
-
# For more information about `PutItem`, see [Working with Items][
|
4183
|
+
# For more information about `PutItem`, see [Working with Items][1] in
|
3900
4184
|
# the *Amazon DynamoDB Developer Guide*.
|
3901
4185
|
#
|
3902
4186
|
#
|
3903
4187
|
#
|
3904
|
-
# [1]:
|
3905
|
-
# [2]: http://docs.aws.amazon.com/goto/DotNetSDKV3/dynamodb-2012-08-10/PutItem
|
3906
|
-
# [3]: http://docs.aws.amazon.com/goto/SdkForCpp/dynamodb-2012-08-10/PutItem
|
3907
|
-
# [4]: http://docs.aws.amazon.com/goto/SdkForGoV1/dynamodb-2012-08-10/PutItem
|
3908
|
-
# [5]: http://docs.aws.amazon.com/goto/SdkForJava/dynamodb-2012-08-10/PutItem
|
3909
|
-
# [6]: http://docs.aws.amazon.com/goto/AWSJavaScriptSDK/dynamodb-2012-08-10/PutItem
|
3910
|
-
# [7]: http://docs.aws.amazon.com/goto/SdkForPHPV3/dynamodb-2012-08-10/PutItem
|
3911
|
-
# [8]: http://docs.aws.amazon.com/goto/boto3/dynamodb-2012-08-10/PutItem
|
3912
|
-
# [9]: http://docs.aws.amazon.com/goto/SdkForRubyV2/dynamodb-2012-08-10/PutItem
|
3913
|
-
# [10]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html
|
4188
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html
|
3914
4189
|
#
|
3915
4190
|
# @option params [required, String] :table_name
|
3916
4191
|
# The name of the table to contain the item.
|
@@ -3965,6 +4240,10 @@ module Aws::DynamoDB
|
|
3965
4240
|
#
|
3966
4241
|
# The values returned are strongly consistent.
|
3967
4242
|
#
|
4243
|
+
# There is no additional cost associated with requesting a return value
|
4244
|
+
# aside from the small network and processing overhead of receiving a
|
4245
|
+
# larger response. No read capacity units are consumed.
|
4246
|
+
#
|
3968
4247
|
# <note markdown="1"> The `ReturnValues` parameter is used by several DynamoDB operations;
|
3969
4248
|
# however, `PutItem` does not recognize any values other than `NONE` or
|
3970
4249
|
# `ALL_OLD`.
|
@@ -4286,8 +4565,9 @@ module Aws::DynamoDB
|
|
4286
4565
|
# matching items themselves.
|
4287
4566
|
#
|
4288
4567
|
# * `SPECIFIC_ATTRIBUTES` - Returns only the attributes listed in
|
4289
|
-
# `
|
4290
|
-
# `
|
4568
|
+
# `ProjectionExpression`. This return value is equivalent to
|
4569
|
+
# specifying `ProjectionExpression` without specifying any value for
|
4570
|
+
# `Select`.
|
4291
4571
|
#
|
4292
4572
|
# If you query or scan a local secondary index and request only
|
4293
4573
|
# attributes that are projected into that index, the operation will
|
@@ -4300,12 +4580,12 @@ module Aws::DynamoDB
|
|
4300
4580
|
# attributes that are projected into the index. Global secondary index
|
4301
4581
|
# queries cannot fetch attributes from the parent table.
|
4302
4582
|
#
|
4303
|
-
# If neither `Select` nor `
|
4583
|
+
# If neither `Select` nor `ProjectionExpression` are specified, DynamoDB
|
4304
4584
|
# defaults to `ALL_ATTRIBUTES` when accessing a table, and
|
4305
4585
|
# `ALL_PROJECTED_ATTRIBUTES` when accessing an index. You cannot use
|
4306
|
-
# both `Select` and `
|
4586
|
+
# both `Select` and `ProjectionExpression` together in a single request,
|
4307
4587
|
# unless the value for `Select` is `SPECIFIC_ATTRIBUTES`. (This usage is
|
4308
|
-
# equivalent to specifying `
|
4588
|
+
# equivalent to specifying `ProjectionExpression` without any value for
|
4309
4589
|
# `Select`.)
|
4310
4590
|
#
|
4311
4591
|
# <note markdown="1"> If you use the `ProjectionExpression` parameter, then the value for
|
@@ -4454,7 +4734,7 @@ module Aws::DynamoDB
|
|
4454
4734
|
#
|
4455
4735
|
#
|
4456
4736
|
#
|
4457
|
-
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#
|
4737
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Query.FilterExpression
|
4458
4738
|
#
|
4459
4739
|
# @option params [String] :key_condition_expression
|
4460
4740
|
# The condition that specifies the key values for items to be retrieved
|
@@ -5239,8 +5519,9 @@ module Aws::DynamoDB
|
|
5239
5519
|
# matching items themselves.
|
5240
5520
|
#
|
5241
5521
|
# * `SPECIFIC_ATTRIBUTES` - Returns only the attributes listed in
|
5242
|
-
# `
|
5243
|
-
# `
|
5522
|
+
# `ProjectionExpression`. This return value is equivalent to
|
5523
|
+
# specifying `ProjectionExpression` without specifying any value for
|
5524
|
+
# `Select`.
|
5244
5525
|
#
|
5245
5526
|
# If you query or scan a local secondary index and request only
|
5246
5527
|
# attributes that are projected into that index, the operation reads
|
@@ -5253,12 +5534,12 @@ module Aws::DynamoDB
|
|
5253
5534
|
# attributes that are projected into the index. Global secondary index
|
5254
5535
|
# queries cannot fetch attributes from the parent table.
|
5255
5536
|
#
|
5256
|
-
# If neither `Select` nor `
|
5537
|
+
# If neither `Select` nor `ProjectionExpression` are specified, DynamoDB
|
5257
5538
|
# defaults to `ALL_ATTRIBUTES` when accessing a table, and
|
5258
5539
|
# `ALL_PROJECTED_ATTRIBUTES` when accessing an index. You cannot use
|
5259
|
-
# both `Select` and `
|
5540
|
+
# both `Select` and `ProjectionExpression` together in a single request,
|
5260
5541
|
# unless the value for `Select` is `SPECIFIC_ATTRIBUTES`. (This usage is
|
5261
|
-
# equivalent to specifying `
|
5542
|
+
# equivalent to specifying `ProjectionExpression` without any value for
|
5262
5543
|
# `Select`.)
|
5263
5544
|
#
|
5264
5545
|
# <note markdown="1"> If you use the `ProjectionExpression` parameter, then the value for
|
@@ -5379,7 +5660,7 @@ module Aws::DynamoDB
|
|
5379
5660
|
#
|
5380
5661
|
#
|
5381
5662
|
#
|
5382
|
-
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#
|
5663
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Query.FilterExpression
|
5383
5664
|
#
|
5384
5665
|
# @option params [Hash<String,String>] :expression_attribute_names
|
5385
5666
|
# One or more substitution tokens for attribute names in an expression.
|
@@ -6752,8 +7033,6 @@ module Aws::DynamoDB
|
|
6752
7033
|
#
|
6753
7034
|
# * Modify the provisioned throughput settings of the table.
|
6754
7035
|
#
|
6755
|
-
# * Enable or disable DynamoDB Streams on the table.
|
6756
|
-
#
|
6757
7036
|
# * Remove a global secondary index from the table.
|
6758
7037
|
#
|
6759
7038
|
# * Create a new global secondary index on the table. After the index
|
@@ -7349,7 +7628,7 @@ module Aws::DynamoDB
|
|
7349
7628
|
params: params,
|
7350
7629
|
config: config)
|
7351
7630
|
context[:gem_name] = 'aws-sdk-dynamodb'
|
7352
|
-
context[:gem_version] = '1.
|
7631
|
+
context[:gem_version] = '1.76.0'
|
7353
7632
|
Seahorse::Client::Request.new(handlers, context)
|
7354
7633
|
end
|
7355
7634
|
|