Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Resource = Resource' {
- arn :: Maybe Text
- lastReportedAt :: Maybe ISO8601
- owningAccountId :: Maybe Text
- properties :: Maybe [ResourceProperty]
- region :: Maybe Text
- resourceType :: Maybe Text
- service :: Maybe Text
- newResource :: Resource
- resource_arn :: Lens' Resource (Maybe Text)
- resource_lastReportedAt :: Lens' Resource (Maybe UTCTime)
- resource_owningAccountId :: Lens' Resource (Maybe Text)
- resource_properties :: Lens' Resource (Maybe [ResourceProperty])
- resource_region :: Lens' Resource (Maybe Text)
- resource_resourceType :: Lens' Resource (Maybe Text)
- resource_service :: Lens' Resource (Maybe Text)
Documentation
A resource in Amazon Web Services that Amazon Web Services Resource Explorer has discovered, and for which it has stored information in the index of the Amazon Web Services Region that contains the resource.
See: newResource
smart constructor.
Resource' | |
|
Instances
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:arn:Resource'
, resource_arn
- The
Amazon resource name (ARN)
of the resource.
Resource
, resource_lastReportedAt
- The date and time that Resource Explorer last queried this resource and
updated the index with the latest information about the resource.
$sel:owningAccountId:Resource'
, resource_owningAccountId
- The Amazon Web Services account that owns the resource.
$sel:properties:Resource'
, resource_properties
- A structure with additional type-specific details about the resource.
These properties can be added by turning on integration between Resource
Explorer and other Amazon Web Services services.
$sel:region:Resource'
, resource_region
- The Amazon Web Services Region in which the resource was created and
exists.
$sel:resourceType:Resource'
, resource_resourceType
- The type of the resource.
$sel:service:Resource'
, resource_service
- The Amazon Web Service that owns the resource and is responsible for
creating and updating it.
resource_arn :: Lens' Resource (Maybe Text) Source #
The Amazon resource name (ARN) of the resource.
resource_lastReportedAt :: Lens' Resource (Maybe UTCTime) Source #
The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.
resource_owningAccountId :: Lens' Resource (Maybe Text) Source #
The Amazon Web Services account that owns the resource.
resource_properties :: Lens' Resource (Maybe [ResourceProperty]) Source #
A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.