Class: Aws::Lambda::Waiters::FunctionActive
- Inherits:
-
Object
- Object
- Aws::Lambda::Waiters::FunctionActive
- Defined in:
- gems/aws-sdk-lambda/lib/aws-sdk-lambda/waiters.rb
Overview
Waits for the function's State to be Active. This waiter uses GetFunctionConfiguration API. This should be used after new function creation.
Instance Method Summary collapse
-
#initialize(options) ⇒ FunctionActive
constructor
A new instance of FunctionActive.
-
#wait(params = {}) ⇒ Types::FunctionConfiguration
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ FunctionActive
Returns a new instance of FunctionActive.
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/waiters.rb', line 90 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" => "state", "expected" => "Active" }, { "state" => "failure", "matcher" => "path", "argument" => "state", "expected" => "Failed" }, { "state" => "retry", "matcher" => "path", "argument" => "state", "expected" => "Pending" } ] ) }.merge()) 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>
- #ephemeral_storage => Types::EphemeralStorage
- #snap_start => Types::SnapStartResponse
- #runtime_version_config => Types::RuntimeVersionConfig
- #logging_config => Types::LoggingConfig
123 124 125 |
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/waiters.rb', line 123 def wait(params = {}) @waiter.wait(client: @client, params: params) end |