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 FindingSummary = FindingSummary' {
- 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
- newFindingSummary :: UTCTime -> UTCTime -> Text -> Text -> ResourceType -> FindingStatus -> UTCTime -> FindingSummary
- findingSummary_error :: Lens' FindingSummary (Maybe Text)
- findingSummary_isPublic :: Lens' FindingSummary (Maybe Bool)
- findingSummary_action :: Lens' FindingSummary (Maybe [Text])
- findingSummary_sources :: Lens' FindingSummary (Maybe [FindingSource])
- findingSummary_resource :: Lens' FindingSummary (Maybe Text)
- findingSummary_principal :: Lens' FindingSummary (Maybe (HashMap Text Text))
- findingSummary_analyzedAt :: Lens' FindingSummary UTCTime
- findingSummary_condition :: Lens' FindingSummary (HashMap Text Text)
- findingSummary_createdAt :: Lens' FindingSummary UTCTime
- findingSummary_id :: Lens' FindingSummary Text
- findingSummary_resourceOwnerAccount :: Lens' FindingSummary Text
- findingSummary_resourceType :: Lens' FindingSummary ResourceType
- findingSummary_status :: Lens' FindingSummary FindingStatus
- findingSummary_updatedAt :: Lens' FindingSummary UTCTime
Documentation
data FindingSummary Source #
Contains information about a finding.
See: newFindingSummary
smart constructor.
FindingSummary' | |
|
Instances
:: UTCTime | |
-> UTCTime | |
-> Text | |
-> Text | |
-> ResourceType | |
-> FindingStatus | |
-> UTCTime | |
-> FindingSummary |
Create a value of FindingSummary
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:FindingSummary'
, findingSummary_error
- The error that resulted in an Error finding.
$sel:isPublic:FindingSummary'
, findingSummary_isPublic
- Indicates whether the finding reports a resource that has a policy that
allows public access.
$sel:action:FindingSummary'
, findingSummary_action
- The action in the analyzed policy statement that an external principal
has permission to use.
$sel:sources:FindingSummary'
, findingSummary_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:FindingSummary'
, findingSummary_resource
- The resource that the external principal has access to.
$sel:principal:FindingSummary'
, findingSummary_principal
- The external principal that has access to a resource within the zone of
trust.
$sel:analyzedAt:FindingSummary'
, findingSummary_analyzedAt
- The time at which the resource-based policy that generated the finding
was analyzed.
$sel:condition:FindingSummary'
, findingSummary_condition
- The condition in the analyzed policy statement that resulted in a
finding.
$sel:createdAt:FindingSummary'
, findingSummary_createdAt
- The time at which the finding was created.
$sel:id:FindingSummary'
, findingSummary_id
- The ID of the finding.
$sel:resourceOwnerAccount:FindingSummary'
, findingSummary_resourceOwnerAccount
- The Amazon Web Services account ID that owns the resource.
$sel:resourceType:FindingSummary'
, findingSummary_resourceType
- The type of the resource that the external principal has access to.
$sel:status:FindingSummary'
, findingSummary_status
- The status of the finding.
$sel:updatedAt:FindingSummary'
, findingSummary_updatedAt
- The time at which the finding was most recently updated.
findingSummary_error :: Lens' FindingSummary (Maybe Text) Source #
The error that resulted in an Error finding.
findingSummary_isPublic :: Lens' FindingSummary (Maybe Bool) Source #
Indicates whether the finding reports a resource that has a policy that allows public access.
findingSummary_action :: Lens' FindingSummary (Maybe [Text]) Source #
The action in the analyzed policy statement that an external principal has permission to use.
findingSummary_sources :: Lens' FindingSummary (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.
findingSummary_resource :: Lens' FindingSummary (Maybe Text) Source #
The resource that the external principal has access to.
findingSummary_principal :: Lens' FindingSummary (Maybe (HashMap Text Text)) Source #
The external principal that has access to a resource within the zone of trust.
findingSummary_analyzedAt :: Lens' FindingSummary UTCTime Source #
The time at which the resource-based policy that generated the finding was analyzed.
findingSummary_condition :: Lens' FindingSummary (HashMap Text Text) Source #
The condition in the analyzed policy statement that resulted in a finding.
findingSummary_createdAt :: Lens' FindingSummary UTCTime Source #
The time at which the finding was created.
findingSummary_id :: Lens' FindingSummary Text Source #
The ID of the finding.
findingSummary_resourceOwnerAccount :: Lens' FindingSummary Text Source #
The Amazon Web Services account ID that owns the resource.
findingSummary_resourceType :: Lens' FindingSummary ResourceType Source #
The type of the resource that the external principal has access to.
findingSummary_status :: Lens' FindingSummary FindingStatus Source #
The status of the finding.
findingSummary_updatedAt :: Lens' FindingSummary UTCTime Source #
The time at which the finding was most recently updated.