aws-sdk-autoscaling 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,146 +1,145 @@
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 AutoScaling
12
- module Waiters
13
- class GroupExists
14
-
15
- # @param [Hash] options
16
- # @option options [required, Client] :client
17
- # @option options [Integer] :max_attempts (10)
18
- # @option options [Integer] :delay (5)
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: 10,
25
- delay: 5,
26
- poller: Aws::Waiters::Poller.new(
27
- operation_name: :describe_auto_scaling_groups,
28
- acceptors: [
29
- {
30
- "argument" => "length(auto_scaling_groups) > `0`",
31
- "expected" => true,
32
- "matcher" => "path",
33
- "state" => "success"
34
- },
35
- {
36
- "argument" => "length(auto_scaling_groups) > `0`",
37
- "expected" => false,
38
- "matcher" => "path",
39
- "state" => "retry"
40
- }
41
- ]
42
- )
43
- }.merge(options))
44
- end
45
-
46
- # @option (see Client#describe_auto_scaling_groups)
47
- # @return (see Client#describe_auto_scaling_groups)
48
- def wait(params = {})
49
- @waiter.wait(client: @client, params: params)
50
- end
51
-
52
- # @api private
53
- attr_reader :waiter
10
+ module Aws::AutoScaling
11
+ module Waiters
12
+
13
+ class GroupExists
14
+
15
+ # @param [Hash] options
16
+ # @option options [required, Client] :client
17
+ # @option options [Integer] :max_attempts (10)
18
+ # @option options [Integer] :delay (5)
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: 10,
25
+ delay: 5,
26
+ poller: Aws::Waiters::Poller.new(
27
+ operation_name: :describe_auto_scaling_groups,
28
+ acceptors: [
29
+ {
30
+ "argument" => "length(auto_scaling_groups) > `0`",
31
+ "expected" => true,
32
+ "matcher" => "path",
33
+ "state" => "success"
34
+ },
35
+ {
36
+ "argument" => "length(auto_scaling_groups) > `0`",
37
+ "expected" => false,
38
+ "matcher" => "path",
39
+ "state" => "retry"
40
+ }
41
+ ]
42
+ )
43
+ }.merge(options))
44
+ end
54
45
 
46
+ # @option (see Client#describe_auto_scaling_groups)
47
+ # @return (see Client#describe_auto_scaling_groups)
48
+ def wait(params = {})
49
+ @waiter.wait(client: @client, params: params)
55
50
  end
56
51
 
57
- class GroupInService
58
-
59
- # @param [Hash] options
60
- # @option options [required, Client] :client
61
- # @option options [Integer] :max_attempts (40)
62
- # @option options [Integer] :delay (15)
63
- # @option options [Proc] :before_attempt
64
- # @option options [Proc] :before_wait
65
- def initialize(options)
66
- @client = options.fetch(:client)
67
- @waiter = Aws::Waiters::Waiter.new({
68
- max_attempts: 40,
69
- delay: 15,
70
- poller: Aws::Waiters::Poller.new(
71
- operation_name: :describe_auto_scaling_groups,
72
- acceptors: [
73
- {
74
- "argument" => "contains(auto_scaling_groups[].[length(instances[?lifecycle_state=='InService']) >= min_size][], `false`)",
75
- "expected" => false,
76
- "matcher" => "path",
77
- "state" => "success"
78
- },
79
- {
80
- "argument" => "contains(auto_scaling_groups[].[length(instances[?lifecycle_state=='InService']) >= min_size][], `false`)",
81
- "expected" => true,
82
- "matcher" => "path",
83
- "state" => "retry"
84
- }
85
- ]
86
- )
87
- }.merge(options))
88
- end
89
-
90
- # @option (see Client#describe_auto_scaling_groups)
91
- # @return (see Client#describe_auto_scaling_groups)
92
- def wait(params = {})
93
- @waiter.wait(client: @client, params: params)
94
- end
95
-
96
- # @api private
97
- attr_reader :waiter
52
+ # @api private
53
+ attr_reader :waiter
54
+
55
+ end
56
+
57
+ class GroupInService
58
+
59
+ # @param [Hash] options
60
+ # @option options [required, Client] :client
61
+ # @option options [Integer] :max_attempts (40)
62
+ # @option options [Integer] :delay (15)
63
+ # @option options [Proc] :before_attempt
64
+ # @option options [Proc] :before_wait
65
+ def initialize(options)
66
+ @client = options.fetch(:client)
67
+ @waiter = Aws::Waiters::Waiter.new({
68
+ max_attempts: 40,
69
+ delay: 15,
70
+ poller: Aws::Waiters::Poller.new(
71
+ operation_name: :describe_auto_scaling_groups,
72
+ acceptors: [
73
+ {
74
+ "argument" => "contains(auto_scaling_groups[].[length(instances[?lifecycle_state=='InService']) >= min_size][], `false`)",
75
+ "expected" => false,
76
+ "matcher" => "path",
77
+ "state" => "success"
78
+ },
79
+ {
80
+ "argument" => "contains(auto_scaling_groups[].[length(instances[?lifecycle_state=='InService']) >= min_size][], `false`)",
81
+ "expected" => true,
82
+ "matcher" => "path",
83
+ "state" => "retry"
84
+ }
85
+ ]
86
+ )
87
+ }.merge(options))
88
+ end
98
89
 
90
+ # @option (see Client#describe_auto_scaling_groups)
91
+ # @return (see Client#describe_auto_scaling_groups)
92
+ def wait(params = {})
93
+ @waiter.wait(client: @client, params: params)
99
94
  end
100
95
 
101
- class GroupNotExists
102
-
103
- # @param [Hash] options
104
- # @option options [required, Client] :client
105
- # @option options [Integer] :max_attempts (40)
106
- # @option options [Integer] :delay (15)
107
- # @option options [Proc] :before_attempt
108
- # @option options [Proc] :before_wait
109
- def initialize(options)
110
- @client = options.fetch(:client)
111
- @waiter = Aws::Waiters::Waiter.new({
112
- max_attempts: 40,
113
- delay: 15,
114
- poller: Aws::Waiters::Poller.new(
115
- operation_name: :describe_auto_scaling_groups,
116
- acceptors: [
117
- {
118
- "argument" => "length(auto_scaling_groups) > `0`",
119
- "expected" => false,
120
- "matcher" => "path",
121
- "state" => "success"
122
- },
123
- {
124
- "argument" => "length(auto_scaling_groups) > `0`",
125
- "expected" => true,
126
- "matcher" => "path",
127
- "state" => "retry"
128
- }
129
- ]
130
- )
131
- }.merge(options))
132
- end
133
-
134
- # @option (see Client#describe_auto_scaling_groups)
135
- # @return (see Client#describe_auto_scaling_groups)
136
- def wait(params = {})
137
- @waiter.wait(client: @client, params: params)
138
- end
139
-
140
- # @api private
141
- attr_reader :waiter
96
+ # @api private
97
+ attr_reader :waiter
142
98
 
99
+ end
100
+
101
+ class GroupNotExists
102
+
103
+ # @param [Hash] options
104
+ # @option options [required, Client] :client
105
+ # @option options [Integer] :max_attempts (40)
106
+ # @option options [Integer] :delay (15)
107
+ # @option options [Proc] :before_attempt
108
+ # @option options [Proc] :before_wait
109
+ def initialize(options)
110
+ @client = options.fetch(:client)
111
+ @waiter = Aws::Waiters::Waiter.new({
112
+ max_attempts: 40,
113
+ delay: 15,
114
+ poller: Aws::Waiters::Poller.new(
115
+ operation_name: :describe_auto_scaling_groups,
116
+ acceptors: [
117
+ {
118
+ "argument" => "length(auto_scaling_groups) > `0`",
119
+ "expected" => false,
120
+ "matcher" => "path",
121
+ "state" => "success"
122
+ },
123
+ {
124
+ "argument" => "length(auto_scaling_groups) > `0`",
125
+ "expected" => true,
126
+ "matcher" => "path",
127
+ "state" => "retry"
128
+ }
129
+ ]
130
+ )
131
+ }.merge(options))
132
+ end
133
+
134
+ # @option (see Client#describe_auto_scaling_groups)
135
+ # @return (see Client#describe_auto_scaling_groups)
136
+ def wait(params = {})
137
+ @waiter.wait(client: @client, params: params)
143
138
  end
139
+
140
+ # @api private
141
+ attr_reader :waiter
142
+
144
143
  end
145
144
  end
146
145
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-autoscaling
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-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core