libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

  • 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.

  • maxResults :: Maybe Natural

    The maximum number of results to return in the response.

Instances

Instances details
Eq ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Read ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Show ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Generic ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Associated Types

type Rep ListPolicyGenerations :: Type -> Type #

NFData ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Methods

rnf :: ListPolicyGenerations -> () #

Hashable 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 #

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

type Rep ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

type Rep ListPolicyGenerations = D1 ('MetaData "ListPolicyGenerations" "Amazonka.AccessAnalyzer.ListPolicyGenerations" "libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer" 'False) (C1 ('MetaCons "ListPolicyGenerations'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "principalArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse ListPolicyGenerations Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

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:nextToken:ListPolicyGenerations', listPolicyGenerations_nextToken - A token used for pagination of results returned.

$sel:principalArn: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.

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

Request Lenses

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.

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

The maximum number of results to return in the response.

Destructuring the Response

data ListPolicyGenerationsResponse Source #

See: newListPolicyGenerationsResponse smart constructor.

Constructors

ListPolicyGenerationsResponse' 

Fields

Instances

Instances details
Eq ListPolicyGenerationsResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Read ListPolicyGenerationsResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Show ListPolicyGenerationsResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Generic ListPolicyGenerationsResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.ListPolicyGenerations

Associated Types

type Rep ListPolicyGenerationsResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer" '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:

$sel:nextToken: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.