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 Resource = Resource' {}
- newResource :: Text -> Text -> Resource
- resource_dataClassification :: Lens' Resource (Maybe DataClassificationDetails)
- resource_partition :: Lens' Resource (Maybe Partition)
- resource_details :: Lens' Resource (Maybe ResourceDetails)
- resource_region :: Lens' Resource (Maybe Text)
- resource_resourceRole :: Lens' Resource (Maybe Text)
- resource_tags :: Lens' Resource (Maybe (HashMap Text Text))
- resource_type :: Lens' Resource Text
- resource_id :: Lens' Resource Text
Documentation
A resource related to a finding.
See: newResource
smart constructor.
Resource' | |
|
Instances
Create a value of Resource
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:dataClassification:Resource'
, resource_dataClassification
- Contains information about sensitive data that was detected on the
resource.
$sel:partition:Resource'
, resource_partition
- The canonical Amazon Web Services partition name that the Region is
assigned to.
$sel:details:Resource'
, resource_details
- Additional details about the resource related to a finding.
$sel:region:Resource'
, resource_region
- The canonical Amazon Web Services external Region name where this
resource is located.
$sel:resourceRole:Resource'
, resource_resourceRole
- Identifies the role of the resource in the finding. A resource is either
the actor or target of the finding activity,
$sel:tags:Resource'
, resource_tags
- A list of Amazon Web Services tags associated with a resource at the
time the finding was processed.
$sel:type':Resource'
, resource_type
- The type of the resource that details are provided for. If possible, set
Type
to one of the supported resource types. For example, if the
resource is an EC2 instance, then set Type
to AwsEc2Instance
.
If the resource does not match any of the provided types, then set
Type
to Other
.
$sel:id:Resource'
, resource_id
- The canonical identifier for the given resource type.
resource_dataClassification :: Lens' Resource (Maybe DataClassificationDetails) Source #
Contains information about sensitive data that was detected on the resource.
resource_partition :: Lens' Resource (Maybe Partition) Source #
The canonical Amazon Web Services partition name that the Region is assigned to.
resource_details :: Lens' Resource (Maybe ResourceDetails) Source #
Additional details about the resource related to a finding.
resource_region :: Lens' Resource (Maybe Text) Source #
The canonical Amazon Web Services external Region name where this resource is located.
resource_resourceRole :: Lens' Resource (Maybe Text) Source #
Identifies the role of the resource in the finding. A resource is either the actor or target of the finding activity,
resource_tags :: Lens' Resource (Maybe (HashMap Text Text)) Source #
A list of Amazon Web Services tags associated with a resource at the time the finding was processed.
resource_type :: Lens' Resource Text Source #
The type of the resource that details are provided for. If possible, set
Type
to one of the supported resource types. For example, if the
resource is an EC2 instance, then set Type
to AwsEc2Instance
.
If the resource does not match any of the provided types, then set
Type
to Other
.