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. This waiter uses GetFunctionConfiguration API. This should be used after function updates.
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.
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 |
# File 'lib/aws-sdk-lambda/waiters.rb', line 233 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.
271 272 273 |
# File 'lib/aws-sdk-lambda/waiters.rb', line 271 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
-
#architectures => Array<String>
266 267 268 |
# File 'lib/aws-sdk-lambda/waiters.rb', line 266 def wait(params = {}) @waiter.wait(client: @client, params: params) end |