aws-sdk-honeycode 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/lib/aws-sdk-honeycode.rb +52 -0
- data/lib/aws-sdk-honeycode/client.rb +504 -0
- data/lib/aws-sdk-honeycode/client_api.rb +189 -0
- data/lib/aws-sdk-honeycode/customizations.rb +0 -0
- data/lib/aws-sdk-honeycode/errors.rb +182 -0
- data/lib/aws-sdk-honeycode/resource.rb +26 -0
- data/lib/aws-sdk-honeycode/types.rb +435 -0
- metadata +88 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 1402a64d956dfd7482eec471bdbb278372ca0b2b2a337c8ba46c2c0cdf65ab67
|
|
4
|
+
data.tar.gz: 8bf0486d1005ffd9b8b35c34107255c4d606a6195fc356cfdb094ce269f1fc22
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 200cf189dfa7633878b19a6b5bc63b92104d02361698a2e1bd5af8cbdbc9a54b9de3271fa32ee52b1b117dfd180fe829289c5ccd28a63faabbeb0932481ad17a
|
|
7
|
+
data.tar.gz: 01f999112b4f676c9df84aa23eae006a9fa980e72a816706aac46456880fd1ed23f424016f28020a48283308acba2eee464ffb658e52c657207fe30c33100924
|
|
@@ -0,0 +1,52 @@
|
|
|
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/master/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
require 'aws-sdk-core'
|
|
11
|
+
require 'aws-sigv4'
|
|
12
|
+
|
|
13
|
+
require_relative 'aws-sdk-honeycode/types'
|
|
14
|
+
require_relative 'aws-sdk-honeycode/client_api'
|
|
15
|
+
require_relative 'aws-sdk-honeycode/client'
|
|
16
|
+
require_relative 'aws-sdk-honeycode/errors'
|
|
17
|
+
require_relative 'aws-sdk-honeycode/resource'
|
|
18
|
+
require_relative 'aws-sdk-honeycode/customizations'
|
|
19
|
+
|
|
20
|
+
# This module provides support for Amazon Honeycode. This module is available in the
|
|
21
|
+
# `aws-sdk-honeycode` gem.
|
|
22
|
+
#
|
|
23
|
+
# # Client
|
|
24
|
+
#
|
|
25
|
+
# The {Client} class provides one method for each API operation. Operation
|
|
26
|
+
# methods each accept a hash of request parameters and return a response
|
|
27
|
+
# structure.
|
|
28
|
+
#
|
|
29
|
+
# honeycode = Aws::Honeycode::Client.new
|
|
30
|
+
# resp = honeycode.get_screen_data(params)
|
|
31
|
+
#
|
|
32
|
+
# See {Client} for more information.
|
|
33
|
+
#
|
|
34
|
+
# # Errors
|
|
35
|
+
#
|
|
36
|
+
# Errors returned from Amazon Honeycode are defined in the
|
|
37
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
|
38
|
+
#
|
|
39
|
+
# begin
|
|
40
|
+
# # do stuff
|
|
41
|
+
# rescue Aws::Honeycode::Errors::ServiceError
|
|
42
|
+
# # rescues all Amazon Honeycode API errors
|
|
43
|
+
# end
|
|
44
|
+
#
|
|
45
|
+
# See {Errors} for more information.
|
|
46
|
+
#
|
|
47
|
+
# @service
|
|
48
|
+
module Aws::Honeycode
|
|
49
|
+
|
|
50
|
+
GEM_VERSION = '1.0.0'
|
|
51
|
+
|
|
52
|
+
end
|
|
@@ -0,0 +1,504 @@
|
|
|
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/master/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
require 'seahorse/client/plugins/content_length.rb'
|
|
11
|
+
require 'aws-sdk-core/plugins/credentials_configuration.rb'
|
|
12
|
+
require 'aws-sdk-core/plugins/logging.rb'
|
|
13
|
+
require 'aws-sdk-core/plugins/param_converter.rb'
|
|
14
|
+
require 'aws-sdk-core/plugins/param_validator.rb'
|
|
15
|
+
require 'aws-sdk-core/plugins/user_agent.rb'
|
|
16
|
+
require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
|
|
17
|
+
require 'aws-sdk-core/plugins/retry_errors.rb'
|
|
18
|
+
require 'aws-sdk-core/plugins/global_configuration.rb'
|
|
19
|
+
require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
|
20
|
+
require 'aws-sdk-core/plugins/endpoint_discovery.rb'
|
|
21
|
+
require 'aws-sdk-core/plugins/endpoint_pattern.rb'
|
|
22
|
+
require 'aws-sdk-core/plugins/response_paging.rb'
|
|
23
|
+
require 'aws-sdk-core/plugins/stub_responses.rb'
|
|
24
|
+
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
|
25
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
26
|
+
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
|
+
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
|
28
|
+
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
|
+
require 'aws-sdk-core/plugins/signature_v4.rb'
|
|
31
|
+
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
|
32
|
+
|
|
33
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:honeycode)
|
|
34
|
+
|
|
35
|
+
module Aws::Honeycode
|
|
36
|
+
# An API client for Honeycode. To construct a client, you need to configure a `:region` and `:credentials`.
|
|
37
|
+
#
|
|
38
|
+
# client = Aws::Honeycode::Client.new(
|
|
39
|
+
# region: region_name,
|
|
40
|
+
# credentials: credentials,
|
|
41
|
+
# # ...
|
|
42
|
+
# )
|
|
43
|
+
#
|
|
44
|
+
# For details on configuring region and credentials see
|
|
45
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
|
46
|
+
#
|
|
47
|
+
# See {#initialize} for a full list of supported configuration options.
|
|
48
|
+
class Client < Seahorse::Client::Base
|
|
49
|
+
|
|
50
|
+
include Aws::ClientStubs
|
|
51
|
+
|
|
52
|
+
@identifier = :honeycode
|
|
53
|
+
|
|
54
|
+
set_api(ClientApi::API)
|
|
55
|
+
|
|
56
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
|
57
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
|
58
|
+
add_plugin(Aws::Plugins::Logging)
|
|
59
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
|
60
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
|
61
|
+
add_plugin(Aws::Plugins::UserAgent)
|
|
62
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
|
63
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
|
64
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
|
65
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
|
66
|
+
add_plugin(Aws::Plugins::EndpointDiscovery)
|
|
67
|
+
add_plugin(Aws::Plugins::EndpointPattern)
|
|
68
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
|
69
|
+
add_plugin(Aws::Plugins::StubResponses)
|
|
70
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
|
71
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
|
72
|
+
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
|
73
|
+
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
|
74
|
+
add_plugin(Aws::Plugins::TransferEncoding)
|
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
|
76
|
+
add_plugin(Aws::Plugins::SignatureV4)
|
|
77
|
+
add_plugin(Aws::Plugins::Protocols::RestJson)
|
|
78
|
+
|
|
79
|
+
# @overload initialize(options)
|
|
80
|
+
# @param [Hash] options
|
|
81
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
|
82
|
+
# Your AWS credentials. This can be an instance of any one of the
|
|
83
|
+
# following classes:
|
|
84
|
+
#
|
|
85
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
|
86
|
+
# credentials.
|
|
87
|
+
#
|
|
88
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
|
89
|
+
# from an EC2 IMDS on an EC2 instance.
|
|
90
|
+
#
|
|
91
|
+
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
|
92
|
+
# shared file, such as `~/.aws/config`.
|
|
93
|
+
#
|
|
94
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
|
95
|
+
#
|
|
96
|
+
# When `:credentials` are not configured directly, the following
|
|
97
|
+
# locations will be searched for credentials:
|
|
98
|
+
#
|
|
99
|
+
# * `Aws.config[:credentials]`
|
|
100
|
+
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
|
101
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
|
102
|
+
# * `~/.aws/credentials`
|
|
103
|
+
# * `~/.aws/config`
|
|
104
|
+
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
|
105
|
+
# very aggressive. Construct and pass an instance of
|
|
106
|
+
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
|
107
|
+
# timeouts.
|
|
108
|
+
#
|
|
109
|
+
# @option options [required, String] :region
|
|
110
|
+
# The AWS region to connect to. The configured `:region` is
|
|
111
|
+
# used to determine the service `:endpoint`. When not passed,
|
|
112
|
+
# a default `:region` is searched for in the following locations:
|
|
113
|
+
#
|
|
114
|
+
# * `Aws.config[:region]`
|
|
115
|
+
# * `ENV['AWS_REGION']`
|
|
116
|
+
# * `ENV['AMAZON_REGION']`
|
|
117
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
|
118
|
+
# * `~/.aws/credentials`
|
|
119
|
+
# * `~/.aws/config`
|
|
120
|
+
#
|
|
121
|
+
# @option options [String] :access_key_id
|
|
122
|
+
#
|
|
123
|
+
# @option options [Boolean] :active_endpoint_cache (false)
|
|
124
|
+
# When set to `true`, a thread polling for endpoints will be running in
|
|
125
|
+
# the background every 60 secs (default). Defaults to `false`.
|
|
126
|
+
#
|
|
127
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
|
128
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
|
129
|
+
# until there is sufficent client side capacity to retry the request.
|
|
130
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
|
131
|
+
# not retry instead of sleeping.
|
|
132
|
+
#
|
|
133
|
+
# @option options [Boolean] :client_side_monitoring (false)
|
|
134
|
+
# When `true`, client-side metrics will be collected for all API requests from
|
|
135
|
+
# this client.
|
|
136
|
+
#
|
|
137
|
+
# @option options [String] :client_side_monitoring_client_id ("")
|
|
138
|
+
# Allows you to provide an identifier for this client which will be attached to
|
|
139
|
+
# all generated client side metrics. Defaults to an empty string.
|
|
140
|
+
#
|
|
141
|
+
# @option options [String] :client_side_monitoring_host ("127.0.0.1")
|
|
142
|
+
# Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
|
|
143
|
+
# side monitoring agent is running on, where client metrics will be published via UDP.
|
|
144
|
+
#
|
|
145
|
+
# @option options [Integer] :client_side_monitoring_port (31000)
|
|
146
|
+
# Required for publishing client metrics. The port that the client side monitoring
|
|
147
|
+
# agent is running on, where client metrics will be published via UDP.
|
|
148
|
+
#
|
|
149
|
+
# @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
|
|
150
|
+
# Allows you to provide a custom client-side monitoring publisher class. By default,
|
|
151
|
+
# will use the Client Side Monitoring Agent Publisher.
|
|
152
|
+
#
|
|
153
|
+
# @option options [Boolean] :convert_params (true)
|
|
154
|
+
# When `true`, an attempt is made to coerce request parameters into
|
|
155
|
+
# the required types.
|
|
156
|
+
#
|
|
157
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
|
158
|
+
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
|
159
|
+
# a clock skew correction and retry requests with skewed client clocks.
|
|
160
|
+
#
|
|
161
|
+
# @option options [Boolean] :disable_host_prefix_injection (false)
|
|
162
|
+
# Set to true to disable SDK automatically adding host prefix
|
|
163
|
+
# to default service endpoint when available.
|
|
164
|
+
#
|
|
165
|
+
# @option options [String] :endpoint
|
|
166
|
+
# The client endpoint is normally constructed from the `:region`
|
|
167
|
+
# option. You should only configure an `:endpoint` when connecting
|
|
168
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
|
169
|
+
#
|
|
170
|
+
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
|
171
|
+
# Used for the maximum size limit of the LRU cache storing endpoints data
|
|
172
|
+
# for endpoint discovery enabled operations. Defaults to 1000.
|
|
173
|
+
#
|
|
174
|
+
# @option options [Integer] :endpoint_cache_max_threads (10)
|
|
175
|
+
# Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
|
|
176
|
+
#
|
|
177
|
+
# @option options [Integer] :endpoint_cache_poll_interval (60)
|
|
178
|
+
# When :endpoint_discovery and :active_endpoint_cache is enabled,
|
|
179
|
+
# Use this option to config the time interval in seconds for making
|
|
180
|
+
# requests fetching endpoints information. Defaults to 60 sec.
|
|
181
|
+
#
|
|
182
|
+
# @option options [Boolean] :endpoint_discovery (false)
|
|
183
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
|
184
|
+
#
|
|
185
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
|
186
|
+
# The log formatter.
|
|
187
|
+
#
|
|
188
|
+
# @option options [Symbol] :log_level (:info)
|
|
189
|
+
# The log level to send messages to the `:logger` at.
|
|
190
|
+
#
|
|
191
|
+
# @option options [Logger] :logger
|
|
192
|
+
# The Logger instance to send log messages to. If this option
|
|
193
|
+
# is not set, logging will be disabled.
|
|
194
|
+
#
|
|
195
|
+
# @option options [Integer] :max_attempts (3)
|
|
196
|
+
# An integer representing the maximum number attempts that will be made for
|
|
197
|
+
# a single request, including the initial attempt. For example,
|
|
198
|
+
# setting this value to 5 will result in a request being retried up to
|
|
199
|
+
# 4 times. Used in `standard` and `adaptive` retry modes.
|
|
200
|
+
#
|
|
201
|
+
# @option options [String] :profile ("default")
|
|
202
|
+
# Used when loading credentials from the shared credentials file
|
|
203
|
+
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
|
204
|
+
#
|
|
205
|
+
# @option options [Proc] :retry_backoff
|
|
206
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
|
207
|
+
# This option is only used in the `legacy` retry mode.
|
|
208
|
+
#
|
|
209
|
+
# @option options [Float] :retry_base_delay (0.3)
|
|
210
|
+
# The base delay in seconds used by the default backoff function. This option
|
|
211
|
+
# is only used in the `legacy` retry mode.
|
|
212
|
+
#
|
|
213
|
+
# @option options [Symbol] :retry_jitter (:none)
|
|
214
|
+
# A delay randomiser function used by the default backoff function.
|
|
215
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
|
216
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
|
217
|
+
# in the `legacy` retry mode.
|
|
218
|
+
#
|
|
219
|
+
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
|
220
|
+
#
|
|
221
|
+
# @option options [Integer] :retry_limit (3)
|
|
222
|
+
# The maximum number of times to retry failed requests. Only
|
|
223
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
|
224
|
+
# are retried. Generally, these are throttling errors, data
|
|
225
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
|
226
|
+
# endpoint discovery, and errors from expired credentials.
|
|
227
|
+
# This option is only used in the `legacy` retry mode.
|
|
228
|
+
#
|
|
229
|
+
# @option options [Integer] :retry_max_delay (0)
|
|
230
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
|
231
|
+
# used by the default backoff function. This option is only used in the
|
|
232
|
+
# `legacy` retry mode.
|
|
233
|
+
#
|
|
234
|
+
# @option options [String] :retry_mode ("legacy")
|
|
235
|
+
# Specifies which retry algorithm to use. Values are:
|
|
236
|
+
#
|
|
237
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
|
238
|
+
# no retry mode is provided.
|
|
239
|
+
#
|
|
240
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
|
241
|
+
# This includes support for retry quotas, which limit the number of
|
|
242
|
+
# unsuccessful retries a client can make.
|
|
243
|
+
#
|
|
244
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
|
245
|
+
# functionality of `standard` mode along with automatic client side
|
|
246
|
+
# throttling. This is a provisional mode that may change behavior
|
|
247
|
+
# in the future.
|
|
248
|
+
#
|
|
249
|
+
#
|
|
250
|
+
# @option options [String] :secret_access_key
|
|
251
|
+
#
|
|
252
|
+
# @option options [String] :session_token
|
|
253
|
+
#
|
|
254
|
+
# @option options [Boolean] :stub_responses (false)
|
|
255
|
+
# Causes the client to return stubbed responses. By default
|
|
256
|
+
# fake responses are generated and returned. You can specify
|
|
257
|
+
# the response data to return or errors to raise by calling
|
|
258
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
|
259
|
+
#
|
|
260
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
|
261
|
+
# requests are made, and retries are disabled.
|
|
262
|
+
#
|
|
263
|
+
# @option options [Boolean] :validate_params (true)
|
|
264
|
+
# When `true`, request parameters are validated before
|
|
265
|
+
# sending the request.
|
|
266
|
+
#
|
|
267
|
+
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
|
268
|
+
# requests through. Formatted like 'http://proxy.com:123'.
|
|
269
|
+
#
|
|
270
|
+
# @option options [Float] :http_open_timeout (15) The number of
|
|
271
|
+
# seconds to wait when opening a HTTP session before raising a
|
|
272
|
+
# `Timeout::Error`.
|
|
273
|
+
#
|
|
274
|
+
# @option options [Integer] :http_read_timeout (60) The default
|
|
275
|
+
# number of seconds to wait for response data. This value can
|
|
276
|
+
# safely be set per-request on the session.
|
|
277
|
+
#
|
|
278
|
+
# @option options [Float] :http_idle_timeout (5) The number of
|
|
279
|
+
# seconds a connection is allowed to sit idle before it is
|
|
280
|
+
# considered stale. Stale connections are closed and removed
|
|
281
|
+
# from the pool before making a request.
|
|
282
|
+
#
|
|
283
|
+
# @option options [Float] :http_continue_timeout (1) The number of
|
|
284
|
+
# seconds to wait for a 100-continue response before sending the
|
|
285
|
+
# request body. This option has no effect unless the request has
|
|
286
|
+
# "Expect" header set to "100-continue". Defaults to `nil` which
|
|
287
|
+
# disables this behaviour. This value can safely be set per
|
|
288
|
+
# request on the session.
|
|
289
|
+
#
|
|
290
|
+
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
|
291
|
+
# HTTP debug output will be sent to the `:logger`.
|
|
292
|
+
#
|
|
293
|
+
# @option options [Boolean] :ssl_verify_peer (true) When `true`,
|
|
294
|
+
# SSL peer certificates are verified when establishing a
|
|
295
|
+
# connection.
|
|
296
|
+
#
|
|
297
|
+
# @option options [String] :ssl_ca_bundle Full path to the SSL
|
|
298
|
+
# certificate authority bundle file that should be used when
|
|
299
|
+
# verifying peer certificates. If you do not pass
|
|
300
|
+
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
|
301
|
+
# will be used if available.
|
|
302
|
+
#
|
|
303
|
+
# @option options [String] :ssl_ca_directory Full path of the
|
|
304
|
+
# directory that contains the unbundled SSL certificate
|
|
305
|
+
# authority files for verifying peer certificates. If you do
|
|
306
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
|
307
|
+
# system default will be used if available.
|
|
308
|
+
#
|
|
309
|
+
def initialize(*args)
|
|
310
|
+
super
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# @!group API Operations
|
|
314
|
+
|
|
315
|
+
# The GetScreenData API allows retrieval of data from a screen in a
|
|
316
|
+
# Honeycode app. The API allows setting local variables in the screen to
|
|
317
|
+
# filter, sort or otherwise affect what will be displayed on the screen.
|
|
318
|
+
#
|
|
319
|
+
# @option params [required, String] :workbook_id
|
|
320
|
+
# The ID of the workbook that contains the screen.
|
|
321
|
+
#
|
|
322
|
+
# @option params [required, String] :app_id
|
|
323
|
+
# The ID of the app that contains the screem.
|
|
324
|
+
#
|
|
325
|
+
# @option params [required, String] :screen_id
|
|
326
|
+
# The ID of the screen.
|
|
327
|
+
#
|
|
328
|
+
# @option params [Hash<String,Types::VariableValue>] :variables
|
|
329
|
+
# Variables are optional and are needed only if the screen requires them
|
|
330
|
+
# to render correctly. Variables are specified as a map where the key is
|
|
331
|
+
# the name of the variable as defined on the screen. The value is an
|
|
332
|
+
# object which currently has only one property, rawValue, which holds
|
|
333
|
+
# the value of the variable to be passed to the screen.
|
|
334
|
+
#
|
|
335
|
+
# @option params [Integer] :max_results
|
|
336
|
+
# The number of results to be returned on a single page. Specify a
|
|
337
|
+
# number between 1 and 100. The maximum value is 100.
|
|
338
|
+
#
|
|
339
|
+
# This parameter is optional. If you don't specify this parameter, the
|
|
340
|
+
# default page size is 100.
|
|
341
|
+
#
|
|
342
|
+
# @option params [String] :next_token
|
|
343
|
+
# This parameter is optional. If a nextToken is not specified, the API
|
|
344
|
+
# returns the first page of data.
|
|
345
|
+
#
|
|
346
|
+
# Pagination tokens expire after 1 hour. If you use a token that was
|
|
347
|
+
# returned more than an hour back, the API will throw
|
|
348
|
+
# ValidationException.
|
|
349
|
+
#
|
|
350
|
+
# @return [Types::GetScreenDataResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
351
|
+
#
|
|
352
|
+
# * {Types::GetScreenDataResult#results #results} => Hash<String,Types::ResultSet>
|
|
353
|
+
# * {Types::GetScreenDataResult#workbook_cursor #workbook_cursor} => Integer
|
|
354
|
+
# * {Types::GetScreenDataResult#next_token #next_token} => String
|
|
355
|
+
#
|
|
356
|
+
# @example Request syntax with placeholder values
|
|
357
|
+
#
|
|
358
|
+
# resp = client.get_screen_data({
|
|
359
|
+
# workbook_id: "ResourceId", # required
|
|
360
|
+
# app_id: "ResourceId", # required
|
|
361
|
+
# screen_id: "ResourceId", # required
|
|
362
|
+
# variables: {
|
|
363
|
+
# "VariableName" => {
|
|
364
|
+
# raw_value: "RawValue", # required
|
|
365
|
+
# },
|
|
366
|
+
# },
|
|
367
|
+
# max_results: 1,
|
|
368
|
+
# next_token: "PaginationToken",
|
|
369
|
+
# })
|
|
370
|
+
#
|
|
371
|
+
# @example Response structure
|
|
372
|
+
#
|
|
373
|
+
# resp.results #=> Hash
|
|
374
|
+
# resp.results["Name"].headers #=> Array
|
|
375
|
+
# resp.results["Name"].headers[0].name #=> String
|
|
376
|
+
# resp.results["Name"].headers[0].format #=> String, one of "AUTO", "NUMBER", "CURRENCY", "DATE", "TIME", "DATE_TIME", "PERCENTAGE", "TEXT", "ACCOUNTING", "CONTACT", "ROWLINK"
|
|
377
|
+
# resp.results["Name"].rows #=> Array
|
|
378
|
+
# resp.results["Name"].rows[0].row_id #=> String
|
|
379
|
+
# resp.results["Name"].rows[0].data_items #=> Array
|
|
380
|
+
# resp.results["Name"].rows[0].data_items[0].override_format #=> String, one of "AUTO", "NUMBER", "CURRENCY", "DATE", "TIME", "DATE_TIME", "PERCENTAGE", "TEXT", "ACCOUNTING", "CONTACT", "ROWLINK"
|
|
381
|
+
# resp.results["Name"].rows[0].data_items[0].raw_value #=> String
|
|
382
|
+
# resp.results["Name"].rows[0].data_items[0].formatted_value #=> String
|
|
383
|
+
# resp.workbook_cursor #=> Integer
|
|
384
|
+
# resp.next_token #=> String
|
|
385
|
+
#
|
|
386
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/honeycode-2020-03-01/GetScreenData AWS API Documentation
|
|
387
|
+
#
|
|
388
|
+
# @overload get_screen_data(params = {})
|
|
389
|
+
# @param [Hash] params ({})
|
|
390
|
+
def get_screen_data(params = {}, options = {})
|
|
391
|
+
req = build_request(:get_screen_data, params)
|
|
392
|
+
req.send_request(options)
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# The InvokeScreenAutomation API allows invoking an action defined in a
|
|
396
|
+
# screen in a Honeycode app. The API allows setting local variables,
|
|
397
|
+
# which can then be used in the automation being invoked. This allows
|
|
398
|
+
# automating the Honeycode app interactions to write, update or delete
|
|
399
|
+
# data in the workbook.
|
|
400
|
+
#
|
|
401
|
+
# @option params [required, String] :workbook_id
|
|
402
|
+
# The ID of the workbook that contains the screen automation.
|
|
403
|
+
#
|
|
404
|
+
# @option params [required, String] :app_id
|
|
405
|
+
# The ID of the app that contains the screen automation.
|
|
406
|
+
#
|
|
407
|
+
# @option params [required, String] :screen_id
|
|
408
|
+
# The ID of the screen that contains the screen automation.
|
|
409
|
+
#
|
|
410
|
+
# @option params [required, String] :screen_automation_id
|
|
411
|
+
# The ID of the automation action to be performed.
|
|
412
|
+
#
|
|
413
|
+
# @option params [Hash<String,Types::VariableValue>] :variables
|
|
414
|
+
# Variables are optional and are needed only if the screen requires them
|
|
415
|
+
# to render correctly. Variables are specified as a map where the key is
|
|
416
|
+
# the name of the variable as defined on the screen. The value is an
|
|
417
|
+
# object which currently has only one property, rawValue, which holds
|
|
418
|
+
# the value of the variable to be passed to the screen.
|
|
419
|
+
#
|
|
420
|
+
# @option params [String] :row_id
|
|
421
|
+
# The row ID for the automation if the automation is defined inside a
|
|
422
|
+
# block with source or list.
|
|
423
|
+
#
|
|
424
|
+
# @option params [String] :client_request_token
|
|
425
|
+
# The request token for performing the automation action. Request tokens
|
|
426
|
+
# help to identify duplicate requests. If a call times out or fails due
|
|
427
|
+
# to a transient error like a failed network connection, you can retry
|
|
428
|
+
# the call with the same request token. The service ensures that if the
|
|
429
|
+
# first call using that request token is successfully performed, the
|
|
430
|
+
# second call will return the response of the previous call rather than
|
|
431
|
+
# performing the action again.
|
|
432
|
+
#
|
|
433
|
+
# Note that request tokens are valid only for a few minutes. You cannot
|
|
434
|
+
# use request tokens to dedupe requests spanning hours or days.
|
|
435
|
+
#
|
|
436
|
+
# @return [Types::InvokeScreenAutomationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
437
|
+
#
|
|
438
|
+
# * {Types::InvokeScreenAutomationResult#workbook_cursor #workbook_cursor} => Integer
|
|
439
|
+
#
|
|
440
|
+
# @example Request syntax with placeholder values
|
|
441
|
+
#
|
|
442
|
+
# resp = client.invoke_screen_automation({
|
|
443
|
+
# workbook_id: "ResourceId", # required
|
|
444
|
+
# app_id: "ResourceId", # required
|
|
445
|
+
# screen_id: "ResourceId", # required
|
|
446
|
+
# screen_automation_id: "ResourceId", # required
|
|
447
|
+
# variables: {
|
|
448
|
+
# "VariableName" => {
|
|
449
|
+
# raw_value: "RawValue", # required
|
|
450
|
+
# },
|
|
451
|
+
# },
|
|
452
|
+
# row_id: "RowId",
|
|
453
|
+
# client_request_token: "ClientRequestToken",
|
|
454
|
+
# })
|
|
455
|
+
#
|
|
456
|
+
# @example Response structure
|
|
457
|
+
#
|
|
458
|
+
# resp.workbook_cursor #=> Integer
|
|
459
|
+
#
|
|
460
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/honeycode-2020-03-01/InvokeScreenAutomation AWS API Documentation
|
|
461
|
+
#
|
|
462
|
+
# @overload invoke_screen_automation(params = {})
|
|
463
|
+
# @param [Hash] params ({})
|
|
464
|
+
def invoke_screen_automation(params = {}, options = {})
|
|
465
|
+
req = build_request(:invoke_screen_automation, params)
|
|
466
|
+
req.send_request(options)
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
# @!endgroup
|
|
470
|
+
|
|
471
|
+
# @param params ({})
|
|
472
|
+
# @api private
|
|
473
|
+
def build_request(operation_name, params = {})
|
|
474
|
+
handlers = @handlers.for(operation_name)
|
|
475
|
+
context = Seahorse::Client::RequestContext.new(
|
|
476
|
+
operation_name: operation_name,
|
|
477
|
+
operation: config.api.operation(operation_name),
|
|
478
|
+
client: self,
|
|
479
|
+
params: params,
|
|
480
|
+
config: config)
|
|
481
|
+
context[:gem_name] = 'aws-sdk-honeycode'
|
|
482
|
+
context[:gem_version] = '1.0.0'
|
|
483
|
+
Seahorse::Client::Request.new(handlers, context)
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
# @api private
|
|
487
|
+
# @deprecated
|
|
488
|
+
def waiter_names
|
|
489
|
+
[]
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
class << self
|
|
493
|
+
|
|
494
|
+
# @api private
|
|
495
|
+
attr_reader :identifier
|
|
496
|
+
|
|
497
|
+
# @api private
|
|
498
|
+
def errors_module
|
|
499
|
+
Errors
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
end
|
|
503
|
+
end
|
|
504
|
+
end
|