aws-sdk 1.29.1 → 1.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ca-bundle.crt +0 -341
- data/lib/aws/api_config/DynamoDB-2012-08-10.yml +486 -1
- data/lib/aws/api_config/EMR-2009-03-31.yml +39 -0
- data/lib/aws/api_config/ElasticBeanstalk-2010-12-01.yml +32 -8
- data/lib/aws/api_config/Kinesis-2013-11-04.yml +200 -0
- data/lib/aws/api_config/OpsWorks-2013-02-18.yml +101 -3
- data/lib/aws/core.rb +3 -0
- data/lib/aws/kinesis.rb +54 -0
- data/lib/aws/kinesis/client.rb +33 -0
- data/lib/aws/kinesis/config.rb +18 -0
- data/lib/aws/kinesis/errors.rb +20 -0
- data/lib/aws/kinesis/request.rb +26 -0
- data/lib/aws/record/abstract_base.rb +1 -1
- data/lib/aws/sqs/client.rb +3 -0
- data/lib/aws/version.rb +1 -1
- metadata +8 -2
data/lib/aws/core.rb
CHANGED
@@ -116,6 +116,9 @@ module AWS
|
|
116
116
|
SvcDetails.new("ImportExport",
|
117
117
|
:full_name => "AWS Import/Export",
|
118
118
|
:method_name => :import_export),
|
119
|
+
SvcDetails.new("Kinesis",
|
120
|
+
:full_name => "Amazon Kinesis",
|
121
|
+
:method_name => :kinesis),
|
119
122
|
SvcDetails.new("OpsWorks",
|
120
123
|
:full_name => "AWS OpsWorks",
|
121
124
|
:method_name => :ops_works),
|
data/lib/aws/kinesis.rb
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
5
|
+
# the License is located at
|
6
|
+
#
|
7
|
+
# http://aws.amazon.com/apache2.0/
|
8
|
+
#
|
9
|
+
# or in the "license" file accompanying this file. This file is
|
10
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
11
|
+
# ANY KIND, either express or implied. See the License for the specific
|
12
|
+
# language governing permissions and limitations under the License.
|
13
|
+
|
14
|
+
require 'aws/core'
|
15
|
+
require 'aws/kinesis/config'
|
16
|
+
|
17
|
+
module AWS
|
18
|
+
|
19
|
+
# To use Amazon Kinesis you must first
|
20
|
+
# [sign up here](http://aws.amazon.com/kinesis/)
|
21
|
+
#
|
22
|
+
# For more information about Amazon Kinesis, see:
|
23
|
+
#
|
24
|
+
# * [Amazon Kinesis](http://aws.amazon.com/kinesis/)
|
25
|
+
# * [Amazon Kinesis Documentation](http://aws.amazon.com/documentation/kinesis/)
|
26
|
+
#
|
27
|
+
# ## Credentials
|
28
|
+
#
|
29
|
+
# You can setup default credentials for all AWS services via
|
30
|
+
# AWS.config:
|
31
|
+
#
|
32
|
+
# AWS.config(
|
33
|
+
# :access_key_id => 'YOUR_ACCESS_KEY_ID',
|
34
|
+
# :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
|
35
|
+
#
|
36
|
+
# Or you can set them directly on the Kinesis interface:
|
37
|
+
#
|
38
|
+
# kinesis = AWS::Kinesis.new(
|
39
|
+
# :access_key_id => 'YOUR_ACCESS_KEY_ID',
|
40
|
+
# :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
|
41
|
+
#
|
42
|
+
class Kinesis
|
43
|
+
|
44
|
+
autoload :Client, 'aws/kinesis/client'
|
45
|
+
autoload :Errors, 'aws/kinesis/errors'
|
46
|
+
autoload :Request, 'aws/kinesis/request'
|
47
|
+
|
48
|
+
include Core::ServiceInterface
|
49
|
+
|
50
|
+
endpoint_prefix 'kinesis'
|
51
|
+
|
52
|
+
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
5
|
+
# the License is located at
|
6
|
+
#
|
7
|
+
# http://aws.amazon.com/apache2.0/
|
8
|
+
#
|
9
|
+
# or in the "license" file accompanying this file. This file is
|
10
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
11
|
+
# ANY KIND, either express or implied. See the License for the specific
|
12
|
+
# language governing permissions and limitations under the License.
|
13
|
+
|
14
|
+
module AWS
|
15
|
+
class Kinesis
|
16
|
+
|
17
|
+
# Client class for Amazon Kinesis.
|
18
|
+
class Client < Core::JSONClient
|
19
|
+
|
20
|
+
API_VERSION = '2013-11-04'
|
21
|
+
|
22
|
+
# @api private
|
23
|
+
CACHEABLE_REQUESTS = Set[]
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
class Client::V20131104 < Client
|
28
|
+
|
29
|
+
define_client_methods('2013-11-04')
|
30
|
+
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
5
|
+
# the License is located at
|
6
|
+
#
|
7
|
+
# http://aws.amazon.com/apache2.0/
|
8
|
+
#
|
9
|
+
# or in the "license" file accompanying this file. This file is
|
10
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
11
|
+
# ANY KIND, either express or implied. See the License for the specific
|
12
|
+
# language governing permissions and limitations under the License.
|
13
|
+
|
14
|
+
AWS::Core::Configuration.module_eval do
|
15
|
+
|
16
|
+
add_service 'Kinesis', 'kinesis', 'kinesis.%s.amazonaws.com'
|
17
|
+
|
18
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
5
|
+
# the License is located at
|
6
|
+
#
|
7
|
+
# http://aws.amazon.com/apache2.0/
|
8
|
+
#
|
9
|
+
# or in the "license" file accompanying this file. This file is
|
10
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
11
|
+
# ANY KIND, either express or implied. See the License for the specific
|
12
|
+
# language governing permissions and limitations under the License.
|
13
|
+
|
14
|
+
module AWS
|
15
|
+
class Kinesis
|
16
|
+
module Errors
|
17
|
+
extend Core::LazyErrorClasses
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
5
|
+
# the License is located at
|
6
|
+
#
|
7
|
+
# http://aws.amazon.com/apache2.0/
|
8
|
+
#
|
9
|
+
# or in the "license" file accompanying this file. This file is
|
10
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
11
|
+
# ANY KIND, either express or implied. See the License for the specific
|
12
|
+
# language governing permissions and limitations under the License.
|
13
|
+
|
14
|
+
module AWS
|
15
|
+
class Kinesis
|
16
|
+
# @api private
|
17
|
+
class Request < Core::Http::Request
|
18
|
+
include Core::Signature::Version4
|
19
|
+
|
20
|
+
def service
|
21
|
+
'kinesis'
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/aws/sqs/client.rb
CHANGED
@@ -28,6 +28,9 @@ module AWS
|
|
28
28
|
request = super(*args)
|
29
29
|
if url_param = request.params.find { |p| p.name == "QueueUrl" }
|
30
30
|
url = URI.parse(url_param.value)
|
31
|
+
if url.class == URI::Generic
|
32
|
+
raise ArgumentError, "invalid queue url `#{url_param.value}'"
|
33
|
+
end
|
31
34
|
request.host = url.host
|
32
35
|
request.uri = url.request_uri
|
33
36
|
if matches = request.host.match(/^sqs\.(.+?)\./)
|
data/lib/aws/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.30.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: 2013-12-
|
11
|
+
date: 2013-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: uuidtools
|
@@ -390,6 +390,11 @@ files:
|
|
390
390
|
- lib/aws/import_export/errors.rb
|
391
391
|
- lib/aws/import_export/request.rb
|
392
392
|
- lib/aws/import_export.rb
|
393
|
+
- lib/aws/kinesis/client.rb
|
394
|
+
- lib/aws/kinesis/config.rb
|
395
|
+
- lib/aws/kinesis/errors.rb
|
396
|
+
- lib/aws/kinesis/request.rb
|
397
|
+
- lib/aws/kinesis.rb
|
393
398
|
- lib/aws/ops_works/client.rb
|
394
399
|
- lib/aws/ops_works/config.rb
|
395
400
|
- lib/aws/ops_works/errors.rb
|
@@ -610,6 +615,7 @@ files:
|
|
610
615
|
- lib/aws/api_config/Glacier-2012-06-01.yml
|
611
616
|
- lib/aws/api_config/IAM-2010-05-08.yml
|
612
617
|
- lib/aws/api_config/ImportExport-2010-06-01.yml
|
618
|
+
- lib/aws/api_config/Kinesis-2013-11-04.yml
|
613
619
|
- lib/aws/api_config/OpsWorks-2013-02-18.yml
|
614
620
|
- lib/aws/api_config/RDS-2013-05-15.yml
|
615
621
|
- lib/aws/api_config/RDS-2013-09-09.yml
|