@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSAccessAnalyzerClient extends AmazonWebServiceClient implements AWSAccessAnalyzer
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
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() |
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.
|
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.
|
ListAnalyzedResourcesResult |
listAnalyzedResources(ListAnalyzedResourcesRequest request)
Retrieves a list of resources of the specified type that have been analyzed by the specified 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.
|
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.
|
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.
|
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
public 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 AWSAccessAnalyzer
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.public CreateAnalyzerResult createAnalyzer(CreateAnalyzerRequest request)
Creates an analyzer for your account.
createAnalyzer
in interface AWSAccessAnalyzer
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.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.
createArchiveRule
in interface AWSAccessAnalyzer
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.public DeleteAnalyzerResult deleteAnalyzer(DeleteAnalyzerRequest request)
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.
deleteAnalyzer
in interface AWSAccessAnalyzer
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.public DeleteArchiveRuleResult deleteArchiveRule(DeleteArchiveRuleRequest request)
Deletes the specified archive rule.
deleteArchiveRule
in interface AWSAccessAnalyzer
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.public GetAnalyzedResourceResult getAnalyzedResource(GetAnalyzedResourceRequest request)
Retrieves information about a resource that was analyzed.
getAnalyzedResource
in interface AWSAccessAnalyzer
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.public GetAnalyzerResult getAnalyzer(GetAnalyzerRequest request)
Retrieves information about the specified analyzer.
getAnalyzer
in interface AWSAccessAnalyzer
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.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 Access Analyzer filter keys in the IAM User Guide.
getArchiveRule
in interface AWSAccessAnalyzer
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.public GetFindingResult getFinding(GetFindingRequest request)
Retrieves information about the specified finding.
getFinding
in interface AWSAccessAnalyzer
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.public ListAnalyzedResourcesResult listAnalyzedResources(ListAnalyzedResourcesRequest request)
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
listAnalyzedResources
in interface AWSAccessAnalyzer
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.public ListAnalyzersResult listAnalyzers(ListAnalyzersRequest request)
Retrieves a list of analyzers.
listAnalyzers
in interface AWSAccessAnalyzer
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.public ListArchiveRulesResult listArchiveRules(ListArchiveRulesRequest request)
Retrieves a list of archive rules created for the specified analyzer.
listArchiveRules
in interface AWSAccessAnalyzer
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.public ListFindingsResult listFindings(ListFindingsRequest request)
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.
listFindings
in interface AWSAccessAnalyzer
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.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Retrieves a list of tags applied to the specified resource.
listTagsForResource
in interface AWSAccessAnalyzer
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.public StartResourceScanResult startResourceScan(StartResourceScanRequest request)
Immediately starts a scan of the policies applied to the specified resource.
startResourceScan
in interface AWSAccessAnalyzer
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.public TagResourceResult tagResource(TagResourceRequest request)
Adds a tag to the specified resource.
tagResource
in interface AWSAccessAnalyzer
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.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes a tag from the specified resource.
untagResource
in interface AWSAccessAnalyzer
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.public UpdateArchiveRuleResult updateArchiveRule(UpdateArchiveRuleRequest request)
Updates the criteria and values for the specified archive rule.
updateArchiveRule
in interface AWSAccessAnalyzer
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.public UpdateFindingsResult updateFindings(UpdateFindingsRequest request)
Updates the status for the specified findings.
updateFindings
in interface AWSAccessAnalyzer
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.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 AWSAccessAnalyzer
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AWSAccessAnalyzer
shutdown
in class AmazonWebServiceClient