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.
478 479 480 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 478 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.
568 569 570 571 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 568 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.
666 667 668 669 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 666 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.
761 762 763 764 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 761 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.
850 851 852 853 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 850 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.
1004 1005 1006 1007 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 1004 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.
1101 1102 1103 1104 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 1101 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.
1170 1171 1172 1173 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 1170 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.
1245 1246 1247 1248 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 1245 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.
1348 1349 1350 1351 |
# File 'gems/aws-sdk-pricingplanmanager/lib/aws-sdk-pricingplanmanager/client.rb', line 1348 def update_subscription(params = {}, = {}) req = build_request(:update_subscription, params) req.send_request() end |