You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Module: Aws::SWF

Defined in:
(unknown)

Overview

This module provides a client for making API requests to Amazon Simple Workflow Service.

Aws::SWF::Client

The Client class provides one-to-one mapping for each API operation.

swf = Aws::SWF::Client.new(region: 'us-east-1')
swf.operation_names
#=> [:count_closed_workflow_executions, :count_open_workflow_executions, :count_pending_activity_tasks, :count_pending_decision_tasks, ...]

Each API operation method accepts a hash of request parameters and returns a response object.

resp = swf.count_closed_workflow_executions(params)

See Client for more information.

Aws::SWF::Errors

Errors returned from Amazon Simple Workflow Service are defined in the Errors module and extend Errors::ServiceError.

begin
  # do stuff
rescue Aws::SWF::Errors::ServiceError
  # rescues all errors returned by Amazon Simple Workflow Service
end

See Errors for more information.

Defined Under Namespace

Modules: Errors, Types Classes: Client