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

Module: Aws::Lightsail

Defined in:
(unknown)

Overview

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

Aws::Lightsail::Client

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

lightsail = Aws::Lightsail::Client.new(region: 'us-east-1')
lightsail.operation_names
#=> [:allocate_static_ip, :attach_certificate_to_distribution, :attach_disk, :attach_instances_to_load_balancer, ...]

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

resp = lightsail.allocate_static_ip(params)

See Client for more information.

Aws::Lightsail::Errors

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

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

See Errors for more information.

Defined Under Namespace

Modules: Errors, Types Classes: Client