Skip to content

CreateSavingsPlanRequest

Source code in docs_src/capo_savingsplans/types/create_savings_plan_request.py
class CreateSavingsPlanRequest(TypedDict, closed=True):
    savings_plan_offering_id: (
        "capo_savingsplans.types.savings_plan_offering_id.SavingsPlanOfferingId"
    )
    """<p>The ID of the offering.</p>"""
    commitment: "capo_savingsplans.types.amount.Amount"
    """<p>The hourly commitment, in the same currency of the <code>savingsPlanOfferingId</code>. This is a value between 0.001 and 1 million. You cannot specify more than five digits after the decimal point.</p>"""
    upfront_payment_amount: NotRequired["capo_savingsplans.types.amount.Amount"]
    """<p>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 <code>Partial Upfront</code>.</p>"""
    purchase_time: NotRequired["capo_savingsplans.types.date_time.DateTime"]
    """<p>The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).</p>"""
    client_token: NotRequired["capo_savingsplans.types.client_token.ClientToken"]
    """<p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>"""
    tags: NotRequired["capo_savingsplans.types.tag_map.TagMap"]
    """<p>One or more tags.</p>"""

client_token instance-attribute

client_token: NotRequired[ClientToken]

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

commitment instance-attribute

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.

purchase_time instance-attribute

purchase_time: NotRequired[DateTime]

The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).

savings_plan_offering_id instance-attribute

savings_plan_offering_id: SavingsPlanOfferingId

The ID of the offering.

tags instance-attribute

tags: NotRequired[TagMap]

One or more tags.

upfront_payment_amount instance-attribute

upfront_payment_amount: NotRequired[Amount]

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.