@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSResourceGroupsAsyncClient extends AWSResourceGroupsClient implements AWSResourceGroupsAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
AWS Resource Groups lets you organize AWS resources such as Amazon EC2 instances, Amazon Relational Database Service databases, and Amazon S3 buckets into groups using criteria that you define as tags. A resource group is a collection of resources that match the resource types specified in a query, and share one or more tags or portions of tags. You can create a group of resources based on their roles in your cloud infrastructure, lifecycle stages, regions, application layers, or virtually any criteria. Resource groups enable you to automate management tasks, such as those in AWS Systems Manager Automation documents, on tag-related resources in AWS Systems Manager. Groups of tagged resources also let you quickly view a custom console in AWS Systems Manager that shows AWS Config compliance and other monitoring data about member resources.
To create a resource group, build a resource query, and specify tags that identify the criteria that members of the group have in common. Tags are key-value pairs.
For more information about Resource Groups, see the AWS Resource Groups User Guide.
AWS Resource Groups uses a REST-compliant API that you can use to perform the following types of operations.
Create, Read, Update, and Delete (CRUD) operations on resource groups and resource query entities
Applying, editing, and removing tags from resource groups
Resolving resource group member ARNs so they can be returned as search results
Getting data about resources that are members of a group
Searching AWS resources based on a resource query
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSResourceGroupsAsyncClientBuilder |
asyncBuilder() |
Future<CreateGroupResult> |
createGroupAsync(CreateGroupRequest request)
Creates a group with a specified name, description, and resource query.
|
Future<CreateGroupResult> |
createGroupAsync(CreateGroupRequest request,
AsyncHandler<CreateGroupRequest,CreateGroupResult> asyncHandler)
Creates a group with a specified name, description, and resource query.
|
Future<DeleteGroupResult> |
deleteGroupAsync(DeleteGroupRequest request)
Deletes a specified resource group.
|
Future<DeleteGroupResult> |
deleteGroupAsync(DeleteGroupRequest request,
AsyncHandler<DeleteGroupRequest,DeleteGroupResult> asyncHandler)
Deletes a specified resource group.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetGroupResult> |
getGroupAsync(GetGroupRequest request)
Returns information about a specified resource group.
|
Future<GetGroupResult> |
getGroupAsync(GetGroupRequest request,
AsyncHandler<GetGroupRequest,GetGroupResult> asyncHandler)
Returns information about a specified resource group.
|
Future<GetGroupQueryResult> |
getGroupQueryAsync(GetGroupQueryRequest request)
Returns the resource query associated with the specified resource group.
|
Future<GetGroupQueryResult> |
getGroupQueryAsync(GetGroupQueryRequest request,
AsyncHandler<GetGroupQueryRequest,GetGroupQueryResult> asyncHandler)
Returns the resource query associated with the specified resource group.
|
Future<GetTagsResult> |
getTagsAsync(GetTagsRequest request)
Returns a list of tags that are associated with a resource group, specified by an ARN.
|
Future<GetTagsResult> |
getTagsAsync(GetTagsRequest request,
AsyncHandler<GetTagsRequest,GetTagsResult> asyncHandler)
Returns a list of tags that are associated with a resource group, specified by an ARN.
|
Future<ListGroupResourcesResult> |
listGroupResourcesAsync(ListGroupResourcesRequest request)
Returns a list of ARNs of resources that are members of a specified resource group.
|
Future<ListGroupResourcesResult> |
listGroupResourcesAsync(ListGroupResourcesRequest request,
AsyncHandler<ListGroupResourcesRequest,ListGroupResourcesResult> asyncHandler)
Returns a list of ARNs of resources that are members of a specified resource group.
|
Future<ListGroupsResult> |
listGroupsAsync(ListGroupsRequest request)
Returns a list of existing resource groups in your account.
|
Future<ListGroupsResult> |
listGroupsAsync(ListGroupsRequest request,
AsyncHandler<ListGroupsRequest,ListGroupsResult> asyncHandler)
Returns a list of existing resource groups in your account.
|
Future<SearchResourcesResult> |
searchResourcesAsync(SearchResourcesRequest request)
Returns a list of AWS resource identifiers that matches a specified query.
|
Future<SearchResourcesResult> |
searchResourcesAsync(SearchResourcesRequest request,
AsyncHandler<SearchResourcesRequest,SearchResourcesResult> asyncHandler)
Returns a list of AWS resource identifiers that matches a specified query.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<TagResult> |
tagAsync(TagRequest request)
Adds tags to a resource group with the specified ARN.
|
Future<TagResult> |
tagAsync(TagRequest request,
AsyncHandler<TagRequest,TagResult> asyncHandler)
Adds tags to a resource group with the specified ARN.
|
Future<UntagResult> |
untagAsync(UntagRequest request)
Deletes specified tags from a specified resource.
|
Future<UntagResult> |
untagAsync(UntagRequest request,
AsyncHandler<UntagRequest,UntagResult> asyncHandler)
Deletes specified tags from a specified resource.
|
Future<UpdateGroupResult> |
updateGroupAsync(UpdateGroupRequest request)
Updates an existing group with a new or changed description.
|
Future<UpdateGroupResult> |
updateGroupAsync(UpdateGroupRequest request,
AsyncHandler<UpdateGroupRequest,UpdateGroupResult> asyncHandler)
Updates an existing group with a new or changed description.
|
Future<UpdateGroupQueryResult> |
updateGroupQueryAsync(UpdateGroupQueryRequest request)
Updates the resource query of a group.
|
Future<UpdateGroupQueryResult> |
updateGroupQueryAsync(UpdateGroupQueryRequest request,
AsyncHandler<UpdateGroupQueryRequest,UpdateGroupQueryResult> asyncHandler)
Updates the resource query of a group.
|
builder, createGroup, deleteGroup, getCachedResponseMetadata, getGroup, getGroupQuery, getTags, listGroupResources, listGroups, searchResources, tag, untag, updateGroup, updateGroupQuery
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createGroup, deleteGroup, getCachedResponseMetadata, getGroup, getGroupQuery, getTags, listGroupResources, listGroups, searchResources, tag, untag, updateGroup, updateGroupQuery
public static AWSResourceGroupsAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateGroupResult> createGroupAsync(CreateGroupRequest request)
AWSResourceGroupsAsync
Creates a group with a specified name, description, and resource query.
createGroupAsync
in interface AWSResourceGroupsAsync
public Future<CreateGroupResult> createGroupAsync(CreateGroupRequest request, AsyncHandler<CreateGroupRequest,CreateGroupResult> asyncHandler)
AWSResourceGroupsAsync
Creates a group with a specified name, description, and resource query.
createGroupAsync
in interface AWSResourceGroupsAsync
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.public Future<DeleteGroupResult> deleteGroupAsync(DeleteGroupRequest request)
AWSResourceGroupsAsync
Deletes a specified resource group. Deleting a resource group does not delete resources that are members of the group; it only deletes the group structure.
deleteGroupAsync
in interface AWSResourceGroupsAsync
public Future<DeleteGroupResult> deleteGroupAsync(DeleteGroupRequest request, AsyncHandler<DeleteGroupRequest,DeleteGroupResult> asyncHandler)
AWSResourceGroupsAsync
Deletes a specified resource group. Deleting a resource group does not delete resources that are members of the group; it only deletes the group structure.
deleteGroupAsync
in interface AWSResourceGroupsAsync
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.public Future<GetGroupResult> getGroupAsync(GetGroupRequest request)
AWSResourceGroupsAsync
Returns information about a specified resource group.
getGroupAsync
in interface AWSResourceGroupsAsync
public Future<GetGroupResult> getGroupAsync(GetGroupRequest request, AsyncHandler<GetGroupRequest,GetGroupResult> asyncHandler)
AWSResourceGroupsAsync
Returns information about a specified resource group.
getGroupAsync
in interface AWSResourceGroupsAsync
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.public Future<GetGroupQueryResult> getGroupQueryAsync(GetGroupQueryRequest request)
AWSResourceGroupsAsync
Returns the resource query associated with the specified resource group.
getGroupQueryAsync
in interface AWSResourceGroupsAsync
public Future<GetGroupQueryResult> getGroupQueryAsync(GetGroupQueryRequest request, AsyncHandler<GetGroupQueryRequest,GetGroupQueryResult> asyncHandler)
AWSResourceGroupsAsync
Returns the resource query associated with the specified resource group.
getGroupQueryAsync
in interface AWSResourceGroupsAsync
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.public Future<GetTagsResult> getTagsAsync(GetTagsRequest request)
AWSResourceGroupsAsync
Returns a list of tags that are associated with a resource group, specified by an ARN.
getTagsAsync
in interface AWSResourceGroupsAsync
public Future<GetTagsResult> getTagsAsync(GetTagsRequest request, AsyncHandler<GetTagsRequest,GetTagsResult> asyncHandler)
AWSResourceGroupsAsync
Returns a list of tags that are associated with a resource group, specified by an ARN.
getTagsAsync
in interface AWSResourceGroupsAsync
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.public Future<ListGroupResourcesResult> listGroupResourcesAsync(ListGroupResourcesRequest request)
AWSResourceGroupsAsync
Returns a list of ARNs of resources that are members of a specified resource group.
listGroupResourcesAsync
in interface AWSResourceGroupsAsync
public Future<ListGroupResourcesResult> listGroupResourcesAsync(ListGroupResourcesRequest request, AsyncHandler<ListGroupResourcesRequest,ListGroupResourcesResult> asyncHandler)
AWSResourceGroupsAsync
Returns a list of ARNs of resources that are members of a specified resource group.
listGroupResourcesAsync
in interface AWSResourceGroupsAsync
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.public Future<ListGroupsResult> listGroupsAsync(ListGroupsRequest request)
AWSResourceGroupsAsync
Returns a list of existing resource groups in your account.
listGroupsAsync
in interface AWSResourceGroupsAsync
public Future<ListGroupsResult> listGroupsAsync(ListGroupsRequest request, AsyncHandler<ListGroupsRequest,ListGroupsResult> asyncHandler)
AWSResourceGroupsAsync
Returns a list of existing resource groups in your account.
listGroupsAsync
in interface AWSResourceGroupsAsync
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.public Future<SearchResourcesResult> searchResourcesAsync(SearchResourcesRequest request)
AWSResourceGroupsAsync
Returns a list of AWS resource identifiers that matches a specified query. The query uses the same format as a resource query in a CreateGroup or UpdateGroupQuery operation.
searchResourcesAsync
in interface AWSResourceGroupsAsync
public Future<SearchResourcesResult> searchResourcesAsync(SearchResourcesRequest request, AsyncHandler<SearchResourcesRequest,SearchResourcesResult> asyncHandler)
AWSResourceGroupsAsync
Returns a list of AWS resource identifiers that matches a specified query. The query uses the same format as a resource query in a CreateGroup or UpdateGroupQuery operation.
searchResourcesAsync
in interface AWSResourceGroupsAsync
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.public Future<TagResult> tagAsync(TagRequest request)
AWSResourceGroupsAsync
Adds tags to a resource group with the specified ARN. Existing tags on a resource group are not changed if they are not specified in the request parameters.
tagAsync
in interface AWSResourceGroupsAsync
public Future<TagResult> tagAsync(TagRequest request, AsyncHandler<TagRequest,TagResult> asyncHandler)
AWSResourceGroupsAsync
Adds tags to a resource group with the specified ARN. Existing tags on a resource group are not changed if they are not specified in the request parameters.
tagAsync
in interface AWSResourceGroupsAsync
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.public Future<UntagResult> untagAsync(UntagRequest request)
AWSResourceGroupsAsync
Deletes specified tags from a specified resource.
untagAsync
in interface AWSResourceGroupsAsync
public Future<UntagResult> untagAsync(UntagRequest request, AsyncHandler<UntagRequest,UntagResult> asyncHandler)
AWSResourceGroupsAsync
Deletes specified tags from a specified resource.
untagAsync
in interface AWSResourceGroupsAsync
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.public Future<UpdateGroupResult> updateGroupAsync(UpdateGroupRequest request)
AWSResourceGroupsAsync
Updates an existing group with a new or changed description. You cannot update the name of a resource group.
updateGroupAsync
in interface AWSResourceGroupsAsync
public Future<UpdateGroupResult> updateGroupAsync(UpdateGroupRequest request, AsyncHandler<UpdateGroupRequest,UpdateGroupResult> asyncHandler)
AWSResourceGroupsAsync
Updates an existing group with a new or changed description. You cannot update the name of a resource group.
updateGroupAsync
in interface AWSResourceGroupsAsync
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.public Future<UpdateGroupQueryResult> updateGroupQueryAsync(UpdateGroupQueryRequest request)
AWSResourceGroupsAsync
Updates the resource query of a group.
updateGroupQueryAsync
in interface AWSResourceGroupsAsync
public Future<UpdateGroupQueryResult> updateGroupQueryAsync(UpdateGroupQueryRequest request, AsyncHandler<UpdateGroupQueryRequest,UpdateGroupQueryResult> asyncHandler)
AWSResourceGroupsAsync
Updates the resource query of a group.
updateGroupQueryAsync
in interface AWSResourceGroupsAsync
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.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSResourceGroups
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.