aws-sdk-dynamodb 1.75.0 → 1.77.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79a8f7d90716096cc816bcaa1c94e20d4b25a45d9ef563d9ec4be2853733072b
4
- data.tar.gz: ccdfc32c84f0a02de79fe8ebebc2ed58310eea7712679ea1215a26fc97e73537
3
+ metadata.gz: bb18148b788c277866c03aa7a7c30820f0577f818b7f04bd4884ed87c4129914
4
+ data.tar.gz: 9cfd3a5109b6a9473eb584e914aad989d71e49588cf115cc5c33b83b59c64d35
5
5
  SHA512:
6
- metadata.gz: '08b4a399dd2811b5d8fcdc54b56276e84c66fc4d73bd4ba8a8f48169a4cea37378c80cbda6920973600805280c198fedc9e96128c091c0dddfbe1c4bbbdfdc7a'
7
- data.tar.gz: 0661d453507bb416a6f1adfbc374d29cbb47e0950d933cb5a792f9809754eee5d50a8e71b708b6b5be02d6be0953f11e66bc8b005f29c282f519d70ad16a3454
6
+ metadata.gz: e7f61441c77b866778da383a638dfff403fafacb92c128747a319133067dc50efeffc923378d9be2da3617f04cc54cd0dac5ad5abcbca72f1a1579719f15f45f
7
+ data.tar.gz: ec4eae1e3971f6935409178f2014538972d90007d1724c34c351804dc573ccec54498992b63fd8d27f2172d87eed3f308aeadcde4f3da76a235aa6324cf3603a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.77.0 (2022-09-15)
5
+ ------------------
6
+
7
+ * Feature - Increased DynamoDB transaction limit from 25 to 100.
8
+
9
+ 1.76.0 (2022-08-18)
10
+ ------------------
11
+
12
+ * Feature - This release adds support for importing data from S3 into a new DynamoDB table
13
+
4
14
  1.75.0 (2022-06-17)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.75.0
1
+ 1.77.0
@@ -2527,6 +2527,79 @@ module Aws::DynamoDB
2527
2527
  req.send_request(options)
2528
2528
  end
2529
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
+
2530
2603
  # Returns information about the status of Kinesis streaming.
2531
2604
  #
2532
2605
  # @option params [required, String] :table_name
@@ -3251,7 +3324,7 @@ module Aws::DynamoDB
3251
3324
  #
3252
3325
  # If you submit a request with the same client token but a change in
3253
3326
  # other parameters within the 8-hour idempotency window, DynamoDB
3254
- # returns an `IdempotentParameterMismatch` exception.
3327
+ # returns an `ImportConflictException`.
3255
3328
  #
3256
3329
  # **A suitable default value is auto-generated.** You should normally
3257
3330
  # not need to pass this option.**
@@ -3527,6 +3600,167 @@ module Aws::DynamoDB
3527
3600
  req.send_request(options)
3528
3601
  end
3529
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
+
3530
3764
  # List backups associated with an Amazon Web Services account. To list
3531
3765
  # backups for a given table, specify `TableName`. `ListBackups` returns
3532
3766
  # a paginated list of results with at most 1 MB worth of items in a
@@ -3757,6 +3991,59 @@ module Aws::DynamoDB
3757
3991
  req.send_request(options)
3758
3992
  end
3759
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
+
3760
4047
  # Returns an array of table names associated with the current account
3761
4048
  # and endpoint. The output from `ListTables` is paginated, with each
3762
4049
  # page returning a maximum of 100 table names.
@@ -5628,7 +5915,7 @@ module Aws::DynamoDB
5628
5915
  # `TransactGetItems` is a synchronous operation that atomically
5629
5916
  # retrieves multiple items from one or more tables (but not from
5630
5917
  # indexes) in a single account and Region. A `TransactGetItems` call can
5631
- # contain up to 25 `TransactGetItem` objects, each of which contains a
5918
+ # contain up to 100 `TransactGetItem` objects, each of which contains a
5632
5919
  # `Get` structure that specifies an item to retrieve from a table in the
5633
5920
  # account and Region. A call to `TransactGetItems` cannot retrieve items
5634
5921
  # from tables in more than one Amazon Web Services account or Region.
@@ -5649,7 +5936,7 @@ module Aws::DynamoDB
5649
5936
  # MB.
5650
5937
  #
5651
5938
  # @option params [required, Array<Types::TransactGetItem>] :transact_items
5652
- # An ordered array of up to 25 `TransactGetItem` objects, each of which
5939
+ # An ordered array of up to 100 `TransactGetItem` objects, each of which
5653
5940
  # contains a `Get` structure.
5654
5941
  #
5655
5942
  # @option params [String] :return_consumed_capacity
@@ -5714,7 +6001,7 @@ module Aws::DynamoDB
5714
6001
  end
5715
6002
 
5716
6003
  # `TransactWriteItems` is a synchronous write operation that groups up
5717
- # to 25 action requests. These actions can target items in different
6004
+ # to 100 action requests. These actions can target items in different
5718
6005
  # tables, but not in different Amazon Web Services accounts or Regions,
5719
6006
  # and no two actions can target the same item. For example, you cannot
5720
6007
  # both `ConditionCheck` and `Update` the same item. The aggregate size
@@ -5772,7 +6059,7 @@ module Aws::DynamoDB
5772
6059
  # * There is a user error, such as an invalid data format.
5773
6060
  #
5774
6061
  # @option params [required, Array<Types::TransactWriteItem>] :transact_items
5775
- # An ordered array of up to 25 `TransactWriteItem` objects, each of
6062
+ # An ordered array of up to 100 `TransactWriteItem` objects, each of
5776
6063
  # which contains a `ConditionCheck`, `Put`, `Update`, or `Delete`
5777
6064
  # object. These can operate on items in different tables, but the tables
5778
6065
  # must reside in the same Amazon Web Services account and Region, and no
@@ -7341,7 +7628,7 @@ module Aws::DynamoDB
7341
7628
  params: params,
7342
7629
  config: config)
7343
7630
  context[:gem_name] = 'aws-sdk-dynamodb'
7344
- context[:gem_version] = '1.75.0'
7631
+ context[:gem_version] = '1.77.0'
7345
7632
  Seahorse::Client::Request.new(handlers, context)
7346
7633
  end
7347
7634