Interface Inspector2AsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface Inspector2AsyncClient extends AwsClient
Service client for accessing Inspector2 asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any
invalid reference
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 Inspector is a vulnerability discovery service that automates continuous scanning for security vulnerabilities within your Amazon EC2, Amazon ECR, and Amazon Web Services Lambda environments.

  • Field Details

  • Method Details

    • associateMember

      default CompletableFuture<AssociateMemberResponse> associateMember(AssociateMemberRequest associateMemberRequest)

      Associates an Amazon Web Services account with an Amazon Inspector delegated administrator. An HTTP 200 response indicates the association was successfully started, but doesn’t indicate whether it was completed. You can check if the association completed by using ListMembers for multiple accounts or GetMembers for a single account.

      Parameters:
      associateMemberRequest -
      Returns:
      A Java Future containing the result of the AssociateMember 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • associateMember

      default CompletableFuture<AssociateMemberResponse> associateMember(Consumer<AssociateMemberRequest.Builder> associateMemberRequest)

      Associates an Amazon Web Services account with an Amazon Inspector delegated administrator. An HTTP 200 response indicates the association was successfully started, but doesn’t indicate whether it was completed. You can check if the association completed by using ListMembers for multiple accounts or GetMembers for a single account.


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

      Parameters:
      associateMemberRequest - A Consumer that will call methods on AssociateMemberRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the AssociateMember 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetAccountStatus

      default CompletableFuture<BatchGetAccountStatusResponse> batchGetAccountStatus(BatchGetAccountStatusRequest batchGetAccountStatusRequest)

      Retrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment.

      Parameters:
      batchGetAccountStatusRequest -
      Returns:
      A Java Future containing the result of the BatchGetAccountStatus 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetAccountStatus

      default CompletableFuture<BatchGetAccountStatusResponse> batchGetAccountStatus(Consumer<BatchGetAccountStatusRequest.Builder> batchGetAccountStatusRequest)

      Retrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment.


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

      Parameters:
      batchGetAccountStatusRequest - A Consumer that will call methods on BatchGetAccountStatusRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchGetAccountStatus 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetCodeSnippet

      default CompletableFuture<BatchGetCodeSnippetResponse> batchGetCodeSnippet(BatchGetCodeSnippetRequest batchGetCodeSnippetRequest)

      Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in.

      Parameters:
      batchGetCodeSnippetRequest -
      Returns:
      A Java Future containing the result of the BatchGetCodeSnippet 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetCodeSnippet

      default CompletableFuture<BatchGetCodeSnippetResponse> batchGetCodeSnippet(Consumer<BatchGetCodeSnippetRequest.Builder> batchGetCodeSnippetRequest)

      Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in.


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

      Parameters:
      batchGetCodeSnippetRequest - A Consumer that will call methods on BatchGetCodeSnippetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchGetCodeSnippet 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetFindingDetails

      default CompletableFuture<BatchGetFindingDetailsResponse> batchGetFindingDetails(BatchGetFindingDetailsRequest batchGetFindingDetailsRequest)

      Gets vulnerability details for findings.

      Parameters:
      batchGetFindingDetailsRequest -
      Returns:
      A Java Future containing the result of the BatchGetFindingDetails 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetFindingDetails

      default CompletableFuture<BatchGetFindingDetailsResponse> batchGetFindingDetails(Consumer<BatchGetFindingDetailsRequest.Builder> batchGetFindingDetailsRequest)

      Gets vulnerability details for findings.


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

      Parameters:
      batchGetFindingDetailsRequest - A Consumer that will call methods on BatchGetFindingDetailsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchGetFindingDetails 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetFreeTrialInfo

      default CompletableFuture<BatchGetFreeTrialInfoResponse> batchGetFreeTrialInfo(BatchGetFreeTrialInfoRequest batchGetFreeTrialInfoRequest)

      Gets free trial status for multiple Amazon Web Services accounts.

      Parameters:
      batchGetFreeTrialInfoRequest -
      Returns:
      A Java Future containing the result of the BatchGetFreeTrialInfo 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetFreeTrialInfo

      default CompletableFuture<BatchGetFreeTrialInfoResponse> batchGetFreeTrialInfo(Consumer<BatchGetFreeTrialInfoRequest.Builder> batchGetFreeTrialInfoRequest)

      Gets free trial status for multiple Amazon Web Services accounts.


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

      Parameters:
      batchGetFreeTrialInfoRequest - A Consumer that will call methods on BatchGetFreeTrialInfoRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchGetFreeTrialInfo 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetMemberEc2DeepInspectionStatus

      default CompletableFuture<BatchGetMemberEc2DeepInspectionStatusResponse> batchGetMemberEc2DeepInspectionStatus(BatchGetMemberEc2DeepInspectionStatusRequest batchGetMemberEc2DeepInspectionStatusRequest)

      Retrieves Amazon Inspector deep inspection activation status of multiple member accounts within your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.

      Parameters:
      batchGetMemberEc2DeepInspectionStatusRequest -
      Returns:
      A Java Future containing the result of the BatchGetMemberEc2DeepInspectionStatus 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetMemberEc2DeepInspectionStatus

      default CompletableFuture<BatchGetMemberEc2DeepInspectionStatusResponse> batchGetMemberEc2DeepInspectionStatus(Consumer<BatchGetMemberEc2DeepInspectionStatusRequest.Builder> batchGetMemberEc2DeepInspectionStatusRequest)

      Retrieves Amazon Inspector deep inspection activation status of multiple member accounts within your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.


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

      Parameters:
      batchGetMemberEc2DeepInspectionStatusRequest - A Consumer that will call methods on BatchGetMemberEc2DeepInspectionStatusRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchGetMemberEc2DeepInspectionStatus 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchUpdateMemberEc2DeepInspectionStatus

      default CompletableFuture<BatchUpdateMemberEc2DeepInspectionStatusResponse> batchUpdateMemberEc2DeepInspectionStatus(BatchUpdateMemberEc2DeepInspectionStatusRequest batchUpdateMemberEc2DeepInspectionStatusRequest)

      Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.

      Parameters:
      batchUpdateMemberEc2DeepInspectionStatusRequest -
      Returns:
      A Java Future containing the result of the BatchUpdateMemberEc2DeepInspectionStatus 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchUpdateMemberEc2DeepInspectionStatus

      default CompletableFuture<BatchUpdateMemberEc2DeepInspectionStatusResponse> batchUpdateMemberEc2DeepInspectionStatus(Consumer<BatchUpdateMemberEc2DeepInspectionStatusRequest.Builder> batchUpdateMemberEc2DeepInspectionStatusRequest)

      Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.


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

      Parameters:
      batchUpdateMemberEc2DeepInspectionStatusRequest - A Consumer that will call methods on BatchUpdateMemberEc2DeepInspectionStatusRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchUpdateMemberEc2DeepInspectionStatus 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • cancelFindingsReport

      default CompletableFuture<CancelFindingsReportResponse> cancelFindingsReport(CancelFindingsReportRequest cancelFindingsReportRequest)

      Cancels the given findings report.

      Parameters:
      cancelFindingsReportRequest -
      Returns:
      A Java Future containing the result of the CancelFindingsReport 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • cancelFindingsReport

      default CompletableFuture<CancelFindingsReportResponse> cancelFindingsReport(Consumer<CancelFindingsReportRequest.Builder> cancelFindingsReportRequest)

      Cancels the given findings report.


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

      Parameters:
      cancelFindingsReportRequest - A Consumer that will call methods on CancelFindingsReportRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CancelFindingsReport 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • cancelSbomExport

      default CompletableFuture<CancelSbomExportResponse> cancelSbomExport(CancelSbomExportRequest cancelSbomExportRequest)

      Cancels a software bill of materials (SBOM) report.

      Parameters:
      cancelSbomExportRequest -
      Returns:
      A Java Future containing the result of the CancelSbomExport 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • cancelSbomExport

      default CompletableFuture<CancelSbomExportResponse> cancelSbomExport(Consumer<CancelSbomExportRequest.Builder> cancelSbomExportRequest)

      Cancels a software bill of materials (SBOM) report.


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

      Parameters:
      cancelSbomExportRequest - A Consumer that will call methods on CancelSbomExportRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CancelSbomExport 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCisScanConfiguration

      default CompletableFuture<CreateCisScanConfigurationResponse> createCisScanConfiguration(CreateCisScanConfigurationRequest createCisScanConfigurationRequest)

      Creates a CIS scan configuration.

      Parameters:
      createCisScanConfigurationRequest -
      Returns:
      A Java Future containing the result of the CreateCisScanConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCisScanConfiguration

      default CompletableFuture<CreateCisScanConfigurationResponse> createCisScanConfiguration(Consumer<CreateCisScanConfigurationRequest.Builder> createCisScanConfigurationRequest)

      Creates a CIS scan configuration.


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

      Parameters:
      createCisScanConfigurationRequest - A Consumer that will call methods on CreateCisScanConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateCisScanConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createFilter

      default CompletableFuture<CreateFilterResponse> createFilter(CreateFilterRequest createFilterRequest)

      Creates a filter resource using specified filter criteria. When the filter action is set to SUPPRESS this action creates a suppression rule.

      Parameters:
      createFilterRequest -
      Returns:
      A Java Future containing the result of the CreateFilter 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.
      • ServiceQuotaExceededException You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
      • BadRequestException One or more tags submitted as part of the request is not valid.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createFilter

      default CompletableFuture<CreateFilterResponse> createFilter(Consumer<CreateFilterRequest.Builder> createFilterRequest)

      Creates a filter resource using specified filter criteria. When the filter action is set to SUPPRESS this action creates a suppression rule.


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

      Parameters:
      createFilterRequest - A Consumer that will call methods on CreateFilterRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateFilter 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.
      • ServiceQuotaExceededException You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
      • BadRequestException One or more tags submitted as part of the request is not valid.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createFindingsReport

      default CompletableFuture<CreateFindingsReportResponse> createFindingsReport(CreateFindingsReportRequest createFindingsReportRequest)

      Creates a finding report. By default only ACTIVE findings are returned in the report. To see SUPRESSED or CLOSED findings you must specify a value for the findingStatus filter criteria.

      Parameters:
      createFindingsReportRequest -
      Returns:
      A Java Future containing the result of the CreateFindingsReport 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createFindingsReport

      default CompletableFuture<CreateFindingsReportResponse> createFindingsReport(Consumer<CreateFindingsReportRequest.Builder> createFindingsReportRequest)

      Creates a finding report. By default only ACTIVE findings are returned in the report. To see SUPRESSED or CLOSED findings you must specify a value for the findingStatus filter criteria.


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

      Parameters:
      createFindingsReportRequest - A Consumer that will call methods on CreateFindingsReportRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateFindingsReport 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createSbomExport

      default CompletableFuture<CreateSbomExportResponse> createSbomExport(CreateSbomExportRequest createSbomExportRequest)

      Creates a software bill of materials (SBOM) report.

      Parameters:
      createSbomExportRequest -
      Returns:
      A Java Future containing the result of the CreateSbomExport 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createSbomExport

      default CompletableFuture<CreateSbomExportResponse> createSbomExport(Consumer<CreateSbomExportRequest.Builder> createSbomExportRequest)

      Creates a software bill of materials (SBOM) report.


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

      Parameters:
      createSbomExportRequest - A Consumer that will call methods on CreateSbomExportRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateSbomExport 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteCisScanConfiguration

      default CompletableFuture<DeleteCisScanConfigurationResponse> deleteCisScanConfiguration(DeleteCisScanConfigurationRequest deleteCisScanConfigurationRequest)

      Deletes a CIS scan configuration.

      Parameters:
      deleteCisScanConfigurationRequest -
      Returns:
      A Java Future containing the result of the DeleteCisScanConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteCisScanConfiguration

      default CompletableFuture<DeleteCisScanConfigurationResponse> deleteCisScanConfiguration(Consumer<DeleteCisScanConfigurationRequest.Builder> deleteCisScanConfigurationRequest)

      Deletes a CIS scan configuration.


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

      Parameters:
      deleteCisScanConfigurationRequest - A Consumer that will call methods on DeleteCisScanConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteCisScanConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteFilter

      default CompletableFuture<DeleteFilterResponse> deleteFilter(DeleteFilterRequest deleteFilterRequest)

      Deletes a filter resource.

      Parameters:
      deleteFilterRequest -
      Returns:
      A Java Future containing the result of the DeleteFilter 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteFilter

      default CompletableFuture<DeleteFilterResponse> deleteFilter(Consumer<DeleteFilterRequest.Builder> deleteFilterRequest)

      Deletes a filter resource.


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

      Parameters:
      deleteFilterRequest - A Consumer that will call methods on DeleteFilterRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteFilter 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeOrganizationConfiguration

      default CompletableFuture<DescribeOrganizationConfigurationResponse> describeOrganizationConfiguration(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest)

      Describe Amazon Inspector configuration settings for an Amazon Web Services organization.

      Parameters:
      describeOrganizationConfigurationRequest -
      Returns:
      A Java Future containing the result of the DescribeOrganizationConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeOrganizationConfiguration

      default CompletableFuture<DescribeOrganizationConfigurationResponse> describeOrganizationConfiguration(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest)

      Describe Amazon Inspector configuration settings for an Amazon Web Services organization.


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

      Parameters:
      describeOrganizationConfigurationRequest - A Consumer that will call methods on DescribeOrganizationConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DescribeOrganizationConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disable

      default CompletableFuture<DisableResponse> disable(DisableRequest disableRequest)

      Disables Amazon Inspector scans for one or more Amazon Web Services accounts. Disabling all scan types in an account disables the Amazon Inspector service.

      Parameters:
      disableRequest -
      Returns:
      A Java Future containing the result of the Disable 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disable

      Disables Amazon Inspector scans for one or more Amazon Web Services accounts. Disabling all scan types in an account disables the Amazon Inspector service.


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

      Parameters:
      disableRequest - A Consumer that will call methods on DisableRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the Disable 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disableDelegatedAdminAccount

      default CompletableFuture<DisableDelegatedAdminAccountResponse> disableDelegatedAdminAccount(DisableDelegatedAdminAccountRequest disableDelegatedAdminAccountRequest)

      Disables the Amazon Inspector delegated administrator for your organization.

      Parameters:
      disableDelegatedAdminAccountRequest -
      Returns:
      A Java Future containing the result of the DisableDelegatedAdminAccount 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.
      • ConflictException A conflict occurred.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disableDelegatedAdminAccount

      default CompletableFuture<DisableDelegatedAdminAccountResponse> disableDelegatedAdminAccount(Consumer<DisableDelegatedAdminAccountRequest.Builder> disableDelegatedAdminAccountRequest)

      Disables the Amazon Inspector delegated administrator for your organization.


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

      Parameters:
      disableDelegatedAdminAccountRequest - A Consumer that will call methods on DisableDelegatedAdminAccountRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DisableDelegatedAdminAccount 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.
      • ConflictException A conflict occurred.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateMember

      default CompletableFuture<DisassociateMemberResponse> disassociateMember(DisassociateMemberRequest disassociateMemberRequest)

      Disassociates a member account from an Amazon Inspector delegated administrator.

      Parameters:
      disassociateMemberRequest -
      Returns:
      A Java Future containing the result of the DisassociateMember 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateMember

      default CompletableFuture<DisassociateMemberResponse> disassociateMember(Consumer<DisassociateMemberRequest.Builder> disassociateMemberRequest)

      Disassociates a member account from an Amazon Inspector delegated administrator.


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

      Parameters:
      disassociateMemberRequest - A Consumer that will call methods on DisassociateMemberRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DisassociateMember 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • enable

      default CompletableFuture<EnableResponse> enable(EnableRequest enableRequest)

      Enables Amazon Inspector scans for one or more Amazon Web Services accounts.

      Parameters:
      enableRequest -
      Returns:
      A Java Future containing the result of the Enable 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • enable

      Enables Amazon Inspector scans for one or more Amazon Web Services accounts.


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

      Parameters:
      enableRequest - A Consumer that will call methods on EnableRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the Enable 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • enableDelegatedAdminAccount

      default CompletableFuture<EnableDelegatedAdminAccountResponse> enableDelegatedAdminAccount(EnableDelegatedAdminAccountRequest enableDelegatedAdminAccountRequest)

      Enables the Amazon Inspector delegated administrator for your Organizations organization.

      Parameters:
      enableDelegatedAdminAccountRequest -
      Returns:
      A Java Future containing the result of the EnableDelegatedAdminAccount 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.
      • ConflictException A conflict occurred.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • enableDelegatedAdminAccount

      default CompletableFuture<EnableDelegatedAdminAccountResponse> enableDelegatedAdminAccount(Consumer<EnableDelegatedAdminAccountRequest.Builder> enableDelegatedAdminAccountRequest)

      Enables the Amazon Inspector delegated administrator for your Organizations organization.


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

      Parameters:
      enableDelegatedAdminAccountRequest - A Consumer that will call methods on EnableDelegatedAdminAccountRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the EnableDelegatedAdminAccount 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.
      • ConflictException A conflict occurred.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCisScanReport

      default CompletableFuture<GetCisScanReportResponse> getCisScanReport(GetCisScanReportRequest getCisScanReportRequest)

      Retrieves a CIS scan report.

      Parameters:
      getCisScanReportRequest -
      Returns:
      A Java Future containing the result of the GetCisScanReport 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCisScanReport

      default CompletableFuture<GetCisScanReportResponse> getCisScanReport(Consumer<GetCisScanReportRequest.Builder> getCisScanReportRequest)

      Retrieves a CIS scan report.


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

      Parameters:
      getCisScanReportRequest - A Consumer that will call methods on GetCisScanReportRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetCisScanReport 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCisScanResultDetails

      default CompletableFuture<GetCisScanResultDetailsResponse> getCisScanResultDetails(GetCisScanResultDetailsRequest getCisScanResultDetailsRequest)

      Retrieves CIS scan result details.

      Parameters:
      getCisScanResultDetailsRequest -
      Returns:
      A Java Future containing the result of the GetCisScanResultDetails 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCisScanResultDetails

      default CompletableFuture<GetCisScanResultDetailsResponse> getCisScanResultDetails(Consumer<GetCisScanResultDetailsRequest.Builder> getCisScanResultDetailsRequest)

      Retrieves CIS scan result details.


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

      Parameters:
      getCisScanResultDetailsRequest - A Consumer that will call methods on GetCisScanResultDetailsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetCisScanResultDetails 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCisScanResultDetailsPaginator

      default GetCisScanResultDetailsPublisher getCisScanResultDetailsPaginator(GetCisScanResultDetailsRequest getCisScanResultDetailsRequest)

      This is a variant of getCisScanResultDetails(software.amazon.awssdk.services.inspector2.model.GetCisScanResultDetailsRequest) 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.inspector2.paginators.GetCisScanResultDetailsPublisher publisher = client.getCisScanResultDetailsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.GetCisScanResultDetailsPublisher publisher = client.getCisScanResultDetailsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.GetCisScanResultDetailsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.GetCisScanResultDetailsResponse 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 getCisScanResultDetails(software.amazon.awssdk.services.inspector2.model.GetCisScanResultDetailsRequest) operation.

      Parameters:
      getCisScanResultDetailsRequest -
      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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCisScanResultDetailsPaginator

      default GetCisScanResultDetailsPublisher getCisScanResultDetailsPaginator(Consumer<GetCisScanResultDetailsRequest.Builder> getCisScanResultDetailsRequest)

      This is a variant of getCisScanResultDetails(software.amazon.awssdk.services.inspector2.model.GetCisScanResultDetailsRequest) 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.inspector2.paginators.GetCisScanResultDetailsPublisher publisher = client.getCisScanResultDetailsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.GetCisScanResultDetailsPublisher publisher = client.getCisScanResultDetailsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.GetCisScanResultDetailsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.GetCisScanResultDetailsResponse 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 getCisScanResultDetails(software.amazon.awssdk.services.inspector2.model.GetCisScanResultDetailsRequest) operation.


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

      Parameters:
      getCisScanResultDetailsRequest - A Consumer that will call methods on GetCisScanResultDetailsRequest.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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getConfiguration

      default CompletableFuture<GetConfigurationResponse> getConfiguration(GetConfigurationRequest getConfigurationRequest)

      Retrieves setting configurations for Inspector scans.

      Parameters:
      getConfigurationRequest -
      Returns:
      A Java Future containing the result of the GetConfiguration 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.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getConfiguration

      default CompletableFuture<GetConfigurationResponse> getConfiguration(Consumer<GetConfigurationRequest.Builder> getConfigurationRequest)

      Retrieves setting configurations for Inspector scans.


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

      Parameters:
      getConfigurationRequest - A Consumer that will call methods on GetConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetConfiguration 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.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getDelegatedAdminAccount

      default CompletableFuture<GetDelegatedAdminAccountResponse> getDelegatedAdminAccount(GetDelegatedAdminAccountRequest getDelegatedAdminAccountRequest)

      Retrieves information about the Amazon Inspector delegated administrator for your organization.

      Parameters:
      getDelegatedAdminAccountRequest -
      Returns:
      A Java Future containing the result of the GetDelegatedAdminAccount 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getDelegatedAdminAccount

      default CompletableFuture<GetDelegatedAdminAccountResponse> getDelegatedAdminAccount(Consumer<GetDelegatedAdminAccountRequest.Builder> getDelegatedAdminAccountRequest)

      Retrieves information about the Amazon Inspector delegated administrator for your organization.


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

      Parameters:
      getDelegatedAdminAccountRequest - A Consumer that will call methods on GetDelegatedAdminAccountRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetDelegatedAdminAccount 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getEc2DeepInspectionConfiguration

      default CompletableFuture<GetEc2DeepInspectionConfigurationResponse> getEc2DeepInspectionConfiguration(GetEc2DeepInspectionConfigurationRequest getEc2DeepInspectionConfigurationRequest)

      Retrieves the activation status of Amazon Inspector deep inspection and custom paths associated with your account.

      Parameters:
      getEc2DeepInspectionConfigurationRequest -
      Returns:
      A Java Future containing the result of the GetEc2DeepInspectionConfiguration 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getEc2DeepInspectionConfiguration

      default CompletableFuture<GetEc2DeepInspectionConfigurationResponse> getEc2DeepInspectionConfiguration(Consumer<GetEc2DeepInspectionConfigurationRequest.Builder> getEc2DeepInspectionConfigurationRequest)

      Retrieves the activation status of Amazon Inspector deep inspection and custom paths associated with your account.


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

      Parameters:
      getEc2DeepInspectionConfigurationRequest - A Consumer that will call methods on GetEc2DeepInspectionConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetEc2DeepInspectionConfiguration 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getEncryptionKey

      default CompletableFuture<GetEncryptionKeyResponse> getEncryptionKey(GetEncryptionKeyRequest getEncryptionKeyRequest)

      Gets an encryption key.

      Parameters:
      getEncryptionKeyRequest -
      Returns:
      A Java Future containing the result of the GetEncryptionKey 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getEncryptionKey

      default CompletableFuture<GetEncryptionKeyResponse> getEncryptionKey(Consumer<GetEncryptionKeyRequest.Builder> getEncryptionKeyRequest)

      Gets an encryption key.


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

      Parameters:
      getEncryptionKeyRequest - A Consumer that will call methods on GetEncryptionKeyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetEncryptionKey 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFindingsReportStatus

      default CompletableFuture<GetFindingsReportStatusResponse> getFindingsReportStatus(GetFindingsReportStatusRequest getFindingsReportStatusRequest)

      Gets the status of a findings report.

      Parameters:
      getFindingsReportStatusRequest -
      Returns:
      A Java Future containing the result of the GetFindingsReportStatus 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFindingsReportStatus

      default CompletableFuture<GetFindingsReportStatusResponse> getFindingsReportStatus(Consumer<GetFindingsReportStatusRequest.Builder> getFindingsReportStatusRequest)

      Gets the status of a findings report.


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

      Parameters:
      getFindingsReportStatusRequest - A Consumer that will call methods on GetFindingsReportStatusRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetFindingsReportStatus 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getMember

      default CompletableFuture<GetMemberResponse> getMember(GetMemberRequest getMemberRequest)

      Gets member information for your organization.

      Parameters:
      getMemberRequest -
      Returns:
      A Java Future containing the result of the GetMember 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getMember

      default CompletableFuture<GetMemberResponse> getMember(Consumer<GetMemberRequest.Builder> getMemberRequest)

      Gets member information for your organization.


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

      Parameters:
      getMemberRequest - A Consumer that will call methods on GetMemberRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetMember 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getSbomExport

      default CompletableFuture<GetSbomExportResponse> getSbomExport(GetSbomExportRequest getSbomExportRequest)

      Gets details of a software bill of materials (SBOM) report.

      Parameters:
      getSbomExportRequest -
      Returns:
      A Java Future containing the result of the GetSbomExport 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getSbomExport

      default CompletableFuture<GetSbomExportResponse> getSbomExport(Consumer<GetSbomExportRequest.Builder> getSbomExportRequest)

      Gets details of a software bill of materials (SBOM) report.


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

      Parameters:
      getSbomExportRequest - A Consumer that will call methods on GetSbomExportRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetSbomExport 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAccountPermissions

      default CompletableFuture<ListAccountPermissionsResponse> listAccountPermissions(ListAccountPermissionsRequest listAccountPermissionsRequest)

      Lists the permissions an account has to configure Amazon Inspector.

      Parameters:
      listAccountPermissionsRequest -
      Returns:
      A Java Future containing the result of the ListAccountPermissions 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAccountPermissions

      default CompletableFuture<ListAccountPermissionsResponse> listAccountPermissions(Consumer<ListAccountPermissionsRequest.Builder> listAccountPermissionsRequest)

      Lists the permissions an account has to configure Amazon Inspector.


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

      Parameters:
      listAccountPermissionsRequest - A Consumer that will call methods on ListAccountPermissionsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListAccountPermissions 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAccountPermissionsPaginator

      default ListAccountPermissionsPublisher listAccountPermissionsPaginator(ListAccountPermissionsRequest listAccountPermissionsRequest)

      This is a variant of listAccountPermissions(software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsRequest) 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.inspector2.paginators.ListAccountPermissionsPublisher publisher = client.listAccountPermissionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListAccountPermissionsPublisher publisher = client.listAccountPermissionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsResponse 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 listAccountPermissions(software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsRequest) operation.

      Parameters:
      listAccountPermissionsRequest -
      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAccountPermissionsPaginator

      default ListAccountPermissionsPublisher listAccountPermissionsPaginator(Consumer<ListAccountPermissionsRequest.Builder> listAccountPermissionsRequest)

      This is a variant of listAccountPermissions(software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsRequest) 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.inspector2.paginators.ListAccountPermissionsPublisher publisher = client.listAccountPermissionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListAccountPermissionsPublisher publisher = client.listAccountPermissionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsResponse 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 listAccountPermissions(software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsRequest) operation.


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

      Parameters:
      listAccountPermissionsRequest - A Consumer that will call methods on ListAccountPermissionsRequest.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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScanConfigurations

      default CompletableFuture<ListCisScanConfigurationsResponse> listCisScanConfigurations(ListCisScanConfigurationsRequest listCisScanConfigurationsRequest)

      Lists CIS scan configurations.

      Parameters:
      listCisScanConfigurationsRequest -
      Returns:
      A Java Future containing the result of the ListCisScanConfigurations 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScanConfigurations

      default CompletableFuture<ListCisScanConfigurationsResponse> listCisScanConfigurations(Consumer<ListCisScanConfigurationsRequest.Builder> listCisScanConfigurationsRequest)

      Lists CIS scan configurations.


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

      Parameters:
      listCisScanConfigurationsRequest - A Consumer that will call methods on ListCisScanConfigurationsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListCisScanConfigurations 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScanConfigurationsPaginator

      default ListCisScanConfigurationsPublisher listCisScanConfigurationsPaginator(ListCisScanConfigurationsRequest listCisScanConfigurationsRequest)

      This is a variant of listCisScanConfigurations(software.amazon.awssdk.services.inspector2.model.ListCisScanConfigurationsRequest) 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.inspector2.paginators.ListCisScanConfigurationsPublisher publisher = client.listCisScanConfigurationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListCisScanConfigurationsPublisher publisher = client.listCisScanConfigurationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListCisScanConfigurationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListCisScanConfigurationsResponse 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 listCisScanConfigurations(software.amazon.awssdk.services.inspector2.model.ListCisScanConfigurationsRequest) operation.

      Parameters:
      listCisScanConfigurationsRequest -
      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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScanConfigurationsPaginator

      default ListCisScanConfigurationsPublisher listCisScanConfigurationsPaginator(Consumer<ListCisScanConfigurationsRequest.Builder> listCisScanConfigurationsRequest)

      This is a variant of listCisScanConfigurations(software.amazon.awssdk.services.inspector2.model.ListCisScanConfigurationsRequest) 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.inspector2.paginators.ListCisScanConfigurationsPublisher publisher = client.listCisScanConfigurationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListCisScanConfigurationsPublisher publisher = client.listCisScanConfigurationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListCisScanConfigurationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListCisScanConfigurationsResponse 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 listCisScanConfigurations(software.amazon.awssdk.services.inspector2.model.ListCisScanConfigurationsRequest) operation.


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

      Parameters:
      listCisScanConfigurationsRequest - A Consumer that will call methods on ListCisScanConfigurationsRequest.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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScanResultsAggregatedByChecks

      default CompletableFuture<ListCisScanResultsAggregatedByChecksResponse> listCisScanResultsAggregatedByChecks(ListCisScanResultsAggregatedByChecksRequest listCisScanResultsAggregatedByChecksRequest)

      Lists scan results aggregated by checks.

      Parameters:
      listCisScanResultsAggregatedByChecksRequest -
      Returns:
      A Java Future containing the result of the ListCisScanResultsAggregatedByChecks 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScanResultsAggregatedByChecks

      default CompletableFuture<ListCisScanResultsAggregatedByChecksResponse> listCisScanResultsAggregatedByChecks(Consumer<ListCisScanResultsAggregatedByChecksRequest.Builder> listCisScanResultsAggregatedByChecksRequest)

      Lists scan results aggregated by checks.


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

      Parameters:
      listCisScanResultsAggregatedByChecksRequest - A Consumer that will call methods on ListCisScanResultsAggregatedByChecksRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListCisScanResultsAggregatedByChecks 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScanResultsAggregatedByChecksPaginator

      default ListCisScanResultsAggregatedByChecksPublisher listCisScanResultsAggregatedByChecksPaginator(ListCisScanResultsAggregatedByChecksRequest listCisScanResultsAggregatedByChecksRequest)

      This is a variant of listCisScanResultsAggregatedByChecks(software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByChecksRequest) 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.inspector2.paginators.ListCisScanResultsAggregatedByChecksPublisher publisher = client.listCisScanResultsAggregatedByChecksPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListCisScanResultsAggregatedByChecksPublisher publisher = client.listCisScanResultsAggregatedByChecksPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByChecksResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByChecksResponse 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 listCisScanResultsAggregatedByChecks(software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByChecksRequest) operation.

      Parameters:
      listCisScanResultsAggregatedByChecksRequest -
      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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScanResultsAggregatedByChecksPaginator

      default ListCisScanResultsAggregatedByChecksPublisher listCisScanResultsAggregatedByChecksPaginator(Consumer<ListCisScanResultsAggregatedByChecksRequest.Builder> listCisScanResultsAggregatedByChecksRequest)

      This is a variant of listCisScanResultsAggregatedByChecks(software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByChecksRequest) 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.inspector2.paginators.ListCisScanResultsAggregatedByChecksPublisher publisher = client.listCisScanResultsAggregatedByChecksPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListCisScanResultsAggregatedByChecksPublisher publisher = client.listCisScanResultsAggregatedByChecksPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByChecksResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByChecksResponse 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 listCisScanResultsAggregatedByChecks(software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByChecksRequest) operation.


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

      Parameters:
      listCisScanResultsAggregatedByChecksRequest - A Consumer that will call methods on ListCisScanResultsAggregatedByChecksRequest.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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScanResultsAggregatedByTargetResource

      default CompletableFuture<ListCisScanResultsAggregatedByTargetResourceResponse> listCisScanResultsAggregatedByTargetResource(ListCisScanResultsAggregatedByTargetResourceRequest listCisScanResultsAggregatedByTargetResourceRequest)

      Lists scan results aggregated by a target resource.

      Parameters:
      listCisScanResultsAggregatedByTargetResourceRequest -
      Returns:
      A Java Future containing the result of the ListCisScanResultsAggregatedByTargetResource 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScanResultsAggregatedByTargetResource

      default CompletableFuture<ListCisScanResultsAggregatedByTargetResourceResponse> listCisScanResultsAggregatedByTargetResource(Consumer<ListCisScanResultsAggregatedByTargetResourceRequest.Builder> listCisScanResultsAggregatedByTargetResourceRequest)

      Lists scan results aggregated by a target resource.


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

      Parameters:
      listCisScanResultsAggregatedByTargetResourceRequest - A Consumer that will call methods on ListCisScanResultsAggregatedByTargetResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListCisScanResultsAggregatedByTargetResource 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScanResultsAggregatedByTargetResourcePaginator

      default ListCisScanResultsAggregatedByTargetResourcePublisher listCisScanResultsAggregatedByTargetResourcePaginator(ListCisScanResultsAggregatedByTargetResourceRequest listCisScanResultsAggregatedByTargetResourceRequest)

      This is a variant of listCisScanResultsAggregatedByTargetResource(software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByTargetResourceRequest) 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.inspector2.paginators.ListCisScanResultsAggregatedByTargetResourcePublisher publisher = client.listCisScanResultsAggregatedByTargetResourcePaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListCisScanResultsAggregatedByTargetResourcePublisher publisher = client.listCisScanResultsAggregatedByTargetResourcePaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByTargetResourceResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByTargetResourceResponse 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 listCisScanResultsAggregatedByTargetResource(software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByTargetResourceRequest) operation.

      Parameters:
      listCisScanResultsAggregatedByTargetResourceRequest -
      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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScanResultsAggregatedByTargetResourcePaginator

      default ListCisScanResultsAggregatedByTargetResourcePublisher listCisScanResultsAggregatedByTargetResourcePaginator(Consumer<ListCisScanResultsAggregatedByTargetResourceRequest.Builder> listCisScanResultsAggregatedByTargetResourceRequest)

      This is a variant of listCisScanResultsAggregatedByTargetResource(software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByTargetResourceRequest) 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.inspector2.paginators.ListCisScanResultsAggregatedByTargetResourcePublisher publisher = client.listCisScanResultsAggregatedByTargetResourcePaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListCisScanResultsAggregatedByTargetResourcePublisher publisher = client.listCisScanResultsAggregatedByTargetResourcePaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByTargetResourceResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByTargetResourceResponse 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 listCisScanResultsAggregatedByTargetResource(software.amazon.awssdk.services.inspector2.model.ListCisScanResultsAggregatedByTargetResourceRequest) operation.


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

      Parameters:
      listCisScanResultsAggregatedByTargetResourceRequest - A Consumer that will call methods on ListCisScanResultsAggregatedByTargetResourceRequest.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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScans

      default CompletableFuture<ListCisScansResponse> listCisScans(ListCisScansRequest listCisScansRequest)

      Returns a CIS scan list.

      Parameters:
      listCisScansRequest -
      Returns:
      A Java Future containing the result of the ListCisScans 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScans

      default CompletableFuture<ListCisScansResponse> listCisScans(Consumer<ListCisScansRequest.Builder> listCisScansRequest)

      Returns a CIS scan list.


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

      Parameters:
      listCisScansRequest - A Consumer that will call methods on ListCisScansRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListCisScans 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScansPaginator

      default ListCisScansPublisher listCisScansPaginator(ListCisScansRequest listCisScansRequest)

      This is a variant of listCisScans(software.amazon.awssdk.services.inspector2.model.ListCisScansRequest) 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.inspector2.paginators.ListCisScansPublisher publisher = client.listCisScansPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListCisScansPublisher publisher = client.listCisScansPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListCisScansResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListCisScansResponse 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 listCisScans(software.amazon.awssdk.services.inspector2.model.ListCisScansRequest) operation.

      Parameters:
      listCisScansRequest -
      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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCisScansPaginator

      default ListCisScansPublisher listCisScansPaginator(Consumer<ListCisScansRequest.Builder> listCisScansRequest)

      This is a variant of listCisScans(software.amazon.awssdk.services.inspector2.model.ListCisScansRequest) 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.inspector2.paginators.ListCisScansPublisher publisher = client.listCisScansPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListCisScansPublisher publisher = client.listCisScansPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListCisScansResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListCisScansResponse 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 listCisScans(software.amazon.awssdk.services.inspector2.model.ListCisScansRequest) operation.


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

      Parameters:
      listCisScansRequest - A Consumer that will call methods on ListCisScansRequest.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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCoverage

      default CompletableFuture<ListCoverageResponse> listCoverage(ListCoverageRequest listCoverageRequest)

      Lists coverage details for you environment.

      Parameters:
      listCoverageRequest -
      Returns:
      A Java Future containing the result of the ListCoverage 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCoverage

      default CompletableFuture<ListCoverageResponse> listCoverage(Consumer<ListCoverageRequest.Builder> listCoverageRequest)

      Lists coverage details for you environment.


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

      Parameters:
      listCoverageRequest - A Consumer that will call methods on ListCoverageRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListCoverage 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCoveragePaginator

      default ListCoveragePublisher listCoveragePaginator(ListCoverageRequest listCoverageRequest)

      This is a variant of listCoverage(software.amazon.awssdk.services.inspector2.model.ListCoverageRequest) 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.inspector2.paginators.ListCoveragePublisher publisher = client.listCoveragePaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListCoveragePublisher publisher = client.listCoveragePaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListCoverageResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListCoverageResponse 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 listCoverage(software.amazon.awssdk.services.inspector2.model.ListCoverageRequest) operation.

      Parameters:
      listCoverageRequest -
      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCoveragePaginator

      default ListCoveragePublisher listCoveragePaginator(Consumer<ListCoverageRequest.Builder> listCoverageRequest)

      This is a variant of listCoverage(software.amazon.awssdk.services.inspector2.model.ListCoverageRequest) 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.inspector2.paginators.ListCoveragePublisher publisher = client.listCoveragePaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListCoveragePublisher publisher = client.listCoveragePaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListCoverageResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListCoverageResponse 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 listCoverage(software.amazon.awssdk.services.inspector2.model.ListCoverageRequest) operation.


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

      Parameters:
      listCoverageRequest - A Consumer that will call methods on ListCoverageRequest.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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCoverageStatistics

      default CompletableFuture<ListCoverageStatisticsResponse> listCoverageStatistics(ListCoverageStatisticsRequest listCoverageStatisticsRequest)

      Lists Amazon Inspector coverage statistics for your environment.

      Parameters:
      listCoverageStatisticsRequest -
      Returns:
      A Java Future containing the result of the ListCoverageStatistics 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCoverageStatistics

      default CompletableFuture<ListCoverageStatisticsResponse> listCoverageStatistics(Consumer<ListCoverageStatisticsRequest.Builder> listCoverageStatisticsRequest)

      Lists Amazon Inspector coverage statistics for your environment.


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

      Parameters:
      listCoverageStatisticsRequest - A Consumer that will call methods on ListCoverageStatisticsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListCoverageStatistics 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCoverageStatisticsPaginator

      default ListCoverageStatisticsPublisher listCoverageStatisticsPaginator(ListCoverageStatisticsRequest listCoverageStatisticsRequest)

      This is a variant of listCoverageStatistics(software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsRequest) 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.inspector2.paginators.ListCoverageStatisticsPublisher publisher = client.listCoverageStatisticsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListCoverageStatisticsPublisher publisher = client.listCoverageStatisticsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsResponse 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 null 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 listCoverageStatistics(software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsRequest) operation.

      Parameters:
      listCoverageStatisticsRequest -
      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCoverageStatisticsPaginator

      default ListCoverageStatisticsPublisher listCoverageStatisticsPaginator(Consumer<ListCoverageStatisticsRequest.Builder> listCoverageStatisticsRequest)

      This is a variant of listCoverageStatistics(software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsRequest) 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.inspector2.paginators.ListCoverageStatisticsPublisher publisher = client.listCoverageStatisticsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListCoverageStatisticsPublisher publisher = client.listCoverageStatisticsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsResponse 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 null 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 listCoverageStatistics(software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsRequest) operation.


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

      Parameters:
      listCoverageStatisticsRequest - A Consumer that will call methods on ListCoverageStatisticsRequest.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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDelegatedAdminAccounts

      default CompletableFuture<ListDelegatedAdminAccountsResponse> listDelegatedAdminAccounts(ListDelegatedAdminAccountsRequest listDelegatedAdminAccountsRequest)

      Lists information about the Amazon Inspector delegated administrator of your organization.

      Parameters:
      listDelegatedAdminAccountsRequest -
      Returns:
      A Java Future containing the result of the ListDelegatedAdminAccounts 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDelegatedAdminAccounts

      default CompletableFuture<ListDelegatedAdminAccountsResponse> listDelegatedAdminAccounts(Consumer<ListDelegatedAdminAccountsRequest.Builder> listDelegatedAdminAccountsRequest)

      Lists information about the Amazon Inspector delegated administrator of your organization.


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

      Parameters:
      listDelegatedAdminAccountsRequest - A Consumer that will call methods on ListDelegatedAdminAccountsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListDelegatedAdminAccounts 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDelegatedAdminAccountsPaginator

      default ListDelegatedAdminAccountsPublisher listDelegatedAdminAccountsPaginator(ListDelegatedAdminAccountsRequest listDelegatedAdminAccountsRequest)

      This is a variant of listDelegatedAdminAccounts(software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsRequest) 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.inspector2.paginators.ListDelegatedAdminAccountsPublisher publisher = client.listDelegatedAdminAccountsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListDelegatedAdminAccountsPublisher publisher = client.listDelegatedAdminAccountsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsResponse 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 listDelegatedAdminAccounts(software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsRequest) operation.

      Parameters:
      listDelegatedAdminAccountsRequest -
      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDelegatedAdminAccountsPaginator

      default ListDelegatedAdminAccountsPublisher listDelegatedAdminAccountsPaginator(Consumer<ListDelegatedAdminAccountsRequest.Builder> listDelegatedAdminAccountsRequest)

      This is a variant of listDelegatedAdminAccounts(software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsRequest) 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.inspector2.paginators.ListDelegatedAdminAccountsPublisher publisher = client.listDelegatedAdminAccountsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListDelegatedAdminAccountsPublisher publisher = client.listDelegatedAdminAccountsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsResponse 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 listDelegatedAdminAccounts(software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsRequest) operation.


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

      Parameters:
      listDelegatedAdminAccountsRequest - A Consumer that will call methods on ListDelegatedAdminAccountsRequest.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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFilters

      default CompletableFuture<ListFiltersResponse> listFilters(ListFiltersRequest listFiltersRequest)

      Lists the filters associated with your account.

      Parameters:
      listFiltersRequest -
      Returns:
      A Java Future containing the result of the ListFilters 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFilters

      default CompletableFuture<ListFiltersResponse> listFilters(Consumer<ListFiltersRequest.Builder> listFiltersRequest)

      Lists the filters associated with your account.


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

      Parameters:
      listFiltersRequest - A Consumer that will call methods on ListFiltersRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListFilters 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFiltersPaginator

      default ListFiltersPublisher listFiltersPaginator(ListFiltersRequest listFiltersRequest)

      This is a variant of listFilters(software.amazon.awssdk.services.inspector2.model.ListFiltersRequest) 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.inspector2.paginators.ListFiltersPublisher publisher = client.listFiltersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListFiltersPublisher publisher = client.listFiltersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListFiltersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListFiltersResponse 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 listFilters(software.amazon.awssdk.services.inspector2.model.ListFiltersRequest) operation.

      Parameters:
      listFiltersRequest -
      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFiltersPaginator

      default ListFiltersPublisher listFiltersPaginator(Consumer<ListFiltersRequest.Builder> listFiltersRequest)

      This is a variant of listFilters(software.amazon.awssdk.services.inspector2.model.ListFiltersRequest) 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.inspector2.paginators.ListFiltersPublisher publisher = client.listFiltersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListFiltersPublisher publisher = client.listFiltersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListFiltersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListFiltersResponse 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 listFilters(software.amazon.awssdk.services.inspector2.model.ListFiltersRequest) operation.


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

      Parameters:
      listFiltersRequest - A Consumer that will call methods on ListFiltersRequest.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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindingAggregations

      default CompletableFuture<ListFindingAggregationsResponse> listFindingAggregations(ListFindingAggregationsRequest listFindingAggregationsRequest)

      Lists aggregated finding data for your environment based on specific criteria.

      Parameters:
      listFindingAggregationsRequest -
      Returns:
      A Java Future containing the result of the ListFindingAggregations 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindingAggregations

      default CompletableFuture<ListFindingAggregationsResponse> listFindingAggregations(Consumer<ListFindingAggregationsRequest.Builder> listFindingAggregationsRequest)

      Lists aggregated finding data for your environment based on specific criteria.


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

      Parameters:
      listFindingAggregationsRequest - A Consumer that will call methods on ListFindingAggregationsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListFindingAggregations 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindingAggregationsPaginator

      default ListFindingAggregationsPublisher listFindingAggregationsPaginator(ListFindingAggregationsRequest listFindingAggregationsRequest)

      This is a variant of listFindingAggregations(software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsRequest) 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.inspector2.paginators.ListFindingAggregationsPublisher publisher = client.listFindingAggregationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListFindingAggregationsPublisher publisher = client.listFindingAggregationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsResponse 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 listFindingAggregations(software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsRequest) operation.

      Parameters:
      listFindingAggregationsRequest -
      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindingAggregationsPaginator

      default ListFindingAggregationsPublisher listFindingAggregationsPaginator(Consumer<ListFindingAggregationsRequest.Builder> listFindingAggregationsRequest)

      This is a variant of listFindingAggregations(software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsRequest) 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.inspector2.paginators.ListFindingAggregationsPublisher publisher = client.listFindingAggregationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListFindingAggregationsPublisher publisher = client.listFindingAggregationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsResponse 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 listFindingAggregations(software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsRequest) operation.


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

      Parameters:
      listFindingAggregationsRequest - A Consumer that will call methods on ListFindingAggregationsRequest.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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindings

      default CompletableFuture<ListFindingsResponse> listFindings(ListFindingsRequest listFindingsRequest)

      Lists findings for your environment.

      Parameters:
      listFindingsRequest -
      Returns:
      A Java Future containing the result of the ListFindings 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindings

      default CompletableFuture<ListFindingsResponse> listFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest)

      Lists findings for your environment.


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

      Parameters:
      listFindingsRequest - A Consumer that will call methods on ListFindingsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListFindings 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindingsPaginator

      default ListFindingsPublisher listFindingsPaginator(ListFindingsRequest listFindingsRequest)

      This is a variant of listFindings(software.amazon.awssdk.services.inspector2.model.ListFindingsRequest) 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.inspector2.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListFindingsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListFindingsResponse 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 listFindings(software.amazon.awssdk.services.inspector2.model.ListFindingsRequest) operation.

      Parameters:
      listFindingsRequest -
      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindingsPaginator

      default ListFindingsPublisher listFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest)

      This is a variant of listFindings(software.amazon.awssdk.services.inspector2.model.ListFindingsRequest) 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.inspector2.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListFindingsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListFindingsResponse 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 listFindings(software.amazon.awssdk.services.inspector2.model.ListFindingsRequest) operation.


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

      Parameters:
      listFindingsRequest - A Consumer that will call methods on ListFindingsRequest.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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listMembers

      default CompletableFuture<ListMembersResponse> listMembers(ListMembersRequest listMembersRequest)

      List members associated with the Amazon Inspector delegated administrator for your organization.

      Parameters:
      listMembersRequest -
      Returns:
      A Java Future containing the result of the ListMembers 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listMembers

      default CompletableFuture<ListMembersResponse> listMembers(Consumer<ListMembersRequest.Builder> listMembersRequest)

      List members associated with the Amazon Inspector delegated administrator for your organization.


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

      Parameters:
      listMembersRequest - A Consumer that will call methods on ListMembersRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListMembers 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listMembersPaginator

      default ListMembersPublisher listMembersPaginator(ListMembersRequest listMembersRequest)

      This is a variant of listMembers(software.amazon.awssdk.services.inspector2.model.ListMembersRequest) 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.inspector2.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListMembersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListMembersResponse 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 listMembers(software.amazon.awssdk.services.inspector2.model.ListMembersRequest) operation.

      Parameters:
      listMembersRequest -
      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listMembersPaginator

      default ListMembersPublisher listMembersPaginator(Consumer<ListMembersRequest.Builder> listMembersRequest)

      This is a variant of listMembers(software.amazon.awssdk.services.inspector2.model.ListMembersRequest) 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.inspector2.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListMembersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListMembersResponse 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 listMembers(software.amazon.awssdk.services.inspector2.model.ListMembersRequest) operation.


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

      Parameters:
      listMembersRequest - A Consumer that will call methods on ListMembersRequest.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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)

      Lists all tags attached to a given resource.

      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

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

      Lists all tags attached to a given resource.


      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listUsageTotals

      default CompletableFuture<ListUsageTotalsResponse> listUsageTotals(ListUsageTotalsRequest listUsageTotalsRequest)

      Lists the Amazon Inspector usage totals over the last 30 days.

      Parameters:
      listUsageTotalsRequest -
      Returns:
      A Java Future containing the result of the ListUsageTotals 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listUsageTotals

      default CompletableFuture<ListUsageTotalsResponse> listUsageTotals(Consumer<ListUsageTotalsRequest.Builder> listUsageTotalsRequest)

      Lists the Amazon Inspector usage totals over the last 30 days.


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

      Parameters:
      listUsageTotalsRequest - A Consumer that will call methods on ListUsageTotalsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListUsageTotals 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listUsageTotalsPaginator

      default ListUsageTotalsPublisher listUsageTotalsPaginator(ListUsageTotalsRequest listUsageTotalsRequest)

      This is a variant of listUsageTotals(software.amazon.awssdk.services.inspector2.model.ListUsageTotalsRequest) 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.inspector2.paginators.ListUsageTotalsPublisher publisher = client.listUsageTotalsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListUsageTotalsPublisher publisher = client.listUsageTotalsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListUsageTotalsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListUsageTotalsResponse 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 listUsageTotals(software.amazon.awssdk.services.inspector2.model.ListUsageTotalsRequest) operation.

      Parameters:
      listUsageTotalsRequest -
      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listUsageTotalsPaginator

      default ListUsageTotalsPublisher listUsageTotalsPaginator(Consumer<ListUsageTotalsRequest.Builder> listUsageTotalsRequest)

      This is a variant of listUsageTotals(software.amazon.awssdk.services.inspector2.model.ListUsageTotalsRequest) 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.inspector2.paginators.ListUsageTotalsPublisher publisher = client.listUsageTotalsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.ListUsageTotalsPublisher publisher = client.listUsageTotalsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.ListUsageTotalsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.ListUsageTotalsResponse 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 listUsageTotals(software.amazon.awssdk.services.inspector2.model.ListUsageTotalsRequest) operation.


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

      Parameters:
      listUsageTotalsRequest - A Consumer that will call methods on ListUsageTotalsRequest.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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • resetEncryptionKey

      default CompletableFuture<ResetEncryptionKeyResponse> resetEncryptionKey(ResetEncryptionKeyRequest resetEncryptionKeyRequest)

      Resets an encryption key. After the key is reset your resources will be encrypted by an Amazon Web Services owned key.

      Parameters:
      resetEncryptionKeyRequest -
      Returns:
      A Java Future containing the result of the ResetEncryptionKey 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • resetEncryptionKey

      default CompletableFuture<ResetEncryptionKeyResponse> resetEncryptionKey(Consumer<ResetEncryptionKeyRequest.Builder> resetEncryptionKeyRequest)

      Resets an encryption key. After the key is reset your resources will be encrypted by an Amazon Web Services owned key.


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

      Parameters:
      resetEncryptionKeyRequest - A Consumer that will call methods on ResetEncryptionKeyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ResetEncryptionKey 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • searchVulnerabilities

      default CompletableFuture<SearchVulnerabilitiesResponse> searchVulnerabilities(SearchVulnerabilitiesRequest searchVulnerabilitiesRequest)

      Lists Amazon Inspector coverage details for a specific vulnerability.

      Parameters:
      searchVulnerabilitiesRequest -
      Returns:
      A Java Future containing the result of the SearchVulnerabilities 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • searchVulnerabilities

      default CompletableFuture<SearchVulnerabilitiesResponse> searchVulnerabilities(Consumer<SearchVulnerabilitiesRequest.Builder> searchVulnerabilitiesRequest)

      Lists Amazon Inspector coverage details for a specific vulnerability.


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

      Parameters:
      searchVulnerabilitiesRequest - A Consumer that will call methods on SearchVulnerabilitiesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the SearchVulnerabilities 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • searchVulnerabilitiesPaginator

      default SearchVulnerabilitiesPublisher searchVulnerabilitiesPaginator(SearchVulnerabilitiesRequest searchVulnerabilitiesRequest)

      This is a variant of searchVulnerabilities(software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesRequest) 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.inspector2.paginators.SearchVulnerabilitiesPublisher publisher = client.searchVulnerabilitiesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.SearchVulnerabilitiesPublisher publisher = client.searchVulnerabilitiesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesResponse 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 null 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 searchVulnerabilities(software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesRequest) operation.

      Parameters:
      searchVulnerabilitiesRequest -
      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • searchVulnerabilitiesPaginator

      default SearchVulnerabilitiesPublisher searchVulnerabilitiesPaginator(Consumer<SearchVulnerabilitiesRequest.Builder> searchVulnerabilitiesRequest)

      This is a variant of searchVulnerabilities(software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesRequest) 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.inspector2.paginators.SearchVulnerabilitiesPublisher publisher = client.searchVulnerabilitiesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.inspector2.paginators.SearchVulnerabilitiesPublisher publisher = client.searchVulnerabilitiesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesResponse 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 null 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 searchVulnerabilities(software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesRequest) operation.


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

      Parameters:
      searchVulnerabilitiesRequest - A Consumer that will call methods on SearchVulnerabilitiesRequest.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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • sendCisSessionHealth

      default CompletableFuture<SendCisSessionHealthResponse> sendCisSessionHealth(SendCisSessionHealthRequest sendCisSessionHealthRequest)

      Sends a CIS session health. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.

      Parameters:
      sendCisSessionHealthRequest -
      Returns:
      A Java Future containing the result of the SendCisSessionHealth 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.
      • ConflictException A conflict occurred.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • sendCisSessionHealth

      default CompletableFuture<SendCisSessionHealthResponse> sendCisSessionHealth(Consumer<SendCisSessionHealthRequest.Builder> sendCisSessionHealthRequest)

      Sends a CIS session health. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.


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

      Parameters:
      sendCisSessionHealthRequest - A Consumer that will call methods on SendCisSessionHealthRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the SendCisSessionHealth 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.
      • ConflictException A conflict occurred.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • sendCisSessionTelemetry

      default CompletableFuture<SendCisSessionTelemetryResponse> sendCisSessionTelemetry(SendCisSessionTelemetryRequest sendCisSessionTelemetryRequest)

      Sends a CIS session telemetry. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.

      Parameters:
      sendCisSessionTelemetryRequest -
      Returns:
      A Java Future containing the result of the SendCisSessionTelemetry 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.
      • ConflictException A conflict occurred.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • sendCisSessionTelemetry

      default CompletableFuture<SendCisSessionTelemetryResponse> sendCisSessionTelemetry(Consumer<SendCisSessionTelemetryRequest.Builder> sendCisSessionTelemetryRequest)

      Sends a CIS session telemetry. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.


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

      Parameters:
      sendCisSessionTelemetryRequest - A Consumer that will call methods on SendCisSessionTelemetryRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the SendCisSessionTelemetry 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.
      • ConflictException A conflict occurred.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startCisSession

      default CompletableFuture<StartCisSessionResponse> startCisSession(StartCisSessionRequest startCisSessionRequest)

      Starts a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.

      Parameters:
      startCisSessionRequest -
      Returns:
      A Java Future containing the result of the StartCisSession 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.
      • ConflictException A conflict occurred.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startCisSession

      default CompletableFuture<StartCisSessionResponse> startCisSession(Consumer<StartCisSessionRequest.Builder> startCisSessionRequest)

      Starts a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.


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

      Parameters:
      startCisSessionRequest - A Consumer that will call methods on StartCisSessionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StartCisSession 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.
      • ConflictException A conflict occurred.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopCisSession

      default CompletableFuture<StopCisSessionResponse> stopCisSession(StopCisSessionRequest stopCisSessionRequest)

      Stops a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.

      Parameters:
      stopCisSessionRequest -
      Returns:
      A Java Future containing the result of the StopCisSession 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.
      • ConflictException A conflict occurred.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopCisSession

      default CompletableFuture<StopCisSessionResponse> stopCisSession(Consumer<StopCisSessionRequest.Builder> stopCisSessionRequest)

      Stops a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.


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

      Parameters:
      stopCisSessionRequest - A Consumer that will call methods on StopCisSessionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StopCisSession 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.
      • ConflictException A conflict occurred.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)

      Adds tags to a resource.

      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.
      • BadRequestException One or more tags submitted as part of the request is not valid.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

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

      Adds tags to a resource.


      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.
      • BadRequestException One or more tags submitted as part of the request is not valid.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)

      Removes tags from a resource.

      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

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

      Removes tags from a resource.


      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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateCisScanConfiguration

      default CompletableFuture<UpdateCisScanConfigurationResponse> updateCisScanConfiguration(UpdateCisScanConfigurationRequest updateCisScanConfigurationRequest)

      Updates a CIS scan configuration.

      Parameters:
      updateCisScanConfigurationRequest -
      Returns:
      A Java Future containing the result of the UpdateCisScanConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateCisScanConfiguration

      default CompletableFuture<UpdateCisScanConfigurationResponse> updateCisScanConfiguration(Consumer<UpdateCisScanConfigurationRequest.Builder> updateCisScanConfigurationRequest)

      Updates a CIS scan configuration.


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

      Parameters:
      updateCisScanConfigurationRequest - A Consumer that will call methods on UpdateCisScanConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateCisScanConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateConfiguration

      default CompletableFuture<UpdateConfigurationResponse> updateConfiguration(UpdateConfigurationRequest updateConfigurationRequest)

      Updates setting configurations for your Amazon Inspector account. When you use this API as an Amazon Inspector delegated administrator this updates the setting for all accounts you manage. Member accounts in an organization cannot update this setting.

      Parameters:
      updateConfigurationRequest -
      Returns:
      A Java Future containing the result of the UpdateConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateConfiguration

      default CompletableFuture<UpdateConfigurationResponse> updateConfiguration(Consumer<UpdateConfigurationRequest.Builder> updateConfigurationRequest)

      Updates setting configurations for your Amazon Inspector account. When you use this API as an Amazon Inspector delegated administrator this updates the setting for all accounts you manage. Member accounts in an organization cannot update this setting.


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

      Parameters:
      updateConfigurationRequest - A Consumer that will call methods on UpdateConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateEc2DeepInspectionConfiguration

      default CompletableFuture<UpdateEc2DeepInspectionConfigurationResponse> updateEc2DeepInspectionConfiguration(UpdateEc2DeepInspectionConfigurationRequest updateEc2DeepInspectionConfigurationRequest)

      Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.

      Parameters:
      updateEc2DeepInspectionConfigurationRequest -
      Returns:
      A Java Future containing the result of the UpdateEc2DeepInspectionConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateEc2DeepInspectionConfiguration

      default CompletableFuture<UpdateEc2DeepInspectionConfigurationResponse> updateEc2DeepInspectionConfiguration(Consumer<UpdateEc2DeepInspectionConfigurationRequest.Builder> updateEc2DeepInspectionConfigurationRequest)

      Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.


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

      Parameters:
      updateEc2DeepInspectionConfigurationRequest - A Consumer that will call methods on UpdateEc2DeepInspectionConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateEc2DeepInspectionConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateEncryptionKey

      default CompletableFuture<UpdateEncryptionKeyResponse> updateEncryptionKey(UpdateEncryptionKeyRequest updateEncryptionKeyRequest)

      Updates an encryption key. A ResourceNotFoundException means that an Amazon Web Services owned key is being used for encryption.

      Parameters:
      updateEncryptionKeyRequest -
      Returns:
      A Java Future containing the result of the UpdateEncryptionKey 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateEncryptionKey

      default CompletableFuture<UpdateEncryptionKeyResponse> updateEncryptionKey(Consumer<UpdateEncryptionKeyRequest.Builder> updateEncryptionKeyRequest)

      Updates an encryption key. A ResourceNotFoundException means that an Amazon Web Services owned key is being used for encryption.


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

      Parameters:
      updateEncryptionKeyRequest - A Consumer that will call methods on UpdateEncryptionKeyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateEncryptionKey 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateFilter

      default CompletableFuture<UpdateFilterResponse> updateFilter(UpdateFilterRequest updateFilterRequest)

      Specifies the action that is to be applied to the findings that match the filter.

      Parameters:
      updateFilterRequest -
      Returns:
      A Java Future containing the result of the UpdateFilter 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateFilter

      default CompletableFuture<UpdateFilterResponse> updateFilter(Consumer<UpdateFilterRequest.Builder> updateFilterRequest)

      Specifies the action that is to be applied to the findings that match the filter.


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

      Parameters:
      updateFilterRequest - A Consumer that will call methods on UpdateFilterRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateFilter 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The operation tried to access an invalid resource. Make sure the resource is specified correctly.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateOrgEc2DeepInspectionConfiguration

      default CompletableFuture<UpdateOrgEc2DeepInspectionConfigurationResponse> updateOrgEc2DeepInspectionConfiguration(UpdateOrgEc2DeepInspectionConfigurationRequest updateOrgEc2DeepInspectionConfigurationRequest)

      Updates the Amazon Inspector deep inspection custom paths for your organization. You must be an Amazon Inspector delegated administrator to use this API.

      Parameters:
      updateOrgEc2DeepInspectionConfigurationRequest -
      Returns:
      A Java Future containing the result of the UpdateOrgEc2DeepInspectionConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateOrgEc2DeepInspectionConfiguration

      default CompletableFuture<UpdateOrgEc2DeepInspectionConfigurationResponse> updateOrgEc2DeepInspectionConfiguration(Consumer<UpdateOrgEc2DeepInspectionConfigurationRequest.Builder> updateOrgEc2DeepInspectionConfigurationRequest)

      Updates the Amazon Inspector deep inspection custom paths for your organization. You must be an Amazon Inspector delegated administrator to use this API.


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

      Parameters:
      updateOrgEc2DeepInspectionConfigurationRequest - A Consumer that will call methods on UpdateOrgEc2DeepInspectionConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateOrgEc2DeepInspectionConfiguration 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.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateOrganizationConfiguration

      default CompletableFuture<UpdateOrganizationConfigurationResponse> updateOrganizationConfiguration(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest)

      Updates the configurations for your Amazon Inspector organization.

      Parameters:
      updateOrganizationConfigurationRequest -
      Returns:
      A Java Future containing the result of the UpdateOrganizationConfiguration 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateOrganizationConfiguration

      default CompletableFuture<UpdateOrganizationConfigurationResponse> updateOrganizationConfiguration(Consumer<UpdateOrganizationConfigurationRequest.Builder> updateOrganizationConfigurationRequest)

      Updates the configurations for your Amazon Inspector organization.


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

      Parameters:
      updateOrganizationConfigurationRequest - A Consumer that will call methods on UpdateOrganizationConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateOrganizationConfiguration 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.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The request has failed validation due to missing required fields or having invalid inputs.
      • ThrottlingException The limit on the number of requests per second was exceeded.
      • InternalServerException The request has failed due to an internal failure of the Amazon Inspector service.
      • 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.
      • Inspector2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • serviceClientConfiguration

      default Inspector2ServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      static Inspector2AsyncClient create()
      Create a Inspector2AsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      static Inspector2AsyncClientBuilder builder()
      Create a builder that can be used to configure and create a Inspector2AsyncClient.