Class: AWS.InspectorScan
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.InspectorScan
- Identifier:
- inspectorscan
- API Version:
- 2023-08-08
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Amazon Inspector Scan is a vulnerability discovery service that scans a provided Software Bill of Materials (SBOM) for security vulnerabilities.
Sending a Request Using InspectorScan
var inspectorscan = new AWS.InspectorScan();
inspectorscan.scanSbom(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 InspectorScan object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var inspectorscan = new AWS.InspectorScan({apiVersion: '2023-08-08'});
You can also set the API version globally in AWS.config.apiVersions
using
the inspectorscan service identifier:
AWS.config.apiVersions = {
inspectorscan: '2023-08-08',
// other service API versions
};
var inspectorscan = new AWS.InspectorScan();
Constructor Summary collapse
-
new AWS.InspectorScan(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
scanSbom(params = {}, callback) ⇒ AWS.Request
Scans a provided CycloneDX 1.5 SBOM and reports on any vulnerabilities discovered in that SBOM.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.InspectorScan(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
scanSbom(params = {}, callback) ⇒ AWS.Request
Scans a provided CycloneDX 1.5 SBOM and reports on any vulnerabilities discovered in that SBOM. You can generate compatible SBOMs for your resources using the Amazon Inspector SBOM generator.