| 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 |
Amazonka.Snowball.CreateLongTermPricing
Description
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 Amazon Web Services provides discounts for long-term pricing.
Synopsis
- data CreateLongTermPricing = CreateLongTermPricing' {}
- newCreateLongTermPricing :: LongTermPricingType -> CreateLongTermPricing
- createLongTermPricing_isLongTermPricingAutoRenew :: Lens' CreateLongTermPricing (Maybe Bool)
- createLongTermPricing_snowballType :: Lens' CreateLongTermPricing (Maybe SnowballType)
- 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.
Constructors
| CreateLongTermPricing' | |
Fields
| |
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:
CreateLongTermPricing, createLongTermPricing_isLongTermPricingAutoRenew - snowballty
Specifies whether the current long-term pricing type for the device should be renewed.
CreateLongTermPricing, createLongTermPricing_snowballType - The type of Snow Family devices to use for the long-term pricing job.
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_isLongTermPricingAutoRenew :: Lens' CreateLongTermPricing (Maybe Bool) Source #
snowballty
Specifies whether the current long-term pricing type for the device should be renewed.
createLongTermPricing_snowballType :: Lens' CreateLongTermPricing (Maybe SnowballType) Source #
The type of Snow Family devices to use for the long-term pricing job.
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.
Constructors
| CreateLongTermPricingResponse' | |
Fields
| |
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:
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.