aws-sdk 1.14.0 → 1.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/aws/cloud_front/request.rb +3 -20
- data/lib/aws/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f25f18c59d2ec1fa00b1612e45f6ec84f889287
|
4
|
+
data.tar.gz: 7d13e27fa052cbd5e64141a3c2e0cadd81e68662
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47747ecf468d7a3c47bdf06158281d7f007b2cee6433f85928547bab4bc46665b512bc33ada381937da921e84aa1f6fb3277a5db1768f5f8935299c82341ddb9
|
7
|
+
data.tar.gz: 7bdb9115815453427145509f815f7a60ee73dc22260fd60c8380e62bf285cc58a96ae6cfc18e45ac6c96a14e5b173f6e17f74d73d439bee40766161998ae4e43
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ dependency (aws-sdk follows [semantic versioning](http://semver.org/)):
|
|
17
17
|
|
18
18
|
You need to provide your AWS security credentials and choose a default region.
|
19
19
|
|
20
|
-
```
|
20
|
+
```
|
21
21
|
AWS.config(access_key_id: '...', secret_access_key: '...', region: 'us-west-2')
|
22
22
|
```
|
23
23
|
|
@@ -42,7 +42,7 @@ response data. The service interfaces provide a higher level abstration built us
|
|
42
42
|
|
43
43
|
**Example: list instance tags using a client**
|
44
44
|
|
45
|
-
```
|
45
|
+
```
|
46
46
|
resp = ec2.client.describe_tags(filters: [{ name: "resource-id", values: ["i-12345678"] }])
|
47
47
|
resp[:tag_set].first
|
48
48
|
#=> {:resource_id=>"i-12345678", :resource_type=>"instance", :key=>"role", :value=>"web"}
|
@@ -50,7 +50,7 @@ resp[:tag_set].first
|
|
50
50
|
|
51
51
|
**Example: list instance tags using the AWS::EC2 higher level interface**
|
52
52
|
|
53
|
-
```
|
53
|
+
```
|
54
54
|
ec2.instances['i-12345678'].tags.to_h
|
55
55
|
#=> {"role"=>"web"}
|
56
56
|
```
|
@@ -19,29 +19,12 @@ module AWS
|
|
19
19
|
# @api private
|
20
20
|
class Request < Core::Http::Request
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
self.access_key_id = credentials.access_key_id
|
25
|
-
|
26
|
-
headers['x-amz-security-token'] = credentials.session_token if
|
27
|
-
credentials.session_token
|
28
|
-
|
29
|
-
auth = "AWS #{access_key_id}:#{signature(credentials)}"
|
30
|
-
headers['authorization'] = auth
|
22
|
+
include Core::Signature::Version4
|
31
23
|
|
32
|
-
|
33
|
-
|
34
|
-
protected
|
35
|
-
|
36
|
-
def signature credentials
|
37
|
-
Core::Signer.sign(credentials.secret_access_key, string_to_sign, 'sha1')
|
38
|
-
end
|
39
|
-
|
40
|
-
def string_to_sign
|
41
|
-
headers['date'] ||= Time.now.httpdate
|
24
|
+
def service
|
25
|
+
'cloudfront'
|
42
26
|
end
|
43
27
|
|
44
28
|
end
|
45
|
-
|
46
29
|
end
|
47
30
|
end
|
data/lib/aws/version.rb
CHANGED