forked from aws/aws-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAmazonCodeGuruProfiler.java
More file actions
347 lines (327 loc) · 16.2 KB
/
AmazonCodeGuruProfiler.java
File metadata and controls
347 lines (327 loc) · 16.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
/*
* Copyright 2015-2020 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.*;
import com.amazonaws.regions.*;
import com.amazonaws.services.codeguruprofiler.model.*;
/**
* Interface for accessing Amazon CodeGuru Profiler.
* <p>
* <b>Note:</b> Do not directly implement this interface, new methods are added to it regularly. Extend from
* {@link com.amazonaws.services.codeguruprofiler.AbstractAmazonCodeGuruProfiler} instead.
* </p>
* <p>
* <p>
* This section provides documentation for the Amazon CodeGuru Profiler API operations.
* </p>
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public interface AmazonCodeGuruProfiler {
/**
* The region metadata service name for computing region endpoints. You can use this value to retrieve metadata
* (such as supported regions) of the service.
*
* @see RegionUtils#getRegionsForService(String)
*/
String ENDPOINT_PREFIX = "codeguru-profiler";
/**
* <p/>
*
* @param configureAgentRequest
* The structure representing the configureAgentRequest.
* @return Result of the ConfigureAgent operation returned by the service.
* @throws InternalServerException
* The server encountered an internal error and is unable to complete the request.
* @throws ValidationException
* The parameter is not valid.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @throws ResourceNotFoundException
* The resource specified in the request does not exist.
* @sample AmazonCodeGuruProfiler.ConfigureAgent
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ConfigureAgent"
* target="_top">AWS API Documentation</a>
*/
ConfigureAgentResult configureAgent(ConfigureAgentRequest configureAgentRequest);
/**
* <p>
* Creates a profiling group.
* </p>
*
* @param createProfilingGroupRequest
* The structure representing the createProfiliingGroupRequest.
* @return Result of the CreateProfilingGroup operation returned by the service.
* @throws ServiceQuotaExceededException
* You have exceeded your service quota. To perform the requested action, remove some of the relevant
* resources, or use <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service
* Quotas</a> to request a service quota increase.
* @throws InternalServerException
* The server encountered an internal error and is unable to complete the request.
* @throws 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.
* @throws ValidationException
* The parameter is not valid.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @sample AmazonCodeGuruProfiler.CreateProfilingGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/CreateProfilingGroup"
* target="_top">AWS API Documentation</a>
*/
CreateProfilingGroupResult createProfilingGroup(CreateProfilingGroupRequest createProfilingGroupRequest);
/**
* <p>
* Deletes a profiling group.
* </p>
*
* @param deleteProfilingGroupRequest
* The structure representing the deleteProfilingGroupRequest.
* @return Result of the DeleteProfilingGroup operation returned by the service.
* @throws InternalServerException
* The server encountered an internal error and is unable to complete the request.
* @throws ValidationException
* The parameter is not valid.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @throws ResourceNotFoundException
* The resource specified in the request does not exist.
* @sample AmazonCodeGuruProfiler.DeleteProfilingGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/DeleteProfilingGroup"
* target="_top">AWS API Documentation</a>
*/
DeleteProfilingGroupResult deleteProfilingGroup(DeleteProfilingGroupRequest deleteProfilingGroupRequest);
/**
* <p>
* Describes a profiling group.
* </p>
*
* @param describeProfilingGroupRequest
* The structure representing the describeProfilingGroupRequest.
* @return Result of the DescribeProfilingGroup operation returned by the service.
* @throws InternalServerException
* The server encountered an internal error and is unable to complete the request.
* @throws ValidationException
* The parameter is not valid.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @throws ResourceNotFoundException
* The resource specified in the request does not exist.
* @sample AmazonCodeGuruProfiler.DescribeProfilingGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/DescribeProfilingGroup"
* target="_top">AWS API Documentation</a>
*/
DescribeProfilingGroupResult describeProfilingGroup(DescribeProfilingGroupRequest describeProfilingGroupRequest);
/**
* <p>
* Gets the profiling group policy.
* </p>
*
* @param getPolicyRequest
* The structure representing the getPolicyRequest.
* @return Result of the GetPolicy operation returned by the service.
* @throws InternalServerException
* The server encountered an internal error and is unable to complete the request.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @throws ResourceNotFoundException
* The resource specified in the request does not exist.
* @sample AmazonCodeGuruProfiler.GetPolicy
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/GetPolicy" target="_top">AWS API
* Documentation</a>
*/
GetPolicyResult getPolicy(GetPolicyRequest getPolicyRequest);
/**
* <p>
* Gets the aggregated profile of a profiling group for the specified time range. If the requested time range does
* not align with the available aggregated profiles, it is expanded to attain alignment. If aggregated profiles are
* available only for part of the period requested, the profile is returned from the earliest available to the
* latest within the requested time range.
* </p>
* <p>
* For example, if the requested time range is from 00:00 to 00:20 and the available profiles are from 00:15 to
* 00:25, the returned profile will be from 00:15 to 00:20.
* </p>
* <p>
* You must specify exactly two of the following parameters: <code>startTime</code>, <code>period</code>, and
* <code>endTime</code>.
* </p>
*
* @param getProfileRequest
* The structure representing the getProfileRequest.
* @return Result of the GetProfile operation returned by the service.
* @throws InternalServerException
* The server encountered an internal error and is unable to complete the request.
* @throws ValidationException
* The parameter is not valid.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @throws ResourceNotFoundException
* The resource specified in the request does not exist.
* @sample AmazonCodeGuruProfiler.GetProfile
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/GetProfile" target="_top">AWS
* API Documentation</a>
*/
GetProfileResult getProfile(GetProfileRequest getProfileRequest);
/**
* <p>
* List the start times of the available aggregated profiles of a profiling group for an aggregation period within
* the specified time range.
* </p>
*
* @param listProfileTimesRequest
* The structure representing the listProfileTimesRequest.
* @return Result of the ListProfileTimes operation returned by the service.
* @throws InternalServerException
* The server encountered an internal error and is unable to complete the request.
* @throws ValidationException
* The parameter is not valid.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @throws ResourceNotFoundException
* The resource specified in the request does not exist.
* @sample AmazonCodeGuruProfiler.ListProfileTimes
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ListProfileTimes"
* target="_top">AWS API Documentation</a>
*/
ListProfileTimesResult listProfileTimes(ListProfileTimesRequest listProfileTimesRequest);
/**
* <p>
* Lists profiling groups.
* </p>
*
* @param listProfilingGroupsRequest
* The structure representing the listProfilingGroupsRequest.
* @return Result of the ListProfilingGroups operation returned by the service.
* @throws InternalServerException
* The server encountered an internal error and is unable to complete the request.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @sample AmazonCodeGuruProfiler.ListProfilingGroups
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ListProfilingGroups"
* target="_top">AWS API Documentation</a>
*/
ListProfilingGroupsResult listProfilingGroups(ListProfilingGroupsRequest listProfilingGroupsRequest);
/**
* <p/>
*
* @param postAgentProfileRequest
* The structure representing the postAgentProfileRequest.
* @return Result of the PostAgentProfile operation returned by the service.
* @throws InternalServerException
* The server encountered an internal error and is unable to complete the request.
* @throws ValidationException
* The parameter is not valid.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @throws ResourceNotFoundException
* The resource specified in the request does not exist.
* @sample AmazonCodeGuruProfiler.PostAgentProfile
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/PostAgentProfile"
* target="_top">AWS API Documentation</a>
*/
PostAgentProfileResult postAgentProfile(PostAgentProfileRequest postAgentProfileRequest);
/**
* <p>
* Provides permission to the principals. This overwrites the existing permissions, and is not additive.
* </p>
*
* @param putPermissionRequest
* The structure representing the putPermissionRequest.
* @return Result of the PutPermission operation returned by the service.
* @throws InternalServerException
* The server encountered an internal error and is unable to complete the request.
* @throws 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.
* @throws ValidationException
* The parameter is not valid.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @throws ResourceNotFoundException
* The resource specified in the request does not exist.
* @sample AmazonCodeGuruProfiler.PutPermission
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/PutPermission" target="_top">AWS
* API Documentation</a>
*/
PutPermissionResult putPermission(PutPermissionRequest putPermissionRequest);
/**
* <p>
* Removes statement for the provided action group from the policy.
* </p>
*
* @param removePermissionRequest
* The structure representing the removePermissionRequest.
* @return Result of the RemovePermission operation returned by the service.
* @throws InternalServerException
* The server encountered an internal error and is unable to complete the request.
* @throws 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.
* @throws ValidationException
* The parameter is not valid.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @throws ResourceNotFoundException
* The resource specified in the request does not exist.
* @sample AmazonCodeGuruProfiler.RemovePermission
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/RemovePermission"
* target="_top">AWS API Documentation</a>
*/
RemovePermissionResult removePermission(RemovePermissionRequest removePermissionRequest);
/**
* <p>
* Updates a profiling group.
* </p>
*
* @param updateProfilingGroupRequest
* The structure representing the updateProfilingGroupRequest.
* @return Result of the UpdateProfilingGroup operation returned by the service.
* @throws InternalServerException
* The server encountered an internal error and is unable to complete the request.
* @throws 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.
* @throws ValidationException
* The parameter is not valid.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @throws ResourceNotFoundException
* The resource specified in the request does not exist.
* @sample AmazonCodeGuruProfiler.UpdateProfilingGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/UpdateProfilingGroup"
* target="_top">AWS API Documentation</a>
*/
UpdateProfilingGroupResult updateProfilingGroup(UpdateProfilingGroupRequest updateProfilingGroupRequest);
/**
* Shuts down this client object, releasing any resources that might be held open. This is an optional method, and
* callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client
* has been shutdown, it should not be used to make any more requests.
*/
void shutdown();
/**
* Returns additional metadata for a previously executed successful request, typically used for debugging issues
* where a service isn't acting as expected. This data isn't considered part of the result data returned by an
* operation, so it's available through this separate, diagnostic interface.
* <p>
* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic
* information for an executed request, you should use this method to retrieve it as soon as possible after
* executing a request.
*
* @param request
* The originally executed request.
*
* @return The response metadata for the specified request, or null if none is available.
*/
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request);
}