aws-sdk-ecs 1.0.0.rc1
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.
- checksums.yaml +7 -0
- data/lib/aws-sdk-ecs.rb +48 -0
- data/lib/aws-sdk-ecs/client.rb +2459 -0
- data/lib/aws-sdk-ecs/client_api.rb +1017 -0
- data/lib/aws-sdk-ecs/customizations.rb +7 -0
- data/lib/aws-sdk-ecs/errors.rb +23 -0
- data/lib/aws-sdk-ecs/resource.rb +25 -0
- data/lib/aws-sdk-ecs/types.rb +3365 -0
- data/lib/aws-sdk-ecs/waiters.rb +200 -0
- metadata +81 -0
@@ -0,0 +1,200 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing for info on making contributions:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
require 'aws-sdk-core/waiters'
|
9
|
+
|
10
|
+
module Aws
|
11
|
+
module ECS
|
12
|
+
module Waiters
|
13
|
+
class TasksRunning
|
14
|
+
|
15
|
+
# @param [Hash] options
|
16
|
+
# @option options [required, Client] :client
|
17
|
+
# @option options [Integer] :max_attempts (100)
|
18
|
+
# @option options [Integer] :delay (6)
|
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: 100,
|
25
|
+
delay: 6,
|
26
|
+
poller: Aws::Waiters::Poller.new(
|
27
|
+
operation_name: :describe_tasks,
|
28
|
+
acceptors: [
|
29
|
+
{
|
30
|
+
"expected" => "STOPPED",
|
31
|
+
"matcher" => "pathAny",
|
32
|
+
"state" => "failure",
|
33
|
+
"argument" => "tasks[].last_status"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"expected" => "MISSING",
|
37
|
+
"matcher" => "pathAny",
|
38
|
+
"state" => "failure",
|
39
|
+
"argument" => "failures[].reason"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"expected" => "RUNNING",
|
43
|
+
"matcher" => "pathAll",
|
44
|
+
"state" => "success",
|
45
|
+
"argument" => "tasks[].last_status"
|
46
|
+
}
|
47
|
+
]
|
48
|
+
)
|
49
|
+
}.merge(options))
|
50
|
+
end
|
51
|
+
|
52
|
+
# @option (see Client#describe_tasks)
|
53
|
+
# @return (see Client#describe_tasks)
|
54
|
+
def wait(params = {})
|
55
|
+
@waiter.wait(client: @client, params: params)
|
56
|
+
end
|
57
|
+
|
58
|
+
# @api private
|
59
|
+
attr_reader :waiter
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
class TasksStopped
|
64
|
+
|
65
|
+
# @param [Hash] options
|
66
|
+
# @option options [required, Client] :client
|
67
|
+
# @option options [Integer] :max_attempts (100)
|
68
|
+
# @option options [Integer] :delay (6)
|
69
|
+
# @option options [Proc] :before_attempt
|
70
|
+
# @option options [Proc] :before_wait
|
71
|
+
def initialize(options)
|
72
|
+
@client = options.fetch(:client)
|
73
|
+
@waiter = Aws::Waiters::Waiter.new({
|
74
|
+
max_attempts: 100,
|
75
|
+
delay: 6,
|
76
|
+
poller: Aws::Waiters::Poller.new(
|
77
|
+
operation_name: :describe_tasks,
|
78
|
+
acceptors: [{
|
79
|
+
"expected" => "STOPPED",
|
80
|
+
"matcher" => "pathAll",
|
81
|
+
"state" => "success",
|
82
|
+
"argument" => "tasks[].last_status"
|
83
|
+
}]
|
84
|
+
)
|
85
|
+
}.merge(options))
|
86
|
+
end
|
87
|
+
|
88
|
+
# @option (see Client#describe_tasks)
|
89
|
+
# @return (see Client#describe_tasks)
|
90
|
+
def wait(params = {})
|
91
|
+
@waiter.wait(client: @client, params: params)
|
92
|
+
end
|
93
|
+
|
94
|
+
# @api private
|
95
|
+
attr_reader :waiter
|
96
|
+
|
97
|
+
end
|
98
|
+
|
99
|
+
class ServicesStable
|
100
|
+
|
101
|
+
# @param [Hash] options
|
102
|
+
# @option options [required, Client] :client
|
103
|
+
# @option options [Integer] :max_attempts (40)
|
104
|
+
# @option options [Integer] :delay (15)
|
105
|
+
# @option options [Proc] :before_attempt
|
106
|
+
# @option options [Proc] :before_wait
|
107
|
+
def initialize(options)
|
108
|
+
@client = options.fetch(:client)
|
109
|
+
@waiter = Aws::Waiters::Waiter.new({
|
110
|
+
max_attempts: 40,
|
111
|
+
delay: 15,
|
112
|
+
poller: Aws::Waiters::Poller.new(
|
113
|
+
operation_name: :describe_services,
|
114
|
+
acceptors: [
|
115
|
+
{
|
116
|
+
"expected" => "MISSING",
|
117
|
+
"matcher" => "pathAny",
|
118
|
+
"state" => "failure",
|
119
|
+
"argument" => "failures[].reason"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"expected" => "DRAINING",
|
123
|
+
"matcher" => "pathAny",
|
124
|
+
"state" => "failure",
|
125
|
+
"argument" => "services[].status"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"expected" => "INACTIVE",
|
129
|
+
"matcher" => "pathAny",
|
130
|
+
"state" => "failure",
|
131
|
+
"argument" => "services[].status"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"expected" => true,
|
135
|
+
"matcher" => "path",
|
136
|
+
"state" => "success",
|
137
|
+
"argument" => "length(services[?!(length(deployments) == `1` && running_count == desired_count)]) == `0`"
|
138
|
+
}
|
139
|
+
]
|
140
|
+
)
|
141
|
+
}.merge(options))
|
142
|
+
end
|
143
|
+
|
144
|
+
# @option (see Client#describe_services)
|
145
|
+
# @return (see Client#describe_services)
|
146
|
+
def wait(params = {})
|
147
|
+
@waiter.wait(client: @client, params: params)
|
148
|
+
end
|
149
|
+
|
150
|
+
# @api private
|
151
|
+
attr_reader :waiter
|
152
|
+
|
153
|
+
end
|
154
|
+
|
155
|
+
class ServicesInactive
|
156
|
+
|
157
|
+
# @param [Hash] options
|
158
|
+
# @option options [required, Client] :client
|
159
|
+
# @option options [Integer] :max_attempts (40)
|
160
|
+
# @option options [Integer] :delay (15)
|
161
|
+
# @option options [Proc] :before_attempt
|
162
|
+
# @option options [Proc] :before_wait
|
163
|
+
def initialize(options)
|
164
|
+
@client = options.fetch(:client)
|
165
|
+
@waiter = Aws::Waiters::Waiter.new({
|
166
|
+
max_attempts: 40,
|
167
|
+
delay: 15,
|
168
|
+
poller: Aws::Waiters::Poller.new(
|
169
|
+
operation_name: :describe_services,
|
170
|
+
acceptors: [
|
171
|
+
{
|
172
|
+
"expected" => "MISSING",
|
173
|
+
"matcher" => "pathAny",
|
174
|
+
"state" => "failure",
|
175
|
+
"argument" => "failures[].reason"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"expected" => "INACTIVE",
|
179
|
+
"matcher" => "pathAny",
|
180
|
+
"state" => "success",
|
181
|
+
"argument" => "services[].status"
|
182
|
+
}
|
183
|
+
]
|
184
|
+
)
|
185
|
+
}.merge(options))
|
186
|
+
end
|
187
|
+
|
188
|
+
# @option (see Client#describe_services)
|
189
|
+
# @return (see Client#describe_services)
|
190
|
+
def wait(params = {})
|
191
|
+
@waiter.wait(client: @client, params: params)
|
192
|
+
end
|
193
|
+
|
194
|
+
# @api private
|
195
|
+
attr_reader :waiter
|
196
|
+
|
197
|
+
end
|
198
|
+
end
|
199
|
+
end
|
200
|
+
end
|
metadata
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aws-sdk-ecs
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.rc1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Amazon Web Services
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: aws-sdk-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.0.0.rc1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.0.0.rc1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: aws-sigv4
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
description: Official AWS Ruby gem for Amazon EC2 Container Service (Amazon ECS).
|
42
|
+
This gem is part of the AWS SDK for Ruby.
|
43
|
+
email:
|
44
|
+
- trevrowe@amazon.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- lib/aws-sdk-ecs.rb
|
50
|
+
- lib/aws-sdk-ecs/client.rb
|
51
|
+
- lib/aws-sdk-ecs/client_api.rb
|
52
|
+
- lib/aws-sdk-ecs/customizations.rb
|
53
|
+
- lib/aws-sdk-ecs/errors.rb
|
54
|
+
- lib/aws-sdk-ecs/resource.rb
|
55
|
+
- lib/aws-sdk-ecs/types.rb
|
56
|
+
- lib/aws-sdk-ecs/waiters.rb
|
57
|
+
homepage: http://github.com/aws/aws-sdk-ruby
|
58
|
+
licenses:
|
59
|
+
- Apache-2.0
|
60
|
+
metadata: {}
|
61
|
+
post_install_message:
|
62
|
+
rdoc_options: []
|
63
|
+
require_paths:
|
64
|
+
- lib
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 1.3.1
|
75
|
+
requirements: []
|
76
|
+
rubyforge_project:
|
77
|
+
rubygems_version: 2.5.1
|
78
|
+
signing_key:
|
79
|
+
specification_version: 4
|
80
|
+
summary: AWS SDK for Ruby - Amazon ECS
|
81
|
+
test_files: []
|