All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.codeguruprofiler.AmazonCodeGuruProfilerAsync Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon CodeGuru Profiler module holds the client classes that are used for communicating with Amazon CodeGuru Profiler Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.codeguruprofiler;

import javax.annotation.Generated;

import com.amazonaws.services.codeguruprofiler.model.*;

/**
 * Interface for accessing Amazon CodeGuru Profiler asynchronously. Each asynchronous method will return a Java Future
 * object representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
 * notification when an asynchronous operation completes.
 * 

* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.codeguruprofiler.AbstractAmazonCodeGuruProfilerAsync} instead. *

*

*

* 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. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AmazonCodeGuruProfilerAsync extends AmazonCodeGuruProfiler { /** *

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

* * @param addNotificationChannelsRequest * The structure representing the AddNotificationChannelsRequest. * @return A Java Future containing the result of the AddNotificationChannels operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.AddNotificationChannels * @see AWS API Documentation */ java.util.concurrent.Future addNotificationChannelsAsync(AddNotificationChannelsRequest addNotificationChannelsRequest); /** *

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

* * @param addNotificationChannelsRequest * The structure representing the AddNotificationChannelsRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the AddNotificationChannels operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.AddNotificationChannels * @see AWS API Documentation */ java.util.concurrent.Future addNotificationChannelsAsync(AddNotificationChannelsRequest addNotificationChannelsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

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

* * @param batchGetFrameMetricDataRequest * The structure representing the BatchGetFrameMetricDataRequest. * @return A Java Future containing the result of the BatchGetFrameMetricData operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.BatchGetFrameMetricData * @see AWS API Documentation */ java.util.concurrent.Future batchGetFrameMetricDataAsync(BatchGetFrameMetricDataRequest batchGetFrameMetricDataRequest); /** *

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

* * @param batchGetFrameMetricDataRequest * The structure representing the BatchGetFrameMetricDataRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the BatchGetFrameMetricData operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.BatchGetFrameMetricData * @see AWS API Documentation */ java.util.concurrent.Future batchGetFrameMetricDataAsync(BatchGetFrameMetricDataRequest batchGetFrameMetricDataRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* 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. *

* * @param configureAgentRequest * The structure representing the configureAgentRequest. * @return A Java Future containing the result of the ConfigureAgent operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.ConfigureAgent * @see AWS API Documentation */ java.util.concurrent.Future configureAgentAsync(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. *

* * @param configureAgentRequest * The structure representing the configureAgentRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ConfigureAgent operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.ConfigureAgent * @see AWS API Documentation */ java.util.concurrent.Future configureAgentAsync(ConfigureAgentRequest configureAgentRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Creates a profiling group. *

* * @param createProfilingGroupRequest * The structure representing the createProfiliingGroupRequest. * @return A Java Future containing the result of the CreateProfilingGroup operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.CreateProfilingGroup * @see AWS API Documentation */ java.util.concurrent.Future createProfilingGroupAsync(CreateProfilingGroupRequest createProfilingGroupRequest); /** *

* Creates a profiling group. *

* * @param createProfilingGroupRequest * The structure representing the createProfiliingGroupRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the CreateProfilingGroup operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.CreateProfilingGroup * @see AWS API Documentation */ java.util.concurrent.Future createProfilingGroupAsync(CreateProfilingGroupRequest createProfilingGroupRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Deletes a profiling group. *

* * @param deleteProfilingGroupRequest * The structure representing the deleteProfilingGroupRequest. * @return A Java Future containing the result of the DeleteProfilingGroup operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.DeleteProfilingGroup * @see AWS API Documentation */ java.util.concurrent.Future deleteProfilingGroupAsync(DeleteProfilingGroupRequest deleteProfilingGroupRequest); /** *

* Deletes a profiling group. *

* * @param deleteProfilingGroupRequest * The structure representing the deleteProfilingGroupRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the DeleteProfilingGroup operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.DeleteProfilingGroup * @see AWS API Documentation */ java.util.concurrent.Future deleteProfilingGroupAsync(DeleteProfilingGroupRequest deleteProfilingGroupRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

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

* * @param describeProfilingGroupRequest * The structure representing the describeProfilingGroupRequest. * @return A Java Future containing the result of the DescribeProfilingGroup operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.DescribeProfilingGroup * @see AWS API Documentation */ java.util.concurrent.Future describeProfilingGroupAsync(DescribeProfilingGroupRequest describeProfilingGroupRequest); /** *

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

* * @param describeProfilingGroupRequest * The structure representing the describeProfilingGroupRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the DescribeProfilingGroup operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.DescribeProfilingGroup * @see AWS API Documentation */ java.util.concurrent.Future describeProfilingGroupAsync(DescribeProfilingGroupRequest describeProfilingGroupRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

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

* * @param getFindingsReportAccountSummaryRequest * The structure representing the GetFindingsReportAccountSummaryRequest. * @return A Java Future containing the result of the GetFindingsReportAccountSummary operation returned by the * service. * @sample AmazonCodeGuruProfilerAsync.GetFindingsReportAccountSummary * @see AWS API Documentation */ java.util.concurrent.Future getFindingsReportAccountSummaryAsync( GetFindingsReportAccountSummaryRequest getFindingsReportAccountSummaryRequest); /** *

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

* * @param getFindingsReportAccountSummaryRequest * The structure representing the GetFindingsReportAccountSummaryRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetFindingsReportAccountSummary operation returned by the * service. * @sample AmazonCodeGuruProfilerAsyncHandler.GetFindingsReportAccountSummary * @see AWS API Documentation */ java.util.concurrent.Future getFindingsReportAccountSummaryAsync( GetFindingsReportAccountSummaryRequest getFindingsReportAccountSummaryRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

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

* * @param getNotificationConfigurationRequest * The structure representing the GetNotificationConfigurationRequest. * @return A Java Future containing the result of the GetNotificationConfiguration operation returned by the * service. * @sample AmazonCodeGuruProfilerAsync.GetNotificationConfiguration * @see AWS API Documentation */ java.util.concurrent.Future getNotificationConfigurationAsync( GetNotificationConfigurationRequest getNotificationConfigurationRequest); /** *

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

* * @param getNotificationConfigurationRequest * The structure representing the GetNotificationConfigurationRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetNotificationConfiguration operation returned by the * service. * @sample AmazonCodeGuruProfilerAsyncHandler.GetNotificationConfiguration * @see AWS API Documentation */ java.util.concurrent.Future getNotificationConfigurationAsync( GetNotificationConfigurationRequest getNotificationConfigurationRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

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

* * @param getPolicyRequest * The structure representing the getPolicyRequest. * @return A Java Future containing the result of the GetPolicy operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.GetPolicy * @see AWS API * Documentation */ java.util.concurrent.Future getPolicyAsync(GetPolicyRequest getPolicyRequest); /** *

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

* * @param getPolicyRequest * The structure representing the getPolicyRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetPolicy operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.GetPolicy * @see AWS API * Documentation */ java.util.concurrent.Future getPolicyAsync(GetPolicyRequest getPolicyRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* 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> 
     * 
* * @param getProfileRequest * The structure representing the getProfileRequest. * @return A Java Future containing the result of the GetProfile operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.GetProfile * @see AWS * API Documentation */ java.util.concurrent.Future getProfileAsync(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> 
     * 
* * @param getProfileRequest * The structure representing the getProfileRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetProfile operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.GetProfile * @see AWS * API Documentation */ java.util.concurrent.Future getProfileAsync(GetProfileRequest getProfileRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* 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. *

* * @param getRecommendationsRequest * The structure representing the GetRecommendationsRequest. * @return A Java Future containing the result of the GetRecommendations operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.GetRecommendations * @see AWS API Documentation */ java.util.concurrent.Future getRecommendationsAsync(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. *

* * @param getRecommendationsRequest * The structure representing the GetRecommendationsRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetRecommendations operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.GetRecommendations * @see AWS API Documentation */ java.util.concurrent.Future getRecommendationsAsync(GetRecommendationsRequest getRecommendationsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

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

* * @param listFindingsReportsRequest * The structure representing the ListFindingsReportsRequest. * @return A Java Future containing the result of the ListFindingsReports operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.ListFindingsReports * @see AWS API Documentation */ java.util.concurrent.Future listFindingsReportsAsync(ListFindingsReportsRequest listFindingsReportsRequest); /** *

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

* * @param listFindingsReportsRequest * The structure representing the ListFindingsReportsRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListFindingsReports operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.ListFindingsReports * @see AWS API Documentation */ java.util.concurrent.Future listFindingsReportsAsync(ListFindingsReportsRequest listFindingsReportsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

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

* * @param listProfileTimesRequest * The structure representing the listProfileTimesRequest. * @return A Java Future containing the result of the ListProfileTimes operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.ListProfileTimes * @see AWS API Documentation */ java.util.concurrent.Future listProfileTimesAsync(ListProfileTimesRequest listProfileTimesRequest); /** *

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

* * @param listProfileTimesRequest * The structure representing the listProfileTimesRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListProfileTimes operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.ListProfileTimes * @see AWS API Documentation */ java.util.concurrent.Future listProfileTimesAsync(ListProfileTimesRequest listProfileTimesRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

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

* * @param listProfilingGroupsRequest * The structure representing the listProfilingGroupsRequest. * @return A Java Future containing the result of the ListProfilingGroups operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.ListProfilingGroups * @see AWS API Documentation */ java.util.concurrent.Future listProfilingGroupsAsync(ListProfilingGroupsRequest listProfilingGroupsRequest); /** *

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

* * @param listProfilingGroupsRequest * The structure representing the listProfilingGroupsRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListProfilingGroups operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.ListProfilingGroups * @see AWS API Documentation */ java.util.concurrent.Future listProfilingGroupsAsync(ListProfilingGroupsRequest listProfilingGroupsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Returns a list of the tags that are assigned to a specified resource. *

* * @param listTagsForResourceRequest * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest); /** *

* Returns a list of the tags that are assigned to a specified resource. *

* * @param listTagsForResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* 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 * . *

* * @param postAgentProfileRequest * The structure representing the postAgentProfileRequest. * @return A Java Future containing the result of the PostAgentProfile operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.PostAgentProfile * @see AWS API Documentation */ java.util.concurrent.Future postAgentProfileAsync(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 * . *

* * @param postAgentProfileRequest * The structure representing the postAgentProfileRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the PostAgentProfile operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.PostAgentProfile * @see AWS API Documentation */ java.util.concurrent.Future postAgentProfileAsync(PostAgentProfileRequest postAgentProfileRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* 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> 
     * 
* * @param putPermissionRequest * The structure representing the putPermissionRequest. * @return A Java Future containing the result of the PutPermission operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.PutPermission * @see AWS * API Documentation */ java.util.concurrent.Future putPermissionAsync(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> 
     * 
* * @param putPermissionRequest * The structure representing the putPermissionRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the PutPermission operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.PutPermission * @see AWS * API Documentation */ java.util.concurrent.Future putPermissionAsync(PutPermissionRequest putPermissionRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Remove one anomaly notifications channel for a profiling group. *

* * @param removeNotificationChannelRequest * The structure representing the RemoveNotificationChannelRequest. * @return A Java Future containing the result of the RemoveNotificationChannel operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.RemoveNotificationChannel * @see AWS API Documentation */ java.util.concurrent.Future removeNotificationChannelAsync( RemoveNotificationChannelRequest removeNotificationChannelRequest); /** *

* Remove one anomaly notifications channel for a profiling group. *

* * @param removeNotificationChannelRequest * The structure representing the RemoveNotificationChannelRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the RemoveNotificationChannel operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.RemoveNotificationChannel * @see AWS API Documentation */ java.util.concurrent.Future removeNotificationChannelAsync( RemoveNotificationChannelRequest removeNotificationChannelRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* 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 . *

* * @param removePermissionRequest *
     *  The structure representing the <code>removePermissionRequest</code>.</p> 
     * @return A Java Future containing the result of the RemovePermission operation returned by the service.
     * @sample AmazonCodeGuruProfilerAsync.RemovePermission
     * @see AWS API Documentation
     */
    java.util.concurrent.Future removePermissionAsync(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 . *

* * @param removePermissionRequest *
     *  The structure representing the <code>removePermissionRequest</code>.</p> 
     * @param asyncHandler Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
     * @return A Java Future containing the result of the RemovePermission operation returned by the service.
     * @sample AmazonCodeGuruProfilerAsyncHandler.RemovePermission
     * @see AWS API Documentation
     */
    java.util.concurrent.Future removePermissionAsync(RemovePermissionRequest removePermissionRequest,
            com.amazonaws.handlers.AsyncHandler asyncHandler);

    /**
     * 

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

* * @param submitFeedbackRequest * The structure representing the SubmitFeedbackRequest. * @return A Java Future containing the result of the SubmitFeedback operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.SubmitFeedback * @see AWS API Documentation */ java.util.concurrent.Future submitFeedbackAsync(SubmitFeedbackRequest submitFeedbackRequest); /** *

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

* * @param submitFeedbackRequest * The structure representing the SubmitFeedbackRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the SubmitFeedback operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.SubmitFeedback * @see AWS API Documentation */ java.util.concurrent.Future submitFeedbackAsync(SubmitFeedbackRequest submitFeedbackRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Use to assign one or more tags to a resource. *

* * @param tagResourceRequest * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.TagResource * @see AWS * API Documentation */ java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest); /** *

* Use to assign one or more tags to a resource. *

* * @param tagResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.TagResource * @see AWS * API Documentation */ java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Use to remove one or more tags from a resource. *

* * @param untagResourceRequest * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.UntagResource * @see AWS * API Documentation */ java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest); /** *

* Use to remove one or more tags from a resource. *

* * @param untagResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.UntagResource * @see AWS * API Documentation */ java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Updates a profiling group. *

* * @param updateProfilingGroupRequest * The structure representing the updateProfilingGroupRequest. * @return A Java Future containing the result of the UpdateProfilingGroup operation returned by the service. * @sample AmazonCodeGuruProfilerAsync.UpdateProfilingGroup * @see AWS API Documentation */ java.util.concurrent.Future updateProfilingGroupAsync(UpdateProfilingGroupRequest updateProfilingGroupRequest); /** *

* Updates a profiling group. *

* * @param updateProfilingGroupRequest * The structure representing the updateProfilingGroupRequest. * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the UpdateProfilingGroup operation returned by the service. * @sample AmazonCodeGuruProfilerAsyncHandler.UpdateProfilingGroup * @see AWS API Documentation */ java.util.concurrent.Future updateProfilingGroupAsync(UpdateProfilingGroupRequest updateProfilingGroupRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy