| 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 |
Amazonka.IoTSiteWise.DeletePortal
Description
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.
Constructors
| DeletePortal' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeletePortal |
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.
Constructors
| DeletePortalResponse' | |
Fields
| |
Instances
newDeletePortalResponse Source #
Arguments
| :: 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.