Class: Aws::PricingPlanManager::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::PricingPlanManager::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-pricingplanmanager/client.rb,
sig/client.rbs
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.
Defined Under Namespace
Modules: _ApprovePaidSubscriptionResponseSuccess, _AssociateResourcesToSubscriptionResponseSuccess, _CancelSubscriptionChangeResponseSuccess, _CancelSubscriptionResponseSuccess, _CreateSubscriptionResponseSuccess, _DisassociateResourcesFromSubscriptionResponseSuccess, _GetSubscriptionResponseSuccess, _ListSubscriptionsResponseSuccess, _UpdateSubscriptionResponseSuccess
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
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.
Class Method Summary collapse
- .errors_module ⇒ Object private
- .new ⇒ Object
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
471 472 473 |
# File 'lib/aws-sdk-pricingplanmanager/client.rb', line 471 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1375 1376 1377 |
# File 'lib/aws-sdk-pricingplanmanager/client.rb', line 1375 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1378 1379 1380 |
# File 'lib/aws-sdk-pricingplanmanager/client.rb', line 1378 def errors_module Errors end |
.new ⇒ Object
14 |
# File 'sig/client.rbs', line 14
def self.new: (
|
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.
87 |
# File 'sig/client.rbs', line 87
def approve_paid_subscription: (
|
#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.
100 |
# File 'sig/client.rbs', line 100
def associate_resources_to_subscription: (
|
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 |
# File 'lib/aws-sdk-pricingplanmanager/client.rb', line 1348 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::PricingPlanManager') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-pricingplanmanager' context[:gem_version] = '1.0.0' Seahorse::Client::Request.new(handlers, context) 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.
114 |
# File 'sig/client.rbs', line 114
def cancel_subscription: (
|
#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.
127 |
# File 'sig/client.rbs', line 127
def cancel_subscription_change: (
|
#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.
140 |
# File 'sig/client.rbs', line 140
def create_subscription: (
|
#disassociate_resources_from_subscription(params = {}) ⇒ Types::DisassociateResourcesFromSubscriptionOutput
Removes one or more resources from an existing subscription.
156 |
# File 'sig/client.rbs', line 156
def disassociate_resources_from_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.
170 |
# File 'sig/client.rbs', line 170
def get_subscription: (
|
#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.
181 |
# File 'sig/client.rbs', line 181
def list_subscriptions: (
|
#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.
192 |
# File 'sig/client.rbs', line 192
def update_subscription: (
|
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1368 1369 1370 |
# File 'lib/aws-sdk-pricingplanmanager/client.rb', line 1368 def waiter_names [] end |