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.