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

Module: Aws::EventBridge

Defined in:
(unknown)

Overview

This module provides a client for making API requests to Amazon EventBridge.

Aws::EventBridge::Client

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

eventbridge = Aws::EventBridge::Client.new(region: 'us-east-1')
eventbridge.operation_names
#=> [:activate_event_source, :create_event_bus, :create_partner_event_source, :deactivate_event_source, ...]

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

resp = eventbridge.activate_event_source(params)

See Client for more information.

Aws::EventBridge::Errors

Errors returned from Amazon EventBridge are defined in the Errors module and extend Errors::ServiceError.

begin
  # do stuff
rescue Aws::EventBridge::Errors::ServiceError
  # rescues all errors returned by Amazon EventBridge
end

See Errors for more information.

Defined Under Namespace

Modules: Errors, Types Classes: Client