@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonCodeGuruSecurityAsyncClient extends AmazonCodeGuruSecurityClient implements AmazonCodeGuruSecurityAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Amazon CodeGuru Security is in preview release and is subject to change.
This section provides documentation for the Amazon CodeGuru Security API operations. CodeGuru Security is a service that uses program analysis and machine learning to detect security policy violations and vulnerabilities, and recommends ways to address these security risks.
By proactively detecting and providing recommendations for addressing security risks, CodeGuru Security improves the overall security of your application code. For more information about CodeGuru Security, see the Amazon CodeGuru Security User Guide.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AmazonCodeGuruSecurityAsyncClientBuilder |
asyncBuilder() |
Future<BatchGetFindingsResult> |
batchGetFindingsAsync(BatchGetFindingsRequest request)
Returns a list of all requested findings.
|
Future<BatchGetFindingsResult> |
batchGetFindingsAsync(BatchGetFindingsRequest request,
AsyncHandler<BatchGetFindingsRequest,BatchGetFindingsResult> asyncHandler)
Returns a list of all requested findings.
|
Future<CreateScanResult> |
createScanAsync(CreateScanRequest request)
Use to create a scan using code uploaded to an S3 bucket.
|
Future<CreateScanResult> |
createScanAsync(CreateScanRequest request,
AsyncHandler<CreateScanRequest,CreateScanResult> asyncHandler)
Use to create a scan using code uploaded to an S3 bucket.
|
Future<CreateUploadUrlResult> |
createUploadUrlAsync(CreateUploadUrlRequest request)
Generates a pre-signed URL and request headers used to upload a code resource.
|
Future<CreateUploadUrlResult> |
createUploadUrlAsync(CreateUploadUrlRequest request,
AsyncHandler<CreateUploadUrlRequest,CreateUploadUrlResult> asyncHandler)
Generates a pre-signed URL and request headers used to upload a code resource.
|
Future<GetAccountConfigurationResult> |
getAccountConfigurationAsync(GetAccountConfigurationRequest request)
Use to get account level configuration.
|
Future<GetAccountConfigurationResult> |
getAccountConfigurationAsync(GetAccountConfigurationRequest request,
AsyncHandler<GetAccountConfigurationRequest,GetAccountConfigurationResult> asyncHandler)
Use to get account level configuration.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetFindingsResult> |
getFindingsAsync(GetFindingsRequest request)
Returns a list of all findings generated by a particular scan.
|
Future<GetFindingsResult> |
getFindingsAsync(GetFindingsRequest request,
AsyncHandler<GetFindingsRequest,GetFindingsResult> asyncHandler)
Returns a list of all findings generated by a particular scan.
|
Future<GetMetricsSummaryResult> |
getMetricsSummaryAsync(GetMetricsSummaryRequest request)
Returns top level metrics about an account from a specified date, including number of open findings, the
categories with most findings, the scans with most open findings, and scans with most open critical findings.
|
Future<GetMetricsSummaryResult> |
getMetricsSummaryAsync(GetMetricsSummaryRequest request,
AsyncHandler<GetMetricsSummaryRequest,GetMetricsSummaryResult> asyncHandler)
Returns top level metrics about an account from a specified date, including number of open findings, the
categories with most findings, the scans with most open findings, and scans with most open critical findings.
|
Future<GetScanResult> |
getScanAsync(GetScanRequest request)
Returns details about a scan, including whether or not a scan has completed.
|
Future<GetScanResult> |
getScanAsync(GetScanRequest request,
AsyncHandler<GetScanRequest,GetScanResult> asyncHandler)
Returns details about a scan, including whether or not a scan has completed.
|
Future<ListFindingsMetricsResult> |
listFindingsMetricsAsync(ListFindingsMetricsRequest request)
Returns metrics about all findings in an account within a specified time range.
|
Future<ListFindingsMetricsResult> |
listFindingsMetricsAsync(ListFindingsMetricsRequest request,
AsyncHandler<ListFindingsMetricsRequest,ListFindingsMetricsResult> asyncHandler)
Returns metrics about all findings in an account within a specified time range.
|
Future<ListScansResult> |
listScansAsync(ListScansRequest request)
Returns a list of all the standard scans in an account.
|
Future<ListScansResult> |
listScansAsync(ListScansRequest request,
AsyncHandler<ListScansRequest,ListScansResult> asyncHandler)
Returns a list of all the standard scans in an account.
|
Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request)
Returns a list of all tags associated with a scan.
|
Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request,
AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
Returns a list of all tags associated with a scan.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest request)
Use to add one or more tags to an existing scan.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest request,
AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
Use to add one or more tags to an existing scan.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request)
Use to remove one or more tags from an existing scan.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request,
AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
Use to remove one or more tags from an existing scan.
|
Future<UpdateAccountConfigurationResult> |
updateAccountConfigurationAsync(UpdateAccountConfigurationRequest request)
Use to update account-level configuration with an encryption key.
|
Future<UpdateAccountConfigurationResult> |
updateAccountConfigurationAsync(UpdateAccountConfigurationRequest request,
AsyncHandler<UpdateAccountConfigurationRequest,UpdateAccountConfigurationResult> asyncHandler)
Use to update account-level configuration with an encryption key.
|
batchGetFindings, builder, createScan, createUploadUrl, getAccountConfiguration, getCachedResponseMetadata, getFindings, getMetricsSummary, getScan, listFindingsMetrics, listScans, listTagsForResource, tagResource, untagResource, updateAccountConfigurationaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbatchGetFindings, createScan, createUploadUrl, getAccountConfiguration, getCachedResponseMetadata, getFindings, getMetricsSummary, getScan, listFindingsMetrics, listScans, listTagsForResource, tagResource, untagResource, updateAccountConfigurationpublic static AmazonCodeGuruSecurityAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<BatchGetFindingsResult> batchGetFindingsAsync(BatchGetFindingsRequest request)
AmazonCodeGuruSecurityAsyncReturns a list of all requested findings.
batchGetFindingsAsync in interface AmazonCodeGuruSecurityAsyncpublic Future<BatchGetFindingsResult> batchGetFindingsAsync(BatchGetFindingsRequest request, AsyncHandler<BatchGetFindingsRequest,BatchGetFindingsResult> asyncHandler)
AmazonCodeGuruSecurityAsyncReturns a list of all requested findings.
batchGetFindingsAsync in interface AmazonCodeGuruSecurityAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateScanResult> createScanAsync(CreateScanRequest request)
AmazonCodeGuruSecurityAsyncUse to create a scan using code uploaded to an S3 bucket.
createScanAsync in interface AmazonCodeGuruSecurityAsyncpublic Future<CreateScanResult> createScanAsync(CreateScanRequest request, AsyncHandler<CreateScanRequest,CreateScanResult> asyncHandler)
AmazonCodeGuruSecurityAsyncUse to create a scan using code uploaded to an S3 bucket.
createScanAsync in interface AmazonCodeGuruSecurityAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateUploadUrlResult> createUploadUrlAsync(CreateUploadUrlRequest request)
AmazonCodeGuruSecurityAsyncGenerates a pre-signed URL and request headers used to upload a code resource.
You can upload your code resource to the URL and add the request headers using any HTTP client.
createUploadUrlAsync in interface AmazonCodeGuruSecurityAsyncpublic Future<CreateUploadUrlResult> createUploadUrlAsync(CreateUploadUrlRequest request, AsyncHandler<CreateUploadUrlRequest,CreateUploadUrlResult> asyncHandler)
AmazonCodeGuruSecurityAsyncGenerates a pre-signed URL and request headers used to upload a code resource.
You can upload your code resource to the URL and add the request headers using any HTTP client.
createUploadUrlAsync in interface AmazonCodeGuruSecurityAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetAccountConfigurationResult> getAccountConfigurationAsync(GetAccountConfigurationRequest request)
AmazonCodeGuruSecurityAsyncUse to get account level configuration.
getAccountConfigurationAsync in interface AmazonCodeGuruSecurityAsyncpublic Future<GetAccountConfigurationResult> getAccountConfigurationAsync(GetAccountConfigurationRequest request, AsyncHandler<GetAccountConfigurationRequest,GetAccountConfigurationResult> asyncHandler)
AmazonCodeGuruSecurityAsyncUse to get account level configuration.
getAccountConfigurationAsync in interface AmazonCodeGuruSecurityAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetFindingsResult> getFindingsAsync(GetFindingsRequest request)
AmazonCodeGuruSecurityAsyncReturns a list of all findings generated by a particular scan.
getFindingsAsync in interface AmazonCodeGuruSecurityAsyncpublic Future<GetFindingsResult> getFindingsAsync(GetFindingsRequest request, AsyncHandler<GetFindingsRequest,GetFindingsResult> asyncHandler)
AmazonCodeGuruSecurityAsyncReturns a list of all findings generated by a particular scan.
getFindingsAsync in interface AmazonCodeGuruSecurityAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetMetricsSummaryResult> getMetricsSummaryAsync(GetMetricsSummaryRequest request)
AmazonCodeGuruSecurityAsyncReturns top level metrics about an account from a specified date, including number of open findings, the categories with most findings, the scans with most open findings, and scans with most open critical findings.
getMetricsSummaryAsync in interface AmazonCodeGuruSecurityAsyncpublic Future<GetMetricsSummaryResult> getMetricsSummaryAsync(GetMetricsSummaryRequest request, AsyncHandler<GetMetricsSummaryRequest,GetMetricsSummaryResult> asyncHandler)
AmazonCodeGuruSecurityAsyncReturns top level metrics about an account from a specified date, including number of open findings, the categories with most findings, the scans with most open findings, and scans with most open critical findings.
getMetricsSummaryAsync in interface AmazonCodeGuruSecurityAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetScanResult> getScanAsync(GetScanRequest request)
AmazonCodeGuruSecurityAsyncReturns details about a scan, including whether or not a scan has completed.
getScanAsync in interface AmazonCodeGuruSecurityAsyncpublic Future<GetScanResult> getScanAsync(GetScanRequest request, AsyncHandler<GetScanRequest,GetScanResult> asyncHandler)
AmazonCodeGuruSecurityAsyncReturns details about a scan, including whether or not a scan has completed.
getScanAsync in interface AmazonCodeGuruSecurityAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListFindingsMetricsResult> listFindingsMetricsAsync(ListFindingsMetricsRequest request)
AmazonCodeGuruSecurityAsyncReturns metrics about all findings in an account within a specified time range.
listFindingsMetricsAsync in interface AmazonCodeGuruSecurityAsyncpublic Future<ListFindingsMetricsResult> listFindingsMetricsAsync(ListFindingsMetricsRequest request, AsyncHandler<ListFindingsMetricsRequest,ListFindingsMetricsResult> asyncHandler)
AmazonCodeGuruSecurityAsyncReturns metrics about all findings in an account within a specified time range.
listFindingsMetricsAsync in interface AmazonCodeGuruSecurityAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListScansResult> listScansAsync(ListScansRequest request)
AmazonCodeGuruSecurityAsyncReturns a list of all the standard scans in an account. Does not return express scans.
listScansAsync in interface AmazonCodeGuruSecurityAsyncpublic Future<ListScansResult> listScansAsync(ListScansRequest request, AsyncHandler<ListScansRequest,ListScansResult> asyncHandler)
AmazonCodeGuruSecurityAsyncReturns a list of all the standard scans in an account. Does not return express scans.
listScansAsync in interface AmazonCodeGuruSecurityAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonCodeGuruSecurityAsyncReturns a list of all tags associated with a scan.
listTagsForResourceAsync in interface AmazonCodeGuruSecurityAsyncpublic Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonCodeGuruSecurityAsyncReturns a list of all tags associated with a scan.
listTagsForResourceAsync in interface AmazonCodeGuruSecurityAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonCodeGuruSecurityAsyncUse to add one or more tags to an existing scan.
tagResourceAsync in interface AmazonCodeGuruSecurityAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonCodeGuruSecurityAsyncUse to add one or more tags to an existing scan.
tagResourceAsync in interface AmazonCodeGuruSecurityAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonCodeGuruSecurityAsyncUse to remove one or more tags from an existing scan.
untagResourceAsync in interface AmazonCodeGuruSecurityAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonCodeGuruSecurityAsyncUse to remove one or more tags from an existing scan.
untagResourceAsync in interface AmazonCodeGuruSecurityAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateAccountConfigurationResult> updateAccountConfigurationAsync(UpdateAccountConfigurationRequest request)
AmazonCodeGuruSecurityAsyncUse to update account-level configuration with an encryption key.
updateAccountConfigurationAsync in interface AmazonCodeGuruSecurityAsyncpublic Future<UpdateAccountConfigurationResult> updateAccountConfigurationAsync(UpdateAccountConfigurationRequest request, AsyncHandler<UpdateAccountConfigurationRequest,UpdateAccountConfigurationResult> asyncHandler)
AmazonCodeGuruSecurityAsyncUse to update account-level configuration with an encryption key.
updateAccountConfigurationAsync in interface AmazonCodeGuruSecurityAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AmazonCodeGuruSecurityshutdown in class AmazonCodeGuruSecurityClient