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 |
Deletes a portal from IoT SiteWise Monitor.
Synopsis
- data DeletePortal = DeletePortal' {
- clientToken :: Maybe Text
- portalId :: Text
- newDeletePortal :: Text -> DeletePortal
- deletePortal_clientToken :: Lens' DeletePortal (Maybe Text)
- deletePortal_portalId :: Lens' DeletePortal Text
- data DeletePortalResponse = DeletePortalResponse' {}
- newDeletePortalResponse :: Int -> PortalStatus -> DeletePortalResponse
- deletePortalResponse_httpStatus :: Lens' DeletePortalResponse Int
- deletePortalResponse_portalStatus :: Lens' DeletePortalResponse PortalStatus
Creating a Request
data DeletePortal Source #
See: newDeletePortal
smart constructor.
DeletePortal' | |
|
Instances
Create a value of DeletePortal
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:DeletePortal'
, deletePortal_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:portalId:DeletePortal'
, deletePortal_portalId
- The ID of the portal to delete.
Request Lenses
deletePortal_clientToken :: Lens' DeletePortal (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.
deletePortal_portalId :: Lens' DeletePortal Text Source #
The ID of the portal to delete.
Destructuring the Response
data DeletePortalResponse Source #
See: newDeletePortalResponse
smart constructor.
DeletePortalResponse' | |
|
Instances
newDeletePortalResponse Source #
:: Int | |
-> PortalStatus | |
-> DeletePortalResponse |
Create a value of DeletePortalResponse
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:DeletePortalResponse'
, deletePortalResponse_httpStatus
- The response's http status code.
$sel:portalStatus:DeletePortalResponse'
, deletePortalResponse_portalStatus
- The status of the portal, which contains a state (DELETING
after
successfully calling this operation) and any error message.
Response Lenses
deletePortalResponse_httpStatus :: Lens' DeletePortalResponse Int Source #
The response's http status code.
deletePortalResponse_portalStatus :: Lens' DeletePortalResponse PortalStatus Source #
The status of the portal, which contains a state (DELETING
after
successfully calling this operation) and any error message.