aws-sdk-marketplacecatalog 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-marketplacecatalog.rb +47 -0
- data/lib/aws-sdk-marketplacecatalog/client.rb +617 -0
- data/lib/aws-sdk-marketplacecatalog/client_api.rb +331 -0
- data/lib/aws-sdk-marketplacecatalog/customizations.rb +0 -0
- data/lib/aws-sdk-marketplacecatalog/errors.rb +142 -0
- data/lib/aws-sdk-marketplacecatalog/resource.rb +23 -0
- data/lib/aws-sdk-marketplacecatalog/types.rb +786 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4ef7921d0cc752c1c1bf2c18821f4c75ae82ed95
|
4
|
+
data.tar.gz: af6c5a4653928b82dc611b82ef3a3b56dff6413a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e82dbfc14dbe5998e5479a47d0db4e2611670cdd55619ebead385e4c03d469ee28a42e4a190a7e844d4c9db5d04f5a52fde262a34c1720e926fe8e79e278197b
|
7
|
+
data.tar.gz: 943f401185e96a74c2b8b8c43b10fd6931990b53a2a41921ca2ffe27c7c807a301c9f3ce920f96e9f11ab54e77d5f4c2541597dc2d6ecc6cbd01fa416b75ea7c
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
require 'aws-sdk-core'
|
9
|
+
require 'aws-sigv4'
|
10
|
+
|
11
|
+
require_relative 'aws-sdk-marketplacecatalog/types'
|
12
|
+
require_relative 'aws-sdk-marketplacecatalog/client_api'
|
13
|
+
require_relative 'aws-sdk-marketplacecatalog/client'
|
14
|
+
require_relative 'aws-sdk-marketplacecatalog/errors'
|
15
|
+
require_relative 'aws-sdk-marketplacecatalog/resource'
|
16
|
+
require_relative 'aws-sdk-marketplacecatalog/customizations'
|
17
|
+
|
18
|
+
# This module provides support for AWS Marketplace Catalog Service. This module is available in the
|
19
|
+
# `aws-sdk-marketplacecatalog` gem.
|
20
|
+
#
|
21
|
+
# # Client
|
22
|
+
#
|
23
|
+
# The {Client} class provides one method for each API operation. Operation
|
24
|
+
# methods each accept a hash of request parameters and return a response
|
25
|
+
# structure.
|
26
|
+
#
|
27
|
+
# See {Client} for more information.
|
28
|
+
#
|
29
|
+
# # Errors
|
30
|
+
#
|
31
|
+
# Errors returned from AWS Marketplace Catalog Service all
|
32
|
+
# extend {Errors::ServiceError}.
|
33
|
+
#
|
34
|
+
# begin
|
35
|
+
# # do stuff
|
36
|
+
# rescue Aws::MarketplaceCatalog::Errors::ServiceError
|
37
|
+
# # rescues all service API errors
|
38
|
+
# end
|
39
|
+
#
|
40
|
+
# See {Errors} for more information.
|
41
|
+
#
|
42
|
+
# @service
|
43
|
+
module Aws::MarketplaceCatalog
|
44
|
+
|
45
|
+
GEM_VERSION = '1.0.0'
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,617 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
require 'seahorse/client/plugins/content_length.rb'
|
9
|
+
require 'aws-sdk-core/plugins/credentials_configuration.rb'
|
10
|
+
require 'aws-sdk-core/plugins/logging.rb'
|
11
|
+
require 'aws-sdk-core/plugins/param_converter.rb'
|
12
|
+
require 'aws-sdk-core/plugins/param_validator.rb'
|
13
|
+
require 'aws-sdk-core/plugins/user_agent.rb'
|
14
|
+
require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
|
15
|
+
require 'aws-sdk-core/plugins/retry_errors.rb'
|
16
|
+
require 'aws-sdk-core/plugins/global_configuration.rb'
|
17
|
+
require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
18
|
+
require 'aws-sdk-core/plugins/endpoint_discovery.rb'
|
19
|
+
require 'aws-sdk-core/plugins/endpoint_pattern.rb'
|
20
|
+
require 'aws-sdk-core/plugins/response_paging.rb'
|
21
|
+
require 'aws-sdk-core/plugins/stub_responses.rb'
|
22
|
+
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
23
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
24
|
+
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
|
+
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
|
+
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
27
|
+
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
|
+
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
|
+
|
30
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:marketplacecatalog)
|
31
|
+
|
32
|
+
module Aws::MarketplaceCatalog
|
33
|
+
class Client < Seahorse::Client::Base
|
34
|
+
|
35
|
+
include Aws::ClientStubs
|
36
|
+
|
37
|
+
@identifier = :marketplacecatalog
|
38
|
+
|
39
|
+
set_api(ClientApi::API)
|
40
|
+
|
41
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
42
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
43
|
+
add_plugin(Aws::Plugins::Logging)
|
44
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
45
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
46
|
+
add_plugin(Aws::Plugins::UserAgent)
|
47
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
48
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
49
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
50
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
51
|
+
add_plugin(Aws::Plugins::EndpointDiscovery)
|
52
|
+
add_plugin(Aws::Plugins::EndpointPattern)
|
53
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
54
|
+
add_plugin(Aws::Plugins::StubResponses)
|
55
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
56
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
57
|
+
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
58
|
+
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
59
|
+
add_plugin(Aws::Plugins::TransferEncoding)
|
60
|
+
add_plugin(Aws::Plugins::SignatureV4)
|
61
|
+
add_plugin(Aws::Plugins::Protocols::RestJson)
|
62
|
+
|
63
|
+
# @overload initialize(options)
|
64
|
+
# @param [Hash] options
|
65
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
66
|
+
# Your AWS credentials. This can be an instance of any one of the
|
67
|
+
# following classes:
|
68
|
+
#
|
69
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
70
|
+
# credentials.
|
71
|
+
#
|
72
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
73
|
+
# from an EC2 IMDS on an EC2 instance.
|
74
|
+
#
|
75
|
+
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
76
|
+
# shared file, such as `~/.aws/config`.
|
77
|
+
#
|
78
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
79
|
+
#
|
80
|
+
# When `:credentials` are not configured directly, the following
|
81
|
+
# locations will be searched for credentials:
|
82
|
+
#
|
83
|
+
# * `Aws.config[:credentials]`
|
84
|
+
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
85
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
86
|
+
# * `~/.aws/credentials`
|
87
|
+
# * `~/.aws/config`
|
88
|
+
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
89
|
+
# very aggressive. Construct and pass an instance of
|
90
|
+
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
91
|
+
# timeouts.
|
92
|
+
#
|
93
|
+
# @option options [required, String] :region
|
94
|
+
# The AWS region to connect to. The configured `:region` is
|
95
|
+
# used to determine the service `:endpoint`. When not passed,
|
96
|
+
# a default `:region` is search for in the following locations:
|
97
|
+
#
|
98
|
+
# * `Aws.config[:region]`
|
99
|
+
# * `ENV['AWS_REGION']`
|
100
|
+
# * `ENV['AMAZON_REGION']`
|
101
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
102
|
+
# * `~/.aws/credentials`
|
103
|
+
# * `~/.aws/config`
|
104
|
+
#
|
105
|
+
# @option options [String] :access_key_id
|
106
|
+
#
|
107
|
+
# @option options [Boolean] :active_endpoint_cache (false)
|
108
|
+
# When set to `true`, a thread polling for endpoints will be running in
|
109
|
+
# the background every 60 secs (default). Defaults to `false`.
|
110
|
+
#
|
111
|
+
# @option options [Boolean] :client_side_monitoring (false)
|
112
|
+
# When `true`, client-side metrics will be collected for all API requests from
|
113
|
+
# this client.
|
114
|
+
#
|
115
|
+
# @option options [String] :client_side_monitoring_client_id ("")
|
116
|
+
# Allows you to provide an identifier for this client which will be attached to
|
117
|
+
# all generated client side metrics. Defaults to an empty string.
|
118
|
+
#
|
119
|
+
# @option options [String] :client_side_monitoring_host ("127.0.0.1")
|
120
|
+
# Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
|
121
|
+
# side monitoring agent is running on, where client metrics will be published via UDP.
|
122
|
+
#
|
123
|
+
# @option options [Integer] :client_side_monitoring_port (31000)
|
124
|
+
# Required for publishing client metrics. The port that the client side monitoring
|
125
|
+
# agent is running on, where client metrics will be published via UDP.
|
126
|
+
#
|
127
|
+
# @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
|
128
|
+
# Allows you to provide a custom client-side monitoring publisher class. By default,
|
129
|
+
# will use the Client Side Monitoring Agent Publisher.
|
130
|
+
#
|
131
|
+
# @option options [Boolean] :convert_params (true)
|
132
|
+
# When `true`, an attempt is made to coerce request parameters into
|
133
|
+
# the required types.
|
134
|
+
#
|
135
|
+
# @option options [Boolean] :disable_host_prefix_injection (false)
|
136
|
+
# Set to true to disable SDK automatically adding host prefix
|
137
|
+
# to default service endpoint when available.
|
138
|
+
#
|
139
|
+
# @option options [String] :endpoint
|
140
|
+
# The client endpoint is normally constructed from the `:region`
|
141
|
+
# option. You should only configure an `:endpoint` when connecting
|
142
|
+
# to test endpoints. This should be avalid HTTP(S) URI.
|
143
|
+
#
|
144
|
+
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
145
|
+
# Used for the maximum size limit of the LRU cache storing endpoints data
|
146
|
+
# for endpoint discovery enabled operations. Defaults to 1000.
|
147
|
+
#
|
148
|
+
# @option options [Integer] :endpoint_cache_max_threads (10)
|
149
|
+
# Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
|
150
|
+
#
|
151
|
+
# @option options [Integer] :endpoint_cache_poll_interval (60)
|
152
|
+
# When :endpoint_discovery and :active_endpoint_cache is enabled,
|
153
|
+
# Use this option to config the time interval in seconds for making
|
154
|
+
# requests fetching endpoints information. Defaults to 60 sec.
|
155
|
+
#
|
156
|
+
# @option options [Boolean] :endpoint_discovery (false)
|
157
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
|
158
|
+
#
|
159
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
160
|
+
# The log formatter.
|
161
|
+
#
|
162
|
+
# @option options [Symbol] :log_level (:info)
|
163
|
+
# The log level to send messages to the `:logger` at.
|
164
|
+
#
|
165
|
+
# @option options [Logger] :logger
|
166
|
+
# The Logger instance to send log messages to. If this option
|
167
|
+
# is not set, logging will be disabled.
|
168
|
+
#
|
169
|
+
# @option options [String] :profile ("default")
|
170
|
+
# Used when loading credentials from the shared credentials file
|
171
|
+
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
172
|
+
#
|
173
|
+
# @option options [Float] :retry_base_delay (0.3)
|
174
|
+
# The base delay in seconds used by the default backoff function.
|
175
|
+
#
|
176
|
+
# @option options [Symbol] :retry_jitter (:none)
|
177
|
+
# A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
|
178
|
+
#
|
179
|
+
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
180
|
+
#
|
181
|
+
# @option options [Integer] :retry_limit (3)
|
182
|
+
# The maximum number of times to retry failed requests. Only
|
183
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
184
|
+
# are retried. Generally, these are throttling errors, data
|
185
|
+
# checksum errors, networking errors, timeout errors and auth
|
186
|
+
# errors from expired credentials.
|
187
|
+
#
|
188
|
+
# @option options [Integer] :retry_max_delay (0)
|
189
|
+
# The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
|
190
|
+
#
|
191
|
+
# @option options [String] :secret_access_key
|
192
|
+
#
|
193
|
+
# @option options [String] :session_token
|
194
|
+
#
|
195
|
+
# @option options [Boolean] :stub_responses (false)
|
196
|
+
# Causes the client to return stubbed responses. By default
|
197
|
+
# fake responses are generated and returned. You can specify
|
198
|
+
# the response data to return or errors to raise by calling
|
199
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
200
|
+
#
|
201
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
202
|
+
# requests are made, and retries are disabled.
|
203
|
+
#
|
204
|
+
# @option options [Boolean] :validate_params (true)
|
205
|
+
# When `true`, request parameters are validated before
|
206
|
+
# sending the request.
|
207
|
+
#
|
208
|
+
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
209
|
+
# requests through. Formatted like 'http://proxy.com:123'.
|
210
|
+
#
|
211
|
+
# @option options [Float] :http_open_timeout (15) The number of
|
212
|
+
# seconds to wait when opening a HTTP session before rasing a
|
213
|
+
# `Timeout::Error`.
|
214
|
+
#
|
215
|
+
# @option options [Integer] :http_read_timeout (60) The default
|
216
|
+
# number of seconds to wait for response data. This value can
|
217
|
+
# safely be set
|
218
|
+
# per-request on the session yeidled by {#session_for}.
|
219
|
+
#
|
220
|
+
# @option options [Float] :http_idle_timeout (5) The number of
|
221
|
+
# seconds a connection is allowed to sit idble before it is
|
222
|
+
# considered stale. Stale connections are closed and removed
|
223
|
+
# from the pool before making a request.
|
224
|
+
#
|
225
|
+
# @option options [Float] :http_continue_timeout (1) The number of
|
226
|
+
# seconds to wait for a 100-continue response before sending the
|
227
|
+
# request body. This option has no effect unless the request has
|
228
|
+
# "Expect" header set to "100-continue". Defaults to `nil` which
|
229
|
+
# disables this behaviour. This value can safely be set per
|
230
|
+
# request on the session yeidled by {#session_for}.
|
231
|
+
#
|
232
|
+
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
233
|
+
# HTTP debug output will be sent to the `:logger`.
|
234
|
+
#
|
235
|
+
# @option options [Boolean] :ssl_verify_peer (true) When `true`,
|
236
|
+
# SSL peer certificates are verified when establishing a
|
237
|
+
# connection.
|
238
|
+
#
|
239
|
+
# @option options [String] :ssl_ca_bundle Full path to the SSL
|
240
|
+
# certificate authority bundle file that should be used when
|
241
|
+
# verifying peer certificates. If you do not pass
|
242
|
+
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
243
|
+
# will be used if available.
|
244
|
+
#
|
245
|
+
# @option options [String] :ssl_ca_directory Full path of the
|
246
|
+
# directory that contains the unbundled SSL certificate
|
247
|
+
# authority files for verifying peer certificates. If you do
|
248
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
249
|
+
# system default will be used if available.
|
250
|
+
#
|
251
|
+
def initialize(*args)
|
252
|
+
super
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!group API Operations
|
256
|
+
|
257
|
+
# Used to cancel an open change request. Must be sent before the status
|
258
|
+
# of the request changes to `APPLYING`, the final stage of completing
|
259
|
+
# your change request. You can describe a change during the 60-day
|
260
|
+
# request history retention period for API calls.
|
261
|
+
#
|
262
|
+
# @option params [required, String] :catalog
|
263
|
+
# Required. The catalog related to the request. Fixed value:
|
264
|
+
# `AWSMarketplace`.
|
265
|
+
#
|
266
|
+
# @option params [required, String] :change_set_id
|
267
|
+
# Required. The unique identifier of the `StartChangeSet` request that
|
268
|
+
# you want to cancel.
|
269
|
+
#
|
270
|
+
# @return [Types::CancelChangeSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
271
|
+
#
|
272
|
+
# * {Types::CancelChangeSetResponse#change_set_id #change_set_id} => String
|
273
|
+
# * {Types::CancelChangeSetResponse#change_set_arn #change_set_arn} => String
|
274
|
+
#
|
275
|
+
# @example Request syntax with placeholder values
|
276
|
+
#
|
277
|
+
# resp = client.cancel_change_set({
|
278
|
+
# catalog: "Catalog", # required
|
279
|
+
# change_set_id: "ResourceId", # required
|
280
|
+
# })
|
281
|
+
#
|
282
|
+
# @example Response structure
|
283
|
+
#
|
284
|
+
# resp.change_set_id #=> String
|
285
|
+
# resp.change_set_arn #=> String
|
286
|
+
#
|
287
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/CancelChangeSet AWS API Documentation
|
288
|
+
#
|
289
|
+
# @overload cancel_change_set(params = {})
|
290
|
+
# @param [Hash] params ({})
|
291
|
+
def cancel_change_set(params = {}, options = {})
|
292
|
+
req = build_request(:cancel_change_set, params)
|
293
|
+
req.send_request(options)
|
294
|
+
end
|
295
|
+
|
296
|
+
# Provides information about a given change set.
|
297
|
+
#
|
298
|
+
# @option params [required, String] :catalog
|
299
|
+
# Required. The catalog related to the request. Fixed value:
|
300
|
+
# `AWSMarketplace`
|
301
|
+
#
|
302
|
+
# @option params [required, String] :change_set_id
|
303
|
+
# Required. The unique identifier for the `StartChangeSet` request that
|
304
|
+
# you want to describe the details for.
|
305
|
+
#
|
306
|
+
# @return [Types::DescribeChangeSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
307
|
+
#
|
308
|
+
# * {Types::DescribeChangeSetResponse#change_set_id #change_set_id} => String
|
309
|
+
# * {Types::DescribeChangeSetResponse#change_set_arn #change_set_arn} => String
|
310
|
+
# * {Types::DescribeChangeSetResponse#change_set_name #change_set_name} => String
|
311
|
+
# * {Types::DescribeChangeSetResponse#start_time #start_time} => String
|
312
|
+
# * {Types::DescribeChangeSetResponse#end_time #end_time} => String
|
313
|
+
# * {Types::DescribeChangeSetResponse#status #status} => String
|
314
|
+
# * {Types::DescribeChangeSetResponse#failure_description #failure_description} => String
|
315
|
+
# * {Types::DescribeChangeSetResponse#change_set #change_set} => Array<Types::ChangeSummary>
|
316
|
+
#
|
317
|
+
# @example Request syntax with placeholder values
|
318
|
+
#
|
319
|
+
# resp = client.describe_change_set({
|
320
|
+
# catalog: "Catalog", # required
|
321
|
+
# change_set_id: "ResourceId", # required
|
322
|
+
# })
|
323
|
+
#
|
324
|
+
# @example Response structure
|
325
|
+
#
|
326
|
+
# resp.change_set_id #=> String
|
327
|
+
# resp.change_set_arn #=> String
|
328
|
+
# resp.change_set_name #=> String
|
329
|
+
# resp.start_time #=> String
|
330
|
+
# resp.end_time #=> String
|
331
|
+
# resp.status #=> String, one of "PREPARING", "APPLYING", "SUCCEEDED", "CANCELLED", "FAILED"
|
332
|
+
# resp.failure_description #=> String
|
333
|
+
# resp.change_set #=> Array
|
334
|
+
# resp.change_set[0].change_type #=> String
|
335
|
+
# resp.change_set[0].entity.type #=> String
|
336
|
+
# resp.change_set[0].entity.identifier #=> String
|
337
|
+
# resp.change_set[0].error_detail_list #=> Array
|
338
|
+
# resp.change_set[0].error_detail_list[0].error_code #=> String
|
339
|
+
# resp.change_set[0].error_detail_list[0].error_message #=> String
|
340
|
+
#
|
341
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/DescribeChangeSet AWS API Documentation
|
342
|
+
#
|
343
|
+
# @overload describe_change_set(params = {})
|
344
|
+
# @param [Hash] params ({})
|
345
|
+
def describe_change_set(params = {}, options = {})
|
346
|
+
req = build_request(:describe_change_set, params)
|
347
|
+
req.send_request(options)
|
348
|
+
end
|
349
|
+
|
350
|
+
# Returns the metadata and content of the entity.
|
351
|
+
#
|
352
|
+
# @option params [required, String] :catalog
|
353
|
+
# Required. The catalog related to the request. Fixed value:
|
354
|
+
# `AWSMarketplace`
|
355
|
+
#
|
356
|
+
# @option params [required, String] :entity_id
|
357
|
+
# Required. The unique ID of the entity to describe.
|
358
|
+
#
|
359
|
+
# @return [Types::DescribeEntityResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
360
|
+
#
|
361
|
+
# * {Types::DescribeEntityResponse#entity_type #entity_type} => String
|
362
|
+
# * {Types::DescribeEntityResponse#entity_identifier #entity_identifier} => String
|
363
|
+
# * {Types::DescribeEntityResponse#entity_arn #entity_arn} => String
|
364
|
+
# * {Types::DescribeEntityResponse#last_modified_date #last_modified_date} => String
|
365
|
+
# * {Types::DescribeEntityResponse#details #details} => String
|
366
|
+
#
|
367
|
+
# @example Request syntax with placeholder values
|
368
|
+
#
|
369
|
+
# resp = client.describe_entity({
|
370
|
+
# catalog: "Catalog", # required
|
371
|
+
# entity_id: "ResourceId", # required
|
372
|
+
# })
|
373
|
+
#
|
374
|
+
# @example Response structure
|
375
|
+
#
|
376
|
+
# resp.entity_type #=> String
|
377
|
+
# resp.entity_identifier #=> String
|
378
|
+
# resp.entity_arn #=> String
|
379
|
+
# resp.last_modified_date #=> String
|
380
|
+
# resp.details #=> String
|
381
|
+
#
|
382
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/DescribeEntity AWS API Documentation
|
383
|
+
#
|
384
|
+
# @overload describe_entity(params = {})
|
385
|
+
# @param [Hash] params ({})
|
386
|
+
def describe_entity(params = {}, options = {})
|
387
|
+
req = build_request(:describe_entity, params)
|
388
|
+
req.send_request(options)
|
389
|
+
end
|
390
|
+
|
391
|
+
# Returns the list of change sets owned by the account being used to
|
392
|
+
# make the call. You can filter this list by providing any combination
|
393
|
+
# of `entityId`, `ChangeSetName`, and status. If you provide more than
|
394
|
+
# one filter, the API operation applies a logical AND between the
|
395
|
+
# filters.
|
396
|
+
#
|
397
|
+
# You can describe a change during the 60-day request history retention
|
398
|
+
# period for API calls.
|
399
|
+
#
|
400
|
+
# @option params [required, String] :catalog
|
401
|
+
# The catalog related to the request. Fixed value: `AWSMarketplace`
|
402
|
+
#
|
403
|
+
# @option params [Array<Types::Filter>] :filter_list
|
404
|
+
# An array of filter objects.
|
405
|
+
#
|
406
|
+
# @option params [Types::Sort] :sort
|
407
|
+
# An object that contains two attributes, `sortBy` and `sortOrder`.
|
408
|
+
#
|
409
|
+
# @option params [Integer] :max_results
|
410
|
+
# The maximum number of results returned by a single call. This value
|
411
|
+
# must be provided in the next call to retrieve the next set of results.
|
412
|
+
# By default, this value is 20.
|
413
|
+
#
|
414
|
+
# @option params [String] :next_token
|
415
|
+
# The token value retrieved from a previous call to access the next page
|
416
|
+
# of results.
|
417
|
+
#
|
418
|
+
# @return [Types::ListChangeSetsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
419
|
+
#
|
420
|
+
# * {Types::ListChangeSetsResponse#change_set_summary_list #change_set_summary_list} => Array<Types::ChangeSetSummaryListItem>
|
421
|
+
# * {Types::ListChangeSetsResponse#next_token #next_token} => String
|
422
|
+
#
|
423
|
+
# @example Request syntax with placeholder values
|
424
|
+
#
|
425
|
+
# resp = client.list_change_sets({
|
426
|
+
# catalog: "Catalog", # required
|
427
|
+
# filter_list: [
|
428
|
+
# {
|
429
|
+
# name: "FilterName",
|
430
|
+
# value_list: ["StringValue"],
|
431
|
+
# },
|
432
|
+
# ],
|
433
|
+
# sort: {
|
434
|
+
# sort_by: "SortBy",
|
435
|
+
# sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
|
436
|
+
# },
|
437
|
+
# max_results: 1,
|
438
|
+
# next_token: "NextToken",
|
439
|
+
# })
|
440
|
+
#
|
441
|
+
# @example Response structure
|
442
|
+
#
|
443
|
+
# resp.change_set_summary_list #=> Array
|
444
|
+
# resp.change_set_summary_list[0].change_set_id #=> String
|
445
|
+
# resp.change_set_summary_list[0].change_set_arn #=> String
|
446
|
+
# resp.change_set_summary_list[0].change_set_name #=> String
|
447
|
+
# resp.change_set_summary_list[0].start_time #=> String
|
448
|
+
# resp.change_set_summary_list[0].end_time #=> String
|
449
|
+
# resp.change_set_summary_list[0].status #=> String, one of "PREPARING", "APPLYING", "SUCCEEDED", "CANCELLED", "FAILED"
|
450
|
+
# resp.change_set_summary_list[0].entity_id_list #=> Array
|
451
|
+
# resp.change_set_summary_list[0].entity_id_list[0] #=> String
|
452
|
+
# resp.next_token #=> String
|
453
|
+
#
|
454
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/ListChangeSets AWS API Documentation
|
455
|
+
#
|
456
|
+
# @overload list_change_sets(params = {})
|
457
|
+
# @param [Hash] params ({})
|
458
|
+
def list_change_sets(params = {}, options = {})
|
459
|
+
req = build_request(:list_change_sets, params)
|
460
|
+
req.send_request(options)
|
461
|
+
end
|
462
|
+
|
463
|
+
# Provides the list of entities of a given type.
|
464
|
+
#
|
465
|
+
# @option params [required, String] :catalog
|
466
|
+
# The catalog related to the request. Fixed value: `AWSMarketplace`
|
467
|
+
#
|
468
|
+
# @option params [required, String] :entity_type
|
469
|
+
# The type of entities to retrieve.
|
470
|
+
#
|
471
|
+
# @option params [Array<Types::Filter>] :filter_list
|
472
|
+
# An array of filter objects. Each filter object contains two
|
473
|
+
# attributes, `filterName` and `filterValues`.
|
474
|
+
#
|
475
|
+
# @option params [Types::Sort] :sort
|
476
|
+
# An object that contains two attributes, `sortBy` and `sortOrder`.
|
477
|
+
#
|
478
|
+
# @option params [String] :next_token
|
479
|
+
# The value of the next token, if it exists. Null if there are no more
|
480
|
+
# results.
|
481
|
+
#
|
482
|
+
# @option params [Integer] :max_results
|
483
|
+
# Specifies the upper limit of the elements on a single page. If a value
|
484
|
+
# isn't provided, the default value is 20.
|
485
|
+
#
|
486
|
+
# @return [Types::ListEntitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
487
|
+
#
|
488
|
+
# * {Types::ListEntitiesResponse#entity_summary_list #entity_summary_list} => Array<Types::EntitySummary>
|
489
|
+
# * {Types::ListEntitiesResponse#next_token #next_token} => String
|
490
|
+
#
|
491
|
+
# @example Request syntax with placeholder values
|
492
|
+
#
|
493
|
+
# resp = client.list_entities({
|
494
|
+
# catalog: "Catalog", # required
|
495
|
+
# entity_type: "EntityType", # required
|
496
|
+
# filter_list: [
|
497
|
+
# {
|
498
|
+
# name: "FilterName",
|
499
|
+
# value_list: ["StringValue"],
|
500
|
+
# },
|
501
|
+
# ],
|
502
|
+
# sort: {
|
503
|
+
# sort_by: "SortBy",
|
504
|
+
# sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
|
505
|
+
# },
|
506
|
+
# next_token: "NextToken",
|
507
|
+
# max_results: 1,
|
508
|
+
# })
|
509
|
+
#
|
510
|
+
# @example Response structure
|
511
|
+
#
|
512
|
+
# resp.entity_summary_list #=> Array
|
513
|
+
# resp.entity_summary_list[0].name #=> String
|
514
|
+
# resp.entity_summary_list[0].entity_type #=> String
|
515
|
+
# resp.entity_summary_list[0].entity_id #=> String
|
516
|
+
# resp.entity_summary_list[0].entity_arn #=> String
|
517
|
+
# resp.entity_summary_list[0].last_modified_date #=> String
|
518
|
+
# resp.entity_summary_list[0].visibility #=> String
|
519
|
+
# resp.next_token #=> String
|
520
|
+
#
|
521
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/ListEntities AWS API Documentation
|
522
|
+
#
|
523
|
+
# @overload list_entities(params = {})
|
524
|
+
# @param [Hash] params ({})
|
525
|
+
def list_entities(params = {}, options = {})
|
526
|
+
req = build_request(:list_entities, params)
|
527
|
+
req.send_request(options)
|
528
|
+
end
|
529
|
+
|
530
|
+
# This operation allows you to request changes in your entities.
|
531
|
+
#
|
532
|
+
# @option params [required, String] :catalog
|
533
|
+
# The catalog related to the request. Fixed value: `AWSMarketplace`
|
534
|
+
#
|
535
|
+
# @option params [required, Array<Types::Change>] :change_set
|
536
|
+
# Array of `change` object.
|
537
|
+
#
|
538
|
+
# @option params [String] :change_set_name
|
539
|
+
# Optional case sensitive string of up to 100 ASCII characters. The
|
540
|
+
# change set name can be used to filter the list of change sets.
|
541
|
+
#
|
542
|
+
# @option params [String] :client_request_token
|
543
|
+
# A unique token to identify the request to ensure idempotency.
|
544
|
+
#
|
545
|
+
# @return [Types::StartChangeSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
546
|
+
#
|
547
|
+
# * {Types::StartChangeSetResponse#change_set_id #change_set_id} => String
|
548
|
+
# * {Types::StartChangeSetResponse#change_set_arn #change_set_arn} => String
|
549
|
+
#
|
550
|
+
# @example Request syntax with placeholder values
|
551
|
+
#
|
552
|
+
# resp = client.start_change_set({
|
553
|
+
# catalog: "Catalog", # required
|
554
|
+
# change_set: [ # required
|
555
|
+
# {
|
556
|
+
# change_type: "ChangeType", # required
|
557
|
+
# entity: { # required
|
558
|
+
# type: "EntityType", # required
|
559
|
+
# identifier: "Identifier",
|
560
|
+
# },
|
561
|
+
# details: "Json", # required
|
562
|
+
# },
|
563
|
+
# ],
|
564
|
+
# change_set_name: "ChangeSetName",
|
565
|
+
# client_request_token: "ClientRequestToken",
|
566
|
+
# })
|
567
|
+
#
|
568
|
+
# @example Response structure
|
569
|
+
#
|
570
|
+
# resp.change_set_id #=> String
|
571
|
+
# resp.change_set_arn #=> String
|
572
|
+
#
|
573
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/StartChangeSet AWS API Documentation
|
574
|
+
#
|
575
|
+
# @overload start_change_set(params = {})
|
576
|
+
# @param [Hash] params ({})
|
577
|
+
def start_change_set(params = {}, options = {})
|
578
|
+
req = build_request(:start_change_set, params)
|
579
|
+
req.send_request(options)
|
580
|
+
end
|
581
|
+
|
582
|
+
# @!endgroup
|
583
|
+
|
584
|
+
# @param params ({})
|
585
|
+
# @api private
|
586
|
+
def build_request(operation_name, params = {})
|
587
|
+
handlers = @handlers.for(operation_name)
|
588
|
+
context = Seahorse::Client::RequestContext.new(
|
589
|
+
operation_name: operation_name,
|
590
|
+
operation: config.api.operation(operation_name),
|
591
|
+
client: self,
|
592
|
+
params: params,
|
593
|
+
config: config)
|
594
|
+
context[:gem_name] = 'aws-sdk-marketplacecatalog'
|
595
|
+
context[:gem_version] = '1.0.0'
|
596
|
+
Seahorse::Client::Request.new(handlers, context)
|
597
|
+
end
|
598
|
+
|
599
|
+
# @api private
|
600
|
+
# @deprecated
|
601
|
+
def waiter_names
|
602
|
+
[]
|
603
|
+
end
|
604
|
+
|
605
|
+
class << self
|
606
|
+
|
607
|
+
# @api private
|
608
|
+
attr_reader :identifier
|
609
|
+
|
610
|
+
# @api private
|
611
|
+
def errors_module
|
612
|
+
Errors
|
613
|
+
end
|
614
|
+
|
615
|
+
end
|
616
|
+
end
|
617
|
+
end
|