aws-sdk-appmonetization 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-appmonetization/client.rb +4084 -0
- data/lib/aws-sdk-appmonetization/client_api.rb +2298 -0
- data/lib/aws-sdk-appmonetization/customizations.rb +0 -0
- data/lib/aws-sdk-appmonetization/endpoint_parameters.rb +59 -0
- data/lib/aws-sdk-appmonetization/endpoint_provider.rb +32 -0
- data/lib/aws-sdk-appmonetization/endpoints.rb +20 -0
- data/lib/aws-sdk-appmonetization/errors.rb +310 -0
- data/lib/aws-sdk-appmonetization/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-appmonetization/resource.rb +26 -0
- data/lib/aws-sdk-appmonetization/types.rb +5861 -0
- data/lib/aws-sdk-appmonetization.rb +61 -0
- data/sig/client.rbs +938 -0
- data/sig/errors.rbs +65 -0
- data/sig/params.rbs +117 -0
- data/sig/resource.rbs +86 -0
- data/sig/types.rbs +1399 -0
- metadata +96 -0
|
@@ -0,0 +1,4084 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
|
4
|
+
#
|
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
require 'seahorse/client/plugins/content_length'
|
|
11
|
+
require 'aws-sdk-core/plugins/credentials_configuration'
|
|
12
|
+
require 'aws-sdk-core/plugins/logging'
|
|
13
|
+
require 'aws-sdk-core/plugins/param_converter'
|
|
14
|
+
require 'aws-sdk-core/plugins/param_validator'
|
|
15
|
+
require 'aws-sdk-core/plugins/user_agent'
|
|
16
|
+
require 'aws-sdk-core/plugins/helpful_socket_errors'
|
|
17
|
+
require 'aws-sdk-core/plugins/retry_errors'
|
|
18
|
+
require 'aws-sdk-core/plugins/global_configuration'
|
|
19
|
+
require 'aws-sdk-core/plugins/regional_endpoint'
|
|
20
|
+
require 'aws-sdk-core/plugins/endpoint_discovery'
|
|
21
|
+
require 'aws-sdk-core/plugins/endpoint_pattern'
|
|
22
|
+
require 'aws-sdk-core/plugins/response_paging'
|
|
23
|
+
require 'aws-sdk-core/plugins/stub_responses'
|
|
24
|
+
require 'aws-sdk-core/plugins/idempotency_token'
|
|
25
|
+
require 'aws-sdk-core/plugins/invocation_id'
|
|
26
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter'
|
|
27
|
+
require 'aws-sdk-core/plugins/client_metrics_plugin'
|
|
28
|
+
require 'aws-sdk-core/plugins/client_metrics_send_plugin'
|
|
29
|
+
require 'aws-sdk-core/plugins/transfer_encoding'
|
|
30
|
+
require 'aws-sdk-core/plugins/http_checksum'
|
|
31
|
+
require 'aws-sdk-core/plugins/checksum_algorithm'
|
|
32
|
+
require 'aws-sdk-core/plugins/request_compression'
|
|
33
|
+
require 'aws-sdk-core/plugins/defaults_mode'
|
|
34
|
+
require 'aws-sdk-core/plugins/recursion_detection'
|
|
35
|
+
require 'aws-sdk-core/plugins/telemetry'
|
|
36
|
+
require 'aws-sdk-core/plugins/sign'
|
|
37
|
+
require 'aws-sdk-core/plugins/protocols/rest_json'
|
|
38
|
+
|
|
39
|
+
module Aws::AppMonetization
|
|
40
|
+
# An API client for AppMonetization. To construct a client, you need to configure a `:region` and `:credentials`.
|
|
41
|
+
#
|
|
42
|
+
# client = Aws::AppMonetization::Client.new(
|
|
43
|
+
# region: region_name,
|
|
44
|
+
# credentials: credentials,
|
|
45
|
+
# # ...
|
|
46
|
+
# )
|
|
47
|
+
#
|
|
48
|
+
# For details on configuring region and credentials see
|
|
49
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
|
50
|
+
#
|
|
51
|
+
# See {#initialize} for a full list of supported configuration options.
|
|
52
|
+
class Client < Seahorse::Client::Base
|
|
53
|
+
|
|
54
|
+
include Aws::ClientStubs
|
|
55
|
+
|
|
56
|
+
@identifier = :appmonetization
|
|
57
|
+
|
|
58
|
+
set_api(ClientApi::API)
|
|
59
|
+
|
|
60
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
|
61
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
|
62
|
+
add_plugin(Aws::Plugins::Logging)
|
|
63
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
|
64
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
|
65
|
+
add_plugin(Aws::Plugins::UserAgent)
|
|
66
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
|
67
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
|
68
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
|
69
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
|
70
|
+
add_plugin(Aws::Plugins::EndpointDiscovery)
|
|
71
|
+
add_plugin(Aws::Plugins::EndpointPattern)
|
|
72
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
|
73
|
+
add_plugin(Aws::Plugins::StubResponses)
|
|
74
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
|
75
|
+
add_plugin(Aws::Plugins::InvocationId)
|
|
76
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
|
77
|
+
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
|
78
|
+
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
|
79
|
+
add_plugin(Aws::Plugins::TransferEncoding)
|
|
80
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
|
81
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
|
82
|
+
add_plugin(Aws::Plugins::RequestCompression)
|
|
83
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
|
84
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
|
85
|
+
add_plugin(Aws::Plugins::Telemetry)
|
|
86
|
+
add_plugin(Aws::Plugins::Sign)
|
|
87
|
+
add_plugin(Aws::Plugins::Protocols::RestJson)
|
|
88
|
+
add_plugin(Aws::AppMonetization::Plugins::Endpoints)
|
|
89
|
+
|
|
90
|
+
# @overload initialize(options)
|
|
91
|
+
# @param [Hash] options
|
|
92
|
+
#
|
|
93
|
+
# @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
|
|
94
|
+
# A list of plugins to apply to the client. Each plugin is either a
|
|
95
|
+
# class name or an instance of a plugin class.
|
|
96
|
+
#
|
|
97
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
|
98
|
+
# Your AWS credentials used for authentication. This can be any class that includes and implements
|
|
99
|
+
# `Aws::CredentialProvider`, or instance of any one of the following classes:
|
|
100
|
+
#
|
|
101
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
|
102
|
+
# credentials.
|
|
103
|
+
#
|
|
104
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
|
105
|
+
# shared file, such as `~/.aws/config`.
|
|
106
|
+
#
|
|
107
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
|
108
|
+
#
|
|
109
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
|
110
|
+
# assume a role after providing credentials via the web.
|
|
111
|
+
#
|
|
112
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
|
113
|
+
# access token generated from `aws login`.
|
|
114
|
+
#
|
|
115
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
|
116
|
+
# process that outputs to stdout.
|
|
117
|
+
#
|
|
118
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
|
119
|
+
# from an EC2 IMDS on an EC2 instance.
|
|
120
|
+
#
|
|
121
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
|
122
|
+
# instances running in ECS.
|
|
123
|
+
#
|
|
124
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
|
125
|
+
# from the Cognito Identity service.
|
|
126
|
+
#
|
|
127
|
+
# When `:credentials` are not configured directly, the following locations will be searched for credentials:
|
|
128
|
+
#
|
|
129
|
+
# * `Aws.config[:credentials]`
|
|
130
|
+
#
|
|
131
|
+
# * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
|
|
132
|
+
# `:account_id` options.
|
|
133
|
+
#
|
|
134
|
+
# * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
|
|
135
|
+
# `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
|
|
136
|
+
#
|
|
137
|
+
# * `~/.aws/credentials`
|
|
138
|
+
#
|
|
139
|
+
# * `~/.aws/config`
|
|
140
|
+
#
|
|
141
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive.
|
|
142
|
+
# Construct and pass an instance of `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
|
143
|
+
# enable retries and extended timeouts. Instance profile credential fetching can be disabled by
|
|
144
|
+
# setting `ENV['AWS_EC2_METADATA_DISABLED']` to `true`.
|
|
145
|
+
#
|
|
146
|
+
# @option options [required, String] :region
|
|
147
|
+
# The AWS region to connect to. The configured `:region` is
|
|
148
|
+
# used to determine the service `:endpoint`. When not passed,
|
|
149
|
+
# a default `:region` is searched for in the following locations:
|
|
150
|
+
#
|
|
151
|
+
# * `Aws.config[:region]`
|
|
152
|
+
# * `ENV['AWS_REGION']`
|
|
153
|
+
# * `ENV['AMAZON_REGION']`
|
|
154
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
|
155
|
+
# * `~/.aws/credentials`
|
|
156
|
+
# * `~/.aws/config`
|
|
157
|
+
#
|
|
158
|
+
# @option options [String] :access_key_id
|
|
159
|
+
#
|
|
160
|
+
# @option options [String] :account_id
|
|
161
|
+
#
|
|
162
|
+
# @option options [Boolean] :active_endpoint_cache (false)
|
|
163
|
+
# When set to `true`, a thread polling for endpoints will be running in
|
|
164
|
+
# the background every 60 secs (default). Defaults to `false`.
|
|
165
|
+
#
|
|
166
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
|
167
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
|
168
|
+
# until there is sufficent client side capacity to retry the request.
|
|
169
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
|
170
|
+
# not retry instead of sleeping.
|
|
171
|
+
#
|
|
172
|
+
# @option options [Array<String>] :auth_scheme_preference
|
|
173
|
+
# A list of preferred authentication schemes to use when making a request. Supported values are:
|
|
174
|
+
# `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
|
|
175
|
+
# shared config as `auth_scheme_preference`, the value should be a comma-separated list.
|
|
176
|
+
#
|
|
177
|
+
# @option options [Boolean] :client_side_monitoring (false)
|
|
178
|
+
# When `true`, client-side metrics will be collected for all API requests from
|
|
179
|
+
# this client.
|
|
180
|
+
#
|
|
181
|
+
# @option options [String] :client_side_monitoring_client_id ("")
|
|
182
|
+
# Allows you to provide an identifier for this client which will be attached to
|
|
183
|
+
# all generated client side metrics. Defaults to an empty string.
|
|
184
|
+
#
|
|
185
|
+
# @option options [String] :client_side_monitoring_host ("127.0.0.1")
|
|
186
|
+
# Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
|
|
187
|
+
# side monitoring agent is running on, where client metrics will be published via UDP.
|
|
188
|
+
#
|
|
189
|
+
# @option options [Integer] :client_side_monitoring_port (31000)
|
|
190
|
+
# Required for publishing client metrics. The port that the client side monitoring
|
|
191
|
+
# agent is running on, where client metrics will be published via UDP.
|
|
192
|
+
#
|
|
193
|
+
# @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
|
|
194
|
+
# Allows you to provide a custom client-side monitoring publisher class. By default,
|
|
195
|
+
# will use the Client Side Monitoring Agent Publisher.
|
|
196
|
+
#
|
|
197
|
+
# @option options [Boolean] :convert_params (true)
|
|
198
|
+
# When `true`, an attempt is made to coerce request parameters into
|
|
199
|
+
# the required types.
|
|
200
|
+
#
|
|
201
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
|
202
|
+
# Used only in `standard` and `adaptive` retry modes. Specifies whether
|
|
203
|
+
# to apply a clock skew correction and retry requests with skewed client
|
|
204
|
+
# clocks. Takes effect only when `disable_clock_skew_correction` is not set.
|
|
205
|
+
#
|
|
206
|
+
# @option options [String] :defaults_mode ("legacy")
|
|
207
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
|
208
|
+
# accepted modes and the configuration defaults that are included.
|
|
209
|
+
#
|
|
210
|
+
# @option options [Boolean] :disable_clock_skew_correction
|
|
211
|
+
# Used only in `standard` and `adaptive` retry modes. When `true`, the
|
|
212
|
+
# SDK does not apply a clock skew correction, does not update its stored
|
|
213
|
+
# skew from responses, and does not retry clock skew errors. Clock skew
|
|
214
|
+
# correction is enabled by default.
|
|
215
|
+
#
|
|
216
|
+
# @option options [Boolean] :disable_host_prefix_injection (false)
|
|
217
|
+
# When `true`, the SDK will not prepend the modeled host prefix to the endpoint.
|
|
218
|
+
#
|
|
219
|
+
# @option options [Boolean] :disable_request_compression (false)
|
|
220
|
+
# When set to 'true' the request body will not be compressed
|
|
221
|
+
# for supported operations.
|
|
222
|
+
#
|
|
223
|
+
# @option options [String, URI::HTTPS, URI::HTTP] :endpoint
|
|
224
|
+
# Normally you should not configure the `:endpoint` option
|
|
225
|
+
# directly. This is normally constructed from the `:region`
|
|
226
|
+
# option. Configuring `:endpoint` is normally reserved for
|
|
227
|
+
# connecting to test or custom endpoints. The endpoint should
|
|
228
|
+
# be a URI formatted like:
|
|
229
|
+
#
|
|
230
|
+
# 'http://example.com'
|
|
231
|
+
# 'https://example.com'
|
|
232
|
+
# 'http://example.com:123'
|
|
233
|
+
#
|
|
234
|
+
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
|
235
|
+
# Used for the maximum size limit of the LRU cache storing endpoints data
|
|
236
|
+
# for endpoint discovery enabled operations. Defaults to 1000.
|
|
237
|
+
#
|
|
238
|
+
# @option options [Integer] :endpoint_cache_max_threads (10)
|
|
239
|
+
# Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
|
|
240
|
+
#
|
|
241
|
+
# @option options [Integer] :endpoint_cache_poll_interval (60)
|
|
242
|
+
# When :endpoint_discovery and :active_endpoint_cache is enabled,
|
|
243
|
+
# Use this option to config the time interval in seconds for making
|
|
244
|
+
# requests fetching endpoints information. Defaults to 60 sec.
|
|
245
|
+
#
|
|
246
|
+
# @option options [Boolean] :endpoint_discovery (false)
|
|
247
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
|
248
|
+
#
|
|
249
|
+
# @option options [Boolean] :ignore_configured_endpoint_urls
|
|
250
|
+
# Setting to true disables use of endpoint URLs provided via environment
|
|
251
|
+
# variables and the shared configuration file.
|
|
252
|
+
#
|
|
253
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
|
254
|
+
# The log formatter.
|
|
255
|
+
#
|
|
256
|
+
# @option options [Symbol] :log_level (:info)
|
|
257
|
+
# The log level to send messages to the `:logger` at.
|
|
258
|
+
#
|
|
259
|
+
# @option options [Logger] :logger
|
|
260
|
+
# The Logger instance to send log messages to. If this option
|
|
261
|
+
# is not set, logging will be disabled.
|
|
262
|
+
#
|
|
263
|
+
# @option options [Integer] :max_attempts (3)
|
|
264
|
+
# An integer representing the maximum number attempts that will be made for
|
|
265
|
+
# a single request, including the initial attempt. For example,
|
|
266
|
+
# setting this value to 5 will result in a request being retried up to
|
|
267
|
+
# 4 times. Used in `standard` and `adaptive` retry modes. Defaults to 3,
|
|
268
|
+
# except for DynamoDB and DynamoDB Streams, which default to 4.
|
|
269
|
+
#
|
|
270
|
+
# @option options [String] :profile ("default")
|
|
271
|
+
# Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
|
|
272
|
+
# When not specified, 'default' is used.
|
|
273
|
+
#
|
|
274
|
+
# @option options [String] :request_checksum_calculation ("when_supported")
|
|
275
|
+
# Determines when a checksum will be calculated for request payloads. Values are:
|
|
276
|
+
#
|
|
277
|
+
# * `when_supported` - (default) When set, a checksum will be
|
|
278
|
+
# calculated for all request payloads of operations modeled with the
|
|
279
|
+
# `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
|
|
280
|
+
# `requestAlgorithmMember` is modeled.
|
|
281
|
+
# * `when_required` - When set, a checksum will only be calculated for
|
|
282
|
+
# request payloads of operations modeled with the `httpChecksum` trait where
|
|
283
|
+
# `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
|
|
284
|
+
# is modeled and supplied.
|
|
285
|
+
#
|
|
286
|
+
# @option options [Integer] :request_min_compression_size_bytes (10240)
|
|
287
|
+
# The minimum size in bytes that triggers compression for request
|
|
288
|
+
# bodies. The value must be non-negative integer value between 0
|
|
289
|
+
# and 10485780 bytes inclusive.
|
|
290
|
+
#
|
|
291
|
+
# @option options [String] :response_checksum_validation ("when_supported")
|
|
292
|
+
# Determines when checksum validation will be performed on response payloads. Values are:
|
|
293
|
+
#
|
|
294
|
+
# * `when_supported` - (default) When set, checksum validation is performed on all
|
|
295
|
+
# response payloads of operations modeled with the `httpChecksum` trait where
|
|
296
|
+
# `responseAlgorithms` is modeled, except when no modeled checksum algorithms
|
|
297
|
+
# are supported.
|
|
298
|
+
# * `when_required` - When set, checksum validation is not performed on
|
|
299
|
+
# response payloads of operations unless the checksum algorithm is supported and
|
|
300
|
+
# the `requestValidationModeMember` member is set to `ENABLED`.
|
|
301
|
+
#
|
|
302
|
+
# @option options [Proc] :retry_backoff
|
|
303
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
|
304
|
+
# This option is only used in the `legacy` retry mode.
|
|
305
|
+
#
|
|
306
|
+
# @option options [Float] :retry_base_delay (0.3)
|
|
307
|
+
# The base delay in seconds used by the default backoff function. This option
|
|
308
|
+
# is only used in the `legacy` retry mode.
|
|
309
|
+
#
|
|
310
|
+
# @option options [Symbol] :retry_jitter (:none)
|
|
311
|
+
# A delay randomiser function used by the default backoff function.
|
|
312
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
|
313
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
|
314
|
+
# in the `legacy` retry mode.
|
|
315
|
+
#
|
|
316
|
+
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
|
317
|
+
#
|
|
318
|
+
# @option options [Integer] :retry_limit (3)
|
|
319
|
+
# The maximum number of times to retry failed requests. Only
|
|
320
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
|
321
|
+
# are retried. Generally, these are throttling errors, data
|
|
322
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
|
323
|
+
# endpoint discovery, and errors from expired credentials.
|
|
324
|
+
# This option is only used in the `legacy` retry mode.
|
|
325
|
+
#
|
|
326
|
+
# @option options [Integer] :retry_max_delay (0)
|
|
327
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
|
328
|
+
# used by the default backoff function. This option is only used in the
|
|
329
|
+
# `legacy` retry mode.
|
|
330
|
+
#
|
|
331
|
+
# @option options [String] :retry_mode ("standard")
|
|
332
|
+
# Specifies which retry algorithm to use. Values are:
|
|
333
|
+
#
|
|
334
|
+
# * `legacy` - The pre-existing retry behavior.
|
|
335
|
+
#
|
|
336
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
|
337
|
+
# This includes support for retry quotas, which limit the number of
|
|
338
|
+
# unsuccessful retries a client can make. This is the default value
|
|
339
|
+
# if no retry mode is provided.
|
|
340
|
+
#
|
|
341
|
+
# * `adaptive` - A retry mode that includes all the functionality of
|
|
342
|
+
# `standard` mode along with automatic client side throttling.
|
|
343
|
+
#
|
|
344
|
+
# @option options [String] :sdk_ua_app_id
|
|
345
|
+
# A unique and opaque application ID that is appended to the
|
|
346
|
+
# User-Agent header as app/sdk_ua_app_id. It should have a
|
|
347
|
+
# maximum length of 50. This variable is sourced from environment
|
|
348
|
+
# variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
|
|
349
|
+
#
|
|
350
|
+
# @option options [String] :secret_access_key
|
|
351
|
+
#
|
|
352
|
+
# @option options [String] :session_token
|
|
353
|
+
#
|
|
354
|
+
# @option options [Array] :sigv4a_signing_region_set
|
|
355
|
+
# A list of regions that should be signed with SigV4a signing. When
|
|
356
|
+
# not passed, a default `:sigv4a_signing_region_set` is searched for
|
|
357
|
+
# in the following locations:
|
|
358
|
+
#
|
|
359
|
+
# * `Aws.config[:sigv4a_signing_region_set]`
|
|
360
|
+
# * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
|
|
361
|
+
# * `~/.aws/config`
|
|
362
|
+
#
|
|
363
|
+
# @option options [Boolean] :stub_responses (false)
|
|
364
|
+
# Causes the client to return stubbed responses. By default
|
|
365
|
+
# fake responses are generated and returned. You can specify
|
|
366
|
+
# the response data to return or errors to raise by calling
|
|
367
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
|
368
|
+
#
|
|
369
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
|
370
|
+
# requests are made, and retries are disabled.
|
|
371
|
+
#
|
|
372
|
+
# @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
|
|
373
|
+
# Allows you to provide a telemetry provider, which is used to
|
|
374
|
+
# emit telemetry data. By default, uses `NoOpTelemetryProvider` which
|
|
375
|
+
# will not record or emit any telemetry data. The SDK supports the
|
|
376
|
+
# following telemetry providers:
|
|
377
|
+
#
|
|
378
|
+
# * OpenTelemetry (OTel) - To use the OTel provider, install and require the
|
|
379
|
+
# `opentelemetry-sdk` gem and then, pass in an instance of a
|
|
380
|
+
# `Aws::Telemetry::OTelProvider` for telemetry provider.
|
|
381
|
+
#
|
|
382
|
+
# @option options [Aws::TokenProvider] :token_provider
|
|
383
|
+
# Your Bearer token used for authentication. This can be any class that includes and implements
|
|
384
|
+
# `Aws::TokenProvider`, or instance of any one of the following classes:
|
|
385
|
+
#
|
|
386
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
|
387
|
+
# tokens.
|
|
388
|
+
#
|
|
389
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
|
390
|
+
# access token generated from `aws login`.
|
|
391
|
+
#
|
|
392
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
|
393
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
|
394
|
+
#
|
|
395
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
|
396
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
|
397
|
+
# will be used if available.
|
|
398
|
+
#
|
|
399
|
+
# @option options [Boolean] :use_fips_endpoint
|
|
400
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
|
401
|
+
# When a `fips` region is used, the region is normalized and this config
|
|
402
|
+
# is set to `true`.
|
|
403
|
+
#
|
|
404
|
+
# @option options [Boolean] :validate_params (true)
|
|
405
|
+
# When `true`, request parameters are validated before
|
|
406
|
+
# sending the request.
|
|
407
|
+
#
|
|
408
|
+
# @option options [Aws::AppMonetization::EndpointProvider] :endpoint_provider
|
|
409
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to
|
|
410
|
+
# `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
|
411
|
+
# `Aws::AppMonetization::EndpointParameters`.
|
|
412
|
+
#
|
|
413
|
+
# @option options [Float] :http_continue_timeout (1)
|
|
414
|
+
# The number of seconds to wait for a 100-continue response before sending the
|
|
415
|
+
# request body. This option has no effect unless the request has "Expect"
|
|
416
|
+
# header set to "100-continue". Defaults to `nil` which disables this
|
|
417
|
+
# behaviour. This value can safely be set per request on the session.
|
|
418
|
+
#
|
|
419
|
+
# @option options [Float] :http_idle_timeout (5)
|
|
420
|
+
# The number of seconds a connection is allowed to sit idle before it
|
|
421
|
+
# is considered stale. Stale connections are closed and removed from the
|
|
422
|
+
# pool before making a request.
|
|
423
|
+
#
|
|
424
|
+
# @option options [Float] :http_open_timeout (15)
|
|
425
|
+
# The default number of seconds to wait for response data.
|
|
426
|
+
# This value can safely be set per-request on the session.
|
|
427
|
+
#
|
|
428
|
+
# @option options [URI::HTTP,String] :http_proxy
|
|
429
|
+
# A proxy to send requests through. Formatted like 'http://proxy.com:123'.
|
|
430
|
+
#
|
|
431
|
+
# @option options [Float] :http_read_timeout (60)
|
|
432
|
+
# The default number of seconds to wait for response data.
|
|
433
|
+
# This value can safely be set per-request on the session.
|
|
434
|
+
#
|
|
435
|
+
# @option options [Boolean] :http_wire_trace (false)
|
|
436
|
+
# When `true`, HTTP debug output will be sent to the `:logger`.
|
|
437
|
+
#
|
|
438
|
+
# @option options [Proc] :on_chunk_received
|
|
439
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
|
440
|
+
# of the response body is received. It provides three arguments: the chunk,
|
|
441
|
+
# the number of bytes received, and the total number of
|
|
442
|
+
# bytes in the response (or nil if the server did not send a `content-length`).
|
|
443
|
+
#
|
|
444
|
+
# @option options [Proc] :on_chunk_sent
|
|
445
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
|
446
|
+
# of the request body is sent. It provides three arguments: the chunk,
|
|
447
|
+
# the number of bytes read from the body, and the total number of
|
|
448
|
+
# bytes in the body.
|
|
449
|
+
#
|
|
450
|
+
# @option options [Boolean] :raise_response_errors (true)
|
|
451
|
+
# When `true`, response errors are raised.
|
|
452
|
+
#
|
|
453
|
+
# @option options [String] :ssl_ca_bundle
|
|
454
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
|
455
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
|
456
|
+
# `:ssl_ca_directory` the the system default will be used if available.
|
|
457
|
+
#
|
|
458
|
+
# @option options [String] :ssl_ca_directory
|
|
459
|
+
# Full path of the directory that contains the unbundled SSL certificate
|
|
460
|
+
# authority files for verifying peer certificates. If you do
|
|
461
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
|
|
462
|
+
# default will be used if available.
|
|
463
|
+
#
|
|
464
|
+
# @option options [String] :ssl_ca_store
|
|
465
|
+
# Sets the X509::Store to verify peer certificate.
|
|
466
|
+
#
|
|
467
|
+
# @option options [OpenSSL::X509::Certificate] :ssl_cert
|
|
468
|
+
# Sets a client certificate when creating http connections.
|
|
469
|
+
#
|
|
470
|
+
# @option options [OpenSSL::PKey] :ssl_key
|
|
471
|
+
# Sets a client key when creating http connections.
|
|
472
|
+
#
|
|
473
|
+
# @option options [Float] :ssl_timeout
|
|
474
|
+
# Sets the SSL timeout in seconds
|
|
475
|
+
#
|
|
476
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
|
477
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
|
478
|
+
#
|
|
479
|
+
def initialize(*args)
|
|
480
|
+
super
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# @!group API Operations
|
|
484
|
+
|
|
485
|
+
# Archives a metric, removing its definition from the app's draft
|
|
486
|
+
# configuration. The removal takes effect on the next call to
|
|
487
|
+
# PublishDraft. Already-recorded usage events and usage history are
|
|
488
|
+
# retained; archiving only stops the metric from aggregating further
|
|
489
|
+
# usage. Any plan quota or usage pack keyed to the metric is removed
|
|
490
|
+
# with it. If the metric was published, its metric ID and display name
|
|
491
|
+
# are permanently retired and cannot be reused.
|
|
492
|
+
#
|
|
493
|
+
# @option params [required, String] :app_id
|
|
494
|
+
# The ID of the app.
|
|
495
|
+
#
|
|
496
|
+
# @option params [required, String] :metric_id
|
|
497
|
+
# The ID of the metric to archive.
|
|
498
|
+
#
|
|
499
|
+
# @return [Types::ArchiveMetricResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
500
|
+
#
|
|
501
|
+
# * {Types::ArchiveMetricResponse#app_id #app_id} => String
|
|
502
|
+
# * {Types::ArchiveMetricResponse#metric_id #metric_id} => String
|
|
503
|
+
#
|
|
504
|
+
# @example Request syntax with placeholder values
|
|
505
|
+
#
|
|
506
|
+
# resp = client.archive_metric({
|
|
507
|
+
# app_id: "AppId", # required
|
|
508
|
+
# metric_id: "MetricId", # required
|
|
509
|
+
# })
|
|
510
|
+
#
|
|
511
|
+
# @example Response structure
|
|
512
|
+
#
|
|
513
|
+
# resp.app_id #=> String
|
|
514
|
+
# resp.metric_id #=> String
|
|
515
|
+
#
|
|
516
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/ArchiveMetric AWS API Documentation
|
|
517
|
+
#
|
|
518
|
+
# @overload archive_metric(params = {})
|
|
519
|
+
# @param [Hash] params ({})
|
|
520
|
+
def archive_metric(params = {}, options = {})
|
|
521
|
+
req = build_request(:archive_metric, params)
|
|
522
|
+
req.send_request(options)
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
# Archives a plan, removing it from the app's draft configuration so
|
|
526
|
+
# that it can no longer be subscribed to. The removal takes effect on
|
|
527
|
+
# the next call to PublishDraft. Existing subscriptions to the plan are
|
|
528
|
+
# unaffected, and the plan's display name is freed for reuse. The
|
|
529
|
+
# plan's included quotas are removed with it.
|
|
530
|
+
#
|
|
531
|
+
# @option params [required, String] :app_id
|
|
532
|
+
# The ID of the app.
|
|
533
|
+
#
|
|
534
|
+
# @option params [required, String] :plan_id
|
|
535
|
+
# The identifier of the plan. We generate this value when you create the
|
|
536
|
+
# plan. It is unique within the app and is never reused. Treat it as
|
|
537
|
+
# opaque.
|
|
538
|
+
#
|
|
539
|
+
# @return [Types::ArchivePlanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
540
|
+
#
|
|
541
|
+
# * {Types::ArchivePlanResponse#app_id #app_id} => String
|
|
542
|
+
# * {Types::ArchivePlanResponse#plan_id #plan_id} => String
|
|
543
|
+
#
|
|
544
|
+
# @example Request syntax with placeholder values
|
|
545
|
+
#
|
|
546
|
+
# resp = client.archive_plan({
|
|
547
|
+
# app_id: "AppId", # required
|
|
548
|
+
# plan_id: "PlanId", # required
|
|
549
|
+
# })
|
|
550
|
+
#
|
|
551
|
+
# @example Response structure
|
|
552
|
+
#
|
|
553
|
+
# resp.app_id #=> String
|
|
554
|
+
# resp.plan_id #=> String
|
|
555
|
+
#
|
|
556
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/ArchivePlan AWS API Documentation
|
|
557
|
+
#
|
|
558
|
+
# @overload archive_plan(params = {})
|
|
559
|
+
# @param [Hash] params ({})
|
|
560
|
+
def archive_plan(params = {}, options = {})
|
|
561
|
+
req = build_request(:archive_plan, params)
|
|
562
|
+
req.send_request(options)
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
# Cancels a user's subscription at the end of the current billing
|
|
566
|
+
# period.
|
|
567
|
+
#
|
|
568
|
+
# @option params [required, String] :app_id
|
|
569
|
+
# The ID of the app.
|
|
570
|
+
#
|
|
571
|
+
# @option params [required, String] :user_id
|
|
572
|
+
# An opaque identifier that you assign to an end user. Do not include
|
|
573
|
+
# personally identifiable or otherwise sensitive data in this value.
|
|
574
|
+
#
|
|
575
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :effective_at
|
|
576
|
+
# The subscription's current effective time, as returned by
|
|
577
|
+
# GetSubscription, used as an optimistic-concurrency check. If
|
|
578
|
+
# GetSubscription returns a pending change, pass
|
|
579
|
+
# `pendingChange.effectiveAt`; otherwise pass
|
|
580
|
+
# `subscription.effectiveAt`. This value does not choose when the
|
|
581
|
+
# cancellation takes effect: a new cancellation takes effect at the end
|
|
582
|
+
# of the current billing period, returned as `cancellationEffectiveAt`.
|
|
583
|
+
# If the subscription's effective time has changed since you read it
|
|
584
|
+
# (for example, because another plan change was made), the value no
|
|
585
|
+
# longer matches and the request fails with ConflictException; call
|
|
586
|
+
# GetSubscription again and retry with the new value. If the
|
|
587
|
+
# subscription is already cancelled or a cancellation is already
|
|
588
|
+
# scheduled, the request returns its current state and does not compare
|
|
589
|
+
# this value.
|
|
590
|
+
#
|
|
591
|
+
# @option params [required, String] :scope
|
|
592
|
+
# Required. The environment: live or sandbox.
|
|
593
|
+
#
|
|
594
|
+
# @return [Types::CancelSubscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
595
|
+
#
|
|
596
|
+
# * {Types::CancelSubscriptionResponse#subscription #subscription} => Types::Subscription
|
|
597
|
+
# * {Types::CancelSubscriptionResponse#cancellation_effective_at #cancellation_effective_at} => Time
|
|
598
|
+
#
|
|
599
|
+
# @example Request syntax with placeholder values
|
|
600
|
+
#
|
|
601
|
+
# resp = client.cancel_subscription({
|
|
602
|
+
# app_id: "AppId", # required
|
|
603
|
+
# user_id: "UserId", # required
|
|
604
|
+
# effective_at: Time.now, # required
|
|
605
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
606
|
+
# })
|
|
607
|
+
#
|
|
608
|
+
# @example Response structure
|
|
609
|
+
#
|
|
610
|
+
# resp.subscription.app_id #=> String
|
|
611
|
+
# resp.subscription.user_id #=> String
|
|
612
|
+
# resp.subscription.plan_id #=> String
|
|
613
|
+
# resp.subscription.effective_at #=> Time
|
|
614
|
+
# resp.subscription.billing_anchor_date #=> Time
|
|
615
|
+
# resp.subscription.billing_cycle #=> String, one of "MONTHLY", "ANNUAL", "ONE_TIME"
|
|
616
|
+
# resp.cancellation_effective_at #=> Time
|
|
617
|
+
#
|
|
618
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/CancelSubscription AWS API Documentation
|
|
619
|
+
#
|
|
620
|
+
# @overload cancel_subscription(params = {})
|
|
621
|
+
# @param [Hash] params ({})
|
|
622
|
+
def cancel_subscription(params = {}, options = {})
|
|
623
|
+
req = build_request(:cancel_subscription, params)
|
|
624
|
+
req.send_request(options)
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
# Creates an app. AWS App Monetization assigns a unique app identifier.
|
|
628
|
+
# This operation is idempotent: a repeated request with the same
|
|
629
|
+
# clientToken returns the app created by the original request.
|
|
630
|
+
#
|
|
631
|
+
# @option params [required, String] :name
|
|
632
|
+
# A human-readable display name for the app.
|
|
633
|
+
#
|
|
634
|
+
# @option params [String] :description
|
|
635
|
+
# A longer description of what the app does.
|
|
636
|
+
#
|
|
637
|
+
# @option params [String] :client_token
|
|
638
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
639
|
+
# completes no more than one time. If this token matches a previous
|
|
640
|
+
# request, the service ignores the request, but does not return an
|
|
641
|
+
# error.
|
|
642
|
+
#
|
|
643
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
644
|
+
# not need to pass this option.**
|
|
645
|
+
#
|
|
646
|
+
# @option params [Hash<String,String>] :tags
|
|
647
|
+
# Optional tags to add to the app when it is created. To add tags when
|
|
648
|
+
# you create the app, you must also have permission for
|
|
649
|
+
# appmonetization:TagResource.
|
|
650
|
+
#
|
|
651
|
+
# @option params [Types::CostTrackingConfiguration] :cost_tracking
|
|
652
|
+
# Optional cost-tracking configuration: the IAM role AWS App
|
|
653
|
+
# Monetization uses to track this app's AWS costs. To pass a role, you
|
|
654
|
+
# must have permission for iam:PassRole on it.
|
|
655
|
+
#
|
|
656
|
+
# @return [Types::CreateAppResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
657
|
+
#
|
|
658
|
+
# * {Types::CreateAppResponse#app #app} => Types::App
|
|
659
|
+
#
|
|
660
|
+
# @example Request syntax with placeholder values
|
|
661
|
+
#
|
|
662
|
+
# resp = client.create_app({
|
|
663
|
+
# name: "AppName", # required
|
|
664
|
+
# description: "AppDescription",
|
|
665
|
+
# client_token: "ClientToken",
|
|
666
|
+
# tags: {
|
|
667
|
+
# "TagKey" => "TagValue",
|
|
668
|
+
# },
|
|
669
|
+
# cost_tracking: {
|
|
670
|
+
# role_arn: "CostTrackingRoleArn", # required
|
|
671
|
+
# },
|
|
672
|
+
# })
|
|
673
|
+
#
|
|
674
|
+
# @example Response structure
|
|
675
|
+
#
|
|
676
|
+
# resp.app.app_id #=> String
|
|
677
|
+
# resp.app.name #=> String
|
|
678
|
+
# resp.app.description #=> String
|
|
679
|
+
# resp.app.status #=> String, one of "ACTIVE", "DELETED"
|
|
680
|
+
# resp.app.created_at #=> Time
|
|
681
|
+
# resp.app.arn #=> String
|
|
682
|
+
#
|
|
683
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/CreateApp AWS API Documentation
|
|
684
|
+
#
|
|
685
|
+
# @overload create_app(params = {})
|
|
686
|
+
# @param [Hash] params ({})
|
|
687
|
+
def create_app(params = {}, options = {})
|
|
688
|
+
req = build_request(:create_app, params)
|
|
689
|
+
req.send_request(options)
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
# Creates a hosted URL that an app owner uses to register payment and
|
|
693
|
+
# tax details.
|
|
694
|
+
#
|
|
695
|
+
# @option params [required, String] :app_id
|
|
696
|
+
# The ID of the app being registered for payment.
|
|
697
|
+
#
|
|
698
|
+
# @option params [String] :legal_name
|
|
699
|
+
# Your registered legal name.
|
|
700
|
+
#
|
|
701
|
+
# @option params [Types::DeveloperAddress] :developer_address
|
|
702
|
+
# Your business address.
|
|
703
|
+
#
|
|
704
|
+
# @option params [String] :tax_registration_number
|
|
705
|
+
# Your tax registration number (for example, VAT, GST, or EIN).
|
|
706
|
+
#
|
|
707
|
+
# @option params [String] :business_type
|
|
708
|
+
# Whether the seller is an individual or a registered business.
|
|
709
|
+
#
|
|
710
|
+
# @option params [String] :email
|
|
711
|
+
# Your primary contact email for this registration, distinct from
|
|
712
|
+
# supportEmail (the address shown to customers). If you omit it, AWS App
|
|
713
|
+
# Monetization uses supportEmail.
|
|
714
|
+
#
|
|
715
|
+
# @option params [String] :support_email
|
|
716
|
+
# Your support email address, displayed in the invoice footer.
|
|
717
|
+
#
|
|
718
|
+
# @option params [String] :display_name
|
|
719
|
+
# Customer-facing name (doing-business-as) shown to buyers on invoices,
|
|
720
|
+
# distinct from legalName.
|
|
721
|
+
#
|
|
722
|
+
# @option params [String] :support_phone
|
|
723
|
+
# Customer-facing support phone number shown to buyers on invoices.
|
|
724
|
+
#
|
|
725
|
+
# @option params [String, StringIO, File] :invoice_logo
|
|
726
|
+
# Logo printed on the seller's invoices: raw PNG or JPEG bytes, up to
|
|
727
|
+
# 100 KiB. The image type is detected from the bytes. Write-only: the
|
|
728
|
+
# logo is not returned by GetAppPaymentRegistration.
|
|
729
|
+
#
|
|
730
|
+
# @option params [Array<Types::TaxRegistration>] :tax_registrations
|
|
731
|
+
# The jurisdictions where the seller is registered to collect tax.
|
|
732
|
+
#
|
|
733
|
+
# @option params [required, String] :return_url
|
|
734
|
+
# The URL the seller's browser is redirected to after completing hosted
|
|
735
|
+
# registration.
|
|
736
|
+
#
|
|
737
|
+
# @option params [required, String] :refresh_url
|
|
738
|
+
# The URL the seller's browser is redirected to if the hosted
|
|
739
|
+
# registration session expires.
|
|
740
|
+
#
|
|
741
|
+
# @option params [String] :client_token
|
|
742
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
743
|
+
# completes no more than one time.
|
|
744
|
+
#
|
|
745
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
746
|
+
# not need to pass this option.**
|
|
747
|
+
#
|
|
748
|
+
# @option params [required, String] :scope
|
|
749
|
+
# Required. The environment: live or sandbox.
|
|
750
|
+
#
|
|
751
|
+
# @return [Types::CreateAppPaymentRegistrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
752
|
+
#
|
|
753
|
+
# * {Types::CreateAppPaymentRegistrationResponse#registration_url #registration_url} => String
|
|
754
|
+
# * {Types::CreateAppPaymentRegistrationResponse#expires_at #expires_at} => Time
|
|
755
|
+
#
|
|
756
|
+
# @example Request syntax with placeholder values
|
|
757
|
+
#
|
|
758
|
+
# resp = client.create_app_payment_registration({
|
|
759
|
+
# app_id: "AppId", # required
|
|
760
|
+
# legal_name: "LegalName",
|
|
761
|
+
# developer_address: {
|
|
762
|
+
# street1: "AddressLine", # required
|
|
763
|
+
# street2: "AddressLine",
|
|
764
|
+
# city: "AddressCity", # required
|
|
765
|
+
# state: "AddressState", # required
|
|
766
|
+
# postal_code: "PostalCode", # required
|
|
767
|
+
# country: "CountryCode", # required
|
|
768
|
+
# },
|
|
769
|
+
# tax_registration_number: "TaxRegistrationNumber",
|
|
770
|
+
# business_type: "INDIVIDUAL", # accepts INDIVIDUAL, REGISTERED_BUSINESS
|
|
771
|
+
# email: "Email",
|
|
772
|
+
# support_email: "Email",
|
|
773
|
+
# display_name: "SellerDisplayName",
|
|
774
|
+
# support_phone: "SupportPhone",
|
|
775
|
+
# invoice_logo: "data",
|
|
776
|
+
# tax_registrations: [
|
|
777
|
+
# {
|
|
778
|
+
# country_code: "CountryCode", # required
|
|
779
|
+
# state: "AddressState",
|
|
780
|
+
# collection_type: "TaxCollectionType", # required
|
|
781
|
+
# registration_type: "SALES_USE", # accepts SALES_USE, RETAIL_DELIVERY_FEE, VAT, VAT_OSS, VAT_IOSS, GST, FEDERAL_EIN, CPF, CNPJ, SST, TIN, NIP, NPWP, NCID
|
|
782
|
+
# registration_id: "TaxRegistrationId",
|
|
783
|
+
# locality: "TaxLocalityCode",
|
|
784
|
+
# },
|
|
785
|
+
# ],
|
|
786
|
+
# return_url: "Url", # required
|
|
787
|
+
# refresh_url: "Url", # required
|
|
788
|
+
# client_token: "ClientToken",
|
|
789
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
790
|
+
# })
|
|
791
|
+
#
|
|
792
|
+
# @example Response structure
|
|
793
|
+
#
|
|
794
|
+
# resp.registration_url #=> String
|
|
795
|
+
# resp.expires_at #=> Time
|
|
796
|
+
#
|
|
797
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/CreateAppPaymentRegistration AWS API Documentation
|
|
798
|
+
#
|
|
799
|
+
# @overload create_app_payment_registration(params = {})
|
|
800
|
+
# @param [Hash] params ({})
|
|
801
|
+
def create_app_payment_registration(params = {}, options = {})
|
|
802
|
+
req = build_request(:create_app_payment_registration, params)
|
|
803
|
+
req.send_request(options)
|
|
804
|
+
end
|
|
805
|
+
|
|
806
|
+
# Opens the AWS App Monetization hosted customer billing portal for a
|
|
807
|
+
# user. This operation returns the billing portal URL that your
|
|
808
|
+
# application redirects the user's browser to. No state is persisted.
|
|
809
|
+
#
|
|
810
|
+
# @option params [required, String] :app_id
|
|
811
|
+
# The ID of the app the portal is for.
|
|
812
|
+
#
|
|
813
|
+
# @option params [required, String] :user_id
|
|
814
|
+
# The ID of the end user the portal is for. Do not include personally
|
|
815
|
+
# identifiable or otherwise sensitive data in this value.
|
|
816
|
+
#
|
|
817
|
+
# @option params [required, String] :return_url
|
|
818
|
+
# A URL in your app. A plan checkout started from the portal doesn't
|
|
819
|
+
# redirect here: after payment, the buyer returns to the portal's My
|
|
820
|
+
# subscription page. Bound into the session and reused for every
|
|
821
|
+
# checkout the buyer launches from the portal.
|
|
822
|
+
#
|
|
823
|
+
# @option params [required, String] :refresh_url
|
|
824
|
+
# A URL in your app. A plan checkout started from the portal doesn't
|
|
825
|
+
# redirect here: if the buyer cancels, they return to the portal's
|
|
826
|
+
# plans page. Bound into the session alongside returnUrl.
|
|
827
|
+
#
|
|
828
|
+
# @option params [Integer] :session_duration_seconds
|
|
829
|
+
# The lifetime of the hosted session, in seconds, counted from this
|
|
830
|
+
# call. Omit to use the service default. It does not set how long
|
|
831
|
+
# billingPortalUrl works; see expiresAt.
|
|
832
|
+
#
|
|
833
|
+
# @option params [String] :client_token
|
|
834
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
835
|
+
# completes no more than one time. If this token matches a previous
|
|
836
|
+
# request, the service ignores the request but does not return an error.
|
|
837
|
+
#
|
|
838
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
839
|
+
# not need to pass this option.**
|
|
840
|
+
#
|
|
841
|
+
# @option params [required, String] :scope
|
|
842
|
+
# Required. The environment: live or sandbox.
|
|
843
|
+
#
|
|
844
|
+
# @return [Types::CreateBillingPortalSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
845
|
+
#
|
|
846
|
+
# * {Types::CreateBillingPortalSessionResponse#billing_portal_url #billing_portal_url} => String
|
|
847
|
+
# * {Types::CreateBillingPortalSessionResponse#session_token #session_token} => String
|
|
848
|
+
# * {Types::CreateBillingPortalSessionResponse#expires_at #expires_at} => Time
|
|
849
|
+
# * {Types::CreateBillingPortalSessionResponse#manage_token #manage_token} => String
|
|
850
|
+
#
|
|
851
|
+
# @example Request syntax with placeholder values
|
|
852
|
+
#
|
|
853
|
+
# resp = client.create_billing_portal_session({
|
|
854
|
+
# app_id: "AppId", # required
|
|
855
|
+
# user_id: "UserId", # required
|
|
856
|
+
# return_url: "Url", # required
|
|
857
|
+
# refresh_url: "Url", # required
|
|
858
|
+
# session_duration_seconds: 1,
|
|
859
|
+
# client_token: "ClientToken",
|
|
860
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
861
|
+
# })
|
|
862
|
+
#
|
|
863
|
+
# @example Response structure
|
|
864
|
+
#
|
|
865
|
+
# resp.billing_portal_url #=> String
|
|
866
|
+
# resp.session_token #=> String
|
|
867
|
+
# resp.expires_at #=> Time
|
|
868
|
+
# resp.manage_token #=> String
|
|
869
|
+
#
|
|
870
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/CreateBillingPortalSession AWS API Documentation
|
|
871
|
+
#
|
|
872
|
+
# @overload create_billing_portal_session(params = {})
|
|
873
|
+
# @param [Hash] params ({})
|
|
874
|
+
def create_billing_portal_session(params = {}, options = {})
|
|
875
|
+
req = build_request(:create_billing_portal_session, params)
|
|
876
|
+
req.send_request(options)
|
|
877
|
+
end
|
|
878
|
+
|
|
879
|
+
# Creates a usage metric definition for an app. A metric beyond the
|
|
880
|
+
# Metrics per app quota is refused with ServiceQuotaExceededException.
|
|
881
|
+
#
|
|
882
|
+
# @option params [required, String] :app_id
|
|
883
|
+
# The ID of the app the metric belongs to.
|
|
884
|
+
#
|
|
885
|
+
# @option params [required, String] :name
|
|
886
|
+
# A human-readable display name for the metric (for example, `Riddles
|
|
887
|
+
# Solved`).
|
|
888
|
+
#
|
|
889
|
+
# @option params [required, String] :description
|
|
890
|
+
# A description of what the metric measures.
|
|
891
|
+
#
|
|
892
|
+
# @option params [required, String] :event_type
|
|
893
|
+
# The event type this metric aggregates. Must match the eventType sent
|
|
894
|
+
# on PutEvent.
|
|
895
|
+
#
|
|
896
|
+
# @option params [required, String] :unit_name
|
|
897
|
+
# The unit of measure for the metric (for example, "requests" or
|
|
898
|
+
# "tokens").
|
|
899
|
+
#
|
|
900
|
+
# @option params [required, Types::MetricDefinition] :definition
|
|
901
|
+
# The aggregation definition: filters, aggregation function, grouping,
|
|
902
|
+
# and period.
|
|
903
|
+
#
|
|
904
|
+
# @option params [String] :client_token
|
|
905
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
906
|
+
# completes no more than one time. If this token matches a previous
|
|
907
|
+
# request, the service ignores the request but does not return an error.
|
|
908
|
+
#
|
|
909
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
910
|
+
# not need to pass this option.**
|
|
911
|
+
#
|
|
912
|
+
# @option params [Hash<String,String>] :tags
|
|
913
|
+
# Optional tags to add to the metric when it is created. Tagging on
|
|
914
|
+
# create also requires permission for appmonetization:TagResource.
|
|
915
|
+
#
|
|
916
|
+
# @return [Types::CreateMetricResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
917
|
+
#
|
|
918
|
+
# * {Types::CreateMetricResponse#metric #metric} => Types::Metric
|
|
919
|
+
#
|
|
920
|
+
# @example Request syntax with placeholder values
|
|
921
|
+
#
|
|
922
|
+
# resp = client.create_metric({
|
|
923
|
+
# app_id: "AppId", # required
|
|
924
|
+
# name: "MetricDisplayName", # required
|
|
925
|
+
# description: "MetricDescription", # required
|
|
926
|
+
# event_type: "SourceEventType", # required
|
|
927
|
+
# unit_name: "UnitName", # required
|
|
928
|
+
# definition: { # required
|
|
929
|
+
# filters: [ # required
|
|
930
|
+
# {
|
|
931
|
+
# field: "IdentifierField", # required
|
|
932
|
+
# operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS, IN, NOT_IN
|
|
933
|
+
# values: ["FilterValueListMemberString"], # required
|
|
934
|
+
# },
|
|
935
|
+
# ],
|
|
936
|
+
# function: "SUM", # required, accepts SUM, COUNT, MAX
|
|
937
|
+
# function_field: "IdentifierField",
|
|
938
|
+
# group_by: ["IdentifierField"], # required
|
|
939
|
+
# period: "MONTHLY", # required, accepts MONTHLY
|
|
940
|
+
# },
|
|
941
|
+
# client_token: "ClientToken",
|
|
942
|
+
# tags: {
|
|
943
|
+
# "TagKey" => "TagValue",
|
|
944
|
+
# },
|
|
945
|
+
# })
|
|
946
|
+
#
|
|
947
|
+
# @example Response structure
|
|
948
|
+
#
|
|
949
|
+
# resp.metric.app_id #=> String
|
|
950
|
+
# resp.metric.metric_id #=> String
|
|
951
|
+
# resp.metric.name #=> String
|
|
952
|
+
# resp.metric.description #=> String
|
|
953
|
+
# resp.metric.event_type #=> String
|
|
954
|
+
# resp.metric.unit_name #=> String
|
|
955
|
+
# resp.metric.definition.filters #=> Array
|
|
956
|
+
# resp.metric.definition.filters[0].field #=> String
|
|
957
|
+
# resp.metric.definition.filters[0].operator #=> String, one of "EQUALS", "NOT_EQUALS", "IN", "NOT_IN"
|
|
958
|
+
# resp.metric.definition.filters[0].values #=> Array
|
|
959
|
+
# resp.metric.definition.filters[0].values[0] #=> String
|
|
960
|
+
# resp.metric.definition.function #=> String, one of "SUM", "COUNT", "MAX"
|
|
961
|
+
# resp.metric.definition.function_field #=> String
|
|
962
|
+
# resp.metric.definition.group_by #=> Array
|
|
963
|
+
# resp.metric.definition.group_by[0] #=> String
|
|
964
|
+
# resp.metric.definition.period #=> String, one of "MONTHLY"
|
|
965
|
+
# resp.metric.arn #=> String
|
|
966
|
+
# resp.metric.stage #=> String, one of "DRAFT", "PUBLISHED"
|
|
967
|
+
#
|
|
968
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/CreateMetric AWS API Documentation
|
|
969
|
+
#
|
|
970
|
+
# @overload create_metric(params = {})
|
|
971
|
+
# @param [Hash] params ({})
|
|
972
|
+
def create_metric(params = {}, options = {})
|
|
973
|
+
req = build_request(:create_metric, params)
|
|
974
|
+
req.send_request(options)
|
|
975
|
+
end
|
|
976
|
+
|
|
977
|
+
# Creates a checkout session for a one-time purchase of usage packs or
|
|
978
|
+
# add-ons against the user's current subscription, or against the app
|
|
979
|
+
# when the user has no subscription. A one-time purchase always requires
|
|
980
|
+
# payment, so the response returns a checkout URL and a checkout session
|
|
981
|
+
# identifier. To subscribe a user to a plan or change the user's plan,
|
|
982
|
+
# use CreateSubscriptionCheckoutSession.
|
|
983
|
+
#
|
|
984
|
+
# @option params [required, String] :app_id
|
|
985
|
+
# The ID of the app the purchase is for.
|
|
986
|
+
#
|
|
987
|
+
# @option params [required, String] :user_id
|
|
988
|
+
# The ID of the end user making the purchase. Do not include personally
|
|
989
|
+
# identifiable or otherwise sensitive data in this value.
|
|
990
|
+
#
|
|
991
|
+
# @option params [required, Array<Types::CheckoutItem>] :items
|
|
992
|
+
# The purchasables to buy. Each line is a usage pack or add-on and the
|
|
993
|
+
# number of units to buy.
|
|
994
|
+
#
|
|
995
|
+
# @option params [required, String] :return_url
|
|
996
|
+
# The URL the buyer's browser is sent to after they complete payment at
|
|
997
|
+
# checkout (the checkout page's success-redirect target). A one-time
|
|
998
|
+
# purchase always requires payment, so there is no cancel-redirect field
|
|
999
|
+
# on this operation.
|
|
1000
|
+
#
|
|
1001
|
+
# @option params [String] :client_token
|
|
1002
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
1003
|
+
# completes no more than one time. If this token matches a previous
|
|
1004
|
+
# request, the service ignores the request but does not return an error.
|
|
1005
|
+
#
|
|
1006
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
1007
|
+
# not need to pass this option.**
|
|
1008
|
+
#
|
|
1009
|
+
# @option params [required, String] :scope
|
|
1010
|
+
# Required. The environment: live or sandbox.
|
|
1011
|
+
#
|
|
1012
|
+
# @return [Types::CreateOneTimeCheckoutSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1013
|
+
#
|
|
1014
|
+
# * {Types::CreateOneTimeCheckoutSessionResponse#checkout_url #checkout_url} => String
|
|
1015
|
+
# * {Types::CreateOneTimeCheckoutSessionResponse#expires_at #expires_at} => Time
|
|
1016
|
+
# * {Types::CreateOneTimeCheckoutSessionResponse#checkout_session_id #checkout_session_id} => String
|
|
1017
|
+
#
|
|
1018
|
+
# @example Request syntax with placeholder values
|
|
1019
|
+
#
|
|
1020
|
+
# resp = client.create_one_time_checkout_session({
|
|
1021
|
+
# app_id: "AppId", # required
|
|
1022
|
+
# user_id: "UserId", # required
|
|
1023
|
+
# items: [ # required
|
|
1024
|
+
# {
|
|
1025
|
+
# one_time_price_id: "OneTimePriceId", # required
|
|
1026
|
+
# quantity: 1,
|
|
1027
|
+
# },
|
|
1028
|
+
# ],
|
|
1029
|
+
# return_url: "Url", # required
|
|
1030
|
+
# client_token: "ClientToken",
|
|
1031
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
1032
|
+
# })
|
|
1033
|
+
#
|
|
1034
|
+
# @example Response structure
|
|
1035
|
+
#
|
|
1036
|
+
# resp.checkout_url #=> String
|
|
1037
|
+
# resp.expires_at #=> Time
|
|
1038
|
+
# resp.checkout_session_id #=> String
|
|
1039
|
+
#
|
|
1040
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/CreateOneTimeCheckoutSession AWS API Documentation
|
|
1041
|
+
#
|
|
1042
|
+
# @overload create_one_time_checkout_session(params = {})
|
|
1043
|
+
# @param [Hash] params ({})
|
|
1044
|
+
def create_one_time_checkout_session(params = {}, options = {})
|
|
1045
|
+
req = build_request(:create_one_time_checkout_session, params)
|
|
1046
|
+
req.send_request(options)
|
|
1047
|
+
end
|
|
1048
|
+
|
|
1049
|
+
# Creates a one-time price for an app. The one-time price exists on the
|
|
1050
|
+
# draft (DRAFT) offering until published.
|
|
1051
|
+
#
|
|
1052
|
+
# @option params [required, String] :app_id
|
|
1053
|
+
# The ID of the app the one-time price belongs to.
|
|
1054
|
+
#
|
|
1055
|
+
# @option params [required, Types::OneTimePriceDefinition] :definition
|
|
1056
|
+
# The definition of the one-time price to create, including its display
|
|
1057
|
+
# name, price, metric, and credited capacity.
|
|
1058
|
+
#
|
|
1059
|
+
# @option params [String] :client_token
|
|
1060
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
1061
|
+
# completes no more than one time. If this token matches a previous
|
|
1062
|
+
# request, the service ignores the request but does not return an error.
|
|
1063
|
+
#
|
|
1064
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
1065
|
+
# not need to pass this option.**
|
|
1066
|
+
#
|
|
1067
|
+
# @option params [Hash<String,String>] :tags
|
|
1068
|
+
# Optional tags to add to the one-time price when it is created. Tagging
|
|
1069
|
+
# on create also requires permission for appmonetization:TagResource.
|
|
1070
|
+
#
|
|
1071
|
+
# @return [Types::CreateOneTimePriceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1072
|
+
#
|
|
1073
|
+
# * {Types::CreateOneTimePriceResponse#one_time_price #one_time_price} => Types::OneTimePrice
|
|
1074
|
+
#
|
|
1075
|
+
# @example Request syntax with placeholder values
|
|
1076
|
+
#
|
|
1077
|
+
# resp = client.create_one_time_price({
|
|
1078
|
+
# app_id: "AppId", # required
|
|
1079
|
+
# definition: { # required
|
|
1080
|
+
# name: "DisplayName", # required
|
|
1081
|
+
# price: { # required
|
|
1082
|
+
# currency_code: "CurrencyCode", # required
|
|
1083
|
+
# amount: "PriceAmount", # required
|
|
1084
|
+
# },
|
|
1085
|
+
# metric_id: "MetricId", # required
|
|
1086
|
+
# capacity: 1, # required
|
|
1087
|
+
# },
|
|
1088
|
+
# client_token: "ClientToken",
|
|
1089
|
+
# tags: {
|
|
1090
|
+
# "TagKey" => "TagValue",
|
|
1091
|
+
# },
|
|
1092
|
+
# })
|
|
1093
|
+
#
|
|
1094
|
+
# @example Response structure
|
|
1095
|
+
#
|
|
1096
|
+
# resp.one_time_price.arn #=> String
|
|
1097
|
+
# resp.one_time_price.app_id #=> String
|
|
1098
|
+
# resp.one_time_price.one_time_price_id #=> String
|
|
1099
|
+
# resp.one_time_price.definition.name #=> String
|
|
1100
|
+
# resp.one_time_price.definition.price.currency_code #=> String
|
|
1101
|
+
# resp.one_time_price.definition.price.amount #=> String
|
|
1102
|
+
# resp.one_time_price.definition.metric_id #=> String
|
|
1103
|
+
# resp.one_time_price.definition.capacity #=> Integer
|
|
1104
|
+
# resp.one_time_price.stage #=> String, one of "DRAFT", "PUBLISHED"
|
|
1105
|
+
#
|
|
1106
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/CreateOneTimePrice AWS API Documentation
|
|
1107
|
+
#
|
|
1108
|
+
# @overload create_one_time_price(params = {})
|
|
1109
|
+
# @param [Hash] params ({})
|
|
1110
|
+
def create_one_time_price(params = {}, options = {})
|
|
1111
|
+
req = build_request(:create_one_time_price, params)
|
|
1112
|
+
req.send_request(options)
|
|
1113
|
+
end
|
|
1114
|
+
|
|
1115
|
+
# Creates a pricing plan for an app. The plan's identifier is not
|
|
1116
|
+
# supplied in the request; AWS App Monetization mints a server-generated
|
|
1117
|
+
# planId and returns it on the created plan. The new plan exists on the
|
|
1118
|
+
# draft (DRAFT) offering until it is published with PublishDraft.
|
|
1119
|
+
#
|
|
1120
|
+
# @option params [required, String] :app_id
|
|
1121
|
+
# The ID of the app the plan belongs to.
|
|
1122
|
+
#
|
|
1123
|
+
# @option params [required, Types::PlanDefinition] :definition
|
|
1124
|
+
# The pricing and packaging definition for the plan. The plan's
|
|
1125
|
+
# identifier is not supplied here: CreatePlan mints a server-generated
|
|
1126
|
+
# planId and returns it on the created plan.
|
|
1127
|
+
#
|
|
1128
|
+
# @option params [String] :client_token
|
|
1129
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
1130
|
+
# completes no more than one time. If this token matches a previous
|
|
1131
|
+
# request, the service ignores the request but does not return an error.
|
|
1132
|
+
#
|
|
1133
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
1134
|
+
# not need to pass this option.**
|
|
1135
|
+
#
|
|
1136
|
+
# @option params [Hash<String,String>] :tags
|
|
1137
|
+
# Optional tags to add to the plan when it is created. Tagging on create
|
|
1138
|
+
# also requires permission for appmonetization:TagResource.
|
|
1139
|
+
#
|
|
1140
|
+
# @return [Types::CreatePlanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1141
|
+
#
|
|
1142
|
+
# * {Types::CreatePlanResponse#plan #plan} => Types::Plan
|
|
1143
|
+
#
|
|
1144
|
+
# @example Request syntax with placeholder values
|
|
1145
|
+
#
|
|
1146
|
+
# resp = client.create_plan({
|
|
1147
|
+
# app_id: "AppId", # required
|
|
1148
|
+
# definition: { # required
|
|
1149
|
+
# name: "DisplayName", # required
|
|
1150
|
+
# description: "Description",
|
|
1151
|
+
# billing_cycle: "MONTHLY", # required, accepts MONTHLY, ANNUAL, ONE_TIME
|
|
1152
|
+
# subscription_price: { # required
|
|
1153
|
+
# currency_code: "CurrencyCode", # required
|
|
1154
|
+
# amount: "PriceAmount", # required
|
|
1155
|
+
# },
|
|
1156
|
+
# included_quotas: {
|
|
1157
|
+
# "MetricId" => {
|
|
1158
|
+
# flat: {
|
|
1159
|
+
# included_quantity: 1, # required
|
|
1160
|
+
# overage_policy: "NO_OVERAGE_THROTTLE", # accepts NO_OVERAGE_THROTTLE, APPLY_FIXED_OVERAGE, APPLY_TIERED_OVERAGE
|
|
1161
|
+
# overage_price: {
|
|
1162
|
+
# currency_code: "CurrencyCode", # required
|
|
1163
|
+
# amount: "PriceAmount", # required
|
|
1164
|
+
# },
|
|
1165
|
+
# tiered_overage: {
|
|
1166
|
+
# semantics: "GRADUATED", # required, accepts GRADUATED, VOLUME
|
|
1167
|
+
# tiers: [ # required
|
|
1168
|
+
# {
|
|
1169
|
+
# first_unit: 1, # required
|
|
1170
|
+
# last_unit: 1,
|
|
1171
|
+
# unit_price: { # required
|
|
1172
|
+
# currency_code: "CurrencyCode", # required
|
|
1173
|
+
# amount: "PriceAmount", # required
|
|
1174
|
+
# },
|
|
1175
|
+
# },
|
|
1176
|
+
# ],
|
|
1177
|
+
# },
|
|
1178
|
+
# max_quantity: 1,
|
|
1179
|
+
# },
|
|
1180
|
+
# tiered: {
|
|
1181
|
+
# included_quantity: 1, # required
|
|
1182
|
+
# tiered_price: { # required
|
|
1183
|
+
# semantics: "GRADUATED", # required, accepts GRADUATED, VOLUME
|
|
1184
|
+
# tiers: [ # required
|
|
1185
|
+
# {
|
|
1186
|
+
# first_unit: 1, # required
|
|
1187
|
+
# last_unit: 1,
|
|
1188
|
+
# unit_price: { # required
|
|
1189
|
+
# currency_code: "CurrencyCode", # required
|
|
1190
|
+
# amount: "PriceAmount", # required
|
|
1191
|
+
# },
|
|
1192
|
+
# },
|
|
1193
|
+
# ],
|
|
1194
|
+
# },
|
|
1195
|
+
# max_quantity: 1,
|
|
1196
|
+
# },
|
|
1197
|
+
# },
|
|
1198
|
+
# },
|
|
1199
|
+
# tax_code: "ProductTaxCode",
|
|
1200
|
+
# payment_failure_policy: {
|
|
1201
|
+
# retry_attempts: 1,
|
|
1202
|
+
# retry_window_days: 1,
|
|
1203
|
+
# downgrade_to_plan_id: "PlanId",
|
|
1204
|
+
# },
|
|
1205
|
+
# },
|
|
1206
|
+
# client_token: "ClientToken",
|
|
1207
|
+
# tags: {
|
|
1208
|
+
# "TagKey" => "TagValue",
|
|
1209
|
+
# },
|
|
1210
|
+
# })
|
|
1211
|
+
#
|
|
1212
|
+
# @example Response structure
|
|
1213
|
+
#
|
|
1214
|
+
# resp.plan.app_id #=> String
|
|
1215
|
+
# resp.plan.plan_id #=> String
|
|
1216
|
+
# resp.plan.definition.name #=> String
|
|
1217
|
+
# resp.plan.definition.description #=> String
|
|
1218
|
+
# resp.plan.definition.billing_cycle #=> String, one of "MONTHLY", "ANNUAL", "ONE_TIME"
|
|
1219
|
+
# resp.plan.definition.subscription_price.currency_code #=> String
|
|
1220
|
+
# resp.plan.definition.subscription_price.amount #=> String
|
|
1221
|
+
# resp.plan.definition.included_quotas #=> Hash
|
|
1222
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.included_quantity #=> Integer
|
|
1223
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.overage_policy #=> String, one of "NO_OVERAGE_THROTTLE", "APPLY_FIXED_OVERAGE", "APPLY_TIERED_OVERAGE"
|
|
1224
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.overage_price.currency_code #=> String
|
|
1225
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.overage_price.amount #=> String
|
|
1226
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.semantics #=> String, one of "GRADUATED", "VOLUME"
|
|
1227
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers #=> Array
|
|
1228
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].first_unit #=> Integer
|
|
1229
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].last_unit #=> Integer
|
|
1230
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].unit_price.currency_code #=> String
|
|
1231
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].unit_price.amount #=> String
|
|
1232
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.max_quantity #=> Integer
|
|
1233
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.included_quantity #=> Integer
|
|
1234
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.semantics #=> String, one of "GRADUATED", "VOLUME"
|
|
1235
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers #=> Array
|
|
1236
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].first_unit #=> Integer
|
|
1237
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].last_unit #=> Integer
|
|
1238
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].unit_price.currency_code #=> String
|
|
1239
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].unit_price.amount #=> String
|
|
1240
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.max_quantity #=> Integer
|
|
1241
|
+
# resp.plan.definition.tax_code #=> String
|
|
1242
|
+
# resp.plan.definition.payment_failure_policy.retry_attempts #=> Integer
|
|
1243
|
+
# resp.plan.definition.payment_failure_policy.retry_window_days #=> Integer
|
|
1244
|
+
# resp.plan.definition.payment_failure_policy.downgrade_to_plan_id #=> String
|
|
1245
|
+
# resp.plan.stage #=> String, one of "DRAFT", "PUBLISHED"
|
|
1246
|
+
# resp.plan.created_at #=> Time
|
|
1247
|
+
# resp.plan.updated_at #=> Time
|
|
1248
|
+
# resp.plan.arn #=> String
|
|
1249
|
+
#
|
|
1250
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/CreatePlan AWS API Documentation
|
|
1251
|
+
#
|
|
1252
|
+
# @overload create_plan(params = {})
|
|
1253
|
+
# @param [Hash] params ({})
|
|
1254
|
+
def create_plan(params = {}, options = {})
|
|
1255
|
+
req = build_request(:create_plan, params)
|
|
1256
|
+
req.send_request(options)
|
|
1257
|
+
end
|
|
1258
|
+
|
|
1259
|
+
# Subscribes a user to a plan or changes the user's current plan. The
|
|
1260
|
+
# response returns exactly one outcome: payment is required (a checkout
|
|
1261
|
+
# URL is returned), payment is not required (an effective date is
|
|
1262
|
+
# returned), or, when no plan identifier is provided, plan selection is
|
|
1263
|
+
# required (the hosted pricing page URL is returned). To make a one-time
|
|
1264
|
+
# purchase of usage packs or add-ons, use CreateOneTimeCheckoutSession.
|
|
1265
|
+
#
|
|
1266
|
+
# @option params [required, String] :app_id
|
|
1267
|
+
# The ID of the app the subscription is for.
|
|
1268
|
+
#
|
|
1269
|
+
# @option params [required, String] :user_id
|
|
1270
|
+
# The ID of the end user being subscribed. Do not include personally
|
|
1271
|
+
# identifiable or otherwise sensitive data in this value.
|
|
1272
|
+
#
|
|
1273
|
+
# @option params [String] :plan_id
|
|
1274
|
+
# The plan to subscribe to or change to. Absent to open the hosted
|
|
1275
|
+
# pricing page for the buyer to choose; the response then carries
|
|
1276
|
+
# planSelectionRequired.pricingUrl.
|
|
1277
|
+
#
|
|
1278
|
+
# @option params [required, String] :return_url
|
|
1279
|
+
# The URL the buyer's browser is sent to after they complete payment at
|
|
1280
|
+
# checkout. If the buyer is sent to a hosted checkout page, this is that
|
|
1281
|
+
# page's success-redirect target. If you omit `planId`, the buyer
|
|
1282
|
+
# chooses a plan on a hosted pricing page. After that checkout, the
|
|
1283
|
+
# buyer returns to the hosted pages, not to this URL.
|
|
1284
|
+
#
|
|
1285
|
+
# @option params [required, String] :refresh_url
|
|
1286
|
+
# The URL the buyer's browser is sent to if they cancel or abandon the
|
|
1287
|
+
# hosted checkout page without completing payment (the checkout page's
|
|
1288
|
+
# cancel-redirect target). Point it at a page where the buyer can retry.
|
|
1289
|
+
# If you omit `planId`, the buyer chooses a plan on a hosted pricing
|
|
1290
|
+
# page. After that checkout, the buyer returns to the hosted pages, not
|
|
1291
|
+
# to this URL.
|
|
1292
|
+
#
|
|
1293
|
+
# @option params [Integer] :session_duration_seconds
|
|
1294
|
+
# The lifetime of the hosted session, in seconds, counted from this
|
|
1295
|
+
# call. Omit to use the service default. It does not set how long
|
|
1296
|
+
# pricingUrl works; see expiresAt.
|
|
1297
|
+
#
|
|
1298
|
+
# @option params [String] :client_token
|
|
1299
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
1300
|
+
# completes no more than one time. If this token matches a previous
|
|
1301
|
+
# request, the service ignores the request but does not return an error.
|
|
1302
|
+
#
|
|
1303
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
1304
|
+
# not need to pass this option.**
|
|
1305
|
+
#
|
|
1306
|
+
# @option params [required, String] :scope
|
|
1307
|
+
# Required. The environment: live or sandbox.
|
|
1308
|
+
#
|
|
1309
|
+
# @return [Types::CreateSubscriptionCheckoutSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1310
|
+
#
|
|
1311
|
+
# * {Types::CreateSubscriptionCheckoutSessionResponse#outcome #outcome} => Types::CheckoutOutcome
|
|
1312
|
+
#
|
|
1313
|
+
# @example Request syntax with placeholder values
|
|
1314
|
+
#
|
|
1315
|
+
# resp = client.create_subscription_checkout_session({
|
|
1316
|
+
# app_id: "AppId", # required
|
|
1317
|
+
# user_id: "UserId", # required
|
|
1318
|
+
# plan_id: "PlanId",
|
|
1319
|
+
# return_url: "Url", # required
|
|
1320
|
+
# refresh_url: "Url", # required
|
|
1321
|
+
# session_duration_seconds: 1,
|
|
1322
|
+
# client_token: "ClientToken",
|
|
1323
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
1324
|
+
# })
|
|
1325
|
+
#
|
|
1326
|
+
# @example Response structure
|
|
1327
|
+
#
|
|
1328
|
+
# resp.outcome.payment_required.checkout_url #=> String
|
|
1329
|
+
# resp.outcome.payment_required.expires_at #=> Time
|
|
1330
|
+
# resp.outcome.payment_not_required.effective_at #=> Time
|
|
1331
|
+
# resp.outcome.plan_selection_required.pricing_url #=> String
|
|
1332
|
+
# resp.outcome.plan_selection_required.session_token #=> String
|
|
1333
|
+
# resp.outcome.plan_selection_required.expires_at #=> Time
|
|
1334
|
+
#
|
|
1335
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/CreateSubscriptionCheckoutSession AWS API Documentation
|
|
1336
|
+
#
|
|
1337
|
+
# @overload create_subscription_checkout_session(params = {})
|
|
1338
|
+
# @param [Hash] params ({})
|
|
1339
|
+
def create_subscription_checkout_session(params = {}, options = {})
|
|
1340
|
+
req = build_request(:create_subscription_checkout_session, params)
|
|
1341
|
+
req.send_request(options)
|
|
1342
|
+
end
|
|
1343
|
+
|
|
1344
|
+
# Deletes an app. If the app's published offering still has plans or
|
|
1345
|
+
# metrics, the request fails with a `ConflictException`. Deleting an app
|
|
1346
|
+
# that no longer exists returns a `ResourceNotFoundException`.
|
|
1347
|
+
#
|
|
1348
|
+
# @option params [required, String] :app_id
|
|
1349
|
+
# The ID of the app to delete. You can identify the app by either its ID
|
|
1350
|
+
# or its Amazon Resource Name (ARN). If you provide both, they must
|
|
1351
|
+
# refer to the same app.
|
|
1352
|
+
#
|
|
1353
|
+
# @option params [String] :identifier
|
|
1354
|
+
# The Amazon Resource Name (ARN) of the app. You can identify the app by
|
|
1355
|
+
# either its ID or its ARN. If you provide both, they must refer to the
|
|
1356
|
+
# same app. A sandbox ARN names the app's sandbox; if you also send
|
|
1357
|
+
# scope, the two must name the same environment.
|
|
1358
|
+
#
|
|
1359
|
+
# @option params [String] :scope
|
|
1360
|
+
# The environment to act on: live or sandbox. Optional. You can name the
|
|
1361
|
+
# environment with this member, with a sandbox resource ARN, or both; if
|
|
1362
|
+
# you send both they must name the same environment, or the request is
|
|
1363
|
+
# rejected.
|
|
1364
|
+
#
|
|
1365
|
+
# @return [Types::DeleteAppResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1366
|
+
#
|
|
1367
|
+
# * {Types::DeleteAppResponse#app_id #app_id} => String
|
|
1368
|
+
# * {Types::DeleteAppResponse#status #status} => String
|
|
1369
|
+
# * {Types::DeleteAppResponse#arn #arn} => String
|
|
1370
|
+
#
|
|
1371
|
+
# @example Request syntax with placeholder values
|
|
1372
|
+
#
|
|
1373
|
+
# resp = client.delete_app({
|
|
1374
|
+
# app_id: "AppId", # required
|
|
1375
|
+
# identifier: "ResourceArn",
|
|
1376
|
+
# scope: "sandbox", # accepts sandbox, live
|
|
1377
|
+
# })
|
|
1378
|
+
#
|
|
1379
|
+
# @example Response structure
|
|
1380
|
+
#
|
|
1381
|
+
# resp.app_id #=> String
|
|
1382
|
+
# resp.status #=> String, one of "ACTIVE", "DELETED"
|
|
1383
|
+
# resp.arn #=> String
|
|
1384
|
+
#
|
|
1385
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/DeleteApp AWS API Documentation
|
|
1386
|
+
#
|
|
1387
|
+
# @overload delete_app(params = {})
|
|
1388
|
+
# @param [Hash] params ({})
|
|
1389
|
+
def delete_app(params = {}, options = {})
|
|
1390
|
+
req = build_request(:delete_app, params)
|
|
1391
|
+
req.send_request(options)
|
|
1392
|
+
end
|
|
1393
|
+
|
|
1394
|
+
# Deletes a one-time price from an app. This operation is idempotent.
|
|
1395
|
+
#
|
|
1396
|
+
# @option params [required, String] :app_id
|
|
1397
|
+
# The ID of the app the one-time price belongs to.
|
|
1398
|
+
#
|
|
1399
|
+
# @option params [required, String] :one_time_price_id
|
|
1400
|
+
# The ID of the one-time price to delete.
|
|
1401
|
+
#
|
|
1402
|
+
# @option params [String] :client_token
|
|
1403
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
1404
|
+
# completes no more than one time. If this token matches a previous
|
|
1405
|
+
# request, the service ignores the request but does not return an error.
|
|
1406
|
+
#
|
|
1407
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1408
|
+
#
|
|
1409
|
+
# @example Request syntax with placeholder values
|
|
1410
|
+
#
|
|
1411
|
+
# resp = client.delete_one_time_price({
|
|
1412
|
+
# app_id: "AppId", # required
|
|
1413
|
+
# one_time_price_id: "OneTimePriceId", # required
|
|
1414
|
+
# client_token: "ClientToken",
|
|
1415
|
+
# })
|
|
1416
|
+
#
|
|
1417
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/DeleteOneTimePrice AWS API Documentation
|
|
1418
|
+
#
|
|
1419
|
+
# @overload delete_one_time_price(params = {})
|
|
1420
|
+
# @param [Hash] params ({})
|
|
1421
|
+
def delete_one_time_price(params = {}, options = {})
|
|
1422
|
+
req = build_request(:delete_one_time_price, params)
|
|
1423
|
+
req.send_request(options)
|
|
1424
|
+
end
|
|
1425
|
+
|
|
1426
|
+
# Removes a third-party cost. This operation is idempotent: removing a
|
|
1427
|
+
# cost that is already absent still succeeds. A missing or unauthorized
|
|
1428
|
+
# parent app returns a ResourceNotFoundException.
|
|
1429
|
+
#
|
|
1430
|
+
# @option params [required, String] :app_id
|
|
1431
|
+
# The ID of the app.
|
|
1432
|
+
#
|
|
1433
|
+
# @option params [required, String] :cost_id
|
|
1434
|
+
# The ID of the cost to remove.
|
|
1435
|
+
#
|
|
1436
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1437
|
+
#
|
|
1438
|
+
# @example Request syntax with placeholder values
|
|
1439
|
+
#
|
|
1440
|
+
# resp = client.delete_third_party_cost({
|
|
1441
|
+
# app_id: "AppId", # required
|
|
1442
|
+
# cost_id: "ThirdPartyCostId", # required
|
|
1443
|
+
# })
|
|
1444
|
+
#
|
|
1445
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/DeleteThirdPartyCost AWS API Documentation
|
|
1446
|
+
#
|
|
1447
|
+
# @overload delete_third_party_cost(params = {})
|
|
1448
|
+
# @param [Hash] params ({})
|
|
1449
|
+
def delete_third_party_cost(params = {}, options = {})
|
|
1450
|
+
req = build_request(:delete_third_party_cost, params)
|
|
1451
|
+
req.send_request(options)
|
|
1452
|
+
end
|
|
1453
|
+
|
|
1454
|
+
# Returns the details of an app.
|
|
1455
|
+
#
|
|
1456
|
+
# @option params [required, String] :app_id
|
|
1457
|
+
# The ID of the app to read. You can identify the app by either its ID
|
|
1458
|
+
# or its Amazon Resource Name (ARN). If you provide both, they must
|
|
1459
|
+
# refer to the same app.
|
|
1460
|
+
#
|
|
1461
|
+
# @option params [String] :identifier
|
|
1462
|
+
# The Amazon Resource Name (ARN) of the app. You can identify the app by
|
|
1463
|
+
# either its ID or its ARN. If you provide both, they must refer to the
|
|
1464
|
+
# same app. A sandbox ARN names the app's sandbox; if you also send
|
|
1465
|
+
# scope, the two must name the same environment.
|
|
1466
|
+
#
|
|
1467
|
+
# @option params [String] :scope
|
|
1468
|
+
# The environment to act on: live or sandbox. Optional. You can name the
|
|
1469
|
+
# environment with this member, with a sandbox resource ARN, or both; if
|
|
1470
|
+
# you send both they must name the same environment, or the request is
|
|
1471
|
+
# rejected.
|
|
1472
|
+
#
|
|
1473
|
+
# @return [Types::GetAppResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1474
|
+
#
|
|
1475
|
+
# * {Types::GetAppResponse#app #app} => Types::App
|
|
1476
|
+
#
|
|
1477
|
+
# @example Request syntax with placeholder values
|
|
1478
|
+
#
|
|
1479
|
+
# resp = client.get_app({
|
|
1480
|
+
# app_id: "AppId", # required
|
|
1481
|
+
# identifier: "ResourceArn",
|
|
1482
|
+
# scope: "sandbox", # accepts sandbox, live
|
|
1483
|
+
# })
|
|
1484
|
+
#
|
|
1485
|
+
# @example Response structure
|
|
1486
|
+
#
|
|
1487
|
+
# resp.app.app_id #=> String
|
|
1488
|
+
# resp.app.name #=> String
|
|
1489
|
+
# resp.app.description #=> String
|
|
1490
|
+
# resp.app.status #=> String, one of "ACTIVE", "DELETED"
|
|
1491
|
+
# resp.app.created_at #=> Time
|
|
1492
|
+
# resp.app.arn #=> String
|
|
1493
|
+
#
|
|
1494
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetApp AWS API Documentation
|
|
1495
|
+
#
|
|
1496
|
+
# @overload get_app(params = {})
|
|
1497
|
+
# @param [Hash] params ({})
|
|
1498
|
+
def get_app(params = {}, options = {})
|
|
1499
|
+
req = build_request(:get_app, params)
|
|
1500
|
+
req.send_request(options)
|
|
1501
|
+
end
|
|
1502
|
+
|
|
1503
|
+
# Returns infrastructure cost for an app, grouped by service (the
|
|
1504
|
+
# default), user, or time. To use this operation, you must also have
|
|
1505
|
+
# permission for ce:GetCostAndUsage on your primary billing view.
|
|
1506
|
+
#
|
|
1507
|
+
# @option params [required, String] :app_id
|
|
1508
|
+
# The ID of the app.
|
|
1509
|
+
#
|
|
1510
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :started_at
|
|
1511
|
+
# Start of the reporting window.
|
|
1512
|
+
#
|
|
1513
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :ended_at
|
|
1514
|
+
# End of the reporting window. Must be after startedAt, at most 720
|
|
1515
|
+
# hours after it, and not in the future.
|
|
1516
|
+
#
|
|
1517
|
+
# @option params [required, String] :cost_type
|
|
1518
|
+
# Specifies which cost data to return.
|
|
1519
|
+
#
|
|
1520
|
+
# @option params [String] :group_by
|
|
1521
|
+
# The breakdown dimension. Defaults to SERVICE when omitted.
|
|
1522
|
+
#
|
|
1523
|
+
# @option params [Hash<String,Array>] :filter_by
|
|
1524
|
+
# Filter constraints keyed by dimension. A filter dimension may differ
|
|
1525
|
+
# from groupBy.
|
|
1526
|
+
#
|
|
1527
|
+
# @option params [required, String] :scope
|
|
1528
|
+
# Required. The environment: live or sandbox.
|
|
1529
|
+
#
|
|
1530
|
+
# @return [Types::GetAppInfraCostSummaryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1531
|
+
#
|
|
1532
|
+
# * {Types::GetAppInfraCostSummaryResponse#app_id #app_id} => String
|
|
1533
|
+
# * {Types::GetAppInfraCostSummaryResponse#cost_type #cost_type} => String
|
|
1534
|
+
# * {Types::GetAppInfraCostSummaryResponse#currency #currency} => String
|
|
1535
|
+
# * {Types::GetAppInfraCostSummaryResponse#group_by #data.group_by} => String (This method conflicts with a method on Response, call it through the data member)
|
|
1536
|
+
# * {Types::GetAppInfraCostSummaryResponse#total #total} => String
|
|
1537
|
+
# * {Types::GetAppInfraCostSummaryResponse#groups #groups} => Array<Types::CostGroup>
|
|
1538
|
+
# * {Types::GetAppInfraCostSummaryResponse#started_at #started_at} => Time
|
|
1539
|
+
# * {Types::GetAppInfraCostSummaryResponse#ended_at #ended_at} => Time
|
|
1540
|
+
# * {Types::GetAppInfraCostSummaryResponse#updated_at #updated_at} => Time
|
|
1541
|
+
#
|
|
1542
|
+
# @example Request syntax with placeholder values
|
|
1543
|
+
#
|
|
1544
|
+
# resp = client.get_app_infra_cost_summary({
|
|
1545
|
+
# app_id: "AppId", # required
|
|
1546
|
+
# started_at: Time.now, # required
|
|
1547
|
+
# ended_at: Time.now, # required
|
|
1548
|
+
# cost_type: "ESTIMATE", # required, accepts ESTIMATE, ACTUAL
|
|
1549
|
+
# group_by: "SERVICE", # accepts SERVICE, USER, TIME
|
|
1550
|
+
# filter_by: {
|
|
1551
|
+
# "SERVICE" => ["FilterValue"],
|
|
1552
|
+
# },
|
|
1553
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
1554
|
+
# })
|
|
1555
|
+
#
|
|
1556
|
+
# @example Response structure
|
|
1557
|
+
#
|
|
1558
|
+
# resp.app_id #=> String
|
|
1559
|
+
# resp.cost_type #=> String, one of "ESTIMATE", "ACTUAL"
|
|
1560
|
+
# resp.currency #=> String, one of "USD"
|
|
1561
|
+
# resp.data.group_by #=> String, one of "SERVICE", "USER", "TIME"
|
|
1562
|
+
# resp.total #=> String
|
|
1563
|
+
# resp.groups #=> Array
|
|
1564
|
+
# resp.groups[0].key #=> String
|
|
1565
|
+
# resp.groups[0].cost #=> String
|
|
1566
|
+
# resp.started_at #=> Time
|
|
1567
|
+
# resp.ended_at #=> Time
|
|
1568
|
+
# resp.updated_at #=> Time
|
|
1569
|
+
#
|
|
1570
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetAppInfraCostSummary AWS API Documentation
|
|
1571
|
+
#
|
|
1572
|
+
# @overload get_app_infra_cost_summary(params = {})
|
|
1573
|
+
# @param [Hash] params ({})
|
|
1574
|
+
def get_app_infra_cost_summary(params = {}, options = {})
|
|
1575
|
+
req = build_request(:get_app_infra_cost_summary, params)
|
|
1576
|
+
req.send_request(options)
|
|
1577
|
+
end
|
|
1578
|
+
|
|
1579
|
+
# Returns the current payment registration status and seller profile for
|
|
1580
|
+
# an app.
|
|
1581
|
+
#
|
|
1582
|
+
# @option params [required, String] :app_id
|
|
1583
|
+
# The ID of the app.
|
|
1584
|
+
#
|
|
1585
|
+
# @option params [required, String] :scope
|
|
1586
|
+
# Required. The environment: live or sandbox.
|
|
1587
|
+
#
|
|
1588
|
+
# @return [Types::GetAppPaymentRegistrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1589
|
+
#
|
|
1590
|
+
# * {Types::GetAppPaymentRegistrationResponse#app_payment_registration #app_payment_registration} => Types::AppPaymentRegistration
|
|
1591
|
+
#
|
|
1592
|
+
# @example Request syntax with placeholder values
|
|
1593
|
+
#
|
|
1594
|
+
# resp = client.get_app_payment_registration({
|
|
1595
|
+
# app_id: "AppId", # required
|
|
1596
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
1597
|
+
# })
|
|
1598
|
+
#
|
|
1599
|
+
# @example Response structure
|
|
1600
|
+
#
|
|
1601
|
+
# resp.app_payment_registration.app_id #=> String
|
|
1602
|
+
# resp.app_payment_registration.status #=> String, one of "ACTIVE", "PENDING", "FAILED"
|
|
1603
|
+
# resp.app_payment_registration.payment_registration_id #=> String
|
|
1604
|
+
# resp.app_payment_registration.payment_registration_status #=> String, one of "ACTIVE", "PENDING", "FAILED"
|
|
1605
|
+
# resp.app_payment_registration.additional_app_eligibility #=> String, one of "ELIGIBLE", "ONBOARDING_INCOMPLETE", "IDENTITY_PENDING", "REGISTRATION_FAILED"
|
|
1606
|
+
# resp.app_payment_registration.legal_name #=> String
|
|
1607
|
+
# resp.app_payment_registration.developer_address.street1 #=> String
|
|
1608
|
+
# resp.app_payment_registration.developer_address.street2 #=> String
|
|
1609
|
+
# resp.app_payment_registration.developer_address.city #=> String
|
|
1610
|
+
# resp.app_payment_registration.developer_address.state #=> String
|
|
1611
|
+
# resp.app_payment_registration.developer_address.postal_code #=> String
|
|
1612
|
+
# resp.app_payment_registration.developer_address.country #=> String
|
|
1613
|
+
# resp.app_payment_registration.tax_registration_number #=> String
|
|
1614
|
+
# resp.app_payment_registration.business_type #=> String, one of "INDIVIDUAL", "REGISTERED_BUSINESS"
|
|
1615
|
+
# resp.app_payment_registration.email #=> String
|
|
1616
|
+
# resp.app_payment_registration.support_email #=> String
|
|
1617
|
+
# resp.app_payment_registration.display_name #=> String
|
|
1618
|
+
# resp.app_payment_registration.support_phone #=> String
|
|
1619
|
+
# resp.app_payment_registration.tax_registrations #=> Array
|
|
1620
|
+
# resp.app_payment_registration.tax_registrations[0].country_code #=> String
|
|
1621
|
+
# resp.app_payment_registration.tax_registrations[0].state #=> String
|
|
1622
|
+
# resp.app_payment_registration.tax_registrations[0].collection_type #=> String
|
|
1623
|
+
# resp.app_payment_registration.tax_registrations[0].registration_type #=> String, one of "SALES_USE", "RETAIL_DELIVERY_FEE", "VAT", "VAT_OSS", "VAT_IOSS", "GST", "FEDERAL_EIN", "CPF", "CNPJ", "SST", "TIN", "NIP", "NPWP", "NCID"
|
|
1624
|
+
# resp.app_payment_registration.tax_registrations[0].registration_id #=> String
|
|
1625
|
+
# resp.app_payment_registration.tax_registrations[0].locality #=> String
|
|
1626
|
+
# resp.app_payment_registration.created_at #=> Time
|
|
1627
|
+
# resp.app_payment_registration.updated_at #=> Time
|
|
1628
|
+
#
|
|
1629
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetAppPaymentRegistration AWS API Documentation
|
|
1630
|
+
#
|
|
1631
|
+
# @overload get_app_payment_registration(params = {})
|
|
1632
|
+
# @param [Hash] params ({})
|
|
1633
|
+
def get_app_payment_registration(params = {}, options = {})
|
|
1634
|
+
req = build_request(:get_app_payment_registration, params)
|
|
1635
|
+
req.send_request(options)
|
|
1636
|
+
end
|
|
1637
|
+
|
|
1638
|
+
# Returns billed revenue for an app for a billing period, grouped by
|
|
1639
|
+
# plan.
|
|
1640
|
+
#
|
|
1641
|
+
# @option params [required, String] :app_id
|
|
1642
|
+
# The ID of the app.
|
|
1643
|
+
#
|
|
1644
|
+
# @option params [String] :period
|
|
1645
|
+
# The billing period, in "YYYY-MM" form. Defaults to the current month
|
|
1646
|
+
# when omitted.
|
|
1647
|
+
#
|
|
1648
|
+
# @option params [String] :group_by
|
|
1649
|
+
# The breakdown dimension. Defaults to PLAN when omitted.
|
|
1650
|
+
#
|
|
1651
|
+
# @option params [Hash<String,Array>] :filter_by
|
|
1652
|
+
# Filter constraints keyed by dimension. A filter dimension may differ
|
|
1653
|
+
# from groupBy.
|
|
1654
|
+
#
|
|
1655
|
+
# @option params [required, String] :scope
|
|
1656
|
+
# Required. The environment: live or sandbox.
|
|
1657
|
+
#
|
|
1658
|
+
# @return [Types::GetAppRevenueSummaryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1659
|
+
#
|
|
1660
|
+
# * {Types::GetAppRevenueSummaryResponse#app_id #app_id} => String
|
|
1661
|
+
# * {Types::GetAppRevenueSummaryResponse#period #period} => String
|
|
1662
|
+
# * {Types::GetAppRevenueSummaryResponse#currency #currency} => String
|
|
1663
|
+
# * {Types::GetAppRevenueSummaryResponse#group_by #data.group_by} => String (This method conflicts with a method on Response, call it through the data member)
|
|
1664
|
+
# * {Types::GetAppRevenueSummaryResponse#total_revenue #total_revenue} => String
|
|
1665
|
+
# * {Types::GetAppRevenueSummaryResponse#subscription_revenue #subscription_revenue} => String
|
|
1666
|
+
# * {Types::GetAppRevenueSummaryResponse#usage_revenue #usage_revenue} => String
|
|
1667
|
+
# * {Types::GetAppRevenueSummaryResponse#groups #groups} => Array<Types::RevenueGroup>
|
|
1668
|
+
# * {Types::GetAppRevenueSummaryResponse#updated_at #updated_at} => Time
|
|
1669
|
+
#
|
|
1670
|
+
# @example Request syntax with placeholder values
|
|
1671
|
+
#
|
|
1672
|
+
# resp = client.get_app_revenue_summary({
|
|
1673
|
+
# app_id: "AppId", # required
|
|
1674
|
+
# period: "BillingPeriod",
|
|
1675
|
+
# group_by: "PLAN", # accepts PLAN
|
|
1676
|
+
# filter_by: {
|
|
1677
|
+
# "PLAN" => ["FilterValue"],
|
|
1678
|
+
# },
|
|
1679
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
1680
|
+
# })
|
|
1681
|
+
#
|
|
1682
|
+
# @example Response structure
|
|
1683
|
+
#
|
|
1684
|
+
# resp.app_id #=> String
|
|
1685
|
+
# resp.period #=> String
|
|
1686
|
+
# resp.currency #=> String, one of "USD"
|
|
1687
|
+
# resp.data.group_by #=> String, one of "PLAN"
|
|
1688
|
+
# resp.total_revenue #=> String
|
|
1689
|
+
# resp.subscription_revenue #=> String
|
|
1690
|
+
# resp.usage_revenue #=> String
|
|
1691
|
+
# resp.groups #=> Array
|
|
1692
|
+
# resp.groups[0].key #=> String
|
|
1693
|
+
# resp.groups[0].users #=> Integer
|
|
1694
|
+
# resp.groups[0].subscription_revenue #=> String
|
|
1695
|
+
# resp.groups[0].usage_revenue #=> String
|
|
1696
|
+
# resp.groups[0].total_revenue #=> String
|
|
1697
|
+
# resp.updated_at #=> Time
|
|
1698
|
+
#
|
|
1699
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetAppRevenueSummary AWS API Documentation
|
|
1700
|
+
#
|
|
1701
|
+
# @overload get_app_revenue_summary(params = {})
|
|
1702
|
+
# @param [Hash] params ({})
|
|
1703
|
+
def get_app_revenue_summary(params = {}, options = {})
|
|
1704
|
+
req = build_request(:get_app_revenue_summary, params)
|
|
1705
|
+
req.send_request(options)
|
|
1706
|
+
end
|
|
1707
|
+
|
|
1708
|
+
# Returns subscription counts for an app, grouped by status (the
|
|
1709
|
+
# default) or by plan. The summary contains no subscriber personally
|
|
1710
|
+
# identifiable information.
|
|
1711
|
+
#
|
|
1712
|
+
# @option params [required, String] :app_id
|
|
1713
|
+
# The ID of the app.
|
|
1714
|
+
#
|
|
1715
|
+
# @option params [String] :group_by
|
|
1716
|
+
# The breakdown dimension. Defaults to STATUS when omitted.
|
|
1717
|
+
#
|
|
1718
|
+
# @option params [Hash<String,Array>] :filter_by
|
|
1719
|
+
# Filter constraints keyed by dimension. A filter dimension may differ
|
|
1720
|
+
# from groupBy.
|
|
1721
|
+
#
|
|
1722
|
+
# @option params [required, String] :scope
|
|
1723
|
+
# Required. The environment: live or sandbox.
|
|
1724
|
+
#
|
|
1725
|
+
# @return [Types::GetAppSubscriptionSummaryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1726
|
+
#
|
|
1727
|
+
# * {Types::GetAppSubscriptionSummaryResponse#app_id #app_id} => String
|
|
1728
|
+
# * {Types::GetAppSubscriptionSummaryResponse#group_by #data.group_by} => String (This method conflicts with a method on Response, call it through the data member)
|
|
1729
|
+
# * {Types::GetAppSubscriptionSummaryResponse#total_subscribers #total_subscribers} => Integer
|
|
1730
|
+
# * {Types::GetAppSubscriptionSummaryResponse#groups #groups} => Array<Types::SubscriptionGroup>
|
|
1731
|
+
# * {Types::GetAppSubscriptionSummaryResponse#updated_at #updated_at} => Time
|
|
1732
|
+
#
|
|
1733
|
+
# @example Request syntax with placeholder values
|
|
1734
|
+
#
|
|
1735
|
+
# resp = client.get_app_subscription_summary({
|
|
1736
|
+
# app_id: "AppId", # required
|
|
1737
|
+
# group_by: "STATUS", # accepts STATUS, PLAN
|
|
1738
|
+
# filter_by: {
|
|
1739
|
+
# "STATUS" => ["FilterValue"],
|
|
1740
|
+
# },
|
|
1741
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
1742
|
+
# })
|
|
1743
|
+
#
|
|
1744
|
+
# @example Response structure
|
|
1745
|
+
#
|
|
1746
|
+
# resp.app_id #=> String
|
|
1747
|
+
# resp.data.group_by #=> String, one of "STATUS", "PLAN"
|
|
1748
|
+
# resp.total_subscribers #=> Integer
|
|
1749
|
+
# resp.groups #=> Array
|
|
1750
|
+
# resp.groups[0].key #=> String
|
|
1751
|
+
# resp.groups[0].count #=> Integer
|
|
1752
|
+
# resp.updated_at #=> Time
|
|
1753
|
+
#
|
|
1754
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetAppSubscriptionSummary AWS API Documentation
|
|
1755
|
+
#
|
|
1756
|
+
# @overload get_app_subscription_summary(params = {})
|
|
1757
|
+
# @param [Hash] params ({})
|
|
1758
|
+
def get_app_subscription_summary(params = {}, options = {})
|
|
1759
|
+
req = build_request(:get_app_subscription_summary, params)
|
|
1760
|
+
req.send_request(options)
|
|
1761
|
+
end
|
|
1762
|
+
|
|
1763
|
+
# Returns usage for an app, grouped by metric (the default), user, or
|
|
1764
|
+
# time.
|
|
1765
|
+
#
|
|
1766
|
+
# @option params [required, String] :app_id
|
|
1767
|
+
# The ID of the app.
|
|
1768
|
+
#
|
|
1769
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :started_at
|
|
1770
|
+
# Start of the reporting window.
|
|
1771
|
+
#
|
|
1772
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :ended_at
|
|
1773
|
+
# End of the reporting window. Must be after startedAt, at most 720
|
|
1774
|
+
# hours after it, and not in the future.
|
|
1775
|
+
#
|
|
1776
|
+
# @option params [String] :group_by
|
|
1777
|
+
# The breakdown dimension. Defaults to METRIC when omitted.
|
|
1778
|
+
#
|
|
1779
|
+
# @option params [Hash<String,Array>] :filter_by
|
|
1780
|
+
# Filter constraints keyed by dimension. A filter dimension may differ
|
|
1781
|
+
# from groupBy.
|
|
1782
|
+
#
|
|
1783
|
+
# @option params [required, String] :scope
|
|
1784
|
+
# Required. The environment: live or sandbox.
|
|
1785
|
+
#
|
|
1786
|
+
# @return [Types::GetAppUsageSummaryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1787
|
+
#
|
|
1788
|
+
# * {Types::GetAppUsageSummaryResponse#app_id #app_id} => String
|
|
1789
|
+
# * {Types::GetAppUsageSummaryResponse#group_by #data.group_by} => String (This method conflicts with a method on Response, call it through the data member)
|
|
1790
|
+
# * {Types::GetAppUsageSummaryResponse#total_events #total_events} => Integer
|
|
1791
|
+
# * {Types::GetAppUsageSummaryResponse#groups #groups} => Array<Types::UsageGroup>
|
|
1792
|
+
# * {Types::GetAppUsageSummaryResponse#started_at #started_at} => Time
|
|
1793
|
+
# * {Types::GetAppUsageSummaryResponse#ended_at #ended_at} => Time
|
|
1794
|
+
# * {Types::GetAppUsageSummaryResponse#updated_at #updated_at} => Time
|
|
1795
|
+
#
|
|
1796
|
+
# @example Request syntax with placeholder values
|
|
1797
|
+
#
|
|
1798
|
+
# resp = client.get_app_usage_summary({
|
|
1799
|
+
# app_id: "AppId", # required
|
|
1800
|
+
# started_at: Time.now, # required
|
|
1801
|
+
# ended_at: Time.now, # required
|
|
1802
|
+
# group_by: "METRIC", # accepts METRIC, USER, TIME
|
|
1803
|
+
# filter_by: {
|
|
1804
|
+
# "METRIC" => ["FilterValue"],
|
|
1805
|
+
# },
|
|
1806
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
1807
|
+
# })
|
|
1808
|
+
#
|
|
1809
|
+
# @example Response structure
|
|
1810
|
+
#
|
|
1811
|
+
# resp.app_id #=> String
|
|
1812
|
+
# resp.data.group_by #=> String, one of "METRIC", "USER", "TIME"
|
|
1813
|
+
# resp.total_events #=> Integer
|
|
1814
|
+
# resp.groups #=> Array
|
|
1815
|
+
# resp.groups[0].key #=> String
|
|
1816
|
+
# resp.groups[0].metric_name #=> String
|
|
1817
|
+
# resp.groups[0].usage #=> Integer
|
|
1818
|
+
# resp.started_at #=> Time
|
|
1819
|
+
# resp.ended_at #=> Time
|
|
1820
|
+
# resp.updated_at #=> Time
|
|
1821
|
+
#
|
|
1822
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetAppUsageSummary AWS API Documentation
|
|
1823
|
+
#
|
|
1824
|
+
# @overload get_app_usage_summary(params = {})
|
|
1825
|
+
# @param [Hash] params ({})
|
|
1826
|
+
def get_app_usage_summary(params = {}, options = {})
|
|
1827
|
+
req = build_request(:get_app_usage_summary, params)
|
|
1828
|
+
req.send_request(options)
|
|
1829
|
+
end
|
|
1830
|
+
|
|
1831
|
+
# Returns an entitlement decision for a user action, indicating whether
|
|
1832
|
+
# the action is allowed and why. It takes the pending event's quantity
|
|
1833
|
+
# and properties so the check sizes the decision per metric the way
|
|
1834
|
+
# PutEvent counts the event: it applies each metric's filter to the
|
|
1835
|
+
# properties, counts 1 for a COUNT metric, and reads the summed or maxed
|
|
1836
|
+
# field value for a SUM or MAX metric. The decision is DENY when usage
|
|
1837
|
+
# already reached the limit, or when folding this event in would push it
|
|
1838
|
+
# past (a SUM or COUNT metric adds the increment to current usage, a MAX
|
|
1839
|
+
# metric takes the larger of the two). Send the same eventType, quantity
|
|
1840
|
+
# and properties you will send on the event: the check applies the rules
|
|
1841
|
+
# PutEvent applies to that event. A SUM or MAX metric that reads a
|
|
1842
|
+
# property rejects the check with a ValidationException when the
|
|
1843
|
+
# property is missing or not a plain decimal, including when properties
|
|
1844
|
+
# are omitted or sent as \{}; a metric filter matches only properties
|
|
1845
|
+
# that are present, so a filtered metric is skipped for an event with no
|
|
1846
|
+
# properties, as PutEvent skips it. It is idempotent, and it may create
|
|
1847
|
+
# the user's default-plan subscription on first use.
|
|
1848
|
+
#
|
|
1849
|
+
# @option params [required, String] :app_id
|
|
1850
|
+
# The ID of the app.
|
|
1851
|
+
#
|
|
1852
|
+
# @option params [required, String] :user_id
|
|
1853
|
+
# An opaque identifier that you assign to an end user. Do not include
|
|
1854
|
+
# personally identifiable or otherwise sensitive data in this value.
|
|
1855
|
+
#
|
|
1856
|
+
# @option params [required, String] :event_type
|
|
1857
|
+
# The type of action the user is attempting, used to determine the
|
|
1858
|
+
# applicable plan capability and quota. Use the same event type you will
|
|
1859
|
+
# send on the event.
|
|
1860
|
+
#
|
|
1861
|
+
# @option params [required, String] :scope
|
|
1862
|
+
# The environment of the app that this operation applies to. Specify
|
|
1863
|
+
# live to use the live app, or sandbox to use the app's isolated test
|
|
1864
|
+
# environment.
|
|
1865
|
+
#
|
|
1866
|
+
# @option params [required, String] :quantity
|
|
1867
|
+
# The number of units the pending action will consume, as a non-negative
|
|
1868
|
+
# decimal string (the same Quantity shape PutEvent uses). Send the real
|
|
1869
|
+
# amount if known, otherwise your best upper estimate (for example a
|
|
1870
|
+
# request's max tokens). Used when a metric counts events or sums or
|
|
1871
|
+
# maxes the event quantity itself. The decision is DENY when usage
|
|
1872
|
+
# already reached the limit, or when folding this event in would push it
|
|
1873
|
+
# past (SUM and COUNT add the increment; MAX takes the larger of current
|
|
1874
|
+
# usage and the increment).
|
|
1875
|
+
#
|
|
1876
|
+
# @option params [Hash<String,String>] :properties
|
|
1877
|
+
# The same event properties you will send on the event. Each metric's
|
|
1878
|
+
# filter is applied to them, and a summed or maxed field value is read
|
|
1879
|
+
# from them. Omit them or send \{} when the event has none; a metric
|
|
1880
|
+
# that sums or maxes a property then rejects the check, as PutEvent
|
|
1881
|
+
# rejects the event. Do not include personally identifiable or otherwise
|
|
1882
|
+
# sensitive data in these values.
|
|
1883
|
+
#
|
|
1884
|
+
# @return [Types::GetEntitlementDecisionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1885
|
+
#
|
|
1886
|
+
# * {Types::GetEntitlementDecisionResponse#decision #decision} => String
|
|
1887
|
+
# * {Types::GetEntitlementDecisionResponse#reason #reason} => Types::EntitlementReason
|
|
1888
|
+
# * {Types::GetEntitlementDecisionResponse#plan_id #plan_id} => String
|
|
1889
|
+
# * {Types::GetEntitlementDecisionResponse#metrics #metrics} => Array<Types::EntitlementMetricStatus>
|
|
1890
|
+
#
|
|
1891
|
+
# @example Request syntax with placeholder values
|
|
1892
|
+
#
|
|
1893
|
+
# resp = client.get_entitlement_decision({
|
|
1894
|
+
# app_id: "AppId", # required
|
|
1895
|
+
# user_id: "UserId", # required
|
|
1896
|
+
# event_type: "SourceEventType", # required
|
|
1897
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
1898
|
+
# quantity: "Quantity", # required
|
|
1899
|
+
# properties: {
|
|
1900
|
+
# "PropertyKey" => "PropertyValue",
|
|
1901
|
+
# },
|
|
1902
|
+
# })
|
|
1903
|
+
#
|
|
1904
|
+
# @example Response structure
|
|
1905
|
+
#
|
|
1906
|
+
# resp.decision #=> String, one of "ALLOW", "DENY"
|
|
1907
|
+
# resp.reason.category #=> String, one of "CAPABILITY", "USAGE", "SYSTEM"
|
|
1908
|
+
# resp.reason.code #=> String, one of "ALLOWED", "WITHIN_QUOTA", "NO_QUOTA_RESTRICTION", "OVERAGE_ACCRUING", "SERVICE_DEGRADED", "PAYMENT_PAST_DUE", "COVERED_BY_PURCHASED_UNITS", "NO_SUBSCRIPTION", "SUBSCRIPTION_INACTIVE", "CAPABILITY_NOT_INCLUDED", "QUOTA_EXCEEDED", "SUBSCRIPTION_SUSPENDED", "OUT_OF_UNITS"
|
|
1909
|
+
# resp.plan_id #=> String
|
|
1910
|
+
# resp.metrics #=> Array
|
|
1911
|
+
# resp.metrics[0].metric_id #=> String
|
|
1912
|
+
# resp.metrics[0].used_quantity #=> Integer
|
|
1913
|
+
# resp.metrics[0].included_quantity #=> Integer
|
|
1914
|
+
# resp.metrics[0].remaining_quantity #=> Integer
|
|
1915
|
+
#
|
|
1916
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetEntitlementDecision AWS API Documentation
|
|
1917
|
+
#
|
|
1918
|
+
# @overload get_entitlement_decision(params = {})
|
|
1919
|
+
# @param [Hash] params ({})
|
|
1920
|
+
def get_entitlement_decision(params = {}, options = {})
|
|
1921
|
+
req = build_request(:get_entitlement_decision, params)
|
|
1922
|
+
req.send_request(options)
|
|
1923
|
+
end
|
|
1924
|
+
|
|
1925
|
+
# Returns the details of a metric.
|
|
1926
|
+
#
|
|
1927
|
+
# @option params [required, String] :app_id
|
|
1928
|
+
# The ID of the app.
|
|
1929
|
+
#
|
|
1930
|
+
# @option params [required, String] :metric_id
|
|
1931
|
+
# The ID of the metric to retrieve.
|
|
1932
|
+
#
|
|
1933
|
+
# @option params [String] :stage
|
|
1934
|
+
# The offering stage to read the metric from: DRAFT (the latest draft)
|
|
1935
|
+
# or PUBLISHED (the offering customers see). Absent: PUBLISHED when
|
|
1936
|
+
# scope=live, DRAFT when scope=sandbox.
|
|
1937
|
+
#
|
|
1938
|
+
# @option params [required, String] :scope
|
|
1939
|
+
# Required. The environment: live or sandbox. live reads the published
|
|
1940
|
+
# offering by default; sandbox reads the app's draft.
|
|
1941
|
+
#
|
|
1942
|
+
# @return [Types::GetMetricResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1943
|
+
#
|
|
1944
|
+
# * {Types::GetMetricResponse#metric #metric} => Types::Metric
|
|
1945
|
+
#
|
|
1946
|
+
# @example Request syntax with placeholder values
|
|
1947
|
+
#
|
|
1948
|
+
# resp = client.get_metric({
|
|
1949
|
+
# app_id: "AppId", # required
|
|
1950
|
+
# metric_id: "MetricId", # required
|
|
1951
|
+
# stage: "DRAFT", # accepts DRAFT, PUBLISHED
|
|
1952
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
1953
|
+
# })
|
|
1954
|
+
#
|
|
1955
|
+
# @example Response structure
|
|
1956
|
+
#
|
|
1957
|
+
# resp.metric.app_id #=> String
|
|
1958
|
+
# resp.metric.metric_id #=> String
|
|
1959
|
+
# resp.metric.name #=> String
|
|
1960
|
+
# resp.metric.description #=> String
|
|
1961
|
+
# resp.metric.event_type #=> String
|
|
1962
|
+
# resp.metric.unit_name #=> String
|
|
1963
|
+
# resp.metric.definition.filters #=> Array
|
|
1964
|
+
# resp.metric.definition.filters[0].field #=> String
|
|
1965
|
+
# resp.metric.definition.filters[0].operator #=> String, one of "EQUALS", "NOT_EQUALS", "IN", "NOT_IN"
|
|
1966
|
+
# resp.metric.definition.filters[0].values #=> Array
|
|
1967
|
+
# resp.metric.definition.filters[0].values[0] #=> String
|
|
1968
|
+
# resp.metric.definition.function #=> String, one of "SUM", "COUNT", "MAX"
|
|
1969
|
+
# resp.metric.definition.function_field #=> String
|
|
1970
|
+
# resp.metric.definition.group_by #=> Array
|
|
1971
|
+
# resp.metric.definition.group_by[0] #=> String
|
|
1972
|
+
# resp.metric.definition.period #=> String, one of "MONTHLY"
|
|
1973
|
+
# resp.metric.arn #=> String
|
|
1974
|
+
# resp.metric.stage #=> String, one of "DRAFT", "PUBLISHED"
|
|
1975
|
+
#
|
|
1976
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetMetric AWS API Documentation
|
|
1977
|
+
#
|
|
1978
|
+
# @overload get_metric(params = {})
|
|
1979
|
+
# @param [Hash] params ({})
|
|
1980
|
+
def get_metric(params = {}, options = {})
|
|
1981
|
+
req = build_request(:get_metric, params)
|
|
1982
|
+
req.send_request(options)
|
|
1983
|
+
end
|
|
1984
|
+
|
|
1985
|
+
# Returns a user's raw per-metric usage over a caller-supplied window.
|
|
1986
|
+
# Usage is aggregated by event time with each metric's aggregation
|
|
1987
|
+
# function: summed or counted, or the largest value for a MAX metric, in
|
|
1988
|
+
# the environment the scope selects (the live app or its sandbox). It
|
|
1989
|
+
# returns usage only: it does not resolve the user's plan, apply quota,
|
|
1990
|
+
# or attribute usage to a plan. Combine it with GetSubscriptionHistory
|
|
1991
|
+
# to compute charges for each plan the user was on, or compare it
|
|
1992
|
+
# against a plan's allowance to make an entitlement decision.
|
|
1993
|
+
#
|
|
1994
|
+
# Usage is read at hour resolution: startedAt is floored to its hour and
|
|
1995
|
+
# endedAt is rounded up to the next hour boundary, so the window read
|
|
1996
|
+
# can be wider than the requested one.
|
|
1997
|
+
#
|
|
1998
|
+
# Paginated over the app's metric set: one page of per-metric usage per
|
|
1999
|
+
# call, continued with nextToken. The window is fixed across a
|
|
2000
|
+
# pagination sequence.
|
|
2001
|
+
#
|
|
2002
|
+
# @option params [required, String] :app_id
|
|
2003
|
+
# The ID of the app.
|
|
2004
|
+
#
|
|
2005
|
+
# @option params [required, String] :user_id
|
|
2006
|
+
# The end user whose usage is read. Do not include personally
|
|
2007
|
+
# identifiable or otherwise sensitive data in this value.
|
|
2008
|
+
#
|
|
2009
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :started_at
|
|
2010
|
+
# Inclusive start of the reporting window (half-open \[startedAt,
|
|
2011
|
+
# endedAt)).
|
|
2012
|
+
#
|
|
2013
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :ended_at
|
|
2014
|
+
# Exclusive end of the reporting window. Must be after startedAt; the
|
|
2015
|
+
# window may span at most 744 hours (31 days, the longest monthly
|
|
2016
|
+
# billing period). Must not be in the future beyond a small clock-skew
|
|
2017
|
+
# allowance.
|
|
2018
|
+
#
|
|
2019
|
+
# @option params [required, String] :scope
|
|
2020
|
+
# Required. The environment: live or sandbox. sandbox reads the app's
|
|
2021
|
+
# isolated test environment. Usage is kept separately per environment.
|
|
2022
|
+
#
|
|
2023
|
+
# @option params [Integer] :max_results
|
|
2024
|
+
# Maximum number of per-metric usage entries to return in this page
|
|
2025
|
+
# (1-25, default 25).
|
|
2026
|
+
#
|
|
2027
|
+
# @option params [String] :next_token
|
|
2028
|
+
# Opaque continuation token from a prior response. The window
|
|
2029
|
+
# (startedAt/endedAt) must be unchanged across a pagination sequence.
|
|
2030
|
+
#
|
|
2031
|
+
# @return [Types::GetMetricUsageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2032
|
+
#
|
|
2033
|
+
# * {Types::GetMetricUsageResponse#usage #usage} => Array<Types::MetricUsage>
|
|
2034
|
+
# * {Types::GetMetricUsageResponse#next_token #next_token} => String
|
|
2035
|
+
#
|
|
2036
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
2037
|
+
#
|
|
2038
|
+
# @example Request syntax with placeholder values
|
|
2039
|
+
#
|
|
2040
|
+
# resp = client.get_metric_usage({
|
|
2041
|
+
# app_id: "AppId", # required
|
|
2042
|
+
# user_id: "UserId", # required
|
|
2043
|
+
# started_at: Time.now, # required
|
|
2044
|
+
# ended_at: Time.now, # required
|
|
2045
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
2046
|
+
# max_results: 1,
|
|
2047
|
+
# next_token: "NextToken",
|
|
2048
|
+
# })
|
|
2049
|
+
#
|
|
2050
|
+
# @example Response structure
|
|
2051
|
+
#
|
|
2052
|
+
# resp.usage #=> Array
|
|
2053
|
+
# resp.usage[0].metric_id #=> String
|
|
2054
|
+
# resp.usage[0].quantity #=> String
|
|
2055
|
+
# resp.next_token #=> String
|
|
2056
|
+
#
|
|
2057
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetMetricUsage AWS API Documentation
|
|
2058
|
+
#
|
|
2059
|
+
# @overload get_metric_usage(params = {})
|
|
2060
|
+
# @param [Hash] params ({})
|
|
2061
|
+
def get_metric_usage(params = {}, options = {})
|
|
2062
|
+
req = build_request(:get_metric_usage, params)
|
|
2063
|
+
req.send_request(options)
|
|
2064
|
+
end
|
|
2065
|
+
|
|
2066
|
+
# Returns the details of a one-time price.
|
|
2067
|
+
#
|
|
2068
|
+
# @option params [required, String] :app_id
|
|
2069
|
+
# The ID of the app the one-time price belongs to.
|
|
2070
|
+
#
|
|
2071
|
+
# @option params [required, String] :one_time_price_id
|
|
2072
|
+
# The ID of the one-time price to return.
|
|
2073
|
+
#
|
|
2074
|
+
# @option params [required, String] :scope
|
|
2075
|
+
# Required. The environment: live or sandbox. live reads the published
|
|
2076
|
+
# offering; sandbox reads the app's draft (what the sandbox runs).
|
|
2077
|
+
#
|
|
2078
|
+
# @return [Types::GetOneTimePriceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2079
|
+
#
|
|
2080
|
+
# * {Types::GetOneTimePriceResponse#one_time_price #one_time_price} => Types::OneTimePrice
|
|
2081
|
+
#
|
|
2082
|
+
# @example Request syntax with placeholder values
|
|
2083
|
+
#
|
|
2084
|
+
# resp = client.get_one_time_price({
|
|
2085
|
+
# app_id: "AppId", # required
|
|
2086
|
+
# one_time_price_id: "OneTimePriceId", # required
|
|
2087
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
2088
|
+
# })
|
|
2089
|
+
#
|
|
2090
|
+
# @example Response structure
|
|
2091
|
+
#
|
|
2092
|
+
# resp.one_time_price.arn #=> String
|
|
2093
|
+
# resp.one_time_price.app_id #=> String
|
|
2094
|
+
# resp.one_time_price.one_time_price_id #=> String
|
|
2095
|
+
# resp.one_time_price.definition.name #=> String
|
|
2096
|
+
# resp.one_time_price.definition.price.currency_code #=> String
|
|
2097
|
+
# resp.one_time_price.definition.price.amount #=> String
|
|
2098
|
+
# resp.one_time_price.definition.metric_id #=> String
|
|
2099
|
+
# resp.one_time_price.definition.capacity #=> Integer
|
|
2100
|
+
# resp.one_time_price.stage #=> String, one of "DRAFT", "PUBLISHED"
|
|
2101
|
+
#
|
|
2102
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetOneTimePrice AWS API Documentation
|
|
2103
|
+
#
|
|
2104
|
+
# @overload get_one_time_price(params = {})
|
|
2105
|
+
# @param [Hash] params ({})
|
|
2106
|
+
def get_one_time_price(params = {}, options = {})
|
|
2107
|
+
req = build_request(:get_one_time_price, params)
|
|
2108
|
+
req.send_request(options)
|
|
2109
|
+
end
|
|
2110
|
+
|
|
2111
|
+
# Returns the details of a plan.
|
|
2112
|
+
#
|
|
2113
|
+
# @option params [required, String] :app_id
|
|
2114
|
+
# The ID of the app.
|
|
2115
|
+
#
|
|
2116
|
+
# @option params [required, String] :plan_id
|
|
2117
|
+
# The identifier of the plan. AWS App Monetization generates this value
|
|
2118
|
+
# when you create the plan. It is unique within the app and is never
|
|
2119
|
+
# reused. Treat it as opaque.
|
|
2120
|
+
#
|
|
2121
|
+
# @option params [String] :stage
|
|
2122
|
+
# The offering stage to read the plan from: DRAFT (the latest draft) or
|
|
2123
|
+
# PUBLISHED (the offering customers see). Absent: PUBLISHED when
|
|
2124
|
+
# scope=live, DRAFT when scope=sandbox.
|
|
2125
|
+
#
|
|
2126
|
+
# @option params [required, String] :scope
|
|
2127
|
+
# Required. The environment: live or sandbox. live reads the published
|
|
2128
|
+
# offering by default; sandbox reads the app's draft (what the sandbox
|
|
2129
|
+
# runs).
|
|
2130
|
+
#
|
|
2131
|
+
# @return [Types::GetPlanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2132
|
+
#
|
|
2133
|
+
# * {Types::GetPlanResponse#plan #plan} => Types::Plan
|
|
2134
|
+
#
|
|
2135
|
+
# @example Request syntax with placeholder values
|
|
2136
|
+
#
|
|
2137
|
+
# resp = client.get_plan({
|
|
2138
|
+
# app_id: "AppId", # required
|
|
2139
|
+
# plan_id: "PlanId", # required
|
|
2140
|
+
# stage: "DRAFT", # accepts DRAFT, PUBLISHED
|
|
2141
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
2142
|
+
# })
|
|
2143
|
+
#
|
|
2144
|
+
# @example Response structure
|
|
2145
|
+
#
|
|
2146
|
+
# resp.plan.app_id #=> String
|
|
2147
|
+
# resp.plan.plan_id #=> String
|
|
2148
|
+
# resp.plan.definition.name #=> String
|
|
2149
|
+
# resp.plan.definition.description #=> String
|
|
2150
|
+
# resp.plan.definition.billing_cycle #=> String, one of "MONTHLY", "ANNUAL", "ONE_TIME"
|
|
2151
|
+
# resp.plan.definition.subscription_price.currency_code #=> String
|
|
2152
|
+
# resp.plan.definition.subscription_price.amount #=> String
|
|
2153
|
+
# resp.plan.definition.included_quotas #=> Hash
|
|
2154
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.included_quantity #=> Integer
|
|
2155
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.overage_policy #=> String, one of "NO_OVERAGE_THROTTLE", "APPLY_FIXED_OVERAGE", "APPLY_TIERED_OVERAGE"
|
|
2156
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.overage_price.currency_code #=> String
|
|
2157
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.overage_price.amount #=> String
|
|
2158
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.semantics #=> String, one of "GRADUATED", "VOLUME"
|
|
2159
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers #=> Array
|
|
2160
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].first_unit #=> Integer
|
|
2161
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].last_unit #=> Integer
|
|
2162
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].unit_price.currency_code #=> String
|
|
2163
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].unit_price.amount #=> String
|
|
2164
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.max_quantity #=> Integer
|
|
2165
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.included_quantity #=> Integer
|
|
2166
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.semantics #=> String, one of "GRADUATED", "VOLUME"
|
|
2167
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers #=> Array
|
|
2168
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].first_unit #=> Integer
|
|
2169
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].last_unit #=> Integer
|
|
2170
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].unit_price.currency_code #=> String
|
|
2171
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].unit_price.amount #=> String
|
|
2172
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.max_quantity #=> Integer
|
|
2173
|
+
# resp.plan.definition.tax_code #=> String
|
|
2174
|
+
# resp.plan.definition.payment_failure_policy.retry_attempts #=> Integer
|
|
2175
|
+
# resp.plan.definition.payment_failure_policy.retry_window_days #=> Integer
|
|
2176
|
+
# resp.plan.definition.payment_failure_policy.downgrade_to_plan_id #=> String
|
|
2177
|
+
# resp.plan.stage #=> String, one of "DRAFT", "PUBLISHED"
|
|
2178
|
+
# resp.plan.created_at #=> Time
|
|
2179
|
+
# resp.plan.updated_at #=> Time
|
|
2180
|
+
# resp.plan.arn #=> String
|
|
2181
|
+
#
|
|
2182
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetPlan AWS API Documentation
|
|
2183
|
+
#
|
|
2184
|
+
# @overload get_plan(params = {})
|
|
2185
|
+
# @param [Hash] params ({})
|
|
2186
|
+
def get_plan(params = {}, options = {})
|
|
2187
|
+
req = build_request(:get_plan, params)
|
|
2188
|
+
req.send_request(options)
|
|
2189
|
+
end
|
|
2190
|
+
|
|
2191
|
+
# Returns a recommended pricing model and plan set for an app,
|
|
2192
|
+
# calculated from the billable actions, costs, customer types,
|
|
2193
|
+
# alternatives and preferences in the request. Built to be called by an
|
|
2194
|
+
# agent working with the developer: most inputs are estimates the agent
|
|
2195
|
+
# gathers from the app's code and from the developer (who the users
|
|
2196
|
+
# are, what an action saves them, what it costs to serve), and each
|
|
2197
|
+
# optional member's documentation says what its absence means, so send
|
|
2198
|
+
# only the inputs you have a basis for. Stateless: nothing is stored, no
|
|
2199
|
+
# app is required, and repeating a request returns the same
|
|
2200
|
+
# recommendation unless the service has been updated in between. Every
|
|
2201
|
+
# response carries the rendered texts summary and details. Smallest call
|
|
2202
|
+
# (MEDIUM confidence):
|
|
2203
|
+
# \{"segment":"CONSUMER","appType":"DAILY\_WORKFLOW","actions":\[\{"unitCost":0.02,"typicalMonthlyUsage":30,"valuePerUse":0.40}\]}.
|
|
2204
|
+
#
|
|
2205
|
+
# @option params [String] :app_name
|
|
2206
|
+
# Display name of the app, used in the rendered text. Absent: `your
|
|
2207
|
+
# app`.
|
|
2208
|
+
#
|
|
2209
|
+
# @option params [required, String] :segment
|
|
2210
|
+
# Who buys the app.
|
|
2211
|
+
#
|
|
2212
|
+
# @option params [required, String] :app_type
|
|
2213
|
+
# Kind of app. It sets the service's usage and value benchmarks for
|
|
2214
|
+
# this kind of app.
|
|
2215
|
+
#
|
|
2216
|
+
# @option params [String] :value_kind
|
|
2217
|
+
# What kind of value the app gives its users. Absent: PRODUCTIVITY. An
|
|
2218
|
+
# experiential app has no time or money value, so with EXPERIENTIAL each
|
|
2219
|
+
# of `actions[].minutesSaved`, `actions[].moneySaved`,
|
|
2220
|
+
# `actions[].valuePerUse`, `hourlyRate` and `valueShare` that is sent is
|
|
2221
|
+
# rejected. With EXPERIENTIAL, no `planOptions.publishedPrice` and no
|
|
2222
|
+
# comparables used, a CONSUMER app is valued at the typical monthly
|
|
2223
|
+
# price of public apps of its `appType` (there is none for
|
|
2224
|
+
# API\_WRAPPER), shown as an estimate. That estimate is not used when it
|
|
2225
|
+
# is too close to a typical user's usage cost, so the estimate alone
|
|
2226
|
+
# never makes the verdict NOT\_MONETIZABLE. The estimate exists only for
|
|
2227
|
+
# CONSUMER: a PROSUMER or ENTERPRISE experiential app with no
|
|
2228
|
+
# `planOptions.publishedPrice` and no usable comparables is priced from
|
|
2229
|
+
# cost (verdict COST\_ONLY, or COST\_NOT\_CHECKED when costs are not
|
|
2230
|
+
# checked: no `unitCost`, or `costs.source` NONE; confidence LOW).
|
|
2231
|
+
#
|
|
2232
|
+
# @option params [required, Array<Types::BillableAction>] :actions
|
|
2233
|
+
# The things that your app charges for, each with its cost to serve,
|
|
2234
|
+
# typical usage, and value to a customer. Names must be unique. Give a
|
|
2235
|
+
# value basis (`minutesSaved`, `moneySaved` or `valuePerUse`, one per
|
|
2236
|
+
# action) on every action or on none: when no action has a value basis
|
|
2237
|
+
# and there is no experiential estimate (see `valueKind`), the price is
|
|
2238
|
+
# based on cost (and comparables, if opted in, or
|
|
2239
|
+
# `planOptions.publishedPrice`) and the confidence is LOW. Give
|
|
2240
|
+
# `unitCost` on every action or on none.
|
|
2241
|
+
#
|
|
2242
|
+
# @option params [Float] :hourly_rate
|
|
2243
|
+
# What one hour of a customer's time is worth, in USD: the hourly rate
|
|
2244
|
+
# of the person whose time the app saves. Required when any action has
|
|
2245
|
+
# `minutesSaved`. There is no default. It is used only with
|
|
2246
|
+
# `actions[].minutesSaved`: sent when no action has `minutesSaved`, or
|
|
2247
|
+
# with `valueKind` EXPERIENTIAL, it is rejected.
|
|
2248
|
+
#
|
|
2249
|
+
# @option params [Float] :value_share
|
|
2250
|
+
# The most a typical customer would pay for the app, as a share of the
|
|
2251
|
+
# time value it saves them (`minutesSaved` / 60 times `hourlyRate`).
|
|
2252
|
+
# Above 1 when the minutes understate the value. The value of one use of
|
|
2253
|
+
# an action with `minutesSaved` is `minutesSaved` / 60 times
|
|
2254
|
+
# `hourlyRate` times the share; the share does not apply to `moneySaved`
|
|
2255
|
+
# or `valuePerUse`. When an action's value is above 0, each outside
|
|
2256
|
+
# option's `monthlyCost` is also weighed at this share (see
|
|
2257
|
+
# `OutsideOption`). Absent: the service's benchmark share. For PROSUMER
|
|
2258
|
+
# this value scales the service's benchmark share instead of replacing
|
|
2259
|
+
# it. With usable comparables the recommended price uses the service's
|
|
2260
|
+
# benchmark share for comparables instead, but this value still sets the
|
|
2261
|
+
# price from the app's value alone, which the confidence and the texts
|
|
2262
|
+
# compare with. Rejected unless an action's `minutesSaved`,
|
|
2263
|
+
# `moneySaved` or `valuePerUse` is above 0 and, besides, an action has
|
|
2264
|
+
# `minutesSaved` (0 counts) or an outside option's `monthlyCost` is
|
|
2265
|
+
# above 0: otherwise it changes nothing (with no value above 0 there is
|
|
2266
|
+
# no value estimate, and an outside option counts in full). Rejected
|
|
2267
|
+
# with `valueKind` EXPERIENTIAL.
|
|
2268
|
+
#
|
|
2269
|
+
# @option params [Types::FeatureScores] :features
|
|
2270
|
+
# How this app scores on the characteristics customers decide on, and
|
|
2271
|
+
# how much each one matters. Required when a comparable or an outside
|
|
2272
|
+
# option in `alternatives` is scored by `features`, and used only then:
|
|
2273
|
+
# sent when no comparable and no outside option is scored by `features`,
|
|
2274
|
+
# it is rejected. A comparable with `alternatives.comparablesOptIn`
|
|
2275
|
+
# OPTED\_OUT is validated but not used, so `features` scored only
|
|
2276
|
+
# against such comparables is validated with them and changes nothing.
|
|
2277
|
+
# Absent: every comparable and outside option is scored by its
|
|
2278
|
+
# `quality`.
|
|
2279
|
+
#
|
|
2280
|
+
# @option params [Types::CostInputs] :costs
|
|
2281
|
+
# Cost inputs beyond each action's `unitCost`: where the costs came
|
|
2282
|
+
# from, any costs that could not be priced, fixed monthly cost and
|
|
2283
|
+
# target margins. Absent: `costs.source` is inferred from
|
|
2284
|
+
# `actions[].unitCost`, and the costs count as complete but unconfirmed
|
|
2285
|
+
# (see `costs.unknown`).
|
|
2286
|
+
#
|
|
2287
|
+
# @option params [Types::AlternativeInputs] :alternatives
|
|
2288
|
+
# What customers could use instead of the app: comparable apps and what
|
|
2289
|
+
# they do without any product. Absent: no comparables
|
|
2290
|
+
# (`comparablesOptIn` OPTED\_OUT) and no outside options.
|
|
2291
|
+
#
|
|
2292
|
+
# @option params [Types::MarketInputs] :market
|
|
2293
|
+
# Who the customers are, how many there are and, for a deployed app, how
|
|
2294
|
+
# many pay today; and any checkout drop-off rates to use instead of the
|
|
2295
|
+
# benchmarks. Absent: each member's default (see `MarketInputs`).
|
|
2296
|
+
#
|
|
2297
|
+
# @option params [Types::PlanOptions] :plan_options
|
|
2298
|
+
# The pricing model and optional plans to consider, prices to evaluate,
|
|
2299
|
+
# and the developer's own price (`publishedPrice`). Absent: each
|
|
2300
|
+
# member's default (see `PlanOptions`); the service chooses the pricing
|
|
2301
|
+
# model and plans.
|
|
2302
|
+
#
|
|
2303
|
+
# @option params [Types::RequestContext] :context
|
|
2304
|
+
# Where the inputs came from, and notes on them. Changes no price, plan,
|
|
2305
|
+
# verdict or confidence label: only how `summary` and `details` label
|
|
2306
|
+
# and word the inputs. Absent: the rendered text uses default labels.
|
|
2307
|
+
#
|
|
2308
|
+
# @return [Types::GetPlanRecommendationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2309
|
+
#
|
|
2310
|
+
# * {Types::GetPlanRecommendationResponse#pricing_model #pricing_model} => String
|
|
2311
|
+
# * {Types::GetPlanRecommendationResponse#recommended_price #recommended_price} => Types::Price
|
|
2312
|
+
# * {Types::GetPlanRecommendationResponse#recommended_price_range #recommended_price_range} => Types::PriceRange
|
|
2313
|
+
# * {Types::GetPlanRecommendationResponse#unit_prices #unit_prices} => Array<Types::UnitPrice>
|
|
2314
|
+
# * {Types::GetPlanRecommendationResponse#plans #plans} => Array<Types::RecommendedPlan>
|
|
2315
|
+
# * {Types::GetPlanRecommendationResponse#credit_packs #credit_packs} => Array<Types::RecommendedCreditPack>
|
|
2316
|
+
# * {Types::GetPlanRecommendationResponse#verdict #verdict} => String
|
|
2317
|
+
# * {Types::GetPlanRecommendationResponse#confidence #confidence} => String
|
|
2318
|
+
# * {Types::GetPlanRecommendationResponse#confidence_reason #confidence_reason} => String
|
|
2319
|
+
# * {Types::GetPlanRecommendationResponse#basis #basis} => String
|
|
2320
|
+
# * {Types::GetPlanRecommendationResponse#costs #costs} => Types::CostOutcome
|
|
2321
|
+
# * {Types::GetPlanRecommendationResponse#alternatives #alternatives} => Types::AlternativesOutcome
|
|
2322
|
+
# * {Types::GetPlanRecommendationResponse#plan_options #plan_options} => Types::PlanOptionsOutcome
|
|
2323
|
+
# * {Types::GetPlanRecommendationResponse#analysis #analysis} => Types::PricingAnalysis
|
|
2324
|
+
# * {Types::GetPlanRecommendationResponse#recommendation_version #recommendation_version} => String
|
|
2325
|
+
# * {Types::GetPlanRecommendationResponse#summary #summary} => String
|
|
2326
|
+
# * {Types::GetPlanRecommendationResponse#details #details} => String
|
|
2327
|
+
#
|
|
2328
|
+
# @example Request syntax with placeholder values
|
|
2329
|
+
#
|
|
2330
|
+
# resp = client.get_plan_recommendation({
|
|
2331
|
+
# app_name: "PlanRecommendationAppName",
|
|
2332
|
+
# segment: "CONSUMER", # required, accepts CONSUMER, PROSUMER, ENTERPRISE
|
|
2333
|
+
# app_type: "INFRASTRUCTURE", # required, accepts INFRASTRUCTURE, DAILY_WORKFLOW, PERIODIC_WORKFLOW, POINT_UTILITY, CREATIVE, API_WRAPPER
|
|
2334
|
+
# value_kind: "PRODUCTIVITY", # accepts PRODUCTIVITY, EXPERIENTIAL
|
|
2335
|
+
# actions: [ # required
|
|
2336
|
+
# {
|
|
2337
|
+
# name: "ActionName",
|
|
2338
|
+
# unit: "BillableUnit",
|
|
2339
|
+
# unit_cost: 1.0,
|
|
2340
|
+
# typical_monthly_usage: 1.0, # required
|
|
2341
|
+
# minutes_saved: 1.0,
|
|
2342
|
+
# money_saved: 1.0,
|
|
2343
|
+
# value_per_use: 1.0,
|
|
2344
|
+
# },
|
|
2345
|
+
# ],
|
|
2346
|
+
# hourly_rate: 1.0,
|
|
2347
|
+
# value_share: 1.0,
|
|
2348
|
+
# features: {
|
|
2349
|
+
# app_scores: { # required
|
|
2350
|
+
# "FeatureName" => 1.0,
|
|
2351
|
+
# },
|
|
2352
|
+
# weights: {
|
|
2353
|
+
# "FeatureName" => 1.0,
|
|
2354
|
+
# },
|
|
2355
|
+
# },
|
|
2356
|
+
# costs: {
|
|
2357
|
+
# source: "ACTUALS", # accepts ACTUALS, LIVE, ESTIMATE, NONE
|
|
2358
|
+
# unknown: ["UnknownCostName"],
|
|
2359
|
+
# fixed_monthly_cost: 1.0,
|
|
2360
|
+
# margins: [1.0],
|
|
2361
|
+
# },
|
|
2362
|
+
# alternatives: {
|
|
2363
|
+
# comparables_opt_in: "OPTED_IN", # accepts OPTED_IN, OPTED_OUT
|
|
2364
|
+
# comparables: [
|
|
2365
|
+
# {
|
|
2366
|
+
# name: "ComparableName",
|
|
2367
|
+
# url: "ComparableUrl", # required
|
|
2368
|
+
# mechanism: "PAID_SUB", # required, accepts PAID_SUB, PER_REQUEST, FREE_CAPPED, FREEMIUM, ONE_TIME
|
|
2369
|
+
# price: { # required
|
|
2370
|
+
# currency_code: "CurrencyCode", # required
|
|
2371
|
+
# amount: "PriceAmount", # required
|
|
2372
|
+
# },
|
|
2373
|
+
# cap: 1.0,
|
|
2374
|
+
# included_units: 1.0,
|
|
2375
|
+
# overage_rate: 1.0,
|
|
2376
|
+
# quality: 1.0,
|
|
2377
|
+
# features: {
|
|
2378
|
+
# "FeatureName" => 1.0,
|
|
2379
|
+
# },
|
|
2380
|
+
# },
|
|
2381
|
+
# ],
|
|
2382
|
+
# outside_options: [
|
|
2383
|
+
# {
|
|
2384
|
+
# name: "ComparableName", # required
|
|
2385
|
+
# monthly_cost: 1.0, # required
|
|
2386
|
+
# quality: 1.0,
|
|
2387
|
+
# features: {
|
|
2388
|
+
# "FeatureName" => 1.0,
|
|
2389
|
+
# },
|
|
2390
|
+
# },
|
|
2391
|
+
# ],
|
|
2392
|
+
# },
|
|
2393
|
+
# market: {
|
|
2394
|
+
# expected_users: 1,
|
|
2395
|
+
# measured_conversion: {
|
|
2396
|
+
# paying_users: 1, # required
|
|
2397
|
+
# users: 1, # required
|
|
2398
|
+
# },
|
|
2399
|
+
# customer_types: [
|
|
2400
|
+
# {
|
|
2401
|
+
# name: "CustomerTypeName", # required
|
|
2402
|
+
# share: 1.0, # required
|
|
2403
|
+
# usage_multiplier: 1.0, # required
|
|
2404
|
+
# value_per_use_multiplier: 1.0, # required
|
|
2405
|
+
# usage_spread: "SIMILAR", # accepts SIMILAR, NORMAL, VARIED, EXTREME
|
|
2406
|
+
# feature_weights: {
|
|
2407
|
+
# "FeatureName" => 1.0,
|
|
2408
|
+
# },
|
|
2409
|
+
# },
|
|
2410
|
+
# ],
|
|
2411
|
+
# checkout_drop_off: {
|
|
2412
|
+
# free_plan: 1.0,
|
|
2413
|
+
# flat: 1.0,
|
|
2414
|
+
# per_use: 1.0,
|
|
2415
|
+
# tiered: 1.0,
|
|
2416
|
+
# },
|
|
2417
|
+
# },
|
|
2418
|
+
# plan_options: {
|
|
2419
|
+
# pricing_model_preference: "FLAT", # accepts FLAT, TIERED, PER_USE, PER_USE_SPLIT
|
|
2420
|
+
# free_tier_inclusion: "INCLUDE", # accepts INCLUDE, EXCLUDE
|
|
2421
|
+
# max_tier_inclusion: "INCLUDE", # accepts INCLUDE, EXCLUDE
|
|
2422
|
+
# annual_plan_inclusion: "INCLUDE", # accepts INCLUDE, EXCLUDE
|
|
2423
|
+
# credit_pack_inclusion: "INCLUDE", # accepts INCLUDE, EXCLUDE
|
|
2424
|
+
# plan_prices: [
|
|
2425
|
+
# {
|
|
2426
|
+
# plan_code: "RecommendedPlanCode", # required
|
|
2427
|
+
# action_name: "ActionName",
|
|
2428
|
+
# price: { # required
|
|
2429
|
+
# currency_code: "CurrencyCode", # required
|
|
2430
|
+
# amount: "PriceAmount", # required
|
|
2431
|
+
# },
|
|
2432
|
+
# },
|
|
2433
|
+
# ],
|
|
2434
|
+
# published_price: {
|
|
2435
|
+
# currency_code: "CurrencyCode", # required
|
|
2436
|
+
# amount: "PriceAmount", # required
|
|
2437
|
+
# },
|
|
2438
|
+
# },
|
|
2439
|
+
# context: {
|
|
2440
|
+
# non_aws_costs_note: "SensitiveAssumptionText",
|
|
2441
|
+
# value_basis: "SensitiveAssumptionText",
|
|
2442
|
+
# expected_users_basis: "SensitiveAssumptionText",
|
|
2443
|
+
# usage_sources: {
|
|
2444
|
+
# "BillableActionName" => "ESTIMATE", # accepts ESTIMATE, MEASURED
|
|
2445
|
+
# },
|
|
2446
|
+
# customer_type_descriptions: {
|
|
2447
|
+
# "CustomerTypeName" => "SensitiveAssumptionText",
|
|
2448
|
+
# },
|
|
2449
|
+
# },
|
|
2450
|
+
# })
|
|
2451
|
+
#
|
|
2452
|
+
# @example Response structure
|
|
2453
|
+
#
|
|
2454
|
+
# resp.pricing_model #=> String, one of "FLAT", "TIERED", "PER_USE", "PER_USE_SPLIT"
|
|
2455
|
+
# resp.recommended_price.currency_code #=> String
|
|
2456
|
+
# resp.recommended_price.amount #=> String
|
|
2457
|
+
# resp.recommended_price_range.low.currency_code #=> String
|
|
2458
|
+
# resp.recommended_price_range.low.amount #=> String
|
|
2459
|
+
# resp.recommended_price_range.high.currency_code #=> String
|
|
2460
|
+
# resp.recommended_price_range.high.amount #=> String
|
|
2461
|
+
# resp.unit_prices #=> Array
|
|
2462
|
+
# resp.unit_prices[0].action_name #=> String
|
|
2463
|
+
# resp.unit_prices[0].price.currency_code #=> String
|
|
2464
|
+
# resp.unit_prices[0].price.amount #=> String
|
|
2465
|
+
# resp.plans #=> Array
|
|
2466
|
+
# resp.plans[0].plan_code #=> String
|
|
2467
|
+
# resp.plans[0].name #=> String
|
|
2468
|
+
# resp.plans[0].billing_cycle #=> String, one of "MONTHLY", "ANNUAL", "ONE_TIME"
|
|
2469
|
+
# resp.plans[0].price.currency_code #=> String
|
|
2470
|
+
# resp.plans[0].price.amount #=> String
|
|
2471
|
+
# resp.plans[0].included_quotas #=> Array
|
|
2472
|
+
# resp.plans[0].included_quotas[0].action_name #=> String
|
|
2473
|
+
# resp.plans[0].included_quotas[0].included_quantity #=> Integer
|
|
2474
|
+
# resp.plans[0].included_quotas[0].overage_policy #=> String, one of "NO_OVERAGE_THROTTLE", "APPLY_FIXED_OVERAGE", "APPLY_TIERED_OVERAGE"
|
|
2475
|
+
# resp.plans[0].included_quotas[0].overage_price.currency_code #=> String
|
|
2476
|
+
# resp.plans[0].included_quotas[0].overage_price.amount #=> String
|
|
2477
|
+
# resp.plans[0].upgrade_plan_codes #=> Array
|
|
2478
|
+
# resp.plans[0].upgrade_plan_codes[0] #=> String
|
|
2479
|
+
# resp.plans[0].downgrade_plan_codes #=> Array
|
|
2480
|
+
# resp.plans[0].downgrade_plan_codes[0] #=> String
|
|
2481
|
+
# resp.credit_packs #=> Array
|
|
2482
|
+
# resp.credit_packs[0].name #=> String
|
|
2483
|
+
# resp.credit_packs[0].action_name #=> String
|
|
2484
|
+
# resp.credit_packs[0].quantity #=> Integer
|
|
2485
|
+
# resp.credit_packs[0].price.currency_code #=> String
|
|
2486
|
+
# resp.credit_packs[0].price.amount #=> String
|
|
2487
|
+
# resp.verdict #=> String, one of "HEALTHY", "THIN_MARGIN", "NOT_MONETIZABLE", "COST_ONLY", "COST_NOT_CHECKED"
|
|
2488
|
+
# resp.confidence #=> String, one of "HIGH", "MEDIUM", "LOW"
|
|
2489
|
+
# resp.confidence_reason #=> String
|
|
2490
|
+
# resp.basis #=> String
|
|
2491
|
+
# resp.costs.status #=> String, one of "COMPLETE", "INCOMPLETE", "NOT_CHECKED"
|
|
2492
|
+
# resp.costs.cover_status #=> String, one of "MODELED", "COVERED", "ARITHMETIC", "NOT_CHECKED"
|
|
2493
|
+
# resp.costs.cover_prices #=> Array
|
|
2494
|
+
# resp.costs.cover_prices[0].margin #=> Float
|
|
2495
|
+
# resp.costs.cover_prices[0].price.currency_code #=> String
|
|
2496
|
+
# resp.costs.cover_prices[0].price.amount #=> String
|
|
2497
|
+
# resp.costs.break_even.expected.cost_per_payer.currency_code #=> String
|
|
2498
|
+
# resp.costs.break_even.expected.cost_per_payer.amount #=> String
|
|
2499
|
+
# resp.costs.break_even.expected.payers #=> Float
|
|
2500
|
+
# resp.costs.break_even.low.cost_per_payer.currency_code #=> String
|
|
2501
|
+
# resp.costs.break_even.low.cost_per_payer.amount #=> String
|
|
2502
|
+
# resp.costs.break_even.low.payers #=> Float
|
|
2503
|
+
# resp.costs.break_even.high.cost_per_payer.currency_code #=> String
|
|
2504
|
+
# resp.costs.break_even.high.cost_per_payer.amount #=> String
|
|
2505
|
+
# resp.costs.break_even.high.payers #=> Float
|
|
2506
|
+
# resp.costs.implied_margin #=> Float
|
|
2507
|
+
# resp.alternatives.comparables_used #=> Array
|
|
2508
|
+
# resp.alternatives.comparables_used[0] #=> String
|
|
2509
|
+
# resp.alternatives.comparables_dropped #=> Array
|
|
2510
|
+
# resp.alternatives.comparables_dropped[0].name #=> String
|
|
2511
|
+
# resp.alternatives.comparables_dropped[0].price.currency_code #=> String
|
|
2512
|
+
# resp.alternatives.comparables_dropped[0].price.amount #=> String
|
|
2513
|
+
# resp.alternatives.comparables_dropped[0].reason #=> String
|
|
2514
|
+
# resp.plan_options.preference_outcome #=> String, one of "HONORED", "NOT_HONORED", "NOT_REQUESTED"
|
|
2515
|
+
# resp.plan_options.free_tier.status #=> String, one of "INCLUDED", "TRIAL_SUGGESTED", "NOT_INCLUDED"
|
|
2516
|
+
# resp.plan_options.free_tier.status_source #=> String, one of "REQUESTED", "SEGMENT_DEFAULT"
|
|
2517
|
+
# resp.plan_options.free_tier.trial_days #=> Integer
|
|
2518
|
+
# resp.plan_options.free_tier.free_users #=> Float
|
|
2519
|
+
# resp.plan_options.free_tier.conversion #=> Float
|
|
2520
|
+
# resp.plan_options.free_tier.monthly_cost.currency_code #=> String
|
|
2521
|
+
# resp.plan_options.free_tier.monthly_cost.amount #=> String
|
|
2522
|
+
# resp.plan_options.max_tier.status #=> String, one of "INCLUDED", "INCLUDED_AS_REQUESTED", "NOT_INCLUDED"
|
|
2523
|
+
# resp.plan_options.max_tier.price.currency_code #=> String
|
|
2524
|
+
# resp.plan_options.max_tier.price.amount #=> String
|
|
2525
|
+
# resp.plan_options.evaluated_plan_prices #=> Array
|
|
2526
|
+
# resp.plan_options.evaluated_plan_prices[0].plan_code #=> String
|
|
2527
|
+
# resp.plan_options.evaluated_plan_prices[0].price.currency_code #=> String
|
|
2528
|
+
# resp.plan_options.evaluated_plan_prices[0].price.amount #=> String
|
|
2529
|
+
# resp.plan_options.evaluated_plan_prices[0].monthly_profit #=> String
|
|
2530
|
+
# resp.plan_options.evaluated_plan_prices[0].paid_share #=> Float
|
|
2531
|
+
# resp.plan_options.evaluated_plan_prices[0].verdict #=> String, one of "HEALTHY", "THIN_MARGIN", "NOT_MONETIZABLE", "COST_ONLY", "COST_NOT_CHECKED"
|
|
2532
|
+
# resp.plan_options.evaluated_plan_prices[0].plans #=> Array
|
|
2533
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].plan_code #=> String
|
|
2534
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].name #=> String
|
|
2535
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].billing_cycle #=> String, one of "MONTHLY", "ANNUAL", "ONE_TIME"
|
|
2536
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].price.currency_code #=> String
|
|
2537
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].price.amount #=> String
|
|
2538
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].included_quotas #=> Array
|
|
2539
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].included_quotas[0].action_name #=> String
|
|
2540
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].included_quotas[0].included_quantity #=> Integer
|
|
2541
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].included_quotas[0].overage_policy #=> String, one of "NO_OVERAGE_THROTTLE", "APPLY_FIXED_OVERAGE", "APPLY_TIERED_OVERAGE"
|
|
2542
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].included_quotas[0].overage_price.currency_code #=> String
|
|
2543
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].included_quotas[0].overage_price.amount #=> String
|
|
2544
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].upgrade_plan_codes #=> Array
|
|
2545
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].upgrade_plan_codes[0] #=> String
|
|
2546
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].downgrade_plan_codes #=> Array
|
|
2547
|
+
# resp.plan_options.evaluated_plan_prices[0].plans[0].downgrade_plan_codes[0] #=> String
|
|
2548
|
+
# resp.plan_options.evaluated_plan_prices[0].credit_packs #=> Array
|
|
2549
|
+
# resp.plan_options.evaluated_plan_prices[0].credit_packs[0].name #=> String
|
|
2550
|
+
# resp.plan_options.evaluated_plan_prices[0].credit_packs[0].action_name #=> String
|
|
2551
|
+
# resp.plan_options.evaluated_plan_prices[0].credit_packs[0].quantity #=> Integer
|
|
2552
|
+
# resp.plan_options.evaluated_plan_prices[0].credit_packs[0].price.currency_code #=> String
|
|
2553
|
+
# resp.plan_options.evaluated_plan_prices[0].credit_packs[0].price.amount #=> String
|
|
2554
|
+
# resp.analysis.model_comparison #=> Array
|
|
2555
|
+
# resp.analysis.model_comparison[0].pricing_model #=> String, one of "FLAT", "TIERED", "PER_USE", "PER_USE_SPLIT"
|
|
2556
|
+
# resp.analysis.model_comparison[0].monthly_profit #=> String
|
|
2557
|
+
# resp.analysis.model_comparison[0].monthly_revenue.currency_code #=> String
|
|
2558
|
+
# resp.analysis.model_comparison[0].monthly_revenue.amount #=> String
|
|
2559
|
+
# resp.analysis.model_comparison[0].margin #=> Float
|
|
2560
|
+
# resp.analysis.model_comparison[0].paid_share #=> Float
|
|
2561
|
+
# resp.analysis.pricing_model_caveats #=> Array
|
|
2562
|
+
# resp.analysis.pricing_model_caveats[0] #=> String, one of "CLOSE_CALL", "CHECKOUT_DROP_OFF"
|
|
2563
|
+
# resp.analysis.friction_alternative #=> String, one of "FLAT", "TIERED", "PER_USE", "PER_USE_SPLIT"
|
|
2564
|
+
# resp.recommendation_version #=> String
|
|
2565
|
+
# resp.summary #=> String
|
|
2566
|
+
# resp.details #=> String
|
|
2567
|
+
#
|
|
2568
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetPlanRecommendation AWS API Documentation
|
|
2569
|
+
#
|
|
2570
|
+
# @overload get_plan_recommendation(params = {})
|
|
2571
|
+
# @param [Hash] params ({})
|
|
2572
|
+
def get_plan_recommendation(params = {}, options = {})
|
|
2573
|
+
req = build_request(:get_plan_recommendation, params)
|
|
2574
|
+
req.send_request(options)
|
|
2575
|
+
end
|
|
2576
|
+
|
|
2577
|
+
# Returns a user's current subscription and any pending change.
|
|
2578
|
+
#
|
|
2579
|
+
# @option params [required, String] :app_id
|
|
2580
|
+
# The ID of the app.
|
|
2581
|
+
#
|
|
2582
|
+
# @option params [required, String] :user_id
|
|
2583
|
+
# An opaque identifier that you assign to an end user. Do not include
|
|
2584
|
+
# personally identifiable or otherwise sensitive data in this value.
|
|
2585
|
+
#
|
|
2586
|
+
# @option params [required, String] :scope
|
|
2587
|
+
# Required. The environment: live or sandbox.
|
|
2588
|
+
#
|
|
2589
|
+
# @return [Types::GetSubscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2590
|
+
#
|
|
2591
|
+
# * {Types::GetSubscriptionResponse#subscription #subscription} => Types::Subscription
|
|
2592
|
+
# * {Types::GetSubscriptionResponse#pending_change #pending_change} => Types::PendingChange
|
|
2593
|
+
# * {Types::GetSubscriptionResponse#current_period_ends_at #current_period_ends_at} => Time
|
|
2594
|
+
#
|
|
2595
|
+
# @example Request syntax with placeholder values
|
|
2596
|
+
#
|
|
2597
|
+
# resp = client.get_subscription({
|
|
2598
|
+
# app_id: "AppId", # required
|
|
2599
|
+
# user_id: "UserId", # required
|
|
2600
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
2601
|
+
# })
|
|
2602
|
+
#
|
|
2603
|
+
# @example Response structure
|
|
2604
|
+
#
|
|
2605
|
+
# resp.subscription.app_id #=> String
|
|
2606
|
+
# resp.subscription.user_id #=> String
|
|
2607
|
+
# resp.subscription.plan_id #=> String
|
|
2608
|
+
# resp.subscription.effective_at #=> Time
|
|
2609
|
+
# resp.subscription.billing_anchor_date #=> Time
|
|
2610
|
+
# resp.subscription.billing_cycle #=> String, one of "MONTHLY", "ANNUAL", "ONE_TIME"
|
|
2611
|
+
# resp.pending_change.plan_id #=> String
|
|
2612
|
+
# resp.pending_change.plan_name #=> String
|
|
2613
|
+
# resp.pending_change.effective_at #=> Time
|
|
2614
|
+
# resp.current_period_ends_at #=> Time
|
|
2615
|
+
#
|
|
2616
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetSubscription AWS API Documentation
|
|
2617
|
+
#
|
|
2618
|
+
# @overload get_subscription(params = {})
|
|
2619
|
+
# @param [Hash] params ({})
|
|
2620
|
+
def get_subscription(params = {}, options = {})
|
|
2621
|
+
req = build_request(:get_subscription, params)
|
|
2622
|
+
req.send_request(options)
|
|
2623
|
+
end
|
|
2624
|
+
|
|
2625
|
+
# Returns the historical subscription records for a user. We recommend
|
|
2626
|
+
# using pagination to ensure that the operation returns quickly and
|
|
2627
|
+
# successfully.
|
|
2628
|
+
#
|
|
2629
|
+
# @option params [required, String] :app_id
|
|
2630
|
+
# The ID of the app.
|
|
2631
|
+
#
|
|
2632
|
+
# @option params [required, String] :user_id
|
|
2633
|
+
# An opaque identifier that you assign to an end user. Do not include
|
|
2634
|
+
# personally identifiable or otherwise sensitive data in this value.
|
|
2635
|
+
#
|
|
2636
|
+
# @option params [Time,DateTime,Date,Integer,String] :effective_after
|
|
2637
|
+
# Returns records whose effectiveDate is at or after this instant
|
|
2638
|
+
# (inclusive).
|
|
2639
|
+
#
|
|
2640
|
+
# @option params [Time,DateTime,Date,Integer,String] :effective_before
|
|
2641
|
+
# Returns records whose effectiveDate is before this instant
|
|
2642
|
+
# (exclusive).
|
|
2643
|
+
#
|
|
2644
|
+
# @option params [Integer] :max_results
|
|
2645
|
+
# The maximum number of items to return in a single page.
|
|
2646
|
+
#
|
|
2647
|
+
# @option params [String] :next_token
|
|
2648
|
+
# An opaque pagination token. Pass the value returned in a response back
|
|
2649
|
+
# on the next request to retrieve the following page; absent when there
|
|
2650
|
+
# are no more results.
|
|
2651
|
+
#
|
|
2652
|
+
# @option params [required, String] :scope
|
|
2653
|
+
# Required. The environment: live or sandbox.
|
|
2654
|
+
#
|
|
2655
|
+
# @return [Types::GetSubscriptionHistoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2656
|
+
#
|
|
2657
|
+
# * {Types::GetSubscriptionHistoryResponse#items #items} => Array<Types::Subscription>
|
|
2658
|
+
# * {Types::GetSubscriptionHistoryResponse#next_token #next_token} => String
|
|
2659
|
+
#
|
|
2660
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
2661
|
+
#
|
|
2662
|
+
# @example Request syntax with placeholder values
|
|
2663
|
+
#
|
|
2664
|
+
# resp = client.get_subscription_history({
|
|
2665
|
+
# app_id: "AppId", # required
|
|
2666
|
+
# user_id: "UserId", # required
|
|
2667
|
+
# effective_after: Time.now,
|
|
2668
|
+
# effective_before: Time.now,
|
|
2669
|
+
# max_results: 1,
|
|
2670
|
+
# next_token: "NextToken",
|
|
2671
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
2672
|
+
# })
|
|
2673
|
+
#
|
|
2674
|
+
# @example Response structure
|
|
2675
|
+
#
|
|
2676
|
+
# resp.items #=> Array
|
|
2677
|
+
# resp.items[0].app_id #=> String
|
|
2678
|
+
# resp.items[0].user_id #=> String
|
|
2679
|
+
# resp.items[0].plan_id #=> String
|
|
2680
|
+
# resp.items[0].effective_at #=> Time
|
|
2681
|
+
# resp.items[0].billing_anchor_date #=> Time
|
|
2682
|
+
# resp.items[0].billing_cycle #=> String, one of "MONTHLY", "ANNUAL", "ONE_TIME"
|
|
2683
|
+
# resp.next_token #=> String
|
|
2684
|
+
#
|
|
2685
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetSubscriptionHistory AWS API Documentation
|
|
2686
|
+
#
|
|
2687
|
+
# @overload get_subscription_history(params = {})
|
|
2688
|
+
# @param [Hash] params ({})
|
|
2689
|
+
def get_subscription_history(params = {}, options = {})
|
|
2690
|
+
req = build_request(:get_subscription_history, params)
|
|
2691
|
+
req.send_request(options)
|
|
2692
|
+
end
|
|
2693
|
+
|
|
2694
|
+
# Returns a single third-party cost by its identifier. An unknown cost
|
|
2695
|
+
# identifier returns a ResourceNotFoundException.
|
|
2696
|
+
#
|
|
2697
|
+
# @option params [required, String] :app_id
|
|
2698
|
+
# The ID of the app.
|
|
2699
|
+
#
|
|
2700
|
+
# @option params [required, String] :cost_id
|
|
2701
|
+
# The ID of the cost to return.
|
|
2702
|
+
#
|
|
2703
|
+
# @return [Types::GetThirdPartyCostResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2704
|
+
#
|
|
2705
|
+
# * {Types::GetThirdPartyCostResponse#item #item} => Types::ThirdPartyCostItem
|
|
2706
|
+
#
|
|
2707
|
+
# @example Request syntax with placeholder values
|
|
2708
|
+
#
|
|
2709
|
+
# resp = client.get_third_party_cost({
|
|
2710
|
+
# app_id: "AppId", # required
|
|
2711
|
+
# cost_id: "ThirdPartyCostId", # required
|
|
2712
|
+
# })
|
|
2713
|
+
#
|
|
2714
|
+
# @example Response structure
|
|
2715
|
+
#
|
|
2716
|
+
# resp.item.app_id #=> String
|
|
2717
|
+
# resp.item.cost_id #=> String
|
|
2718
|
+
# resp.item.label #=> String
|
|
2719
|
+
# resp.item.amount #=> String
|
|
2720
|
+
# resp.item.frequency #=> String, one of "MONTHLY"
|
|
2721
|
+
# resp.item.currency #=> String, one of "USD"
|
|
2722
|
+
# resp.item.description #=> String
|
|
2723
|
+
# resp.item.effective_from #=> String
|
|
2724
|
+
# resp.item.effective_to #=> String
|
|
2725
|
+
# resp.item.created_at #=> Time
|
|
2726
|
+
# resp.item.updated_at #=> Time
|
|
2727
|
+
#
|
|
2728
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/GetThirdPartyCost AWS API Documentation
|
|
2729
|
+
#
|
|
2730
|
+
# @overload get_third_party_cost(params = {})
|
|
2731
|
+
# @param [Hash] params ({})
|
|
2732
|
+
def get_third_party_cost(params = {}, options = {})
|
|
2733
|
+
req = build_request(:get_third_party_cost, params)
|
|
2734
|
+
req.send_request(options)
|
|
2735
|
+
end
|
|
2736
|
+
|
|
2737
|
+
# Returns the apps owned by the caller. We recommend using pagination to
|
|
2738
|
+
# ensure that the operation returns quickly and successfully.
|
|
2739
|
+
#
|
|
2740
|
+
# @option params [Integer] :max_results
|
|
2741
|
+
# The maximum number of items to return in a single page. Valid range: 1
|
|
2742
|
+
# to 100.
|
|
2743
|
+
#
|
|
2744
|
+
# @option params [String] :next_token
|
|
2745
|
+
# An opaque pagination token. Pass the value returned in a response back
|
|
2746
|
+
# on the next request to retrieve the following page; absent when there
|
|
2747
|
+
# are no more results.
|
|
2748
|
+
#
|
|
2749
|
+
# @return [Types::ListAppsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2750
|
+
#
|
|
2751
|
+
# * {Types::ListAppsResponse#apps #apps} => Array<Types::App>
|
|
2752
|
+
# * {Types::ListAppsResponse#next_token #next_token} => String
|
|
2753
|
+
#
|
|
2754
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
2755
|
+
#
|
|
2756
|
+
# @example Request syntax with placeholder values
|
|
2757
|
+
#
|
|
2758
|
+
# resp = client.list_apps({
|
|
2759
|
+
# max_results: 1,
|
|
2760
|
+
# next_token: "NextToken",
|
|
2761
|
+
# })
|
|
2762
|
+
#
|
|
2763
|
+
# @example Response structure
|
|
2764
|
+
#
|
|
2765
|
+
# resp.apps #=> Array
|
|
2766
|
+
# resp.apps[0].app_id #=> String
|
|
2767
|
+
# resp.apps[0].name #=> String
|
|
2768
|
+
# resp.apps[0].description #=> String
|
|
2769
|
+
# resp.apps[0].status #=> String, one of "ACTIVE", "DELETED"
|
|
2770
|
+
# resp.apps[0].created_at #=> Time
|
|
2771
|
+
# resp.apps[0].arn #=> String
|
|
2772
|
+
# resp.next_token #=> String
|
|
2773
|
+
#
|
|
2774
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/ListApps AWS API Documentation
|
|
2775
|
+
#
|
|
2776
|
+
# @overload list_apps(params = {})
|
|
2777
|
+
# @param [Hash] params ({})
|
|
2778
|
+
def list_apps(params = {}, options = {})
|
|
2779
|
+
req = build_request(:list_apps, params)
|
|
2780
|
+
req.send_request(options)
|
|
2781
|
+
end
|
|
2782
|
+
|
|
2783
|
+
# Returns the metrics for an app. Returns a paginated list; we recommend
|
|
2784
|
+
# using pagination to ensure that the operation returns quickly and
|
|
2785
|
+
# successfully.
|
|
2786
|
+
#
|
|
2787
|
+
# @option params [required, String] :app_id
|
|
2788
|
+
# The ID of the app.
|
|
2789
|
+
#
|
|
2790
|
+
# @option params [String] :stage
|
|
2791
|
+
# The offering stage to list metrics from: DRAFT (the latest authored
|
|
2792
|
+
# draft) or PUBLISHED (the published offering customers see). Absent:
|
|
2793
|
+
# PUBLISHED when scope=live, DRAFT when scope=sandbox. A stage with
|
|
2794
|
+
# nothing published lists as empty.
|
|
2795
|
+
#
|
|
2796
|
+
# @option params [Integer] :max_results
|
|
2797
|
+
# The maximum number of items to return in a single page. Valid range is
|
|
2798
|
+
# 1 to 100.
|
|
2799
|
+
#
|
|
2800
|
+
# @option params [String] :next_token
|
|
2801
|
+
# An opaque pagination token. Pass the value returned in a response back
|
|
2802
|
+
# on the next request to retrieve the following page; absent when there
|
|
2803
|
+
# are no more results.
|
|
2804
|
+
#
|
|
2805
|
+
# @option params [required, String] :scope
|
|
2806
|
+
# Required. The environment: live or sandbox. live reads the published
|
|
2807
|
+
# offering by default; sandbox reads the app's draft (what the sandbox
|
|
2808
|
+
# runs).
|
|
2809
|
+
#
|
|
2810
|
+
# @return [Types::ListMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2811
|
+
#
|
|
2812
|
+
# * {Types::ListMetricsResponse#metrics #metrics} => Array<Types::Metric>
|
|
2813
|
+
# * {Types::ListMetricsResponse#next_token #next_token} => String
|
|
2814
|
+
#
|
|
2815
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
2816
|
+
#
|
|
2817
|
+
# @example Request syntax with placeholder values
|
|
2818
|
+
#
|
|
2819
|
+
# resp = client.list_metrics({
|
|
2820
|
+
# app_id: "AppId", # required
|
|
2821
|
+
# stage: "DRAFT", # accepts DRAFT, PUBLISHED
|
|
2822
|
+
# max_results: 1,
|
|
2823
|
+
# next_token: "NextToken",
|
|
2824
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
2825
|
+
# })
|
|
2826
|
+
#
|
|
2827
|
+
# @example Response structure
|
|
2828
|
+
#
|
|
2829
|
+
# resp.metrics #=> Array
|
|
2830
|
+
# resp.metrics[0].app_id #=> String
|
|
2831
|
+
# resp.metrics[0].metric_id #=> String
|
|
2832
|
+
# resp.metrics[0].name #=> String
|
|
2833
|
+
# resp.metrics[0].description #=> String
|
|
2834
|
+
# resp.metrics[0].event_type #=> String
|
|
2835
|
+
# resp.metrics[0].unit_name #=> String
|
|
2836
|
+
# resp.metrics[0].definition.filters #=> Array
|
|
2837
|
+
# resp.metrics[0].definition.filters[0].field #=> String
|
|
2838
|
+
# resp.metrics[0].definition.filters[0].operator #=> String, one of "EQUALS", "NOT_EQUALS", "IN", "NOT_IN"
|
|
2839
|
+
# resp.metrics[0].definition.filters[0].values #=> Array
|
|
2840
|
+
# resp.metrics[0].definition.filters[0].values[0] #=> String
|
|
2841
|
+
# resp.metrics[0].definition.function #=> String, one of "SUM", "COUNT", "MAX"
|
|
2842
|
+
# resp.metrics[0].definition.function_field #=> String
|
|
2843
|
+
# resp.metrics[0].definition.group_by #=> Array
|
|
2844
|
+
# resp.metrics[0].definition.group_by[0] #=> String
|
|
2845
|
+
# resp.metrics[0].definition.period #=> String, one of "MONTHLY"
|
|
2846
|
+
# resp.metrics[0].arn #=> String
|
|
2847
|
+
# resp.metrics[0].stage #=> String, one of "DRAFT", "PUBLISHED"
|
|
2848
|
+
# resp.next_token #=> String
|
|
2849
|
+
#
|
|
2850
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/ListMetrics AWS API Documentation
|
|
2851
|
+
#
|
|
2852
|
+
# @overload list_metrics(params = {})
|
|
2853
|
+
# @param [Hash] params ({})
|
|
2854
|
+
def list_metrics(params = {}, options = {})
|
|
2855
|
+
req = build_request(:list_metrics, params)
|
|
2856
|
+
req.send_request(options)
|
|
2857
|
+
end
|
|
2858
|
+
|
|
2859
|
+
# Lists the one-time prices for an app. Returns a paginated list; use
|
|
2860
|
+
# the nextToken value to retrieve additional pages.
|
|
2861
|
+
#
|
|
2862
|
+
# @option params [required, String] :app_id
|
|
2863
|
+
# The ID of the app whose one-time prices are listed.
|
|
2864
|
+
#
|
|
2865
|
+
# @option params [String] :stage
|
|
2866
|
+
# The offering stage to list one-time prices from: DRAFT (the latest
|
|
2867
|
+
# authored draft) or PUBLISHED (the published offering customers see).
|
|
2868
|
+
# Absent: PUBLISHED when scope=live, DRAFT when scope=sandbox.
|
|
2869
|
+
#
|
|
2870
|
+
# @option params [Integer] :max_results
|
|
2871
|
+
# The maximum number of one-time prices to return in a single call. To
|
|
2872
|
+
# retrieve the remaining results, make another call with the nextToken
|
|
2873
|
+
# value that is returned in the response.
|
|
2874
|
+
#
|
|
2875
|
+
# @option params [String] :next_token
|
|
2876
|
+
# The pagination token that is returned by a previous call. Use it to
|
|
2877
|
+
# retrieve the next page of results. Omit this parameter on the first
|
|
2878
|
+
# call.
|
|
2879
|
+
#
|
|
2880
|
+
# @option params [required, String] :scope
|
|
2881
|
+
# Required. The environment: live or sandbox. live reads the published
|
|
2882
|
+
# offering by default; sandbox reads the app's draft (what the sandbox
|
|
2883
|
+
# runs).
|
|
2884
|
+
#
|
|
2885
|
+
# @return [Types::ListOneTimePricesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2886
|
+
#
|
|
2887
|
+
# * {Types::ListOneTimePricesResponse#one_time_prices #one_time_prices} => Array<Types::OneTimePrice>
|
|
2888
|
+
# * {Types::ListOneTimePricesResponse#next_token #next_token} => String
|
|
2889
|
+
#
|
|
2890
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
2891
|
+
#
|
|
2892
|
+
# @example Request syntax with placeholder values
|
|
2893
|
+
#
|
|
2894
|
+
# resp = client.list_one_time_prices({
|
|
2895
|
+
# app_id: "AppId", # required
|
|
2896
|
+
# stage: "DRAFT", # accepts DRAFT, PUBLISHED
|
|
2897
|
+
# max_results: 1,
|
|
2898
|
+
# next_token: "String",
|
|
2899
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
2900
|
+
# })
|
|
2901
|
+
#
|
|
2902
|
+
# @example Response structure
|
|
2903
|
+
#
|
|
2904
|
+
# resp.one_time_prices #=> Array
|
|
2905
|
+
# resp.one_time_prices[0].arn #=> String
|
|
2906
|
+
# resp.one_time_prices[0].app_id #=> String
|
|
2907
|
+
# resp.one_time_prices[0].one_time_price_id #=> String
|
|
2908
|
+
# resp.one_time_prices[0].definition.name #=> String
|
|
2909
|
+
# resp.one_time_prices[0].definition.price.currency_code #=> String
|
|
2910
|
+
# resp.one_time_prices[0].definition.price.amount #=> String
|
|
2911
|
+
# resp.one_time_prices[0].definition.metric_id #=> String
|
|
2912
|
+
# resp.one_time_prices[0].definition.capacity #=> Integer
|
|
2913
|
+
# resp.one_time_prices[0].stage #=> String, one of "DRAFT", "PUBLISHED"
|
|
2914
|
+
# resp.next_token #=> String
|
|
2915
|
+
#
|
|
2916
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/ListOneTimePrices AWS API Documentation
|
|
2917
|
+
#
|
|
2918
|
+
# @overload list_one_time_prices(params = {})
|
|
2919
|
+
# @param [Hash] params ({})
|
|
2920
|
+
def list_one_time_prices(params = {}, options = {})
|
|
2921
|
+
req = build_request(:list_one_time_prices, params)
|
|
2922
|
+
req.send_request(options)
|
|
2923
|
+
end
|
|
2924
|
+
|
|
2925
|
+
# Returns the plans for an app. We recommend using pagination to ensure
|
|
2926
|
+
# that the operation returns quickly and successfully.
|
|
2927
|
+
#
|
|
2928
|
+
# @option params [required, String] :app_id
|
|
2929
|
+
# The ID of the app.
|
|
2930
|
+
#
|
|
2931
|
+
# @option params [String] :stage
|
|
2932
|
+
# Which offering stage to list plans from: DRAFT (the latest authored
|
|
2933
|
+
# draft) or PUBLISHED (the published offering customers see). Absent:
|
|
2934
|
+
# PUBLISHED when scope=live, DRAFT when scope=sandbox. A stage with
|
|
2935
|
+
# nothing published yet lists as empty.
|
|
2936
|
+
#
|
|
2937
|
+
# @option params [Integer] :max_results
|
|
2938
|
+
# The maximum number of items to return in a single page. Valid range is
|
|
2939
|
+
# 1 to 100.
|
|
2940
|
+
#
|
|
2941
|
+
# @option params [String] :next_token
|
|
2942
|
+
# An opaque pagination token. Pass the value returned in a response back
|
|
2943
|
+
# on the next request to retrieve the following page; absent when there
|
|
2944
|
+
# are no more results.
|
|
2945
|
+
#
|
|
2946
|
+
# @option params [required, String] :scope
|
|
2947
|
+
# Required. The environment: live or sandbox. live reads the published
|
|
2948
|
+
# offering by default; sandbox reads the app's draft (what the sandbox
|
|
2949
|
+
# runs).
|
|
2950
|
+
#
|
|
2951
|
+
# @return [Types::ListPlansResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2952
|
+
#
|
|
2953
|
+
# * {Types::ListPlansResponse#plans #plans} => Array<Types::Plan>
|
|
2954
|
+
# * {Types::ListPlansResponse#next_token #next_token} => String
|
|
2955
|
+
#
|
|
2956
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
2957
|
+
#
|
|
2958
|
+
# @example Request syntax with placeholder values
|
|
2959
|
+
#
|
|
2960
|
+
# resp = client.list_plans({
|
|
2961
|
+
# app_id: "AppId", # required
|
|
2962
|
+
# stage: "DRAFT", # accepts DRAFT, PUBLISHED
|
|
2963
|
+
# max_results: 1,
|
|
2964
|
+
# next_token: "NextToken",
|
|
2965
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
2966
|
+
# })
|
|
2967
|
+
#
|
|
2968
|
+
# @example Response structure
|
|
2969
|
+
#
|
|
2970
|
+
# resp.plans #=> Array
|
|
2971
|
+
# resp.plans[0].app_id #=> String
|
|
2972
|
+
# resp.plans[0].plan_id #=> String
|
|
2973
|
+
# resp.plans[0].definition.name #=> String
|
|
2974
|
+
# resp.plans[0].definition.description #=> String
|
|
2975
|
+
# resp.plans[0].definition.billing_cycle #=> String, one of "MONTHLY", "ANNUAL", "ONE_TIME"
|
|
2976
|
+
# resp.plans[0].definition.subscription_price.currency_code #=> String
|
|
2977
|
+
# resp.plans[0].definition.subscription_price.amount #=> String
|
|
2978
|
+
# resp.plans[0].definition.included_quotas #=> Hash
|
|
2979
|
+
# resp.plans[0].definition.included_quotas["MetricId"].flat.included_quantity #=> Integer
|
|
2980
|
+
# resp.plans[0].definition.included_quotas["MetricId"].flat.overage_policy #=> String, one of "NO_OVERAGE_THROTTLE", "APPLY_FIXED_OVERAGE", "APPLY_TIERED_OVERAGE"
|
|
2981
|
+
# resp.plans[0].definition.included_quotas["MetricId"].flat.overage_price.currency_code #=> String
|
|
2982
|
+
# resp.plans[0].definition.included_quotas["MetricId"].flat.overage_price.amount #=> String
|
|
2983
|
+
# resp.plans[0].definition.included_quotas["MetricId"].flat.tiered_overage.semantics #=> String, one of "GRADUATED", "VOLUME"
|
|
2984
|
+
# resp.plans[0].definition.included_quotas["MetricId"].flat.tiered_overage.tiers #=> Array
|
|
2985
|
+
# resp.plans[0].definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].first_unit #=> Integer
|
|
2986
|
+
# resp.plans[0].definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].last_unit #=> Integer
|
|
2987
|
+
# resp.plans[0].definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].unit_price.currency_code #=> String
|
|
2988
|
+
# resp.plans[0].definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].unit_price.amount #=> String
|
|
2989
|
+
# resp.plans[0].definition.included_quotas["MetricId"].flat.max_quantity #=> Integer
|
|
2990
|
+
# resp.plans[0].definition.included_quotas["MetricId"].tiered.included_quantity #=> Integer
|
|
2991
|
+
# resp.plans[0].definition.included_quotas["MetricId"].tiered.tiered_price.semantics #=> String, one of "GRADUATED", "VOLUME"
|
|
2992
|
+
# resp.plans[0].definition.included_quotas["MetricId"].tiered.tiered_price.tiers #=> Array
|
|
2993
|
+
# resp.plans[0].definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].first_unit #=> Integer
|
|
2994
|
+
# resp.plans[0].definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].last_unit #=> Integer
|
|
2995
|
+
# resp.plans[0].definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].unit_price.currency_code #=> String
|
|
2996
|
+
# resp.plans[0].definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].unit_price.amount #=> String
|
|
2997
|
+
# resp.plans[0].definition.included_quotas["MetricId"].tiered.max_quantity #=> Integer
|
|
2998
|
+
# resp.plans[0].definition.tax_code #=> String
|
|
2999
|
+
# resp.plans[0].definition.payment_failure_policy.retry_attempts #=> Integer
|
|
3000
|
+
# resp.plans[0].definition.payment_failure_policy.retry_window_days #=> Integer
|
|
3001
|
+
# resp.plans[0].definition.payment_failure_policy.downgrade_to_plan_id #=> String
|
|
3002
|
+
# resp.plans[0].stage #=> String, one of "DRAFT", "PUBLISHED"
|
|
3003
|
+
# resp.plans[0].created_at #=> Time
|
|
3004
|
+
# resp.plans[0].updated_at #=> Time
|
|
3005
|
+
# resp.plans[0].arn #=> String
|
|
3006
|
+
# resp.next_token #=> String
|
|
3007
|
+
#
|
|
3008
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/ListPlans AWS API Documentation
|
|
3009
|
+
#
|
|
3010
|
+
# @overload list_plans(params = {})
|
|
3011
|
+
# @param [Hash] params ({})
|
|
3012
|
+
def list_plans(params = {}, options = {})
|
|
3013
|
+
req = build_request(:list_plans, params)
|
|
3014
|
+
req.send_request(options)
|
|
3015
|
+
end
|
|
3016
|
+
|
|
3017
|
+
# Returns the subscriptions for an app. We recommend using pagination to
|
|
3018
|
+
# ensure that the operation returns quickly and successfully.
|
|
3019
|
+
#
|
|
3020
|
+
# @option params [required, String] :app_id
|
|
3021
|
+
# The ID of the app.
|
|
3022
|
+
#
|
|
3023
|
+
# @option params [Integer] :max_results
|
|
3024
|
+
# The maximum number of items to return in a single page.
|
|
3025
|
+
#
|
|
3026
|
+
# @option params [String] :next_token
|
|
3027
|
+
# An opaque pagination token. Pass the value returned in a response back
|
|
3028
|
+
# on the next request to retrieve the following page; absent when there
|
|
3029
|
+
# are no more results.
|
|
3030
|
+
#
|
|
3031
|
+
# @option params [required, String] :scope
|
|
3032
|
+
# Required. The environment: live or sandbox.
|
|
3033
|
+
#
|
|
3034
|
+
# @return [Types::ListSubscriptionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3035
|
+
#
|
|
3036
|
+
# * {Types::ListSubscriptionsResponse#items #items} => Array<Types::SubscriptionSummary>
|
|
3037
|
+
# * {Types::ListSubscriptionsResponse#next_token #next_token} => String
|
|
3038
|
+
#
|
|
3039
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
3040
|
+
#
|
|
3041
|
+
# @example Request syntax with placeholder values
|
|
3042
|
+
#
|
|
3043
|
+
# resp = client.list_subscriptions({
|
|
3044
|
+
# app_id: "AppId", # required
|
|
3045
|
+
# max_results: 1,
|
|
3046
|
+
# next_token: "NextToken",
|
|
3047
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
3048
|
+
# })
|
|
3049
|
+
#
|
|
3050
|
+
# @example Response structure
|
|
3051
|
+
#
|
|
3052
|
+
# resp.items #=> Array
|
|
3053
|
+
# resp.items[0].app_id #=> String
|
|
3054
|
+
# resp.items[0].user_id #=> String
|
|
3055
|
+
# resp.items[0].plan_id #=> String
|
|
3056
|
+
# resp.items[0].effective_at #=> Time
|
|
3057
|
+
# resp.items[0].billing_anchor_date #=> Time
|
|
3058
|
+
# resp.items[0].billing_cycle #=> String, one of "MONTHLY", "ANNUAL", "ONE_TIME"
|
|
3059
|
+
# resp.next_token #=> String
|
|
3060
|
+
#
|
|
3061
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/ListSubscriptions AWS API Documentation
|
|
3062
|
+
#
|
|
3063
|
+
# @overload list_subscriptions(params = {})
|
|
3064
|
+
# @param [Hash] params ({})
|
|
3065
|
+
def list_subscriptions(params = {}, options = {})
|
|
3066
|
+
req = build_request(:list_subscriptions, params)
|
|
3067
|
+
req.send_request(options)
|
|
3068
|
+
end
|
|
3069
|
+
|
|
3070
|
+
# Lists the tags on an app, pricing plan, billing metric or one-time
|
|
3071
|
+
# price.
|
|
3072
|
+
#
|
|
3073
|
+
# @option params [required, String] :resource_arn
|
|
3074
|
+
# ARN of the app, pricing plan, billing metric or one-time price whose
|
|
3075
|
+
# tags to list.
|
|
3076
|
+
#
|
|
3077
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3078
|
+
#
|
|
3079
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String>
|
|
3080
|
+
#
|
|
3081
|
+
# @example Request syntax with placeholder values
|
|
3082
|
+
#
|
|
3083
|
+
# resp = client.list_tags_for_resource({
|
|
3084
|
+
# resource_arn: "TaggableResourceArn", # required
|
|
3085
|
+
# })
|
|
3086
|
+
#
|
|
3087
|
+
# @example Response structure
|
|
3088
|
+
#
|
|
3089
|
+
# resp.tags #=> Hash
|
|
3090
|
+
# resp.tags["TagKey"] #=> String
|
|
3091
|
+
#
|
|
3092
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/ListTagsForResource AWS API Documentation
|
|
3093
|
+
#
|
|
3094
|
+
# @overload list_tags_for_resource(params = {})
|
|
3095
|
+
# @param [Hash] params ({})
|
|
3096
|
+
def list_tags_for_resource(params = {}, options = {})
|
|
3097
|
+
req = build_request(:list_tags_for_resource, params)
|
|
3098
|
+
req.send_request(options)
|
|
3099
|
+
end
|
|
3100
|
+
|
|
3101
|
+
# Returns the third-party costs for an app. To calculate a total, sum
|
|
3102
|
+
# the amount of the returned items; the costs are not prorated. Returns
|
|
3103
|
+
# a paginated list; we recommend using pagination to ensure that the
|
|
3104
|
+
# operation returns quickly and successfully.
|
|
3105
|
+
#
|
|
3106
|
+
# @option params [required, String] :app_id
|
|
3107
|
+
# The ID of the app.
|
|
3108
|
+
#
|
|
3109
|
+
# @option params [Integer] :max_results
|
|
3110
|
+
# The maximum number of items to return in a single page. Valid range:
|
|
3111
|
+
# 1-100.
|
|
3112
|
+
#
|
|
3113
|
+
# @option params [String] :next_token
|
|
3114
|
+
# An opaque pagination token. Pass the value returned in a response back
|
|
3115
|
+
# on the next request to retrieve the following page; absent when there
|
|
3116
|
+
# are no more results.
|
|
3117
|
+
#
|
|
3118
|
+
# @return [Types::ListThirdPartyCostsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3119
|
+
#
|
|
3120
|
+
# * {Types::ListThirdPartyCostsResponse#items #items} => Array<Types::ThirdPartyCostItem>
|
|
3121
|
+
# * {Types::ListThirdPartyCostsResponse#next_token #next_token} => String
|
|
3122
|
+
#
|
|
3123
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
3124
|
+
#
|
|
3125
|
+
# @example Request syntax with placeholder values
|
|
3126
|
+
#
|
|
3127
|
+
# resp = client.list_third_party_costs({
|
|
3128
|
+
# app_id: "AppId", # required
|
|
3129
|
+
# max_results: 1,
|
|
3130
|
+
# next_token: "NextToken",
|
|
3131
|
+
# })
|
|
3132
|
+
#
|
|
3133
|
+
# @example Response structure
|
|
3134
|
+
#
|
|
3135
|
+
# resp.items #=> Array
|
|
3136
|
+
# resp.items[0].app_id #=> String
|
|
3137
|
+
# resp.items[0].cost_id #=> String
|
|
3138
|
+
# resp.items[0].label #=> String
|
|
3139
|
+
# resp.items[0].amount #=> String
|
|
3140
|
+
# resp.items[0].frequency #=> String, one of "MONTHLY"
|
|
3141
|
+
# resp.items[0].currency #=> String, one of "USD"
|
|
3142
|
+
# resp.items[0].description #=> String
|
|
3143
|
+
# resp.items[0].effective_from #=> String
|
|
3144
|
+
# resp.items[0].effective_to #=> String
|
|
3145
|
+
# resp.items[0].created_at #=> Time
|
|
3146
|
+
# resp.items[0].updated_at #=> Time
|
|
3147
|
+
# resp.next_token #=> String
|
|
3148
|
+
#
|
|
3149
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/ListThirdPartyCosts AWS API Documentation
|
|
3150
|
+
#
|
|
3151
|
+
# @overload list_third_party_costs(params = {})
|
|
3152
|
+
# @param [Hash] params ({})
|
|
3153
|
+
def list_third_party_costs(params = {}, options = {})
|
|
3154
|
+
req = build_request(:list_third_party_costs, params)
|
|
3155
|
+
req.send_request(options)
|
|
3156
|
+
end
|
|
3157
|
+
|
|
3158
|
+
# Publishes the app's current draft configuration to live in a single
|
|
3159
|
+
# atomic operation. The published configuration includes all plans,
|
|
3160
|
+
# metrics, capabilities, usage packs, add-ons, and free trials. A draft
|
|
3161
|
+
# with more plans than the Published plans per app quota allows is
|
|
3162
|
+
# refused with ServiceQuotaExceededException.
|
|
3163
|
+
#
|
|
3164
|
+
# @option params [required, String] :app_id
|
|
3165
|
+
# The ID of the app.
|
|
3166
|
+
#
|
|
3167
|
+
# @return [Types::PublishDraftResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3168
|
+
#
|
|
3169
|
+
# * {Types::PublishDraftResponse#app #app} => Types::App
|
|
3170
|
+
#
|
|
3171
|
+
# @example Request syntax with placeholder values
|
|
3172
|
+
#
|
|
3173
|
+
# resp = client.publish_draft({
|
|
3174
|
+
# app_id: "AppId", # required
|
|
3175
|
+
# })
|
|
3176
|
+
#
|
|
3177
|
+
# @example Response structure
|
|
3178
|
+
#
|
|
3179
|
+
# resp.app.app_id #=> String
|
|
3180
|
+
# resp.app.name #=> String
|
|
3181
|
+
# resp.app.description #=> String
|
|
3182
|
+
# resp.app.status #=> String, one of "ACTIVE", "DELETED"
|
|
3183
|
+
# resp.app.created_at #=> Time
|
|
3184
|
+
# resp.app.arn #=> String
|
|
3185
|
+
#
|
|
3186
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/PublishDraft AWS API Documentation
|
|
3187
|
+
#
|
|
3188
|
+
# @overload publish_draft(params = {})
|
|
3189
|
+
# @param [Hash] params ({})
|
|
3190
|
+
def publish_draft(params = {}, options = {})
|
|
3191
|
+
req = build_request(:publish_draft, params)
|
|
3192
|
+
req.send_request(options)
|
|
3193
|
+
end
|
|
3194
|
+
|
|
3195
|
+
# Records an AWS service usage event for cost attribution. The event is
|
|
3196
|
+
# accepted and processed asynchronously.
|
|
3197
|
+
#
|
|
3198
|
+
# @option params [required, String] :app_id
|
|
3199
|
+
# The ID of the app.
|
|
3200
|
+
#
|
|
3201
|
+
# @option params [String] :client_token
|
|
3202
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
3203
|
+
# completes no more than one time. If this token matches a previous
|
|
3204
|
+
# request, the service ignores the request, but does not return an
|
|
3205
|
+
# error.
|
|
3206
|
+
#
|
|
3207
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
3208
|
+
# not need to pass this option.**
|
|
3209
|
+
#
|
|
3210
|
+
# @option params [required, String] :user_id
|
|
3211
|
+
# An opaque identifier that you assign to an end user. Do not include
|
|
3212
|
+
# personally identifiable or otherwise sensitive data in this value.
|
|
3213
|
+
#
|
|
3214
|
+
# @option params [required, String] :service
|
|
3215
|
+
# The AWS service name that emitted the usage event.
|
|
3216
|
+
#
|
|
3217
|
+
# @option params [required, String] :operation
|
|
3218
|
+
# The AWS operation (API action) that produced the usage event.
|
|
3219
|
+
#
|
|
3220
|
+
# @option params [String] :quantity
|
|
3221
|
+
# A non-negative decimal quantity represented as a string (for example,
|
|
3222
|
+
# "1500" or "12.5").
|
|
3223
|
+
#
|
|
3224
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :timestamp
|
|
3225
|
+
# The time the event occurred, as an ISO-8601 date-time in UTC (for
|
|
3226
|
+
# example, "2026-07-26T15:04:05Z").
|
|
3227
|
+
#
|
|
3228
|
+
# @option params [String] :aws_region
|
|
3229
|
+
# The AWS Region in which the event occurred.
|
|
3230
|
+
#
|
|
3231
|
+
# @option params [Hash<String,String>] :properties
|
|
3232
|
+
# The key/value properties carried on a usage event. Property values can
|
|
3233
|
+
# be referenced by metric filters and grouping.
|
|
3234
|
+
#
|
|
3235
|
+
# @option params [required, String] :scope
|
|
3236
|
+
# The environment of the app that this operation applies to. Specify
|
|
3237
|
+
# live to use the live app, or sandbox to use the app's isolated test
|
|
3238
|
+
# environment.
|
|
3239
|
+
#
|
|
3240
|
+
# @return [Types::PutAwsServiceEventResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3241
|
+
#
|
|
3242
|
+
# * {Types::PutAwsServiceEventResponse#event_id #event_id} => String
|
|
3243
|
+
# * {Types::PutAwsServiceEventResponse#status #status} => String
|
|
3244
|
+
#
|
|
3245
|
+
# @example Request syntax with placeholder values
|
|
3246
|
+
#
|
|
3247
|
+
# resp = client.put_aws_service_event({
|
|
3248
|
+
# app_id: "AppId", # required
|
|
3249
|
+
# client_token: "ClientToken",
|
|
3250
|
+
# user_id: "UserId", # required
|
|
3251
|
+
# service: "ServiceName", # required
|
|
3252
|
+
# operation: "OperationName", # required
|
|
3253
|
+
# quantity: "Quantity",
|
|
3254
|
+
# timestamp: Time.now, # required
|
|
3255
|
+
# aws_region: "Region",
|
|
3256
|
+
# properties: {
|
|
3257
|
+
# "PropertyKey" => "PropertyValue",
|
|
3258
|
+
# },
|
|
3259
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
3260
|
+
# })
|
|
3261
|
+
#
|
|
3262
|
+
# @example Response structure
|
|
3263
|
+
#
|
|
3264
|
+
# resp.event_id #=> String
|
|
3265
|
+
# resp.status #=> String, one of "ACCEPTED"
|
|
3266
|
+
#
|
|
3267
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/PutAwsServiceEvent AWS API Documentation
|
|
3268
|
+
#
|
|
3269
|
+
# @overload put_aws_service_event(params = {})
|
|
3270
|
+
# @param [Hash] params ({})
|
|
3271
|
+
def put_aws_service_event(params = {}, options = {})
|
|
3272
|
+
req = build_request(:put_aws_service_event, params)
|
|
3273
|
+
req.send_request(options)
|
|
3274
|
+
end
|
|
3275
|
+
|
|
3276
|
+
# Adds charges that you compute to the end user's next subscription
|
|
3277
|
+
# invoice. The charges go to the billing period of the user's current
|
|
3278
|
+
# subscription that contains the current time. You don't specify a
|
|
3279
|
+
# period.
|
|
3280
|
+
#
|
|
3281
|
+
# Each charge has a `chargeId` that you choose. If you submit a
|
|
3282
|
+
# `chargeId` again in the same billing period, the existing charge is
|
|
3283
|
+
# replaced instead of added again. A `chargeId` belongs to the first
|
|
3284
|
+
# billing period that accepts it, so use a value that is unique for this
|
|
3285
|
+
# user across all billing periods, such as a UUID or your own invoice
|
|
3286
|
+
# line ID.
|
|
3287
|
+
#
|
|
3288
|
+
# The request succeeds or fails as a whole: either every charge is
|
|
3289
|
+
# accepted or none is. A successful response means that every charge was
|
|
3290
|
+
# accepted.
|
|
3291
|
+
#
|
|
3292
|
+
# If you submit a `chargeId` after its billing period has ended, the
|
|
3293
|
+
# request fails with a `ConflictException`. The charge is already
|
|
3294
|
+
# recorded. Don't submit it again under a new `chargeId`, because that
|
|
3295
|
+
# bills it twice.
|
|
3296
|
+
#
|
|
3297
|
+
# A billing period holds at most 100 `chargeId` values for each user. If
|
|
3298
|
+
# a request would exceed 100, it fails with a
|
|
3299
|
+
# `ServiceQuotaExceededException`. Submitting a `chargeId` that is
|
|
3300
|
+
# already in the period doesn't count toward the limit.
|
|
3301
|
+
#
|
|
3302
|
+
# @option params [required, String] :app_id
|
|
3303
|
+
# The ID of the app.
|
|
3304
|
+
#
|
|
3305
|
+
# @option params [required, String] :user_id
|
|
3306
|
+
# The end user these charges bill.
|
|
3307
|
+
#
|
|
3308
|
+
# @option params [required, Array<Types::CustomCharge>] :charges
|
|
3309
|
+
# The custom charges to add to this user's next invoice. Stored at the
|
|
3310
|
+
# submitted grain; the service never splits a charge. Accepted
|
|
3311
|
+
# all-or-nothing.
|
|
3312
|
+
#
|
|
3313
|
+
# @option params [required, String] :scope
|
|
3314
|
+
# Required. The environment: live or sandbox.
|
|
3315
|
+
#
|
|
3316
|
+
# @return [Types::PutCustomChargesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3317
|
+
#
|
|
3318
|
+
# * {Types::PutCustomChargesResponse#billing_period_start_at #billing_period_start_at} => Time
|
|
3319
|
+
# * {Types::PutCustomChargesResponse#billing_period_end_at #billing_period_end_at} => Time
|
|
3320
|
+
#
|
|
3321
|
+
# @example Request syntax with placeholder values
|
|
3322
|
+
#
|
|
3323
|
+
# resp = client.put_custom_charges({
|
|
3324
|
+
# app_id: "AppId", # required
|
|
3325
|
+
# user_id: "UserId", # required
|
|
3326
|
+
# charges: [ # required
|
|
3327
|
+
# {
|
|
3328
|
+
# charge_id: "ChargeId", # required
|
|
3329
|
+
# description: "CustomChargeDescription", # required
|
|
3330
|
+
# amount: "PriceAmount", # required
|
|
3331
|
+
# currency: "CurrencyCode", # required
|
|
3332
|
+
# metric_id: "MetricId",
|
|
3333
|
+
# tax_code: "ProductTaxCode",
|
|
3334
|
+
# },
|
|
3335
|
+
# ],
|
|
3336
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
3337
|
+
# })
|
|
3338
|
+
#
|
|
3339
|
+
# @example Response structure
|
|
3340
|
+
#
|
|
3341
|
+
# resp.billing_period_start_at #=> Time
|
|
3342
|
+
# resp.billing_period_end_at #=> Time
|
|
3343
|
+
#
|
|
3344
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/PutCustomCharges AWS API Documentation
|
|
3345
|
+
#
|
|
3346
|
+
# @overload put_custom_charges(params = {})
|
|
3347
|
+
# @param [Hash] params ({})
|
|
3348
|
+
def put_custom_charges(params = {}, options = {})
|
|
3349
|
+
req = build_request(:put_custom_charges, params)
|
|
3350
|
+
req.send_request(options)
|
|
3351
|
+
end
|
|
3352
|
+
|
|
3353
|
+
# Records a usage event for a user of an app. Usage events are the raw
|
|
3354
|
+
# input that metrics aggregate.
|
|
3355
|
+
#
|
|
3356
|
+
# @option params [required, String] :app_id
|
|
3357
|
+
# The ID of the app the event belongs to.
|
|
3358
|
+
#
|
|
3359
|
+
# @option params [String] :client_token
|
|
3360
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
3361
|
+
# completes no more than one time. If this token matches a previous
|
|
3362
|
+
# request, the service ignores the request but does not return an error.
|
|
3363
|
+
#
|
|
3364
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
3365
|
+
# not need to pass this option.**
|
|
3366
|
+
#
|
|
3367
|
+
# @option params [required, String] :user_id
|
|
3368
|
+
# The ID of the end user the event is attributed to. Do not include
|
|
3369
|
+
# personally identifiable or otherwise sensitive data in this value.
|
|
3370
|
+
#
|
|
3371
|
+
# @option params [required, String] :event_type
|
|
3372
|
+
# The event type. Correlates with the event type of the metrics that
|
|
3373
|
+
# aggregate it.
|
|
3374
|
+
#
|
|
3375
|
+
# @option params [required, String] :quantity
|
|
3376
|
+
# The amount of usage the event represents, as a non-negative decimal
|
|
3377
|
+
# string (for example, "1" or "12.5").
|
|
3378
|
+
#
|
|
3379
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :timestamp
|
|
3380
|
+
# The time the event occurred.
|
|
3381
|
+
#
|
|
3382
|
+
# @option params [Hash<String,String>] :properties
|
|
3383
|
+
# The key/value properties carried on the event, usable in metric
|
|
3384
|
+
# filters and grouping. When a metric sums or takes the max of a
|
|
3385
|
+
# property, that property's value must be a plain non-negative decimal
|
|
3386
|
+
# (up to 15 digits before the point and 6 after; no sign, exponent,
|
|
3387
|
+
# spaces, or commas, for example "1200" or "12.5"), and events that
|
|
3388
|
+
# break this are rejected.
|
|
3389
|
+
#
|
|
3390
|
+
# @option params [required, String] :scope
|
|
3391
|
+
# The environment of the app that this operation applies to: the live
|
|
3392
|
+
# app or the app's isolated sandbox test environment.
|
|
3393
|
+
#
|
|
3394
|
+
# @return [Types::PutEventResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3395
|
+
#
|
|
3396
|
+
# * {Types::PutEventResponse#event_id #event_id} => String
|
|
3397
|
+
# * {Types::PutEventResponse#status #status} => String
|
|
3398
|
+
#
|
|
3399
|
+
# @example Request syntax with placeholder values
|
|
3400
|
+
#
|
|
3401
|
+
# resp = client.put_event({
|
|
3402
|
+
# app_id: "AppId", # required
|
|
3403
|
+
# client_token: "ClientToken",
|
|
3404
|
+
# user_id: "UserId", # required
|
|
3405
|
+
# event_type: "SourceEventType", # required
|
|
3406
|
+
# quantity: "Quantity", # required
|
|
3407
|
+
# timestamp: Time.now, # required
|
|
3408
|
+
# properties: {
|
|
3409
|
+
# "PropertyKey" => "PropertyValue",
|
|
3410
|
+
# },
|
|
3411
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
3412
|
+
# })
|
|
3413
|
+
#
|
|
3414
|
+
# @example Response structure
|
|
3415
|
+
#
|
|
3416
|
+
# resp.event_id #=> String
|
|
3417
|
+
# resp.status #=> String
|
|
3418
|
+
#
|
|
3419
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/PutEvent AWS API Documentation
|
|
3420
|
+
#
|
|
3421
|
+
# @overload put_event(params = {})
|
|
3422
|
+
# @param [Hash] params ({})
|
|
3423
|
+
def put_event(params = {}, options = {})
|
|
3424
|
+
req = build_request(:put_event, params)
|
|
3425
|
+
req.send_request(options)
|
|
3426
|
+
end
|
|
3427
|
+
|
|
3428
|
+
# Adds or updates a seller-declared third-party (non-AWS) monthly cost
|
|
3429
|
+
# for an app. Omit the cost identifier to create a new cost, or supply
|
|
3430
|
+
# an existing cost identifier to update it in place. The amount is a
|
|
3431
|
+
# flat monthly value, and currency defaults to USD when omitted.
|
|
3432
|
+
#
|
|
3433
|
+
# @option params [required, String] :app_id
|
|
3434
|
+
# The ID of the app the cost belongs to.
|
|
3435
|
+
#
|
|
3436
|
+
# @option params [String] :cost_id
|
|
3437
|
+
# The ID of the cost. Omit it to create a new cost, or supply an
|
|
3438
|
+
# existing cost ID to update that cost in place.
|
|
3439
|
+
#
|
|
3440
|
+
# @option params [required, String] :label
|
|
3441
|
+
# A human-readable label for the cost (for example, "Anthropic API").
|
|
3442
|
+
#
|
|
3443
|
+
# @option params [required, String] :amount
|
|
3444
|
+
# A flat monthly amount as a decimal string (for example, "12.50").
|
|
3445
|
+
#
|
|
3446
|
+
# @option params [String] :frequency
|
|
3447
|
+
# How often the cost recurs. MONTHLY is the only value today.
|
|
3448
|
+
#
|
|
3449
|
+
# @option params [String] :currency
|
|
3450
|
+
# The currency of the amount. Defaults to USD when omitted (USD is the
|
|
3451
|
+
# only supported currency).
|
|
3452
|
+
#
|
|
3453
|
+
# @option params [String] :description
|
|
3454
|
+
# A free-form description of the cost.
|
|
3455
|
+
#
|
|
3456
|
+
# @option params [String] :effective_from
|
|
3457
|
+
# First month (YYYY-MM) the cost applies in. Absent means the cost has
|
|
3458
|
+
# no start month.
|
|
3459
|
+
#
|
|
3460
|
+
# @option params [String] :effective_to
|
|
3461
|
+
# Last month (YYYY-MM) the cost applies in. Absent means the cost has no
|
|
3462
|
+
# end month. When both are present, effectiveFrom must not be after
|
|
3463
|
+
# effectiveTo.
|
|
3464
|
+
#
|
|
3465
|
+
# @option params [String] :client_token
|
|
3466
|
+
# AWS App Monetization does not use this value for this operation. To
|
|
3467
|
+
# retry without creating a duplicate cost, pass the `costId` returned by
|
|
3468
|
+
# the first call.
|
|
3469
|
+
#
|
|
3470
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
3471
|
+
# not need to pass this option.**
|
|
3472
|
+
#
|
|
3473
|
+
# @return [Types::PutThirdPartyCostResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3474
|
+
#
|
|
3475
|
+
# * {Types::PutThirdPartyCostResponse#item #item} => Types::ThirdPartyCostItem
|
|
3476
|
+
#
|
|
3477
|
+
# @example Request syntax with placeholder values
|
|
3478
|
+
#
|
|
3479
|
+
# resp = client.put_third_party_cost({
|
|
3480
|
+
# app_id: "AppId", # required
|
|
3481
|
+
# cost_id: "ThirdPartyCostId",
|
|
3482
|
+
# label: "ThirdPartyCostLabel", # required
|
|
3483
|
+
# amount: "CostValue", # required
|
|
3484
|
+
# frequency: "MONTHLY", # accepts MONTHLY
|
|
3485
|
+
# currency: "USD", # accepts USD
|
|
3486
|
+
# description: "ThirdPartyCostDescription",
|
|
3487
|
+
# effective_from: "ThirdPartyCostMonth",
|
|
3488
|
+
# effective_to: "ThirdPartyCostMonth",
|
|
3489
|
+
# client_token: "ClientToken",
|
|
3490
|
+
# })
|
|
3491
|
+
#
|
|
3492
|
+
# @example Response structure
|
|
3493
|
+
#
|
|
3494
|
+
# resp.item.app_id #=> String
|
|
3495
|
+
# resp.item.cost_id #=> String
|
|
3496
|
+
# resp.item.label #=> String
|
|
3497
|
+
# resp.item.amount #=> String
|
|
3498
|
+
# resp.item.frequency #=> String, one of "MONTHLY"
|
|
3499
|
+
# resp.item.currency #=> String, one of "USD"
|
|
3500
|
+
# resp.item.description #=> String
|
|
3501
|
+
# resp.item.effective_from #=> String
|
|
3502
|
+
# resp.item.effective_to #=> String
|
|
3503
|
+
# resp.item.created_at #=> Time
|
|
3504
|
+
# resp.item.updated_at #=> Time
|
|
3505
|
+
#
|
|
3506
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/PutThirdPartyCost AWS API Documentation
|
|
3507
|
+
#
|
|
3508
|
+
# @overload put_third_party_cost(params = {})
|
|
3509
|
+
# @param [Hash] params ({})
|
|
3510
|
+
def put_third_party_cost(params = {}, options = {})
|
|
3511
|
+
req = build_request(:put_third_party_cost, params)
|
|
3512
|
+
req.send_request(options)
|
|
3513
|
+
end
|
|
3514
|
+
|
|
3515
|
+
# Adds or overwrites tags on an app, pricing plan, billing metric or
|
|
3516
|
+
# one-time price.
|
|
3517
|
+
#
|
|
3518
|
+
# @option params [required, String] :resource_arn
|
|
3519
|
+
# ARN of the app, pricing plan, billing metric or one-time price to tag.
|
|
3520
|
+
#
|
|
3521
|
+
# @option params [required, Hash<String,String>] :tags
|
|
3522
|
+
# Tags to add. A tag whose key already exists on the resource has its
|
|
3523
|
+
# value overwritten.
|
|
3524
|
+
#
|
|
3525
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
3526
|
+
#
|
|
3527
|
+
# @example Request syntax with placeholder values
|
|
3528
|
+
#
|
|
3529
|
+
# resp = client.tag_resource({
|
|
3530
|
+
# resource_arn: "TaggableResourceArn", # required
|
|
3531
|
+
# tags: { # required
|
|
3532
|
+
# "TagKey" => "TagValue",
|
|
3533
|
+
# },
|
|
3534
|
+
# })
|
|
3535
|
+
#
|
|
3536
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/TagResource AWS API Documentation
|
|
3537
|
+
#
|
|
3538
|
+
# @overload tag_resource(params = {})
|
|
3539
|
+
# @param [Hash] params ({})
|
|
3540
|
+
def tag_resource(params = {}, options = {})
|
|
3541
|
+
req = build_request(:tag_resource, params)
|
|
3542
|
+
req.send_request(options)
|
|
3543
|
+
end
|
|
3544
|
+
|
|
3545
|
+
# Removes tags from an app, pricing plan, billing metric or one-time
|
|
3546
|
+
# price.
|
|
3547
|
+
#
|
|
3548
|
+
# @option params [required, String] :resource_arn
|
|
3549
|
+
# ARN of the app, pricing plan, billing metric or one-time price to
|
|
3550
|
+
# remove tags from.
|
|
3551
|
+
#
|
|
3552
|
+
# @option params [required, Array<String>] :tag_keys
|
|
3553
|
+
# Keys of the tags to remove. A key that is not on the resource is
|
|
3554
|
+
# ignored.
|
|
3555
|
+
#
|
|
3556
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
3557
|
+
#
|
|
3558
|
+
# @example Request syntax with placeholder values
|
|
3559
|
+
#
|
|
3560
|
+
# resp = client.untag_resource({
|
|
3561
|
+
# resource_arn: "TaggableResourceArn", # required
|
|
3562
|
+
# tag_keys: ["TagKey"], # required
|
|
3563
|
+
# })
|
|
3564
|
+
#
|
|
3565
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/UntagResource AWS API Documentation
|
|
3566
|
+
#
|
|
3567
|
+
# @overload untag_resource(params = {})
|
|
3568
|
+
# @param [Hash] params ({})
|
|
3569
|
+
def untag_resource(params = {}, options = {})
|
|
3570
|
+
req = build_request(:untag_resource, params)
|
|
3571
|
+
req.send_request(options)
|
|
3572
|
+
end
|
|
3573
|
+
|
|
3574
|
+
# Updates an existing app. This operation is idempotent.
|
|
3575
|
+
#
|
|
3576
|
+
# @option params [required, String] :app_id
|
|
3577
|
+
# The ID of the app to update. You can identify the app by either its ID
|
|
3578
|
+
# or its Amazon Resource Name (ARN). If you provide both, they must
|
|
3579
|
+
# refer to the same app.
|
|
3580
|
+
#
|
|
3581
|
+
# @option params [String] :name
|
|
3582
|
+
# A human-readable display name for the app.
|
|
3583
|
+
#
|
|
3584
|
+
# @option params [String] :description
|
|
3585
|
+
# The new description. An empty string clears it; omitting the member
|
|
3586
|
+
# keeps the current one.
|
|
3587
|
+
#
|
|
3588
|
+
# @option params [String] :identifier
|
|
3589
|
+
# The Amazon Resource Name (ARN) of the app. You can identify the app by
|
|
3590
|
+
# either its ID or its ARN. If you provide both, they must refer to the
|
|
3591
|
+
# same app. A sandbox ARN names the app's sandbox; if you also send
|
|
3592
|
+
# scope, the two must name the same environment.
|
|
3593
|
+
#
|
|
3594
|
+
# @option params [String] :scope
|
|
3595
|
+
# The environment to act on: live or sandbox. Optional. You can name the
|
|
3596
|
+
# environment with this member, with a sandbox resource ARN, or both; if
|
|
3597
|
+
# you send both they must name the same environment, or the request is
|
|
3598
|
+
# rejected.
|
|
3599
|
+
#
|
|
3600
|
+
# @option params [Types::CostTrackingConfiguration] :cost_tracking
|
|
3601
|
+
# Optional cost-tracking configuration: the IAM role AWS App
|
|
3602
|
+
# Monetization uses to track this app's AWS costs. Passing a role also
|
|
3603
|
+
# requires permission for iam:PassRole on it. You can send it with or
|
|
3604
|
+
# without a new name or description.
|
|
3605
|
+
#
|
|
3606
|
+
# @return [Types::UpdateAppResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3607
|
+
#
|
|
3608
|
+
# * {Types::UpdateAppResponse#app #app} => Types::App
|
|
3609
|
+
#
|
|
3610
|
+
# @example Request syntax with placeholder values
|
|
3611
|
+
#
|
|
3612
|
+
# resp = client.update_app({
|
|
3613
|
+
# app_id: "AppId", # required
|
|
3614
|
+
# name: "AppName",
|
|
3615
|
+
# description: "AppDescription",
|
|
3616
|
+
# identifier: "ResourceArn",
|
|
3617
|
+
# scope: "sandbox", # accepts sandbox, live
|
|
3618
|
+
# cost_tracking: {
|
|
3619
|
+
# role_arn: "CostTrackingRoleArn", # required
|
|
3620
|
+
# },
|
|
3621
|
+
# })
|
|
3622
|
+
#
|
|
3623
|
+
# @example Response structure
|
|
3624
|
+
#
|
|
3625
|
+
# resp.app.app_id #=> String
|
|
3626
|
+
# resp.app.name #=> String
|
|
3627
|
+
# resp.app.description #=> String
|
|
3628
|
+
# resp.app.status #=> String, one of "ACTIVE", "DELETED"
|
|
3629
|
+
# resp.app.created_at #=> Time
|
|
3630
|
+
# resp.app.arn #=> String
|
|
3631
|
+
#
|
|
3632
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/UpdateApp AWS API Documentation
|
|
3633
|
+
#
|
|
3634
|
+
# @overload update_app(params = {})
|
|
3635
|
+
# @param [Hash] params ({})
|
|
3636
|
+
def update_app(params = {}, options = {})
|
|
3637
|
+
req = build_request(:update_app, params)
|
|
3638
|
+
req.send_request(options)
|
|
3639
|
+
end
|
|
3640
|
+
|
|
3641
|
+
# Updates the payment and tax details on an app's payment registration.
|
|
3642
|
+
#
|
|
3643
|
+
# @option params [required, String] :app_id
|
|
3644
|
+
# The ID of the app whose payment registration is updated.
|
|
3645
|
+
#
|
|
3646
|
+
# @option params [String] :payment_registration_id
|
|
3647
|
+
# Binds the app to this payment registration, owned by the caller, or
|
|
3648
|
+
# rebinds it from another one. Cannot be combined with legal-detail or
|
|
3649
|
+
# contact members. Naming the registration the app already holds
|
|
3650
|
+
# succeeds without a write.
|
|
3651
|
+
#
|
|
3652
|
+
# @option params [String] :legal_name
|
|
3653
|
+
# Your registered legal name.
|
|
3654
|
+
#
|
|
3655
|
+
# @option params [Types::DeveloperAddress] :developer_address
|
|
3656
|
+
# Your business address.
|
|
3657
|
+
#
|
|
3658
|
+
# @option params [String] :tax_registration_number
|
|
3659
|
+
# Your tax registration number (for example, VAT, GST, or EIN).
|
|
3660
|
+
#
|
|
3661
|
+
# @option params [String] :email
|
|
3662
|
+
# Your primary contact email for this registration, distinct from
|
|
3663
|
+
# supportEmail (the address shown to customers).
|
|
3664
|
+
#
|
|
3665
|
+
# @option params [String] :support_email
|
|
3666
|
+
# Your support email address, displayed in the invoice footer.
|
|
3667
|
+
#
|
|
3668
|
+
# @option params [String] :display_name
|
|
3669
|
+
# Customer-facing name (doing-business-as) shown to buyers on invoices,
|
|
3670
|
+
# distinct from legalName.
|
|
3671
|
+
#
|
|
3672
|
+
# @option params [String] :support_phone
|
|
3673
|
+
# Customer-facing support phone number shown to buyers on invoices.
|
|
3674
|
+
#
|
|
3675
|
+
# @option params [String, StringIO, File] :invoice_logo
|
|
3676
|
+
# Logo printed on the seller's invoices: raw PNG or JPEG bytes, up to
|
|
3677
|
+
# 100 KiB. The image type is detected from the bytes. Write-only: the
|
|
3678
|
+
# logo is not returned by GetAppPaymentRegistration.
|
|
3679
|
+
#
|
|
3680
|
+
# @option params [Array<Types::TaxRegistration>] :tax_registrations
|
|
3681
|
+
# The jurisdictions where the seller is registered to collect tax.
|
|
3682
|
+
#
|
|
3683
|
+
# @option params [required, String] :scope
|
|
3684
|
+
# Required. The environment: live or sandbox.
|
|
3685
|
+
#
|
|
3686
|
+
# @return [Types::UpdateAppPaymentRegistrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3687
|
+
#
|
|
3688
|
+
# * {Types::UpdateAppPaymentRegistrationResponse#app_payment_registration #app_payment_registration} => Types::AppPaymentRegistration
|
|
3689
|
+
#
|
|
3690
|
+
# @example Request syntax with placeholder values
|
|
3691
|
+
#
|
|
3692
|
+
# resp = client.update_app_payment_registration({
|
|
3693
|
+
# app_id: "AppId", # required
|
|
3694
|
+
# payment_registration_id: "PaymentRegistrationId",
|
|
3695
|
+
# legal_name: "LegalName",
|
|
3696
|
+
# developer_address: {
|
|
3697
|
+
# street1: "AddressLine", # required
|
|
3698
|
+
# street2: "AddressLine",
|
|
3699
|
+
# city: "AddressCity", # required
|
|
3700
|
+
# state: "AddressState", # required
|
|
3701
|
+
# postal_code: "PostalCode", # required
|
|
3702
|
+
# country: "CountryCode", # required
|
|
3703
|
+
# },
|
|
3704
|
+
# tax_registration_number: "TaxRegistrationNumber",
|
|
3705
|
+
# email: "Email",
|
|
3706
|
+
# support_email: "Email",
|
|
3707
|
+
# display_name: "SellerDisplayName",
|
|
3708
|
+
# support_phone: "SupportPhone",
|
|
3709
|
+
# invoice_logo: "data",
|
|
3710
|
+
# tax_registrations: [
|
|
3711
|
+
# {
|
|
3712
|
+
# country_code: "CountryCode", # required
|
|
3713
|
+
# state: "AddressState",
|
|
3714
|
+
# collection_type: "TaxCollectionType", # required
|
|
3715
|
+
# registration_type: "SALES_USE", # accepts SALES_USE, RETAIL_DELIVERY_FEE, VAT, VAT_OSS, VAT_IOSS, GST, FEDERAL_EIN, CPF, CNPJ, SST, TIN, NIP, NPWP, NCID
|
|
3716
|
+
# registration_id: "TaxRegistrationId",
|
|
3717
|
+
# locality: "TaxLocalityCode",
|
|
3718
|
+
# },
|
|
3719
|
+
# ],
|
|
3720
|
+
# scope: "sandbox", # required, accepts sandbox, live
|
|
3721
|
+
# })
|
|
3722
|
+
#
|
|
3723
|
+
# @example Response structure
|
|
3724
|
+
#
|
|
3725
|
+
# resp.app_payment_registration.app_id #=> String
|
|
3726
|
+
# resp.app_payment_registration.status #=> String, one of "ACTIVE", "PENDING", "FAILED"
|
|
3727
|
+
# resp.app_payment_registration.payment_registration_id #=> String
|
|
3728
|
+
# resp.app_payment_registration.payment_registration_status #=> String, one of "ACTIVE", "PENDING", "FAILED"
|
|
3729
|
+
# resp.app_payment_registration.additional_app_eligibility #=> String, one of "ELIGIBLE", "ONBOARDING_INCOMPLETE", "IDENTITY_PENDING", "REGISTRATION_FAILED"
|
|
3730
|
+
# resp.app_payment_registration.legal_name #=> String
|
|
3731
|
+
# resp.app_payment_registration.developer_address.street1 #=> String
|
|
3732
|
+
# resp.app_payment_registration.developer_address.street2 #=> String
|
|
3733
|
+
# resp.app_payment_registration.developer_address.city #=> String
|
|
3734
|
+
# resp.app_payment_registration.developer_address.state #=> String
|
|
3735
|
+
# resp.app_payment_registration.developer_address.postal_code #=> String
|
|
3736
|
+
# resp.app_payment_registration.developer_address.country #=> String
|
|
3737
|
+
# resp.app_payment_registration.tax_registration_number #=> String
|
|
3738
|
+
# resp.app_payment_registration.business_type #=> String, one of "INDIVIDUAL", "REGISTERED_BUSINESS"
|
|
3739
|
+
# resp.app_payment_registration.email #=> String
|
|
3740
|
+
# resp.app_payment_registration.support_email #=> String
|
|
3741
|
+
# resp.app_payment_registration.display_name #=> String
|
|
3742
|
+
# resp.app_payment_registration.support_phone #=> String
|
|
3743
|
+
# resp.app_payment_registration.tax_registrations #=> Array
|
|
3744
|
+
# resp.app_payment_registration.tax_registrations[0].country_code #=> String
|
|
3745
|
+
# resp.app_payment_registration.tax_registrations[0].state #=> String
|
|
3746
|
+
# resp.app_payment_registration.tax_registrations[0].collection_type #=> String
|
|
3747
|
+
# resp.app_payment_registration.tax_registrations[0].registration_type #=> String, one of "SALES_USE", "RETAIL_DELIVERY_FEE", "VAT", "VAT_OSS", "VAT_IOSS", "GST", "FEDERAL_EIN", "CPF", "CNPJ", "SST", "TIN", "NIP", "NPWP", "NCID"
|
|
3748
|
+
# resp.app_payment_registration.tax_registrations[0].registration_id #=> String
|
|
3749
|
+
# resp.app_payment_registration.tax_registrations[0].locality #=> String
|
|
3750
|
+
# resp.app_payment_registration.created_at #=> Time
|
|
3751
|
+
# resp.app_payment_registration.updated_at #=> Time
|
|
3752
|
+
#
|
|
3753
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/UpdateAppPaymentRegistration AWS API Documentation
|
|
3754
|
+
#
|
|
3755
|
+
# @overload update_app_payment_registration(params = {})
|
|
3756
|
+
# @param [Hash] params ({})
|
|
3757
|
+
def update_app_payment_registration(params = {}, options = {})
|
|
3758
|
+
req = build_request(:update_app_payment_registration, params)
|
|
3759
|
+
req.send_request(options)
|
|
3760
|
+
end
|
|
3761
|
+
|
|
3762
|
+
# Updates an existing metric. Only a draft metric, one that has never
|
|
3763
|
+
# been published, can be modified. After a metric is published, every
|
|
3764
|
+
# field is frozen and any update is rejected with a ConflictException.
|
|
3765
|
+
# To change a published metric, archive it and create a new metric.
|
|
3766
|
+
#
|
|
3767
|
+
# @option params [required, String] :app_id
|
|
3768
|
+
# The ID of the app.
|
|
3769
|
+
#
|
|
3770
|
+
# @option params [required, String] :metric_id
|
|
3771
|
+
# The ID of the metric to update.
|
|
3772
|
+
#
|
|
3773
|
+
# @option params [String] :name
|
|
3774
|
+
# A human-readable display name for the metric.
|
|
3775
|
+
#
|
|
3776
|
+
# @option params [String] :description
|
|
3777
|
+
# A description of what the metric measures.
|
|
3778
|
+
#
|
|
3779
|
+
# @option params [String] :event_type
|
|
3780
|
+
# The event type this metric aggregates.
|
|
3781
|
+
#
|
|
3782
|
+
# @option params [String] :unit_name
|
|
3783
|
+
# The unit of measure for the metric (for example, "requests"), in
|
|
3784
|
+
# lowercase snake\_case.
|
|
3785
|
+
#
|
|
3786
|
+
# @option params [Types::MetricDefinition] :definition
|
|
3787
|
+
# The aggregation definition: filters, aggregation function, grouping,
|
|
3788
|
+
# and period.
|
|
3789
|
+
#
|
|
3790
|
+
# @return [Types::UpdateMetricResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3791
|
+
#
|
|
3792
|
+
# * {Types::UpdateMetricResponse#metric #metric} => Types::Metric
|
|
3793
|
+
#
|
|
3794
|
+
# @example Request syntax with placeholder values
|
|
3795
|
+
#
|
|
3796
|
+
# resp = client.update_metric({
|
|
3797
|
+
# app_id: "AppId", # required
|
|
3798
|
+
# metric_id: "MetricId", # required
|
|
3799
|
+
# name: "MetricDisplayName",
|
|
3800
|
+
# description: "MetricDescription",
|
|
3801
|
+
# event_type: "SourceEventType",
|
|
3802
|
+
# unit_name: "UnitName",
|
|
3803
|
+
# definition: {
|
|
3804
|
+
# filters: [ # required
|
|
3805
|
+
# {
|
|
3806
|
+
# field: "IdentifierField", # required
|
|
3807
|
+
# operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS, IN, NOT_IN
|
|
3808
|
+
# values: ["FilterValueListMemberString"], # required
|
|
3809
|
+
# },
|
|
3810
|
+
# ],
|
|
3811
|
+
# function: "SUM", # required, accepts SUM, COUNT, MAX
|
|
3812
|
+
# function_field: "IdentifierField",
|
|
3813
|
+
# group_by: ["IdentifierField"], # required
|
|
3814
|
+
# period: "MONTHLY", # required, accepts MONTHLY
|
|
3815
|
+
# },
|
|
3816
|
+
# })
|
|
3817
|
+
#
|
|
3818
|
+
# @example Response structure
|
|
3819
|
+
#
|
|
3820
|
+
# resp.metric.app_id #=> String
|
|
3821
|
+
# resp.metric.metric_id #=> String
|
|
3822
|
+
# resp.metric.name #=> String
|
|
3823
|
+
# resp.metric.description #=> String
|
|
3824
|
+
# resp.metric.event_type #=> String
|
|
3825
|
+
# resp.metric.unit_name #=> String
|
|
3826
|
+
# resp.metric.definition.filters #=> Array
|
|
3827
|
+
# resp.metric.definition.filters[0].field #=> String
|
|
3828
|
+
# resp.metric.definition.filters[0].operator #=> String, one of "EQUALS", "NOT_EQUALS", "IN", "NOT_IN"
|
|
3829
|
+
# resp.metric.definition.filters[0].values #=> Array
|
|
3830
|
+
# resp.metric.definition.filters[0].values[0] #=> String
|
|
3831
|
+
# resp.metric.definition.function #=> String, one of "SUM", "COUNT", "MAX"
|
|
3832
|
+
# resp.metric.definition.function_field #=> String
|
|
3833
|
+
# resp.metric.definition.group_by #=> Array
|
|
3834
|
+
# resp.metric.definition.group_by[0] #=> String
|
|
3835
|
+
# resp.metric.definition.period #=> String, one of "MONTHLY"
|
|
3836
|
+
# resp.metric.arn #=> String
|
|
3837
|
+
# resp.metric.stage #=> String, one of "DRAFT", "PUBLISHED"
|
|
3838
|
+
#
|
|
3839
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/UpdateMetric AWS API Documentation
|
|
3840
|
+
#
|
|
3841
|
+
# @overload update_metric(params = {})
|
|
3842
|
+
# @param [Hash] params ({})
|
|
3843
|
+
def update_metric(params = {}, options = {})
|
|
3844
|
+
req = build_request(:update_metric, params)
|
|
3845
|
+
req.send_request(options)
|
|
3846
|
+
end
|
|
3847
|
+
|
|
3848
|
+
# Updates the definition of a one-time price. This operation is
|
|
3849
|
+
# idempotent.
|
|
3850
|
+
#
|
|
3851
|
+
# @option params [required, String] :app_id
|
|
3852
|
+
# The ID of the app the one-time price belongs to.
|
|
3853
|
+
#
|
|
3854
|
+
# @option params [required, String] :one_time_price_id
|
|
3855
|
+
# The ID of the one-time price to update.
|
|
3856
|
+
#
|
|
3857
|
+
# @option params [required, Types::OneTimePriceDefinition] :definition
|
|
3858
|
+
# The new definition to apply to the one-time price, including its
|
|
3859
|
+
# display name, price, metric, and credited capacity.
|
|
3860
|
+
#
|
|
3861
|
+
# @option params [String] :client_token
|
|
3862
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
3863
|
+
# completes no more than one time. If this token matches a previous
|
|
3864
|
+
# request, the service ignores the request but does not return an error.
|
|
3865
|
+
#
|
|
3866
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
3867
|
+
# not need to pass this option.**
|
|
3868
|
+
#
|
|
3869
|
+
# @return [Types::UpdateOneTimePriceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3870
|
+
#
|
|
3871
|
+
# * {Types::UpdateOneTimePriceResponse#one_time_price #one_time_price} => Types::OneTimePrice
|
|
3872
|
+
#
|
|
3873
|
+
# @example Request syntax with placeholder values
|
|
3874
|
+
#
|
|
3875
|
+
# resp = client.update_one_time_price({
|
|
3876
|
+
# app_id: "AppId", # required
|
|
3877
|
+
# one_time_price_id: "OneTimePriceId", # required
|
|
3878
|
+
# definition: { # required
|
|
3879
|
+
# name: "DisplayName", # required
|
|
3880
|
+
# price: { # required
|
|
3881
|
+
# currency_code: "CurrencyCode", # required
|
|
3882
|
+
# amount: "PriceAmount", # required
|
|
3883
|
+
# },
|
|
3884
|
+
# metric_id: "MetricId", # required
|
|
3885
|
+
# capacity: 1, # required
|
|
3886
|
+
# },
|
|
3887
|
+
# client_token: "ClientToken",
|
|
3888
|
+
# })
|
|
3889
|
+
#
|
|
3890
|
+
# @example Response structure
|
|
3891
|
+
#
|
|
3892
|
+
# resp.one_time_price.arn #=> String
|
|
3893
|
+
# resp.one_time_price.app_id #=> String
|
|
3894
|
+
# resp.one_time_price.one_time_price_id #=> String
|
|
3895
|
+
# resp.one_time_price.definition.name #=> String
|
|
3896
|
+
# resp.one_time_price.definition.price.currency_code #=> String
|
|
3897
|
+
# resp.one_time_price.definition.price.amount #=> String
|
|
3898
|
+
# resp.one_time_price.definition.metric_id #=> String
|
|
3899
|
+
# resp.one_time_price.definition.capacity #=> Integer
|
|
3900
|
+
# resp.one_time_price.stage #=> String, one of "DRAFT", "PUBLISHED"
|
|
3901
|
+
#
|
|
3902
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/UpdateOneTimePrice AWS API Documentation
|
|
3903
|
+
#
|
|
3904
|
+
# @overload update_one_time_price(params = {})
|
|
3905
|
+
# @param [Hash] params ({})
|
|
3906
|
+
def update_one_time_price(params = {}, options = {})
|
|
3907
|
+
req = build_request(:update_one_time_price, params)
|
|
3908
|
+
req.send_request(options)
|
|
3909
|
+
end
|
|
3910
|
+
|
|
3911
|
+
# Updates an existing plan. Only a draft plan, one that has never been
|
|
3912
|
+
# published, can be modified. After a plan is published, all of its
|
|
3913
|
+
# fields are frozen and any update is rejected with a ConflictException.
|
|
3914
|
+
# To change the terms of a published plan, archive it and create a new
|
|
3915
|
+
# plan.
|
|
3916
|
+
#
|
|
3917
|
+
# @option params [required, String] :app_id
|
|
3918
|
+
# The ID of the app.
|
|
3919
|
+
#
|
|
3920
|
+
# @option params [required, String] :plan_id
|
|
3921
|
+
# The identifier of the plan. AWS App Monetization generates this value
|
|
3922
|
+
# when you create the plan. It is unique within the app and is never
|
|
3923
|
+
# reused. Treat it as opaque.
|
|
3924
|
+
#
|
|
3925
|
+
# @option params [required, Types::PlanDefinition] :definition
|
|
3926
|
+
# The plan's updated pricing and packaging definition.
|
|
3927
|
+
#
|
|
3928
|
+
# @return [Types::UpdatePlanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3929
|
+
#
|
|
3930
|
+
# * {Types::UpdatePlanResponse#plan #plan} => Types::Plan
|
|
3931
|
+
#
|
|
3932
|
+
# @example Request syntax with placeholder values
|
|
3933
|
+
#
|
|
3934
|
+
# resp = client.update_plan({
|
|
3935
|
+
# app_id: "AppId", # required
|
|
3936
|
+
# plan_id: "PlanId", # required
|
|
3937
|
+
# definition: { # required
|
|
3938
|
+
# name: "DisplayName", # required
|
|
3939
|
+
# description: "Description",
|
|
3940
|
+
# billing_cycle: "MONTHLY", # required, accepts MONTHLY, ANNUAL, ONE_TIME
|
|
3941
|
+
# subscription_price: { # required
|
|
3942
|
+
# currency_code: "CurrencyCode", # required
|
|
3943
|
+
# amount: "PriceAmount", # required
|
|
3944
|
+
# },
|
|
3945
|
+
# included_quotas: {
|
|
3946
|
+
# "MetricId" => {
|
|
3947
|
+
# flat: {
|
|
3948
|
+
# included_quantity: 1, # required
|
|
3949
|
+
# overage_policy: "NO_OVERAGE_THROTTLE", # accepts NO_OVERAGE_THROTTLE, APPLY_FIXED_OVERAGE, APPLY_TIERED_OVERAGE
|
|
3950
|
+
# overage_price: {
|
|
3951
|
+
# currency_code: "CurrencyCode", # required
|
|
3952
|
+
# amount: "PriceAmount", # required
|
|
3953
|
+
# },
|
|
3954
|
+
# tiered_overage: {
|
|
3955
|
+
# semantics: "GRADUATED", # required, accepts GRADUATED, VOLUME
|
|
3956
|
+
# tiers: [ # required
|
|
3957
|
+
# {
|
|
3958
|
+
# first_unit: 1, # required
|
|
3959
|
+
# last_unit: 1,
|
|
3960
|
+
# unit_price: { # required
|
|
3961
|
+
# currency_code: "CurrencyCode", # required
|
|
3962
|
+
# amount: "PriceAmount", # required
|
|
3963
|
+
# },
|
|
3964
|
+
# },
|
|
3965
|
+
# ],
|
|
3966
|
+
# },
|
|
3967
|
+
# max_quantity: 1,
|
|
3968
|
+
# },
|
|
3969
|
+
# tiered: {
|
|
3970
|
+
# included_quantity: 1, # required
|
|
3971
|
+
# tiered_price: { # required
|
|
3972
|
+
# semantics: "GRADUATED", # required, accepts GRADUATED, VOLUME
|
|
3973
|
+
# tiers: [ # required
|
|
3974
|
+
# {
|
|
3975
|
+
# first_unit: 1, # required
|
|
3976
|
+
# last_unit: 1,
|
|
3977
|
+
# unit_price: { # required
|
|
3978
|
+
# currency_code: "CurrencyCode", # required
|
|
3979
|
+
# amount: "PriceAmount", # required
|
|
3980
|
+
# },
|
|
3981
|
+
# },
|
|
3982
|
+
# ],
|
|
3983
|
+
# },
|
|
3984
|
+
# max_quantity: 1,
|
|
3985
|
+
# },
|
|
3986
|
+
# },
|
|
3987
|
+
# },
|
|
3988
|
+
# tax_code: "ProductTaxCode",
|
|
3989
|
+
# payment_failure_policy: {
|
|
3990
|
+
# retry_attempts: 1,
|
|
3991
|
+
# retry_window_days: 1,
|
|
3992
|
+
# downgrade_to_plan_id: "PlanId",
|
|
3993
|
+
# },
|
|
3994
|
+
# },
|
|
3995
|
+
# })
|
|
3996
|
+
#
|
|
3997
|
+
# @example Response structure
|
|
3998
|
+
#
|
|
3999
|
+
# resp.plan.app_id #=> String
|
|
4000
|
+
# resp.plan.plan_id #=> String
|
|
4001
|
+
# resp.plan.definition.name #=> String
|
|
4002
|
+
# resp.plan.definition.description #=> String
|
|
4003
|
+
# resp.plan.definition.billing_cycle #=> String, one of "MONTHLY", "ANNUAL", "ONE_TIME"
|
|
4004
|
+
# resp.plan.definition.subscription_price.currency_code #=> String
|
|
4005
|
+
# resp.plan.definition.subscription_price.amount #=> String
|
|
4006
|
+
# resp.plan.definition.included_quotas #=> Hash
|
|
4007
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.included_quantity #=> Integer
|
|
4008
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.overage_policy #=> String, one of "NO_OVERAGE_THROTTLE", "APPLY_FIXED_OVERAGE", "APPLY_TIERED_OVERAGE"
|
|
4009
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.overage_price.currency_code #=> String
|
|
4010
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.overage_price.amount #=> String
|
|
4011
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.semantics #=> String, one of "GRADUATED", "VOLUME"
|
|
4012
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers #=> Array
|
|
4013
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].first_unit #=> Integer
|
|
4014
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].last_unit #=> Integer
|
|
4015
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].unit_price.currency_code #=> String
|
|
4016
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.tiered_overage.tiers[0].unit_price.amount #=> String
|
|
4017
|
+
# resp.plan.definition.included_quotas["MetricId"].flat.max_quantity #=> Integer
|
|
4018
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.included_quantity #=> Integer
|
|
4019
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.semantics #=> String, one of "GRADUATED", "VOLUME"
|
|
4020
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers #=> Array
|
|
4021
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].first_unit #=> Integer
|
|
4022
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].last_unit #=> Integer
|
|
4023
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].unit_price.currency_code #=> String
|
|
4024
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.tiered_price.tiers[0].unit_price.amount #=> String
|
|
4025
|
+
# resp.plan.definition.included_quotas["MetricId"].tiered.max_quantity #=> Integer
|
|
4026
|
+
# resp.plan.definition.tax_code #=> String
|
|
4027
|
+
# resp.plan.definition.payment_failure_policy.retry_attempts #=> Integer
|
|
4028
|
+
# resp.plan.definition.payment_failure_policy.retry_window_days #=> Integer
|
|
4029
|
+
# resp.plan.definition.payment_failure_policy.downgrade_to_plan_id #=> String
|
|
4030
|
+
# resp.plan.stage #=> String, one of "DRAFT", "PUBLISHED"
|
|
4031
|
+
# resp.plan.created_at #=> Time
|
|
4032
|
+
# resp.plan.updated_at #=> Time
|
|
4033
|
+
# resp.plan.arn #=> String
|
|
4034
|
+
#
|
|
4035
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appmonetization-2022-07-26/UpdatePlan AWS API Documentation
|
|
4036
|
+
#
|
|
4037
|
+
# @overload update_plan(params = {})
|
|
4038
|
+
# @param [Hash] params ({})
|
|
4039
|
+
def update_plan(params = {}, options = {})
|
|
4040
|
+
req = build_request(:update_plan, params)
|
|
4041
|
+
req.send_request(options)
|
|
4042
|
+
end
|
|
4043
|
+
|
|
4044
|
+
# @!endgroup
|
|
4045
|
+
|
|
4046
|
+
# @param params ({})
|
|
4047
|
+
# @api private
|
|
4048
|
+
def build_request(operation_name, params = {})
|
|
4049
|
+
handlers = @handlers.for(operation_name)
|
|
4050
|
+
tracer = config.telemetry_provider.tracer_provider.tracer(
|
|
4051
|
+
Aws::Telemetry.module_to_tracer_name('Aws::AppMonetization')
|
|
4052
|
+
)
|
|
4053
|
+
context = Seahorse::Client::RequestContext.new(
|
|
4054
|
+
operation_name: operation_name,
|
|
4055
|
+
operation: config.api.operation(operation_name),
|
|
4056
|
+
client: self,
|
|
4057
|
+
params: params,
|
|
4058
|
+
config: config,
|
|
4059
|
+
tracer: tracer
|
|
4060
|
+
)
|
|
4061
|
+
context[:gem_name] = 'aws-sdk-appmonetization'
|
|
4062
|
+
context[:gem_version] = '1.0.0'
|
|
4063
|
+
Seahorse::Client::Request.new(handlers, context)
|
|
4064
|
+
end
|
|
4065
|
+
|
|
4066
|
+
# @api private
|
|
4067
|
+
# @deprecated
|
|
4068
|
+
def waiter_names
|
|
4069
|
+
[]
|
|
4070
|
+
end
|
|
4071
|
+
|
|
4072
|
+
class << self
|
|
4073
|
+
|
|
4074
|
+
# @api private
|
|
4075
|
+
attr_reader :identifier
|
|
4076
|
+
|
|
4077
|
+
# @api private
|
|
4078
|
+
def errors_module
|
|
4079
|
+
Errors
|
|
4080
|
+
end
|
|
4081
|
+
|
|
4082
|
+
end
|
|
4083
|
+
end
|
|
4084
|
+
end
|