View Source aws_accessanalyzer (aws v1.0.4)

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: https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html in the IAM User Guide.

Summary

Functions

Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
Cancels the requested policy generation.
Checks whether the specified access isn't allowed by a policy.

Checks whether new access is allowed for an updated policy when compared to the existing policy.

Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions.
Creates an analyzer for your account.

Creates an archive rule for the specified analyzer.

Deletes the specified analyzer.

Retrieves information about an access preview for the specified analyzer.
Retrieves information about a resource that was analyzed.
Retrieves information about the specified analyzer.

Retrieves information about an archive rule.

Retrieves information about the specified finding.
Retrieves information about the specified finding.
Retrieves the policy that was generated using StartPolicyGeneration.
Retrieves a list of access preview findings generated by the specified access preview.
Retrieves a list of access previews for the specified analyzer.
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
Retrieves a list of analyzers.
Retrieves a list of archive rules created for the specified analyzer.

Retrieves a list of findings generated by the specified analyzer.

Retrieves a list of findings generated by the specified analyzer.

Lists all of the policy generations requested in the last seven days.
Retrieves a list of tags applied to the specified resource.
Starts the policy generation request.
Immediately starts a scan of the policies applied to the specified resource.
Adds a tag to the specified resource.
Removes a tag from the specified resource.
Updates the criteria and values for the specified archive rule.
Updates the status for the specified findings.

Requests the validation of a policy and returns a list of findings.

Functions

Link to this function

apply_archive_rule(Client, Input)

View Source
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
Link to this function

apply_archive_rule(Client, Input0, Options0)

View Source
Link to this function

cancel_policy_generation(Client, JobId, Input)

View Source
Cancels the requested policy generation.
Link to this function

cancel_policy_generation(Client, JobId, Input0, Options0)

View Source
Link to this function

check_access_not_granted(Client, Input)

View Source
Checks whether the specified access isn't allowed by a policy.
Link to this function

check_access_not_granted(Client, Input0, Options0)

View Source
Link to this function

check_no_new_access(Client, Input)

View Source

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: https://github.com/aws-samples/iam-access-analyzer-custom-policy-check-samples repository on GitHub. The reference policies in this repository are meant to be passed to the existingPolicyDocument request parameter.
Link to this function

check_no_new_access(Client, Input0, Options0)

View Source
Link to this function

create_access_preview(Client, Input)

View Source
Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions.
Link to this function

create_access_preview(Client, Input0, Options0)

View Source
Link to this function

create_analyzer(Client, Input)

View Source
Creates an analyzer for your account.
Link to this function

create_analyzer(Client, Input0, Options0)

View Source
Link to this function

create_archive_rule(Client, AnalyzerName, Input)

View Source

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: https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html in the IAM User Guide.
Link to this function

create_archive_rule(Client, AnalyzerName, Input0, Options0)

View Source
Link to this function

delete_analyzer(Client, AnalyzerName, Input)

View Source

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.
Link to this function

delete_analyzer(Client, AnalyzerName, Input0, Options0)

View Source
Link to this function

delete_archive_rule(Client, AnalyzerName, RuleName, Input)

View Source
Deletes the specified archive rule.
Link to this function

delete_archive_rule(Client, AnalyzerName, RuleName, Input0, Options0)

View Source
Link to this function

get_access_preview(Client, AccessPreviewId, AnalyzerArn)

View Source
Retrieves information about an access preview for the specified analyzer.
Link to this function

get_access_preview(Client, AccessPreviewId, AnalyzerArn, QueryMap, HeadersMap)

View Source
Link to this function

get_access_preview(Client, AccessPreviewId, AnalyzerArn, QueryMap, HeadersMap, Options0)

View Source
Link to this function

get_analyzed_resource(Client, AnalyzerArn, ResourceArn)

View Source
Retrieves information about a resource that was analyzed.
Link to this function

get_analyzed_resource(Client, AnalyzerArn, ResourceArn, QueryMap, HeadersMap)

View Source
Link to this function

get_analyzed_resource(Client, AnalyzerArn, ResourceArn, QueryMap, HeadersMap, Options0)

View Source
Link to this function

get_analyzer(Client, AnalyzerName)

View Source
Retrieves information about the specified analyzer.
Link to this function

get_analyzer(Client, AnalyzerName, QueryMap, HeadersMap)

View Source
Link to this function

get_analyzer(Client, AnalyzerName, QueryMap, HeadersMap, Options0)

View Source
Link to this function

get_archive_rule(Client, AnalyzerName, RuleName)

View Source

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: https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html in the IAM User Guide.
Link to this function

get_archive_rule(Client, AnalyzerName, RuleName, QueryMap, HeadersMap)

View Source
Link to this function

get_archive_rule(Client, AnalyzerName, RuleName, QueryMap, HeadersMap, Options0)

View Source
Link to this function

get_finding(Client, Id, AnalyzerArn)

View Source
Retrieves information about the specified finding.
Link to this function

get_finding(Client, Id, AnalyzerArn, QueryMap, HeadersMap)

View Source
Link to this function

get_finding(Client, Id, AnalyzerArn, QueryMap, HeadersMap, Options0)

View Source
Link to this function

get_finding_v2(Client, Id, AnalyzerArn)

View Source
Retrieves information about the specified finding.
Link to this function

get_finding_v2(Client, Id, AnalyzerArn, QueryMap, HeadersMap)

View Source
Link to this function

get_finding_v2(Client, Id, AnalyzerArn, QueryMap, HeadersMap, Options0)

View Source
Link to this function

get_generated_policy(Client, JobId)

View Source
Retrieves the policy that was generated using StartPolicyGeneration.
Link to this function

get_generated_policy(Client, JobId, QueryMap, HeadersMap)

View Source
Link to this function

get_generated_policy(Client, JobId, QueryMap, HeadersMap, Options0)

View Source
Link to this function

list_access_preview_findings(Client, AccessPreviewId, Input)

View Source
Retrieves a list of access preview findings generated by the specified access preview.
Link to this function

list_access_preview_findings(Client, AccessPreviewId, Input0, Options0)

View Source
Link to this function

list_access_previews(Client, AnalyzerArn)

View Source
Retrieves a list of access previews for the specified analyzer.
Link to this function

list_access_previews(Client, AnalyzerArn, QueryMap, HeadersMap)

View Source
Link to this function

list_access_previews(Client, AnalyzerArn, QueryMap, HeadersMap, Options0)

View Source
Link to this function

list_analyzed_resources(Client, Input)

View Source
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
Link to this function

list_analyzed_resources(Client, Input0, Options0)

View Source
Retrieves a list of analyzers.
Link to this function

list_analyzers(Client, QueryMap, HeadersMap)

View Source
Link to this function

list_analyzers(Client, QueryMap, HeadersMap, Options0)

View Source
Link to this function

list_archive_rules(Client, AnalyzerName)

View Source
Retrieves a list of archive rules created for the specified analyzer.
Link to this function

list_archive_rules(Client, AnalyzerName, QueryMap, HeadersMap)

View Source
Link to this function

list_archive_rules(Client, AnalyzerName, QueryMap, HeadersMap, Options0)

View Source
Link to this function

list_findings(Client, Input)

View Source

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 IAM Access Analyzer filter keys: https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html in the IAM User Guide.
Link to this function

list_findings(Client, Input0, Options0)

View Source
Link to this function

list_findings_v2(Client, Input)

View Source

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 IAM Access Analyzer filter keys: https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html in the IAM User Guide.
Link to this function

list_findings_v2(Client, Input0, Options0)

View Source
Link to this function

list_policy_generations(Client)

View Source
Lists all of the policy generations requested in the last seven days.
Link to this function

list_policy_generations(Client, QueryMap, HeadersMap)

View Source
Link to this function

list_policy_generations(Client, QueryMap, HeadersMap, Options0)

View Source
Link to this function

list_tags_for_resource(Client, ResourceArn)

View Source
Retrieves a list of tags applied to the specified resource.
Link to this function

list_tags_for_resource(Client, ResourceArn, QueryMap, HeadersMap)

View Source
Link to this function

list_tags_for_resource(Client, ResourceArn, QueryMap, HeadersMap, Options0)

View Source
Link to this function

start_policy_generation(Client, Input)

View Source
Starts the policy generation request.
Link to this function

start_policy_generation(Client, Input0, Options0)

View Source
Link to this function

start_resource_scan(Client, Input)

View Source
Immediately starts a scan of the policies applied to the specified resource.
Link to this function

start_resource_scan(Client, Input0, Options0)

View Source
Link to this function

tag_resource(Client, ResourceArn, Input)

View Source
Adds a tag to the specified resource.
Link to this function

tag_resource(Client, ResourceArn, Input0, Options0)

View Source
Link to this function

untag_resource(Client, ResourceArn, Input)

View Source
Removes a tag from the specified resource.
Link to this function

untag_resource(Client, ResourceArn, Input0, Options0)

View Source
Link to this function

update_archive_rule(Client, AnalyzerName, RuleName, Input)

View Source
Updates the criteria and values for the specified archive rule.
Link to this function

update_archive_rule(Client, AnalyzerName, RuleName, Input0, Options0)

View Source
Link to this function

update_findings(Client, Input)

View Source
Updates the status for the specified findings.
Link to this function

update_findings(Client, Input0, Options0)

View Source
Link to this function

validate_policy(Client, Input)

View Source

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.
Link to this function

validate_policy(Client, Input0, Options0)

View Source