| 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.NetworkManager.DeleteSite
Description
Deletes an existing site. The site cannot be associated with any device or link.
Synopsis
- data DeleteSite = DeleteSite' {
- globalNetworkId :: Text
- siteId :: Text
- newDeleteSite :: Text -> Text -> DeleteSite
- deleteSite_globalNetworkId :: Lens' DeleteSite Text
- deleteSite_siteId :: Lens' DeleteSite Text
- data DeleteSiteResponse = DeleteSiteResponse' {
- site :: Maybe Site
- httpStatus :: Int
- newDeleteSiteResponse :: Int -> DeleteSiteResponse
- deleteSiteResponse_site :: Lens' DeleteSiteResponse (Maybe Site)
- deleteSiteResponse_httpStatus :: Lens' DeleteSiteResponse Int
Creating a Request
data DeleteSite Source #
See: newDeleteSite smart constructor.
Constructors
| DeleteSite' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> DeleteSite |
Create a value of DeleteSite 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:
DeleteSite, deleteSite_globalNetworkId - The ID of the global network.
DeleteSite, deleteSite_siteId - The ID of the site.
Request Lenses
deleteSite_globalNetworkId :: Lens' DeleteSite Text Source #
The ID of the global network.
deleteSite_siteId :: Lens' DeleteSite Text Source #
The ID of the site.
Destructuring the Response
data DeleteSiteResponse Source #
See: newDeleteSiteResponse smart constructor.
Constructors
| DeleteSiteResponse' | |
Fields
| |
Instances
newDeleteSiteResponse Source #
Arguments
| :: Int | |
| -> DeleteSiteResponse |
Create a value of DeleteSiteResponse 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:site:DeleteSiteResponse', deleteSiteResponse_site - Information about the site.
$sel:httpStatus:DeleteSiteResponse', deleteSiteResponse_httpStatus - The response's http status code.
Response Lenses
deleteSiteResponse_site :: Lens' DeleteSiteResponse (Maybe Site) Source #
Information about the site.
deleteSiteResponse_httpStatus :: Lens' DeleteSiteResponse Int Source #
The response's http status code.