/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codegurusecurity; import javax.annotation.Generated; import com.amazonaws.services.codegurusecurity.model.*; /** * Interface for accessing Amazon CodeGuru Security asynchronously. Each asynchronous method will return a Java Future * object representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive * notification when an asynchronous operation completes. *
* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.codegurusecurity.AbstractAmazonCodeGuruSecurityAsync} instead. *
*
*
* 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. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AmazonCodeGuruSecurityAsync extends AmazonCodeGuruSecurity { /** ** Returns a list of all requested findings. *
* * @param batchGetFindingsRequest * @return A Java Future containing the result of the BatchGetFindings operation returned by the service. * @sample AmazonCodeGuruSecurityAsync.BatchGetFindings * @see AWS API Documentation */ java.util.concurrent.Future* Returns a list of all requested findings. *
* * @param batchGetFindingsRequest * @param 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. * @return A Java Future containing the result of the BatchGetFindings operation returned by the service. * @sample AmazonCodeGuruSecurityAsyncHandler.BatchGetFindings * @see AWS API Documentation */ java.util.concurrent.Future* Use to create a scan using code uploaded to an S3 bucket. *
* * @param createScanRequest * @return A Java Future containing the result of the CreateScan operation returned by the service. * @sample AmazonCodeGuruSecurityAsync.CreateScan * @see AWS * API Documentation */ java.util.concurrent.Future* Use to create a scan using code uploaded to an S3 bucket. *
* * @param createScanRequest * @param 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. * @return A Java Future containing the result of the CreateScan operation returned by the service. * @sample AmazonCodeGuruSecurityAsyncHandler.CreateScan * @see AWS * API Documentation */ java.util.concurrent.Future* Generates 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. *
* * @param createUploadUrlRequest * @return A Java Future containing the result of the CreateUploadUrl operation returned by the service. * @sample AmazonCodeGuruSecurityAsync.CreateUploadUrl * @see AWS API Documentation */ java.util.concurrent.Future* Generates 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. *
* * @param createUploadUrlRequest * @param 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. * @return A Java Future containing the result of the CreateUploadUrl operation returned by the service. * @sample AmazonCodeGuruSecurityAsyncHandler.CreateUploadUrl * @see AWS API Documentation */ java.util.concurrent.Future* Use to get account level configuration. *
* * @param getAccountConfigurationRequest * @return A Java Future containing the result of the GetAccountConfiguration operation returned by the service. * @sample AmazonCodeGuruSecurityAsync.GetAccountConfiguration * @see AWS API Documentation */ java.util.concurrent.Future* Use to get account level configuration. *
* * @param getAccountConfigurationRequest * @param 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. * @return A Java Future containing the result of the GetAccountConfiguration operation returned by the service. * @sample AmazonCodeGuruSecurityAsyncHandler.GetAccountConfiguration * @see AWS API Documentation */ java.util.concurrent.Future* Returns a list of all findings generated by a particular scan. *
* * @param getFindingsRequest * @return A Java Future containing the result of the GetFindings operation returned by the service. * @sample AmazonCodeGuruSecurityAsync.GetFindings * @see AWS * API Documentation */ java.util.concurrent.Future* Returns a list of all findings generated by a particular scan. *
* * @param getFindingsRequest * @param 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. * @return A Java Future containing the result of the GetFindings operation returned by the service. * @sample AmazonCodeGuruSecurityAsyncHandler.GetFindings * @see AWS * API Documentation */ java.util.concurrent.Future* 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. *
* * @param getMetricsSummaryRequest * @return A Java Future containing the result of the GetMetricsSummary operation returned by the service. * @sample AmazonCodeGuruSecurityAsync.GetMetricsSummary * @see AWS API Documentation */ java.util.concurrent.Future* 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. *
* * @param getMetricsSummaryRequest * @param 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. * @return A Java Future containing the result of the GetMetricsSummary operation returned by the service. * @sample AmazonCodeGuruSecurityAsyncHandler.GetMetricsSummary * @see AWS API Documentation */ java.util.concurrent.Future* Returns details about a scan, including whether or not a scan has completed. *
* * @param getScanRequest * @return A Java Future containing the result of the GetScan operation returned by the service. * @sample AmazonCodeGuruSecurityAsync.GetScan * @see AWS API * Documentation */ java.util.concurrent.Future* Returns details about a scan, including whether or not a scan has completed. *
* * @param getScanRequest * @param 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. * @return A Java Future containing the result of the GetScan operation returned by the service. * @sample AmazonCodeGuruSecurityAsyncHandler.GetScan * @see AWS API * Documentation */ java.util.concurrent.Future* Returns metrics about all findings in an account within a specified time range. *
* * @param listFindingsMetricsRequest * @return A Java Future containing the result of the ListFindingsMetrics operation returned by the service. * @sample AmazonCodeGuruSecurityAsync.ListFindingsMetrics * @see AWS API Documentation */ java.util.concurrent.Future* Returns metrics about all findings in an account within a specified time range. *
* * @param listFindingsMetricsRequest * @param 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. * @return A Java Future containing the result of the ListFindingsMetrics operation returned by the service. * @sample AmazonCodeGuruSecurityAsyncHandler.ListFindingsMetrics * @see AWS API Documentation */ java.util.concurrent.Future* Returns a list of all the standard scans in an account. Does not return express scans. *
* * @param listScansRequest * @return A Java Future containing the result of the ListScans operation returned by the service. * @sample AmazonCodeGuruSecurityAsync.ListScans * @see AWS * API Documentation */ java.util.concurrent.Future* Returns a list of all the standard scans in an account. Does not return express scans. *
* * @param listScansRequest * @param 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. * @return A Java Future containing the result of the ListScans operation returned by the service. * @sample AmazonCodeGuruSecurityAsyncHandler.ListScans * @see AWS * API Documentation */ java.util.concurrent.Future* Returns a list of all tags associated with a scan. *
* * @param listTagsForResourceRequest * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AmazonCodeGuruSecurityAsync.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future* Returns a list of all tags associated with a scan. *
* * @param listTagsForResourceRequest * @param 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. * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AmazonCodeGuruSecurityAsyncHandler.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future* Use to add one or more tags to an existing scan. *
* * @param tagResourceRequest * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AmazonCodeGuruSecurityAsync.TagResource * @see AWS * API Documentation */ java.util.concurrent.Future* Use to add one or more tags to an existing scan. *
* * @param tagResourceRequest * @param 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. * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AmazonCodeGuruSecurityAsyncHandler.TagResource * @see AWS * API Documentation */ java.util.concurrent.Future* Use to remove one or more tags from an existing scan. *
* * @param untagResourceRequest * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AmazonCodeGuruSecurityAsync.UntagResource * @see AWS API Documentation */ java.util.concurrent.Future* Use to remove one or more tags from an existing scan. *
* * @param untagResourceRequest * @param 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. * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AmazonCodeGuruSecurityAsyncHandler.UntagResource * @see AWS API Documentation */ java.util.concurrent.Future* Use to update account-level configuration with an encryption key. *
* * @param updateAccountConfigurationRequest * @return A Java Future containing the result of the UpdateAccountConfiguration operation returned by the service. * @sample AmazonCodeGuruSecurityAsync.UpdateAccountConfiguration * @see AWS API Documentation */ java.util.concurrent.Future* Use to update account-level configuration with an encryption key. *
* * @param updateAccountConfigurationRequest * @param 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. * @return A Java Future containing the result of the UpdateAccountConfiguration operation returned by the service. * @sample AmazonCodeGuruSecurityAsyncHandler.UpdateAccountConfiguration * @see AWS API Documentation */ java.util.concurrent.Future