Class: Aws::Lambda::Waiters::PublishedVersionActive
- Inherits:
-
Object
- Object
- Aws::Lambda::Waiters::PublishedVersionActive
- Defined in:
- gems/aws-sdk-lambda/lib/aws-sdk-lambda/waiters.rb
Overview
Waits for the published version's State to be Active. This waiter uses GetFunctionConfiguration API. This should be used after new version is published.
Instance Method Summary collapse
-
#initialize(options) ⇒ PublishedVersionActive
constructor
A new instance of PublishedVersionActive.
-
#wait(params = {}) ⇒ Types::FunctionConfiguration
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ PublishedVersionActive
Returns a new instance of PublishedVersionActive.
336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 |
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/waiters.rb', line 336 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 312, 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
369 370 371 |
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/waiters.rb', line 369 def wait(params = {}) @waiter.wait(client: @client, params: params) end |