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 |
Creates an address for a Snow device to be shipped to. In most regions, addresses are validated at the time of creation. The address you provide must be located within the serviceable area of your region. If the address is invalid or unsupported, then an exception is thrown.
Synopsis
- data CreateAddress = CreateAddress' {}
- newCreateAddress :: Address -> CreateAddress
- createAddress_address :: Lens' CreateAddress Address
- data CreateAddressResponse = CreateAddressResponse' {
- addressId :: Maybe Text
- httpStatus :: Int
- newCreateAddressResponse :: Int -> CreateAddressResponse
- createAddressResponse_addressId :: Lens' CreateAddressResponse (Maybe Text)
- createAddressResponse_httpStatus :: Lens' CreateAddressResponse Int
Creating a Request
data CreateAddress Source #
See: newCreateAddress
smart constructor.
Instances
Create a value of CreateAddress
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:address:CreateAddress'
, createAddress_address
- The address that you want the Snow device shipped to.
Request Lenses
createAddress_address :: Lens' CreateAddress Address Source #
The address that you want the Snow device shipped to.
Destructuring the Response
data CreateAddressResponse Source #
See: newCreateAddressResponse
smart constructor.
CreateAddressResponse' | |
|
Instances
newCreateAddressResponse Source #
Create a value of CreateAddressResponse
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:addressId:CreateAddressResponse'
, createAddressResponse_addressId
- The automatically generated ID for a specific address. You'll use this
ID when you create a job to specify which address you want the Snow
device for that job shipped to.
$sel:httpStatus:CreateAddressResponse'
, createAddressResponse_httpStatus
- The response's http status code.
Response Lenses
createAddressResponse_addressId :: Lens' CreateAddressResponse (Maybe Text) Source #
The automatically generated ID for a specific address. You'll use this ID when you create a job to specify which address you want the Snow device for that job shipped to.
createAddressResponse_httpStatus :: Lens' CreateAddressResponse Int Source #
The response's http status code.