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

Description

 
Synopsis

Documentation

data Finding Source #

Contains information about a finding.

See: newFinding smart constructor.

Constructors

Finding' 

Fields

Instances

Instances details
Eq Finding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Finding

Methods

(==) :: Finding -> Finding -> Bool #

(/=) :: Finding -> Finding -> Bool #

Read Finding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Finding

Show Finding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Finding

Generic Finding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Finding

Associated Types

type Rep Finding :: Type -> Type #

Methods

from :: Finding -> Rep Finding x #

to :: Rep Finding x -> Finding #

NFData Finding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Finding

Methods

rnf :: Finding -> () #

Hashable Finding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Finding

Methods

hashWithSalt :: Int -> Finding -> Int #

hash :: Finding -> Int #

FromJSON Finding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Finding

type Rep Finding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Finding

type Rep Finding = D1 ('MetaData "Finding" "Amazonka.AccessAnalyzer.Types.Finding" "libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer" 'False) (C1 ('MetaCons "Finding'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "error") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "isPublic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: ((S1 ('MetaSel ('Just "sources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FindingSource])) :*: S1 ('MetaSel ('Just "resource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "principal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "analyzedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX)))) :*: ((S1 ('MetaSel ('Just "condition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text)) :*: (S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "resourceOwnerAccount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceType)) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FindingStatus) :*: S1 ('MetaSel ('Just "updatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX))))))

newFinding Source #

Create a value of Finding 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:error:Finding', finding_error - An error.

$sel:isPublic:Finding', finding_isPublic - Indicates whether the policy that generated the finding allows public access to the resource.

$sel:action:Finding', finding_action - The action in the analyzed policy statement that an external principal has permission to use.

$sel:sources:Finding', finding_sources - The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.

$sel:resource:Finding', finding_resource - The resource that an external principal has access to.

$sel:principal:Finding', finding_principal - The external principal that access to a resource within the zone of trust.

$sel:analyzedAt:Finding', finding_analyzedAt - The time at which the resource was analyzed.

$sel:condition:Finding', finding_condition - The condition in the analyzed policy statement that resulted in a finding.

$sel:createdAt:Finding', finding_createdAt - The time at which the finding was generated.

$sel:id:Finding', finding_id - The ID of the finding.

$sel:resourceOwnerAccount:Finding', finding_resourceOwnerAccount - The Amazon Web Services account ID that owns the resource.

$sel:resourceType:Finding', finding_resourceType - The type of the resource identified in the finding.

$sel:status:Finding', finding_status - The current status of the finding.

$sel:updatedAt:Finding', finding_updatedAt - The time at which the finding was updated.

finding_isPublic :: Lens' Finding (Maybe Bool) Source #

Indicates whether the policy that generated the finding allows public access to the resource.

finding_action :: Lens' Finding (Maybe [Text]) Source #

The action in the analyzed policy statement that an external principal has permission to use.

finding_sources :: Lens' Finding (Maybe [FindingSource]) Source #

The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.

finding_resource :: Lens' Finding (Maybe Text) Source #

The resource that an external principal has access to.

finding_principal :: Lens' Finding (Maybe (HashMap Text Text)) Source #

The external principal that access to a resource within the zone of trust.

finding_analyzedAt :: Lens' Finding UTCTime Source #

The time at which the resource was analyzed.

finding_condition :: Lens' Finding (HashMap Text Text) Source #

The condition in the analyzed policy statement that resulted in a finding.

finding_createdAt :: Lens' Finding UTCTime Source #

The time at which the finding was generated.

finding_id :: Lens' Finding Text Source #

The ID of the finding.

finding_resourceOwnerAccount :: Lens' Finding Text Source #

The Amazon Web Services account ID that owns the resource.

finding_resourceType :: Lens' Finding ResourceType Source #

The type of the resource identified in the finding.

finding_status :: Lens' Finding FindingStatus Source #

The current status of the finding.

finding_updatedAt :: Lens' Finding UTCTime Source #

The time at which the finding was updated.