You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Module: Aws::Inspector
- Defined in:
- (unknown)
Overview
This module provides a client for making API requests to Amazon Inspector.
Aws::Inspector::Client
The Client class provides one-to-one mapping for each API operation.
inspector = Aws::Inspector::Client.new(region: 'us-east-1')
inspector.operation_names
#=> [:add_attributes_to_findings, :create_assessment_target, :create_assessment_template, :create_exclusions_preview, ...]
Each API operation method accepts a hash of request parameters and returns a response object.
resp = inspector.add_attributes_to_findings(params)
See Client for more information.
Aws::Inspector::Errors
Errors returned from Amazon Inspector are defined in the Errors module and extend Errors::ServiceError.
begin
# do stuff
rescue Aws::Inspector::Errors::ServiceError
# rescues all errors returned by Amazon Inspector
end
See Errors for more information.