forked from aws/aws-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAWSCloudControlApiAsync.java
More file actions
417 lines (397 loc) · 23.4 KB
/
AWSCloudControlApiAsync.java
File metadata and controls
417 lines (397 loc) · 23.4 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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
/*
* Copyright 2017-2022 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.cloudcontrolapi;
import javax.annotation.Generated;
import com.amazonaws.services.cloudcontrolapi.model.*;
/**
* Interface for accessing CloudControlApi 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.
* <p>
* <b>Note:</b> Do not directly implement this interface, new methods are added to it regularly. Extend from
* {@link com.amazonaws.services.cloudcontrolapi.AbstractAWSCloudControlApiAsync} instead.
* </p>
* <p>
* <p>
* For more information about Amazon Web Services Cloud Control API, see the <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/what-is-cloudcontrolapi.html">Amazon Web Services
* Cloud Control API User Guide</a>.
* </p>
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public interface AWSCloudControlApiAsync extends AWSCloudControlApi {
/**
* <p>
* Cancels the specified resource operation request. For more information, see <a href=
* "https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-cancel"
* >Canceling resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
* </p>
* <p>
* Only resource operations requests with a status of <code>PENDING</code> or <code>IN_PROGRESS</code> can be
* canceled.
* </p>
*
* @param cancelResourceRequestRequest
* @return A Java Future containing the result of the CancelResourceRequest operation returned by the service.
* @sample AWSCloudControlApiAsync.CancelResourceRequest
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest"
* target="_top">AWS API Documentation</a>
*/
java.util.concurrent.Future<CancelResourceRequestResult> cancelResourceRequestAsync(CancelResourceRequestRequest cancelResourceRequestRequest);
/**
* <p>
* Cancels the specified resource operation request. For more information, see <a href=
* "https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-cancel"
* >Canceling resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
* </p>
* <p>
* Only resource operations requests with a status of <code>PENDING</code> or <code>IN_PROGRESS</code> can be
* canceled.
* </p>
*
* @param cancelResourceRequestRequest
* @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 CancelResourceRequest operation returned by the service.
* @sample AWSCloudControlApiAsyncHandler.CancelResourceRequest
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest"
* target="_top">AWS API Documentation</a>
*/
java.util.concurrent.Future<CancelResourceRequestResult> cancelResourceRequestAsync(CancelResourceRequestRequest cancelResourceRequestRequest,
com.amazonaws.handlers.AsyncHandler<CancelResourceRequestRequest, CancelResourceRequestResult> asyncHandler);
/**
* <p>
* Creates the specified resource. For more information, see <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html">Creating a
* resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
* </p>
* <p>
* After you have initiated a resource creation request, you can monitor the progress of your request by calling <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">
* GetResourceRequestStatus</a> using the <code>RequestToken</code> of the <code>ProgressEvent</code> type returned
* by <code>CreateResource</code>.
* </p>
*
* @param createResourceRequest
* @return A Java Future containing the result of the CreateResource operation returned by the service.
* @sample AWSCloudControlApiAsync.CreateResource
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource" target="_top">AWS
* API Documentation</a>
*/
java.util.concurrent.Future<CreateResourceResult> createResourceAsync(CreateResourceRequest createResourceRequest);
/**
* <p>
* Creates the specified resource. For more information, see <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html">Creating a
* resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
* </p>
* <p>
* After you have initiated a resource creation request, you can monitor the progress of your request by calling <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">
* GetResourceRequestStatus</a> using the <code>RequestToken</code> of the <code>ProgressEvent</code> type returned
* by <code>CreateResource</code>.
* </p>
*
* @param createResourceRequest
* @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 CreateResource operation returned by the service.
* @sample AWSCloudControlApiAsyncHandler.CreateResource
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource" target="_top">AWS
* API Documentation</a>
*/
java.util.concurrent.Future<CreateResourceResult> createResourceAsync(CreateResourceRequest createResourceRequest,
com.amazonaws.handlers.AsyncHandler<CreateResourceRequest, CreateResourceResult> asyncHandler);
/**
* <p>
* Deletes the specified resource. For details, see <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-delete.html">Deleting a
* resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
* </p>
* <p>
* After you have initiated a resource deletion request, you can monitor the progress of your request by calling <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">
* GetResourceRequestStatus</a> using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by
* <code>DeleteResource</code>.
* </p>
*
* @param deleteResourceRequest
* @return A Java Future containing the result of the DeleteResource operation returned by the service.
* @sample AWSCloudControlApiAsync.DeleteResource
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource" target="_top">AWS
* API Documentation</a>
*/
java.util.concurrent.Future<DeleteResourceResult> deleteResourceAsync(DeleteResourceRequest deleteResourceRequest);
/**
* <p>
* Deletes the specified resource. For details, see <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-delete.html">Deleting a
* resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
* </p>
* <p>
* After you have initiated a resource deletion request, you can monitor the progress of your request by calling <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">
* GetResourceRequestStatus</a> using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by
* <code>DeleteResource</code>.
* </p>
*
* @param deleteResourceRequest
* @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 DeleteResource operation returned by the service.
* @sample AWSCloudControlApiAsyncHandler.DeleteResource
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource" target="_top">AWS
* API Documentation</a>
*/
java.util.concurrent.Future<DeleteResourceResult> deleteResourceAsync(DeleteResourceRequest deleteResourceRequest,
com.amazonaws.handlers.AsyncHandler<DeleteResourceRequest, DeleteResourceResult> asyncHandler);
/**
* <p>
* Returns information about the current state of the specified resource. For details, see <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html">Reading a
* resource's current state</a>.
* </p>
* <p>
* You can use this action to return information about an existing resource in your account and Amazon Web Services
* Region, whether those resources were provisioned using Cloud Control API.
* </p>
*
* @param getResourceRequest
* @return A Java Future containing the result of the GetResource operation returned by the service.
* @sample AWSCloudControlApiAsync.GetResource
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource" target="_top">AWS API
* Documentation</a>
*/
java.util.concurrent.Future<GetResourceResult> getResourceAsync(GetResourceRequest getResourceRequest);
/**
* <p>
* Returns information about the current state of the specified resource. For details, see <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html">Reading a
* resource's current state</a>.
* </p>
* <p>
* You can use this action to return information about an existing resource in your account and Amazon Web Services
* Region, whether those resources were provisioned using Cloud Control API.
* </p>
*
* @param getResourceRequest
* @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 GetResource operation returned by the service.
* @sample AWSCloudControlApiAsyncHandler.GetResource
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource" target="_top">AWS API
* Documentation</a>
*/
java.util.concurrent.Future<GetResourceResult> getResourceAsync(GetResourceRequest getResourceRequest,
com.amazonaws.handlers.AsyncHandler<GetResourceRequest, GetResourceResult> asyncHandler);
/**
* <p>
* Returns the current status of a resource operation request. For more information, see <a href=
* "https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track"
* >Tracking the progress of resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User
* Guide</i>.
* </p>
*
* @param getResourceRequestStatusRequest
* @return A Java Future containing the result of the GetResourceRequestStatus operation returned by the service.
* @sample AWSCloudControlApiAsync.GetResourceRequestStatus
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus"
* target="_top">AWS API Documentation</a>
*/
java.util.concurrent.Future<GetResourceRequestStatusResult> getResourceRequestStatusAsync(GetResourceRequestStatusRequest getResourceRequestStatusRequest);
/**
* <p>
* Returns the current status of a resource operation request. For more information, see <a href=
* "https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track"
* >Tracking the progress of resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User
* Guide</i>.
* </p>
*
* @param getResourceRequestStatusRequest
* @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 GetResourceRequestStatus operation returned by the service.
* @sample AWSCloudControlApiAsyncHandler.GetResourceRequestStatus
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus"
* target="_top">AWS API Documentation</a>
*/
java.util.concurrent.Future<GetResourceRequestStatusResult> getResourceRequestStatusAsync(GetResourceRequestStatusRequest getResourceRequestStatusRequest,
com.amazonaws.handlers.AsyncHandler<GetResourceRequestStatusRequest, GetResourceRequestStatusResult> asyncHandler);
/**
* <p>
* Returns existing resource operation requests. This includes requests of all status types. For more information,
* see <a href=
* "https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list"
* >Listing active resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
* </p>
* <note>
* <p>
* Resource operation requests expire after 7 days.
* </p>
* </note>
*
* @param listResourceRequestsRequest
* @return A Java Future containing the result of the ListResourceRequests operation returned by the service.
* @sample AWSCloudControlApiAsync.ListResourceRequests
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests"
* target="_top">AWS API Documentation</a>
*/
java.util.concurrent.Future<ListResourceRequestsResult> listResourceRequestsAsync(ListResourceRequestsRequest listResourceRequestsRequest);
/**
* <p>
* Returns existing resource operation requests. This includes requests of all status types. For more information,
* see <a href=
* "https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list"
* >Listing active resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
* </p>
* <note>
* <p>
* Resource operation requests expire after 7 days.
* </p>
* </note>
*
* @param listResourceRequestsRequest
* @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 ListResourceRequests operation returned by the service.
* @sample AWSCloudControlApiAsyncHandler.ListResourceRequests
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests"
* target="_top">AWS API Documentation</a>
*/
java.util.concurrent.Future<ListResourceRequestsResult> listResourceRequestsAsync(ListResourceRequestsRequest listResourceRequestsRequest,
com.amazonaws.handlers.AsyncHandler<ListResourceRequestsRequest, ListResourceRequestsResult> asyncHandler);
/**
* <p>
* Returns information about the specified resources. For more information, see <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html">Discovering
* resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
* </p>
* <p>
* You can use this action to return information about existing resources in your account and Amazon Web Services
* Region, whether those resources were provisioned using Cloud Control API.
* </p>
*
* @param listResourcesRequest
* @return A Java Future containing the result of the ListResources operation returned by the service.
* @sample AWSCloudControlApiAsync.ListResources
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources" target="_top">AWS API
* Documentation</a>
*/
java.util.concurrent.Future<ListResourcesResult> listResourcesAsync(ListResourcesRequest listResourcesRequest);
/**
* <p>
* Returns information about the specified resources. For more information, see <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html">Discovering
* resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
* </p>
* <p>
* You can use this action to return information about existing resources in your account and Amazon Web Services
* Region, whether those resources were provisioned using Cloud Control API.
* </p>
*
* @param listResourcesRequest
* @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 ListResources operation returned by the service.
* @sample AWSCloudControlApiAsyncHandler.ListResources
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources" target="_top">AWS API
* Documentation</a>
*/
java.util.concurrent.Future<ListResourcesResult> listResourcesAsync(ListResourcesRequest listResourcesRequest,
com.amazonaws.handlers.AsyncHandler<ListResourcesRequest, ListResourcesResult> asyncHandler);
/**
* <p>
* Updates the specified property values in the resource.
* </p>
* <p>
* You specify your resource property updates as a list of patch operations contained in a JSON patch document that
* adheres to the <a href="https://datatracker.ietf.org/doc/html/rfc6902"> <i>RFC 6902 - JavaScript Object Notation
* (JSON) Patch</i> </a> standard.
* </p>
* <p>
* For details on how Cloud Control API performs resource update operations, see <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html">Updating a
* resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
* </p>
* <p>
* After you have initiated a resource update request, you can monitor the progress of your request by calling <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">
* GetResourceRequestStatus</a> using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by
* <code>UpdateResource</code>.
* </p>
* <p>
* For more information about the properties of a specific resource, refer to the related topic for the resource in
* the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">
* Resource and property types reference</a> in the <i>CloudFormation Users Guide</i>.
* </p>
*
* @param updateResourceRequest
* @return A Java Future containing the result of the UpdateResource operation returned by the service.
* @sample AWSCloudControlApiAsync.UpdateResource
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource" target="_top">AWS
* API Documentation</a>
*/
java.util.concurrent.Future<UpdateResourceResult> updateResourceAsync(UpdateResourceRequest updateResourceRequest);
/**
* <p>
* Updates the specified property values in the resource.
* </p>
* <p>
* You specify your resource property updates as a list of patch operations contained in a JSON patch document that
* adheres to the <a href="https://datatracker.ietf.org/doc/html/rfc6902"> <i>RFC 6902 - JavaScript Object Notation
* (JSON) Patch</i> </a> standard.
* </p>
* <p>
* For details on how Cloud Control API performs resource update operations, see <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html">Updating a
* resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
* </p>
* <p>
* After you have initiated a resource update request, you can monitor the progress of your request by calling <a
* href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">
* GetResourceRequestStatus</a> using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by
* <code>UpdateResource</code>.
* </p>
* <p>
* For more information about the properties of a specific resource, refer to the related topic for the resource in
* the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">
* Resource and property types reference</a> in the <i>CloudFormation Users Guide</i>.
* </p>
*
* @param updateResourceRequest
* @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 UpdateResource operation returned by the service.
* @sample AWSCloudControlApiAsyncHandler.UpdateResource
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource" target="_top">AWS
* API Documentation</a>
*/
java.util.concurrent.Future<UpdateResourceResult> updateResourceAsync(UpdateResourceRequest updateResourceRequest,
com.amazonaws.handlers.AsyncHandler<UpdateResourceRequest, UpdateResourceResult> asyncHandler);
}