aws-sdk 1.40.0 → 1.40.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -272,7 +272,7 @@ module AWS
272
272
  }
273
273
 
274
274
  # @option [String] :path
275
- # @option [String] :profile
275
+ # @option [String] :profile_name
276
276
  def initialize(options = {})
277
277
  @path = options[:path] || File.join(Dir.home, '.aws', 'credentials')
278
278
  @profile_name = options[:profile_name]
@@ -21,27 +21,27 @@ module AWS
21
21
  # You can use this class to get information about a certificate
22
22
  # and to delete it.
23
23
  #
24
- # @attr [String] The name that identifies the server certificate.
24
+ # @attr [String] name The name that identifies the server certificate.
25
25
  #
26
- # @attr_reader [String] The stable and unique string identifying
26
+ # @attr_reader [String] id The stable and unique string identifying
27
27
  # the server certificate.
28
28
  #
29
- # @attr_reader [Time] The date when the server certificate was
29
+ # @attr_reader [Time] updload_date The date when the server certificate was
30
30
  # uploaded.
31
31
  #
32
- # @attr_reader [String] The Amazon Resource Name (ARN)
32
+ # @attr_reader [String] arn The Amazon Resource Name (ARN)
33
33
  # specifying the server certificate. For more information
34
34
  # about ARNs and how to use them in policies, see
35
35
  # {http://docs.amazonwebservices.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html
36
36
  # Identifiers for IAM Entities} in <i>Using AWS Identity and
37
37
  # Access Management</i>.
38
38
  #
39
- # @attr [String] Path to the server certificate.
39
+ # @attr [String] path Path to the server certificate.
40
40
  #
41
- # @attr_reader [String] The contents of the public key
41
+ # @attr_reader [String] certificate_body The contents of the public key
42
42
  # certificate.
43
43
  #
44
- # @attr_reader [String] The contents of the public key
44
+ # @attr_reader [String] certificate_chain The contents of the public key
45
45
  # certificate chain.
46
46
  #
47
47
  class ServerCertificate < Resource
@@ -69,10 +69,13 @@ module AWS
69
69
  end
70
70
  end
71
71
 
72
+ token = client.credential_provider.session_token
73
+
72
74
  request.add_param("X-Amz-Algorithm", "AWS4-HMAC-SHA256")
73
75
  request.add_param("X-Amz-Date", now)
74
76
  request.add_param("X-Amz-SignedHeaders", signed_headers)
75
77
  request.add_param("X-Amz-Expires", seconds_away(options[:expires]))
78
+ request.add_param('X-Amz-Security-Token', token) if token
76
79
  request.add_param("X-Amz-Credential", signer.credential(now))
77
80
  request.add_param("X-Amz-Signature", signature(request, now))
78
81
 
@@ -13,5 +13,5 @@
13
13
 
14
14
  module AWS
15
15
  # Current version of the AWS SDK for Ruby
16
- VERSION = '1.40.0'
16
+ VERSION = '1.40.1'
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.0
4
+ version: 1.40.1
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-06 00:00:00.000000000 Z
11
+ date: 2014-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri