@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSAccessAnalyzer
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSAccessAnalyzer
instead.
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. You can also use Access Analyzer to preview and validate public and cross-account access to your resources before deploying permissions changes. 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.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
ApplyArchiveRuleResult |
applyArchiveRule(ApplyArchiveRuleRequest applyArchiveRuleRequest)
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
|
CancelPolicyGenerationResult |
cancelPolicyGeneration(CancelPolicyGenerationRequest cancelPolicyGenerationRequest)
Cancels the requested policy generation.
|
CreateAccessPreviewResult |
createAccessPreview(CreateAccessPreviewRequest createAccessPreviewRequest)
Creates an access preview that allows you to preview Access Analyzer findings for your resource before deploying
resource permissions.
|
CreateAnalyzerResult |
createAnalyzer(CreateAnalyzerRequest createAnalyzerRequest)
Creates an analyzer for your account.
|
CreateArchiveRuleResult |
createArchiveRule(CreateArchiveRuleRequest createArchiveRuleRequest)
Creates an archive rule for the specified analyzer.
|
DeleteAnalyzerResult |
deleteAnalyzer(DeleteAnalyzerRequest deleteAnalyzerRequest)
Deletes the specified analyzer.
|
DeleteArchiveRuleResult |
deleteArchiveRule(DeleteArchiveRuleRequest deleteArchiveRuleRequest)
Deletes the specified archive rule.
|
GetAccessPreviewResult |
getAccessPreview(GetAccessPreviewRequest getAccessPreviewRequest)
Retrieves information about an access preview for the specified analyzer.
|
GetAnalyzedResourceResult |
getAnalyzedResource(GetAnalyzedResourceRequest getAnalyzedResourceRequest)
Retrieves information about a resource that was analyzed.
|
GetAnalyzerResult |
getAnalyzer(GetAnalyzerRequest getAnalyzerRequest)
Retrieves information about the specified analyzer.
|
GetArchiveRuleResult |
getArchiveRule(GetArchiveRuleRequest getArchiveRuleRequest)
Retrieves information about an archive rule.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetFindingResult |
getFinding(GetFindingRequest getFindingRequest)
Retrieves information about the specified finding.
|
GetGeneratedPolicyResult |
getGeneratedPolicy(GetGeneratedPolicyRequest getGeneratedPolicyRequest)
Retrieves the policy that was generated using
StartPolicyGeneration . |
ListAccessPreviewFindingsResult |
listAccessPreviewFindings(ListAccessPreviewFindingsRequest listAccessPreviewFindingsRequest)
Retrieves a list of access preview findings generated by the specified access preview.
|
ListAccessPreviewsResult |
listAccessPreviews(ListAccessPreviewsRequest listAccessPreviewsRequest)
Retrieves a list of access previews for the specified analyzer.
|
ListAnalyzedResourcesResult |
listAnalyzedResources(ListAnalyzedResourcesRequest listAnalyzedResourcesRequest)
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
|
ListAnalyzersResult |
listAnalyzers(ListAnalyzersRequest listAnalyzersRequest)
Retrieves a list of analyzers.
|
ListArchiveRulesResult |
listArchiveRules(ListArchiveRulesRequest listArchiveRulesRequest)
Retrieves a list of archive rules created for the specified analyzer.
|
ListFindingsResult |
listFindings(ListFindingsRequest listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
|
ListPolicyGenerationsResult |
listPolicyGenerations(ListPolicyGenerationsRequest listPolicyGenerationsRequest)
Lists all of the policy generations requested in the last seven days.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Retrieves a list of tags applied to the specified resource.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
StartPolicyGenerationResult |
startPolicyGeneration(StartPolicyGenerationRequest startPolicyGenerationRequest)
Starts the policy generation request.
|
StartResourceScanResult |
startResourceScan(StartResourceScanRequest startResourceScanRequest)
Immediately starts a scan of the policies applied to the specified resource.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
Adds a tag to the specified resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Removes a tag from the specified resource.
|
UpdateArchiveRuleResult |
updateArchiveRule(UpdateArchiveRuleRequest updateArchiveRuleRequest)
Updates the criteria and values for the specified archive rule.
|
UpdateFindingsResult |
updateFindings(UpdateFindingsRequest updateFindingsRequest)
Updates the status for the specified findings.
|
ValidatePolicyResult |
validatePolicy(ValidatePolicyRequest validatePolicyRequest)
Requests the validation of a policy and returns a list of findings.
|
static final String ENDPOINT_PREFIX
ApplyArchiveRuleResult applyArchiveRule(ApplyArchiveRuleRequest applyArchiveRuleRequest)
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
applyArchiveRuleRequest
- Retroactively applies an archive rule.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.CancelPolicyGenerationResult cancelPolicyGeneration(CancelPolicyGenerationRequest cancelPolicyGenerationRequest)
Cancels the requested policy generation.
cancelPolicyGenerationRequest
- ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.CreateAccessPreviewResult createAccessPreview(CreateAccessPreviewRequest createAccessPreviewRequest)
Creates an access preview that allows you to preview Access Analyzer findings for your resource before deploying resource permissions.
createAccessPreviewRequest
- ResourceNotFoundException
- The specified resource could not be found.ConflictException
- A conflict exception error.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ServiceQuotaExceededException
- Service quote met error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.CreateAnalyzerResult createAnalyzer(CreateAnalyzerRequest createAnalyzerRequest)
Creates an analyzer for your account.
createAnalyzerRequest
- Creates an analyzer.ConflictException
- A conflict exception error.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ServiceQuotaExceededException
- Service quote met error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.CreateArchiveRuleResult createArchiveRule(CreateArchiveRuleRequest createArchiveRuleRequest)
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 Access Analyzer filter keys in the IAM User Guide.
createArchiveRuleRequest
- Creates an archive rule.ResourceNotFoundException
- The specified resource could not be found.ConflictException
- A conflict exception error.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ServiceQuotaExceededException
- Service quote met error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.DeleteAnalyzerResult deleteAnalyzer(DeleteAnalyzerRequest deleteAnalyzerRequest)
Deletes the specified analyzer. When you delete an analyzer, 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.
deleteAnalyzerRequest
- Deletes an analyzer.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.DeleteArchiveRuleResult deleteArchiveRule(DeleteArchiveRuleRequest deleteArchiveRuleRequest)
Deletes the specified archive rule.
deleteArchiveRuleRequest
- Deletes an archive rule.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.GetAccessPreviewResult getAccessPreview(GetAccessPreviewRequest getAccessPreviewRequest)
Retrieves information about an access preview for the specified analyzer.
getAccessPreviewRequest
- ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.GetAnalyzedResourceResult getAnalyzedResource(GetAnalyzedResourceRequest getAnalyzedResourceRequest)
Retrieves information about a resource that was analyzed.
getAnalyzedResourceRequest
- Retrieves an analyzed resource.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.GetAnalyzerResult getAnalyzer(GetAnalyzerRequest getAnalyzerRequest)
Retrieves information about the specified analyzer.
getAnalyzerRequest
- Retrieves an analyzer.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.GetArchiveRuleResult getArchiveRule(GetArchiveRuleRequest getArchiveRuleRequest)
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.
getArchiveRuleRequest
- Retrieves an archive rule.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.GetFindingResult getFinding(GetFindingRequest getFindingRequest)
Retrieves information about the specified finding.
getFindingRequest
- Retrieves a finding.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.GetGeneratedPolicyResult getGeneratedPolicy(GetGeneratedPolicyRequest getGeneratedPolicyRequest)
Retrieves the policy that was generated using StartPolicyGeneration
.
getGeneratedPolicyRequest
- ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.ListAccessPreviewFindingsResult listAccessPreviewFindings(ListAccessPreviewFindingsRequest listAccessPreviewFindingsRequest)
Retrieves a list of access preview findings generated by the specified access preview.
listAccessPreviewFindingsRequest
- ResourceNotFoundException
- The specified resource could not be found.ConflictException
- A conflict exception error.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.ListAccessPreviewsResult listAccessPreviews(ListAccessPreviewsRequest listAccessPreviewsRequest)
Retrieves a list of access previews for the specified analyzer.
listAccessPreviewsRequest
- ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.ListAnalyzedResourcesResult listAnalyzedResources(ListAnalyzedResourcesRequest listAnalyzedResourcesRequest)
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
listAnalyzedResourcesRequest
- Retrieves a list of resources that have been analyzed.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.ListAnalyzersResult listAnalyzers(ListAnalyzersRequest listAnalyzersRequest)
Retrieves a list of analyzers.
listAnalyzersRequest
- Retrieves a list of analyzers.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.ListArchiveRulesResult listArchiveRules(ListArchiveRulesRequest listArchiveRulesRequest)
Retrieves a list of archive rules created for the specified analyzer.
listArchiveRulesRequest
- Retrieves a list of archive rules created for the specified analyzer.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.ListFindingsResult listFindings(ListFindingsRequest listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
To learn about filter keys that you can use to retrieve a list of findings, see Access Analyzer filter keys in the IAM User Guide.
listFindingsRequest
- Retrieves a list of findings generated by the specified analyzer.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.ListPolicyGenerationsResult listPolicyGenerations(ListPolicyGenerationsRequest listPolicyGenerationsRequest)
Lists all of the policy generations requested in the last seven days.
listPolicyGenerationsRequest
- ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Retrieves a list of tags applied to the specified resource.
listTagsForResourceRequest
- Retrieves a list of tags applied to the specified resource.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.StartPolicyGenerationResult startPolicyGeneration(StartPolicyGenerationRequest startPolicyGenerationRequest)
Starts the policy generation request.
startPolicyGenerationRequest
- ConflictException
- A conflict exception error.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ServiceQuotaExceededException
- Service quote met error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.StartResourceScanResult startResourceScan(StartResourceScanRequest startResourceScanRequest)
Immediately starts a scan of the policies applied to the specified resource.
startResourceScanRequest
- Starts a scan of the policies applied to the specified resource.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
Adds a tag to the specified resource.
tagResourceRequest
- Adds a tag to the specified resource.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest)
Removes a tag from the specified resource.
untagResourceRequest
- Removes a tag from the specified resource.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.UpdateArchiveRuleResult updateArchiveRule(UpdateArchiveRuleRequest updateArchiveRuleRequest)
Updates the criteria and values for the specified archive rule.
updateArchiveRuleRequest
- Updates the specified archive rule.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.UpdateFindingsResult updateFindings(UpdateFindingsRequest updateFindingsRequest)
Updates the status for the specified findings.
updateFindingsRequest
- Updates findings with the new values provided in the request.ResourceNotFoundException
- The specified resource could not be found.ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.ValidatePolicyResult validatePolicy(ValidatePolicyRequest validatePolicyRequest)
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.
validatePolicyRequest
- ValidationException
- Validation exception error.InternalServerException
- Internal server error.ThrottlingException
- Throttling limit exceeded error.AccessDeniedException
- You do not have sufficient access to perform this action.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.