Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

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

Module: Aws::Greengrass

Defined in:
(unknown)

Overview

This module provides a client for making API requests to AWS Greengrass.

Aws::Greengrass::Client

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

greengrass = Aws::Greengrass::Client.new(region: 'us-east-1')
greengrass.operation_names
#=> [:associate_role_to_group, :associate_service_role_to_account, :create_connector_definition, :create_connector_definition_version, ...]

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

resp = greengrass.associate_role_to_group(params)

See Client for more information.

Aws::Greengrass::Errors

Errors returned from AWS Greengrass are defined in the Errors module and extend Errors::ServiceError.

begin
  # do stuff
rescue Aws::Greengrass::Errors::ServiceError
  # rescues all errors returned by AWS Greengrass
end

See Errors for more information.

Defined Under Namespace

Modules: Errors, Types Classes: Client