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
Documentation
Contains an IoT SiteWise Monitor resource ID for a portal or project.
See: newResource
smart constructor.
Resource' | |
|
Instances
Eq Resource Source # | |
Read Resource Source # | |
Show Resource Source # | |
Generic Resource Source # | |
NFData Resource Source # | |
Defined in Amazonka.IoTSiteWise.Types.Resource | |
Hashable Resource Source # | |
Defined in Amazonka.IoTSiteWise.Types.Resource | |
ToJSON Resource Source # | |
Defined in Amazonka.IoTSiteWise.Types.Resource | |
FromJSON Resource Source # | |
type Rep Resource Source # | |
Defined in Amazonka.IoTSiteWise.Types.Resource type Rep Resource = D1 ('MetaData "Resource" "Amazonka.IoTSiteWise.Types.Resource" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "Resource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "portal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PortalResource)) :*: S1 ('MetaSel ('Just "project") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProjectResource)))) |
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:portal:Resource'
, resource_portal
- A portal resource.
$sel:project:Resource'
, resource_project
- A project resource.
resource_portal :: Lens' Resource (Maybe PortalResource) Source #
A portal resource.
resource_project :: Lens' Resource (Maybe ProjectResource) Source #
A project resource.