Interface CodeGuruSecurityAsyncClient

  • All Superinterfaces:
    AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

    @Generated("software.amazon.awssdk:codegen")
    @ThreadSafe
    public interface CodeGuruSecurityAsyncClient
    extends AwsClient
    Service client for accessing Amazon CodeGuru Security 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 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.

    • Method Detail

      • batchGetFindings

        default CompletableFuture<BatchGetFindingsResponse> batchGetFindings​(BatchGetFindingsRequest batchGetFindingsRequest)

        Returns a list of all requested findings.

        Parameters:
        batchGetFindingsRequest -
        Returns:
        A Java Future containing the result of the BatchGetFindings 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchGetFindings

        default CompletableFuture<BatchGetFindingsResponse> batchGetFindings​(Consumer<BatchGetFindingsRequest.Builder> batchGetFindingsRequest)

        Returns a list of all requested findings.


        This is a convenience which creates an instance of the BatchGetFindingsRequest.Builder avoiding the need to create one manually via BatchGetFindingsRequest.builder()

        Parameters:
        batchGetFindingsRequest - A Consumer that will call methods on BatchGetFindingsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchGetFindings 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createScan

        default CompletableFuture<CreateScanResponse> createScan​(CreateScanRequest createScanRequest)

        Use to create a scan using code uploaded to an S3 bucket.

        Parameters:
        createScanRequest -
        Returns:
        A Java Future containing the result of the CreateScan 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createScan

        default CompletableFuture<CreateScanResponse> createScan​(Consumer<CreateScanRequest.Builder> createScanRequest)

        Use to create a scan using code uploaded to an S3 bucket.


        This is a convenience which creates an instance of the CreateScanRequest.Builder avoiding the need to create one manually via CreateScanRequest.builder()

        Parameters:
        createScanRequest - A Consumer that will call methods on CreateScanRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateScan 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createUploadUrl

        default CompletableFuture<CreateUploadUrlResponse> createUploadUrl​(CreateUploadUrlRequest createUploadUrlRequest)

        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.

        Parameters:
        createUploadUrlRequest -
        Returns:
        A Java Future containing the result of the CreateUploadUrl 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createUploadUrl

        default CompletableFuture<CreateUploadUrlResponse> createUploadUrl​(Consumer<CreateUploadUrlRequest.Builder> createUploadUrlRequest)

        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.


        This is a convenience which creates an instance of the CreateUploadUrlRequest.Builder avoiding the need to create one manually via CreateUploadUrlRequest.builder()

        Parameters:
        createUploadUrlRequest - A Consumer that will call methods on CreateUploadUrlRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateUploadUrl 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAccountConfiguration

        default CompletableFuture<GetAccountConfigurationResponse> getAccountConfiguration​(GetAccountConfigurationRequest getAccountConfigurationRequest)

        Use to get account level configuration.

        Parameters:
        getAccountConfigurationRequest -
        Returns:
        A Java Future containing the result of the GetAccountConfiguration 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAccountConfiguration

        default CompletableFuture<GetAccountConfigurationResponse> getAccountConfiguration​(Consumer<GetAccountConfigurationRequest.Builder> getAccountConfigurationRequest)

        Use to get account level configuration.


        This is a convenience which creates an instance of the GetAccountConfigurationRequest.Builder avoiding the need to create one manually via GetAccountConfigurationRequest.builder()

        Parameters:
        getAccountConfigurationRequest - A Consumer that will call methods on GetAccountConfigurationRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetAccountConfiguration 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindings

        default CompletableFuture<GetFindingsResponse> getFindings​(GetFindingsRequest getFindingsRequest)

        Returns a list of all findings generated by a particular scan.

        Parameters:
        getFindingsRequest -
        Returns:
        A Java Future containing the result of the GetFindings 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindings

        default CompletableFuture<GetFindingsResponse> getFindings​(Consumer<GetFindingsRequest.Builder> getFindingsRequest)

        Returns a list of all findings generated by a particular scan.


        This is a convenience which creates an instance of the GetFindingsRequest.Builder avoiding the need to create one manually via GetFindingsRequest.builder()

        Parameters:
        getFindingsRequest - A Consumer that will call methods on GetFindingsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetFindings 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingsPaginator

        default GetFindingsPublisher getFindingsPaginator​(GetFindingsRequest getFindingsRequest)

        This is a variant of getFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurusecurity.model.GetFindingsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest) operation.

        Parameters:
        getFindingsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingsPaginator

        default GetFindingsPublisher getFindingsPaginator​(Consumer<GetFindingsRequest.Builder> getFindingsRequest)

        This is a variant of getFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurusecurity.model.GetFindingsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest) operation.


        This is a convenience which creates an instance of the GetFindingsRequest.Builder avoiding the need to create one manually via GetFindingsRequest.builder()

        Parameters:
        getFindingsRequest - A Consumer that will call methods on GetFindingsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getMetricsSummary

        default CompletableFuture<GetMetricsSummaryResponse> getMetricsSummary​(GetMetricsSummaryRequest getMetricsSummaryRequest)

        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.

        Parameters:
        getMetricsSummaryRequest -
        Returns:
        A Java Future containing the result of the GetMetricsSummary 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getMetricsSummary

        default CompletableFuture<GetMetricsSummaryResponse> getMetricsSummary​(Consumer<GetMetricsSummaryRequest.Builder> getMetricsSummaryRequest)

        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.


        This is a convenience which creates an instance of the GetMetricsSummaryRequest.Builder avoiding the need to create one manually via GetMetricsSummaryRequest.builder()

        Parameters:
        getMetricsSummaryRequest - A Consumer that will call methods on GetMetricsSummaryRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetMetricsSummary 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getScan

        default CompletableFuture<GetScanResponse> getScan​(GetScanRequest getScanRequest)

        Returns details about a scan, including whether or not a scan has completed.

        Parameters:
        getScanRequest -
        Returns:
        A Java Future containing the result of the GetScan 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getScan

        default CompletableFuture<GetScanResponse> getScan​(Consumer<GetScanRequest.Builder> getScanRequest)

        Returns details about a scan, including whether or not a scan has completed.


        This is a convenience which creates an instance of the GetScanRequest.Builder avoiding the need to create one manually via GetScanRequest.builder()

        Parameters:
        getScanRequest - A Consumer that will call methods on GetScanRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetScan 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listFindingsMetrics

        default CompletableFuture<ListFindingsMetricsResponse> listFindingsMetrics​(ListFindingsMetricsRequest listFindingsMetricsRequest)

        Returns metrics about all findings in an account within a specified time range.

        Parameters:
        listFindingsMetricsRequest -
        Returns:
        A Java Future containing the result of the ListFindingsMetrics 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listFindingsMetrics

        default CompletableFuture<ListFindingsMetricsResponse> listFindingsMetrics​(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest)

        Returns metrics about all findings in an account within a specified time range.


        This is a convenience which creates an instance of the ListFindingsMetricsRequest.Builder avoiding the need to create one manually via ListFindingsMetricsRequest.builder()

        Parameters:
        listFindingsMetricsRequest - A Consumer that will call methods on ListFindingsMetricsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListFindingsMetrics 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listFindingsMetricsPaginator

        default ListFindingsMetricsPublisher listFindingsMetricsPaginator​(ListFindingsMetricsRequest listFindingsMetricsRequest)

        This is a variant of listFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsPublisher publisher = client.listFindingsMetricsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsPublisher publisher = client.listFindingsMetricsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest) operation.

        Parameters:
        listFindingsMetricsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listFindingsMetricsPaginator

        default ListFindingsMetricsPublisher listFindingsMetricsPaginator​(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest)

        This is a variant of listFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsPublisher publisher = client.listFindingsMetricsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsPublisher publisher = client.listFindingsMetricsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest) operation.


        This is a convenience which creates an instance of the ListFindingsMetricsRequest.Builder avoiding the need to create one manually via ListFindingsMetricsRequest.builder()

        Parameters:
        listFindingsMetricsRequest - A Consumer that will call methods on ListFindingsMetricsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listScans

        default CompletableFuture<ListScansResponse> listScans​(ListScansRequest listScansRequest)

        Returns a list of all the standard scans in an account. Does not return express scans.

        Parameters:
        listScansRequest -
        Returns:
        A Java Future containing the result of the ListScans 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listScans

        default CompletableFuture<ListScansResponse> listScans​(Consumer<ListScansRequest.Builder> listScansRequest)

        Returns a list of all the standard scans in an account. Does not return express scans.


        This is a convenience which creates an instance of the ListScansRequest.Builder avoiding the need to create one manually via ListScansRequest.builder()

        Parameters:
        listScansRequest - A Consumer that will call methods on ListScansRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListScans 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listScansPaginator

        default ListScansPublisher listScansPaginator​(ListScansRequest listScansRequest)

        This is a variant of listScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.codegurusecurity.paginators.ListScansPublisher publisher = client.listScansPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.codegurusecurity.paginators.ListScansPublisher publisher = client.listScansPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurusecurity.model.ListScansResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.codegurusecurity.model.ListScansResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest) operation.

        Parameters:
        listScansRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listScansPaginator

        default ListScansPublisher listScansPaginator​(Consumer<ListScansRequest.Builder> listScansRequest)

        This is a variant of listScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.codegurusecurity.paginators.ListScansPublisher publisher = client.listScansPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.codegurusecurity.paginators.ListScansPublisher publisher = client.listScansPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurusecurity.model.ListScansResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.codegurusecurity.model.ListScansResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest) operation.


        This is a convenience which creates an instance of the ListScansRequest.Builder avoiding the need to create one manually via ListScansRequest.builder()

        Parameters:
        listScansRequest - A Consumer that will call methods on ListScansRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTagsForResource

        default CompletableFuture<ListTagsForResourceResponse> listTagsForResource​(ListTagsForResourceRequest listTagsForResourceRequest)

        Returns a list of all tags associated with a scan.

        Parameters:
        listTagsForResourceRequest -
        Returns:
        A Java Future containing the result of the ListTagsForResource 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTagsForResource

        default CompletableFuture<ListTagsForResourceResponse> listTagsForResource​(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)

        Returns a list of all tags associated with a scan.


        This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the need to create one manually via ListTagsForResourceRequest.builder()

        Parameters:
        listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListTagsForResource 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • tagResource

        default CompletableFuture<TagResourceResponse> tagResource​(TagResourceRequest tagResourceRequest)

        Use to add one or more tags to an existing scan.

        Parameters:
        tagResourceRequest -
        Returns:
        A Java Future containing the result of the TagResource 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • tagResource

        default CompletableFuture<TagResourceResponse> tagResource​(Consumer<TagResourceRequest.Builder> tagResourceRequest)

        Use to add one or more tags to an existing scan.


        This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to create one manually via TagResourceRequest.builder()

        Parameters:
        tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the TagResource 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • untagResource

        default CompletableFuture<UntagResourceResponse> untagResource​(UntagResourceRequest untagResourceRequest)

        Use to remove one or more tags from an existing scan.

        Parameters:
        untagResourceRequest -
        Returns:
        A Java Future containing the result of the UntagResource 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • untagResource

        default CompletableFuture<UntagResourceResponse> untagResource​(Consumer<UntagResourceRequest.Builder> untagResourceRequest)

        Use to remove one or more tags from an existing scan.


        This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to create one manually via UntagResourceRequest.builder()

        Parameters:
        untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UntagResource 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAccountConfiguration

        default CompletableFuture<UpdateAccountConfigurationResponse> updateAccountConfiguration​(UpdateAccountConfigurationRequest updateAccountConfigurationRequest)

        Use to update account-level configuration with an encryption key.

        Parameters:
        updateAccountConfigurationRequest -
        Returns:
        A Java Future containing the result of the UpdateAccountConfiguration 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAccountConfiguration

        default CompletableFuture<UpdateAccountConfigurationResponse> updateAccountConfiguration​(Consumer<UpdateAccountConfigurationRequest.Builder> updateAccountConfigurationRequest)

        Use to update account-level configuration with an encryption key.


        This is a convenience which creates an instance of the UpdateAccountConfigurationRequest.Builder avoiding the need to create one manually via UpdateAccountConfigurationRequest.builder()

        Parameters:
        updateAccountConfigurationRequest - A Consumer that will call methods on UpdateAccountConfigurationRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateAccountConfiguration 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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The server encountered an internal error and is unable to complete the request.
        • ResourceNotFoundException The resource specified in the request was not found.
        • ThrottlingException The request was denied due to request throttling.
        • ValidationException The input fails to satisfy the specified constraints.
        • 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.
        • CodeGuruSecurityException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation