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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,126 +1,169 @@
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 EMR
12
- module Waiters
13
- class ClusterRunning
14
-
15
- # @param [Hash] options
16
- # @option options [required, Client] :client
17
- # @option options [Integer] :max_attempts (60)
18
- # @option options [Integer] :delay (30)
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: 60,
25
- delay: 30,
26
- poller: Aws::Waiters::Poller.new(
27
- operation_name: :describe_cluster,
28
- acceptors: [
29
- {
30
- "state" => "success",
31
- "matcher" => "path",
32
- "argument" => "cluster.status.state",
33
- "expected" => "RUNNING"
34
- },
35
- {
36
- "state" => "success",
37
- "matcher" => "path",
38
- "argument" => "cluster.status.state",
39
- "expected" => "WAITING"
40
- },
41
- {
42
- "state" => "failure",
43
- "matcher" => "path",
44
- "argument" => "cluster.status.state",
45
- "expected" => "TERMINATING"
46
- },
47
- {
48
- "state" => "failure",
49
- "matcher" => "path",
50
- "argument" => "cluster.status.state",
51
- "expected" => "TERMINATED"
52
- },
53
- {
54
- "state" => "failure",
55
- "matcher" => "path",
56
- "argument" => "cluster.status.state",
57
- "expected" => "TERMINATED_WITH_ERRORS"
58
- }
59
- ]
60
- )
61
- }.merge(options))
62
- end
63
-
64
- # @option (see Client#describe_cluster)
65
- # @return (see Client#describe_cluster)
66
- def wait(params = {})
67
- @waiter.wait(client: @client, params: params)
68
- end
69
-
70
- # @api private
71
- attr_reader :waiter
10
+ module Aws::EMR
11
+ module Waiters
72
12
 
13
+ class ClusterRunning
14
+
15
+ # @param [Hash] options
16
+ # @option options [required, Client] :client
17
+ # @option options [Integer] :max_attempts (60)
18
+ # @option options [Integer] :delay (30)
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: 60,
25
+ delay: 30,
26
+ poller: Aws::Waiters::Poller.new(
27
+ operation_name: :describe_cluster,
28
+ acceptors: [
29
+ {
30
+ "state" => "success",
31
+ "matcher" => "path",
32
+ "argument" => "cluster.status.state",
33
+ "expected" => "RUNNING"
34
+ },
35
+ {
36
+ "state" => "success",
37
+ "matcher" => "path",
38
+ "argument" => "cluster.status.state",
39
+ "expected" => "WAITING"
40
+ },
41
+ {
42
+ "state" => "failure",
43
+ "matcher" => "path",
44
+ "argument" => "cluster.status.state",
45
+ "expected" => "TERMINATING"
46
+ },
47
+ {
48
+ "state" => "failure",
49
+ "matcher" => "path",
50
+ "argument" => "cluster.status.state",
51
+ "expected" => "TERMINATED"
52
+ },
53
+ {
54
+ "state" => "failure",
55
+ "matcher" => "path",
56
+ "argument" => "cluster.status.state",
57
+ "expected" => "TERMINATED_WITH_ERRORS"
58
+ }
59
+ ]
60
+ )
61
+ }.merge(options))
62
+ end
63
+
64
+ # @option (see Client#describe_cluster)
65
+ # @return (see Client#describe_cluster)
66
+ def wait(params = {})
67
+ @waiter.wait(client: @client, params: params)
68
+ end
69
+
70
+ # @api private
71
+ attr_reader :waiter
72
+
73
+ end
74
+
75
+ class ClusterTerminated
76
+
77
+ # @param [Hash] options
78
+ # @option options [required, Client] :client
79
+ # @option options [Integer] :max_attempts (60)
80
+ # @option options [Integer] :delay (30)
81
+ # @option options [Proc] :before_attempt
82
+ # @option options [Proc] :before_wait
83
+ def initialize(options)
84
+ @client = options.fetch(:client)
85
+ @waiter = Aws::Waiters::Waiter.new({
86
+ max_attempts: 60,
87
+ delay: 30,
88
+ poller: Aws::Waiters::Poller.new(
89
+ operation_name: :describe_cluster,
90
+ acceptors: [
91
+ {
92
+ "state" => "success",
93
+ "matcher" => "path",
94
+ "argument" => "cluster.status.state",
95
+ "expected" => "TERMINATED"
96
+ },
97
+ {
98
+ "state" => "failure",
99
+ "matcher" => "path",
100
+ "argument" => "cluster.status.state",
101
+ "expected" => "TERMINATED_WITH_ERRORS"
102
+ }
103
+ ]
104
+ )
105
+ }.merge(options))
73
106
  end
74
107
 
75
- class StepComplete
76
-
77
- # @param [Hash] options
78
- # @option options [required, Client] :client
79
- # @option options [Integer] :max_attempts (60)
80
- # @option options [Integer] :delay (30)
81
- # @option options [Proc] :before_attempt
82
- # @option options [Proc] :before_wait
83
- def initialize(options)
84
- @client = options.fetch(:client)
85
- @waiter = Aws::Waiters::Waiter.new({
86
- max_attempts: 60,
87
- delay: 30,
88
- poller: Aws::Waiters::Poller.new(
89
- operation_name: :describe_step,
90
- acceptors: [
91
- {
92
- "state" => "success",
93
- "matcher" => "path",
94
- "argument" => "step.status.state",
95
- "expected" => "COMPLETED"
96
- },
97
- {
98
- "state" => "failure",
99
- "matcher" => "path",
100
- "argument" => "step.status.state",
101
- "expected" => "FAILED"
102
- },
103
- {
104
- "state" => "failure",
105
- "matcher" => "path",
106
- "argument" => "step.status.state",
107
- "expected" => "CANCELLED"
108
- }
109
- ]
110
- )
111
- }.merge(options))
112
- end
113
-
114
- # @option (see Client#describe_step)
115
- # @return (see Client#describe_step)
116
- def wait(params = {})
117
- @waiter.wait(client: @client, params: params)
118
- end
119
-
120
- # @api private
121
- attr_reader :waiter
108
+ # @option (see Client#describe_cluster)
109
+ # @return (see Client#describe_cluster)
110
+ def wait(params = {})
111
+ @waiter.wait(client: @client, params: params)
112
+ end
113
+
114
+ # @api private
115
+ attr_reader :waiter
116
+
117
+ end
118
+
119
+ class StepComplete
122
120
 
121
+ # @param [Hash] options
122
+ # @option options [required, Client] :client
123
+ # @option options [Integer] :max_attempts (60)
124
+ # @option options [Integer] :delay (30)
125
+ # @option options [Proc] :before_attempt
126
+ # @option options [Proc] :before_wait
127
+ def initialize(options)
128
+ @client = options.fetch(:client)
129
+ @waiter = Aws::Waiters::Waiter.new({
130
+ max_attempts: 60,
131
+ delay: 30,
132
+ poller: Aws::Waiters::Poller.new(
133
+ operation_name: :describe_step,
134
+ acceptors: [
135
+ {
136
+ "state" => "success",
137
+ "matcher" => "path",
138
+ "argument" => "step.status.state",
139
+ "expected" => "COMPLETED"
140
+ },
141
+ {
142
+ "state" => "failure",
143
+ "matcher" => "path",
144
+ "argument" => "step.status.state",
145
+ "expected" => "FAILED"
146
+ },
147
+ {
148
+ "state" => "failure",
149
+ "matcher" => "path",
150
+ "argument" => "step.status.state",
151
+ "expected" => "CANCELLED"
152
+ }
153
+ ]
154
+ )
155
+ }.merge(options))
123
156
  end
157
+
158
+ # @option (see Client#describe_step)
159
+ # @return (see Client#describe_step)
160
+ def wait(params = {})
161
+ @waiter.wait(client: @client, params: params)
162
+ end
163
+
164
+ # @api private
165
+ attr_reader :waiter
166
+
124
167
  end
125
168
  end
126
169
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-emr
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