aws-sdk-iam 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,98 +1,97 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  require 'aws-sdk-core/waiters'
9
9
 
10
- module Aws
11
- module IAM
12
- module Waiters
13
- class InstanceProfileExists
10
+ module Aws::IAM
11
+ module Waiters
14
12
 
15
- # @param [Hash] options
16
- # @option options [required, Client] :client
17
- # @option options [Integer] :max_attempts (40)
18
- # @option options [Integer] :delay (1)
19
- # @option options [Proc] :before_attempt
20
- # @option options [Proc] :before_wait
21
- def initialize(options)
22
- @client = options.fetch(:client)
23
- @waiter = Aws::Waiters::Waiter.new({
24
- max_attempts: 40,
25
- delay: 1,
26
- poller: Aws::Waiters::Poller.new(
27
- operation_name: :get_instance_profile,
28
- acceptors: [
29
- {
30
- "expected" => 200,
31
- "matcher" => "status",
32
- "state" => "success"
33
- },
34
- {
35
- "state" => "retry",
36
- "matcher" => "status",
37
- "expected" => 404
38
- }
39
- ]
40
- )
41
- }.merge(options))
42
- end
13
+ class InstanceProfileExists
43
14
 
44
- # @option (see Client#get_instance_profile)
45
- # @return (see Client#get_instance_profile)
46
- def wait(params = {})
47
- @waiter.wait(client: @client, params: params)
48
- end
49
-
50
- # @api private
51
- attr_reader :waiter
15
+ # @param [Hash] options
16
+ # @option options [required, Client] :client
17
+ # @option options [Integer] :max_attempts (40)
18
+ # @option options [Integer] :delay (1)
19
+ # @option options [Proc] :before_attempt
20
+ # @option options [Proc] :before_wait
21
+ def initialize(options)
22
+ @client = options.fetch(:client)
23
+ @waiter = Aws::Waiters::Waiter.new({
24
+ max_attempts: 40,
25
+ delay: 1,
26
+ poller: Aws::Waiters::Poller.new(
27
+ operation_name: :get_instance_profile,
28
+ acceptors: [
29
+ {
30
+ "expected" => 200,
31
+ "matcher" => "status",
32
+ "state" => "success"
33
+ },
34
+ {
35
+ "state" => "retry",
36
+ "matcher" => "status",
37
+ "expected" => 404
38
+ }
39
+ ]
40
+ )
41
+ }.merge(options))
42
+ end
52
43
 
44
+ # @option (see Client#get_instance_profile)
45
+ # @return (see Client#get_instance_profile)
46
+ def wait(params = {})
47
+ @waiter.wait(client: @client, params: params)
53
48
  end
54
49
 
55
- class UserExists
50
+ # @api private
51
+ attr_reader :waiter
56
52
 
57
- # @param [Hash] options
58
- # @option options [required, Client] :client
59
- # @option options [Integer] :max_attempts (20)
60
- # @option options [Integer] :delay (1)
61
- # @option options [Proc] :before_attempt
62
- # @option options [Proc] :before_wait
63
- def initialize(options)
64
- @client = options.fetch(:client)
65
- @waiter = Aws::Waiters::Waiter.new({
66
- max_attempts: 20,
67
- delay: 1,
68
- poller: Aws::Waiters::Poller.new(
69
- operation_name: :get_user,
70
- acceptors: [
71
- {
72
- "state" => "success",
73
- "matcher" => "status",
74
- "expected" => 200
75
- },
76
- {
77
- "state" => "retry",
78
- "matcher" => "error",
79
- "expected" => "NoSuchEntity"
80
- }
81
- ]
82
- )
83
- }.merge(options))
84
- end
53
+ end
85
54
 
86
- # @option (see Client#get_user)
87
- # @return (see Client#get_user)
88
- def wait(params = {})
89
- @waiter.wait(client: @client, params: params)
90
- end
55
+ class UserExists
91
56
 
92
- # @api private
93
- attr_reader :waiter
57
+ # @param [Hash] options
58
+ # @option options [required, Client] :client
59
+ # @option options [Integer] :max_attempts (20)
60
+ # @option options [Integer] :delay (1)
61
+ # @option options [Proc] :before_attempt
62
+ # @option options [Proc] :before_wait
63
+ def initialize(options)
64
+ @client = options.fetch(:client)
65
+ @waiter = Aws::Waiters::Waiter.new({
66
+ max_attempts: 20,
67
+ delay: 1,
68
+ poller: Aws::Waiters::Poller.new(
69
+ operation_name: :get_user,
70
+ acceptors: [
71
+ {
72
+ "state" => "success",
73
+ "matcher" => "status",
74
+ "expected" => 200
75
+ },
76
+ {
77
+ "state" => "retry",
78
+ "matcher" => "error",
79
+ "expected" => "NoSuchEntity"
80
+ }
81
+ ]
82
+ )
83
+ }.merge(options))
84
+ end
94
85
 
86
+ # @option (see Client#get_user)
87
+ # @return (see Client#get_user)
88
+ def wait(params = {})
89
+ @waiter.wait(client: @client, params: params)
95
90
  end
91
+
92
+ # @api private
93
+ attr_reader :waiter
94
+
96
95
  end
97
96
  end
98
97
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-iam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc1
4
+ version: 1.0.0.rc2
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: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core