amazonka-accessanalyzer-2.0: Amazon Access Analyzer SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AccessAnalyzer.ListPolicyGenerations

Description

Lists all of the policy generations requested in the last seven days.

This operation returns paginated results.

Synopsis

Creating a Request

data ListPolicyGenerations Source #

See: newListPolicyGenerations smart constructor.

Constructors

ListPolicyGenerations' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to return in the response.

  • nextToken :: Maybe Text

    A token used for pagination of results returned.

  • principalArn :: Maybe Text

    The ARN of the IAM entity (user or role) for which you are generating a policy. Use this with ListGeneratedPolicies to filter the results to only include results for a specific principal.

Instances

Instances details
ToHeaders ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

ToPath ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

ToQuery ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

AWSPager ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

AWSRequest ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Associated Types

type AWSResponse ListPolicyGenerations #

Generic ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Associated Types

type Rep ListPolicyGenerations :: Type -> Type #

Read ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Show ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

NFData ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Methods

rnf :: ListPolicyGenerations -> () #

Eq ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Hashable ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

type AWSResponse ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

type Rep ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

type Rep ListPolicyGenerations = D1 ('MetaData "ListPolicyGenerations" "Amazonka.AccessAnalyzer.ListPolicyGenerations" "amazonka-accessanalyzer-2.0-A0JZirwj4a95MolJaaBere" 'False) (C1 ('MetaCons "ListPolicyGenerations'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "principalArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListPolicyGenerations :: ListPolicyGenerations Source #

Create a value of ListPolicyGenerations with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:maxResults:ListPolicyGenerations', listPolicyGenerations_maxResults - The maximum number of results to return in the response.

ListPolicyGenerations, listPolicyGenerations_nextToken - A token used for pagination of results returned.

ListPolicyGenerations, listPolicyGenerations_principalArn - The ARN of the IAM entity (user or role) for which you are generating a policy. Use this with ListGeneratedPolicies to filter the results to only include results for a specific principal.

Request Lenses

listPolicyGenerations_maxResults :: Lens' ListPolicyGenerations (Maybe Natural) Source #

The maximum number of results to return in the response.

listPolicyGenerations_nextToken :: Lens' ListPolicyGenerations (Maybe Text) Source #

A token used for pagination of results returned.

listPolicyGenerations_principalArn :: Lens' ListPolicyGenerations (Maybe Text) Source #

The ARN of the IAM entity (user or role) for which you are generating a policy. Use this with ListGeneratedPolicies to filter the results to only include results for a specific principal.

Destructuring the Response

data ListPolicyGenerationsResponse Source #

See: newListPolicyGenerationsResponse smart constructor.

Constructors

ListPolicyGenerationsResponse' 

Fields

Instances

Instances details
Generic ListPolicyGenerationsResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Associated Types

type Rep ListPolicyGenerationsResponse :: Type -> Type #

Read ListPolicyGenerationsResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Show ListPolicyGenerationsResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

NFData ListPolicyGenerationsResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Eq ListPolicyGenerationsResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

type Rep ListPolicyGenerationsResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

type Rep ListPolicyGenerationsResponse = D1 ('MetaData "ListPolicyGenerationsResponse" "Amazonka.AccessAnalyzer.ListPolicyGenerations" "amazonka-accessanalyzer-2.0-A0JZirwj4a95MolJaaBere" 'False) (C1 ('MetaCons "ListPolicyGenerationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "policyGenerations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [PolicyGeneration]))))

newListPolicyGenerationsResponse Source #

Create a value of ListPolicyGenerationsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

ListPolicyGenerations, listPolicyGenerationsResponse_nextToken - A token used for pagination of results returned.

$sel:httpStatus:ListPolicyGenerationsResponse', listPolicyGenerationsResponse_httpStatus - The response's http status code.

$sel:policyGenerations:ListPolicyGenerationsResponse', listPolicyGenerationsResponse_policyGenerations - A PolicyGeneration object that contains details about the generated policy.

Response Lenses

listPolicyGenerationsResponse_policyGenerations :: Lens' ListPolicyGenerationsResponse [PolicyGeneration] Source #

A PolicyGeneration object that contains details about the generated policy.