aws-sdk-dynamodb 1.74.0 → 1.81.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 +38 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +360 -63
- data/lib/aws-sdk-dynamodb/client_api.rb +153 -0
- data/lib/aws-sdk-dynamodb/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-dynamodb/endpoint_provider.rb +57 -0
- data/lib/aws-sdk-dynamodb/endpoints.rb +757 -0
- data/lib/aws-sdk-dynamodb/errors.rb +32 -0
- data/lib/aws-sdk-dynamodb/plugins/endpoints.rb +174 -0
- data/lib/aws-sdk-dynamodb/table.rb +30 -19
- data/lib/aws-sdk-dynamodb/types.rb +543 -1922
- data/lib/aws-sdk-dynamodb.rb +5 -1
- metadata +8 -4
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
35
35
|
require 'aws-sdk-dynamodb/plugins/extended_retries.rb'
|
36
36
|
require 'aws-sdk-dynamodb/plugins/simple_attributes.rb'
|
@@ -82,11 +82,12 @@ module Aws::DynamoDB
|
|
82
82
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
83
83
|
add_plugin(Aws::Plugins::DefaultsMode)
|
84
84
|
add_plugin(Aws::Plugins::RecursionDetection)
|
85
|
-
add_plugin(Aws::Plugins::
|
85
|
+
add_plugin(Aws::Plugins::Sign)
|
86
86
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
87
87
|
add_plugin(Aws::DynamoDB::Plugins::ExtendedRetries)
|
88
88
|
add_plugin(Aws::DynamoDB::Plugins::SimpleAttributes)
|
89
89
|
add_plugin(Aws::DynamoDB::Plugins::CRC32Validation)
|
90
|
+
add_plugin(Aws::DynamoDB::Plugins::Endpoints)
|
90
91
|
|
91
92
|
# @overload initialize(options)
|
92
93
|
# @param [Hash] options
|
@@ -316,6 +317,19 @@ module Aws::DynamoDB
|
|
316
317
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
317
318
|
# requests are made, and retries are disabled.
|
318
319
|
#
|
320
|
+
# @option options [Aws::TokenProvider] :token_provider
|
321
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
322
|
+
# following classes:
|
323
|
+
#
|
324
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
325
|
+
# tokens.
|
326
|
+
#
|
327
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
328
|
+
# access token generated from `aws login`.
|
329
|
+
#
|
330
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
331
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
332
|
+
#
|
319
333
|
# @option options [Boolean] :use_dualstack_endpoint
|
320
334
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
321
335
|
# will be used if available.
|
@@ -329,6 +343,9 @@ module Aws::DynamoDB
|
|
329
343
|
# When `true`, request parameters are validated before
|
330
344
|
# sending the request.
|
331
345
|
#
|
346
|
+
# @option options [Aws::DynamoDB::EndpointProvider] :endpoint_provider
|
347
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::DynamoDB::EndpointParameters`
|
348
|
+
#
|
332
349
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
333
350
|
# requests through. Formatted like 'http://proxy.com:123'.
|
334
351
|
#
|
@@ -381,13 +398,25 @@ module Aws::DynamoDB
|
|
381
398
|
# @!group API Operations
|
382
399
|
|
383
400
|
# This operation allows you to perform batch reads or writes on data
|
384
|
-
# stored in DynamoDB, using PartiQL.
|
401
|
+
# stored in DynamoDB, using PartiQL. Each read statement in a
|
402
|
+
# `BatchExecuteStatement` must specify an equality condition on all key
|
403
|
+
# attributes. This enforces that each `SELECT` statement in a batch
|
404
|
+
# returns at most a single item.
|
385
405
|
#
|
386
406
|
# <note markdown="1"> The entire batch must consist of either read statements or write
|
387
407
|
# statements, you cannot mix both in one batch.
|
388
408
|
#
|
389
409
|
# </note>
|
390
410
|
#
|
411
|
+
# A HTTP 200 response does not mean that all statements in the
|
412
|
+
# BatchExecuteStatement succeeded. Error details for individual
|
413
|
+
# statements can be found under the [Error][1] field of the
|
414
|
+
# `BatchStatementResponse` for each statement.
|
415
|
+
#
|
416
|
+
#
|
417
|
+
#
|
418
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchStatementResponse.html#DDB-Type-BatchStatementResponse-Error
|
419
|
+
#
|
391
420
|
# @option params [required, Array<Types::BatchStatementRequest>] :statements
|
392
421
|
# The list of PartiQL statements representing the batch to run.
|
393
422
|
#
|
@@ -752,8 +781,11 @@ module Aws::DynamoDB
|
|
752
781
|
# the API call. For more details on this distinction, see [Naming Rules
|
753
782
|
# and Data Types][1].
|
754
783
|
#
|
755
|
-
# <note markdown="1"> `BatchWriteItem` cannot update items.
|
756
|
-
# `
|
784
|
+
# <note markdown="1"> `BatchWriteItem` cannot update items. If you perform a
|
785
|
+
# `BatchWriteItem` operation on an existing item, that item's values
|
786
|
+
# will be overwritten by the operation and it will appear like it was
|
787
|
+
# updated. To update items, we recommend you use the `UpdateItem`
|
788
|
+
# action.
|
757
789
|
#
|
758
790
|
# </note>
|
759
791
|
#
|
@@ -1762,6 +1794,10 @@ module Aws::DynamoDB
|
|
1762
1794
|
#
|
1763
1795
|
# * `ALL_OLD` - The content of the old item is returned.
|
1764
1796
|
#
|
1797
|
+
# There is no additional cost associated with requesting a return value
|
1798
|
+
# aside from the small network and processing overhead of receiving a
|
1799
|
+
# larger response. No read capacity units are consumed.
|
1800
|
+
#
|
1765
1801
|
# <note markdown="1"> The `ReturnValues` parameter is used by several DynamoDB operations;
|
1766
1802
|
# however, `DeleteItem` does not recognize any values other than `NONE`
|
1767
1803
|
# or `ALL_OLD`.
|
@@ -2511,6 +2547,79 @@ module Aws::DynamoDB
|
|
2511
2547
|
req.send_request(options)
|
2512
2548
|
end
|
2513
2549
|
|
2550
|
+
# Represents the properties of the import.
|
2551
|
+
#
|
2552
|
+
# @option params [required, String] :import_arn
|
2553
|
+
# The Amazon Resource Name (ARN) associated with the table you're
|
2554
|
+
# importing to.
|
2555
|
+
#
|
2556
|
+
# @return [Types::DescribeImportOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2557
|
+
#
|
2558
|
+
# * {Types::DescribeImportOutput#import_table_description #import_table_description} => Types::ImportTableDescription
|
2559
|
+
#
|
2560
|
+
# @example Request syntax with placeholder values
|
2561
|
+
#
|
2562
|
+
# resp = client.describe_import({
|
2563
|
+
# import_arn: "ImportArn", # required
|
2564
|
+
# })
|
2565
|
+
#
|
2566
|
+
# @example Response structure
|
2567
|
+
#
|
2568
|
+
# resp.import_table_description.import_arn #=> String
|
2569
|
+
# resp.import_table_description.import_status #=> String, one of "IN_PROGRESS", "COMPLETED", "CANCELLING", "CANCELLED", "FAILED"
|
2570
|
+
# resp.import_table_description.table_arn #=> String
|
2571
|
+
# resp.import_table_description.table_id #=> String
|
2572
|
+
# resp.import_table_description.client_token #=> String
|
2573
|
+
# resp.import_table_description.s3_bucket_source.s3_bucket_owner #=> String
|
2574
|
+
# resp.import_table_description.s3_bucket_source.s3_bucket #=> String
|
2575
|
+
# resp.import_table_description.s3_bucket_source.s3_key_prefix #=> String
|
2576
|
+
# resp.import_table_description.error_count #=> Integer
|
2577
|
+
# resp.import_table_description.cloud_watch_log_group_arn #=> String
|
2578
|
+
# resp.import_table_description.input_format #=> String, one of "DYNAMODB_JSON", "ION", "CSV"
|
2579
|
+
# resp.import_table_description.input_format_options.csv.delimiter #=> String
|
2580
|
+
# resp.import_table_description.input_format_options.csv.header_list #=> Array
|
2581
|
+
# resp.import_table_description.input_format_options.csv.header_list[0] #=> String
|
2582
|
+
# resp.import_table_description.input_compression_type #=> String, one of "GZIP", "ZSTD", "NONE"
|
2583
|
+
# resp.import_table_description.table_creation_parameters.table_name #=> String
|
2584
|
+
# resp.import_table_description.table_creation_parameters.attribute_definitions #=> Array
|
2585
|
+
# resp.import_table_description.table_creation_parameters.attribute_definitions[0].attribute_name #=> String
|
2586
|
+
# resp.import_table_description.table_creation_parameters.attribute_definitions[0].attribute_type #=> String, one of "S", "N", "B"
|
2587
|
+
# resp.import_table_description.table_creation_parameters.key_schema #=> Array
|
2588
|
+
# resp.import_table_description.table_creation_parameters.key_schema[0].attribute_name #=> String
|
2589
|
+
# resp.import_table_description.table_creation_parameters.key_schema[0].key_type #=> String, one of "HASH", "RANGE"
|
2590
|
+
# resp.import_table_description.table_creation_parameters.billing_mode #=> String, one of "PROVISIONED", "PAY_PER_REQUEST"
|
2591
|
+
# resp.import_table_description.table_creation_parameters.provisioned_throughput.read_capacity_units #=> Integer
|
2592
|
+
# resp.import_table_description.table_creation_parameters.provisioned_throughput.write_capacity_units #=> Integer
|
2593
|
+
# resp.import_table_description.table_creation_parameters.sse_specification.enabled #=> Boolean
|
2594
|
+
# resp.import_table_description.table_creation_parameters.sse_specification.sse_type #=> String, one of "AES256", "KMS"
|
2595
|
+
# resp.import_table_description.table_creation_parameters.sse_specification.kms_master_key_id #=> String
|
2596
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes #=> Array
|
2597
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].index_name #=> String
|
2598
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].key_schema #=> Array
|
2599
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].key_schema[0].attribute_name #=> String
|
2600
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].key_schema[0].key_type #=> String, one of "HASH", "RANGE"
|
2601
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].projection.projection_type #=> String, one of "ALL", "KEYS_ONLY", "INCLUDE"
|
2602
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].projection.non_key_attributes #=> Array
|
2603
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].projection.non_key_attributes[0] #=> String
|
2604
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].provisioned_throughput.read_capacity_units #=> Integer
|
2605
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].provisioned_throughput.write_capacity_units #=> Integer
|
2606
|
+
# resp.import_table_description.start_time #=> Time
|
2607
|
+
# resp.import_table_description.end_time #=> Time
|
2608
|
+
# resp.import_table_description.processed_size_bytes #=> Integer
|
2609
|
+
# resp.import_table_description.processed_item_count #=> Integer
|
2610
|
+
# resp.import_table_description.imported_item_count #=> Integer
|
2611
|
+
# resp.import_table_description.failure_code #=> String
|
2612
|
+
# resp.import_table_description.failure_message #=> String
|
2613
|
+
#
|
2614
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeImport AWS API Documentation
|
2615
|
+
#
|
2616
|
+
# @overload describe_import(params = {})
|
2617
|
+
# @param [Hash] params ({})
|
2618
|
+
def describe_import(params = {}, options = {})
|
2619
|
+
req = build_request(:describe_import, params)
|
2620
|
+
req.send_request(options)
|
2621
|
+
end
|
2622
|
+
|
2514
2623
|
# Returns information about the status of Kinesis streaming.
|
2515
2624
|
#
|
2516
2625
|
# @option params [required, String] :table_name
|
@@ -3218,8 +3327,9 @@ module Aws::DynamoDB
|
|
3218
3327
|
# The Amazon Resource Name (ARN) associated with the table to export.
|
3219
3328
|
#
|
3220
3329
|
# @option params [Time,DateTime,Date,Integer,String] :export_time
|
3221
|
-
# Time in the past from which to export table data
|
3222
|
-
#
|
3330
|
+
# Time in the past from which to export table data, counted in seconds
|
3331
|
+
# from the start of the Unix epoch. The table export will be a snapshot
|
3332
|
+
# of the table's state at this point in time.
|
3223
3333
|
#
|
3224
3334
|
# @option params [String] :client_token
|
3225
3335
|
# Providing a `ClientToken` makes the call to
|
@@ -3234,7 +3344,7 @@ module Aws::DynamoDB
|
|
3234
3344
|
#
|
3235
3345
|
# If you submit a request with the same client token but a change in
|
3236
3346
|
# other parameters within the 8-hour idempotency window, DynamoDB
|
3237
|
-
# returns an `
|
3347
|
+
# returns an `ImportConflictException`.
|
3238
3348
|
#
|
3239
3349
|
# **A suitable default value is auto-generated.** You should normally
|
3240
3350
|
# not need to pass this option.**
|
@@ -3510,6 +3620,167 @@ module Aws::DynamoDB
|
|
3510
3620
|
req.send_request(options)
|
3511
3621
|
end
|
3512
3622
|
|
3623
|
+
# Imports table data from an S3 bucket.
|
3624
|
+
#
|
3625
|
+
# @option params [String] :client_token
|
3626
|
+
# Providing a `ClientToken` makes the call to `ImportTableInput`
|
3627
|
+
# idempotent, meaning that multiple identical calls have the same effect
|
3628
|
+
# as one single call.
|
3629
|
+
#
|
3630
|
+
# A client token is valid for 8 hours after the first request that uses
|
3631
|
+
# it is completed. After 8 hours, any request with the same client token
|
3632
|
+
# is treated as a new request. Do not resubmit the same request with the
|
3633
|
+
# same client token for more than 8 hours, or the result might not be
|
3634
|
+
# idempotent.
|
3635
|
+
#
|
3636
|
+
# If you submit a request with the same client token but a change in
|
3637
|
+
# other parameters within the 8-hour idempotency window, DynamoDB
|
3638
|
+
# returns an `IdempotentParameterMismatch` exception.
|
3639
|
+
#
|
3640
|
+
# **A suitable default value is auto-generated.** You should normally
|
3641
|
+
# not need to pass this option.**
|
3642
|
+
#
|
3643
|
+
# @option params [required, Types::S3BucketSource] :s3_bucket_source
|
3644
|
+
# The S3 bucket that provides the source for the import.
|
3645
|
+
#
|
3646
|
+
# @option params [required, String] :input_format
|
3647
|
+
# The format of the source data. Valid values for `ImportFormat` are
|
3648
|
+
# `CSV`, `DYNAMODB_JSON` or `ION`.
|
3649
|
+
#
|
3650
|
+
# @option params [Types::InputFormatOptions] :input_format_options
|
3651
|
+
# Additional properties that specify how the input is formatted,
|
3652
|
+
#
|
3653
|
+
# @option params [String] :input_compression_type
|
3654
|
+
# Type of compression to be used on the input coming from the imported
|
3655
|
+
# table.
|
3656
|
+
#
|
3657
|
+
# @option params [required, Types::TableCreationParameters] :table_creation_parameters
|
3658
|
+
# Parameters for the table to import the data into.
|
3659
|
+
#
|
3660
|
+
# @return [Types::ImportTableOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3661
|
+
#
|
3662
|
+
# * {Types::ImportTableOutput#import_table_description #import_table_description} => Types::ImportTableDescription
|
3663
|
+
#
|
3664
|
+
# @example Request syntax with placeholder values
|
3665
|
+
#
|
3666
|
+
# resp = client.import_table({
|
3667
|
+
# client_token: "ClientToken",
|
3668
|
+
# s3_bucket_source: { # required
|
3669
|
+
# s3_bucket_owner: "S3BucketOwner",
|
3670
|
+
# s3_bucket: "S3Bucket", # required
|
3671
|
+
# s3_key_prefix: "S3Prefix",
|
3672
|
+
# },
|
3673
|
+
# input_format: "DYNAMODB_JSON", # required, accepts DYNAMODB_JSON, ION, CSV
|
3674
|
+
# input_format_options: {
|
3675
|
+
# csv: {
|
3676
|
+
# delimiter: "CsvDelimiter",
|
3677
|
+
# header_list: ["CsvHeader"],
|
3678
|
+
# },
|
3679
|
+
# },
|
3680
|
+
# input_compression_type: "GZIP", # accepts GZIP, ZSTD, NONE
|
3681
|
+
# table_creation_parameters: { # required
|
3682
|
+
# table_name: "TableName", # required
|
3683
|
+
# attribute_definitions: [ # required
|
3684
|
+
# {
|
3685
|
+
# attribute_name: "KeySchemaAttributeName", # required
|
3686
|
+
# attribute_type: "S", # required, accepts S, N, B
|
3687
|
+
# },
|
3688
|
+
# ],
|
3689
|
+
# key_schema: [ # required
|
3690
|
+
# {
|
3691
|
+
# attribute_name: "KeySchemaAttributeName", # required
|
3692
|
+
# key_type: "HASH", # required, accepts HASH, RANGE
|
3693
|
+
# },
|
3694
|
+
# ],
|
3695
|
+
# billing_mode: "PROVISIONED", # accepts PROVISIONED, PAY_PER_REQUEST
|
3696
|
+
# provisioned_throughput: {
|
3697
|
+
# read_capacity_units: 1, # required
|
3698
|
+
# write_capacity_units: 1, # required
|
3699
|
+
# },
|
3700
|
+
# sse_specification: {
|
3701
|
+
# enabled: false,
|
3702
|
+
# sse_type: "AES256", # accepts AES256, KMS
|
3703
|
+
# kms_master_key_id: "KMSMasterKeyId",
|
3704
|
+
# },
|
3705
|
+
# global_secondary_indexes: [
|
3706
|
+
# {
|
3707
|
+
# index_name: "IndexName", # required
|
3708
|
+
# key_schema: [ # required
|
3709
|
+
# {
|
3710
|
+
# attribute_name: "KeySchemaAttributeName", # required
|
3711
|
+
# key_type: "HASH", # required, accepts HASH, RANGE
|
3712
|
+
# },
|
3713
|
+
# ],
|
3714
|
+
# projection: { # required
|
3715
|
+
# projection_type: "ALL", # accepts ALL, KEYS_ONLY, INCLUDE
|
3716
|
+
# non_key_attributes: ["NonKeyAttributeName"],
|
3717
|
+
# },
|
3718
|
+
# provisioned_throughput: {
|
3719
|
+
# read_capacity_units: 1, # required
|
3720
|
+
# write_capacity_units: 1, # required
|
3721
|
+
# },
|
3722
|
+
# },
|
3723
|
+
# ],
|
3724
|
+
# },
|
3725
|
+
# })
|
3726
|
+
#
|
3727
|
+
# @example Response structure
|
3728
|
+
#
|
3729
|
+
# resp.import_table_description.import_arn #=> String
|
3730
|
+
# resp.import_table_description.import_status #=> String, one of "IN_PROGRESS", "COMPLETED", "CANCELLING", "CANCELLED", "FAILED"
|
3731
|
+
# resp.import_table_description.table_arn #=> String
|
3732
|
+
# resp.import_table_description.table_id #=> String
|
3733
|
+
# resp.import_table_description.client_token #=> String
|
3734
|
+
# resp.import_table_description.s3_bucket_source.s3_bucket_owner #=> String
|
3735
|
+
# resp.import_table_description.s3_bucket_source.s3_bucket #=> String
|
3736
|
+
# resp.import_table_description.s3_bucket_source.s3_key_prefix #=> String
|
3737
|
+
# resp.import_table_description.error_count #=> Integer
|
3738
|
+
# resp.import_table_description.cloud_watch_log_group_arn #=> String
|
3739
|
+
# resp.import_table_description.input_format #=> String, one of "DYNAMODB_JSON", "ION", "CSV"
|
3740
|
+
# resp.import_table_description.input_format_options.csv.delimiter #=> String
|
3741
|
+
# resp.import_table_description.input_format_options.csv.header_list #=> Array
|
3742
|
+
# resp.import_table_description.input_format_options.csv.header_list[0] #=> String
|
3743
|
+
# resp.import_table_description.input_compression_type #=> String, one of "GZIP", "ZSTD", "NONE"
|
3744
|
+
# resp.import_table_description.table_creation_parameters.table_name #=> String
|
3745
|
+
# resp.import_table_description.table_creation_parameters.attribute_definitions #=> Array
|
3746
|
+
# resp.import_table_description.table_creation_parameters.attribute_definitions[0].attribute_name #=> String
|
3747
|
+
# resp.import_table_description.table_creation_parameters.attribute_definitions[0].attribute_type #=> String, one of "S", "N", "B"
|
3748
|
+
# resp.import_table_description.table_creation_parameters.key_schema #=> Array
|
3749
|
+
# resp.import_table_description.table_creation_parameters.key_schema[0].attribute_name #=> String
|
3750
|
+
# resp.import_table_description.table_creation_parameters.key_schema[0].key_type #=> String, one of "HASH", "RANGE"
|
3751
|
+
# resp.import_table_description.table_creation_parameters.billing_mode #=> String, one of "PROVISIONED", "PAY_PER_REQUEST"
|
3752
|
+
# resp.import_table_description.table_creation_parameters.provisioned_throughput.read_capacity_units #=> Integer
|
3753
|
+
# resp.import_table_description.table_creation_parameters.provisioned_throughput.write_capacity_units #=> Integer
|
3754
|
+
# resp.import_table_description.table_creation_parameters.sse_specification.enabled #=> Boolean
|
3755
|
+
# resp.import_table_description.table_creation_parameters.sse_specification.sse_type #=> String, one of "AES256", "KMS"
|
3756
|
+
# resp.import_table_description.table_creation_parameters.sse_specification.kms_master_key_id #=> String
|
3757
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes #=> Array
|
3758
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].index_name #=> String
|
3759
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].key_schema #=> Array
|
3760
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].key_schema[0].attribute_name #=> String
|
3761
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].key_schema[0].key_type #=> String, one of "HASH", "RANGE"
|
3762
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].projection.projection_type #=> String, one of "ALL", "KEYS_ONLY", "INCLUDE"
|
3763
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].projection.non_key_attributes #=> Array
|
3764
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].projection.non_key_attributes[0] #=> String
|
3765
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].provisioned_throughput.read_capacity_units #=> Integer
|
3766
|
+
# resp.import_table_description.table_creation_parameters.global_secondary_indexes[0].provisioned_throughput.write_capacity_units #=> Integer
|
3767
|
+
# resp.import_table_description.start_time #=> Time
|
3768
|
+
# resp.import_table_description.end_time #=> Time
|
3769
|
+
# resp.import_table_description.processed_size_bytes #=> Integer
|
3770
|
+
# resp.import_table_description.processed_item_count #=> Integer
|
3771
|
+
# resp.import_table_description.imported_item_count #=> Integer
|
3772
|
+
# resp.import_table_description.failure_code #=> String
|
3773
|
+
# resp.import_table_description.failure_message #=> String
|
3774
|
+
#
|
3775
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ImportTable AWS API Documentation
|
3776
|
+
#
|
3777
|
+
# @overload import_table(params = {})
|
3778
|
+
# @param [Hash] params ({})
|
3779
|
+
def import_table(params = {}, options = {})
|
3780
|
+
req = build_request(:import_table, params)
|
3781
|
+
req.send_request(options)
|
3782
|
+
end
|
3783
|
+
|
3513
3784
|
# List backups associated with an Amazon Web Services account. To list
|
3514
3785
|
# backups for a given table, specify `TableName`. `ListBackups` returns
|
3515
3786
|
# a paginated list of results with at most 1 MB worth of items in a
|
@@ -3548,7 +3819,8 @@ module Aws::DynamoDB
|
|
3548
3819
|
#
|
3549
3820
|
# Where `BackupType` can be:
|
3550
3821
|
#
|
3551
|
-
# * `USER` - On-demand backup created by you.
|
3822
|
+
# * `USER` - On-demand backup created by you. (The default setting if no
|
3823
|
+
# other backup types are specified.)
|
3552
3824
|
#
|
3553
3825
|
# * `SYSTEM` - On-demand backup automatically created by DynamoDB.
|
3554
3826
|
#
|
@@ -3739,6 +4011,59 @@ module Aws::DynamoDB
|
|
3739
4011
|
req.send_request(options)
|
3740
4012
|
end
|
3741
4013
|
|
4014
|
+
# Lists completed imports within the past 90 days.
|
4015
|
+
#
|
4016
|
+
# @option params [String] :table_arn
|
4017
|
+
# The Amazon Resource Name (ARN) associated with the table that was
|
4018
|
+
# imported to.
|
4019
|
+
#
|
4020
|
+
# @option params [Integer] :page_size
|
4021
|
+
# The number of `ImportSummary `objects returned in a single page.
|
4022
|
+
#
|
4023
|
+
# @option params [String] :next_token
|
4024
|
+
# An optional string that, if supplied, must be copied from the output
|
4025
|
+
# of a previous call to `ListImports`. When provided in this manner, the
|
4026
|
+
# API fetches the next page of results.
|
4027
|
+
#
|
4028
|
+
# @return [Types::ListImportsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4029
|
+
#
|
4030
|
+
# * {Types::ListImportsOutput#import_summary_list #import_summary_list} => Array<Types::ImportSummary>
|
4031
|
+
# * {Types::ListImportsOutput#next_token #next_token} => String
|
4032
|
+
#
|
4033
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4034
|
+
#
|
4035
|
+
# @example Request syntax with placeholder values
|
4036
|
+
#
|
4037
|
+
# resp = client.list_imports({
|
4038
|
+
# table_arn: "TableArn",
|
4039
|
+
# page_size: 1,
|
4040
|
+
# next_token: "ImportNextToken",
|
4041
|
+
# })
|
4042
|
+
#
|
4043
|
+
# @example Response structure
|
4044
|
+
#
|
4045
|
+
# resp.import_summary_list #=> Array
|
4046
|
+
# resp.import_summary_list[0].import_arn #=> String
|
4047
|
+
# resp.import_summary_list[0].import_status #=> String, one of "IN_PROGRESS", "COMPLETED", "CANCELLING", "CANCELLED", "FAILED"
|
4048
|
+
# resp.import_summary_list[0].table_arn #=> String
|
4049
|
+
# resp.import_summary_list[0].s3_bucket_source.s3_bucket_owner #=> String
|
4050
|
+
# resp.import_summary_list[0].s3_bucket_source.s3_bucket #=> String
|
4051
|
+
# resp.import_summary_list[0].s3_bucket_source.s3_key_prefix #=> String
|
4052
|
+
# resp.import_summary_list[0].cloud_watch_log_group_arn #=> String
|
4053
|
+
# resp.import_summary_list[0].input_format #=> String, one of "DYNAMODB_JSON", "ION", "CSV"
|
4054
|
+
# resp.import_summary_list[0].start_time #=> Time
|
4055
|
+
# resp.import_summary_list[0].end_time #=> Time
|
4056
|
+
# resp.next_token #=> String
|
4057
|
+
#
|
4058
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListImports AWS API Documentation
|
4059
|
+
#
|
4060
|
+
# @overload list_imports(params = {})
|
4061
|
+
# @param [Hash] params ({})
|
4062
|
+
def list_imports(params = {}, options = {})
|
4063
|
+
req = build_request(:list_imports, params)
|
4064
|
+
req.send_request(options)
|
4065
|
+
end
|
4066
|
+
|
3742
4067
|
# Returns an array of table names associated with the current account
|
3743
4068
|
# and endpoint. The output from `ListTables` is paginated, with each
|
3744
4069
|
# page returning a maximum of 100 table names.
|
@@ -3855,31 +4180,8 @@ module Aws::DynamoDB
|
|
3855
4180
|
# item's attribute values in the same operation, using the
|
3856
4181
|
# `ReturnValues` parameter.
|
3857
4182
|
#
|
3858
|
-
# This topic provides general information about the `PutItem` API.
|
3859
|
-
#
|
3860
|
-
# For information on how to call the `PutItem` API using the Amazon Web
|
3861
|
-
# Services SDK in specific languages, see the following:
|
3862
|
-
#
|
3863
|
-
# * [ PutItem in the Command Line Interface][1]
|
3864
|
-
#
|
3865
|
-
# * [ PutItem in the SDK for .NET][2]
|
3866
|
-
#
|
3867
|
-
# * [ PutItem in the SDK for C++][3]
|
3868
|
-
#
|
3869
|
-
# * [ PutItem in the SDK for Go][4]
|
3870
|
-
#
|
3871
|
-
# * [ PutItem in the SDK for Java][5]
|
3872
|
-
#
|
3873
|
-
# * [ PutItem in the SDK for JavaScript][6]
|
3874
|
-
#
|
3875
|
-
# * [ PutItem in the SDK for PHP V3][7]
|
3876
|
-
#
|
3877
|
-
# * [ PutItem in the SDK for Python (Boto)][8]
|
3878
|
-
#
|
3879
|
-
# * [ PutItem in the SDK for Ruby V2][9]
|
3880
|
-
#
|
3881
4183
|
# When you add an item, the primary key attributes are the only required
|
3882
|
-
# attributes.
|
4184
|
+
# attributes.
|
3883
4185
|
#
|
3884
4186
|
# Empty String and Binary attribute values are allowed. Attribute values
|
3885
4187
|
# of type String and Binary must have a length greater than zero if the
|
@@ -3898,21 +4200,12 @@ module Aws::DynamoDB
|
|
3898
4200
|
#
|
3899
4201
|
# </note>
|
3900
4202
|
#
|
3901
|
-
# For more information about `PutItem`, see [Working with Items][
|
4203
|
+
# For more information about `PutItem`, see [Working with Items][1] in
|
3902
4204
|
# the *Amazon DynamoDB Developer Guide*.
|
3903
4205
|
#
|
3904
4206
|
#
|
3905
4207
|
#
|
3906
|
-
# [1]:
|
3907
|
-
# [2]: http://docs.aws.amazon.com/goto/DotNetSDKV3/dynamodb-2012-08-10/PutItem
|
3908
|
-
# [3]: http://docs.aws.amazon.com/goto/SdkForCpp/dynamodb-2012-08-10/PutItem
|
3909
|
-
# [4]: http://docs.aws.amazon.com/goto/SdkForGoV1/dynamodb-2012-08-10/PutItem
|
3910
|
-
# [5]: http://docs.aws.amazon.com/goto/SdkForJava/dynamodb-2012-08-10/PutItem
|
3911
|
-
# [6]: http://docs.aws.amazon.com/goto/AWSJavaScriptSDK/dynamodb-2012-08-10/PutItem
|
3912
|
-
# [7]: http://docs.aws.amazon.com/goto/SdkForPHPV3/dynamodb-2012-08-10/PutItem
|
3913
|
-
# [8]: http://docs.aws.amazon.com/goto/boto3/dynamodb-2012-08-10/PutItem
|
3914
|
-
# [9]: http://docs.aws.amazon.com/goto/SdkForRubyV2/dynamodb-2012-08-10/PutItem
|
3915
|
-
# [10]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html
|
4208
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html
|
3916
4209
|
#
|
3917
4210
|
# @option params [required, String] :table_name
|
3918
4211
|
# The name of the table to contain the item.
|
@@ -3967,6 +4260,10 @@ module Aws::DynamoDB
|
|
3967
4260
|
#
|
3968
4261
|
# The values returned are strongly consistent.
|
3969
4262
|
#
|
4263
|
+
# There is no additional cost associated with requesting a return value
|
4264
|
+
# aside from the small network and processing overhead of receiving a
|
4265
|
+
# larger response. No read capacity units are consumed.
|
4266
|
+
#
|
3970
4267
|
# <note markdown="1"> The `ReturnValues` parameter is used by several DynamoDB operations;
|
3971
4268
|
# however, `PutItem` does not recognize any values other than `NONE` or
|
3972
4269
|
# `ALL_OLD`.
|
@@ -4288,8 +4585,9 @@ module Aws::DynamoDB
|
|
4288
4585
|
# matching items themselves.
|
4289
4586
|
#
|
4290
4587
|
# * `SPECIFIC_ATTRIBUTES` - Returns only the attributes listed in
|
4291
|
-
# `
|
4292
|
-
# `
|
4588
|
+
# `ProjectionExpression`. This return value is equivalent to
|
4589
|
+
# specifying `ProjectionExpression` without specifying any value for
|
4590
|
+
# `Select`.
|
4293
4591
|
#
|
4294
4592
|
# If you query or scan a local secondary index and request only
|
4295
4593
|
# attributes that are projected into that index, the operation will
|
@@ -4302,12 +4600,12 @@ module Aws::DynamoDB
|
|
4302
4600
|
# attributes that are projected into the index. Global secondary index
|
4303
4601
|
# queries cannot fetch attributes from the parent table.
|
4304
4602
|
#
|
4305
|
-
# If neither `Select` nor `
|
4603
|
+
# If neither `Select` nor `ProjectionExpression` are specified, DynamoDB
|
4306
4604
|
# defaults to `ALL_ATTRIBUTES` when accessing a table, and
|
4307
4605
|
# `ALL_PROJECTED_ATTRIBUTES` when accessing an index. You cannot use
|
4308
|
-
# both `Select` and `
|
4606
|
+
# both `Select` and `ProjectionExpression` together in a single request,
|
4309
4607
|
# unless the value for `Select` is `SPECIFIC_ATTRIBUTES`. (This usage is
|
4310
|
-
# equivalent to specifying `
|
4608
|
+
# equivalent to specifying `ProjectionExpression` without any value for
|
4311
4609
|
# `Select`.)
|
4312
4610
|
#
|
4313
4611
|
# <note markdown="1"> If you use the `ProjectionExpression` parameter, then the value for
|
@@ -4456,7 +4754,7 @@ module Aws::DynamoDB
|
|
4456
4754
|
#
|
4457
4755
|
#
|
4458
4756
|
#
|
4459
|
-
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#
|
4757
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Query.FilterExpression
|
4460
4758
|
#
|
4461
4759
|
# @option params [String] :key_condition_expression
|
4462
4760
|
# The condition that specifies the key values for items to be retrieved
|
@@ -5241,8 +5539,9 @@ module Aws::DynamoDB
|
|
5241
5539
|
# matching items themselves.
|
5242
5540
|
#
|
5243
5541
|
# * `SPECIFIC_ATTRIBUTES` - Returns only the attributes listed in
|
5244
|
-
# `
|
5245
|
-
# `
|
5542
|
+
# `ProjectionExpression`. This return value is equivalent to
|
5543
|
+
# specifying `ProjectionExpression` without specifying any value for
|
5544
|
+
# `Select`.
|
5246
5545
|
#
|
5247
5546
|
# If you query or scan a local secondary index and request only
|
5248
5547
|
# attributes that are projected into that index, the operation reads
|
@@ -5255,12 +5554,12 @@ module Aws::DynamoDB
|
|
5255
5554
|
# attributes that are projected into the index. Global secondary index
|
5256
5555
|
# queries cannot fetch attributes from the parent table.
|
5257
5556
|
#
|
5258
|
-
# If neither `Select` nor `
|
5557
|
+
# If neither `Select` nor `ProjectionExpression` are specified, DynamoDB
|
5259
5558
|
# defaults to `ALL_ATTRIBUTES` when accessing a table, and
|
5260
5559
|
# `ALL_PROJECTED_ATTRIBUTES` when accessing an index. You cannot use
|
5261
|
-
# both `Select` and `
|
5560
|
+
# both `Select` and `ProjectionExpression` together in a single request,
|
5262
5561
|
# unless the value for `Select` is `SPECIFIC_ATTRIBUTES`. (This usage is
|
5263
|
-
# equivalent to specifying `
|
5562
|
+
# equivalent to specifying `ProjectionExpression` without any value for
|
5264
5563
|
# `Select`.)
|
5265
5564
|
#
|
5266
5565
|
# <note markdown="1"> If you use the `ProjectionExpression` parameter, then the value for
|
@@ -5381,7 +5680,7 @@ module Aws::DynamoDB
|
|
5381
5680
|
#
|
5382
5681
|
#
|
5383
5682
|
#
|
5384
|
-
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#
|
5683
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Query.FilterExpression
|
5385
5684
|
#
|
5386
5685
|
# @option params [Hash<String,String>] :expression_attribute_names
|
5387
5686
|
# One or more substitution tokens for attribute names in an expression.
|
@@ -5636,7 +5935,7 @@ module Aws::DynamoDB
|
|
5636
5935
|
# `TransactGetItems` is a synchronous operation that atomically
|
5637
5936
|
# retrieves multiple items from one or more tables (but not from
|
5638
5937
|
# indexes) in a single account and Region. A `TransactGetItems` call can
|
5639
|
-
# contain up to
|
5938
|
+
# contain up to 100 `TransactGetItem` objects, each of which contains a
|
5640
5939
|
# `Get` structure that specifies an item to retrieve from a table in the
|
5641
5940
|
# account and Region. A call to `TransactGetItems` cannot retrieve items
|
5642
5941
|
# from tables in more than one Amazon Web Services account or Region.
|
@@ -5657,7 +5956,7 @@ module Aws::DynamoDB
|
|
5657
5956
|
# MB.
|
5658
5957
|
#
|
5659
5958
|
# @option params [required, Array<Types::TransactGetItem>] :transact_items
|
5660
|
-
# An ordered array of up to
|
5959
|
+
# An ordered array of up to 100 `TransactGetItem` objects, each of which
|
5661
5960
|
# contains a `Get` structure.
|
5662
5961
|
#
|
5663
5962
|
# @option params [String] :return_consumed_capacity
|
@@ -5722,7 +6021,7 @@ module Aws::DynamoDB
|
|
5722
6021
|
end
|
5723
6022
|
|
5724
6023
|
# `TransactWriteItems` is a synchronous write operation that groups up
|
5725
|
-
# to
|
6024
|
+
# to 100 action requests. These actions can target items in different
|
5726
6025
|
# tables, but not in different Amazon Web Services accounts or Regions,
|
5727
6026
|
# and no two actions can target the same item. For example, you cannot
|
5728
6027
|
# both `ConditionCheck` and `Update` the same item. The aggregate size
|
@@ -5780,7 +6079,7 @@ module Aws::DynamoDB
|
|
5780
6079
|
# * There is a user error, such as an invalid data format.
|
5781
6080
|
#
|
5782
6081
|
# @option params [required, Array<Types::TransactWriteItem>] :transact_items
|
5783
|
-
# An ordered array of up to
|
6082
|
+
# An ordered array of up to 100 `TransactWriteItem` objects, each of
|
5784
6083
|
# which contains a `ConditionCheck`, `Put`, `Update`, or `Delete`
|
5785
6084
|
# object. These can operate on items in different tables, but the tables
|
5786
6085
|
# must reside in the same Amazon Web Services account and Region, and no
|
@@ -6754,8 +7053,6 @@ module Aws::DynamoDB
|
|
6754
7053
|
#
|
6755
7054
|
# * Modify the provisioned throughput settings of the table.
|
6756
7055
|
#
|
6757
|
-
# * Enable or disable DynamoDB Streams on the table.
|
6758
|
-
#
|
6759
7056
|
# * Remove a global secondary index from the table.
|
6760
7057
|
#
|
6761
7058
|
# * Create a new global secondary index on the table. After the index
|
@@ -7351,7 +7648,7 @@ module Aws::DynamoDB
|
|
7351
7648
|
params: params,
|
7352
7649
|
config: config)
|
7353
7650
|
context[:gem_name] = 'aws-sdk-dynamodb'
|
7354
|
-
context[:gem_version] = '1.
|
7651
|
+
context[:gem_version] = '1.81.0'
|
7355
7652
|
Seahorse::Client::Request.new(handlers, context)
|
7356
7653
|
end
|
7357
7654
|
|