aws-sdk-proton 1.15.0 → 1.16.0
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-proton/client.rb +750 -75
- data/lib/aws-sdk-proton/client_api.rb +268 -3
- data/lib/aws-sdk-proton/types.rb +904 -73
- data/lib/aws-sdk-proton/waiters.rb +91 -0
- data/lib/aws-sdk-proton.rb +1 -1
- metadata +2 -2
@@ -69,6 +69,8 @@ module Aws::Proton
|
|
69
69
|
#
|
70
70
|
# | waiter_name | params | :delay | :max_attempts |
|
71
71
|
# | --------------------------------------- | ----------------------------------------- | -------- | ------------- |
|
72
|
+
# | component_deleted | {Client#get_component} | 5 | 999 |
|
73
|
+
# | component_deployed | {Client#get_component} | 5 | 999 |
|
72
74
|
# | environment_deployed | {Client#get_environment} | 5 | 999 |
|
73
75
|
# | environment_template_version_registered | {Client#get_environment_template_version} | 2 | 150 |
|
74
76
|
# | service_created | {Client#get_service} | 5 | 999 |
|
@@ -80,6 +82,95 @@ module Aws::Proton
|
|
80
82
|
#
|
81
83
|
module Waiters
|
82
84
|
|
85
|
+
# Wait until a Component is deleted. Use this after invoking DeleteComponent
|
86
|
+
class ComponentDeleted
|
87
|
+
|
88
|
+
# @param [Hash] options
|
89
|
+
# @option options [required, Client] :client
|
90
|
+
# @option options [Integer] :max_attempts (999)
|
91
|
+
# @option options [Integer] :delay (5)
|
92
|
+
# @option options [Proc] :before_attempt
|
93
|
+
# @option options [Proc] :before_wait
|
94
|
+
def initialize(options)
|
95
|
+
@client = options.fetch(:client)
|
96
|
+
@waiter = Aws::Waiters::Waiter.new({
|
97
|
+
max_attempts: 999,
|
98
|
+
delay: 5,
|
99
|
+
poller: Aws::Waiters::Poller.new(
|
100
|
+
operation_name: :get_component,
|
101
|
+
acceptors: [
|
102
|
+
{
|
103
|
+
"matcher" => "error",
|
104
|
+
"state" => "success",
|
105
|
+
"expected" => "ResourceNotFoundException"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"matcher" => "path",
|
109
|
+
"argument" => "component.deployment_status",
|
110
|
+
"state" => "failure",
|
111
|
+
"expected" => "DELETE_FAILED"
|
112
|
+
}
|
113
|
+
]
|
114
|
+
)
|
115
|
+
}.merge(options))
|
116
|
+
end
|
117
|
+
|
118
|
+
# @option (see Client#get_component)
|
119
|
+
# @return (see Client#get_component)
|
120
|
+
def wait(params = {})
|
121
|
+
@waiter.wait(client: @client, params: params)
|
122
|
+
end
|
123
|
+
|
124
|
+
# @api private
|
125
|
+
attr_reader :waiter
|
126
|
+
|
127
|
+
end
|
128
|
+
|
129
|
+
# Wait until a Component is deployed. Use this after invoking CreateComponent or UpdateComponent
|
130
|
+
class ComponentDeployed
|
131
|
+
|
132
|
+
# @param [Hash] options
|
133
|
+
# @option options [required, Client] :client
|
134
|
+
# @option options [Integer] :max_attempts (999)
|
135
|
+
# @option options [Integer] :delay (5)
|
136
|
+
# @option options [Proc] :before_attempt
|
137
|
+
# @option options [Proc] :before_wait
|
138
|
+
def initialize(options)
|
139
|
+
@client = options.fetch(:client)
|
140
|
+
@waiter = Aws::Waiters::Waiter.new({
|
141
|
+
max_attempts: 999,
|
142
|
+
delay: 5,
|
143
|
+
poller: Aws::Waiters::Poller.new(
|
144
|
+
operation_name: :get_component,
|
145
|
+
acceptors: [
|
146
|
+
{
|
147
|
+
"matcher" => "path",
|
148
|
+
"argument" => "component.deployment_status",
|
149
|
+
"state" => "success",
|
150
|
+
"expected" => "SUCCEEDED"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"matcher" => "path",
|
154
|
+
"argument" => "component.deployment_status",
|
155
|
+
"state" => "failure",
|
156
|
+
"expected" => "FAILED"
|
157
|
+
}
|
158
|
+
]
|
159
|
+
)
|
160
|
+
}.merge(options))
|
161
|
+
end
|
162
|
+
|
163
|
+
# @option (see Client#get_component)
|
164
|
+
# @return (see Client#get_component)
|
165
|
+
def wait(params = {})
|
166
|
+
@waiter.wait(client: @client, params: params)
|
167
|
+
end
|
168
|
+
|
169
|
+
# @api private
|
170
|
+
attr_reader :waiter
|
171
|
+
|
172
|
+
end
|
173
|
+
|
83
174
|
# Wait until an Environment is deployed. Use this after invoking CreateEnvironment or UpdateEnvironment
|
84
175
|
class EnvironmentDeployed
|
85
176
|
|
data/lib/aws-sdk-proton.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-proton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
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: 2022-
|
11
|
+
date: 2022-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|