aws-sdk 1.29.1 → 1.30.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.
@@ -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),
@@ -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
@@ -589,7 +589,7 @@ module AWS
589
589
  !!@optimistic_locking_attr
590
590
  end
591
591
 
592
- @private
592
+ # @private
593
593
  def optimistic_locking_attr
594
594
  @optimistic_locking_attr
595
595
  end
@@ -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\.(.+?)\./)
@@ -13,5 +13,5 @@
13
13
 
14
14
  module AWS
15
15
  # Current version of the AWS SDK for Ruby
16
- VERSION = '1.29.1'
16
+ VERSION = '1.30.0'
17
17
  end
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.29.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-05 00:00:00.000000000 Z
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