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 |
Updates the address of the specified site.
You can't update a site address if there is an order in progress. You must wait for the order to complete or cancel the order.
You can update the operating address before you place an order at the site, or after all Outposts that belong to the site have been deactivated.
Synopsis
- data UpdateSiteAddress = UpdateSiteAddress' {
- siteId :: Text
- addressType :: AddressType
- address :: Address
- newUpdateSiteAddress :: Text -> AddressType -> Address -> UpdateSiteAddress
- updateSiteAddress_siteId :: Lens' UpdateSiteAddress Text
- updateSiteAddress_addressType :: Lens' UpdateSiteAddress AddressType
- updateSiteAddress_address :: Lens' UpdateSiteAddress Address
- data UpdateSiteAddressResponse = UpdateSiteAddressResponse' {}
- newUpdateSiteAddressResponse :: Int -> UpdateSiteAddressResponse
- updateSiteAddressResponse_address :: Lens' UpdateSiteAddressResponse (Maybe Address)
- updateSiteAddressResponse_addressType :: Lens' UpdateSiteAddressResponse (Maybe AddressType)
- updateSiteAddressResponse_httpStatus :: Lens' UpdateSiteAddressResponse Int
Creating a Request
data UpdateSiteAddress Source #
See: newUpdateSiteAddress
smart constructor.
UpdateSiteAddress' | |
|
Instances
:: Text | |
-> AddressType | |
-> Address | |
-> UpdateSiteAddress |
Create a value of UpdateSiteAddress
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:
UpdateSiteAddress
, updateSiteAddress_siteId
- The ID or the Amazon Resource Name (ARN) of the site.
UpdateSiteAddress
, updateSiteAddress_addressType
- The type of the address.
UpdateSiteAddress
, updateSiteAddress_address
- The address for the site.
Request Lenses
updateSiteAddress_siteId :: Lens' UpdateSiteAddress Text Source #
The ID or the Amazon Resource Name (ARN) of the site.
updateSiteAddress_addressType :: Lens' UpdateSiteAddress AddressType Source #
The type of the address.
updateSiteAddress_address :: Lens' UpdateSiteAddress Address Source #
The address for the site.
Destructuring the Response
data UpdateSiteAddressResponse Source #
See: newUpdateSiteAddressResponse
smart constructor.
UpdateSiteAddressResponse' | |
|
Instances
newUpdateSiteAddressResponse Source #
Create a value of UpdateSiteAddressResponse
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:
UpdateSiteAddress
, updateSiteAddressResponse_address
- Information about an address.
UpdateSiteAddress
, updateSiteAddressResponse_addressType
- The type of the address.
$sel:httpStatus:UpdateSiteAddressResponse'
, updateSiteAddressResponse_httpStatus
- The response's http status code.
Response Lenses
updateSiteAddressResponse_address :: Lens' UpdateSiteAddressResponse (Maybe Address) Source #
Information about an address.
updateSiteAddressResponse_addressType :: Lens' UpdateSiteAddressResponse (Maybe AddressType) Source #
The type of the address.
updateSiteAddressResponse_httpStatus :: Lens' UpdateSiteAddressResponse Int Source #
The response's http status code.