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 |
Amazonka.Snowball.UpdateLongTermPricing
Description
Updates the long-term pricing type.
Synopsis
- data UpdateLongTermPricing = UpdateLongTermPricing' {}
- newUpdateLongTermPricing :: Text -> UpdateLongTermPricing
- updateLongTermPricing_isLongTermPricingAutoRenew :: Lens' UpdateLongTermPricing (Maybe Bool)
- updateLongTermPricing_replacementJob :: Lens' UpdateLongTermPricing (Maybe Text)
- updateLongTermPricing_longTermPricingId :: Lens' UpdateLongTermPricing Text
- data UpdateLongTermPricingResponse = UpdateLongTermPricingResponse' {
- httpStatus :: Int
- newUpdateLongTermPricingResponse :: Int -> UpdateLongTermPricingResponse
- updateLongTermPricingResponse_httpStatus :: Lens' UpdateLongTermPricingResponse Int
Creating a Request
data UpdateLongTermPricing Source #
See: newUpdateLongTermPricing
smart constructor.
Constructors
UpdateLongTermPricing' | |
Fields
|
Instances
newUpdateLongTermPricing Source #
Create a value of UpdateLongTermPricing
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:isLongTermPricingAutoRenew:UpdateLongTermPricing'
, updateLongTermPricing_isLongTermPricingAutoRenew
- If set to true
, specifies that the current long-term pricing type for
the device should be automatically renewed before the long-term pricing
contract expires.
$sel:replacementJob:UpdateLongTermPricing'
, updateLongTermPricing_replacementJob
- Specifies that a device that is ordered with long-term pricing should be
replaced with a new device.
$sel:longTermPricingId:UpdateLongTermPricing'
, updateLongTermPricing_longTermPricingId
- The ID of the long-term pricing type for the device.
Request Lenses
updateLongTermPricing_isLongTermPricingAutoRenew :: Lens' UpdateLongTermPricing (Maybe Bool) Source #
If set to true
, specifies that the current long-term pricing type for
the device should be automatically renewed before the long-term pricing
contract expires.
updateLongTermPricing_replacementJob :: Lens' UpdateLongTermPricing (Maybe Text) Source #
Specifies that a device that is ordered with long-term pricing should be replaced with a new device.
updateLongTermPricing_longTermPricingId :: Lens' UpdateLongTermPricing Text Source #
The ID of the long-term pricing type for the device.
Destructuring the Response
data UpdateLongTermPricingResponse Source #
See: newUpdateLongTermPricingResponse
smart constructor.
Constructors
UpdateLongTermPricingResponse' | |
Fields
|
Instances
newUpdateLongTermPricingResponse Source #
Create a value of UpdateLongTermPricingResponse
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:UpdateLongTermPricingResponse'
, updateLongTermPricingResponse_httpStatus
- The response's http status code.
Response Lenses
updateLongTermPricingResponse_httpStatus :: Lens' UpdateLongTermPricingResponse Int Source #
The response's http status code.