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 state when a shipment state changes to a different state.
Synopsis
- data UpdateJobShipmentState = UpdateJobShipmentState' {}
- newUpdateJobShipmentState :: Text -> ShipmentState -> UpdateJobShipmentState
- updateJobShipmentState_jobId :: Lens' UpdateJobShipmentState Text
- updateJobShipmentState_shipmentState :: Lens' UpdateJobShipmentState ShipmentState
- data UpdateJobShipmentStateResponse = UpdateJobShipmentStateResponse' {
- httpStatus :: Int
- newUpdateJobShipmentStateResponse :: Int -> UpdateJobShipmentStateResponse
- updateJobShipmentStateResponse_httpStatus :: Lens' UpdateJobShipmentStateResponse Int
Creating a Request
data UpdateJobShipmentState Source #
See: newUpdateJobShipmentState
smart constructor.
UpdateJobShipmentState' | |
|
Instances
newUpdateJobShipmentState Source #
Create a value of UpdateJobShipmentState
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:jobId:UpdateJobShipmentState'
, updateJobShipmentState_jobId
- The job ID of the job whose shipment date you want to update, for
example JID123e4567-e89b-12d3-a456-426655440000
.
$sel:shipmentState:UpdateJobShipmentState'
, updateJobShipmentState_shipmentState
- The state of a device when it is being shipped.
Set to RECEIVED
when the device arrives at your location.
Set to RETURNED
when you have returned the device to AWS.
Request Lenses
updateJobShipmentState_jobId :: Lens' UpdateJobShipmentState Text Source #
The job ID of the job whose shipment date you want to update, for
example JID123e4567-e89b-12d3-a456-426655440000
.
updateJobShipmentState_shipmentState :: Lens' UpdateJobShipmentState ShipmentState Source #
The state of a device when it is being shipped.
Set to RECEIVED
when the device arrives at your location.
Set to RETURNED
when you have returned the device to AWS.
Destructuring the Response
data UpdateJobShipmentStateResponse Source #
See: newUpdateJobShipmentStateResponse
smart constructor.
UpdateJobShipmentStateResponse' | |
|
Instances
Eq UpdateJobShipmentStateResponse Source # | |
Read UpdateJobShipmentStateResponse Source # | |
Show UpdateJobShipmentStateResponse Source # | |
Defined in Amazonka.Snowball.UpdateJobShipmentState | |
Generic UpdateJobShipmentStateResponse Source # | |
NFData UpdateJobShipmentStateResponse Source # | |
Defined in Amazonka.Snowball.UpdateJobShipmentState rnf :: UpdateJobShipmentStateResponse -> () # | |
type Rep UpdateJobShipmentStateResponse Source # | |
Defined in Amazonka.Snowball.UpdateJobShipmentState type Rep UpdateJobShipmentStateResponse = D1 ('MetaData "UpdateJobShipmentStateResponse" "Amazonka.Snowball.UpdateJobShipmentState" "libZSservicesZSamazonka-snowballZSamazonka-snowball" 'False) (C1 ('MetaCons "UpdateJobShipmentStateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateJobShipmentStateResponse Source #
Create a value of UpdateJobShipmentStateResponse
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:httpStatus:UpdateJobShipmentStateResponse'
, updateJobShipmentStateResponse_httpStatus
- The response's http status code.
Response Lenses
updateJobShipmentStateResponse_httpStatus :: Lens' UpdateJobShipmentStateResponse Int Source #
The response's http status code.