aws-dev-utils 1.4.6 → 1.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/aws-dev-utils/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc968e3d775fc320bc9b2704926f0fa84b3c7b8bdf28c5915275694af7bb3c1b
|
4
|
+
data.tar.gz: 52c095a4e4e8a5df03f415887ee869d102eb7f7bc40905b82bca018c532e6640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 815ce68ebf0fe5e0615f7420eb43604c3e9c306c607864f01a89ec1838dcd841ab284ddc9b4266cf35370ff69efefbc4a2996b451c86949cffd332292c810a3f
|
7
|
+
data.tar.gz: a1339281a567f083923a369c57ce978864a8b93d73169f2bfbe2ad06c5b81fe6e15a2cfcb6473629076384a4242f0e05c1606824f1ec60d58bda7d045d934c71
|
data/README.md
CHANGED
@@ -27,7 +27,7 @@ require 'aws-dev-utils'
|
|
27
27
|
using AwsDevUtils::Refinements
|
28
28
|
```
|
29
29
|
|
30
|
-
|
30
|
+
### with_next_token
|
31
31
|
Many AWS operations limit the number of results returned with each response. To make it easy to get the next page of results, every AWS response object is enumerable.
|
32
32
|
This functionality is rarely needed and causes a lot of boilerplate code.
|
33
33
|
Using the `client.with_next_token` the paged results will be collected for you.
|
@@ -50,7 +50,7 @@ ec2_client.
|
|
50
50
|
describe_instances(filters:[{ name: "vpc-id", values: ["vpc-foo"]}])
|
51
51
|
```
|
52
52
|
|
53
|
-
|
53
|
+
### with_cache
|
54
54
|
In many cases a cache is required due to many processes or different machines querying the AWS api for data.
|
55
55
|
By using the `client.with_cache`, the client functions results will be stored in cache.
|
56
56
|
The default cache is a simple in memory *time based* store - `AwsDevUtils::Backend::Memory`.
|
@@ -119,7 +119,7 @@ _Note: Data will be restored from the cache only if it is the same request to AW
|
|
119
119
|
|
120
120
|
```
|
121
121
|
|
122
|
-
|
122
|
+
### with_retry
|
123
123
|
By using the `client.with_retry`, the client functions will be retried in case of an exception (until the max number of retries is reached - the default is 5).
|
124
124
|
Before each retry the client will sleep for an increasing number of seconds (implements exponential backoff)
|
125
125
|
```ruby
|
@@ -138,7 +138,7 @@ ec2_client.
|
|
138
138
|
describe_instances(filters:[{ name: "vpc-id", values: ["vpc-foo"]}])
|
139
139
|
```
|
140
140
|
|
141
|
-
|
141
|
+
### Combinations of wrappers
|
142
142
|
It is possible to combine between each of the wrappers:
|
143
143
|
```ruby
|
144
144
|
require 'aws-dev-utils'
|