Class: Aws::PricingPlanManager::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::PricingPlanManager::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb
Overview
An API client for PricingPlanManager. To construct a client, you need to configure a :region and :credentials.
client = Aws::PricingPlanManager::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
-
#approve_paid_subscription(params = {}) ⇒ Types::ApprovePaidSubscriptionOutput
Approves a subscription that is in
PENDING_APPROVALstatus, activating it and starting billing. -
#associate_resources_to_subscription(params = {}) ⇒ Types::AssociateResourcesToSubscriptionOutput
Adds one or more resources to an existing subscription.
-
#cancel_subscription(params = {}) ⇒ Types::CancelSubscriptionOutput
Cancels a flat-rate pricing subscription.
-
#cancel_subscription_change(params = {}) ⇒ Types::CancelSubscriptionChangeOutput
Cancels a pending scheduled change on a subscription, such as a pending downgrade or cancellation.
-
#create_subscription(params = {}) ⇒ Types::CreateSubscriptionOutput
Creates a flat-rate pricing subscription for the specified resources.
-
#disassociate_resources_from_subscription(params = {}) ⇒ Types::DisassociateResourcesFromSubscriptionOutput
Removes one or more resources from an existing subscription.
-
#get_subscription(params = {}) ⇒ Types::GetSubscriptionOutput
Returns the details of a flat-rate pricing subscription, including its current status, associated resources, and any pending scheduled changes.
-
#list_subscriptions(params = {}) ⇒ Types::ListSubscriptionsOutput
Returns a summary of all flat-rate pricing subscriptions in the calling account.
-
#update_subscription(params = {}) ⇒ Types::UpdateSubscriptionOutput
Changes the plan tier of an existing subscription.
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.
471 472 473 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 471 def initialize(*args) super end |
Instance Method Details
#approve_paid_subscription(params = {}) ⇒ Types::ApprovePaidSubscriptionOutput
Approves a subscription that is in PENDING_APPROVAL status,
activating it and starting billing.
ETag value for concurrency
control. Retrieve it from a previous GetSubscription or
ListSubscriptions response.
561 562 563 564 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 561 def approve_paid_subscription(params = {}, = {}) req = build_request(:approve_paid_subscription, params) req.send_request() end |
#associate_resources_to_subscription(params = {}) ⇒ Types::AssociateResourcesToSubscriptionOutput
Adds one or more resources to an existing subscription. The subscription must be in an active state that is not pending other changes.
659 660 661 662 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 659 def associate_resources_to_subscription(params = {}, = {}) req = build_request(:associate_resources_to_subscription, params) req.send_request() end |
#cancel_subscription(params = {}) ⇒ Types::CancelSubscriptionOutput
Cancels a flat-rate pricing subscription.
CancelSubscriptionChange.
For subscriptions in PENDING_APPROVAL status, the subscription is
deleted immediately without scheduling.
754 755 756 757 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 754 def cancel_subscription(params = {}, = {}) req = build_request(:cancel_subscription, params) req.send_request() end |
#cancel_subscription_change(params = {}) ⇒ Types::CancelSubscriptionChangeOutput
Cancels a pending scheduled change on a subscription, such as a pending downgrade or cancellation. The subscription returns to its state before the change was scheduled.
843 844 845 846 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 843 def cancel_subscription_change(params = {}, = {}) req = build_request(:cancel_subscription_change, params) req.send_request() end |
#create_subscription(params = {}) ⇒ Types::CreateSubscriptionOutput
Creates a flat-rate pricing subscription for the specified resources.
approvalMode is set to MANUAL, paid-tier subscriptions are
created in PENDING_APPROVAL status and require a separate
ApprovePaidSubscription call before billing starts. Free-tier
subscriptions are always activated immediately regardless of approval
mode.
When approvalMode is set to IMMEDIATE or is not specified, the
subscription is activated immediately.
995 996 997 998 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 995 def create_subscription(params = {}, = {}) req = build_request(:create_subscription, params) req.send_request() end |
#disassociate_resources_from_subscription(params = {}) ⇒ Types::DisassociateResourcesFromSubscriptionOutput
Removes one or more resources from an existing subscription.
1092 1093 1094 1095 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 1092 def disassociate_resources_from_subscription(params = {}, = {}) req = build_request(:disassociate_resources_from_subscription, params) req.send_request() end |
#get_subscription(params = {}) ⇒ Types::GetSubscriptionOutput
Returns the details of a flat-rate pricing subscription, including its current status, associated resources, and any pending scheduled changes.
1161 1162 1163 1164 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 1161 def get_subscription(params = {}, = {}) req = build_request(:get_subscription, params) req.send_request() end |
#list_subscriptions(params = {}) ⇒ Types::ListSubscriptionsOutput
Returns a summary of all flat-rate pricing subscriptions in the calling account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1236 1237 1238 1239 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 1236 def list_subscriptions(params = {}, = {}) req = build_request(:list_subscriptions, params) req.send_request() end |
#update_subscription(params = {}) ⇒ Types::UpdateSubscriptionOutput
Changes the plan tier of an existing subscription.
CancelSubscriptionChange.
This operation replaces the plan tier value. If you omit the optional
usageLevel field, it is reset to the default.
1339 1340 1341 1342 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 1339 def update_subscription(params = {}, = {}) req = build_request(:update_subscription, params) req.send_request() end |