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 Savings Plan.
Synopsis
- data CreateSavingsPlan = CreateSavingsPlan' {}
- newCreateSavingsPlan :: Text -> Text -> CreateSavingsPlan
- createSavingsPlan_clientToken :: Lens' CreateSavingsPlan (Maybe Text)
- createSavingsPlan_purchaseTime :: Lens' CreateSavingsPlan (Maybe UTCTime)
- createSavingsPlan_upfrontPaymentAmount :: Lens' CreateSavingsPlan (Maybe Text)
- createSavingsPlan_tags :: Lens' CreateSavingsPlan (Maybe (HashMap Text Text))
- createSavingsPlan_savingsPlanOfferingId :: Lens' CreateSavingsPlan Text
- createSavingsPlan_commitment :: Lens' CreateSavingsPlan Text
- data CreateSavingsPlanResponse = CreateSavingsPlanResponse' {
- savingsPlanId :: Maybe Text
- httpStatus :: Int
- newCreateSavingsPlanResponse :: Int -> CreateSavingsPlanResponse
- createSavingsPlanResponse_savingsPlanId :: Lens' CreateSavingsPlanResponse (Maybe Text)
- createSavingsPlanResponse_httpStatus :: Lens' CreateSavingsPlanResponse Int
Creating a Request
data CreateSavingsPlan Source #
See: newCreateSavingsPlan
smart constructor.
CreateSavingsPlan' | |
|
Instances
:: Text | |
-> Text | |
-> CreateSavingsPlan |
Create a value of CreateSavingsPlan
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:clientToken:CreateSavingsPlan'
, createSavingsPlan_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
$sel:purchaseTime:CreateSavingsPlan'
, createSavingsPlan_purchaseTime
- The time at which to purchase the Savings Plan, in UTC format
(YYYY-MM-DDTHH:MM:SSZ).
$sel:upfrontPaymentAmount:CreateSavingsPlan'
, createSavingsPlan_upfrontPaymentAmount
- The up-front payment amount. This is a whole number between 50 and 99
percent of the total value of the Savings Plan. This parameter is
supported only if the payment option is Partial Upfront
.
$sel:tags:CreateSavingsPlan'
, createSavingsPlan_tags
- One or more tags.
$sel:savingsPlanOfferingId:CreateSavingsPlan'
, createSavingsPlan_savingsPlanOfferingId
- The ID of the offering.
$sel:commitment:CreateSavingsPlan'
, createSavingsPlan_commitment
- The hourly commitment, in USD. This is a value between 0.001 and 1
million. You cannot specify more than three digits after the decimal
point.
Request Lenses
createSavingsPlan_clientToken :: Lens' CreateSavingsPlan (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
createSavingsPlan_purchaseTime :: Lens' CreateSavingsPlan (Maybe UTCTime) Source #
The time at which to purchase the Savings Plan, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
createSavingsPlan_upfrontPaymentAmount :: Lens' CreateSavingsPlan (Maybe Text) Source #
The up-front payment amount. This is a whole number between 50 and 99
percent of the total value of the Savings Plan. This parameter is
supported only if the payment option is Partial Upfront
.
createSavingsPlan_tags :: Lens' CreateSavingsPlan (Maybe (HashMap Text Text)) Source #
One or more tags.
createSavingsPlan_savingsPlanOfferingId :: Lens' CreateSavingsPlan Text Source #
The ID of the offering.
createSavingsPlan_commitment :: Lens' CreateSavingsPlan Text Source #
The hourly commitment, in USD. This is a value between 0.001 and 1 million. You cannot specify more than three digits after the decimal point.
Destructuring the Response
data CreateSavingsPlanResponse Source #
See: newCreateSavingsPlanResponse
smart constructor.
CreateSavingsPlanResponse' | |
|
Instances
newCreateSavingsPlanResponse Source #
Create a value of CreateSavingsPlanResponse
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:savingsPlanId:CreateSavingsPlanResponse'
, createSavingsPlanResponse_savingsPlanId
- The ID of the Savings Plan.
$sel:httpStatus:CreateSavingsPlanResponse'
, createSavingsPlanResponse_httpStatus
- The response's http status code.
Response Lenses
createSavingsPlanResponse_savingsPlanId :: Lens' CreateSavingsPlanResponse (Maybe Text) Source #
The ID of the Savings Plan.
createSavingsPlanResponse_httpStatus :: Lens' CreateSavingsPlanResponse Int Source #
The response's http status code.