@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSAccessAnalyzerClient extends AmazonWebServiceClient implements AWSAccessAnalyzer
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_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
ApplyArchiveRuleResult |
applyArchiveRule(ApplyArchiveRuleRequest request)
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
|
static AWSAccessAnalyzerClientBuilder |
builder() |
CancelPolicyGenerationResult |
cancelPolicyGeneration(CancelPolicyGenerationRequest request)
Cancels the requested policy generation.
|
CheckAccessNotGrantedResult |
checkAccessNotGranted(CheckAccessNotGrantedRequest request)
Checks whether the specified access isn't allowed by a policy.
|
CheckNoNewAccessResult |
checkNoNewAccess(CheckNoNewAccessRequest request)
Checks whether new access is allowed for an updated policy when compared to the existing policy.
|
CheckNoPublicAccessResult |
checkNoPublicAccess(CheckNoPublicAccessRequest request)
Checks whether a resource policy can grant public access to the specified resource type.
|
CreateAccessPreviewResult |
createAccessPreview(CreateAccessPreviewRequest request)
Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before
deploying resource permissions.
|
CreateAnalyzerResult |
createAnalyzer(CreateAnalyzerRequest request)
Creates an analyzer for your account.
|
CreateArchiveRuleResult |
createArchiveRule(CreateArchiveRuleRequest request)
Creates an archive rule for the specified analyzer.
|
DeleteAnalyzerResult |
deleteAnalyzer(DeleteAnalyzerRequest request)
Deletes the specified analyzer.
|
DeleteArchiveRuleResult |
deleteArchiveRule(DeleteArchiveRuleRequest request)
Deletes the specified archive rule.
|
GenerateFindingRecommendationResult |
generateFindingRecommendation(GenerateFindingRecommendationRequest request)
Creates a recommendation for an unused permissions finding.
|
GetAccessPreviewResult |
getAccessPreview(GetAccessPreviewRequest request)
Retrieves information about an access preview for the specified analyzer.
|
GetAnalyzedResourceResult |
getAnalyzedResource(GetAnalyzedResourceRequest request)
Retrieves information about a resource that was analyzed.
|
GetAnalyzerResult |
getAnalyzer(GetAnalyzerRequest request)
Retrieves information about the specified analyzer.
|
GetArchiveRuleResult |
getArchiveRule(GetArchiveRuleRequest request)
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 request)
Retrieves information about the specified finding.
|
GetFindingRecommendationResult |
getFindingRecommendation(GetFindingRecommendationRequest request)
Retrieves information about a finding recommendation for the specified analyzer.
|
GetFindingV2Result |
getFindingV2(GetFindingV2Request request)
Retrieves information about the specified finding.
|
GetGeneratedPolicyResult |
getGeneratedPolicy(GetGeneratedPolicyRequest request)
Retrieves the policy that was generated using
StartPolicyGeneration. |
ListAccessPreviewFindingsResult |
listAccessPreviewFindings(ListAccessPreviewFindingsRequest request)
Retrieves a list of access preview findings generated by the specified access preview.
|
ListAccessPreviewsResult |
listAccessPreviews(ListAccessPreviewsRequest request)
Retrieves a list of access previews for the specified analyzer.
|
ListAnalyzedResourcesResult |
listAnalyzedResources(ListAnalyzedResourcesRequest request)
Retrieves a list of resources of the specified type that have been analyzed by the specified external access
analyzer.
|
ListAnalyzersResult |
listAnalyzers(ListAnalyzersRequest request)
Retrieves a list of analyzers.
|
ListArchiveRulesResult |
listArchiveRules(ListArchiveRulesRequest request)
Retrieves a list of archive rules created for the specified analyzer.
|
ListFindingsResult |
listFindings(ListFindingsRequest request)
Retrieves a list of findings generated by the specified analyzer.
|
ListFindingsV2Result |
listFindingsV2(ListFindingsV2Request request)
Retrieves a list of findings generated by the specified analyzer.
|
ListPolicyGenerationsResult |
listPolicyGenerations(ListPolicyGenerationsRequest request)
Lists all of the policy generations requested in the last seven days.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
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 request)
Starts the policy generation request.
|
StartResourceScanResult |
startResourceScan(StartResourceScanRequest request)
Immediately starts a scan of the policies applied to the specified resource.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Adds a tag to the specified resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes a tag from the specified resource.
|
UpdateArchiveRuleResult |
updateArchiveRule(UpdateArchiveRuleRequest request)
Updates the criteria and values for the specified archive rule.
|
UpdateFindingsResult |
updateFindings(UpdateFindingsRequest request)
Updates the status for the specified findings.
|
ValidatePolicyResult |
validatePolicy(ValidatePolicyRequest request)
Requests the validation of a policy and returns a list of findings.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetpublic static AWSAccessAnalyzerClientBuilder builder()
public ApplyArchiveRuleResult applyArchiveRule(ApplyArchiveRuleRequest request)
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
applyArchiveRule in interface AWSAccessAnalyzerapplyArchiveRuleRequest - 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.public CancelPolicyGenerationResult cancelPolicyGeneration(CancelPolicyGenerationRequest request)
Cancels the requested policy generation.
cancelPolicyGeneration in interface AWSAccessAnalyzercancelPolicyGenerationRequest - ValidationException - Validation exception error.InternalServerException - Internal server error.ThrottlingException - Throttling limit exceeded error.AccessDeniedException - You do not have sufficient access to perform this action.public CheckAccessNotGrantedResult checkAccessNotGranted(CheckAccessNotGrantedRequest request)
Checks whether the specified access isn't allowed by a policy.
checkAccessNotGranted in interface AWSAccessAnalyzercheckAccessNotGrantedRequest - ValidationException - Validation exception error.InternalServerException - Internal server error.InvalidParameterException - The specified parameter is invalid.UnprocessableEntityException - The specified entity could not be processed.ThrottlingException - Throttling limit exceeded error.AccessDeniedException - You do not have sufficient access to perform this action.public CheckNoNewAccessResult checkNoNewAccess(CheckNoNewAccessRequest request)
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.
checkNoNewAccess in interface AWSAccessAnalyzercheckNoNewAccessRequest - ValidationException - Validation exception error.InternalServerException - Internal server error.InvalidParameterException - The specified parameter is invalid.UnprocessableEntityException - The specified entity could not be processed.ThrottlingException - Throttling limit exceeded error.AccessDeniedException - You do not have sufficient access to perform this action.public CheckNoPublicAccessResult checkNoPublicAccess(CheckNoPublicAccessRequest request)
Checks whether a resource policy can grant public access to the specified resource type.
checkNoPublicAccess in interface AWSAccessAnalyzercheckNoPublicAccessRequest - ValidationException - Validation exception error.InternalServerException - Internal server error.InvalidParameterException - The specified parameter is invalid.UnprocessableEntityException - The specified entity could not be processed.ThrottlingException - Throttling limit exceeded error.AccessDeniedException - You do not have sufficient access to perform this action.public CreateAccessPreviewResult createAccessPreview(CreateAccessPreviewRequest request)
Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions.
createAccessPreview in interface AWSAccessAnalyzercreateAccessPreviewRequest - 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.public CreateAnalyzerResult createAnalyzer(CreateAnalyzerRequest request)
Creates an analyzer for your account.
createAnalyzer in interface AWSAccessAnalyzercreateAnalyzerRequest - 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.public CreateArchiveRuleResult createArchiveRule(CreateArchiveRuleRequest request)
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.
createArchiveRule in interface AWSAccessAnalyzercreateArchiveRuleRequest - 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.public DeleteAnalyzerResult deleteAnalyzer(DeleteAnalyzerRequest request)
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.
deleteAnalyzer in interface AWSAccessAnalyzerdeleteAnalyzerRequest - 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.public DeleteArchiveRuleResult deleteArchiveRule(DeleteArchiveRuleRequest request)
Deletes the specified archive rule.
deleteArchiveRule in interface AWSAccessAnalyzerdeleteArchiveRuleRequest - 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.public GenerateFindingRecommendationResult generateFindingRecommendation(GenerateFindingRecommendationRequest request)
Creates a recommendation for an unused permissions finding.
generateFindingRecommendation in interface AWSAccessAnalyzergenerateFindingRecommendationRequest - ValidationException - Validation exception error.InternalServerException - Internal server error.ThrottlingException - Throttling limit exceeded error.AccessDeniedException - You do not have sufficient access to perform this action.public GetAccessPreviewResult getAccessPreview(GetAccessPreviewRequest request)
Retrieves information about an access preview for the specified analyzer.
getAccessPreview in interface AWSAccessAnalyzergetAccessPreviewRequest - 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.public GetAnalyzedResourceResult getAnalyzedResource(GetAnalyzedResourceRequest request)
Retrieves information about a resource that was analyzed.
getAnalyzedResource in interface AWSAccessAnalyzergetAnalyzedResourceRequest - 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.public GetAnalyzerResult getAnalyzer(GetAnalyzerRequest request)
Retrieves information about the specified analyzer.
getAnalyzer in interface AWSAccessAnalyzergetAnalyzerRequest - 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.public GetArchiveRuleResult getArchiveRule(GetArchiveRuleRequest request)
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.
getArchiveRule in interface AWSAccessAnalyzergetArchiveRuleRequest - 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.public GetFindingResult getFinding(GetFindingRequest request)
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.
getFinding in interface AWSAccessAnalyzergetFindingRequest - 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.public GetFindingRecommendationResult getFindingRecommendation(GetFindingRecommendationRequest request)
Retrieves information about a finding recommendation for the specified analyzer.
getFindingRecommendation in interface AWSAccessAnalyzergetFindingRecommendationRequest - 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.public GetFindingV2Result getFindingV2(GetFindingV2Request request)
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.
getFindingV2 in interface AWSAccessAnalyzergetFindingV2Request - 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.public GetGeneratedPolicyResult getGeneratedPolicy(GetGeneratedPolicyRequest request)
Retrieves the policy that was generated using StartPolicyGeneration.
getGeneratedPolicy in interface AWSAccessAnalyzergetGeneratedPolicyRequest - ValidationException - Validation exception error.InternalServerException - Internal server error.ThrottlingException - Throttling limit exceeded error.AccessDeniedException - You do not have sufficient access to perform this action.public ListAccessPreviewFindingsResult listAccessPreviewFindings(ListAccessPreviewFindingsRequest request)
Retrieves a list of access preview findings generated by the specified access preview.
listAccessPreviewFindings in interface AWSAccessAnalyzerlistAccessPreviewFindingsRequest - 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.public ListAccessPreviewsResult listAccessPreviews(ListAccessPreviewsRequest request)
Retrieves a list of access previews for the specified analyzer.
listAccessPreviews in interface AWSAccessAnalyzerlistAccessPreviewsRequest - 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.public ListAnalyzedResourcesResult listAnalyzedResources(ListAnalyzedResourcesRequest request)
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.
listAnalyzedResources in interface AWSAccessAnalyzerlistAnalyzedResourcesRequest - 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.public ListAnalyzersResult listAnalyzers(ListAnalyzersRequest request)
Retrieves a list of analyzers.
listAnalyzers in interface AWSAccessAnalyzerlistAnalyzersRequest - 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.public ListArchiveRulesResult listArchiveRules(ListArchiveRulesRequest request)
Retrieves a list of archive rules created for the specified analyzer.
listArchiveRules in interface AWSAccessAnalyzerlistArchiveRulesRequest - 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.public ListFindingsResult listFindings(ListFindingsRequest request)
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.
listFindings in interface AWSAccessAnalyzerlistFindingsRequest - 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.public ListFindingsV2Result listFindingsV2(ListFindingsV2Request request)
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.
listFindingsV2 in interface AWSAccessAnalyzerlistFindingsV2Request - 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.public ListPolicyGenerationsResult listPolicyGenerations(ListPolicyGenerationsRequest request)
Lists all of the policy generations requested in the last seven days.
listPolicyGenerations in interface AWSAccessAnalyzerlistPolicyGenerationsRequest - ValidationException - Validation exception error.InternalServerException - Internal server error.ThrottlingException - Throttling limit exceeded error.AccessDeniedException - You do not have sufficient access to perform this action.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Retrieves a list of tags applied to the specified resource.
listTagsForResource in interface AWSAccessAnalyzerlistTagsForResourceRequest - 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.public StartPolicyGenerationResult startPolicyGeneration(StartPolicyGenerationRequest request)
Starts the policy generation request.
startPolicyGeneration in interface AWSAccessAnalyzerstartPolicyGenerationRequest - 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.public StartResourceScanResult startResourceScan(StartResourceScanRequest request)
Immediately starts a scan of the policies applied to the specified resource.
startResourceScan in interface AWSAccessAnalyzerstartResourceScanRequest - 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.public TagResourceResult tagResource(TagResourceRequest request)
Adds a tag to the specified resource.
tagResource in interface AWSAccessAnalyzertagResourceRequest - 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.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes a tag from the specified resource.
untagResource in interface AWSAccessAnalyzeruntagResourceRequest - 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.public UpdateArchiveRuleResult updateArchiveRule(UpdateArchiveRuleRequest request)
Updates the criteria and values for the specified archive rule.
updateArchiveRule in interface AWSAccessAnalyzerupdateArchiveRuleRequest - 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.public UpdateFindingsResult updateFindings(UpdateFindingsRequest request)
Updates the status for the specified findings.
updateFindings in interface AWSAccessAnalyzerupdateFindingsRequest - 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.public ValidatePolicyResult validatePolicy(ValidatePolicyRequest request)
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.
validatePolicy in interface AWSAccessAnalyzervalidatePolicyRequest - ValidationException - Validation exception error.InternalServerException - Internal server error.ThrottlingException - Throttling limit exceeded error.AccessDeniedException - You do not have sufficient access to perform this action.public 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 the request.
getCachedResponseMetadata in interface AWSAccessAnalyzerrequest - The originally executed requestpublic void shutdown()
AmazonWebServiceClientshutdown in interface AWSAccessAnalyzershutdown in class AmazonWebServiceClient