The AWS SDK for JavaScript v2 has reached end-of-support.
We recommend that you migrate to AWS SDK for JavaScript v3. For additional details and information on how to migrate, please refer to the announcement.

Class: AWS.Inspector

Inherits:
AWS.Service show all
Identifier:
inspector
API Version:
2016-02-16
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

Amazon Inspector enables you to analyze the behavior of your AWS resources and to identify potential security issues. For more information, see Amazon Inspector User Guide.

Sending a Request Using Inspector

var inspector = new AWS.Inspector();
inspector.createAssessmentTarget(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the Inspector object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var inspector = new AWS.Inspector({apiVersion: '2016-02-16'});

You can also set the API version globally in AWS.config.apiVersions using the inspector service identifier:

AWS.config.apiVersions = {
  inspector: '2016-02-16',
  // other service API versions
};

var inspector = new AWS.Inspector();

Version:

  • 2016-02-16

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.Inspector(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a Inspector object

var inspector = new AWS.Inspector({apiVersion: '2016-02-16'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (