Interface InspectorScanAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
@Generated("software.amazon.awssdk:codegen")
@ThreadSafe
public interface InspectorScanAsyncClient
extends AwsClient
Service client for accessing inspector-scan asynchronously. This can be created using the static
builder()
method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in
some cases such as credentials retrieval and endpoint discovery as part of the async API call.
Amazon Inspector Scan is a vulnerability discovery service that scans a provided Software Bill of Materials (SBOM) for security vulnerabilities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that can be used to configure and create aInspectorScanAsyncClient
.static InspectorScanAsyncClient
create()
Create aInspectorScanAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CompletableFuture
<ScanSbomResponse> scanSbom
(Consumer<ScanSbomRequest.Builder> scanSbomRequest) Scans a provided CycloneDX 1.5 SBOM and reports on any vulnerabilities discovered in that SBOM.default CompletableFuture
<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., ClientOverrideConfigurationMethods 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
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:
- A Java Future containing the result of the ScanSbom operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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.
- AccessDeniedException You do not have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorScanException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
scanSbom
default CompletableFuture<ScanSbomResponse> scanSbom(Consumer<ScanSbomRequest.Builder> scanSbomRequest) 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:
- A Java Future containing the result of the ScanSbom operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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.
- AccessDeniedException You do not have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorScanException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
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
-
create
Create aInspectorScanAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aInspectorScanAsyncClient
.
-