Interface SecurityAgentAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface SecurityAgentAsyncClient extends AwsClient
Service client for accessing AWS Security Agent asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API call.

AWS Security Agent is a frontier agent that proactively secures your applications throughout the development lifecycle. It conducts automated security reviews tailored to your organizational requirements and delivers context-aware penetration testing on demand. By continuously validating security from design to deployment, AWS Security Agent helps prevent vulnerabilities early across all your environments. Key capabilities include design security review for architecture documents, code security review for pull requests in connected repositories, and on-demand penetration testing that discovers, validates, and remediates security vulnerabilities through tailored multi-step attack scenarios. For more information, see the AWS Security Agent User Guide.

  • Field Details

  • Method Details

    • addArtifact

      default CompletableFuture<AddArtifactResponse> addArtifact(AddArtifactRequest addArtifactRequest)

      Uploads an artifact to an agent space. Artifacts provide additional context for security testing, such as architecture diagrams, API specifications, or configuration files.

      Parameters:
      addArtifactRequest -
      Returns:
      A Java Future containing the result of the AddArtifact 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 input fails to satisfy the constraints specified by the service.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • addArtifact

      default CompletableFuture<AddArtifactResponse> addArtifact(Consumer<AddArtifactRequest.Builder> addArtifactRequest)

      Uploads an artifact to an agent space. Artifacts provide additional context for security testing, such as architecture diagrams, API specifications, or configuration files.


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

      Parameters:
      addArtifactRequest - A Consumer that will call methods on AddArtifactRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the AddArtifact 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 input fails to satisfy the constraints specified by the service.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchDeleteCodeReviews

      default CompletableFuture<BatchDeleteCodeReviewsResponse> batchDeleteCodeReviews(BatchDeleteCodeReviewsRequest batchDeleteCodeReviewsRequest)

      Deletes one or more code reviews from an agent space.

      Parameters:
      batchDeleteCodeReviewsRequest - Input for deleting multiple code reviews.
      Returns:
      A Java Future containing the result of the BatchDeleteCodeReviews 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchDeleteCodeReviews

      default CompletableFuture<BatchDeleteCodeReviewsResponse> batchDeleteCodeReviews(Consumer<BatchDeleteCodeReviewsRequest.Builder> batchDeleteCodeReviewsRequest)

      Deletes one or more code reviews from an agent space.


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

      Parameters:
      batchDeleteCodeReviewsRequest - A Consumer that will call methods on BatchDeleteCodeReviewsRequest.Builder to create a request. Input for deleting multiple code reviews.
      Returns:
      A Java Future containing the result of the BatchDeleteCodeReviews 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchDeletePentests

      default CompletableFuture<BatchDeletePentestsResponse> batchDeletePentests(BatchDeletePentestsRequest batchDeletePentestsRequest)

      Deletes one or more pentests from an agent space.

      Parameters:
      batchDeletePentestsRequest - Input for deleting multiple pentests.
      Returns:
      A Java Future containing the result of the BatchDeletePentests 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchDeletePentests

      default CompletableFuture<BatchDeletePentestsResponse> batchDeletePentests(Consumer<BatchDeletePentestsRequest.Builder> batchDeletePentestsRequest)

      Deletes one or more pentests from an agent space.


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

      Parameters:
      batchDeletePentestsRequest - A Consumer that will call methods on BatchDeletePentestsRequest.Builder to create a request. Input for deleting multiple pentests.
      Returns:
      A Java Future containing the result of the BatchDeletePentests 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetAgentSpaces

      default CompletableFuture<BatchGetAgentSpacesResponse> batchGetAgentSpaces(BatchGetAgentSpacesRequest batchGetAgentSpacesRequest)

      Retrieves information about one or more agent spaces.

      Parameters:
      batchGetAgentSpacesRequest - Input for batch retrieving agent spaces.
      Returns:
      A Java Future containing the result of the BatchGetAgentSpaces 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetAgentSpaces

      default CompletableFuture<BatchGetAgentSpacesResponse> batchGetAgentSpaces(Consumer<BatchGetAgentSpacesRequest.Builder> batchGetAgentSpacesRequest)

      Retrieves information about one or more agent spaces.


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

      Parameters:
      batchGetAgentSpacesRequest - A Consumer that will call methods on BatchGetAgentSpacesRequest.Builder to create a request. Input for batch retrieving agent spaces.
      Returns:
      A Java Future containing the result of the BatchGetAgentSpaces 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetArtifactMetadata

      default CompletableFuture<BatchGetArtifactMetadataResponse> batchGetArtifactMetadata(BatchGetArtifactMetadataRequest batchGetArtifactMetadataRequest)

      Retrieves metadata for one or more artifacts in an agent space.

      Parameters:
      batchGetArtifactMetadataRequest -
      Returns:
      A Java Future containing the result of the BatchGetArtifactMetadata 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 input fails to satisfy the constraints specified by the service.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetArtifactMetadata

      default CompletableFuture<BatchGetArtifactMetadataResponse> batchGetArtifactMetadata(Consumer<BatchGetArtifactMetadataRequest.Builder> batchGetArtifactMetadataRequest)

      Retrieves metadata for one or more artifacts in an agent space.


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

      Parameters:
      batchGetArtifactMetadataRequest - A Consumer that will call methods on BatchGetArtifactMetadataRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchGetArtifactMetadata 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 input fails to satisfy the constraints specified by the service.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetCodeReviewJobTasks

      default CompletableFuture<BatchGetCodeReviewJobTasksResponse> batchGetCodeReviewJobTasks(BatchGetCodeReviewJobTasksRequest batchGetCodeReviewJobTasksRequest)

      Retrieves information about one or more tasks within a code review job.

      Parameters:
      batchGetCodeReviewJobTasksRequest - Input for retrieving multiple tasks associated with a code review job.
      Returns:
      A Java Future containing the result of the BatchGetCodeReviewJobTasks 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetCodeReviewJobTasks

      default CompletableFuture<BatchGetCodeReviewJobTasksResponse> batchGetCodeReviewJobTasks(Consumer<BatchGetCodeReviewJobTasksRequest.Builder> batchGetCodeReviewJobTasksRequest)

      Retrieves information about one or more tasks within a code review job.


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

      Parameters:
      batchGetCodeReviewJobTasksRequest - A Consumer that will call methods on BatchGetCodeReviewJobTasksRequest.Builder to create a request. Input for retrieving multiple tasks associated with a code review job.
      Returns:
      A Java Future containing the result of the BatchGetCodeReviewJobTasks 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetCodeReviewJobs

      default CompletableFuture<BatchGetCodeReviewJobsResponse> batchGetCodeReviewJobs(BatchGetCodeReviewJobsRequest batchGetCodeReviewJobsRequest)

      Retrieves information about one or more code review jobs in an agent space.

      Parameters:
      batchGetCodeReviewJobsRequest - Input for BatchGetCodeReviewJobs operation.
      Returns:
      A Java Future containing the result of the BatchGetCodeReviewJobs 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetCodeReviewJobs

      default CompletableFuture<BatchGetCodeReviewJobsResponse> batchGetCodeReviewJobs(Consumer<BatchGetCodeReviewJobsRequest.Builder> batchGetCodeReviewJobsRequest)

      Retrieves information about one or more code review jobs in an agent space.


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

      Parameters:
      batchGetCodeReviewJobsRequest - A Consumer that will call methods on BatchGetCodeReviewJobsRequest.Builder to create a request. Input for BatchGetCodeReviewJobs operation.
      Returns:
      A Java Future containing the result of the BatchGetCodeReviewJobs 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetCodeReviews

      default CompletableFuture<BatchGetCodeReviewsResponse> batchGetCodeReviews(BatchGetCodeReviewsRequest batchGetCodeReviewsRequest)

      Retrieves information about one or more code reviews in an agent space.

      Parameters:
      batchGetCodeReviewsRequest - Input for retrieving multiple code reviews by their IDs.
      Returns:
      A Java Future containing the result of the BatchGetCodeReviews 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetCodeReviews

      default CompletableFuture<BatchGetCodeReviewsResponse> batchGetCodeReviews(Consumer<BatchGetCodeReviewsRequest.Builder> batchGetCodeReviewsRequest)

      Retrieves information about one or more code reviews in an agent space.


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

      Parameters:
      batchGetCodeReviewsRequest - A Consumer that will call methods on BatchGetCodeReviewsRequest.Builder to create a request. Input for retrieving multiple code reviews by their IDs.
      Returns:
      A Java Future containing the result of the BatchGetCodeReviews 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetFindings

      default CompletableFuture<BatchGetFindingsResponse> batchGetFindings(BatchGetFindingsRequest batchGetFindingsRequest)

      Retrieves information about one or more security findings in an agent space.

      Parameters:
      batchGetFindingsRequest - Input for BatchGetFindings operation.
      Returns:
      A Java Future containing the result of the BatchGetFindings operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetFindings

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

      Retrieves information about one or more security findings in an agent space.


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

      Parameters:
      batchGetFindingsRequest - A Consumer that will call methods on BatchGetFindingsRequest.Builder to create a request. Input for BatchGetFindings operation.
      Returns:
      A Java Future containing the result of the BatchGetFindings operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetPentestJobTasks

      default CompletableFuture<BatchGetPentestJobTasksResponse> batchGetPentestJobTasks(BatchGetPentestJobTasksRequest batchGetPentestJobTasksRequest)

      Retrieves information about one or more tasks within a pentest job.

      Parameters:
      batchGetPentestJobTasksRequest - Input for retrieving multiple tasks associated with a pentest job.
      Returns:
      A Java Future containing the result of the BatchGetPentestJobTasks 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetPentestJobTasks

      default CompletableFuture<BatchGetPentestJobTasksResponse> batchGetPentestJobTasks(Consumer<BatchGetPentestJobTasksRequest.Builder> batchGetPentestJobTasksRequest)

      Retrieves information about one or more tasks within a pentest job.


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

      Parameters:
      batchGetPentestJobTasksRequest - A Consumer that will call methods on BatchGetPentestJobTasksRequest.Builder to create a request. Input for retrieving multiple tasks associated with a pentest job.
      Returns:
      A Java Future containing the result of the BatchGetPentestJobTasks 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetPentestJobs

      default CompletableFuture<BatchGetPentestJobsResponse> batchGetPentestJobs(BatchGetPentestJobsRequest batchGetPentestJobsRequest)

      Retrieves information about one or more pentest jobs in an agent space.

      Parameters:
      batchGetPentestJobsRequest - Input for BatchGetPentestJobs operation.
      Returns:
      A Java Future containing the result of the BatchGetPentestJobs 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetPentestJobs

      default CompletableFuture<BatchGetPentestJobsResponse> batchGetPentestJobs(Consumer<BatchGetPentestJobsRequest.Builder> batchGetPentestJobsRequest)

      Retrieves information about one or more pentest jobs in an agent space.


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

      Parameters:
      batchGetPentestJobsRequest - A Consumer that will call methods on BatchGetPentestJobsRequest.Builder to create a request. Input for BatchGetPentestJobs operation.
      Returns:
      A Java Future containing the result of the BatchGetPentestJobs 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetPentests

      default CompletableFuture<BatchGetPentestsResponse> batchGetPentests(BatchGetPentestsRequest batchGetPentestsRequest)

      Retrieves information about one or more pentests in an agent space.

      Parameters:
      batchGetPentestsRequest - Input for retrieving multiple pentests by their IDs.
      Returns:
      A Java Future containing the result of the BatchGetPentests 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetPentests

      default CompletableFuture<BatchGetPentestsResponse> batchGetPentests(Consumer<BatchGetPentestsRequest.Builder> batchGetPentestsRequest)

      Retrieves information about one or more pentests in an agent space.


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

      Parameters:
      batchGetPentestsRequest - A Consumer that will call methods on BatchGetPentestsRequest.Builder to create a request. Input for retrieving multiple pentests by their IDs.
      Returns:
      A Java Future containing the result of the BatchGetPentests 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetTargetDomains

      default CompletableFuture<BatchGetTargetDomainsResponse> batchGetTargetDomains(BatchGetTargetDomainsRequest batchGetTargetDomainsRequest)

      Retrieves information about one or more target domains.

      Parameters:
      batchGetTargetDomainsRequest - Input for batch retrieving target domains.
      Returns:
      A Java Future containing the result of the BatchGetTargetDomains 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetTargetDomains

      default CompletableFuture<BatchGetTargetDomainsResponse> batchGetTargetDomains(Consumer<BatchGetTargetDomainsRequest.Builder> batchGetTargetDomainsRequest)

      Retrieves information about one or more target domains.


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

      Parameters:
      batchGetTargetDomainsRequest - A Consumer that will call methods on BatchGetTargetDomainsRequest.Builder to create a request. Input for batch retrieving target domains.
      Returns:
      A Java Future containing the result of the BatchGetTargetDomains 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createAgentSpace

      default CompletableFuture<CreateAgentSpaceResponse> createAgentSpace(CreateAgentSpaceRequest createAgentSpaceRequest)

      Creates a new agent space. An agent space is a dedicated workspace for securing a specific application.

      Parameters:
      createAgentSpaceRequest - Input for creating a new agent space.
      Returns:
      A Java Future containing the result of the CreateAgentSpace 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createAgentSpace

      default CompletableFuture<CreateAgentSpaceResponse> createAgentSpace(Consumer<CreateAgentSpaceRequest.Builder> createAgentSpaceRequest)

      Creates a new agent space. An agent space is a dedicated workspace for securing a specific application.


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

      Parameters:
      createAgentSpaceRequest - A Consumer that will call methods on CreateAgentSpaceRequest.Builder to create a request. Input for creating a new agent space.
      Returns:
      A Java Future containing the result of the CreateAgentSpace 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createApplication

      default CompletableFuture<CreateApplicationResponse> createApplication(CreateApplicationRequest createApplicationRequest)

      Creates a new application. An application is the top-level organizational unit that supports IAM Identity Center integration.

      Parameters:
      createApplicationRequest -
      Returns:
      A Java Future containing the result of the CreateApplication 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createApplication

      default CompletableFuture<CreateApplicationResponse> createApplication(Consumer<CreateApplicationRequest.Builder> createApplicationRequest)

      Creates a new application. An application is the top-level organizational unit that supports IAM Identity Center integration.


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

      Parameters:
      createApplicationRequest - A Consumer that will call methods on CreateApplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateApplication 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCodeReview

      default CompletableFuture<CreateCodeReviewResponse> createCodeReview(CreateCodeReviewRequest createCodeReviewRequest)

      Creates a new code review configuration in an agent space. A code review defines the parameters for automated security-focused code analysis.

      Parameters:
      createCodeReviewRequest - Input for creating a new code review.
      Returns:
      A Java Future containing the result of the CreateCodeReview 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCodeReview

      default CompletableFuture<CreateCodeReviewResponse> createCodeReview(Consumer<CreateCodeReviewRequest.Builder> createCodeReviewRequest)

      Creates a new code review configuration in an agent space. A code review defines the parameters for automated security-focused code analysis.


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

      Parameters:
      createCodeReviewRequest - A Consumer that will call methods on CreateCodeReviewRequest.Builder to create a request. Input for creating a new code review.
      Returns:
      A Java Future containing the result of the CreateCodeReview 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createIntegration

      default CompletableFuture<CreateIntegrationResponse> createIntegration(CreateIntegrationRequest createIntegrationRequest)

      Creates a new integration with a third-party provider, such as GitHub, for code review and remediation.

      Parameters:
      createIntegrationRequest -
      Returns:
      A Java Future containing the result of the CreateIntegration 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ConflictException The request could not be completed due to a conflict with the current state of the resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createIntegration

      default CompletableFuture<CreateIntegrationResponse> createIntegration(Consumer<CreateIntegrationRequest.Builder> createIntegrationRequest)

      Creates a new integration with a third-party provider, such as GitHub, for code review and remediation.


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

      Parameters:
      createIntegrationRequest - A Consumer that will call methods on CreateIntegrationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateIntegration 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ConflictException The request could not be completed due to a conflict with the current state of the resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createMembership

      default CompletableFuture<CreateMembershipResponse> createMembership(CreateMembershipRequest createMembershipRequest)

      Creates a new membership, granting a user access to an agent space within an application.

      Parameters:
      createMembershipRequest - Request structure for adding a single member to an agent space.
      Returns:
      A Java Future containing the result of the CreateMembership 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createMembership

      default CompletableFuture<CreateMembershipResponse> createMembership(Consumer<CreateMembershipRequest.Builder> createMembershipRequest)

      Creates a new membership, granting a user access to an agent space within an application.


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

      Parameters:
      createMembershipRequest - A Consumer that will call methods on CreateMembershipRequest.Builder to create a request. Request structure for adding a single member to an agent space.
      Returns:
      A Java Future containing the result of the CreateMembership 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createPentest

      default CompletableFuture<CreatePentestResponse> createPentest(CreatePentestRequest createPentestRequest)

      Creates a new pentest configuration in an agent space. A pentest defines the security test parameters, including target assets, risk type exclusions, and logging configuration.

      Parameters:
      createPentestRequest - Input for creating a new pentest.
      Returns:
      A Java Future containing the result of the CreatePentest 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createPentest

      default CompletableFuture<CreatePentestResponse> createPentest(Consumer<CreatePentestRequest.Builder> createPentestRequest)

      Creates a new pentest configuration in an agent space. A pentest defines the security test parameters, including target assets, risk type exclusions, and logging configuration.


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

      Parameters:
      createPentestRequest - A Consumer that will call methods on CreatePentestRequest.Builder to create a request. Input for creating a new pentest.
      Returns:
      A Java Future containing the result of the CreatePentest 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createTargetDomain

      default CompletableFuture<CreateTargetDomainResponse> createTargetDomain(CreateTargetDomainRequest createTargetDomainRequest)

      Creates a new target domain for penetration testing. A target domain is a web domain that must be registered and verified before it can be tested.

      Parameters:
      createTargetDomainRequest - Input for creating a new target domain.
      Returns:
      A Java Future containing the result of the CreateTargetDomain 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createTargetDomain

      default CompletableFuture<CreateTargetDomainResponse> createTargetDomain(Consumer<CreateTargetDomainRequest.Builder> createTargetDomainRequest)

      Creates a new target domain for penetration testing. A target domain is a web domain that must be registered and verified before it can be tested.


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

      Parameters:
      createTargetDomainRequest - A Consumer that will call methods on CreateTargetDomainRequest.Builder to create a request. Input for creating a new target domain.
      Returns:
      A Java Future containing the result of the CreateTargetDomain 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteAgentSpace

      default CompletableFuture<DeleteAgentSpaceResponse> deleteAgentSpace(DeleteAgentSpaceRequest deleteAgentSpaceRequest)

      Deletes an agent space and all of its associated resources, including pentests, findings, and artifacts.

      Parameters:
      deleteAgentSpaceRequest - Input for deleting an agent space.
      Returns:
      A Java Future containing the result of the DeleteAgentSpace 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteAgentSpace

      default CompletableFuture<DeleteAgentSpaceResponse> deleteAgentSpace(Consumer<DeleteAgentSpaceRequest.Builder> deleteAgentSpaceRequest)

      Deletes an agent space and all of its associated resources, including pentests, findings, and artifacts.


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

      Parameters:
      deleteAgentSpaceRequest - A Consumer that will call methods on DeleteAgentSpaceRequest.Builder to create a request. Input for deleting an agent space.
      Returns:
      A Java Future containing the result of the DeleteAgentSpace 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteApplication

      default CompletableFuture<DeleteApplicationResponse> deleteApplication(DeleteApplicationRequest deleteApplicationRequest)

      Deletes an application and its associated configuration, including IAM Identity Center settings.

      Parameters:
      deleteApplicationRequest -
      Returns:
      A Java Future containing the result of the DeleteApplication 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteApplication

      default CompletableFuture<DeleteApplicationResponse> deleteApplication(Consumer<DeleteApplicationRequest.Builder> deleteApplicationRequest)

      Deletes an application and its associated configuration, including IAM Identity Center settings.


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

      Parameters:
      deleteApplicationRequest - A Consumer that will call methods on DeleteApplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteApplication 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteArtifact

      default CompletableFuture<DeleteArtifactResponse> deleteArtifact(DeleteArtifactRequest deleteArtifactRequest)

      Deletes an artifact from an agent space.

      Parameters:
      deleteArtifactRequest -
      Returns:
      A Java Future containing the result of the DeleteArtifact 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteArtifact

      default CompletableFuture<DeleteArtifactResponse> deleteArtifact(Consumer<DeleteArtifactRequest.Builder> deleteArtifactRequest)

      Deletes an artifact from an agent space.


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

      Parameters:
      deleteArtifactRequest - A Consumer that will call methods on DeleteArtifactRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteArtifact 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteIntegration

      default CompletableFuture<DeleteIntegrationResponse> deleteIntegration(DeleteIntegrationRequest deleteIntegrationRequest)

      Deletes an integration with a third-party provider.

      Parameters:
      deleteIntegrationRequest -
      Returns:
      A Java Future containing the result of the DeleteIntegration 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ConflictException The request could not be completed due to a conflict with the current state of the resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteIntegration

      default CompletableFuture<DeleteIntegrationResponse> deleteIntegration(Consumer<DeleteIntegrationRequest.Builder> deleteIntegrationRequest)

      Deletes an integration with a third-party provider.


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

      Parameters:
      deleteIntegrationRequest - A Consumer that will call methods on DeleteIntegrationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteIntegration 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ConflictException The request could not be completed due to a conflict with the current state of the resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteMembership

      default CompletableFuture<DeleteMembershipResponse> deleteMembership(DeleteMembershipRequest deleteMembershipRequest)

      Deletes a membership, revoking a user's access to an agent space.

      Parameters:
      deleteMembershipRequest - Request structure for removing a single member from an agent space.
      Returns:
      A Java Future containing the result of the DeleteMembership 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteMembership

      default CompletableFuture<DeleteMembershipResponse> deleteMembership(Consumer<DeleteMembershipRequest.Builder> deleteMembershipRequest)

      Deletes a membership, revoking a user's access to an agent space.


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

      Parameters:
      deleteMembershipRequest - A Consumer that will call methods on DeleteMembershipRequest.Builder to create a request. Request structure for removing a single member from an agent space.
      Returns:
      A Java Future containing the result of the DeleteMembership 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteTargetDomain

      default CompletableFuture<DeleteTargetDomainResponse> deleteTargetDomain(DeleteTargetDomainRequest deleteTargetDomainRequest)

      Deletes a target domain registration. After deletion, the domain can no longer be used for penetration testing.

      Parameters:
      deleteTargetDomainRequest - Input for deleting a target domain.
      Returns:
      A Java Future containing the result of the DeleteTargetDomain 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteTargetDomain

      default CompletableFuture<DeleteTargetDomainResponse> deleteTargetDomain(Consumer<DeleteTargetDomainRequest.Builder> deleteTargetDomainRequest)

      Deletes a target domain registration. After deletion, the domain can no longer be used for penetration testing.


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

      Parameters:
      deleteTargetDomainRequest - A Consumer that will call methods on DeleteTargetDomainRequest.Builder to create a request. Input for deleting a target domain.
      Returns:
      A Java Future containing the result of the DeleteTargetDomain 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getApplication

      default CompletableFuture<GetApplicationResponse> getApplication(GetApplicationRequest getApplicationRequest)

      Retrieves information about an application.

      Parameters:
      getApplicationRequest -
      Returns:
      A Java Future containing the result of the GetApplication 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getApplication

      default CompletableFuture<GetApplicationResponse> getApplication(Consumer<GetApplicationRequest.Builder> getApplicationRequest)

      Retrieves information about an application.


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

      Parameters:
      getApplicationRequest - A Consumer that will call methods on GetApplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetApplication 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getArtifact

      default CompletableFuture<GetArtifactResponse> getArtifact(GetArtifactRequest getArtifactRequest)

      Retrieves an artifact from an agent space.

      Parameters:
      getArtifactRequest -
      Returns:
      A Java Future containing the result of the GetArtifact 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 input fails to satisfy the constraints specified by the service.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getArtifact

      default CompletableFuture<GetArtifactResponse> getArtifact(Consumer<GetArtifactRequest.Builder> getArtifactRequest)

      Retrieves an artifact from an agent space.


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

      Parameters:
      getArtifactRequest - A Consumer that will call methods on GetArtifactRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetArtifact 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 input fails to satisfy the constraints specified by the service.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getIntegration

      default CompletableFuture<GetIntegrationResponse> getIntegration(GetIntegrationRequest getIntegrationRequest)

      Retrieves information about an integration.

      Parameters:
      getIntegrationRequest -
      Returns:
      A Java Future containing the result of the GetIntegration 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getIntegration

      default CompletableFuture<GetIntegrationResponse> getIntegration(Consumer<GetIntegrationRequest.Builder> getIntegrationRequest)

      Retrieves information about an integration.


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

      Parameters:
      getIntegrationRequest - A Consumer that will call methods on GetIntegrationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetIntegration 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • initiateProviderRegistration

      default CompletableFuture<InitiateProviderRegistrationResponse> initiateProviderRegistration(InitiateProviderRegistrationRequest initiateProviderRegistrationRequest)

      Initiates the OAuth registration flow with a third-party provider. Returns a redirect URL and CSRF state token for completing the authorization.

      Parameters:
      initiateProviderRegistrationRequest -
      Returns:
      A Java Future containing the result of the InitiateProviderRegistration 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ConflictException The request could not be completed due to a conflict with the current state of the resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • initiateProviderRegistration

      default CompletableFuture<InitiateProviderRegistrationResponse> initiateProviderRegistration(Consumer<InitiateProviderRegistrationRequest.Builder> initiateProviderRegistrationRequest)

      Initiates the OAuth registration flow with a third-party provider. Returns a redirect URL and CSRF state token for completing the authorization.


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

      Parameters:
      initiateProviderRegistrationRequest - A Consumer that will call methods on InitiateProviderRegistrationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the InitiateProviderRegistration 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ConflictException The request could not be completed due to a conflict with the current state of the resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAgentSpaces

      default CompletableFuture<ListAgentSpacesResponse> listAgentSpaces(ListAgentSpacesRequest listAgentSpacesRequest)

      Returns a paginated list of agent space summaries in your account.

      Parameters:
      listAgentSpacesRequest - Input for listing agent spaces.
      Returns:
      A Java Future containing the result of the ListAgentSpaces 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAgentSpaces

      default CompletableFuture<ListAgentSpacesResponse> listAgentSpaces(Consumer<ListAgentSpacesRequest.Builder> listAgentSpacesRequest)

      Returns a paginated list of agent space summaries in your account.


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

      Parameters:
      listAgentSpacesRequest - A Consumer that will call methods on ListAgentSpacesRequest.Builder to create a request. Input for listing agent spaces.
      Returns:
      A Java Future containing the result of the ListAgentSpaces 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAgentSpacesPaginator

      default ListAgentSpacesPublisher listAgentSpacesPaginator(ListAgentSpacesRequest listAgentSpacesRequest)

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

      Parameters:
      listAgentSpacesRequest - Input for listing agent spaces.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAgentSpacesPaginator

      default ListAgentSpacesPublisher listAgentSpacesPaginator(Consumer<ListAgentSpacesRequest.Builder> listAgentSpacesRequest)

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


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

      Parameters:
      listAgentSpacesRequest - A Consumer that will call methods on ListAgentSpacesRequest.Builder to create a request. Input for listing agent spaces.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplications

      default CompletableFuture<ListApplicationsResponse> listApplications(ListApplicationsRequest listApplicationsRequest)

      Returns a paginated list of application summaries in your account.

      Parameters:
      listApplicationsRequest -
      Returns:
      A Java Future containing the result of the ListApplications 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplications

      default CompletableFuture<ListApplicationsResponse> listApplications(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest)

      Returns a paginated list of application summaries in your account.


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

      Parameters:
      listApplicationsRequest - A Consumer that will call methods on ListApplicationsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListApplications 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplicationsPaginator

      default ListApplicationsPublisher listApplicationsPaginator(ListApplicationsRequest listApplicationsRequest)

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

      Parameters:
      listApplicationsRequest -
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplicationsPaginator

      default ListApplicationsPublisher listApplicationsPaginator(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest)

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


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

      Parameters:
      listApplicationsRequest - A Consumer that will call methods on ListApplicationsRequest.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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listArtifacts

      default CompletableFuture<ListArtifactsResponse> listArtifacts(ListArtifactsRequest listArtifactsRequest)

      Returns a paginated list of artifact summaries for the specified agent space.

      Parameters:
      listArtifactsRequest -
      Returns:
      A Java Future containing the result of the ListArtifacts operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listArtifacts

      default CompletableFuture<ListArtifactsResponse> listArtifacts(Consumer<ListArtifactsRequest.Builder> listArtifactsRequest)

      Returns a paginated list of artifact summaries for the specified agent space.


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

      Parameters:
      listArtifactsRequest - A Consumer that will call methods on ListArtifactsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListArtifacts operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listArtifactsPaginator

      default ListArtifactsPublisher listArtifactsPaginator(ListArtifactsRequest listArtifactsRequest)

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

      Parameters:
      listArtifactsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listArtifactsPaginator

      default ListArtifactsPublisher listArtifactsPaginator(Consumer<ListArtifactsRequest.Builder> listArtifactsRequest)

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


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

      Parameters:
      listArtifactsRequest - A Consumer that will call methods on ListArtifactsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCodeReviewJobTasks

      default CompletableFuture<ListCodeReviewJobTasksResponse> listCodeReviewJobTasks(ListCodeReviewJobTasksRequest listCodeReviewJobTasksRequest)

      Returns a paginated list of task summaries for the specified code review job, optionally filtered by step name or category.

      Parameters:
      listCodeReviewJobTasksRequest - Input for listing tasks associated with a code review job.
      Returns:
      A Java Future containing the result of the ListCodeReviewJobTasks 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCodeReviewJobTasks

      default CompletableFuture<ListCodeReviewJobTasksResponse> listCodeReviewJobTasks(Consumer<ListCodeReviewJobTasksRequest.Builder> listCodeReviewJobTasksRequest)

      Returns a paginated list of task summaries for the specified code review job, optionally filtered by step name or category.


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

      Parameters:
      listCodeReviewJobTasksRequest - A Consumer that will call methods on ListCodeReviewJobTasksRequest.Builder to create a request. Input for listing tasks associated with a code review job.
      Returns:
      A Java Future containing the result of the ListCodeReviewJobTasks 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCodeReviewJobTasksPaginator

      default ListCodeReviewJobTasksPublisher listCodeReviewJobTasksPaginator(ListCodeReviewJobTasksRequest listCodeReviewJobTasksRequest)

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

      Parameters:
      listCodeReviewJobTasksRequest - Input for listing tasks associated with a code review job.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCodeReviewJobTasksPaginator

      default ListCodeReviewJobTasksPublisher listCodeReviewJobTasksPaginator(Consumer<ListCodeReviewJobTasksRequest.Builder> listCodeReviewJobTasksRequest)

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


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

      Parameters:
      listCodeReviewJobTasksRequest - A Consumer that will call methods on ListCodeReviewJobTasksRequest.Builder to create a request. Input for listing tasks associated with a code review job.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCodeReviewJobsForCodeReview

      default CompletableFuture<ListCodeReviewJobsForCodeReviewResponse> listCodeReviewJobsForCodeReview(ListCodeReviewJobsForCodeReviewRequest listCodeReviewJobsForCodeReviewRequest)

      Returns a paginated list of code review job summaries for the specified code review configuration.

      Parameters:
      listCodeReviewJobsForCodeReviewRequest - Input for ListCodeReviewJobsForCodeReview operation.
      Returns:
      A Java Future containing the result of the ListCodeReviewJobsForCodeReview 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCodeReviewJobsForCodeReview

      default CompletableFuture<ListCodeReviewJobsForCodeReviewResponse> listCodeReviewJobsForCodeReview(Consumer<ListCodeReviewJobsForCodeReviewRequest.Builder> listCodeReviewJobsForCodeReviewRequest)

      Returns a paginated list of code review job summaries for the specified code review configuration.


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

      Parameters:
      listCodeReviewJobsForCodeReviewRequest - A Consumer that will call methods on ListCodeReviewJobsForCodeReviewRequest.Builder to create a request. Input for ListCodeReviewJobsForCodeReview operation.
      Returns:
      A Java Future containing the result of the ListCodeReviewJobsForCodeReview 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCodeReviewJobsForCodeReviewPaginator

      default ListCodeReviewJobsForCodeReviewPublisher listCodeReviewJobsForCodeReviewPaginator(ListCodeReviewJobsForCodeReviewRequest listCodeReviewJobsForCodeReviewRequest)

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

      Parameters:
      listCodeReviewJobsForCodeReviewRequest - Input for ListCodeReviewJobsForCodeReview operation.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCodeReviewJobsForCodeReviewPaginator

      default ListCodeReviewJobsForCodeReviewPublisher listCodeReviewJobsForCodeReviewPaginator(Consumer<ListCodeReviewJobsForCodeReviewRequest.Builder> listCodeReviewJobsForCodeReviewRequest)

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


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

      Parameters:
      listCodeReviewJobsForCodeReviewRequest - A Consumer that will call methods on ListCodeReviewJobsForCodeReviewRequest.Builder to create a request. Input for ListCodeReviewJobsForCodeReview operation.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCodeReviews

      default CompletableFuture<ListCodeReviewsResponse> listCodeReviews(ListCodeReviewsRequest listCodeReviewsRequest)

      Returns a paginated list of code review summaries for the specified agent space.

      Parameters:
      listCodeReviewsRequest - Input for listing code reviews with optional filtering.
      Returns:
      A Java Future containing the result of the ListCodeReviews 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCodeReviews

      default CompletableFuture<ListCodeReviewsResponse> listCodeReviews(Consumer<ListCodeReviewsRequest.Builder> listCodeReviewsRequest)

      Returns a paginated list of code review summaries for the specified agent space.


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

      Parameters:
      listCodeReviewsRequest - A Consumer that will call methods on ListCodeReviewsRequest.Builder to create a request. Input for listing code reviews with optional filtering.
      Returns:
      A Java Future containing the result of the ListCodeReviews 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCodeReviewsPaginator

      default ListCodeReviewsPublisher listCodeReviewsPaginator(ListCodeReviewsRequest listCodeReviewsRequest)

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

      Parameters:
      listCodeReviewsRequest - Input for listing code reviews with optional filtering.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCodeReviewsPaginator

      default ListCodeReviewsPublisher listCodeReviewsPaginator(Consumer<ListCodeReviewsRequest.Builder> listCodeReviewsRequest)

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


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

      Parameters:
      listCodeReviewsRequest - A Consumer that will call methods on ListCodeReviewsRequest.Builder to create a request. Input for listing code reviews with optional filtering.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDiscoveredEndpoints

      default CompletableFuture<ListDiscoveredEndpointsResponse> listDiscoveredEndpoints(ListDiscoveredEndpointsRequest listDiscoveredEndpointsRequest)

      Returns a paginated list of endpoints discovered during a pentest job execution.

      Parameters:
      listDiscoveredEndpointsRequest - Input for ListDiscoveredEndpoints operation.
      Returns:
      A Java Future containing the result of the ListDiscoveredEndpoints 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDiscoveredEndpoints

      default CompletableFuture<ListDiscoveredEndpointsResponse> listDiscoveredEndpoints(Consumer<ListDiscoveredEndpointsRequest.Builder> listDiscoveredEndpointsRequest)

      Returns a paginated list of endpoints discovered during a pentest job execution.


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

      Parameters:
      listDiscoveredEndpointsRequest - A Consumer that will call methods on ListDiscoveredEndpointsRequest.Builder to create a request. Input for ListDiscoveredEndpoints operation.
      Returns:
      A Java Future containing the result of the ListDiscoveredEndpoints 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDiscoveredEndpointsPaginator

      default ListDiscoveredEndpointsPublisher listDiscoveredEndpointsPaginator(ListDiscoveredEndpointsRequest listDiscoveredEndpointsRequest)

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

      Parameters:
      listDiscoveredEndpointsRequest - Input for ListDiscoveredEndpoints operation.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDiscoveredEndpointsPaginator

      default ListDiscoveredEndpointsPublisher listDiscoveredEndpointsPaginator(Consumer<ListDiscoveredEndpointsRequest.Builder> listDiscoveredEndpointsRequest)

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


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

      Parameters:
      listDiscoveredEndpointsRequest - A Consumer that will call methods on ListDiscoveredEndpointsRequest.Builder to create a request. Input for ListDiscoveredEndpoints operation.
      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.
      • 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.
      • SecurityAgentException 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 the security findings for a pentest job.

      Parameters:
      listFindingsRequest - Input for ListFindings operation with filtering support.
      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.
      • 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.
      • SecurityAgentException 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 the security findings for a pentest job.


      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. Input for ListFindings operation with filtering support.
      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.
      • 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.
      • SecurityAgentException 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.securityagent.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.securityagent.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.securityagent.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityagent.model.ListFindingsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.securityagent.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.securityagent.model.ListFindingsRequest) operation.

      Parameters:
      listFindingsRequest - Input for ListFindings operation with filtering support.
      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.
      • 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.
      • SecurityAgentException 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.securityagent.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.securityagent.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.securityagent.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityagent.model.ListFindingsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.securityagent.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.securityagent.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. Input for ListFindings operation with filtering support.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listIntegratedResources

      default CompletableFuture<ListIntegratedResourcesResponse> listIntegratedResources(ListIntegratedResourcesRequest listIntegratedResourcesRequest)

      Lists the integrated resources for an agent space, optionally filtered by integration or resource type.

      Parameters:
      listIntegratedResourcesRequest -
      Returns:
      A Java Future containing the result of the ListIntegratedResources 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listIntegratedResources

      default CompletableFuture<ListIntegratedResourcesResponse> listIntegratedResources(Consumer<ListIntegratedResourcesRequest.Builder> listIntegratedResourcesRequest)

      Lists the integrated resources for an agent space, optionally filtered by integration or resource type.


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

      Parameters:
      listIntegratedResourcesRequest - A Consumer that will call methods on ListIntegratedResourcesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListIntegratedResources 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listIntegratedResourcesPaginator

      default ListIntegratedResourcesPublisher listIntegratedResourcesPaginator(ListIntegratedResourcesRequest listIntegratedResourcesRequest)

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

      Parameters:
      listIntegratedResourcesRequest -
      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.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listIntegratedResourcesPaginator

      default ListIntegratedResourcesPublisher listIntegratedResourcesPaginator(Consumer<ListIntegratedResourcesRequest.Builder> listIntegratedResourcesRequest)

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


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

      Parameters:
      listIntegratedResourcesRequest - A Consumer that will call methods on ListIntegratedResourcesRequest.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.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listIntegrations

      default CompletableFuture<ListIntegrationsResponse> listIntegrations(ListIntegrationsRequest listIntegrationsRequest)

      Lists the integrations in your account, optionally filtered by provider or provider type.

      Parameters:
      listIntegrationsRequest -
      Returns:
      A Java Future containing the result of the ListIntegrations 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listIntegrations

      default CompletableFuture<ListIntegrationsResponse> listIntegrations(Consumer<ListIntegrationsRequest.Builder> listIntegrationsRequest)

      Lists the integrations in your account, optionally filtered by provider or provider type.


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

      Parameters:
      listIntegrationsRequest - A Consumer that will call methods on ListIntegrationsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListIntegrations 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 specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listIntegrationsPaginator

      default ListIntegrationsPublisher listIntegrationsPaginator(ListIntegrationsRequest listIntegrationsRequest)

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

      Parameters:
      listIntegrationsRequest -
      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.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listIntegrationsPaginator

      default ListIntegrationsPublisher listIntegrationsPaginator(Consumer<ListIntegrationsRequest.Builder> listIntegrationsRequest)

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


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

      Parameters:
      listIntegrationsRequest - A Consumer that will call methods on ListIntegrationsRequest.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.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ValidationException The input fails to satisfy the constraints specified by the service.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listMemberships

      default CompletableFuture<ListMembershipsResponse> listMemberships(ListMembershipsRequest listMembershipsRequest)

      Returns a paginated list of membership summaries for the specified agent space within an application.

      Parameters:
      listMembershipsRequest - Request structure for listing agent space members.
      Returns:
      A Java Future containing the result of the ListMemberships 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listMemberships

      default CompletableFuture<ListMembershipsResponse> listMemberships(Consumer<ListMembershipsRequest.Builder> listMembershipsRequest)

      Returns a paginated list of membership summaries for the specified agent space within an application.


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

      Parameters:
      listMembershipsRequest - A Consumer that will call methods on ListMembershipsRequest.Builder to create a request. Request structure for listing agent space members.
      Returns:
      A Java Future containing the result of the ListMemberships 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listMembershipsPaginator

      default ListMembershipsPublisher listMembershipsPaginator(ListMembershipsRequest listMembershipsRequest)

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

      Parameters:
      listMembershipsRequest - Request structure for listing agent space members.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listMembershipsPaginator

      default ListMembershipsPublisher listMembershipsPaginator(Consumer<ListMembershipsRequest.Builder> listMembershipsRequest)

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


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

      Parameters:
      listMembershipsRequest - A Consumer that will call methods on ListMembershipsRequest.Builder to create a request. Request structure for listing agent space members.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPentestJobTasks

      default CompletableFuture<ListPentestJobTasksResponse> listPentestJobTasks(ListPentestJobTasksRequest listPentestJobTasksRequest)

      Returns a paginated list of task summaries for the specified pentest job, optionally filtered by step name or category.

      Parameters:
      listPentestJobTasksRequest - Input for listing tasks associated with a pentest job.
      Returns:
      A Java Future containing the result of the ListPentestJobTasks 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPentestJobTasks

      default CompletableFuture<ListPentestJobTasksResponse> listPentestJobTasks(Consumer<ListPentestJobTasksRequest.Builder> listPentestJobTasksRequest)

      Returns a paginated list of task summaries for the specified pentest job, optionally filtered by step name or category.


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

      Parameters:
      listPentestJobTasksRequest - A Consumer that will call methods on ListPentestJobTasksRequest.Builder to create a request. Input for listing tasks associated with a pentest job.
      Returns:
      A Java Future containing the result of the ListPentestJobTasks 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPentestJobTasksPaginator

      default ListPentestJobTasksPublisher listPentestJobTasksPaginator(ListPentestJobTasksRequest listPentestJobTasksRequest)

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

      Parameters:
      listPentestJobTasksRequest - Input for listing tasks associated with a pentest job.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPentestJobTasksPaginator

      default ListPentestJobTasksPublisher listPentestJobTasksPaginator(Consumer<ListPentestJobTasksRequest.Builder> listPentestJobTasksRequest)

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


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

      Parameters:
      listPentestJobTasksRequest - A Consumer that will call methods on ListPentestJobTasksRequest.Builder to create a request. Input for listing tasks associated with a pentest job.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPentestJobsForPentest

      default CompletableFuture<ListPentestJobsForPentestResponse> listPentestJobsForPentest(ListPentestJobsForPentestRequest listPentestJobsForPentestRequest)

      Returns a paginated list of pentest job summaries for the specified pentest configuration.

      Parameters:
      listPentestJobsForPentestRequest - Input for ListPentestJobsForPentest operation.
      Returns:
      A Java Future containing the result of the ListPentestJobsForPentest 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPentestJobsForPentest

      default CompletableFuture<ListPentestJobsForPentestResponse> listPentestJobsForPentest(Consumer<ListPentestJobsForPentestRequest.Builder> listPentestJobsForPentestRequest)

      Returns a paginated list of pentest job summaries for the specified pentest configuration.


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

      Parameters:
      listPentestJobsForPentestRequest - A Consumer that will call methods on ListPentestJobsForPentestRequest.Builder to create a request. Input for ListPentestJobsForPentest operation.
      Returns:
      A Java Future containing the result of the ListPentestJobsForPentest 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPentestJobsForPentestPaginator

      default ListPentestJobsForPentestPublisher listPentestJobsForPentestPaginator(ListPentestJobsForPentestRequest listPentestJobsForPentestRequest)

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

      Parameters:
      listPentestJobsForPentestRequest - Input for ListPentestJobsForPentest operation.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPentestJobsForPentestPaginator

      default ListPentestJobsForPentestPublisher listPentestJobsForPentestPaginator(Consumer<ListPentestJobsForPentestRequest.Builder> listPentestJobsForPentestRequest)

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


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

      Parameters:
      listPentestJobsForPentestRequest - A Consumer that will call methods on ListPentestJobsForPentestRequest.Builder to create a request. Input for ListPentestJobsForPentest operation.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPentests

      default CompletableFuture<ListPentestsResponse> listPentests(ListPentestsRequest listPentestsRequest)

      Returns a paginated list of pentest summaries for the specified agent space.

      Parameters:
      listPentestsRequest - Input for listing pentests with optional filtering.
      Returns:
      A Java Future containing the result of the ListPentests 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPentests

      default CompletableFuture<ListPentestsResponse> listPentests(Consumer<ListPentestsRequest.Builder> listPentestsRequest)

      Returns a paginated list of pentest summaries for the specified agent space.


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

      Parameters:
      listPentestsRequest - A Consumer that will call methods on ListPentestsRequest.Builder to create a request. Input for listing pentests with optional filtering.
      Returns:
      A Java Future containing the result of the ListPentests 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPentestsPaginator

      default ListPentestsPublisher listPentestsPaginator(ListPentestsRequest listPentestsRequest)

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

      Parameters:
      listPentestsRequest - Input for listing pentests with optional filtering.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPentestsPaginator

      default ListPentestsPublisher listPentestsPaginator(Consumer<ListPentestsRequest.Builder> listPentestsRequest)

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


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

      Parameters:
      listPentestsRequest - A Consumer that will call methods on ListPentestsRequest.Builder to create a request. Input for listing pentests with optional filtering.
      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.
      • 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.
      • SecurityAgentException 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)

      Returns the tags associated with the specified resource.

      Parameters:
      listTagsForResourceRequest - Input for ListTagsForResource operation.
      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.
      • 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.
      • SecurityAgentException 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)

      Returns the tags associated with the specified 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. Input for ListTagsForResource operation.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTargetDomains

      default CompletableFuture<ListTargetDomainsResponse> listTargetDomains(ListTargetDomainsRequest listTargetDomainsRequest)

      Returns a paginated list of target domain summaries in your account.

      Parameters:
      listTargetDomainsRequest - Input for listing target domains.
      Returns:
      A Java Future containing the result of the ListTargetDomains 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTargetDomains

      default CompletableFuture<ListTargetDomainsResponse> listTargetDomains(Consumer<ListTargetDomainsRequest.Builder> listTargetDomainsRequest)

      Returns a paginated list of target domain summaries in your account.


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

      Parameters:
      listTargetDomainsRequest - A Consumer that will call methods on ListTargetDomainsRequest.Builder to create a request. Input for listing target domains.
      Returns:
      A Java Future containing the result of the ListTargetDomains 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTargetDomainsPaginator

      default ListTargetDomainsPublisher listTargetDomainsPaginator(ListTargetDomainsRequest listTargetDomainsRequest)

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

      Parameters:
      listTargetDomainsRequest - Input for listing target domains.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTargetDomainsPaginator

      default ListTargetDomainsPublisher listTargetDomainsPaginator(Consumer<ListTargetDomainsRequest.Builder> listTargetDomainsRequest)

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


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

      Parameters:
      listTargetDomainsRequest - A Consumer that will call methods on ListTargetDomainsRequest.Builder to create a request. Input for listing target domains.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startCodeRemediation

      default CompletableFuture<StartCodeRemediationResponse> startCodeRemediation(StartCodeRemediationRequest startCodeRemediationRequest)

      Initiates code remediation for one or more security findings. This creates pull requests in integrated repositories to fix the identified vulnerabilities.

      Parameters:
      startCodeRemediationRequest - Input for the StartCodeRemediation operation.
      Returns:
      A Java Future containing the result of the StartCodeRemediation 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startCodeRemediation

      default CompletableFuture<StartCodeRemediationResponse> startCodeRemediation(Consumer<StartCodeRemediationRequest.Builder> startCodeRemediationRequest)

      Initiates code remediation for one or more security findings. This creates pull requests in integrated repositories to fix the identified vulnerabilities.


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

      Parameters:
      startCodeRemediationRequest - A Consumer that will call methods on StartCodeRemediationRequest.Builder to create a request. Input for the StartCodeRemediation operation.
      Returns:
      A Java Future containing the result of the StartCodeRemediation 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startCodeReviewJob

      default CompletableFuture<StartCodeReviewJobResponse> startCodeReviewJob(StartCodeReviewJobRequest startCodeReviewJobRequest)

      Starts a new code review job for a code review configuration. The job executes the security-focused code analysis defined in the code review.

      Parameters:
      startCodeReviewJobRequest - Input for starting the execution of a code review.
      Returns:
      A Java Future containing the result of the StartCodeReviewJob 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startCodeReviewJob

      default CompletableFuture<StartCodeReviewJobResponse> startCodeReviewJob(Consumer<StartCodeReviewJobRequest.Builder> startCodeReviewJobRequest)

      Starts a new code review job for a code review configuration. The job executes the security-focused code analysis defined in the code review.


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

      Parameters:
      startCodeReviewJobRequest - A Consumer that will call methods on StartCodeReviewJobRequest.Builder to create a request. Input for starting the execution of a code review.
      Returns:
      A Java Future containing the result of the StartCodeReviewJob 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startPentestJob

      default CompletableFuture<StartPentestJobResponse> startPentestJob(StartPentestJobRequest startPentestJobRequest)

      Starts a new pentest job for a pentest configuration. The job executes the security tests defined in the pentest.

      Parameters:
      startPentestJobRequest - Input for starting the execution of a pentest.
      Returns:
      A Java Future containing the result of the StartPentestJob 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startPentestJob

      default CompletableFuture<StartPentestJobResponse> startPentestJob(Consumer<StartPentestJobRequest.Builder> startPentestJobRequest)

      Starts a new pentest job for a pentest configuration. The job executes the security tests defined in the pentest.


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

      Parameters:
      startPentestJobRequest - A Consumer that will call methods on StartPentestJobRequest.Builder to create a request. Input for starting the execution of a pentest.
      Returns:
      A Java Future containing the result of the StartPentestJob 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopCodeReviewJob

      default CompletableFuture<StopCodeReviewJobResponse> stopCodeReviewJob(StopCodeReviewJobRequest stopCodeReviewJobRequest)

      Stops a running code review job. The job transitions to a stopping state and then to stopped after cleanup completes.

      Parameters:
      stopCodeReviewJobRequest - Input for stopping the execution of a code review job.
      Returns:
      A Java Future containing the result of the StopCodeReviewJob 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopCodeReviewJob

      default CompletableFuture<StopCodeReviewJobResponse> stopCodeReviewJob(Consumer<StopCodeReviewJobRequest.Builder> stopCodeReviewJobRequest)

      Stops a running code review job. The job transitions to a stopping state and then to stopped after cleanup completes.


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

      Parameters:
      stopCodeReviewJobRequest - A Consumer that will call methods on StopCodeReviewJobRequest.Builder to create a request. Input for stopping the execution of a code review job.
      Returns:
      A Java Future containing the result of the StopCodeReviewJob 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopPentestJob

      default CompletableFuture<StopPentestJobResponse> stopPentestJob(StopPentestJobRequest stopPentestJobRequest)

      Stops a running pentest job. The job transitions to a stopping state and then to stopped after cleanup completes.

      Parameters:
      stopPentestJobRequest - Input for stopping the execution of a pentest.
      Returns:
      A Java Future containing the result of the StopPentestJob 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopPentestJob

      default CompletableFuture<StopPentestJobResponse> stopPentestJob(Consumer<StopPentestJobRequest.Builder> stopPentestJobRequest)

      Stops a running pentest job. The job transitions to a stopping state and then to stopped after cleanup completes.


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

      Parameters:
      stopPentestJobRequest - A Consumer that will call methods on StopPentestJobRequest.Builder to create a request. Input for stopping the execution of a pentest.
      Returns:
      A Java Future containing the result of the StopPentestJob 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.
      • 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.
      • SecurityAgentException 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 - Input for TagResource operation.
      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.
      • 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.
      • SecurityAgentException 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. Input for TagResource operation.
      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.
      • 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.
      • SecurityAgentException 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 - Input for UntagResource operation.
      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.
      • 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.
      • SecurityAgentException 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. Input for UntagResource operation.
      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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateAgentSpace

      default CompletableFuture<UpdateAgentSpaceResponse> updateAgentSpace(UpdateAgentSpaceRequest updateAgentSpaceRequest)

      Updates the configuration of an existing agent space, including its name, description, AWS resources, target domains, and code review settings.

      Parameters:
      updateAgentSpaceRequest - Input for updating an agent space.
      Returns:
      A Java Future containing the result of the UpdateAgentSpace 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateAgentSpace

      default CompletableFuture<UpdateAgentSpaceResponse> updateAgentSpace(Consumer<UpdateAgentSpaceRequest.Builder> updateAgentSpaceRequest)

      Updates the configuration of an existing agent space, including its name, description, AWS resources, target domains, and code review settings.


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

      Parameters:
      updateAgentSpaceRequest - A Consumer that will call methods on UpdateAgentSpaceRequest.Builder to create a request. Input for updating an agent space.
      Returns:
      A Java Future containing the result of the UpdateAgentSpace 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateApplication

      default CompletableFuture<UpdateApplicationResponse> updateApplication(UpdateApplicationRequest updateApplicationRequest)

      Updates the configuration of an existing application, including the IAM role and default KMS key.

      Parameters:
      updateApplicationRequest -
      Returns:
      A Java Future containing the result of the UpdateApplication 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateApplication

      default CompletableFuture<UpdateApplicationResponse> updateApplication(Consumer<UpdateApplicationRequest.Builder> updateApplicationRequest)

      Updates the configuration of an existing application, including the IAM role and default KMS key.


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

      Parameters:
      updateApplicationRequest - A Consumer that will call methods on UpdateApplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateApplication 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateCodeReview

      default CompletableFuture<UpdateCodeReviewResponse> updateCodeReview(UpdateCodeReviewRequest updateCodeReviewRequest)

      Updates an existing code review configuration.

      Parameters:
      updateCodeReviewRequest - Input for updating an existing code review.
      Returns:
      A Java Future containing the result of the UpdateCodeReview 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateCodeReview

      default CompletableFuture<UpdateCodeReviewResponse> updateCodeReview(Consumer<UpdateCodeReviewRequest.Builder> updateCodeReviewRequest)

      Updates an existing code review configuration.


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

      Parameters:
      updateCodeReviewRequest - A Consumer that will call methods on UpdateCodeReviewRequest.Builder to create a request. Input for updating an existing code review.
      Returns:
      A Java Future containing the result of the UpdateCodeReview 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateFinding

      default CompletableFuture<UpdateFindingResponse> updateFinding(UpdateFindingRequest updateFindingRequest)

      Updates the status or risk level of a security finding.

      Parameters:
      updateFindingRequest - Input for updating an existing security finding.
      Returns:
      A Java Future containing the result of the UpdateFinding 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateFinding

      default CompletableFuture<UpdateFindingResponse> updateFinding(Consumer<UpdateFindingRequest.Builder> updateFindingRequest)

      Updates the status or risk level of a security finding.


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

      Parameters:
      updateFindingRequest - A Consumer that will call methods on UpdateFindingRequest.Builder to create a request. Input for updating an existing security finding.
      Returns:
      A Java Future containing the result of the UpdateFinding 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateIntegratedResources

      default CompletableFuture<UpdateIntegratedResourcesResponse> updateIntegratedResources(UpdateIntegratedResourcesRequest updateIntegratedResourcesRequest)

      Updates the integrated resources for an agent space, including their capabilities.

      Parameters:
      updateIntegratedResourcesRequest -
      Returns:
      A Java Future containing the result of the UpdateIntegratedResources 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 input fails to satisfy the constraints specified by the service.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ConflictException The request could not be completed due to a conflict with the current state of the resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateIntegratedResources

      default CompletableFuture<UpdateIntegratedResourcesResponse> updateIntegratedResources(Consumer<UpdateIntegratedResourcesRequest.Builder> updateIntegratedResourcesRequest)

      Updates the integrated resources for an agent space, including their capabilities.


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

      Parameters:
      updateIntegratedResourcesRequest - A Consumer that will call methods on UpdateIntegratedResourcesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateIntegratedResources 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 input fails to satisfy the constraints specified by the service.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
      • InternalServerException An unexpected error occurred during the processing of your request.
      • ConflictException The request could not be completed due to a conflict with the current state of the resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updatePentest

      default CompletableFuture<UpdatePentestResponse> updatePentest(UpdatePentestRequest updatePentestRequest)

      Updates an existing pentest configuration.

      Parameters:
      updatePentestRequest - Input for updating an existing pentest.
      Returns:
      A Java Future containing the result of the UpdatePentest 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updatePentest

      default CompletableFuture<UpdatePentestResponse> updatePentest(Consumer<UpdatePentestRequest.Builder> updatePentestRequest)

      Updates an existing pentest configuration.


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

      Parameters:
      updatePentestRequest - A Consumer that will call methods on UpdatePentestRequest.Builder to create a request. Input for updating an existing pentest.
      Returns:
      A Java Future containing the result of the UpdatePentest 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateTargetDomain

      default CompletableFuture<UpdateTargetDomainResponse> updateTargetDomain(UpdateTargetDomainRequest updateTargetDomainRequest)

      Updates the verification method for a target domain.

      Parameters:
      updateTargetDomainRequest - Input for updating a target domain.
      Returns:
      A Java Future containing the result of the UpdateTargetDomain 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateTargetDomain

      default CompletableFuture<UpdateTargetDomainResponse> updateTargetDomain(Consumer<UpdateTargetDomainRequest.Builder> updateTargetDomainRequest)

      Updates the verification method for a target domain.


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

      Parameters:
      updateTargetDomainRequest - A Consumer that will call methods on UpdateTargetDomainRequest.Builder to create a request. Input for updating a target domain.
      Returns:
      A Java Future containing the result of the UpdateTargetDomain 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • verifyTargetDomain

      default CompletableFuture<VerifyTargetDomainResponse> verifyTargetDomain(VerifyTargetDomainRequest verifyTargetDomainRequest)

      Initiates verification of a target domain. This checks whether the domain ownership verification token has been properly configured.

      Parameters:
      verifyTargetDomainRequest - Input for verifying ownership for a registered target domain in an agent space.
      Returns:
      A Java Future containing the result of the VerifyTargetDomain 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • verifyTargetDomain

      default CompletableFuture<VerifyTargetDomainResponse> verifyTargetDomain(Consumer<VerifyTargetDomainRequest.Builder> verifyTargetDomainRequest)

      Initiates verification of a target domain. This checks whether the domain ownership verification token has been properly configured.


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

      Parameters:
      verifyTargetDomainRequest - A Consumer that will call methods on VerifyTargetDomainRequest.Builder to create a request. Input for verifying ownership for a registered target domain in an agent space.
      Returns:
      A Java Future containing the result of the VerifyTargetDomain 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.
      • 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.
      • SecurityAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • serviceClientConfiguration

      default SecurityAgentServiceClientConfiguration 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 SecurityAgentAsyncClient create()
      Create a SecurityAgentAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      Create a builder that can be used to configure and create a SecurityAgentAsyncClient.