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

Description

Starts the policy generation request.

Synopsis

Creating a Request

data StartPolicyGeneration Source #

See: newStartPolicyGeneration smart constructor.

Constructors

StartPolicyGeneration' 

Fields

  • clientToken :: Maybe Text

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect.

    If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.

  • cloudTrailDetails :: Maybe CloudTrailDetails

    A CloudTrailDetails object that contains details about a Trail that you want to analyze to generate policies.

  • policyGenerationDetails :: PolicyGenerationDetails

    Contains the ARN of the IAM entity (user or role) for which you are generating a policy.

Instances

Instances details
Eq StartPolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

Read StartPolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

Show StartPolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

Generic StartPolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

Associated Types

type Rep StartPolicyGeneration :: Type -> Type #

NFData StartPolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

Methods

rnf :: StartPolicyGeneration -> () #

Hashable StartPolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

ToJSON StartPolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

AWSRequest StartPolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

Associated Types

type AWSResponse StartPolicyGeneration #

ToHeaders StartPolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

ToPath StartPolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

ToQuery StartPolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

type Rep StartPolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

type Rep StartPolicyGeneration = D1 ('MetaData "StartPolicyGeneration" "Amazonka.AccessAnalyzer.StartPolicyGeneration" "libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer" 'False) (C1 ('MetaCons "StartPolicyGeneration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "cloudTrailDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CloudTrailDetails)) :*: S1 ('MetaSel ('Just "policyGenerationDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PolicyGenerationDetails))))
type AWSResponse StartPolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

newStartPolicyGeneration Source #

Create a value of StartPolicyGeneration 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:clientToken:StartPolicyGeneration', startPolicyGeneration_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect.

If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.

$sel:cloudTrailDetails:StartPolicyGeneration', startPolicyGeneration_cloudTrailDetails - A CloudTrailDetails object that contains details about a Trail that you want to analyze to generate policies.

$sel:policyGenerationDetails:StartPolicyGeneration', startPolicyGeneration_policyGenerationDetails - Contains the ARN of the IAM entity (user or role) for which you are generating a policy.

Request Lenses

startPolicyGeneration_clientToken :: Lens' StartPolicyGeneration (Maybe Text) Source #

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect.

If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.

startPolicyGeneration_cloudTrailDetails :: Lens' StartPolicyGeneration (Maybe CloudTrailDetails) Source #

A CloudTrailDetails object that contains details about a Trail that you want to analyze to generate policies.

startPolicyGeneration_policyGenerationDetails :: Lens' StartPolicyGeneration PolicyGenerationDetails Source #

Contains the ARN of the IAM entity (user or role) for which you are generating a policy.

Destructuring the Response

data StartPolicyGenerationResponse Source #

See: newStartPolicyGenerationResponse smart constructor.

Constructors

StartPolicyGenerationResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • jobId :: Text

    The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.

Instances

Instances details
Eq StartPolicyGenerationResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

Read StartPolicyGenerationResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

Show StartPolicyGenerationResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

Generic StartPolicyGenerationResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

Associated Types

type Rep StartPolicyGenerationResponse :: Type -> Type #

NFData StartPolicyGenerationResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

type Rep StartPolicyGenerationResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.StartPolicyGeneration

type Rep StartPolicyGenerationResponse = D1 ('MetaData "StartPolicyGenerationResponse" "Amazonka.AccessAnalyzer.StartPolicyGeneration" "libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer" 'False) (C1 ('MetaCons "StartPolicyGenerationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newStartPolicyGenerationResponse Source #

Create a value of StartPolicyGenerationResponse 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:httpStatus:StartPolicyGenerationResponse', startPolicyGenerationResponse_httpStatus - The response's http status code.

$sel:jobId:StartPolicyGenerationResponse', startPolicyGenerationResponse_jobId - The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.

Response Lenses

startPolicyGenerationResponse_jobId :: Lens' StartPolicyGenerationResponse Text Source #

The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.