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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/types.rb

Overview

Note:

When making an API call, you may pass CreateSavingsPlanRequest data as a hash:

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

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

A suitable default value is auto-generated. You should normally not need to pass this option.

Returns:

  • (String)


62
63
64
65
66
67
68
69
70
71
# File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/types.rb', line 62

class CreateSavingsPlanRequest < Struct.new(
  :savings_plan_offering_id,
  :commitment,
  :upfront_payment_amount,
  :purchase_time,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#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)


62
63
64
65
66
67
68
69
70
71
# File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/types.rb', line 62

class CreateSavingsPlanRequest < Struct.new(
  :savings_plan_offering_id,
  :commitment,
  :upfront_payment_amount,
  :purchase_time,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#purchase_timeTime

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

Returns:

  • (Time)


62
63
64
65
66
67
68
69
70
71
# File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/types.rb', line 62

class CreateSavingsPlanRequest < Struct.new(
  :savings_plan_offering_id,
  :commitment,
  :upfront_payment_amount,
  :purchase_time,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#savings_plan_offering_idString

The ID of the offering.

Returns:

  • (String)


62
63
64
65
66
67
68
69
70
71
# File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/types.rb', line 62

class CreateSavingsPlanRequest < Struct.new(
  :savings_plan_offering_id,
  :commitment,
  :upfront_payment_amount,
  :purchase_time,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#tagsHash<String,String>

One or more tags.

Returns:

  • (Hash<String,String>)


62
63
64
65
66
67
68
69
70
71
# File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/types.rb', line 62

class CreateSavingsPlanRequest < Struct.new(
  :savings_plan_offering_id,
  :commitment,
  :upfront_payment_amount,
  :purchase_time,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#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)


62
63
64
65
66
67
68
69
70
71
# File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/types.rb', line 62

class CreateSavingsPlanRequest < Struct.new(
  :savings_plan_offering_id,
  :commitment,
  :upfront_payment_amount,
  :purchase_time,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end