@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.
Identity and Access Management Access Analyzer helps you to set, verify, and refine your IAM policies by providing a suite of capabilities. Its features include findings for external and unused access, basic and custom policy checks for validating policies, and policy generation to generate fine-grained policies. To start using IAM Access Analyzer to identify external or unused access, you first need to create an analyzer.
External access analyzers help identify potential risks of accessing resources by enabling you to identify any resource policies that grant access to an external principal. It does this by using logic-based reasoning to analyze resource-based policies in your Amazon Web Services environment. An external principal can be another Amazon Web Services account, a root user, an IAM user or role, a federated user, an Amazon Web Services service, or an anonymous user. You can also use IAM Access Analyzer to preview public and cross-account access to your resources before deploying permissions changes.
Unused access analyzers help identify potential identity access risks by enabling you to identify unused IAM roles, unused access keys, unused console passwords, and IAM principals with unused service and action-level permissions.
Beyond findings, IAM Access Analyzer provides basic and custom policy checks to validate IAM policies before deploying permissions changes. You can use policy generation to refine permissions by attaching a policy generated using access activity logged in CloudTrail logs.
This guide describes the IAM Access Analyzer operations that you can call programmatically. For general information about IAM Access Analyzer, see Identity and Access Management Access Analyzer in the IAM User Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
applyArchiveRule, builder, cancelPolicyGeneration, checkAccessNotGranted, checkNoNewAccess, checkNoPublicAccess, createAccessPreview, createAnalyzer, createArchiveRule, deleteAnalyzer, deleteArchiveRule, generateFindingRecommendation, getAccessPreview, getAnalyzedResource, getAnalyzer, getArchiveRule, getCachedResponseMetadata, getFinding, getFindingRecommendation, getFindingV2, getGeneratedPolicy, listAccessPreviewFindings, listAccessPreviews, listAnalyzedResources, listAnalyzers, listArchiveRules, listFindings, listFindingsV2, listPolicyGenerations, listTagsForResource, startPolicyGeneration, startResourceScan, tagResource, untagResource, updateArchiveRule, updateFindings, validatePolicy
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, cancelPolicyGeneration, checkAccessNotGranted, checkNoNewAccess, checkNoPublicAccess, createAccessPreview, createAnalyzer, createArchiveRule, deleteAnalyzer, deleteArchiveRule, generateFindingRecommendation, getAccessPreview, getAnalyzedResource, getAnalyzer, getArchiveRule, getCachedResponseMetadata, getFinding, getFindingRecommendation, getFindingV2, getGeneratedPolicy, listAccessPreviewFindings, listAccessPreviews, listAnalyzedResources, listAnalyzers, listArchiveRules, listFindings, listFindingsV2, listPolicyGenerations, listTagsForResource, startPolicyGeneration, startResourceScan, tagResource, untagResource, updateArchiveRule, updateFindings, validatePolicy
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<CancelPolicyGenerationResult> cancelPolicyGenerationAsync(CancelPolicyGenerationRequest request)
AWSAccessAnalyzerAsync
Cancels the requested policy generation.
cancelPolicyGenerationAsync
in interface AWSAccessAnalyzerAsync
public Future<CancelPolicyGenerationResult> cancelPolicyGenerationAsync(CancelPolicyGenerationRequest request, AsyncHandler<CancelPolicyGenerationRequest,CancelPolicyGenerationResult> asyncHandler)
AWSAccessAnalyzerAsync
Cancels the requested policy generation.
cancelPolicyGenerationAsync
in interface AWSAccessAnalyzerAsync
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<CheckAccessNotGrantedResult> checkAccessNotGrantedAsync(CheckAccessNotGrantedRequest request)
AWSAccessAnalyzerAsync
Checks whether the specified access isn't allowed by a policy.
checkAccessNotGrantedAsync
in interface AWSAccessAnalyzerAsync
public Future<CheckAccessNotGrantedResult> checkAccessNotGrantedAsync(CheckAccessNotGrantedRequest request, AsyncHandler<CheckAccessNotGrantedRequest,CheckAccessNotGrantedResult> asyncHandler)
AWSAccessAnalyzerAsync
Checks whether the specified access isn't allowed by a policy.
checkAccessNotGrantedAsync
in interface AWSAccessAnalyzerAsync
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<CheckNoNewAccessResult> checkNoNewAccessAsync(CheckNoNewAccessRequest request)
AWSAccessAnalyzerAsync
Checks whether new access is allowed for an updated policy when compared to the existing policy.
You can find examples for reference policies and learn how to set up and run a custom policy check for new access
in the IAM Access
Analyzer custom policy checks samples repository on GitHub. The reference policies in this repository are
meant to be passed to the existingPolicyDocument
request parameter.
checkNoNewAccessAsync
in interface AWSAccessAnalyzerAsync
public Future<CheckNoNewAccessResult> checkNoNewAccessAsync(CheckNoNewAccessRequest request, AsyncHandler<CheckNoNewAccessRequest,CheckNoNewAccessResult> asyncHandler)
AWSAccessAnalyzerAsync
Checks whether new access is allowed for an updated policy when compared to the existing policy.
You can find examples for reference policies and learn how to set up and run a custom policy check for new access
in the IAM Access
Analyzer custom policy checks samples repository on GitHub. The reference policies in this repository are
meant to be passed to the existingPolicyDocument
request parameter.
checkNoNewAccessAsync
in interface AWSAccessAnalyzerAsync
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<CheckNoPublicAccessResult> checkNoPublicAccessAsync(CheckNoPublicAccessRequest request)
AWSAccessAnalyzerAsync
Checks whether a resource policy can grant public access to the specified resource type.
checkNoPublicAccessAsync
in interface AWSAccessAnalyzerAsync
public Future<CheckNoPublicAccessResult> checkNoPublicAccessAsync(CheckNoPublicAccessRequest request, AsyncHandler<CheckNoPublicAccessRequest,CheckNoPublicAccessResult> asyncHandler)
AWSAccessAnalyzerAsync
Checks whether a resource policy can grant public access to the specified resource type.
checkNoPublicAccessAsync
in interface AWSAccessAnalyzerAsync
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<CreateAccessPreviewResult> createAccessPreviewAsync(CreateAccessPreviewRequest request)
AWSAccessAnalyzerAsync
Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions.
createAccessPreviewAsync
in interface AWSAccessAnalyzerAsync
public Future<CreateAccessPreviewResult> createAccessPreviewAsync(CreateAccessPreviewRequest request, AsyncHandler<CreateAccessPreviewRequest,CreateAccessPreviewResult> asyncHandler)
AWSAccessAnalyzerAsync
Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions.
createAccessPreviewAsync
in interface AWSAccessAnalyzerAsync
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.
To learn about filter keys that you can use to create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guide.
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.
To learn about filter keys that you can use to create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guide.
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, IAM Access Analyzer is disabled for the account or organization 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, IAM Access Analyzer is disabled for the account or organization 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<GenerateFindingRecommendationResult> generateFindingRecommendationAsync(GenerateFindingRecommendationRequest request)
AWSAccessAnalyzerAsync
Creates a recommendation for an unused permissions finding.
generateFindingRecommendationAsync
in interface AWSAccessAnalyzerAsync
public Future<GenerateFindingRecommendationResult> generateFindingRecommendationAsync(GenerateFindingRecommendationRequest request, AsyncHandler<GenerateFindingRecommendationRequest,GenerateFindingRecommendationResult> asyncHandler)
AWSAccessAnalyzerAsync
Creates a recommendation for an unused permissions finding.
generateFindingRecommendationAsync
in interface AWSAccessAnalyzerAsync
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<GetAccessPreviewResult> getAccessPreviewAsync(GetAccessPreviewRequest request)
AWSAccessAnalyzerAsync
Retrieves information about an access preview for the specified analyzer.
getAccessPreviewAsync
in interface AWSAccessAnalyzerAsync
public Future<GetAccessPreviewResult> getAccessPreviewAsync(GetAccessPreviewRequest request, AsyncHandler<GetAccessPreviewRequest,GetAccessPreviewResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves information about an access preview for the specified analyzer.
getAccessPreviewAsync
in interface AWSAccessAnalyzerAsync
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 IAM 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 IAM 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. GetFinding and GetFindingV2 both use
access-analyzer:GetFinding
in the Action
element of an IAM policy statement. You must
have permission to perform the access-analyzer:GetFinding
action.
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. GetFinding and GetFindingV2 both use
access-analyzer:GetFinding
in the Action
element of an IAM policy statement. You must
have permission to perform the access-analyzer:GetFinding
action.
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<GetFindingRecommendationResult> getFindingRecommendationAsync(GetFindingRecommendationRequest request)
AWSAccessAnalyzerAsync
Retrieves information about a finding recommendation for the specified analyzer.
getFindingRecommendationAsync
in interface AWSAccessAnalyzerAsync
public Future<GetFindingRecommendationResult> getFindingRecommendationAsync(GetFindingRecommendationRequest request, AsyncHandler<GetFindingRecommendationRequest,GetFindingRecommendationResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves information about a finding recommendation for the specified analyzer.
getFindingRecommendationAsync
in interface AWSAccessAnalyzerAsync
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<GetFindingV2Result> getFindingV2Async(GetFindingV2Request request)
AWSAccessAnalyzerAsync
Retrieves information about the specified finding. GetFinding and GetFindingV2 both use
access-analyzer:GetFinding
in the Action
element of an IAM policy statement. You must
have permission to perform the access-analyzer:GetFinding
action.
getFindingV2Async
in interface AWSAccessAnalyzerAsync
public Future<GetFindingV2Result> getFindingV2Async(GetFindingV2Request request, AsyncHandler<GetFindingV2Request,GetFindingV2Result> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves information about the specified finding. GetFinding and GetFindingV2 both use
access-analyzer:GetFinding
in the Action
element of an IAM policy statement. You must
have permission to perform the access-analyzer:GetFinding
action.
getFindingV2Async
in interface AWSAccessAnalyzerAsync
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<GetGeneratedPolicyResult> getGeneratedPolicyAsync(GetGeneratedPolicyRequest request)
AWSAccessAnalyzerAsync
Retrieves the policy that was generated using StartPolicyGeneration
.
getGeneratedPolicyAsync
in interface AWSAccessAnalyzerAsync
public Future<GetGeneratedPolicyResult> getGeneratedPolicyAsync(GetGeneratedPolicyRequest request, AsyncHandler<GetGeneratedPolicyRequest,GetGeneratedPolicyResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves the policy that was generated using StartPolicyGeneration
.
getGeneratedPolicyAsync
in interface AWSAccessAnalyzerAsync
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<ListAccessPreviewFindingsResult> listAccessPreviewFindingsAsync(ListAccessPreviewFindingsRequest request)
AWSAccessAnalyzerAsync
Retrieves a list of access preview findings generated by the specified access preview.
listAccessPreviewFindingsAsync
in interface AWSAccessAnalyzerAsync
public Future<ListAccessPreviewFindingsResult> listAccessPreviewFindingsAsync(ListAccessPreviewFindingsRequest request, AsyncHandler<ListAccessPreviewFindingsRequest,ListAccessPreviewFindingsResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves a list of access preview findings generated by the specified access preview.
listAccessPreviewFindingsAsync
in interface AWSAccessAnalyzerAsync
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<ListAccessPreviewsResult> listAccessPreviewsAsync(ListAccessPreviewsRequest request)
AWSAccessAnalyzerAsync
Retrieves a list of access previews for the specified analyzer.
listAccessPreviewsAsync
in interface AWSAccessAnalyzerAsync
public Future<ListAccessPreviewsResult> listAccessPreviewsAsync(ListAccessPreviewsRequest request, AsyncHandler<ListAccessPreviewsRequest,ListAccessPreviewsResult> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves a list of access previews for the specified analyzer.
listAccessPreviewsAsync
in interface AWSAccessAnalyzerAsync
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 external access analyzer. This action is not supported for unused access analyzers.
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 external access analyzer. This action is not supported for unused access analyzers.
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. ListFindings and ListFindingsV2 both use
access-analyzer:ListFindings
in the Action
element of an IAM policy statement. You must
have permission to perform the access-analyzer:ListFindings
action.
To learn about filter keys that you can use to retrieve a list of findings, see IAM 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. ListFindings and ListFindingsV2 both use
access-analyzer:ListFindings
in the Action
element of an IAM policy statement. You must
have permission to perform the access-analyzer:ListFindings
action.
To learn about filter keys that you can use to retrieve a list of findings, see IAM 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<ListFindingsV2Result> listFindingsV2Async(ListFindingsV2Request request)
AWSAccessAnalyzerAsync
Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use
access-analyzer:ListFindings
in the Action
element of an IAM policy statement. You must
have permission to perform the access-analyzer:ListFindings
action.
To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
listFindingsV2Async
in interface AWSAccessAnalyzerAsync
public Future<ListFindingsV2Result> listFindingsV2Async(ListFindingsV2Request request, AsyncHandler<ListFindingsV2Request,ListFindingsV2Result> asyncHandler)
AWSAccessAnalyzerAsync
Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use
access-analyzer:ListFindings
in the Action
element of an IAM policy statement. You must
have permission to perform the access-analyzer:ListFindings
action.
To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
listFindingsV2Async
in interface AWSAccessAnalyzerAsync
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<ListPolicyGenerationsResult> listPolicyGenerationsAsync(ListPolicyGenerationsRequest request)
AWSAccessAnalyzerAsync
Lists all of the policy generations requested in the last seven days.
listPolicyGenerationsAsync
in interface AWSAccessAnalyzerAsync
public Future<ListPolicyGenerationsResult> listPolicyGenerationsAsync(ListPolicyGenerationsRequest request, AsyncHandler<ListPolicyGenerationsRequest,ListPolicyGenerationsResult> asyncHandler)
AWSAccessAnalyzerAsync
Lists all of the policy generations requested in the last seven days.
listPolicyGenerationsAsync
in interface AWSAccessAnalyzerAsync
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<StartPolicyGenerationResult> startPolicyGenerationAsync(StartPolicyGenerationRequest request)
AWSAccessAnalyzerAsync
Starts the policy generation request.
startPolicyGenerationAsync
in interface AWSAccessAnalyzerAsync
public Future<StartPolicyGenerationResult> startPolicyGenerationAsync(StartPolicyGenerationRequest request, AsyncHandler<StartPolicyGenerationRequest,StartPolicyGenerationResult> asyncHandler)
AWSAccessAnalyzerAsync
Starts the policy generation request.
startPolicyGenerationAsync
in interface AWSAccessAnalyzerAsync
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 Future<ValidatePolicyResult> validatePolicyAsync(ValidatePolicyRequest request)
AWSAccessAnalyzerAsync
Requests the validation of a policy and returns a list of findings. The findings help you identify issues and provide actionable recommendations to resolve the issue and enable you to author functional policies that meet security best practices.
validatePolicyAsync
in interface AWSAccessAnalyzerAsync
public Future<ValidatePolicyResult> validatePolicyAsync(ValidatePolicyRequest request, AsyncHandler<ValidatePolicyRequest,ValidatePolicyResult> asyncHandler)
AWSAccessAnalyzerAsync
Requests the validation of a policy and returns a list of findings. The findings help you identify issues and provide actionable recommendations to resolve the issue and enable you to author functional policies that meet security best practices.
validatePolicyAsync
in interface AWSAccessAnalyzerAsync
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