Class: Aws::SavingsPlans::Client
- Inherits:
 - 
      Seahorse::Client::Base
      
        
- Object
 - Seahorse::Client::Base
 - Aws::SavingsPlans::Client
 
 
- Includes:
 - ClientStubs
 
- Defined in:
 - gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/client.rb
 
Overview
An API client for SavingsPlans.  To construct a client, you need to configure a :region and :credentials.
client = Aws::SavingsPlans::Client.new(
  region: region_name,
  credentials: credentials,
  # ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
- 
  
    
      #create_savings_plan(params = {})  ⇒ Types::CreateSavingsPlanResponse 
    
    
  
  
  
  
  
  
  
  
  
    
Creates a Savings Plan.
 - 
  
    
      #delete_queued_savings_plan(params = {})  ⇒ Struct 
    
    
  
  
  
  
  
  
  
  
  
    
Deletes the queued purchase for the specified Savings Plan.
 - 
  
    
      #describe_savings_plan_rates(params = {})  ⇒ Types::DescribeSavingsPlanRatesResponse 
    
    
  
  
  
  
  
  
  
  
  
    
Describes the rates for the specified Savings Plan.
 - 
  
    
      #describe_savings_plans(params = {})  ⇒ Types::DescribeSavingsPlansResponse 
    
    
  
  
  
  
  
  
  
  
  
    
Describes the specified Savings Plans.
 - 
  
    
      #describe_savings_plans_offering_rates(params = {})  ⇒ Types::DescribeSavingsPlansOfferingRatesResponse 
    
    
  
  
  
  
  
  
  
  
  
    
Describes the offering rates for the specified Savings Plans.
 - 
  
    
      #describe_savings_plans_offerings(params = {})  ⇒ Types::DescribeSavingsPlansOfferingsResponse 
    
    
  
  
  
  
  
  
  
  
  
    
Describes the offerings for the specified Savings Plans.
 - 
  
    
      #list_tags_for_resource(params = {})  ⇒ Types::ListTagsForResourceResponse 
    
    
  
  
  
  
  
  
  
  
  
    
Lists the tags for the specified resource.
 - 
  
    
      #return_savings_plan(params = {})  ⇒ Types::ReturnSavingsPlanResponse 
    
    
  
  
  
  
  
  
  
  
  
    
Returns the specified Savings Plan.
 - 
  
    
      #tag_resource(params = {})  ⇒ Struct 
    
    
  
  
  
  
  
  
  
  
  
    
Adds the specified tags to the specified resource.
 - 
  
    
      #untag_resource(params = {})  ⇒ Struct 
    
    
  
  
  
  
  
  
  
  
  
    
Removes the specified tags from the specified resource.
 
Instance Method Summary collapse
- 
  
    
      #initialize(options)  ⇒ Client 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Client.
 
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
      473 474 475  | 
    
      # File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/client.rb', line 473 def initialize(*args) super end  | 
  
Instance Method Details
#create_savings_plan(params = {}) ⇒ Types::CreateSavingsPlanResponse
Creates a Savings Plan.
      533 534 535 536  | 
    
      # File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/client.rb', line 533 def create_savings_plan(params = {}, = {}) req = build_request(:create_savings_plan, params) req.send_request() end  | 
  
#delete_queued_savings_plan(params = {}) ⇒ Struct
Deletes the queued purchase for the specified Savings Plan.
      555 556 557 558  | 
    
      # File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/client.rb', line 555 def delete_queued_savings_plan(params = {}, = {}) req = build_request(:delete_queued_savings_plan, params) req.send_request() end  | 
  
#describe_savings_plan_rates(params = {}) ⇒ Types::DescribeSavingsPlanRatesResponse
Describes the rates for the specified Savings Plan.
      616 617 618 619  | 
    
      # File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/client.rb', line 616 def describe_savings_plan_rates(params = {}, = {}) req = build_request(:describe_savings_plan_rates, params) req.send_request() end  | 
  
#describe_savings_plans(params = {}) ⇒ Types::DescribeSavingsPlansResponse
Describes the specified Savings Plans.
      694 695 696 697  | 
    
      # File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/client.rb', line 694 def describe_savings_plans(params = {}, = {}) req = build_request(:describe_savings_plans, params) req.send_request() end  | 
  
#describe_savings_plans_offering_rates(params = {}) ⇒ Types::DescribeSavingsPlansOfferingRatesResponse
Describes the offering rates for the specified Savings Plans.
      783 784 785 786  | 
    
      # File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/client.rb', line 783 def describe_savings_plans_offering_rates(params = {}, = {}) req = build_request(:describe_savings_plans_offering_rates, params) req.send_request() end  | 
  
#describe_savings_plans_offerings(params = {}) ⇒ Types::DescribeSavingsPlansOfferingsResponse
Describes the offerings for the specified Savings Plans.
      883 884 885 886  | 
    
      # File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/client.rb', line 883 def describe_savings_plans_offerings(params = {}, = {}) req = build_request(:describe_savings_plans_offerings, params) req.send_request() end  | 
  
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for the specified resource.
      912 913 914 915  | 
    
      # File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/client.rb', line 912 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end  | 
  
#return_savings_plan(params = {}) ⇒ Types::ReturnSavingsPlanResponse
Returns the specified Savings Plan.
      948 949 950 951  | 
    
      # File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/client.rb', line 948 def return_savings_plan(params = {}, = {}) req = build_request(:return_savings_plan, params) req.send_request() end  | 
  
#tag_resource(params = {}) ⇒ Struct
Adds the specified tags to the specified resource.
      977 978 979 980  | 
    
      # File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/client.rb', line 977 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end  | 
  
#untag_resource(params = {}) ⇒ Struct
Removes the specified tags from the specified resource.
      1003 1004 1005 1006  | 
    
      # File 'gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/client.rb', line 1003 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end  |