Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Finding = Finding' {
- error :: Maybe Text
- isPublic :: Maybe Bool
- action :: Maybe [Text]
- sources :: Maybe [FindingSource]
- resource :: Maybe Text
- principal :: Maybe (HashMap Text Text)
- analyzedAt :: POSIX
- condition :: HashMap Text Text
- createdAt :: POSIX
- id :: Text
- resourceOwnerAccount :: Text
- resourceType :: ResourceType
- status :: FindingStatus
- updatedAt :: POSIX
- newFinding :: UTCTime -> UTCTime -> Text -> Text -> ResourceType -> FindingStatus -> UTCTime -> Finding
- finding_error :: Lens' Finding (Maybe Text)
- finding_isPublic :: Lens' Finding (Maybe Bool)
- finding_action :: Lens' Finding (Maybe [Text])
- finding_sources :: Lens' Finding (Maybe [FindingSource])
- finding_resource :: Lens' Finding (Maybe Text)
- finding_principal :: Lens' Finding (Maybe (HashMap Text Text))
- finding_analyzedAt :: Lens' Finding UTCTime
- finding_condition :: Lens' Finding (HashMap Text Text)
- finding_createdAt :: Lens' Finding UTCTime
- finding_id :: Lens' Finding Text
- finding_resourceOwnerAccount :: Lens' Finding Text
- finding_resourceType :: Lens' Finding ResourceType
- finding_status :: Lens' Finding FindingStatus
- finding_updatedAt :: Lens' Finding UTCTime
Documentation
Contains information about a finding.
See: newFinding
smart constructor.
Finding' | |
|
Instances
:: UTCTime | |
-> UTCTime | |
-> Text | |
-> Text | |
-> ResourceType | |
-> FindingStatus | |
-> UTCTime | |
-> Finding |
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_condition :: Lens' Finding (HashMap Text Text) Source #
The condition in the analyzed policy statement that resulted in a 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.