AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to ScanSbomAsync.

Namespace: Amazon.InspectorScan
Assembly: AWSSDK.InspectorScan.dll
Version: 3.x.y.z

Syntax

C#
public abstract ScanSbomResponse ScanSbom(
         ScanSbomRequest request
)

Parameters

request
Type: Amazon.InspectorScan.Model.ScanSbomRequest

Container for the necessary parameters to execute the ScanSbom service method.

Return Value


The response from the ScanSbom service method, as returned by InspectorScan.

Exceptions

ExceptionCondition
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException The request processing has failed because of an unknown error, exception or failure.
ThrottlingException The request was denied due to request throttling.
ValidationException The request has failed validation due to missing required fields or having invalid inputs.

Examples

Sample ScanSbom Call


var client = new AmazonInspectorScanClient();
var response = client.ScanSbom(new ScanSbomRequest 
{
    OutputFormat = "CYCLONE_DX_1_5",
    Sbom = new Sbom {
                    
    }
});

Sbom sbom = response.Sbom;

            

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also