Interface CodeGuruProfilerAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

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

This section provides documentation for the Amazon CodeGuru Profiler API operations.

Amazon CodeGuru Profiler collects runtime performance data from your live applications, and provides recommendations that can help you fine-tune your application performance. Using machine learning algorithms, CodeGuru Profiler can help you find your most expensive lines of code and suggest ways you can improve efficiency and remove CPU bottlenecks.

Amazon CodeGuru Profiler provides different visualizations of profiling data to help you identify what code is running on the CPU, see how much time is consumed, and suggest ways to reduce CPU utilization.

Amazon CodeGuru Profiler currently supports applications written in all Java virtual machine (JVM) languages and Python. While CodeGuru Profiler supports both visualizations and recommendations for applications written in Java, it can also generate visualizations and a subset of recommendations for applications written in other JVM languages and Python.

For more information, see What is Amazon CodeGuru Profiler in the Amazon CodeGuru Profiler User Guide.

  • Field Details

  • Method Details

    • addNotificationChannels

      default CompletableFuture<AddNotificationChannelsResponse> addNotificationChannels(AddNotificationChannelsRequest addNotificationChannelsRequest)

      Add up to 2 anomaly notifications channels for a profiling group.

      Parameters:
      addNotificationChannelsRequest - The structure representing the AddNotificationChannelsRequest.
      Returns:
      A Java Future containing the result of the AddNotificationChannels operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ServiceQuotaExceededException You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • addNotificationChannels

      default CompletableFuture<AddNotificationChannelsResponse> addNotificationChannels(Consumer<AddNotificationChannelsRequest.Builder> addNotificationChannelsRequest)

      Add up to 2 anomaly notifications channels for a profiling group.


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

      Parameters:
      addNotificationChannelsRequest - A Consumer that will call methods on AddNotificationChannelsRequest.Builder to create a request. The structure representing the AddNotificationChannelsRequest.
      Returns:
      A Java Future containing the result of the AddNotificationChannels operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ServiceQuotaExceededException You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetFrameMetricData

      default CompletableFuture<BatchGetFrameMetricDataResponse> batchGetFrameMetricData(BatchGetFrameMetricDataRequest batchGetFrameMetricDataRequest)

      Returns the time series of values for a requested list of frame metrics from a time period.

      Parameters:
      batchGetFrameMetricDataRequest - The structure representing the BatchGetFrameMetricDataRequest.
      Returns:
      A Java Future containing the result of the BatchGetFrameMetricData operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetFrameMetricData

      default CompletableFuture<BatchGetFrameMetricDataResponse> batchGetFrameMetricData(Consumer<BatchGetFrameMetricDataRequest.Builder> batchGetFrameMetricDataRequest)

      Returns the time series of values for a requested list of frame metrics from a time period.


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

      Parameters:
      batchGetFrameMetricDataRequest - A Consumer that will call methods on BatchGetFrameMetricDataRequest.Builder to create a request. The structure representing the BatchGetFrameMetricDataRequest.
      Returns:
      A Java Future containing the result of the BatchGetFrameMetricData operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • configureAgent

      default CompletableFuture<ConfigureAgentResponse> configureAgent(ConfigureAgentRequest configureAgentRequest)

      Used by profiler agents to report their current state and to receive remote configuration updates. For example, ConfigureAgent can be used to tell an agent whether to profile or not and for how long to return profiling data.

      Parameters:
      configureAgentRequest - The structure representing the configureAgentRequest.
      Returns:
      A Java Future containing the result of the ConfigureAgent operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • configureAgent

      default CompletableFuture<ConfigureAgentResponse> configureAgent(Consumer<ConfigureAgentRequest.Builder> configureAgentRequest)

      Used by profiler agents to report their current state and to receive remote configuration updates. For example, ConfigureAgent can be used to tell an agent whether to profile or not and for how long to return profiling data.


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

      Parameters:
      configureAgentRequest - A Consumer that will call methods on ConfigureAgentRequest.Builder to create a request. The structure representing the configureAgentRequest.
      Returns:
      A Java Future containing the result of the ConfigureAgent operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createProfilingGroup

      default CompletableFuture<CreateProfilingGroupResponse> createProfilingGroup(CreateProfilingGroupRequest createProfilingGroupRequest)

      Creates a profiling group.

      Parameters:
      createProfilingGroupRequest - The structure representing the createProfiliingGroupRequest.
      Returns:
      A Java Future containing the result of the CreateProfilingGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ServiceQuotaExceededException You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createProfilingGroup

      default CompletableFuture<CreateProfilingGroupResponse> createProfilingGroup(Consumer<CreateProfilingGroupRequest.Builder> createProfilingGroupRequest)

      Creates a profiling group.


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

      Parameters:
      createProfilingGroupRequest - A Consumer that will call methods on CreateProfilingGroupRequest.Builder to create a request. The structure representing the createProfiliingGroupRequest.
      Returns:
      A Java Future containing the result of the CreateProfilingGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ServiceQuotaExceededException You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteProfilingGroup

      default CompletableFuture<DeleteProfilingGroupResponse> deleteProfilingGroup(DeleteProfilingGroupRequest deleteProfilingGroupRequest)

      Deletes a profiling group.

      Parameters:
      deleteProfilingGroupRequest - The structure representing the deleteProfilingGroupRequest.
      Returns:
      A Java Future containing the result of the DeleteProfilingGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteProfilingGroup

      default CompletableFuture<DeleteProfilingGroupResponse> deleteProfilingGroup(Consumer<DeleteProfilingGroupRequest.Builder> deleteProfilingGroupRequest)

      Deletes a profiling group.


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

      Parameters:
      deleteProfilingGroupRequest - A Consumer that will call methods on DeleteProfilingGroupRequest.Builder to create a request. The structure representing the deleteProfilingGroupRequest.
      Returns:
      A Java Future containing the result of the DeleteProfilingGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeProfilingGroup

      default CompletableFuture<DescribeProfilingGroupResponse> describeProfilingGroup(DescribeProfilingGroupRequest describeProfilingGroupRequest)

      Returns a ProfilingGroupDescription object that contains information about the requested profiling group.

      Parameters:
      describeProfilingGroupRequest - The structure representing the describeProfilingGroupRequest.
      Returns:
      A Java Future containing the result of the DescribeProfilingGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeProfilingGroup

      default CompletableFuture<DescribeProfilingGroupResponse> describeProfilingGroup(Consumer<DescribeProfilingGroupRequest.Builder> describeProfilingGroupRequest)

      Returns a ProfilingGroupDescription object that contains information about the requested profiling group.


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

      Parameters:
      describeProfilingGroupRequest - A Consumer that will call methods on DescribeProfilingGroupRequest.Builder to create a request. The structure representing the describeProfilingGroupRequest.
      Returns:
      A Java Future containing the result of the DescribeProfilingGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFindingsReportAccountSummary

      default CompletableFuture<GetFindingsReportAccountSummaryResponse> getFindingsReportAccountSummary(GetFindingsReportAccountSummaryRequest getFindingsReportAccountSummaryRequest)

      Returns a list of FindingsReportSummary objects that contain analysis results for all profiling groups in your AWS account.

      Parameters:
      getFindingsReportAccountSummaryRequest - The structure representing the GetFindingsReportAccountSummaryRequest.
      Returns:
      A Java Future containing the result of the GetFindingsReportAccountSummary operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFindingsReportAccountSummary

      default CompletableFuture<GetFindingsReportAccountSummaryResponse> getFindingsReportAccountSummary(Consumer<GetFindingsReportAccountSummaryRequest.Builder> getFindingsReportAccountSummaryRequest)

      Returns a list of FindingsReportSummary objects that contain analysis results for all profiling groups in your AWS account.


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

      Parameters:
      getFindingsReportAccountSummaryRequest - A Consumer that will call methods on GetFindingsReportAccountSummaryRequest.Builder to create a request. The structure representing the GetFindingsReportAccountSummaryRequest.
      Returns:
      A Java Future containing the result of the GetFindingsReportAccountSummary operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFindingsReportAccountSummaryPaginator

      default GetFindingsReportAccountSummaryPublisher getFindingsReportAccountSummaryPaginator(GetFindingsReportAccountSummaryRequest getFindingsReportAccountSummaryRequest)

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

      Parameters:
      getFindingsReportAccountSummaryRequest - The structure representing the GetFindingsReportAccountSummaryRequest.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFindingsReportAccountSummaryPaginator

      default GetFindingsReportAccountSummaryPublisher getFindingsReportAccountSummaryPaginator(Consumer<GetFindingsReportAccountSummaryRequest.Builder> getFindingsReportAccountSummaryRequest)

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


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

      Parameters:
      getFindingsReportAccountSummaryRequest - A Consumer that will call methods on GetFindingsReportAccountSummaryRequest.Builder to create a request. The structure representing the GetFindingsReportAccountSummaryRequest.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getNotificationConfiguration

      default CompletableFuture<GetNotificationConfigurationResponse> getNotificationConfiguration(GetNotificationConfigurationRequest getNotificationConfigurationRequest)

      Get the current configuration for anomaly notifications for a profiling group.

      Parameters:
      getNotificationConfigurationRequest - The structure representing the GetNotificationConfigurationRequest.
      Returns:
      A Java Future containing the result of the GetNotificationConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getNotificationConfiguration

      default CompletableFuture<GetNotificationConfigurationResponse> getNotificationConfiguration(Consumer<GetNotificationConfigurationRequest.Builder> getNotificationConfigurationRequest)

      Get the current configuration for anomaly notifications for a profiling group.


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

      Parameters:
      getNotificationConfigurationRequest - A Consumer that will call methods on GetNotificationConfigurationRequest.Builder to create a request. The structure representing the GetNotificationConfigurationRequest.
      Returns:
      A Java Future containing the result of the GetNotificationConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getPolicy

      default CompletableFuture<GetPolicyResponse> getPolicy(GetPolicyRequest getPolicyRequest)

      Returns the JSON-formatted resource-based policy on a profiling group.

      Parameters:
      getPolicyRequest - The structure representing the getPolicyRequest.
      Returns:
      A Java Future containing the result of the GetPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getPolicy

      default CompletableFuture<GetPolicyResponse> getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest)

      Returns the JSON-formatted resource-based policy on a profiling group.


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

      Parameters:
      getPolicyRequest - A Consumer that will call methods on GetPolicyRequest.Builder to create a request. The structure representing the getPolicyRequest.
      Returns:
      A Java Future containing the result of the GetPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getProfile

      default CompletableFuture<GetProfileResponse> getProfile(GetProfileRequest getProfileRequest)

      Gets the aggregated profile of a profiling group for a specified time range. Amazon CodeGuru Profiler collects posted agent profiles for a profiling group into aggregated profiles.

        <note> <p> Because aggregated profiles expire over time <code>GetProfile</code> is not idempotent. </p> </note> <p> Specify the time range for the requested aggregated profile using 1 or 2 of the following parameters: <code>startTime</code>, <code>endTime</code>, <code>period</code>. The maximum time range allowed is 7 days. If you specify all 3 parameters, an exception is thrown. If you specify only <code>period</code>, the latest aggregated profile is returned. </p> <p> Aggregated profiles are available with aggregation periods of 5 minutes, 1 hour, and 1 day, aligned to UTC. The aggregation period of an aggregated profile determines how long it is retained. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AggregatedProfileTime.html"> <code>AggregatedProfileTime</code> </a>. The aggregated profile's aggregation period determines how long it is retained by CodeGuru Profiler. </p> <ul> <li> <p> If the aggregation period is 5 minutes, the aggregated profile is retained for 15 days. </p> </li> <li> <p> If the aggregation period is 1 hour, the aggregated profile is retained for 60 days. </p> </li> <li> <p> If the aggregation period is 1 day, the aggregated profile is retained for 3 years. </p> </li> </ul> <p>There are two use cases for calling <code>GetProfile</code>.</p> <ol> <li> <p> If you want to return an aggregated profile that already exists, use <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ListProfileTimes.html"> <code>ListProfileTimes</code> </a> to view the time ranges of existing aggregated profiles. Use them in a <code>GetProfile</code> request to return a specific, existing aggregated profile. </p> </li> <li> <p> If you want to return an aggregated profile for a time range that doesn't align with an existing aggregated profile, then CodeGuru Profiler makes a best effort to combine existing aggregated profiles from the requested time range and return them as one aggregated profile. </p> <p> If aggregated profiles do not exist for the full time range requested, then aggregated profiles for a smaller time range are returned. For example, if the requested time range is from 00:00 to 00:20, and the existing aggregated profiles are from 00:15 and 00:25, then the aggregated profiles from 00:15 to 00:20 are returned. </p> </li> </ol> 
       
      Parameters:
      getProfileRequest - The structure representing the getProfileRequest.
      Returns:
      A Java Future containing the result of the GetProfile operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getProfile

      default CompletableFuture<GetProfileResponse> getProfile(Consumer<GetProfileRequest.Builder> getProfileRequest)

      Gets the aggregated profile of a profiling group for a specified time range. Amazon CodeGuru Profiler collects posted agent profiles for a profiling group into aggregated profiles.

        <note> <p> Because aggregated profiles expire over time <code>GetProfile</code> is not idempotent. </p> </note> <p> Specify the time range for the requested aggregated profile using 1 or 2 of the following parameters: <code>startTime</code>, <code>endTime</code>, <code>period</code>. The maximum time range allowed is 7 days. If you specify all 3 parameters, an exception is thrown. If you specify only <code>period</code>, the latest aggregated profile is returned. </p> <p> Aggregated profiles are available with aggregation periods of 5 minutes, 1 hour, and 1 day, aligned to UTC. The aggregation period of an aggregated profile determines how long it is retained. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AggregatedProfileTime.html"> <code>AggregatedProfileTime</code> </a>. The aggregated profile's aggregation period determines how long it is retained by CodeGuru Profiler. </p> <ul> <li> <p> If the aggregation period is 5 minutes, the aggregated profile is retained for 15 days. </p> </li> <li> <p> If the aggregation period is 1 hour, the aggregated profile is retained for 60 days. </p> </li> <li> <p> If the aggregation period is 1 day, the aggregated profile is retained for 3 years. </p> </li> </ul> <p>There are two use cases for calling <code>GetProfile</code>.</p> <ol> <li> <p> If you want to return an aggregated profile that already exists, use <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ListProfileTimes.html"> <code>ListProfileTimes</code> </a> to view the time ranges of existing aggregated profiles. Use them in a <code>GetProfile</code> request to return a specific, existing aggregated profile. </p> </li> <li> <p> If you want to return an aggregated profile for a time range that doesn't align with an existing aggregated profile, then CodeGuru Profiler makes a best effort to combine existing aggregated profiles from the requested time range and return them as one aggregated profile. </p> <p> If aggregated profiles do not exist for the full time range requested, then aggregated profiles for a smaller time range are returned. For example, if the requested time range is from 00:00 to 00:20, and the existing aggregated profiles are from 00:15 and 00:25, then the aggregated profiles from 00:15 to 00:20 are returned. </p> </li> </ol> 
       

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

      Parameters:
      getProfileRequest - A Consumer that will call methods on GetProfileRequest.Builder to create a request. The structure representing the getProfileRequest.
      Returns:
      A Java Future containing the result of the GetProfile operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getRecommendations

      default CompletableFuture<GetRecommendationsResponse> getRecommendations(GetRecommendationsRequest getRecommendationsRequest)

      Returns a list of Recommendation objects that contain recommendations for a profiling group for a given time period. A list of Anomaly objects that contains details about anomalies detected in the profiling group for the same time period is also returned.

      Parameters:
      getRecommendationsRequest - The structure representing the GetRecommendationsRequest.
      Returns:
      A Java Future containing the result of the GetRecommendations operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getRecommendations

      default CompletableFuture<GetRecommendationsResponse> getRecommendations(Consumer<GetRecommendationsRequest.Builder> getRecommendationsRequest)

      Returns a list of Recommendation objects that contain recommendations for a profiling group for a given time period. A list of Anomaly objects that contains details about anomalies detected in the profiling group for the same time period is also returned.


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

      Parameters:
      getRecommendationsRequest - A Consumer that will call methods on GetRecommendationsRequest.Builder to create a request. The structure representing the GetRecommendationsRequest.
      Returns:
      A Java Future containing the result of the GetRecommendations operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindingsReports

      default CompletableFuture<ListFindingsReportsResponse> listFindingsReports(ListFindingsReportsRequest listFindingsReportsRequest)

      List the available reports for a given profiling group and time range.

      Parameters:
      listFindingsReportsRequest - The structure representing the ListFindingsReportsRequest.
      Returns:
      A Java Future containing the result of the ListFindingsReports operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindingsReports

      default CompletableFuture<ListFindingsReportsResponse> listFindingsReports(Consumer<ListFindingsReportsRequest.Builder> listFindingsReportsRequest)

      List the available reports for a given profiling group and time range.


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

      Parameters:
      listFindingsReportsRequest - A Consumer that will call methods on ListFindingsReportsRequest.Builder to create a request. The structure representing the ListFindingsReportsRequest.
      Returns:
      A Java Future containing the result of the ListFindingsReports operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindingsReportsPaginator

      default ListFindingsReportsPublisher listFindingsReportsPaginator(ListFindingsReportsRequest listFindingsReportsRequest)

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

      Parameters:
      listFindingsReportsRequest - The structure representing the ListFindingsReportsRequest.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindingsReportsPaginator

      default ListFindingsReportsPublisher listFindingsReportsPaginator(Consumer<ListFindingsReportsRequest.Builder> listFindingsReportsRequest)

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


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

      Parameters:
      listFindingsReportsRequest - A Consumer that will call methods on ListFindingsReportsRequest.Builder to create a request. The structure representing the ListFindingsReportsRequest.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listProfileTimes

      default CompletableFuture<ListProfileTimesResponse> listProfileTimes(ListProfileTimesRequest listProfileTimesRequest)

      Lists the start times of the available aggregated profiles of a profiling group for an aggregation period within the specified time range.

      Parameters:
      listProfileTimesRequest - The structure representing the listProfileTimesRequest.
      Returns:
      A Java Future containing the result of the ListProfileTimes operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listProfileTimes

      default CompletableFuture<ListProfileTimesResponse> listProfileTimes(Consumer<ListProfileTimesRequest.Builder> listProfileTimesRequest)

      Lists the start times of the available aggregated profiles of a profiling group for an aggregation period within the specified time range.


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

      Parameters:
      listProfileTimesRequest - A Consumer that will call methods on ListProfileTimesRequest.Builder to create a request. The structure representing the listProfileTimesRequest.
      Returns:
      A Java Future containing the result of the ListProfileTimes operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listProfileTimesPaginator

      default ListProfileTimesPublisher listProfileTimesPaginator(ListProfileTimesRequest listProfileTimesRequest)

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

      Parameters:
      listProfileTimesRequest - The structure representing the listProfileTimesRequest.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listProfileTimesPaginator

      default ListProfileTimesPublisher listProfileTimesPaginator(Consumer<ListProfileTimesRequest.Builder> listProfileTimesRequest)

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


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

      Parameters:
      listProfileTimesRequest - A Consumer that will call methods on ListProfileTimesRequest.Builder to create a request. The structure representing the listProfileTimesRequest.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listProfilingGroups

      default CompletableFuture<ListProfilingGroupsResponse> listProfilingGroups(ListProfilingGroupsRequest listProfilingGroupsRequest)

      Returns a list of profiling groups. The profiling groups are returned as ProfilingGroupDescription objects.

      Parameters:
      listProfilingGroupsRequest - The structure representing the listProfilingGroupsRequest.
      Returns:
      A Java Future containing the result of the ListProfilingGroups operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listProfilingGroups

      default CompletableFuture<ListProfilingGroupsResponse> listProfilingGroups(Consumer<ListProfilingGroupsRequest.Builder> listProfilingGroupsRequest)

      Returns a list of profiling groups. The profiling groups are returned as ProfilingGroupDescription objects.


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

      Parameters:
      listProfilingGroupsRequest - A Consumer that will call methods on ListProfilingGroupsRequest.Builder to create a request. The structure representing the listProfilingGroupsRequest.
      Returns:
      A Java Future containing the result of the ListProfilingGroups operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listProfilingGroupsPaginator

      default ListProfilingGroupsPublisher listProfilingGroupsPaginator(ListProfilingGroupsRequest listProfilingGroupsRequest)

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

      Parameters:
      listProfilingGroupsRequest - The structure representing the listProfilingGroupsRequest.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listProfilingGroupsPaginator

      default ListProfilingGroupsPublisher listProfilingGroupsPaginator(Consumer<ListProfilingGroupsRequest.Builder> listProfilingGroupsRequest)

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


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

      Parameters:
      listProfilingGroupsRequest - A Consumer that will call methods on ListProfilingGroupsRequest.Builder to create a request. The structure representing the listProfilingGroupsRequest.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException 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 a list of the tags that are assigned to a specified resource.

      Parameters:
      listTagsForResourceRequest -
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException 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 a list of the tags that are assigned to a 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.
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • postAgentProfile

      default CompletableFuture<PostAgentProfileResponse> postAgentProfile(PostAgentProfileRequest postAgentProfileRequest)

      Submits profiling data to an aggregated profile of a profiling group. To get an aggregated profile that is created with this profiling data, use GetProfile .

      Parameters:
      postAgentProfileRequest - The structure representing the postAgentProfileRequest.
      Returns:
      A Java Future containing the result of the PostAgentProfile operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • postAgentProfile

      default CompletableFuture<PostAgentProfileResponse> postAgentProfile(Consumer<PostAgentProfileRequest.Builder> postAgentProfileRequest)

      Submits profiling data to an aggregated profile of a profiling group. To get an aggregated profile that is created with this profiling data, use GetProfile .


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

      Parameters:
      postAgentProfileRequest - A Consumer that will call methods on PostAgentProfileRequest.Builder to create a request. The structure representing the postAgentProfileRequest.
      Returns:
      A Java Future containing the result of the PostAgentProfile operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putPermission

      default CompletableFuture<PutPermissionResponse> putPermission(PutPermissionRequest putPermissionRequest)

      Adds permissions to a profiling group's resource-based policy that are provided using an action group. If a profiling group doesn't have a resource-based policy, one is created for it using the permissions in the action group and the roles and users in the principals parameter.

        <p> The one supported action group that can be added is <code>agentPermission</code> which grants <code>ConfigureAgent</code> and <code>PostAgent</code> permissions. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-ug/resource-based-policies.html">Resource-based policies in CodeGuru Profiler</a> in the <i>Amazon CodeGuru Profiler User Guide</i>, <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html"> <code>ConfigureAgent</code> </a>, and <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_PostAgentProfile.html"> <code>PostAgentProfile</code> </a>. </p> <p> The first time you call <code>PutPermission</code> on a profiling group, do not specify a <code>revisionId</code> because it doesn't have a resource-based policy. Subsequent calls must provide a <code>revisionId</code> to specify which revision of the resource-based policy to add the permissions to. </p> <p> The response contains the profiling group's JSON-formatted resource policy. </p> 
       
      Parameters:
      putPermissionRequest - The structure representing the putPermissionRequest.
      Returns:
      A Java Future containing the result of the PutPermission operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putPermission

      default CompletableFuture<PutPermissionResponse> putPermission(Consumer<PutPermissionRequest.Builder> putPermissionRequest)

      Adds permissions to a profiling group's resource-based policy that are provided using an action group. If a profiling group doesn't have a resource-based policy, one is created for it using the permissions in the action group and the roles and users in the principals parameter.

        <p> The one supported action group that can be added is <code>agentPermission</code> which grants <code>ConfigureAgent</code> and <code>PostAgent</code> permissions. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-ug/resource-based-policies.html">Resource-based policies in CodeGuru Profiler</a> in the <i>Amazon CodeGuru Profiler User Guide</i>, <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html"> <code>ConfigureAgent</code> </a>, and <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_PostAgentProfile.html"> <code>PostAgentProfile</code> </a>. </p> <p> The first time you call <code>PutPermission</code> on a profiling group, do not specify a <code>revisionId</code> because it doesn't have a resource-based policy. Subsequent calls must provide a <code>revisionId</code> to specify which revision of the resource-based policy to add the permissions to. </p> <p> The response contains the profiling group's JSON-formatted resource policy. </p> 
       

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

      Parameters:
      putPermissionRequest - A Consumer that will call methods on PutPermissionRequest.Builder to create a request. The structure representing the putPermissionRequest.
      Returns:
      A Java Future containing the result of the PutPermission operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • removeNotificationChannel

      default CompletableFuture<RemoveNotificationChannelResponse> removeNotificationChannel(RemoveNotificationChannelRequest removeNotificationChannelRequest)

      Remove one anomaly notifications channel for a profiling group.

      Parameters:
      removeNotificationChannelRequest - The structure representing the RemoveNotificationChannelRequest.
      Returns:
      A Java Future containing the result of the RemoveNotificationChannel operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • removeNotificationChannel

      default CompletableFuture<RemoveNotificationChannelResponse> removeNotificationChannel(Consumer<RemoveNotificationChannelRequest.Builder> removeNotificationChannelRequest)

      Remove one anomaly notifications channel for a profiling group.


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

      Parameters:
      removeNotificationChannelRequest - A Consumer that will call methods on RemoveNotificationChannelRequest.Builder to create a request. The structure representing the RemoveNotificationChannelRequest.
      Returns:
      A Java Future containing the result of the RemoveNotificationChannel operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • removePermission

      default CompletableFuture<RemovePermissionResponse> removePermission(RemovePermissionRequest removePermissionRequest)

      Removes permissions from a profiling group's resource-based policy that are provided using an action group. The one supported action group that can be removed is agentPermission which grants ConfigureAgent and PostAgent permissions. For more information, see Resource-based policies in CodeGuru Profiler in the Amazon CodeGuru Profiler User Guide, ConfigureAgent , and PostAgentProfile .

      Parameters:
      removePermissionRequest -
        The structure representing the <code>removePermissionRequest</code>.</p> 
      Returns:
      A Java Future containing the result of the RemovePermission operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • removePermission

      default CompletableFuture<RemovePermissionResponse> removePermission(Consumer<RemovePermissionRequest.Builder> removePermissionRequest)

      Removes permissions from a profiling group's resource-based policy that are provided using an action group. The one supported action group that can be removed is agentPermission which grants ConfigureAgent and PostAgent permissions. For more information, see Resource-based policies in CodeGuru Profiler in the Amazon CodeGuru Profiler User Guide, ConfigureAgent , and PostAgentProfile .


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

      Parameters:
      removePermissionRequest - A Consumer that will call methods on RemovePermissionRequest.Builder to create a request.
        The structure representing the <code>removePermissionRequest</code>.</p> 
      Returns:
      A Java Future containing the result of the RemovePermission operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • submitFeedback

      default CompletableFuture<SubmitFeedbackResponse> submitFeedback(SubmitFeedbackRequest submitFeedbackRequest)

      Sends feedback to CodeGuru Profiler about whether the anomaly detected by the analysis is useful or not.

      Parameters:
      submitFeedbackRequest - The structure representing the SubmitFeedbackRequest.
      Returns:
      A Java Future containing the result of the SubmitFeedback operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • submitFeedback

      default CompletableFuture<SubmitFeedbackResponse> submitFeedback(Consumer<SubmitFeedbackRequest.Builder> submitFeedbackRequest)

      Sends feedback to CodeGuru Profiler about whether the anomaly detected by the analysis is useful or not.


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

      Parameters:
      submitFeedbackRequest - A Consumer that will call methods on SubmitFeedbackRequest.Builder to create a request. The structure representing the SubmitFeedbackRequest.
      Returns:
      A Java Future containing the result of the SubmitFeedback operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException 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)

      Use to assign one or more tags to a resource.

      Parameters:
      tagResourceRequest -
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException 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)

      Use to assign one or more tags to a resource.


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

      Parameters:
      tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException 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)

      Use to remove one or more tags from a resource.

      Parameters:
      untagResourceRequest -
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException 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)

      Use to remove one or more tags from a resource.


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

      Parameters:
      untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ValidationException The parameter is not valid.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateProfilingGroup

      default CompletableFuture<UpdateProfilingGroupResponse> updateProfilingGroup(UpdateProfilingGroupRequest updateProfilingGroupRequest)

      Updates a profiling group.

      Parameters:
      updateProfilingGroupRequest - The structure representing the updateProfilingGroupRequest.
      Returns:
      A Java Future containing the result of the UpdateProfilingGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateProfilingGroup

      default CompletableFuture<UpdateProfilingGroupResponse> updateProfilingGroup(Consumer<UpdateProfilingGroupRequest.Builder> updateProfilingGroupRequest)

      Updates a profiling group.


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

      Parameters:
      updateProfilingGroupRequest - A Consumer that will call methods on UpdateProfilingGroupRequest.Builder to create a request. The structure representing the updateProfilingGroupRequest.
      Returns:
      A Java Future containing the result of the UpdateProfilingGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The server encountered an internal error and is unable to complete the request.
      • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
      • ValidationException The parameter is not valid.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The resource specified in the request does not exist.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • serviceClientConfiguration

      default CodeGuruProfilerServiceClientConfiguration 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 CodeGuruProfilerAsyncClient create()
      Create a CodeGuruProfilerAsyncClient 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 CodeGuruProfilerAsyncClient.