create_savings_plan
async
¶
create_savings_plan(
savings_plan_offering_id: SavingsPlanOfferingId,
commitment: Amount,
*,
config_overrides: Optional[AsyncsavingsplansClientConfig] = None,
upfront_payment_amount: Optional[Amount] = None,
purchase_time: Optional[DateTime] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagMap] = None,
) -> CreateSavingsPlanResponse
Creates a Savings Plan.
Parameters:
-
savings_plan_offering_id(SavingsPlanOfferingId) –The ID of the offering.
-
commitment(Amount) –The hourly commitment, in the same currency of the
savingsPlanOfferingId. This is a value between 0.001 and 1 million. You cannot specify more than five digits after the decimal point. -
upfront_payment_amount(Optional[Amount], default:None) –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 only supported if the payment option is
Partial Upfront. -
purchase_time(Optional[DateTime], default:None) –The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
tags(Optional[TagMap], default:None) –One or more tags.
Raises:
-
InternalServerException–An unexpected error occurred.
-
ResourceNotFoundException–The specified resource was not found.
-
ServiceQuotaExceededException–A service quota has been exceeded.
-
ValidationException–One of the input parameters is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.