You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::SavingsPlans::Types::CreateSavingsPlanRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateSavingsPlanRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  savings_plan_offering_id: "SavingsPlanOfferingId", # required
  commitment: "Amount", # required
  upfront_payment_amount: "Amount",
  purchase_time: Time.now,
  client_token: "ClientToken",
  tags: {
    "TagKey" => "TagValue",
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

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

Returns:

  • (String)

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

#commitmentString

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.

Returns:

  • (String)

    The hourly commitment, in USD.

#purchase_timeTime

The time at which to purchase the Savings Plan, in UTC format (YYYY-MM-DDTHH:MM:SSZ).

Returns:

  • (Time)

    The time at which to purchase the Savings Plan, in UTC format (YYYY-MM-DDTHH:MM:SSZ).

#savings_plan_offering_idString

The ID of the offering.

Returns:

  • (String)

    The ID of the offering.

#tagsHash<String,String>

One or more tags.

Returns:

  • (Hash<String,String>)

    One or more tags.

#upfront_payment_amountString

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.

Returns:

  • (String)

    The up-front payment amount.