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 :: Resource
- resource_resourceType :: Lens' Resource (Maybe Text)
- resource_resourceName :: Lens' Resource (Maybe Text)
Documentation
Specifies the type and name of a resource referenced by an event.
See: newResource
smart constructor.
Resource' | |
|
Instances
Eq Resource Source # | |
Read Resource Source # | |
Show Resource Source # | |
Generic Resource Source # | |
NFData Resource Source # | |
Defined in Amazonka.CloudTrail.Types.Resource | |
Hashable Resource Source # | |
Defined in Amazonka.CloudTrail.Types.Resource | |
FromJSON Resource Source # | |
type Rep Resource Source # | |
Defined in Amazonka.CloudTrail.Types.Resource type Rep Resource = D1 ('MetaData "Resource" "Amazonka.CloudTrail.Types.Resource" "libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail" 'False) (C1 ('MetaCons "Resource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) |
newResource :: Resource Source #
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:resourceType:Resource'
, resource_resourceType
- The type of a resource referenced by the event returned. When the
resource type cannot be determined, null is returned. Some examples of
resource types are: Instance for EC2, Trail for CloudTrail,
DBInstance for Amazon RDS, and AccessKey for IAM. To learn more
about how to look up and filter events by the resource types supported
for a service, see
Filtering CloudTrail Events.
$sel:resourceName:Resource'
, resource_resourceName
- The name of the resource referenced by the event returned. These are
user-created names whose values will depend on the environment. For
example, the resource name might be "auto-scaling-test-group" for an
Auto Scaling Group or "i-1234567" for an EC2 Instance.
resource_resourceType :: Lens' Resource (Maybe Text) Source #
The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for Amazon RDS, and AccessKey for IAM. To learn more about how to look up and filter events by the resource types supported for a service, see Filtering CloudTrail Events.
resource_resourceName :: Lens' Resource (Maybe Text) Source #
The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" for an EC2 Instance.