aws-sdk-autoscaling 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-autoscaling.rb +58 -0
- data/lib/aws-sdk-autoscaling/activity.rb +161 -0
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +1045 -0
- data/lib/aws-sdk-autoscaling/client.rb +2764 -0
- data/lib/aws-sdk-autoscaling/client_api.rb +1422 -0
- data/lib/aws-sdk-autoscaling/customizations.rb +7 -0
- data/lib/aws-sdk-autoscaling/errors.rb +23 -0
- data/lib/aws-sdk-autoscaling/instance.rb +416 -0
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +236 -0
- data/lib/aws-sdk-autoscaling/lifecycle_hook.rb +329 -0
- data/lib/aws-sdk-autoscaling/load_balancer.rb +219 -0
- data/lib/aws-sdk-autoscaling/notification_configuration.rb +199 -0
- data/lib/aws-sdk-autoscaling/resource.rb +695 -0
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +258 -0
- data/lib/aws-sdk-autoscaling/scheduled_action.rb +183 -0
- data/lib/aws-sdk-autoscaling/tag.rb +260 -0
- data/lib/aws-sdk-autoscaling/types.rb +3557 -0
- data/lib/aws-sdk-autoscaling/waiters.rb +146 -0
- metadata +91 -0
@@ -0,0 +1,146 @@
|
|
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 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
|
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
|
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
|
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)
|
138
|
+
end
|
139
|
+
|
140
|
+
# @api private
|
141
|
+
attr_reader :waiter
|
142
|
+
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
metadata
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aws-sdk-autoscaling
|
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 Auto Scaling. This gem is part of the AWS SDK
|
42
|
+
for Ruby.
|
43
|
+
email:
|
44
|
+
- trevrowe@amazon.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- lib/aws-sdk-autoscaling.rb
|
50
|
+
- lib/aws-sdk-autoscaling/activity.rb
|
51
|
+
- lib/aws-sdk-autoscaling/auto_scaling_group.rb
|
52
|
+
- lib/aws-sdk-autoscaling/client.rb
|
53
|
+
- lib/aws-sdk-autoscaling/client_api.rb
|
54
|
+
- lib/aws-sdk-autoscaling/customizations.rb
|
55
|
+
- lib/aws-sdk-autoscaling/errors.rb
|
56
|
+
- lib/aws-sdk-autoscaling/instance.rb
|
57
|
+
- lib/aws-sdk-autoscaling/launch_configuration.rb
|
58
|
+
- lib/aws-sdk-autoscaling/lifecycle_hook.rb
|
59
|
+
- lib/aws-sdk-autoscaling/load_balancer.rb
|
60
|
+
- lib/aws-sdk-autoscaling/notification_configuration.rb
|
61
|
+
- lib/aws-sdk-autoscaling/resource.rb
|
62
|
+
- lib/aws-sdk-autoscaling/scaling_policy.rb
|
63
|
+
- lib/aws-sdk-autoscaling/scheduled_action.rb
|
64
|
+
- lib/aws-sdk-autoscaling/tag.rb
|
65
|
+
- lib/aws-sdk-autoscaling/types.rb
|
66
|
+
- lib/aws-sdk-autoscaling/waiters.rb
|
67
|
+
homepage: http://github.com/aws/aws-sdk-ruby
|
68
|
+
licenses:
|
69
|
+
- Apache-2.0
|
70
|
+
metadata: {}
|
71
|
+
post_install_message:
|
72
|
+
rdoc_options: []
|
73
|
+
require_paths:
|
74
|
+
- lib
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 1.3.1
|
85
|
+
requirements: []
|
86
|
+
rubyforge_project:
|
87
|
+
rubygems_version: 2.5.1
|
88
|
+
signing_key:
|
89
|
+
specification_version: 4
|
90
|
+
summary: AWS SDK for Ruby - Auto Scaling
|
91
|
+
test_files: []
|