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 a job with the long-term usage option for a device. The long-term usage is a 1-year or 3-year long-term pricing type for the device. You are billed upfront, and AWS provides discounts for long-term pricing.
Synopsis
- data CreateLongTermPricing = CreateLongTermPricing' {}
- newCreateLongTermPricing :: LongTermPricingType -> CreateLongTermPricing
- createLongTermPricing_snowballType :: Lens' CreateLongTermPricing (Maybe SnowballType)
- createLongTermPricing_isLongTermPricingAutoRenew :: Lens' CreateLongTermPricing (Maybe Bool)
- createLongTermPricing_longTermPricingType :: Lens' CreateLongTermPricing LongTermPricingType
- data CreateLongTermPricingResponse = CreateLongTermPricingResponse' {}
- newCreateLongTermPricingResponse :: Int -> CreateLongTermPricingResponse
- createLongTermPricingResponse_longTermPricingId :: Lens' CreateLongTermPricingResponse (Maybe Text)
- createLongTermPricingResponse_httpStatus :: Lens' CreateLongTermPricingResponse Int
Creating a Request
data CreateLongTermPricing Source #
See: newCreateLongTermPricing
smart constructor.
CreateLongTermPricing' | |
|
Instances
newCreateLongTermPricing Source #
Create a value of CreateLongTermPricing
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:snowballType:CreateLongTermPricing'
, createLongTermPricing_snowballType
- The type of AWS Snow Family device to use for the long-term pricing job.
$sel:isLongTermPricingAutoRenew:CreateLongTermPricing'
, createLongTermPricing_isLongTermPricingAutoRenew
- Specifies whether the current long-term pricing type for the device
should be renewed.
$sel:longTermPricingType:CreateLongTermPricing'
, createLongTermPricing_longTermPricingType
- The type of long-term pricing option you want for the device, either
1-year or 3-year long-term pricing.
Request Lenses
createLongTermPricing_snowballType :: Lens' CreateLongTermPricing (Maybe SnowballType) Source #
The type of AWS Snow Family device to use for the long-term pricing job.
createLongTermPricing_isLongTermPricingAutoRenew :: Lens' CreateLongTermPricing (Maybe Bool) Source #
Specifies whether the current long-term pricing type for the device should be renewed.
createLongTermPricing_longTermPricingType :: Lens' CreateLongTermPricing LongTermPricingType Source #
The type of long-term pricing option you want for the device, either 1-year or 3-year long-term pricing.
Destructuring the Response
data CreateLongTermPricingResponse Source #
See: newCreateLongTermPricingResponse
smart constructor.
CreateLongTermPricingResponse' | |
|
Instances
newCreateLongTermPricingResponse Source #
Create a value of CreateLongTermPricingResponse
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:longTermPricingId:CreateLongTermPricingResponse'
, createLongTermPricingResponse_longTermPricingId
- The ID of the long-term pricing type for the device.
$sel:httpStatus:CreateLongTermPricingResponse'
, createLongTermPricingResponse_httpStatus
- The response's http status code.
Response Lenses
createLongTermPricingResponse_longTermPricingId :: Lens' CreateLongTermPricingResponse (Maybe Text) Source #
The ID of the long-term pricing type for the device.
createLongTermPricingResponse_httpStatus :: Lens' CreateLongTermPricingResponse Int Source #
The response's http status code.