@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSAccessAnalyzerAsyncClient extends AWSAccessAnalyzerClient implements AWSAccessAnalyzerAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
AWS IAM Access Analyzer helps identify potential resource-access risks by enabling you to identify any policies that grant access to an external principal. It does this by using logic-based reasoning to analyze resource-based policies in your AWS environment. An external principal can be another AWS account, a root user, an IAM user or role, a federated user, an AWS service, or an anonymous user. This guide describes the AWS IAM Access Analyzer operations that you can call programmatically. For general information about Access Analyzer, see AWS IAM Access Analyzer in the IAM User Guide.
To start using Access Analyzer, you first need to create an analyzer.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
applyArchiveRule, builder, createAnalyzer, createArchiveRule, deleteAnalyzer, deleteArchiveRule, getAnalyzedResource, getAnalyzer, getArchiveRule, getCachedResponseMetadata, getFinding, listAnalyzedResources, listAnalyzers, listArchiveRules, listFindings, listTagsForResource, startResourceScan, tagResource, untagResource, updateArchiveRule, updateFindings
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
applyArchiveRule, createAnalyzer, createArchiveRule, deleteAnalyzer, deleteArchiveRule, getAnalyzedResource, getAnalyzer, getArchiveRule, getCachedResponseMetadata, getFinding, listAnalyzedResources, listAnalyzers, listArchiveRules, listFindings, listTagsForResource, startResourceScan, tagResource, untagResource, updateArchiveRule, updateFindings
public static AWSAccessAnalyzerAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<ApplyArchiveRuleResult> applyArchiveRuleAsync(ApplyArchiveRuleRequest request)
AWSAccessAnalyzerAsync
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
applyArchiveRuleAsync
in interface AWSAccessAnalyzerAsync
request
- Retroactively applies an archive rule.public Future<ApplyArchiveRuleResult> applyArchiveRuleAsync(ApplyArchiveRuleRequest request, AsyncHandler<ApplyArchiveRuleRequest,ApplyArchiveRuleResult> asyncHandler)
AWSAccessAnalyzerAsync
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
applyArchiveRuleAsync
in interface AWSAccessAnalyzerAsync
request
- Retroactively applies an archive rule.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<CreateAnalyzerResult> createAnalyzerAsync(CreateAnalyzerRequest request)
AWSAccessAnalyzerAsync
Creates an analyzer for your account.
createAnalyzerAsync
in interface AWSAccessAnalyzerAsync
request
- Creates an analyzer.public Future<CreateAnalyzerResult> createAnalyzerAsync(CreateAnalyzerRequest request, AsyncHandler<CreateAnalyzerRequest,CreateAnalyzerResult> asyncHandler)
AWSAccessAnalyzerAsync
Creates an analyzer for your account.
createAnalyzerAsync
in interface AWSAccessAnalyzerAsync
request
- Creates an analyzer.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<CreateArchiveRuleResult> createArchiveRuleAsync(CreateArchiveRuleRequest request)
AWSAccessAnalyzerAsync
Creates an archive rule for the specified analyzer. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.
createArchiveRuleAsync
in interface AWSAccessAnalyzerAsync
request
- Creates an archive rule.public Future<CreateArchiveRuleResult> createArchiveRuleAsync(CreateArchiveRuleRequest request, AsyncHandler<CreateArchiveRuleRequest,CreateArchiveRuleResult> asyncHandler)
AWSAccessAnalyzerAsync
Creates an archive rule for the specified analyzer. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.
createArchiveRuleAsync
in interface AWSAccessAnalyzerAsync
request
- Creates an archive rule.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<DeleteAnalyzerResult> deleteAnalyzerAsync(DeleteAnalyzerRequest request)
AWSAccessAnalyzerAsync
Deletes the specified analyzer. When you delete an analyzer, Access Analyzer is disabled for the account in the current or specific Region. All findings that were generated by the analyzer are deleted. You cannot undo this action.
deleteAnalyzerAsync
in interface AWSAccessAnalyzerAsync
request
- Deletes an analyzer.public Future<DeleteAnalyzerResult> deleteAnalyzerAsync(DeleteAnalyzerRequest request, AsyncHandler<DeleteAnalyzerRequest,DeleteAnalyzerResult> asyncHandler)
AWSAccessAnalyzerAsync
Deletes the specified analyzer. When you delete an analyzer, Access Analyzer is disabled for the account in the current or specific Region. All findings that were generated by the analyzer are deleted. You cannot undo this action.
deleteAnalyzerAsync
in interface AWSAccessAnalyzerAsync
request
- Deletes an analyzer.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<DeleteArchiveRuleResult> deleteArchiveRuleAsync(DeleteArchiveRuleRequest request)
AWSAccessAnalyzerAsync
Deletes the specified archive rule.
deleteArchiveRuleAsync
in interface AWSAccessAnalyzerAsync
request
- Deletes an archive rule.public Future<DeleteArchiveRuleResult> deleteArchiveRuleAsync(DeleteArchiveRuleRequest request, AsyncHandler<DeleteArchiveRuleRequest,DeleteArchiveRuleResult> asyncHandler)
AWSAccessAnalyzerAsync
Deletes the specified archive rule.
deleteArchiveRuleAsync
in interface AWSAccessAnalyzerAsync
request
- Deletes an archive rule.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<GetAnalyzedResourceResult> getAnalyzedResourceAsync(GetAnalyzedResourceRequest request)
AWSAccessAnalyzerAsync
Retrieves information about a resource that was analyzed.
getAnalyzedResourceAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves an analyzed resource.public Future<GetAnalyzedResourceResult> getAnalyzedResourceAsync(GetAnalyzedResourceRequest request, AsyncHandler<GetAnalyzedResourceRequest,GetAnalyzedResourceResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves information about a resource that was analyzed.
getAnalyzedResourceAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves an analyzed resource.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<GetAnalyzerResult> getAnalyzerAsync(GetAnalyzerRequest request)
AWSAccessAnalyzerAsync
Retrieves information about the specified analyzer.
getAnalyzerAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves an analyzer.public Future<GetAnalyzerResult> getAnalyzerAsync(GetAnalyzerRequest request, AsyncHandler<GetAnalyzerRequest,GetAnalyzerResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves information about the specified analyzer.
getAnalyzerAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves an analyzer.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<GetArchiveRuleResult> getArchiveRuleAsync(GetArchiveRuleRequest request)
AWSAccessAnalyzerAsync
Retrieves information about an archive rule.
To learn about filter keys that you can use to create an archive rule, see Access Analyzer filter keys in the IAM User Guide.
getArchiveRuleAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves an archive rule.public Future<GetArchiveRuleResult> getArchiveRuleAsync(GetArchiveRuleRequest request, AsyncHandler<GetArchiveRuleRequest,GetArchiveRuleResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves information about an archive rule.
To learn about filter keys that you can use to create an archive rule, see Access Analyzer filter keys in the IAM User Guide.
getArchiveRuleAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves an archive rule.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<GetFindingResult> getFindingAsync(GetFindingRequest request)
AWSAccessAnalyzerAsync
Retrieves information about the specified finding.
getFindingAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves a finding.public Future<GetFindingResult> getFindingAsync(GetFindingRequest request, AsyncHandler<GetFindingRequest,GetFindingResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves information about the specified finding.
getFindingAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves a finding.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<ListAnalyzedResourcesResult> listAnalyzedResourcesAsync(ListAnalyzedResourcesRequest request)
AWSAccessAnalyzerAsync
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
listAnalyzedResourcesAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves a list of resources that have been analyzed.public Future<ListAnalyzedResourcesResult> listAnalyzedResourcesAsync(ListAnalyzedResourcesRequest request, AsyncHandler<ListAnalyzedResourcesRequest,ListAnalyzedResourcesResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
listAnalyzedResourcesAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves a list of resources that have been analyzed.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<ListAnalyzersResult> listAnalyzersAsync(ListAnalyzersRequest request)
AWSAccessAnalyzerAsync
Retrieves a list of analyzers.
listAnalyzersAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves a list of analyzers.public Future<ListAnalyzersResult> listAnalyzersAsync(ListAnalyzersRequest request, AsyncHandler<ListAnalyzersRequest,ListAnalyzersResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves a list of analyzers.
listAnalyzersAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves a list of analyzers.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<ListArchiveRulesResult> listArchiveRulesAsync(ListArchiveRulesRequest request)
AWSAccessAnalyzerAsync
Retrieves a list of archive rules created for the specified analyzer.
listArchiveRulesAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves a list of archive rules created for the specified analyzer.public Future<ListArchiveRulesResult> listArchiveRulesAsync(ListArchiveRulesRequest request, AsyncHandler<ListArchiveRulesRequest,ListArchiveRulesResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves a list of archive rules created for the specified analyzer.
listArchiveRulesAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves a list of archive rules created for the specified analyzer.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<ListFindingsResult> listFindingsAsync(ListFindingsRequest request)
AWSAccessAnalyzerAsync
Retrieves a list of findings generated by the specified analyzer.
To learn about filter keys that you can use to create an archive rule, see Access Analyzer filter keys in the IAM User Guide.
listFindingsAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves a list of findings generated by the specified analyzer.public Future<ListFindingsResult> listFindingsAsync(ListFindingsRequest request, AsyncHandler<ListFindingsRequest,ListFindingsResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves a list of findings generated by the specified analyzer.
To learn about filter keys that you can use to create an archive rule, see Access Analyzer filter keys in the IAM User Guide.
listFindingsAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves a list of findings generated by the specified analyzer.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<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AWSAccessAnalyzerAsync
Retrieves a list of tags applied to the specified resource.
listTagsForResourceAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves a list of tags applied to the specified resource.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves a list of tags applied to the specified resource.
listTagsForResourceAsync
in interface AWSAccessAnalyzerAsync
request
- Retrieves a list of tags applied to the specified resource.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<StartResourceScanResult> startResourceScanAsync(StartResourceScanRequest request)
AWSAccessAnalyzerAsync
Immediately starts a scan of the policies applied to the specified resource.
startResourceScanAsync
in interface AWSAccessAnalyzerAsync
request
- Starts a scan of the policies applied to the specified resource.public Future<StartResourceScanResult> startResourceScanAsync(StartResourceScanRequest request, AsyncHandler<StartResourceScanRequest,StartResourceScanResult> asyncHandler)
AWSAccessAnalyzerAsync
Immediately starts a scan of the policies applied to the specified resource.
startResourceScanAsync
in interface AWSAccessAnalyzerAsync
request
- Starts a scan of the policies applied to the specified resource.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<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSAccessAnalyzerAsync
Adds a tag to the specified resource.
tagResourceAsync
in interface AWSAccessAnalyzerAsync
request
- Adds a tag to the specified resource.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSAccessAnalyzerAsync
Adds a tag to the specified resource.
tagResourceAsync
in interface AWSAccessAnalyzerAsync
request
- Adds a tag to the specified resource.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<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSAccessAnalyzerAsync
Removes a tag from the specified resource.
untagResourceAsync
in interface AWSAccessAnalyzerAsync
request
- Removes a tag from the specified resource.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSAccessAnalyzerAsync
Removes a tag from the specified resource.
untagResourceAsync
in interface AWSAccessAnalyzerAsync
request
- Removes a tag from the specified resource.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<UpdateArchiveRuleResult> updateArchiveRuleAsync(UpdateArchiveRuleRequest request)
AWSAccessAnalyzerAsync
Updates the criteria and values for the specified archive rule.
updateArchiveRuleAsync
in interface AWSAccessAnalyzerAsync
request
- Updates the specified archive rule.public Future<UpdateArchiveRuleResult> updateArchiveRuleAsync(UpdateArchiveRuleRequest request, AsyncHandler<UpdateArchiveRuleRequest,UpdateArchiveRuleResult> asyncHandler)
AWSAccessAnalyzerAsync
Updates the criteria and values for the specified archive rule.
updateArchiveRuleAsync
in interface AWSAccessAnalyzerAsync
request
- Updates the specified archive rule.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<UpdateFindingsResult> updateFindingsAsync(UpdateFindingsRequest request)
AWSAccessAnalyzerAsync
Updates the status for the specified findings.
updateFindingsAsync
in interface AWSAccessAnalyzerAsync
request
- Updates findings with the new values provided in the request.public Future<UpdateFindingsResult> updateFindingsAsync(UpdateFindingsRequest request, AsyncHandler<UpdateFindingsRequest,UpdateFindingsResult> asyncHandler)
AWSAccessAnalyzerAsync
Updates the status for the specified findings.
updateFindingsAsync
in interface AWSAccessAnalyzerAsync
request
- Updates findings with the new values provided in the request.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 AWSAccessAnalyzer
shutdown
in class AWSAccessAnalyzerClient