Module: Aws::CloudTrail

Defined in:
lib/aws-sdk-cloudtrail/endpoint_parameters.rb,
lib/aws-sdk-cloudtrail/plugins/endpoints.rb,
lib/aws-sdk-cloudtrail/endpoint_provider.rb,
lib/aws-sdk-cloudtrail/client_api.rb,
lib/aws-sdk-cloudtrail/endpoints.rb,
lib/aws-sdk-cloudtrail/resource.rb,
lib/aws-sdk-cloudtrail/errors.rb,
lib/aws-sdk-cloudtrail/client.rb,
lib/aws-sdk-cloudtrail/types.rb,
lib/aws-sdk-cloudtrail.rb

Overview

This module provides support for AWS CloudTrail. This module is available in the ‘aws-sdk-cloudtrail` gem.

# Client

The Client class provides one method for each API operation. Operation methods each accept a hash of request parameters and return a response structure.

cloud_trail = Aws::CloudTrail::Client.new
resp = cloud_trail.add_tags(params)

See Client for more information.

# Errors

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

begin
  # do stuff
rescue Aws::CloudTrail::Errors::ServiceError
  # rescues all AWS CloudTrail API errors
end

See Errors for more information.

Defined Under Namespace

Modules: ClientApi, Endpoints, Errors, Plugins, Types Classes: Client, EndpointParameters, EndpointProvider, Resource

service collapse

GEM_VERSION =
'1.76.0'