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.Types.PolicyGeneration

Description

 
Synopsis

Documentation

data PolicyGeneration Source #

Contains details about the policy generation status and properties.

See: newPolicyGeneration smart constructor.

Constructors

PolicyGeneration' 

Fields

  • completedOn :: Maybe ISO8601

    A timestamp of when the policy generation was completed.

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

  • principalArn :: Text

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

  • status :: JobStatus

    The status of the policy generation request.

  • startedOn :: ISO8601

    A timestamp of when the policy generation started.

Instances

Instances details
FromJSON PolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PolicyGeneration

Generic PolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PolicyGeneration

Associated Types

type Rep PolicyGeneration :: Type -> Type #

Read PolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PolicyGeneration

Show PolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PolicyGeneration

NFData PolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PolicyGeneration

Methods

rnf :: PolicyGeneration -> () #

Eq PolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PolicyGeneration

Hashable PolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PolicyGeneration

type Rep PolicyGeneration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PolicyGeneration

type Rep PolicyGeneration = D1 ('MetaData "PolicyGeneration" "Amazonka.AccessAnalyzer.Types.PolicyGeneration" "amazonka-accessanalyzer-2.0-A0JZirwj4a95MolJaaBere" 'False) (C1 ('MetaCons "PolicyGeneration'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "completedOn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "principalArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 JobStatus) :*: S1 ('MetaSel ('Just "startedOn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601)))))

newPolicyGeneration Source #

Create a value of PolicyGeneration 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:completedOn:PolicyGeneration', policyGeneration_completedOn - A timestamp of when the policy generation was completed.

$sel:jobId:PolicyGeneration', policyGeneration_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.

$sel:principalArn:PolicyGeneration', policyGeneration_principalArn - The ARN of the IAM entity (user or role) for which you are generating a policy.

$sel:status:PolicyGeneration', policyGeneration_status - The status of the policy generation request.

$sel:startedOn:PolicyGeneration', policyGeneration_startedOn - A timestamp of when the policy generation started.

policyGeneration_completedOn :: Lens' PolicyGeneration (Maybe UTCTime) Source #

A timestamp of when the policy generation was completed.

policyGeneration_jobId :: Lens' PolicyGeneration 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.

policyGeneration_principalArn :: Lens' PolicyGeneration Text Source #

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

policyGeneration_status :: Lens' PolicyGeneration JobStatus Source #

The status of the policy generation request.

policyGeneration_startedOn :: Lens' PolicyGeneration UTCTime Source #

A timestamp of when the policy generation started.