Skip to content

Creates a Savings Plan

Description

Creates a Savings Plan.

Usage

savingsplans_create_savings_plan(savingsPlanOfferingId, commitment,
  upfrontPaymentAmount, purchaseTime, clientToken, tags)

Arguments

  • savingsPlanOfferingId

    [required] The ID of the offering.

  • commitment

    [required] 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.

  • 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 only supported if the payment option is Partial Upfront.

  • purchaseTime

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

  • clientToken

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

  • tags

    One or more tags.

Value

A list with the following syntax:

list(
  savingsPlanId = "string"
)

Request syntax

svc$create_savings_plan(
  savingsPlanOfferingId = "string",
  commitment = "string",
  upfrontPaymentAmount = "string",
  purchaseTime = as.POSIXct(
    "2015-01-01"
  ),
  clientToken = "string",
  tags = list(
    "string"
  )
)