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

Description

 
Synopsis

Documentation

data AccessPreviewFinding Source #

An access preview finding generated by the access preview.

See: newAccessPreviewFinding smart constructor.

Constructors

AccessPreviewFinding' 

Fields

  • action :: Maybe [Text]

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

  • condition :: Maybe (HashMap Text Text)

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

  • error :: Maybe Text

    An error.

  • existingFindingId :: Maybe Text

    The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.

  • existingFindingStatus :: Maybe FindingStatus

    The existing status of the finding, provided only for existing findings.

  • isPublic :: Maybe Bool

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

  • principal :: Maybe (HashMap Text Text)

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

  • resource :: Maybe Text

    The resource that an external principal has access to. This is the resource associated with the access preview.

  • sources :: Maybe [FindingSource]

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

  • id :: Text

    The ID of the access preview finding. This ID uniquely identifies the element in the list of access preview findings and is not related to the finding ID in Access Analyzer.

  • resourceType :: ResourceType

    The type of the resource that can be accessed in the finding.

  • createdAt :: ISO8601

    The time at which the access preview finding was created.

  • changeType :: FindingChangeType

    Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.

    • New - The finding is for newly-introduced access.
    • Unchanged - The preview finding is an existing finding that would remain unchanged.
    • Changed - The preview finding is an existing finding with a change in status.

    For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.

  • status :: FindingStatus

    The preview status of the finding. This is what the status of the finding would be after permissions deployment. For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.

  • resourceOwnerAccount :: Text

    The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created.

Instances

Instances details
FromJSON AccessPreviewFinding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.AccessPreviewFinding

Generic AccessPreviewFinding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.AccessPreviewFinding

Associated Types

type Rep AccessPreviewFinding :: Type -> Type #

Read AccessPreviewFinding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.AccessPreviewFinding

Show AccessPreviewFinding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.AccessPreviewFinding

NFData AccessPreviewFinding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.AccessPreviewFinding

Methods

rnf :: AccessPreviewFinding -> () #

Eq AccessPreviewFinding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.AccessPreviewFinding

Hashable AccessPreviewFinding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.AccessPreviewFinding

type Rep AccessPreviewFinding Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.AccessPreviewFinding

type Rep AccessPreviewFinding = D1 ('MetaData "AccessPreviewFinding" "Amazonka.AccessAnalyzer.Types.AccessPreviewFinding" "amazonka-accessanalyzer-2.0-A0JZirwj4a95MolJaaBere" 'False) (C1 ('MetaCons "AccessPreviewFinding'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "condition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "error") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "existingFindingId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "existingFindingStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FindingStatus))) :*: (S1 ('MetaSel ('Just "isPublic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "principal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))) :*: (((S1 ('MetaSel ('Just "resource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FindingSource]))) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceType))) :*: ((S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601) :*: S1 ('MetaSel ('Just "changeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FindingChangeType)) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FindingStatus) :*: S1 ('MetaSel ('Just "resourceOwnerAccount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newAccessPreviewFinding Source #

Create a value of AccessPreviewFinding 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:action:AccessPreviewFinding', accessPreviewFinding_action - The action in the analyzed policy statement that an external principal has permission to perform.

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

$sel:error:AccessPreviewFinding', accessPreviewFinding_error - An error.

$sel:existingFindingId:AccessPreviewFinding', accessPreviewFinding_existingFindingId - The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.

$sel:existingFindingStatus:AccessPreviewFinding', accessPreviewFinding_existingFindingStatus - The existing status of the finding, provided only for existing findings.

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

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

$sel:resource:AccessPreviewFinding', accessPreviewFinding_resource - The resource that an external principal has access to. This is the resource associated with the access preview.

$sel:sources:AccessPreviewFinding', accessPreviewFinding_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:id:AccessPreviewFinding', accessPreviewFinding_id - The ID of the access preview finding. This ID uniquely identifies the element in the list of access preview findings and is not related to the finding ID in Access Analyzer.

$sel:resourceType:AccessPreviewFinding', accessPreviewFinding_resourceType - The type of the resource that can be accessed in the finding.

$sel:createdAt:AccessPreviewFinding', accessPreviewFinding_createdAt - The time at which the access preview finding was created.

$sel:changeType:AccessPreviewFinding', accessPreviewFinding_changeType - Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.

  • New - The finding is for newly-introduced access.
  • Unchanged - The preview finding is an existing finding that would remain unchanged.
  • Changed - The preview finding is an existing finding with a change in status.

For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.

$sel:status:AccessPreviewFinding', accessPreviewFinding_status - The preview status of the finding. This is what the status of the finding would be after permissions deployment. For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.

$sel:resourceOwnerAccount:AccessPreviewFinding', accessPreviewFinding_resourceOwnerAccount - The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created.

accessPreviewFinding_action :: Lens' AccessPreviewFinding (Maybe [Text]) Source #

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

accessPreviewFinding_condition :: Lens' AccessPreviewFinding (Maybe (HashMap Text Text)) Source #

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

accessPreviewFinding_existingFindingId :: Lens' AccessPreviewFinding (Maybe Text) Source #

The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.

accessPreviewFinding_existingFindingStatus :: Lens' AccessPreviewFinding (Maybe FindingStatus) Source #

The existing status of the finding, provided only for existing findings.

accessPreviewFinding_isPublic :: Lens' AccessPreviewFinding (Maybe Bool) Source #

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

accessPreviewFinding_principal :: Lens' AccessPreviewFinding (Maybe (HashMap Text Text)) Source #

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

accessPreviewFinding_resource :: Lens' AccessPreviewFinding (Maybe Text) Source #

The resource that an external principal has access to. This is the resource associated with the access preview.

accessPreviewFinding_sources :: Lens' AccessPreviewFinding (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.

accessPreviewFinding_id :: Lens' AccessPreviewFinding Text Source #

The ID of the access preview finding. This ID uniquely identifies the element in the list of access preview findings and is not related to the finding ID in Access Analyzer.

accessPreviewFinding_resourceType :: Lens' AccessPreviewFinding ResourceType Source #

The type of the resource that can be accessed in the finding.

accessPreviewFinding_createdAt :: Lens' AccessPreviewFinding UTCTime Source #

The time at which the access preview finding was created.

accessPreviewFinding_changeType :: Lens' AccessPreviewFinding FindingChangeType Source #

Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.

  • New - The finding is for newly-introduced access.
  • Unchanged - The preview finding is an existing finding that would remain unchanged.
  • Changed - The preview finding is an existing finding with a change in status.

For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.

accessPreviewFinding_status :: Lens' AccessPreviewFinding FindingStatus Source #

The preview status of the finding. This is what the status of the finding would be after permissions deployment. For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.

accessPreviewFinding_resourceOwnerAccount :: Lens' AccessPreviewFinding Text Source #

The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created.