aws-sdk-dynamodb 1.11.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-dynamodb.rb +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +42 -3
- data/lib/aws-sdk-dynamodb/client_api.rb +27 -0
- data/lib/aws-sdk-dynamodb/types.rb +30 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7b848d550054b9a2a1c02eee74b7f766cd7a939
|
4
|
+
data.tar.gz: 15ea8bc32a4bb07bdeab8c466e30f84e4a928b4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ea421d4121e8994dfbdb828aecc1e37dd1662688cc84827008cf950dfb962a6bd4966676619e3d9fc14fd00263de34754a0b6798fc2636c1ed45b7787c7d846
|
7
|
+
data.tar.gz: ea43944fa17035bc2ce16fcfe7bf2dde5f4bda40bc6f1e5c3b64ee035734182b457f69366cffb2da09991408b09cbcf940d29621a228e52db139e8de2d4ee301
|
data/lib/aws-sdk-dynamodb.rb
CHANGED
@@ -19,6 +19,8 @@ require 'aws-sdk-core/plugins/response_paging.rb'
|
|
19
19
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
20
20
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
21
21
|
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
22
|
+
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
23
|
+
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
22
24
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
23
25
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
24
26
|
require 'aws-sdk-dynamodb/plugins/extended_retries.rb'
|
@@ -50,6 +52,8 @@ module Aws::DynamoDB
|
|
50
52
|
add_plugin(Aws::Plugins::StubResponses)
|
51
53
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
52
54
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
55
|
+
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
56
|
+
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
53
57
|
add_plugin(Aws::Plugins::SignatureV4)
|
54
58
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
55
59
|
add_plugin(Aws::DynamoDB::Plugins::ExtendedRetries)
|
@@ -98,6 +102,22 @@ module Aws::DynamoDB
|
|
98
102
|
#
|
99
103
|
# @option options [String] :access_key_id
|
100
104
|
#
|
105
|
+
# @option options [] :client_side_monitoring (false)
|
106
|
+
# When `true`, client-side metrics will be collected for all API requests from
|
107
|
+
# this client.
|
108
|
+
#
|
109
|
+
# @option options [] :client_side_monitoring_client_id ("")
|
110
|
+
# Allows you to provide an identifier for this client which will be attached to
|
111
|
+
# all generated client side metrics. Defaults to an empty string.
|
112
|
+
#
|
113
|
+
# @option options [] :client_side_monitoring_port (31000)
|
114
|
+
# Required for publishing client metrics. The port that the client side monitoring
|
115
|
+
# agent is running on, where client metrics will be published via UDP.
|
116
|
+
#
|
117
|
+
# @option options [] :client_side_monitoring_publisher (#<Aws::ClientSideMonitoring::Publisher:0x00007f20e3c7b9f0 @agent_port=nil, @mutex=#<Thread::Mutex:0x00007f20e3c7b9a0>>)
|
118
|
+
# Allows you to provide a custom client-side monitoring publisher class. By default,
|
119
|
+
# will use the Client Side Monitoring Agent Publisher.
|
120
|
+
#
|
101
121
|
# @option options [Boolean] :compute_checksums (true)
|
102
122
|
# When `true`, a CRC32 checksum is computed of every HTTP
|
103
123
|
# response body and compared against the `X-Amz-Crc32` header.
|
@@ -135,14 +155,14 @@ module Aws::DynamoDB
|
|
135
155
|
#
|
136
156
|
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
137
157
|
#
|
138
|
-
# @option options [Integer] :retry_limit (
|
158
|
+
# @option options [Integer] :retry_limit (3)
|
139
159
|
# The maximum number of times to retry failed requests. Only
|
140
160
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
141
161
|
# are retried. Generally, these are throttling errors, data
|
142
162
|
# checksum errors, networking errors, timeout errors and auth
|
143
163
|
# errors from expired credentials.
|
144
164
|
#
|
145
|
-
# @option options [Integer] :retry_limit (
|
165
|
+
# @option options [Integer] :retry_limit (10)
|
146
166
|
# The maximum number of times to retry failed requests. Only
|
147
167
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
148
168
|
# are retried. Generally, these are throttling errors, data
|
@@ -1876,6 +1896,25 @@ module Aws::DynamoDB
|
|
1876
1896
|
req.send_request(options)
|
1877
1897
|
end
|
1878
1898
|
|
1899
|
+
# @return [Types::DescribeEndpointsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1900
|
+
#
|
1901
|
+
# * {Types::DescribeEndpointsResponse#endpoints #endpoints} => Array<Types::Endpoint>
|
1902
|
+
#
|
1903
|
+
# @example Response structure
|
1904
|
+
#
|
1905
|
+
# resp.endpoints #=> Array
|
1906
|
+
# resp.endpoints[0].address #=> String
|
1907
|
+
# resp.endpoints[0].cache_period_in_minutes #=> Integer
|
1908
|
+
#
|
1909
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeEndpoints AWS API Documentation
|
1910
|
+
#
|
1911
|
+
# @overload describe_endpoints(params = {})
|
1912
|
+
# @param [Hash] params ({})
|
1913
|
+
def describe_endpoints(params = {}, options = {})
|
1914
|
+
req = build_request(:describe_endpoints, params)
|
1915
|
+
req.send_request(options)
|
1916
|
+
end
|
1917
|
+
|
1879
1918
|
# Returns information about the specified global table.
|
1880
1919
|
#
|
1881
1920
|
# @option params [required, String] :global_table_name
|
@@ -5348,7 +5387,7 @@ module Aws::DynamoDB
|
|
5348
5387
|
params: params,
|
5349
5388
|
config: config)
|
5350
5389
|
context[:gem_name] = 'aws-sdk-dynamodb'
|
5351
|
-
context[:gem_version] = '1.
|
5390
|
+
context[:gem_version] = '1.12.0'
|
5352
5391
|
Seahorse::Client::Request.new(handlers, context)
|
5353
5392
|
end
|
5354
5393
|
|
@@ -91,6 +91,8 @@ module Aws::DynamoDB
|
|
91
91
|
DescribeBackupOutput = Shapes::StructureShape.new(name: 'DescribeBackupOutput')
|
92
92
|
DescribeContinuousBackupsInput = Shapes::StructureShape.new(name: 'DescribeContinuousBackupsInput')
|
93
93
|
DescribeContinuousBackupsOutput = Shapes::StructureShape.new(name: 'DescribeContinuousBackupsOutput')
|
94
|
+
DescribeEndpointsRequest = Shapes::StructureShape.new(name: 'DescribeEndpointsRequest')
|
95
|
+
DescribeEndpointsResponse = Shapes::StructureShape.new(name: 'DescribeEndpointsResponse')
|
94
96
|
DescribeGlobalTableInput = Shapes::StructureShape.new(name: 'DescribeGlobalTableInput')
|
95
97
|
DescribeGlobalTableOutput = Shapes::StructureShape.new(name: 'DescribeGlobalTableOutput')
|
96
98
|
DescribeGlobalTableSettingsInput = Shapes::StructureShape.new(name: 'DescribeGlobalTableSettingsInput')
|
@@ -102,6 +104,8 @@ module Aws::DynamoDB
|
|
102
104
|
DescribeTimeToLiveInput = Shapes::StructureShape.new(name: 'DescribeTimeToLiveInput')
|
103
105
|
DescribeTimeToLiveOutput = Shapes::StructureShape.new(name: 'DescribeTimeToLiveOutput')
|
104
106
|
Double = Shapes::FloatShape.new(name: 'Double')
|
107
|
+
Endpoint = Shapes::StructureShape.new(name: 'Endpoint')
|
108
|
+
Endpoints = Shapes::ListShape.new(name: 'Endpoints')
|
105
109
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
106
110
|
ExpectedAttributeMap = Shapes::MapShape.new(name: 'ExpectedAttributeMap')
|
107
111
|
ExpectedAttributeValue = Shapes::StructureShape.new(name: 'ExpectedAttributeValue')
|
@@ -523,6 +527,11 @@ module Aws::DynamoDB
|
|
523
527
|
DescribeContinuousBackupsOutput.add_member(:continuous_backups_description, Shapes::ShapeRef.new(shape: ContinuousBackupsDescription, location_name: "ContinuousBackupsDescription"))
|
524
528
|
DescribeContinuousBackupsOutput.struct_class = Types::DescribeContinuousBackupsOutput
|
525
529
|
|
530
|
+
DescribeEndpointsRequest.struct_class = Types::DescribeEndpointsRequest
|
531
|
+
|
532
|
+
DescribeEndpointsResponse.add_member(:endpoints, Shapes::ShapeRef.new(shape: Endpoints, required: true, location_name: "Endpoints"))
|
533
|
+
DescribeEndpointsResponse.struct_class = Types::DescribeEndpointsResponse
|
534
|
+
|
526
535
|
DescribeGlobalTableInput.add_member(:global_table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "GlobalTableName"))
|
527
536
|
DescribeGlobalTableInput.struct_class = Types::DescribeGlobalTableInput
|
528
537
|
|
@@ -556,6 +565,12 @@ module Aws::DynamoDB
|
|
556
565
|
DescribeTimeToLiveOutput.add_member(:time_to_live_description, Shapes::ShapeRef.new(shape: TimeToLiveDescription, location_name: "TimeToLiveDescription"))
|
557
566
|
DescribeTimeToLiveOutput.struct_class = Types::DescribeTimeToLiveOutput
|
558
567
|
|
568
|
+
Endpoint.add_member(:address, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Address"))
|
569
|
+
Endpoint.add_member(:cache_period_in_minutes, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "CachePeriodInMinutes"))
|
570
|
+
Endpoint.struct_class = Types::Endpoint
|
571
|
+
|
572
|
+
Endpoints.member = Shapes::ShapeRef.new(shape: Endpoint)
|
573
|
+
|
559
574
|
ExpectedAttributeMap.key = Shapes::ShapeRef.new(shape: AttributeName)
|
560
575
|
ExpectedAttributeMap.value = Shapes::ShapeRef.new(shape: ExpectedAttributeValue)
|
561
576
|
|
@@ -1081,12 +1096,16 @@ module Aws::DynamoDB
|
|
1081
1096
|
api.version = "2012-08-10"
|
1082
1097
|
|
1083
1098
|
api.metadata = {
|
1099
|
+
"apiVersion" => "2012-08-10",
|
1084
1100
|
"endpointPrefix" => "dynamodb",
|
1085
1101
|
"jsonVersion" => "1.0",
|
1086
1102
|
"protocol" => "json",
|
1103
|
+
"serviceAbbreviation" => "DynamoDB",
|
1087
1104
|
"serviceFullName" => "Amazon DynamoDB",
|
1105
|
+
"serviceId" => "DynamoDB",
|
1088
1106
|
"signatureVersion" => "v4",
|
1089
1107
|
"targetPrefix" => "DynamoDB_20120810",
|
1108
|
+
"uid" => "dynamodb-2012-08-10",
|
1090
1109
|
}
|
1091
1110
|
|
1092
1111
|
api.add_operation(:batch_get_item, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1211,6 +1230,14 @@ module Aws::DynamoDB
|
|
1211
1230
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
1212
1231
|
end)
|
1213
1232
|
|
1233
|
+
api.add_operation(:describe_endpoints, Seahorse::Model::Operation.new.tap do |o|
|
1234
|
+
o.name = "DescribeEndpoints"
|
1235
|
+
o.http_method = "POST"
|
1236
|
+
o.http_request_uri = "/"
|
1237
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeEndpointsRequest)
|
1238
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeEndpointsResponse)
|
1239
|
+
end)
|
1240
|
+
|
1214
1241
|
api.add_operation(:describe_global_table, Seahorse::Model::Operation.new.tap do |o|
|
1215
1242
|
o.name = "DescribeGlobalTable"
|
1216
1243
|
o.http_method = "POST"
|
@@ -2250,6 +2250,22 @@ module Aws::DynamoDB
|
|
2250
2250
|
include Aws::Structure
|
2251
2251
|
end
|
2252
2252
|
|
2253
|
+
# @api private
|
2254
|
+
#
|
2255
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeEndpointsRequest AWS API Documentation
|
2256
|
+
#
|
2257
|
+
class DescribeEndpointsRequest < Aws::EmptyStructure; end
|
2258
|
+
|
2259
|
+
# @!attribute [rw] endpoints
|
2260
|
+
# @return [Array<Types::Endpoint>]
|
2261
|
+
#
|
2262
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeEndpointsResponse AWS API Documentation
|
2263
|
+
#
|
2264
|
+
class DescribeEndpointsResponse < Struct.new(
|
2265
|
+
:endpoints)
|
2266
|
+
include Aws::Structure
|
2267
|
+
end
|
2268
|
+
|
2253
2269
|
# @note When making an API call, you may pass DescribeGlobalTableInput
|
2254
2270
|
# data as a hash:
|
2255
2271
|
#
|
@@ -2418,6 +2434,20 @@ module Aws::DynamoDB
|
|
2418
2434
|
include Aws::Structure
|
2419
2435
|
end
|
2420
2436
|
|
2437
|
+
# @!attribute [rw] address
|
2438
|
+
# @return [String]
|
2439
|
+
#
|
2440
|
+
# @!attribute [rw] cache_period_in_minutes
|
2441
|
+
# @return [Integer]
|
2442
|
+
#
|
2443
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Endpoint AWS API Documentation
|
2444
|
+
#
|
2445
|
+
class Endpoint < Struct.new(
|
2446
|
+
:address,
|
2447
|
+
:cache_period_in_minutes)
|
2448
|
+
include Aws::Structure
|
2449
|
+
end
|
2450
|
+
|
2421
2451
|
# Represents a condition to be compared with an attribute value. This
|
2422
2452
|
# condition can be used with `DeleteItem`, `PutItem` or `UpdateItem`
|
2423
2453
|
# operations; if the comparison evaluates to true, the operation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-dynamodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|