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 |
Updates an IoT SiteWise Monitor portal.
Synopsis
- data UpdatePortal = UpdatePortal' {}
- newUpdatePortal :: Text -> Text -> Text -> Text -> UpdatePortal
- updatePortal_clientToken :: Lens' UpdatePortal (Maybe Text)
- updatePortal_portalDescription :: Lens' UpdatePortal (Maybe Text)
- updatePortal_notificationSenderEmail :: Lens' UpdatePortal (Maybe Text)
- updatePortal_portalLogoImage :: Lens' UpdatePortal (Maybe Image)
- updatePortal_alarms :: Lens' UpdatePortal (Maybe Alarms)
- updatePortal_portalId :: Lens' UpdatePortal Text
- updatePortal_portalName :: Lens' UpdatePortal Text
- updatePortal_portalContactEmail :: Lens' UpdatePortal Text
- updatePortal_roleArn :: Lens' UpdatePortal Text
- data UpdatePortalResponse = UpdatePortalResponse' {}
- newUpdatePortalResponse :: Int -> PortalStatus -> UpdatePortalResponse
- updatePortalResponse_httpStatus :: Lens' UpdatePortalResponse Int
- updatePortalResponse_portalStatus :: Lens' UpdatePortalResponse PortalStatus
Creating a Request
data UpdatePortal Source #
See: newUpdatePortal
smart constructor.
UpdatePortal' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> UpdatePortal |
Create a value of UpdatePortal
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:clientToken:UpdatePortal'
, updatePortal_clientToken
- A unique case-sensitive identifier that you can provide to ensure the
idempotency of the request. Don't reuse this client token if a new
idempotent request is required.
$sel:portalDescription:UpdatePortal'
, updatePortal_portalDescription
- A new description for the portal.
$sel:notificationSenderEmail:UpdatePortal'
, updatePortal_notificationSenderEmail
- The email address that sends alarm notifications.
$sel:portalLogoImage:UpdatePortal'
, updatePortal_portalLogoImage
- Undocumented member.
$sel:alarms:UpdatePortal'
, updatePortal_alarms
- Contains the configuration information of an alarm created in an IoT
SiteWise Monitor portal. You can use the alarm to monitor an asset
property and get notified when the asset property value is outside a
specified range. For more information, see
Monitoring with alarms
in the IoT SiteWise Application Guide.
$sel:portalId:UpdatePortal'
, updatePortal_portalId
- The ID of the portal to update.
$sel:portalName:UpdatePortal'
, updatePortal_portalName
- A new friendly name for the portal.
$sel:portalContactEmail:UpdatePortal'
, updatePortal_portalContactEmail
- The Amazon Web Services administrator's contact email address.
$sel:roleArn:UpdatePortal'
, updatePortal_roleArn
- The
ARN
of a service role that allows the portal's users to access your IoT
SiteWise resources on your behalf. For more information, see
Using service roles for IoT SiteWise Monitor
in the IoT SiteWise User Guide.
Request Lenses
updatePortal_clientToken :: Lens' UpdatePortal (Maybe Text) Source #
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
updatePortal_portalDescription :: Lens' UpdatePortal (Maybe Text) Source #
A new description for the portal.
updatePortal_notificationSenderEmail :: Lens' UpdatePortal (Maybe Text) Source #
The email address that sends alarm notifications.
updatePortal_portalLogoImage :: Lens' UpdatePortal (Maybe Image) Source #
Undocumented member.
updatePortal_alarms :: Lens' UpdatePortal (Maybe Alarms) Source #
Contains the configuration information of an alarm created in an IoT SiteWise Monitor portal. You can use the alarm to monitor an asset property and get notified when the asset property value is outside a specified range. For more information, see Monitoring with alarms in the IoT SiteWise Application Guide.
updatePortal_portalId :: Lens' UpdatePortal Text Source #
The ID of the portal to update.
updatePortal_portalName :: Lens' UpdatePortal Text Source #
A new friendly name for the portal.
updatePortal_portalContactEmail :: Lens' UpdatePortal Text Source #
The Amazon Web Services administrator's contact email address.
updatePortal_roleArn :: Lens' UpdatePortal Text Source #
The ARN of a service role that allows the portal's users to access your IoT SiteWise resources on your behalf. For more information, see Using service roles for IoT SiteWise Monitor in the IoT SiteWise User Guide.
Destructuring the Response
data UpdatePortalResponse Source #
See: newUpdatePortalResponse
smart constructor.
UpdatePortalResponse' | |
|
Instances
newUpdatePortalResponse Source #
:: Int | |
-> PortalStatus | |
-> UpdatePortalResponse |
Create a value of UpdatePortalResponse
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:httpStatus:UpdatePortalResponse'
, updatePortalResponse_httpStatus
- The response's http status code.
$sel:portalStatus:UpdatePortalResponse'
, updatePortalResponse_portalStatus
- The status of the portal, which contains a state (UPDATING
after
successfully calling this operation) and any error message.
Response Lenses
updatePortalResponse_httpStatus :: Lens' UpdatePortalResponse Int Source #
The response's http status code.
updatePortalResponse_portalStatus :: Lens' UpdatePortalResponse PortalStatus Source #
The status of the portal, which contains a state (UPDATING
after
successfully calling this operation) and any error message.