Class: Aws::Lambda::Waiters::FunctionUpdated
- Inherits:
-
Object
- Object
- Aws::Lambda::Waiters::FunctionUpdated
- Defined in:
- lib/aws-sdk-lambda/waiters.rb
Overview
Waits for the function’s LastUpdateStatus to be Successful.
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ FunctionUpdated
constructor
A new instance of FunctionUpdated.
-
#wait(params = {}) ⇒ Types::FunctionConfiguration
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ FunctionUpdated
Returns a new instance of FunctionUpdated.
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/aws-sdk-lambda/waiters.rb', line 180 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 5, poller: Aws::Waiters::Poller.new( operation_name: :get_function_configuration, acceptors: [ { "state" => "success", "matcher" => "path", "argument" => "last_update_status", "expected" => "Successful" }, { "state" => "failure", "matcher" => "path", "argument" => "last_update_status", "expected" => "Failed" }, { "state" => "retry", "matcher" => "path", "argument" => "last_update_status", "expected" => "InProgress" } ] ) }.merge()) end |
Instance Attribute Details
#waiter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
218 219 220 |
# File 'lib/aws-sdk-lambda/waiters.rb', line 218 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::FunctionConfiguration
Returns a response object which responds to the following methods:
-
#function_name => String
-
#function_arn => String
-
#runtime => String
-
#role => String
-
#handler => String
-
#code_size => Integer
-
#description => String
-
#timeout => Integer
-
#memory_size => Integer
-
#last_modified => Time
-
#code_sha_256 => String
-
#version => String
-
#vpc_config => Types::VpcConfigResponse
-
#dead_letter_config => Types::DeadLetterConfig
-
#environment => Types::EnvironmentResponse
-
#kms_key_arn => String
-
#tracing_config => Types::TracingConfigResponse
-
#master_arn => String
-
#revision_id => String
-
#layers => Array<Types::Layer>
-
#state => String
-
#state_reason => String
-
#state_reason_code => String
-
#last_update_status => String
-
#last_update_status_reason => String
-
#last_update_status_reason_code => String
-
#file_system_configs => Array<Types::FileSystemConfig>
-
#package_type => String
-
#image_config_response => Types::ImageConfigResponse
-
#signing_profile_version_arn => String
-
#signing_job_arn => String
213 214 215 |
# File 'lib/aws-sdk-lambda/waiters.rb', line 213 def wait(params = {}) @waiter.wait(client: @client, params: params) end |