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 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_location :: Lens' UpdateSite (Maybe Location)
- updateSite_description :: Lens' UpdateSite (Maybe Text)
- 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.
UpdateSite' | |
|
Instances
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:
$sel:location: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.
$sel:description:UpdateSite'
, updateSite_description
- A description of your site.
Length Constraints: Maximum length of 256 characters.
$sel:globalNetworkId:UpdateSite'
, updateSite_globalNetworkId
- The ID of the global network.
$sel:siteId:UpdateSite'
, updateSite_siteId
- The ID of your site.
Request Lenses
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_description :: Lens' UpdateSite (Maybe Text) Source #
A description of your site.
Length Constraints: Maximum length of 256 characters.
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.
UpdateSiteResponse' | |
|
Instances
newUpdateSiteResponse Source #
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.