com.amazonaws.services.codegurusecurity.AmazonCodeGuruSecurityAsync Maven / Gradle / Ivy
Show all versions of aws-java-sdk-codegurusecurity Show documentation
/*
* Copyright 2019-2024 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 requested findings from standard scans.
*
*
* @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 batchGetFindingsAsync(BatchGetFindingsRequest batchGetFindingsRequest);
/**
*
* Returns a list of requested findings from standard scans.
*
*
* @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 batchGetFindingsAsync(BatchGetFindingsRequest batchGetFindingsRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Use to create a scan using code uploaded to an Amazon 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 createScanAsync(CreateScanRequest createScanRequest);
/**
*
* Use to create a scan using code uploaded to an Amazon 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 createScanAsync(CreateScanRequest createScanRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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.
*
*
* @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 createUploadUrlAsync(CreateUploadUrlRequest createUploadUrlRequest);
/**
*
* 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.
*
*
* @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 createUploadUrlAsync(CreateUploadUrlRequest createUploadUrlRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Use to get the encryption configuration for an account.
*
*
* @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 getAccountConfigurationAsync(GetAccountConfigurationRequest getAccountConfigurationRequest);
/**
*
* Use to get the encryption configuration for an account.
*
*
* @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 getAccountConfigurationAsync(GetAccountConfigurationRequest getAccountConfigurationRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 getFindingsAsync(GetFindingsRequest getFindingsRequest);
/**
*
* 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 getFindingsAsync(GetFindingsRequest getFindingsRequest,
com.amazonaws.handlers.AsyncHandler 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.
*
*
* @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 getMetricsSummaryAsync(GetMetricsSummaryRequest getMetricsSummaryRequest);
/**
*
* 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.
*
*
* @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 getMetricsSummaryAsync(GetMetricsSummaryRequest getMetricsSummaryRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 getScanAsync(GetScanRequest getScanRequest);
/**
*
* 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 getScanAsync(GetScanRequest getScanRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 listFindingsMetricsAsync(ListFindingsMetricsRequest listFindingsMetricsRequest);
/**
*
* 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 listFindingsMetricsAsync(ListFindingsMetricsRequest listFindingsMetricsRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Returns a list of all 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 listScansAsync(ListScansRequest listScansRequest);
/**
*
* Returns a list of all 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 listScansAsync(ListScansRequest listScansRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest);
/**
*
* 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 listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 tagResourceAsync(TagResourceRequest tagResourceRequest);
/**
*
* 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 tagResourceAsync(TagResourceRequest tagResourceRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 untagResourceAsync(UntagResourceRequest untagResourceRequest);
/**
*
* 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 untagResourceAsync(UntagResourceRequest untagResourceRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Use to update the encryption configuration for an account.
*
*
* @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 updateAccountConfigurationAsync(
UpdateAccountConfigurationRequest updateAccountConfigurationRequest);
/**
*
* Use to update the encryption configuration for an account.
*
*
* @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 updateAccountConfigurationAsync(
UpdateAccountConfigurationRequest updateAccountConfigurationRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
}