aws-sdk 1.40.3 → 1.41.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.
@@ -1,4 +1,4 @@
1
- # Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1
+ # Copyright 2011-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License"). You
4
4
  # may not use this file except in compliance with the License. A copy of
@@ -154,6 +154,13 @@
154
154
  - :string
155
155
  Version:
156
156
  - :string
157
+ Tags:
158
+ - :membered_list:
159
+ - :structure:
160
+ Key:
161
+ - :string
162
+ Value:
163
+ - :string
157
164
  VersionLabel:
158
165
  - :string
159
166
  TemplateName:
@@ -133,6 +133,15 @@
133
133
  - :required
134
134
  Description:
135
135
  - :string
136
+ DataSources:
137
+ - :list:
138
+ - :structure:
139
+ Type:
140
+ - :string
141
+ Arn:
142
+ - :string
143
+ DatabaseName:
144
+ - :string
136
145
  Type:
137
146
  - :string
138
147
  - :required
@@ -232,6 +241,8 @@
232
241
  - :string
233
242
  AvailabilityZone:
234
243
  - :string
244
+ VirtualizationType:
245
+ - :string
235
246
  SubnetId:
236
247
  - :string
237
248
  Architecture:
@@ -457,6 +468,13 @@
457
468
  - :string
458
469
  - :required
459
470
  :outputs: {}
471
+ - :name: DeregisterRdsDbInstance
472
+ :method: :deregister_rds_db_instance
473
+ :inputs:
474
+ RdsDbInstanceArn:
475
+ - :string
476
+ - :required
477
+ :outputs: {}
460
478
  - :name: DeregisterVolume
461
479
  :method: :deregister_volume
462
480
  :inputs:
@@ -492,6 +510,19 @@
492
510
  Description:
493
511
  :sym: :description
494
512
  :type: :string
513
+ DataSources:
514
+ :sym: :data_sources
515
+ :type: :hash
516
+ :members:
517
+ Type:
518
+ :sym: :type
519
+ :type: :string
520
+ Arn:
521
+ :sym: :arn
522
+ :type: :string
523
+ DatabaseName:
524
+ :sym: :database_name
525
+ :type: :string
495
526
  Type:
496
527
  :sym: :type
497
528
  :type: :string
@@ -742,6 +773,9 @@
742
773
  Ec2InstanceId:
743
774
  :sym: :ec2_instance_id
744
775
  :type: :string
776
+ VirtualizationType:
777
+ :sym: :virtualization_type
778
+ :type: :string
745
779
  Hostname:
746
780
  :sym: :hostname
747
781
  :type: :string
@@ -1105,6 +1139,47 @@
1105
1139
  Iops:
1106
1140
  :sym: :iops
1107
1141
  :type: :integer
1142
+ - :name: DescribeRdsDbInstances
1143
+ :method: :describe_rds_db_instances
1144
+ :inputs:
1145
+ StackId:
1146
+ - :string
1147
+ - :required
1148
+ RdsDbInstanceArns:
1149
+ - :list:
1150
+ - :string
1151
+ :outputs:
1152
+ RdsDbInstances:
1153
+ :sym: :rds_db_instances
1154
+ :type: :hash
1155
+ :members:
1156
+ RdsDbInstanceArn:
1157
+ :sym: :rds_db_instance_arn
1158
+ :type: :string
1159
+ DbInstanceIdentifier:
1160
+ :sym: :db_instance_identifier
1161
+ :type: :string
1162
+ DbUser:
1163
+ :sym: :db_user
1164
+ :type: :string
1165
+ DbPassword:
1166
+ :sym: :db_password
1167
+ :type: :string
1168
+ Region:
1169
+ :sym: :region
1170
+ :type: :string
1171
+ Address:
1172
+ :sym: :address
1173
+ :type: :string
1174
+ Engine:
1175
+ :sym: :engine
1176
+ :type: :string
1177
+ StackId:
1178
+ :sym: :stack_id
1179
+ :type: :string
1180
+ MissingOnRds:
1181
+ :sym: :missing_on_rds
1182
+ :type: :boolean
1108
1183
  - :name: DescribeServiceErrors
1109
1184
  :method: :describe_service_errors
1110
1185
  :inputs:
@@ -1513,6 +1588,22 @@
1513
1588
  ElasticIp:
1514
1589
  :sym: :elastic_ip
1515
1590
  :type: :string
1591
+ - :name: RegisterRdsDbInstance
1592
+ :method: :register_rds_db_instance
1593
+ :inputs:
1594
+ StackId:
1595
+ - :string
1596
+ - :required
1597
+ RdsDbInstanceArn:
1598
+ - :string
1599
+ - :required
1600
+ DbUser:
1601
+ - :string
1602
+ - :required
1603
+ DbPassword:
1604
+ - :string
1605
+ - :required
1606
+ :outputs: {}
1516
1607
  - :name: RegisterVolume
1517
1608
  :method: :register_volume
1518
1609
  :inputs:
@@ -1674,6 +1765,15 @@
1674
1765
  - :string
1675
1766
  Description:
1676
1767
  - :string
1768
+ DataSources:
1769
+ - :list:
1770
+ - :structure:
1771
+ Type:
1772
+ - :string
1773
+ Arn:
1774
+ - :string
1775
+ DatabaseName:
1776
+ - :string
1677
1777
  Type:
1678
1778
  - :string
1679
1779
  AppSource:
@@ -1746,6 +1846,8 @@
1746
1846
  - :string
1747
1847
  InstallUpdatesOnBoot:
1748
1848
  - :boolean
1849
+ EbsOptimized:
1850
+ - :boolean
1749
1851
  :outputs: {}
1750
1852
  - :name: UpdateLayer
1751
1853
  :method: :update_layer
@@ -1823,6 +1925,17 @@
1823
1925
  SshPublicKey:
1824
1926
  - :string
1825
1927
  :outputs: {}
1928
+ - :name: UpdateRdsDbInstance
1929
+ :method: :update_rds_db_instance
1930
+ :inputs:
1931
+ RdsDbInstanceArn:
1932
+ - :string
1933
+ - :required
1934
+ DbUser:
1935
+ - :string
1936
+ DbPassword:
1937
+ - :string
1938
+ :outputs: {}
1826
1939
  - :name: UpdateStack
1827
1940
  :method: :update_stack
1828
1941
  :inputs:
@@ -555,6 +555,7 @@ module AWS
555
555
  http_request.port = port
556
556
  http_request.region = @region
557
557
  http_request.use_ssl = config.use_ssl?
558
+ http_request.read_timeout = config.http_read_timeout
558
559
 
559
560
  send("configure_#{name}_request", http_request, opts)
560
561
 
@@ -17,7 +17,7 @@ module AWS
17
17
  # Client class for Amazon Elastic Compute Cloud (EC2).
18
18
  class Client < Core::QueryClient
19
19
 
20
- API_VERSION = '2014-02-01'
20
+ API_VERSION = '2014-05-01'
21
21
 
22
22
  def sign_request request
23
23
  version = @config.ec2_signature_version ?
@@ -101,5 +101,48 @@ module AWS
101
101
  define_client_methods('2014-02-01')
102
102
  end
103
103
 
104
+ class Client::V20140501 < Client
105
+
106
+ define_client_methods('2014-05-01')
107
+
108
+ alias basic_copy_snapshot copy_snapshot
109
+
110
+ def copy_snapshot(params = {})
111
+ # Adding logic to auto-compute the destination group and presigned
112
+ # url params for the copy snapshot operation. This is necessary
113
+ # when calling copy snapshot on snapshots for encrypted volumes.
114
+ # This addition should be transparent to the API user.
115
+ params = params.dup
116
+ params[:destination_region] = @region
117
+ params[:presigned_url] = presigned_copy_snapshot_url(params)
118
+ basic_copy_snapshot(params)
119
+ end
120
+
121
+ private
122
+
123
+ def presigned_copy_snapshot_url(params)
124
+ now = Time.now.strftime("%Y%m%dT%H%M%SZ")
125
+ token = credential_provider.session_token
126
+
127
+ req = build_request(:copy_snapshot, params)
128
+ req.headers['host'] = req.host
129
+
130
+ req.add_param("X-Amz-Algorithm", "AWS4-HMAC-SHA256")
131
+ req.add_param("X-Amz-Date", now)
132
+ req.add_param("X-Amz-SignedHeaders", 'host')
133
+ req.add_param("X-Amz-Expires", "3600")
134
+ req.add_param('X-Amz-Security-Token', token) if token
135
+ req.add_param("X-Amz-Credential", v4_signer.credential(now))
136
+
137
+ req.http_method = 'GET'
138
+ req.uri = '/?' + req.url_encoded_params
139
+ req.body = ''
140
+
141
+ key = v4_signer.derive_key(now)
142
+ sig = v4_signer.signature(req, key, now, v4_signer.class::EMPTY_DIGEST)
143
+ req.endpoint + req.uri + "&X-Amz-Signature=#{sig}"
144
+ end
145
+
146
+ end
104
147
  end
105
148
  end
@@ -94,7 +94,10 @@ module AWS
94
94
 
95
95
  # @return [Boolean] Returns `true` if this hosted zone exists.
96
96
  def exists?
97
- get_resource.data[:hosted_zone][:id] == path
97
+ get_resource
98
+ true
99
+ rescue Errors::NoSuchHostedZone
100
+ false
98
101
  end
99
102
 
100
103
  # Returns resource record sets.
@@ -58,8 +58,10 @@ module AWS
58
58
  request.add_param("X-Amz-Acl", options[:acl].to_s.gsub(/_/, '-'))
59
59
  end
60
60
 
61
+ # must be sent along with the PUT request headers
61
62
  if options[:content_md5]
62
- request.add_param("Content-MD5", options[:content_md5])
63
+ request.headers['Content-MD5'] = options[:content_md5]
64
+ signed_headers << ';Content-MD5'
63
65
  end
64
66
 
65
67
  request_params = Core::Signers::S3::QUERY_PARAMS.map do |p|
@@ -13,5 +13,5 @@
13
13
 
14
14
  module AWS
15
15
  # Current version of the AWS SDK for Ruby
16
- VERSION = '1.40.3'
16
+ VERSION = '1.41.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.40.3
4
+ version: 1.41.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: 2014-05-15 00:00:00.000000000 Z
11
+ date: 2014-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -125,7 +125,6 @@ files:
125
125
  - lib/aws/core/endpoints.rb
126
126
  - lib/aws/core/http/connection_pool.rb
127
127
  - lib/aws/core/http/curb_handler.rb
128
- - lib/aws/core/http/excon_handler.rb
129
128
  - lib/aws/core/http/handler.rb
130
129
  - lib/aws/core/http/net_http_handler.rb
131
130
  - lib/aws/core/http/patch.rb
@@ -574,6 +573,7 @@ files:
574
573
  - lib/aws/api_config/EC2-2013-10-01.yml
575
574
  - lib/aws/api_config/EC2-2013-10-15.yml
576
575
  - lib/aws/api_config/EC2-2014-02-01.yml
576
+ - lib/aws/api_config/EC2-2014-05-01.yml
577
577
  - lib/aws/api_config/ElastiCache-2013-06-15.yml
578
578
  - lib/aws/api_config/ElastiCache-2014-03-24.yml
579
579
  - lib/aws/api_config/ElasticBeanstalk-2010-12-01.yml
@@ -1,24 +0,0 @@
1
- require 'excon'
2
-
3
- class ExconHandler
4
-
5
- def handle(req, resp, &read_block)
6
- options = {
7
- :method => req.http_method.downcase.to_sym,
8
- :path => req.path,
9
- :query => req.querystring,
10
- :headers => req.headers,
11
- :body => req.body_stream,
12
- }
13
- options[:response_block] = read_block if block_given?
14
- connection = Excon.new(req.endpoint)
15
- excon_resp = connection.request(options)
16
- resp.status = excon_resp.status.to_i
17
- resp.headers = excon_resp.headers
18
- resp.body = excon_resp.body unless block_given?
19
- end
20
-
21
- end
22
-
23
- AWS.config(http_handler: ExconHandler.new)
24
-