@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_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonCodeGuruSecurityAsyncClientBuilder |
asyncBuilder() |
Future<BatchGetFindingsResult> |
batchGetFindingsAsync(BatchGetFindingsRequest request)
Returns a list of requested findings from standard scans.
|
Future<BatchGetFindingsResult> |
batchGetFindingsAsync(BatchGetFindingsRequest request,
AsyncHandler<BatchGetFindingsRequest,BatchGetFindingsResult> asyncHandler)
Returns a list of requested findings from standard scans.
|
Future<CreateScanResult> |
createScanAsync(CreateScanRequest request)
Use to create a scan using code uploaded to an Amazon S3 bucket.
|
Future<CreateScanResult> |
createScanAsync(CreateScanRequest request,
AsyncHandler<CreateScanRequest,CreateScanResult> asyncHandler)
Use to create a scan using code uploaded to an Amazon S3 bucket.
|
Future<CreateUploadUrlResult> |
createUploadUrlAsync(CreateUploadUrlRequest request)
Generates a pre-signed URL, request headers used to upload a code resource, and code artifact identifier for the
uploaded resource.
|
Future<CreateUploadUrlResult> |
createUploadUrlAsync(CreateUploadUrlRequest request,
AsyncHandler<CreateUploadUrlRequest,CreateUploadUrlResult> asyncHandler)
Generates a pre-signed URL, request headers used to upload a code resource, and code artifact identifier for the
uploaded resource.
|
Future<GetAccountConfigurationResult> |
getAccountConfigurationAsync(GetAccountConfigurationRequest request)
Use to get the encryption configuration for an account.
|
Future<GetAccountConfigurationResult> |
getAccountConfigurationAsync(GetAccountConfigurationRequest request,
AsyncHandler<GetAccountConfigurationRequest,GetAccountConfigurationResult> asyncHandler)
Use to get the encryption configuration for an account.
|
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 a summary of metrics for 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 a summary of metrics for 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 scans in an account.
|
Future<ListScansResult> |
listScansAsync(ListScansRequest request,
AsyncHandler<ListScansRequest,ListScansResult> asyncHandler)
Returns a list of all 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 the encryption configuration for an account.
|
Future<UpdateAccountConfigurationResult> |
updateAccountConfigurationAsync(UpdateAccountConfigurationRequest request,
AsyncHandler<UpdateAccountConfigurationRequest,UpdateAccountConfigurationResult> asyncHandler)
Use to update the encryption configuration for an account.
|
batchGetFindings, builder, createScan, createUploadUrl, getAccountConfiguration, getCachedResponseMetadata, getFindings, getMetricsSummary, getScan, listFindingsMetrics, listScans, listTagsForResource, tagResource, untagResource, updateAccountConfiguration
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
batchGetFindings, createScan, createUploadUrl, getAccountConfiguration, getCachedResponseMetadata, getFindings, getMetricsSummary, getScan, listFindingsMetrics, listScans, listTagsForResource, tagResource, untagResource, updateAccountConfiguration
public static AmazonCodeGuruSecurityAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<BatchGetFindingsResult> batchGetFindingsAsync(BatchGetFindingsRequest request)
AmazonCodeGuruSecurityAsync
Returns a list of requested findings from standard scans.
batchGetFindingsAsync
in interface AmazonCodeGuruSecurityAsync
public Future<BatchGetFindingsResult> batchGetFindingsAsync(BatchGetFindingsRequest request, AsyncHandler<BatchGetFindingsRequest,BatchGetFindingsResult> asyncHandler)
AmazonCodeGuruSecurityAsync
Returns a list of requested findings from standard scans.
batchGetFindingsAsync
in interface AmazonCodeGuruSecurityAsync
asyncHandler
- 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)
AmazonCodeGuruSecurityAsync
Use to create a scan using code uploaded to an Amazon S3 bucket.
createScanAsync
in interface AmazonCodeGuruSecurityAsync
public Future<CreateScanResult> createScanAsync(CreateScanRequest request, AsyncHandler<CreateScanRequest,CreateScanResult> asyncHandler)
AmazonCodeGuruSecurityAsync
Use to create a scan using code uploaded to an Amazon S3 bucket.
createScanAsync
in interface AmazonCodeGuruSecurityAsync
asyncHandler
- 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)
AmazonCodeGuruSecurityAsync
Generates a pre-signed URL, request headers used to upload a code resource, and code artifact identifier for the uploaded resource.
You can upload your code resource to the URL with the request headers using any HTTP client.
createUploadUrlAsync
in interface AmazonCodeGuruSecurityAsync
public Future<CreateUploadUrlResult> createUploadUrlAsync(CreateUploadUrlRequest request, AsyncHandler<CreateUploadUrlRequest,CreateUploadUrlResult> asyncHandler)
AmazonCodeGuruSecurityAsync
Generates a pre-signed URL, request headers used to upload a code resource, and code artifact identifier for the uploaded resource.
You can upload your code resource to the URL with the request headers using any HTTP client.
createUploadUrlAsync
in interface AmazonCodeGuruSecurityAsync
asyncHandler
- 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)
AmazonCodeGuruSecurityAsync
Use to get the encryption configuration for an account.
getAccountConfigurationAsync
in interface AmazonCodeGuruSecurityAsync
public Future<GetAccountConfigurationResult> getAccountConfigurationAsync(GetAccountConfigurationRequest request, AsyncHandler<GetAccountConfigurationRequest,GetAccountConfigurationResult> asyncHandler)
AmazonCodeGuruSecurityAsync
Use to get the encryption configuration for an account.
getAccountConfigurationAsync
in interface AmazonCodeGuruSecurityAsync
asyncHandler
- 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)
AmazonCodeGuruSecurityAsync
Returns a list of all findings generated by a particular scan.
getFindingsAsync
in interface AmazonCodeGuruSecurityAsync
public Future<GetFindingsResult> getFindingsAsync(GetFindingsRequest request, AsyncHandler<GetFindingsRequest,GetFindingsResult> asyncHandler)
AmazonCodeGuruSecurityAsync
Returns a list of all findings generated by a particular scan.
getFindingsAsync
in interface AmazonCodeGuruSecurityAsync
asyncHandler
- 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)
AmazonCodeGuruSecurityAsync
Returns a summary of metrics for 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 AmazonCodeGuruSecurityAsync
public Future<GetMetricsSummaryResult> getMetricsSummaryAsync(GetMetricsSummaryRequest request, AsyncHandler<GetMetricsSummaryRequest,GetMetricsSummaryResult> asyncHandler)
AmazonCodeGuruSecurityAsync
Returns a summary of metrics for 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 AmazonCodeGuruSecurityAsync
asyncHandler
- 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)
AmazonCodeGuruSecurityAsync
Returns details about a scan, including whether or not a scan has completed.
getScanAsync
in interface AmazonCodeGuruSecurityAsync
public Future<GetScanResult> getScanAsync(GetScanRequest request, AsyncHandler<GetScanRequest,GetScanResult> asyncHandler)
AmazonCodeGuruSecurityAsync
Returns details about a scan, including whether or not a scan has completed.
getScanAsync
in interface AmazonCodeGuruSecurityAsync
asyncHandler
- 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)
AmazonCodeGuruSecurityAsync
Returns metrics about all findings in an account within a specified time range.
listFindingsMetricsAsync
in interface AmazonCodeGuruSecurityAsync
public Future<ListFindingsMetricsResult> listFindingsMetricsAsync(ListFindingsMetricsRequest request, AsyncHandler<ListFindingsMetricsRequest,ListFindingsMetricsResult> asyncHandler)
AmazonCodeGuruSecurityAsync
Returns metrics about all findings in an account within a specified time range.
listFindingsMetricsAsync
in interface AmazonCodeGuruSecurityAsync
asyncHandler
- 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)
AmazonCodeGuruSecurityAsync
Returns a list of all scans in an account. Does not return EXPRESS
scans.
listScansAsync
in interface AmazonCodeGuruSecurityAsync
public Future<ListScansResult> listScansAsync(ListScansRequest request, AsyncHandler<ListScansRequest,ListScansResult> asyncHandler)
AmazonCodeGuruSecurityAsync
Returns a list of all scans in an account. Does not return EXPRESS
scans.
listScansAsync
in interface AmazonCodeGuruSecurityAsync
asyncHandler
- 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)
AmazonCodeGuruSecurityAsync
Returns a list of all tags associated with a scan.
listTagsForResourceAsync
in interface AmazonCodeGuruSecurityAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonCodeGuruSecurityAsync
Returns a list of all tags associated with a scan.
listTagsForResourceAsync
in interface AmazonCodeGuruSecurityAsync
asyncHandler
- 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)
AmazonCodeGuruSecurityAsync
Use to add one or more tags to an existing scan.
tagResourceAsync
in interface AmazonCodeGuruSecurityAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonCodeGuruSecurityAsync
Use to add one or more tags to an existing scan.
tagResourceAsync
in interface AmazonCodeGuruSecurityAsync
asyncHandler
- 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)
AmazonCodeGuruSecurityAsync
Use to remove one or more tags from an existing scan.
untagResourceAsync
in interface AmazonCodeGuruSecurityAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonCodeGuruSecurityAsync
Use to remove one or more tags from an existing scan.
untagResourceAsync
in interface AmazonCodeGuruSecurityAsync
asyncHandler
- 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)
AmazonCodeGuruSecurityAsync
Use to update the encryption configuration for an account.
updateAccountConfigurationAsync
in interface AmazonCodeGuruSecurityAsync
public Future<UpdateAccountConfigurationResult> updateAccountConfigurationAsync(UpdateAccountConfigurationRequest request, AsyncHandler<UpdateAccountConfigurationRequest,UpdateAccountConfigurationResult> asyncHandler)
AmazonCodeGuruSecurityAsync
Use to update the encryption configuration for an account.
updateAccountConfigurationAsync
in interface AmazonCodeGuruSecurityAsync
asyncHandler
- 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 AmazonCodeGuruSecurity
shutdown
in class AmazonCodeGuruSecurityClient