| 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.UpdateSite
Description
Updates the information for an existing site. To remove information for any of the parameters, specify an empty string.
Synopsis
- data UpdateSite = UpdateSite' {}
- newUpdateSite :: Text -> Text -> UpdateSite
- updateSite_description :: Lens' UpdateSite (Maybe Text)
- updateSite_location :: Lens' UpdateSite (Maybe Location)
- updateSite_globalNetworkId :: Lens' UpdateSite Text
- updateSite_siteId :: Lens' UpdateSite Text
- data UpdateSiteResponse = UpdateSiteResponse' {
- site :: Maybe Site
- httpStatus :: Int
- newUpdateSiteResponse :: Int -> UpdateSiteResponse
- updateSiteResponse_site :: Lens' UpdateSiteResponse (Maybe Site)
- updateSiteResponse_httpStatus :: Lens' UpdateSiteResponse Int
Creating a Request
data UpdateSite Source #
See: newUpdateSite smart constructor.
Constructors
| UpdateSite' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateSite |
Create a value of UpdateSite 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:
UpdateSite, updateSite_description - A description of your site.
Constraints: Maximum length of 256 characters.
UpdateSite, updateSite_location - The site location:
Address: The physical address of the site.Latitude: The latitude of the site.Longitude: The longitude of the site.
UpdateSite, updateSite_globalNetworkId - The ID of the global network.
UpdateSite, updateSite_siteId - The ID of your site.
Request Lenses
updateSite_description :: Lens' UpdateSite (Maybe Text) Source #
A description of your site.
Constraints: Maximum length of 256 characters.
updateSite_location :: Lens' UpdateSite (Maybe Location) Source #
The site location:
Address: The physical address of the site.Latitude: The latitude of the site.Longitude: The longitude of the site.
updateSite_globalNetworkId :: Lens' UpdateSite Text Source #
The ID of the global network.
updateSite_siteId :: Lens' UpdateSite Text Source #
The ID of your site.
Destructuring the Response
data UpdateSiteResponse Source #
See: newUpdateSiteResponse smart constructor.
Constructors
| UpdateSiteResponse' | |
Fields
| |
Instances
newUpdateSiteResponse Source #
Arguments
| :: Int | |
| -> UpdateSiteResponse |
Create a value of UpdateSiteResponse 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:UpdateSiteResponse', updateSiteResponse_site - Information about the site.
$sel:httpStatus:UpdateSiteResponse', updateSiteResponse_httpStatus - The response's http status code.
Response Lenses
updateSiteResponse_site :: Lens' UpdateSiteResponse (Maybe Site) Source #
Information about the site.
updateSiteResponse_httpStatus :: Lens' UpdateSiteResponse Int Source #
The response's http status code.