Interface InspectorScanClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
@Generated("software.amazon.awssdk:codegen")
@ThreadSafe
public interface InspectorScanClient
extends AwsClient
Service client for accessing inspector-scan. This can be created using the static
builder()
method.
Amazon Inspector Scan is a vulnerability discovery service that scans a provided Software Bill of Materials (SBOM) for security vulnerabilities.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic InspectorScanClientBuilder
builder()
Create a builder that can be used to configure and create aInspectorScanClient
.static InspectorScanClient
create()
Create aInspectorScanClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default ScanSbomResponse
scanSbom
(Consumer<ScanSbomRequest.Builder> scanSbomRequest) Scans a provided CycloneDX 1.5 SBOM and reports on any vulnerabilities discovered in that SBOM.default ScanSbomResponse
scanSbom
(ScanSbomRequest scanSbomRequest) Scans a provided CycloneDX 1.5 SBOM and reports on any vulnerabilities discovered in that SBOM.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
scanSbom
default ScanSbomResponse scanSbom(ScanSbomRequest scanSbomRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorScanException 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.
- Parameters:
scanSbomRequest
-- Returns:
- Result of the ScanSbom operation returned by the service.
- See Also:
-
scanSbom
default ScanSbomResponse scanSbom(Consumer<ScanSbomRequest.Builder> scanSbomRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorScanException 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.
This is a convenience which creates an instance of the
ScanSbomRequest.Builder
avoiding the need to create one manually viaScanSbomRequest.builder()
- Parameters:
scanSbomRequest
- AConsumer
that will call methods onScanSbomRequest.Builder
to create a request.- Returns:
- Result of the ScanSbom operation returned by the service.
- See Also:
-
create
Create aInspectorScanClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aInspectorScanClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-