aws-sdk-dynamodb 1.57.0 → 1.61.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -31,6 +31,7 @@ module Aws::DynamoDB
31
31
  # * {BackupNotFoundException}
32
32
  # * {ConditionalCheckFailedException}
33
33
  # * {ContinuousBackupsUnavailableException}
34
+ # * {DuplicateItemException}
34
35
  # * {ExportConflictException}
35
36
  # * {ExportNotFoundException}
36
37
  # * {GlobalTableAlreadyExistsException}
@@ -122,6 +123,21 @@ module Aws::DynamoDB
122
123
  end
123
124
  end
124
125
 
126
+ class DuplicateItemException < ServiceError
127
+
128
+ # @param [Seahorse::Client::RequestContext] context
129
+ # @param [String] message
130
+ # @param [Aws::DynamoDB::Types::DuplicateItemException] data
131
+ def initialize(context, message, data = Aws::EmptyStructure.new)
132
+ super(context, message, data)
133
+ end
134
+
135
+ # @return [String]
136
+ def message
137
+ @message || @data[:message]
138
+ end
139
+ end
140
+
125
141
  class ExportConflictException < ServiceError
126
142
 
127
143
  # @param [Seahorse::Client::RequestContext] context
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -756,6 +756,43 @@ module Aws::DynamoDB
756
756
  include Aws::Structure
757
757
  end
758
758
 
759
+ # @note When making an API call, you may pass BatchExecuteStatementInput
760
+ # data as a hash:
761
+ #
762
+ # {
763
+ # statements: [ # required
764
+ # {
765
+ # statement: "PartiQLStatement", # required
766
+ # parameters: ["value"], # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
767
+ # consistent_read: false,
768
+ # },
769
+ # ],
770
+ # }
771
+ #
772
+ # @!attribute [rw] statements
773
+ # The list of PartiQL statements representing the batch to run.
774
+ # @return [Array<Types::BatchStatementRequest>]
775
+ #
776
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchExecuteStatementInput AWS API Documentation
777
+ #
778
+ class BatchExecuteStatementInput < Struct.new(
779
+ :statements)
780
+ SENSITIVE = []
781
+ include Aws::Structure
782
+ end
783
+
784
+ # @!attribute [rw] responses
785
+ # The response to each PartiQL statement in the batch.
786
+ # @return [Array<Types::BatchStatementResponse>]
787
+ #
788
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchExecuteStatementOutput AWS API Documentation
789
+ #
790
+ class BatchExecuteStatementOutput < Struct.new(
791
+ :responses)
792
+ SENSITIVE = []
793
+ include Aws::Structure
794
+ end
795
+
759
796
  # Represents the input of a `BatchGetItem` operation.
760
797
  #
761
798
  # @note When making an API call, you may pass BatchGetItemInput
@@ -953,6 +990,83 @@ module Aws::DynamoDB
953
990
  include Aws::Structure
954
991
  end
955
992
 
993
+ # An error associated with a statement in a PartiQL batch that was run.
994
+ #
995
+ # @!attribute [rw] code
996
+ # The error code associated with the failed PartiQL batch statement.
997
+ # @return [String]
998
+ #
999
+ # @!attribute [rw] message
1000
+ # The error message associated with the PartiQL batch resposne.
1001
+ # @return [String]
1002
+ #
1003
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchStatementError AWS API Documentation
1004
+ #
1005
+ class BatchStatementError < Struct.new(
1006
+ :code,
1007
+ :message)
1008
+ SENSITIVE = []
1009
+ include Aws::Structure
1010
+ end
1011
+
1012
+ # A PartiQL batch statement request.
1013
+ #
1014
+ # @note When making an API call, you may pass BatchStatementRequest
1015
+ # data as a hash:
1016
+ #
1017
+ # {
1018
+ # statement: "PartiQLStatement", # required
1019
+ # parameters: ["value"], # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1020
+ # consistent_read: false,
1021
+ # }
1022
+ #
1023
+ # @!attribute [rw] statement
1024
+ # A valid PartiQL statement.
1025
+ # @return [String]
1026
+ #
1027
+ # @!attribute [rw] parameters
1028
+ # The parameters associated with a PartiQL statement in the batch
1029
+ # request.
1030
+ # @return [Array<Types::AttributeValue>]
1031
+ #
1032
+ # @!attribute [rw] consistent_read
1033
+ # The read consistency of the PartiQL batch request.
1034
+ # @return [Boolean]
1035
+ #
1036
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchStatementRequest AWS API Documentation
1037
+ #
1038
+ class BatchStatementRequest < Struct.new(
1039
+ :statement,
1040
+ :parameters,
1041
+ :consistent_read)
1042
+ SENSITIVE = []
1043
+ include Aws::Structure
1044
+ end
1045
+
1046
+ # A PartiQL batch statement response..
1047
+ #
1048
+ # @!attribute [rw] error
1049
+ # The error associated with a failed PartiQL batch statement.
1050
+ # @return [Types::BatchStatementError]
1051
+ #
1052
+ # @!attribute [rw] table_name
1053
+ # The table name associated with a failed PartiQL batch statement.
1054
+ # @return [String]
1055
+ #
1056
+ # @!attribute [rw] item
1057
+ # A DynamoDB item associated with a BatchStatementResponse
1058
+ # @return [Hash<String,Types::AttributeValue>]
1059
+ #
1060
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchStatementResponse AWS API Documentation
1061
+ #
1062
+ class BatchStatementResponse < Struct.new(
1063
+ :error,
1064
+ :table_name,
1065
+ :item)
1066
+ SENSITIVE = []
1067
+ include Aws::Structure
1068
+ end
1069
+
956
1070
  # Represents the input of a `BatchWriteItem` operation.
957
1071
  #
958
1072
  # @note When making an API call, you may pass BatchWriteItemInput
@@ -2941,6 +3055,42 @@ module Aws::DynamoDB
2941
3055
  include Aws::Structure
2942
3056
  end
2943
3057
 
3058
+ # @note When making an API call, you may pass DescribeKinesisStreamingDestinationInput
3059
+ # data as a hash:
3060
+ #
3061
+ # {
3062
+ # table_name: "TableName", # required
3063
+ # }
3064
+ #
3065
+ # @!attribute [rw] table_name
3066
+ # The name of the table being described.
3067
+ # @return [String]
3068
+ #
3069
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeKinesisStreamingDestinationInput AWS API Documentation
3070
+ #
3071
+ class DescribeKinesisStreamingDestinationInput < Struct.new(
3072
+ :table_name)
3073
+ SENSITIVE = []
3074
+ include Aws::Structure
3075
+ end
3076
+
3077
+ # @!attribute [rw] table_name
3078
+ # The name of the table being described.
3079
+ # @return [String]
3080
+ #
3081
+ # @!attribute [rw] kinesis_data_stream_destinations
3082
+ # The list of replica structures for the table being described.
3083
+ # @return [Array<Types::KinesisDataStreamDestination>]
3084
+ #
3085
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeKinesisStreamingDestinationOutput AWS API Documentation
3086
+ #
3087
+ class DescribeKinesisStreamingDestinationOutput < Struct.new(
3088
+ :table_name,
3089
+ :kinesis_data_stream_destinations)
3090
+ SENSITIVE = []
3091
+ include Aws::Structure
3092
+ end
3093
+
2944
3094
  # Represents the input of a `DescribeLimits` operation. Has no content.
2945
3095
  #
2946
3096
  # @api private
@@ -3082,6 +3232,20 @@ module Aws::DynamoDB
3082
3232
  include Aws::Structure
3083
3233
  end
3084
3234
 
3235
+ # There was an attempt to insert an item with the same primary key as an
3236
+ # item that already exists in the DynamoDB table.
3237
+ #
3238
+ # @!attribute [rw] message
3239
+ # @return [String]
3240
+ #
3241
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DuplicateItemException AWS API Documentation
3242
+ #
3243
+ class DuplicateItemException < Struct.new(
3244
+ :message)
3245
+ SENSITIVE = []
3246
+ include Aws::Structure
3247
+ end
3248
+
3085
3249
  # An endpoint information details.
3086
3250
  #
3087
3251
  # @!attribute [rw] address
@@ -3101,6 +3265,114 @@ module Aws::DynamoDB
3101
3265
  include Aws::Structure
3102
3266
  end
3103
3267
 
3268
+ # @note When making an API call, you may pass ExecuteStatementInput
3269
+ # data as a hash:
3270
+ #
3271
+ # {
3272
+ # statement: "PartiQLStatement", # required
3273
+ # parameters: ["value"], # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
3274
+ # consistent_read: false,
3275
+ # next_token: "PartiQLNextToken",
3276
+ # }
3277
+ #
3278
+ # @!attribute [rw] statement
3279
+ # The PartiQL statement representing the operation to run.
3280
+ # @return [String]
3281
+ #
3282
+ # @!attribute [rw] parameters
3283
+ # The parameters for the PartiQL statement, if any.
3284
+ # @return [Array<Types::AttributeValue>]
3285
+ #
3286
+ # @!attribute [rw] consistent_read
3287
+ # The consistency of a read operation. If set to `true`, then a
3288
+ # strongly consistent read is used; otherwise, an eventually
3289
+ # consistent read is used.
3290
+ # @return [Boolean]
3291
+ #
3292
+ # @!attribute [rw] next_token
3293
+ # Set this value to get remaining results, if `NextToken` was returned
3294
+ # in the statement response.
3295
+ # @return [String]
3296
+ #
3297
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ExecuteStatementInput AWS API Documentation
3298
+ #
3299
+ class ExecuteStatementInput < Struct.new(
3300
+ :statement,
3301
+ :parameters,
3302
+ :consistent_read,
3303
+ :next_token)
3304
+ SENSITIVE = []
3305
+ include Aws::Structure
3306
+ end
3307
+
3308
+ # @!attribute [rw] items
3309
+ # If a read operation was used, this property will contain the result
3310
+ # of the reade operation; a map of attribute names and their values.
3311
+ # For the write operations this value will be empty.
3312
+ # @return [Array<Hash<String,Types::AttributeValue>>]
3313
+ #
3314
+ # @!attribute [rw] next_token
3315
+ # If the response of a read request exceeds the response payload limit
3316
+ # DynamoDB will set this value in the response. If set, you can use
3317
+ # that this value in the subsequent request to get the remaining
3318
+ # results.
3319
+ # @return [String]
3320
+ #
3321
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ExecuteStatementOutput AWS API Documentation
3322
+ #
3323
+ class ExecuteStatementOutput < Struct.new(
3324
+ :items,
3325
+ :next_token)
3326
+ SENSITIVE = []
3327
+ include Aws::Structure
3328
+ end
3329
+
3330
+ # @note When making an API call, you may pass ExecuteTransactionInput
3331
+ # data as a hash:
3332
+ #
3333
+ # {
3334
+ # transact_statements: [ # required
3335
+ # {
3336
+ # statement: "PartiQLStatement", # required
3337
+ # parameters: ["value"], # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
3338
+ # },
3339
+ # ],
3340
+ # client_request_token: "ClientRequestToken",
3341
+ # }
3342
+ #
3343
+ # @!attribute [rw] transact_statements
3344
+ # The list of PartiQL statements representing the transaction to run.
3345
+ # @return [Array<Types::ParameterizedStatement>]
3346
+ #
3347
+ # @!attribute [rw] client_request_token
3348
+ # Set this value to get remaining results, if `NextToken` was returned
3349
+ # in the statement response.
3350
+ #
3351
+ # **A suitable default value is auto-generated.** You should normally
3352
+ # not need to pass this option.
3353
+ # @return [String]
3354
+ #
3355
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ExecuteTransactionInput AWS API Documentation
3356
+ #
3357
+ class ExecuteTransactionInput < Struct.new(
3358
+ :transact_statements,
3359
+ :client_request_token)
3360
+ SENSITIVE = []
3361
+ include Aws::Structure
3362
+ end
3363
+
3364
+ # @!attribute [rw] responses
3365
+ # The response to a PartiQL transaction.
3366
+ # @return [Array<Types::ItemResponse>]
3367
+ #
3368
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ExecuteTransactionOutput AWS API Documentation
3369
+ #
3370
+ class ExecuteTransactionOutput < Struct.new(
3371
+ :responses)
3372
+ SENSITIVE = []
3373
+ include Aws::Structure
3374
+ end
3375
+
3104
3376
  # Represents a condition to be compared with an attribute value. This
3105
3377
  # condition can be used with `DeleteItem`, `PutItem`, or `UpdateItem`
3106
3378
  # operations; if the comparison evaluates to true, the operation
@@ -4718,6 +4990,77 @@ module Aws::DynamoDB
4718
4990
  include Aws::Structure
4719
4991
  end
4720
4992
 
4993
+ # Describes a Kinesis data stream destination.
4994
+ #
4995
+ # @!attribute [rw] stream_arn
4996
+ # The ARN for a specific Kinesis data stream.
4997
+ # @return [String]
4998
+ #
4999
+ # @!attribute [rw] destination_status
5000
+ # The current status of replication.
5001
+ # @return [String]
5002
+ #
5003
+ # @!attribute [rw] destination_status_description
5004
+ # The human-readable string that corresponds to the replica status.
5005
+ # @return [String]
5006
+ #
5007
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/KinesisDataStreamDestination AWS API Documentation
5008
+ #
5009
+ class KinesisDataStreamDestination < Struct.new(
5010
+ :stream_arn,
5011
+ :destination_status,
5012
+ :destination_status_description)
5013
+ SENSITIVE = []
5014
+ include Aws::Structure
5015
+ end
5016
+
5017
+ # @note When making an API call, you may pass KinesisStreamingDestinationInput
5018
+ # data as a hash:
5019
+ #
5020
+ # {
5021
+ # table_name: "TableName", # required
5022
+ # stream_arn: "StreamArn", # required
5023
+ # }
5024
+ #
5025
+ # @!attribute [rw] table_name
5026
+ # The name of the DynamoDB table.
5027
+ # @return [String]
5028
+ #
5029
+ # @!attribute [rw] stream_arn
5030
+ # The ARN for a Kinesis data stream.
5031
+ # @return [String]
5032
+ #
5033
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/KinesisStreamingDestinationInput AWS API Documentation
5034
+ #
5035
+ class KinesisStreamingDestinationInput < Struct.new(
5036
+ :table_name,
5037
+ :stream_arn)
5038
+ SENSITIVE = []
5039
+ include Aws::Structure
5040
+ end
5041
+
5042
+ # @!attribute [rw] table_name
5043
+ # The name of the table being modified.
5044
+ # @return [String]
5045
+ #
5046
+ # @!attribute [rw] stream_arn
5047
+ # The ARN for the specific Kinesis data stream.
5048
+ # @return [String]
5049
+ #
5050
+ # @!attribute [rw] destination_status
5051
+ # The current status of the replication.
5052
+ # @return [String]
5053
+ #
5054
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/KinesisStreamingDestinationOutput AWS API Documentation
5055
+ #
5056
+ class KinesisStreamingDestinationOutput < Struct.new(
5057
+ :table_name,
5058
+ :stream_arn,
5059
+ :destination_status)
5060
+ SENSITIVE = []
5061
+ include Aws::Structure
5062
+ end
5063
+
4721
5064
  # There is no limit to the number of daily on-demand backups that can be
4722
5065
  # taken.
4723
5066
  #
@@ -5268,6 +5611,33 @@ module Aws::DynamoDB
5268
5611
  include Aws::Structure
5269
5612
  end
5270
5613
 
5614
+ # Represents a PartiQL statment that uses parameters.
5615
+ #
5616
+ # @note When making an API call, you may pass ParameterizedStatement
5617
+ # data as a hash:
5618
+ #
5619
+ # {
5620
+ # statement: "PartiQLStatement", # required
5621
+ # parameters: ["value"], # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
5622
+ # }
5623
+ #
5624
+ # @!attribute [rw] statement
5625
+ # A PartiQL statment that uses parameters.
5626
+ # @return [String]
5627
+ #
5628
+ # @!attribute [rw] parameters
5629
+ # The parameter values.
5630
+ # @return [Array<Types::AttributeValue>]
5631
+ #
5632
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ParameterizedStatement AWS API Documentation
5633
+ #
5634
+ class ParameterizedStatement < Struct.new(
5635
+ :statement,
5636
+ :parameters)
5637
+ SENSITIVE = []
5638
+ include Aws::Structure
5639
+ end
5640
+
5271
5641
  # The description of the point in time settings applied to the table.
5272
5642
  #
5273
5643
  # @!attribute [rw] point_in_time_recovery_status