Class: Aws::AppMonetization::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::AppMonetization::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb
Overview
An API client for AppMonetization. To construct a client, you need to configure a :region and :credentials.
client = Aws::AppMonetization::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
-
#archive_metric(params = {}) ⇒ Types::ArchiveMetricResponse
Archives a metric, removing its definition from the app's draft configuration.
-
#archive_plan(params = {}) ⇒ Types::ArchivePlanResponse
Archives a plan, removing it from the app's draft configuration so that it can no longer be subscribed to.
-
#cancel_subscription(params = {}) ⇒ Types::CancelSubscriptionResponse
Cancels a user's subscription at the end of the current billing period.
-
#create_app(params = {}) ⇒ Types::CreateAppResponse
Creates an app.
-
#create_app_payment_registration(params = {}) ⇒ Types::CreateAppPaymentRegistrationResponse
Creates a hosted URL that an app owner uses to register payment and tax details.
-
#create_billing_portal_session(params = {}) ⇒ Types::CreateBillingPortalSessionResponse
Opens the AWS App Monetization hosted customer billing portal for a user.
-
#create_metric(params = {}) ⇒ Types::CreateMetricResponse
Creates a usage metric definition for an app.
-
#create_one_time_checkout_session(params = {}) ⇒ Types::CreateOneTimeCheckoutSessionResponse
Creates a checkout session for a one-time purchase of usage packs or add-ons against the user's current subscription, or against the app when the user has no subscription.
-
#create_one_time_price(params = {}) ⇒ Types::CreateOneTimePriceResponse
Creates a one-time price for an app.
-
#create_plan(params = {}) ⇒ Types::CreatePlanResponse
Creates a pricing plan for an app.
-
#create_subscription_checkout_session(params = {}) ⇒ Types::CreateSubscriptionCheckoutSessionResponse
Subscribes a user to a plan or changes the user's current plan.
-
#delete_app(params = {}) ⇒ Types::DeleteAppResponse
Deletes an app.
-
#delete_one_time_price(params = {}) ⇒ Struct
Deletes a one-time price from an app.
-
#delete_third_party_cost(params = {}) ⇒ Struct
Removes a third-party cost.
-
#get_app(params = {}) ⇒ Types::GetAppResponse
Returns the details of an app.
-
#get_app_infra_cost_summary(params = {}) ⇒ Types::GetAppInfraCostSummaryResponse
Returns infrastructure cost for an app, grouped by service (the default), user, or time.
-
#get_app_payment_registration(params = {}) ⇒ Types::GetAppPaymentRegistrationResponse
Returns the current payment registration status and seller profile for an app.
-
#get_app_revenue_summary(params = {}) ⇒ Types::GetAppRevenueSummaryResponse
Returns billed revenue for an app for a billing period, grouped by plan.
-
#get_app_subscription_summary(params = {}) ⇒ Types::GetAppSubscriptionSummaryResponse
Returns subscription counts for an app, grouped by status (the default) or by plan.
-
#get_app_usage_summary(params = {}) ⇒ Types::GetAppUsageSummaryResponse
Returns usage for an app, grouped by metric (the default), user, or time.
-
#get_entitlement_decision(params = {}) ⇒ Types::GetEntitlementDecisionResponse
Returns an entitlement decision for a user action, indicating whether the action is allowed and why.
-
#get_metric(params = {}) ⇒ Types::GetMetricResponse
Returns the details of a metric.
-
#get_metric_usage(params = {}) ⇒ Types::GetMetricUsageResponse
Returns a user's raw per-metric usage over a caller-supplied window.
-
#get_one_time_price(params = {}) ⇒ Types::GetOneTimePriceResponse
Returns the details of a one-time price.
-
#get_plan(params = {}) ⇒ Types::GetPlanResponse
Returns the details of a plan.
-
#get_plan_recommendation(params = {}) ⇒ Types::GetPlanRecommendationResponse
Returns a recommended pricing model and plan set for an app, calculated from the billable actions, costs, customer types, alternatives and preferences in the request.
-
#get_subscription(params = {}) ⇒ Types::GetSubscriptionResponse
Returns a user's current subscription and any pending change.
-
#get_subscription_history(params = {}) ⇒ Types::GetSubscriptionHistoryResponse
Returns the historical subscription records for a user.
-
#get_third_party_cost(params = {}) ⇒ Types::GetThirdPartyCostResponse
Returns a single third-party cost by its identifier.
-
#list_apps(params = {}) ⇒ Types::ListAppsResponse
Returns the apps owned by the caller.
-
#list_metrics(params = {}) ⇒ Types::ListMetricsResponse
Returns the metrics for an app.
-
#list_one_time_prices(params = {}) ⇒ Types::ListOneTimePricesResponse
Lists the one-time prices for an app.
-
#list_plans(params = {}) ⇒ Types::ListPlansResponse
Returns the plans for an app.
-
#list_subscriptions(params = {}) ⇒ Types::ListSubscriptionsResponse
Returns the subscriptions for an app.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags on an app, pricing plan, billing metric or one-time price.
-
#list_third_party_costs(params = {}) ⇒ Types::ListThirdPartyCostsResponse
Returns the third-party costs for an app.
-
#publish_draft(params = {}) ⇒ Types::PublishDraftResponse
Publishes the app's current draft configuration to live in a single atomic operation.
-
#put_aws_service_event(params = {}) ⇒ Types::PutAwsServiceEventResponse
Records an AWS service usage event for cost attribution.
-
#put_custom_charges(params = {}) ⇒ Types::PutCustomChargesResponse
Adds charges that you compute to the end user's next subscription invoice.
-
#put_event(params = {}) ⇒ Types::PutEventResponse
Records a usage event for a user of an app.
-
#put_third_party_cost(params = {}) ⇒ Types::PutThirdPartyCostResponse
Adds or updates a seller-declared third-party (non-AWS) monthly cost for an app.
-
#tag_resource(params = {}) ⇒ Struct
Adds or overwrites tags on an app, pricing plan, billing metric or one-time price.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from an app, pricing plan, billing metric or one-time price.
-
#update_app(params = {}) ⇒ Types::UpdateAppResponse
Updates an existing app.
-
#update_app_payment_registration(params = {}) ⇒ Types::UpdateAppPaymentRegistrationResponse
Updates the payment and tax details on an app's payment registration.
-
#update_metric(params = {}) ⇒ Types::UpdateMetricResponse
Updates an existing metric.
-
#update_one_time_price(params = {}) ⇒ Types::UpdateOneTimePriceResponse
Updates the definition of a one-time price.
-
#update_plan(params = {}) ⇒ Types::UpdatePlanResponse
Updates an existing plan.
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.
479 480 481 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 479 def initialize(*args) super end |
Instance Method Details
#archive_metric(params = {}) ⇒ Types::ArchiveMetricResponse
Archives a metric, removing its definition from the app's draft configuration. The removal takes effect on the next call to PublishDraft. Already-recorded usage events and usage history are retained; archiving only stops the metric from aggregating further usage. Any plan quota or usage pack keyed to the metric is removed with it. If the metric was published, its metric ID and display name are permanently retired and cannot be reused.
520 521 522 523 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 520 def archive_metric(params = {}, = {}) req = build_request(:archive_metric, params) req.send_request() end |
#archive_plan(params = {}) ⇒ Types::ArchivePlanResponse
Archives a plan, removing it from the app's draft configuration so that it can no longer be subscribed to. The removal takes effect on the next call to PublishDraft. Existing subscriptions to the plan are unaffected, and the plan's display name is freed for reuse. The plan's included quotas are removed with it.
560 561 562 563 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 560 def archive_plan(params = {}, = {}) req = build_request(:archive_plan, params) req.send_request() end |
#cancel_subscription(params = {}) ⇒ Types::CancelSubscriptionResponse
Cancels a user's subscription at the end of the current billing period.
622 623 624 625 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 622 def cancel_subscription(params = {}, = {}) req = build_request(:cancel_subscription, params) req.send_request() end |
#create_app(params = {}) ⇒ Types::CreateAppResponse
Creates an app. AWS App Monetization assigns a unique app identifier. This operation is idempotent: a repeated request with the same clientToken returns the app created by the original request.
687 688 689 690 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 687 def create_app(params = {}, = {}) req = build_request(:create_app, params) req.send_request() end |
#create_app_payment_registration(params = {}) ⇒ Types::CreateAppPaymentRegistrationResponse
Creates a hosted URL that an app owner uses to register payment and tax details.
801 802 803 804 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 801 def create_app_payment_registration(params = {}, = {}) req = build_request(:create_app_payment_registration, params) req.send_request() end |
#create_billing_portal_session(params = {}) ⇒ Types::CreateBillingPortalSessionResponse
Opens the AWS App Monetization hosted customer billing portal for a user. This operation returns the billing portal URL that your application redirects the user's browser to. No state is persisted.
874 875 876 877 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 874 def create_billing_portal_session(params = {}, = {}) req = build_request(:create_billing_portal_session, params) req.send_request() end |
#create_metric(params = {}) ⇒ Types::CreateMetricResponse
Creates a usage metric definition for an app. A metric beyond the Metrics per app quota is refused with ServiceQuotaExceededException.
972 973 974 975 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 972 def create_metric(params = {}, = {}) req = build_request(:create_metric, params) req.send_request() end |
#create_one_time_checkout_session(params = {}) ⇒ Types::CreateOneTimeCheckoutSessionResponse
Creates a checkout session for a one-time purchase of usage packs or add-ons against the user's current subscription, or against the app when the user has no subscription. A one-time purchase always requires payment, so the response returns a checkout URL and a checkout session identifier. To subscribe a user to a plan or change the user's plan, use CreateSubscriptionCheckoutSession.
1044 1045 1046 1047 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1044 def create_one_time_checkout_session(params = {}, = {}) req = build_request(:create_one_time_checkout_session, params) req.send_request() end |
#create_one_time_price(params = {}) ⇒ Types::CreateOneTimePriceResponse
Creates a one-time price for an app. The one-time price exists on the draft (DRAFT) offering until published.
1110 1111 1112 1113 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1110 def create_one_time_price(params = {}, = {}) req = build_request(:create_one_time_price, params) req.send_request() end |
#create_plan(params = {}) ⇒ Types::CreatePlanResponse
Creates a pricing plan for an app. The plan's identifier is not supplied in the request; AWS App Monetization mints a server-generated planId and returns it on the created plan. The new plan exists on the draft (DRAFT) offering until it is published with PublishDraft.
1254 1255 1256 1257 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1254 def create_plan(params = {}, = {}) req = build_request(:create_plan, params) req.send_request() end |
#create_subscription_checkout_session(params = {}) ⇒ Types::CreateSubscriptionCheckoutSessionResponse
Subscribes a user to a plan or changes the user's current plan. The response returns exactly one outcome: payment is required (a checkout URL is returned), payment is not required (an effective date is returned), or, when no plan identifier is provided, plan selection is required (the hosted pricing page URL is returned). To make a one-time purchase of usage packs or add-ons, use CreateOneTimeCheckoutSession.
1339 1340 1341 1342 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1339 def create_subscription_checkout_session(params = {}, = {}) req = build_request(:create_subscription_checkout_session, params) req.send_request() end |
#delete_app(params = {}) ⇒ Types::DeleteAppResponse
Deletes an app. If the app's published offering still has plans or
metrics, the request fails with a ConflictException. Deleting an app
that no longer exists returns a ResourceNotFoundException.
1389 1390 1391 1392 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1389 def delete_app(params = {}, = {}) req = build_request(:delete_app, params) req.send_request() end |
#delete_one_time_price(params = {}) ⇒ Struct
Deletes a one-time price from an app. This operation is idempotent.
1421 1422 1423 1424 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1421 def delete_one_time_price(params = {}, = {}) req = build_request(:delete_one_time_price, params) req.send_request() end |
#delete_third_party_cost(params = {}) ⇒ Struct
Removes a third-party cost. This operation is idempotent: removing a cost that is already absent still succeeds. A missing or unauthorized parent app returns a ResourceNotFoundException.
1449 1450 1451 1452 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1449 def delete_third_party_cost(params = {}, = {}) req = build_request(:delete_third_party_cost, params) req.send_request() end |
#get_app(params = {}) ⇒ Types::GetAppResponse
Returns the details of an app.
1498 1499 1500 1501 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1498 def get_app(params = {}, = {}) req = build_request(:get_app, params) req.send_request() end |
#get_app_infra_cost_summary(params = {}) ⇒ Types::GetAppInfraCostSummaryResponse
Returns infrastructure cost for an app, grouped by service (the default), user, or time. To use this operation, you must also have permission for ce:GetCostAndUsage on your primary billing view.
1574 1575 1576 1577 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1574 def get_app_infra_cost_summary(params = {}, = {}) req = build_request(:get_app_infra_cost_summary, params) req.send_request() end |
#get_app_payment_registration(params = {}) ⇒ Types::GetAppPaymentRegistrationResponse
Returns the current payment registration status and seller profile for an app.
1633 1634 1635 1636 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1633 def get_app_payment_registration(params = {}, = {}) req = build_request(:get_app_payment_registration, params) req.send_request() end |
#get_app_revenue_summary(params = {}) ⇒ Types::GetAppRevenueSummaryResponse
Returns billed revenue for an app for a billing period, grouped by plan.
1703 1704 1705 1706 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1703 def get_app_revenue_summary(params = {}, = {}) req = build_request(:get_app_revenue_summary, params) req.send_request() end |
#get_app_subscription_summary(params = {}) ⇒ Types::GetAppSubscriptionSummaryResponse
Returns subscription counts for an app, grouped by status (the default) or by plan. The summary contains no subscriber personally identifiable information.
1758 1759 1760 1761 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1758 def get_app_subscription_summary(params = {}, = {}) req = build_request(:get_app_subscription_summary, params) req.send_request() end |
#get_app_usage_summary(params = {}) ⇒ Types::GetAppUsageSummaryResponse
Returns usage for an app, grouped by metric (the default), user, or time.
1826 1827 1828 1829 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1826 def get_app_usage_summary(params = {}, = {}) req = build_request(:get_app_usage_summary, params) req.send_request() end |
#get_entitlement_decision(params = {}) ⇒ Types::GetEntitlementDecisionResponse
Returns an entitlement decision for a user action, indicating whether the action is allowed and why. It takes the pending event's quantity and properties so the check sizes the decision per metric the way PutEvent counts the event: it applies each metric's filter to the properties, counts 1 for a COUNT metric, and reads the summed or maxed field value for a SUM or MAX metric. The decision is DENY when usage already reached the limit, or when folding this event in would push it past (a SUM or COUNT metric adds the increment to current usage, a MAX metric takes the larger of the two). Send the same eventType, quantity and properties you will send on the event: the check applies the rules PutEvent applies to that event. A SUM or MAX metric that reads a property rejects the check with a ValidationException when the property is missing or not a plain decimal, including when properties are omitted or sent as {}; a metric filter matches only properties that are present, so a filtered metric is skipped for an event with no properties, as PutEvent skips it. It is idempotent, and it may create the user's default-plan subscription on first use.
1920 1921 1922 1923 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1920 def get_entitlement_decision(params = {}, = {}) req = build_request(:get_entitlement_decision, params) req.send_request() end |
#get_metric(params = {}) ⇒ Types::GetMetricResponse
Returns the details of a metric.
1980 1981 1982 1983 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 1980 def get_metric(params = {}, = {}) req = build_request(:get_metric, params) req.send_request() end |
#get_metric_usage(params = {}) ⇒ Types::GetMetricUsageResponse
Returns a user's raw per-metric usage over a caller-supplied window. Usage is aggregated by event time with each metric's aggregation function: summed or counted, or the largest value for a MAX metric, in the environment the scope selects (the live app or its sandbox). It returns usage only: it does not resolve the user's plan, apply quota, or attribute usage to a plan. Combine it with GetSubscriptionHistory to compute charges for each plan the user was on, or compare it against a plan's allowance to make an entitlement decision.
Usage is read at hour resolution: startedAt is floored to its hour and endedAt is rounded up to the next hour boundary, so the window read can be wider than the requested one.
Paginated over the app's metric set: one page of per-metric usage per call, continued with nextToken. The window is fixed across a pagination sequence.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2061 2062 2063 2064 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 2061 def get_metric_usage(params = {}, = {}) req = build_request(:get_metric_usage, params) req.send_request() end |
#get_one_time_price(params = {}) ⇒ Types::GetOneTimePriceResponse
Returns the details of a one-time price.
2106 2107 2108 2109 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 2106 def get_one_time_price(params = {}, = {}) req = build_request(:get_one_time_price, params) req.send_request() end |
#get_plan(params = {}) ⇒ Types::GetPlanResponse
Returns the details of a plan.
2186 2187 2188 2189 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 2186 def get_plan(params = {}, = {}) req = build_request(:get_plan, params) req.send_request() end |
#get_plan_recommendation(params = {}) ⇒ Types::GetPlanRecommendationResponse
Returns a recommended pricing model and plan set for an app, calculated from the billable actions, costs, customer types, alternatives and preferences in the request. Built to be called by an agent working with the developer: most inputs are estimates the agent gathers from the app's code and from the developer (who the users are, what an action saves them, what it costs to serve), and each optional member's documentation says what its absence means, so send only the inputs you have a basis for. Stateless: nothing is stored, no app is required, and repeating a request returns the same recommendation unless the service has been updated in between. Every response carries the rendered texts summary and details. Smallest call (MEDIUM confidence): Aws::AppMonetization::Client."segment":"CONSUMER","appType":"DAILY_WORKFLOW","actions":[{"unitCost":0.02,"typicalMonthlyUsage":30,"valuePerUse":0"segment":"CONSUMER","appType":"DAILY_WORKFLOW","actions":[{"unitCost":0.02,"typicalMonthlyUsage":30,"valuePerUse":0.40]}.
2572 2573 2574 2575 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 2572 def get_plan_recommendation(params = {}, = {}) req = build_request(:get_plan_recommendation, params) req.send_request() end |
#get_subscription(params = {}) ⇒ Types::GetSubscriptionResponse
Returns a user's current subscription and any pending change.
2620 2621 2622 2623 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 2620 def get_subscription(params = {}, = {}) req = build_request(:get_subscription, params) req.send_request() end |
#get_subscription_history(params = {}) ⇒ Types::GetSubscriptionHistoryResponse
Returns the historical subscription records for a user. We recommend using pagination to ensure that the operation returns quickly and successfully.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2689 2690 2691 2692 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 2689 def get_subscription_history(params = {}, = {}) req = build_request(:get_subscription_history, params) req.send_request() end |
#get_third_party_cost(params = {}) ⇒ Types::GetThirdPartyCostResponse
Returns a single third-party cost by its identifier. An unknown cost identifier returns a ResourceNotFoundException.
2732 2733 2734 2735 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 2732 def get_third_party_cost(params = {}, = {}) req = build_request(:get_third_party_cost, params) req.send_request() end |
#list_apps(params = {}) ⇒ Types::ListAppsResponse
Returns the apps owned by the caller. We recommend using pagination to ensure that the operation returns quickly and successfully.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2778 2779 2780 2781 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 2778 def list_apps(params = {}, = {}) req = build_request(:list_apps, params) req.send_request() end |
#list_metrics(params = {}) ⇒ Types::ListMetricsResponse
Returns the metrics for an app. Returns a paginated list; we recommend using pagination to ensure that the operation returns quickly and successfully.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2854 2855 2856 2857 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 2854 def list_metrics(params = {}, = {}) req = build_request(:list_metrics, params) req.send_request() end |
#list_one_time_prices(params = {}) ⇒ Types::ListOneTimePricesResponse
Lists the one-time prices for an app. Returns a paginated list; use the nextToken value to retrieve additional pages.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2920 2921 2922 2923 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 2920 def list_one_time_prices(params = {}, = {}) req = build_request(:list_one_time_prices, params) req.send_request() end |
#list_plans(params = {}) ⇒ Types::ListPlansResponse
Returns the plans for an app. We recommend using pagination to ensure that the operation returns quickly and successfully.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3012 3013 3014 3015 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3012 def list_plans(params = {}, = {}) req = build_request(:list_plans, params) req.send_request() end |
#list_subscriptions(params = {}) ⇒ Types::ListSubscriptionsResponse
Returns the subscriptions for an app. We recommend using pagination to ensure that the operation returns quickly and successfully.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3065 3066 3067 3068 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3065 def list_subscriptions(params = {}, = {}) req = build_request(:list_subscriptions, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags on an app, pricing plan, billing metric or one-time price.
3096 3097 3098 3099 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3096 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_third_party_costs(params = {}) ⇒ Types::ListThirdPartyCostsResponse
Returns the third-party costs for an app. To calculate a total, sum the amount of the returned items; the costs are not prorated. Returns a paginated list; we recommend using pagination to ensure that the operation returns quickly and successfully.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3153 3154 3155 3156 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3153 def list_third_party_costs(params = {}, = {}) req = build_request(:list_third_party_costs, params) req.send_request() end |
#publish_draft(params = {}) ⇒ Types::PublishDraftResponse
Publishes the app's current draft configuration to live in a single atomic operation. The published configuration includes all plans, metrics, capabilities, usage packs, add-ons, and free trials. A draft with more plans than the Published plans per app quota allows is refused with ServiceQuotaExceededException.
3190 3191 3192 3193 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3190 def publish_draft(params = {}, = {}) req = build_request(:publish_draft, params) req.send_request() end |
#put_aws_service_event(params = {}) ⇒ Types::PutAwsServiceEventResponse
Records an AWS service usage event for cost attribution. The event is accepted and processed asynchronously.
3271 3272 3273 3274 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3271 def put_aws_service_event(params = {}, = {}) req = build_request(:put_aws_service_event, params) req.send_request() end |
#put_custom_charges(params = {}) ⇒ Types::PutCustomChargesResponse
Adds charges that you compute to the end user's next subscription invoice. The charges go to the billing period of the user's current subscription that contains the current time. You don't specify a period.
Each charge has a chargeId that you choose. If you submit a
chargeId again in the same billing period, the existing charge is
replaced instead of added again. A chargeId belongs to the first
billing period that accepts it, so use a value that is unique for this
user across all billing periods, such as a UUID or your own invoice
line ID.
The request succeeds or fails as a whole: either every charge is accepted or none is. A successful response means that every charge was accepted.
If you submit a chargeId after its billing period has ended, the
request fails with a ConflictException. The charge is already
recorded. Don't submit it again under a new chargeId, because that
bills it twice.
A billing period holds at most 100 chargeId values for each user. If
a request would exceed 100, it fails with a
ServiceQuotaExceededException. Submitting a chargeId that is
already in the period doesn't count toward the limit.
3348 3349 3350 3351 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3348 def put_custom_charges(params = {}, = {}) req = build_request(:put_custom_charges, params) req.send_request() end |
#put_event(params = {}) ⇒ Types::PutEventResponse
Records a usage event for a user of an app. Usage events are the raw input that metrics aggregate.
3423 3424 3425 3426 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3423 def put_event(params = {}, = {}) req = build_request(:put_event, params) req.send_request() end |
#put_third_party_cost(params = {}) ⇒ Types::PutThirdPartyCostResponse
Adds or updates a seller-declared third-party (non-AWS) monthly cost for an app. Omit the cost identifier to create a new cost, or supply an existing cost identifier to update it in place. The amount is a flat monthly value, and currency defaults to USD when omitted.
3510 3511 3512 3513 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3510 def put_third_party_cost(params = {}, = {}) req = build_request(:put_third_party_cost, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds or overwrites tags on an app, pricing plan, billing metric or one-time price.
3540 3541 3542 3543 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3540 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from an app, pricing plan, billing metric or one-time price.
3569 3570 3571 3572 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3569 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_app(params = {}) ⇒ Types::UpdateAppResponse
Updates an existing app. This operation is idempotent.
3636 3637 3638 3639 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3636 def update_app(params = {}, = {}) req = build_request(:update_app, params) req.send_request() end |
#update_app_payment_registration(params = {}) ⇒ Types::UpdateAppPaymentRegistrationResponse
Updates the payment and tax details on an app's payment registration.
3757 3758 3759 3760 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3757 def update_app_payment_registration(params = {}, = {}) req = build_request(:update_app_payment_registration, params) req.send_request() end |
#update_metric(params = {}) ⇒ Types::UpdateMetricResponse
Updates an existing metric. Only a draft metric, one that has never been published, can be modified. After a metric is published, every field is frozen and any update is rejected with a ConflictException. To change a published metric, archive it and create a new metric.
3843 3844 3845 3846 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3843 def update_metric(params = {}, = {}) req = build_request(:update_metric, params) req.send_request() end |
#update_one_time_price(params = {}) ⇒ Types::UpdateOneTimePriceResponse
Updates the definition of a one-time price. This operation is idempotent.
3906 3907 3908 3909 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 3906 def update_one_time_price(params = {}, = {}) req = build_request(:update_one_time_price, params) req.send_request() end |
#update_plan(params = {}) ⇒ Types::UpdatePlanResponse
Updates an existing plan. Only a draft plan, one that has never been published, can be modified. After a plan is published, all of its fields are frozen and any update is rejected with a ConflictException. To change the terms of a published plan, archive it and create a new plan.
4039 4040 4041 4042 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/client.rb', line 4039 def update_plan(params = {}, = {}) req = build_request(:update_plan, params) req.send_request() end |