aws-sdk-serverlessapplicationrepository 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6a6c161f6a97046c2cf04bc981763ee4279895b9
4
+ data.tar.gz: 745073659b70cf33a772f97248e90aed7966ee20
5
+ SHA512:
6
+ metadata.gz: ad26f2a6b4efd41294ac779fafeee68b5fe2e18d2a1dbd0a702a9d527fd74f6c1c355a027f81e5cd4106ffbfdfd25aa945311d56596958a2120f4651172a1159
7
+ data.tar.gz: 176b1c89527b76f5b246938008f8e21019dfa82fad5d5085d71eaa5370b35ae104f784d5213f4ab7113c2f7031ca0140ee3d25ce341bbe44d8fc0deff3724077
@@ -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-serverlessapplicationrepository/types'
12
+ require_relative 'aws-sdk-serverlessapplicationrepository/client_api'
13
+ require_relative 'aws-sdk-serverlessapplicationrepository/client'
14
+ require_relative 'aws-sdk-serverlessapplicationrepository/errors'
15
+ require_relative 'aws-sdk-serverlessapplicationrepository/resource'
16
+ require_relative 'aws-sdk-serverlessapplicationrepository/customizations'
17
+
18
+ # This module provides support for AWSServerlessApplicationRepository. This module is available in the
19
+ # `aws-sdk-serverlessapplicationrepository` 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 AWSServerlessApplicationRepository all
32
+ # extend {Errors::ServiceError}.
33
+ #
34
+ # begin
35
+ # # do stuff
36
+ # rescue Aws::ServerlessApplicationRepository::Errors::ServiceError
37
+ # # rescues all service API errors
38
+ # end
39
+ #
40
+ # See {Errors} for more information.
41
+ #
42
+ # @service
43
+ module Aws::ServerlessApplicationRepository
44
+
45
+ GEM_VERSION = '1.0.0'
46
+
47
+ end
@@ -0,0 +1,699 @@
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/response_paging.rb'
19
+ require 'aws-sdk-core/plugins/stub_responses.rb'
20
+ require 'aws-sdk-core/plugins/idempotency_token.rb'
21
+ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
22
+ require 'aws-sdk-core/plugins/signature_v4.rb'
23
+ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
24
+
25
+ Aws::Plugins::GlobalConfiguration.add_identifier(:serverlessapplicationrepository)
26
+
27
+ module Aws::ServerlessApplicationRepository
28
+ class Client < Seahorse::Client::Base
29
+
30
+ include Aws::ClientStubs
31
+
32
+ @identifier = :serverlessapplicationrepository
33
+
34
+ set_api(ClientApi::API)
35
+
36
+ add_plugin(Seahorse::Client::Plugins::ContentLength)
37
+ add_plugin(Aws::Plugins::CredentialsConfiguration)
38
+ add_plugin(Aws::Plugins::Logging)
39
+ add_plugin(Aws::Plugins::ParamConverter)
40
+ add_plugin(Aws::Plugins::ParamValidator)
41
+ add_plugin(Aws::Plugins::UserAgent)
42
+ add_plugin(Aws::Plugins::HelpfulSocketErrors)
43
+ add_plugin(Aws::Plugins::RetryErrors)
44
+ add_plugin(Aws::Plugins::GlobalConfiguration)
45
+ add_plugin(Aws::Plugins::RegionalEndpoint)
46
+ add_plugin(Aws::Plugins::ResponsePaging)
47
+ add_plugin(Aws::Plugins::StubResponses)
48
+ add_plugin(Aws::Plugins::IdempotencyToken)
49
+ add_plugin(Aws::Plugins::JsonvalueConverter)
50
+ add_plugin(Aws::Plugins::SignatureV4)
51
+ add_plugin(Aws::Plugins::Protocols::RestJson)
52
+
53
+ # @option options [required, Aws::CredentialProvider] :credentials
54
+ # Your AWS credentials. This can be an instance of any one of the
55
+ # following classes:
56
+ #
57
+ # * `Aws::Credentials` - Used for configuring static, non-refreshing
58
+ # credentials.
59
+ #
60
+ # * `Aws::InstanceProfileCredentials` - Used for loading credentials
61
+ # from an EC2 IMDS on an EC2 instance.
62
+ #
63
+ # * `Aws::SharedCredentials` - Used for loading credentials from a
64
+ # shared file, such as `~/.aws/config`.
65
+ #
66
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
67
+ #
68
+ # When `:credentials` are not configured directly, the following
69
+ # locations will be searched for credentials:
70
+ #
71
+ # * `Aws.config[:credentials]`
72
+ # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
73
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
74
+ # * `~/.aws/credentials`
75
+ # * `~/.aws/config`
76
+ # * EC2 IMDS instance profile - When used by default, the timeouts are
77
+ # very aggressive. Construct and pass an instance of
78
+ # `Aws::InstanceProfileCredentails` to enable retries and extended
79
+ # timeouts.
80
+ #
81
+ # @option options [required, String] :region
82
+ # The AWS region to connect to. The configured `:region` is
83
+ # used to determine the service `:endpoint`. When not passed,
84
+ # a default `:region` is search for in the following locations:
85
+ #
86
+ # * `Aws.config[:region]`
87
+ # * `ENV['AWS_REGION']`
88
+ # * `ENV['AMAZON_REGION']`
89
+ # * `ENV['AWS_DEFAULT_REGION']`
90
+ # * `~/.aws/credentials`
91
+ # * `~/.aws/config`
92
+ #
93
+ # @option options [String] :access_key_id
94
+ #
95
+ # @option options [Boolean] :convert_params (true)
96
+ # When `true`, an attempt is made to coerce request parameters into
97
+ # the required types.
98
+ #
99
+ # @option options [String] :endpoint
100
+ # The client endpoint is normally constructed from the `:region`
101
+ # option. You should only configure an `:endpoint` when connecting
102
+ # to test endpoints. This should be avalid HTTP(S) URI.
103
+ #
104
+ # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
105
+ # The log formatter.
106
+ #
107
+ # @option options [Symbol] :log_level (:info)
108
+ # The log level to send messages to the `:logger` at.
109
+ #
110
+ # @option options [Logger] :logger
111
+ # The Logger instance to send log messages to. If this option
112
+ # is not set, logging will be disabled.
113
+ #
114
+ # @option options [String] :profile ("default")
115
+ # Used when loading credentials from the shared credentials file
116
+ # at HOME/.aws/credentials. When not specified, 'default' is used.
117
+ #
118
+ # @option options [Integer] :retry_limit (3)
119
+ # The maximum number of times to retry failed requests. Only
120
+ # ~ 500 level server errors and certain ~ 400 level client errors
121
+ # are retried. Generally, these are throttling errors, data
122
+ # checksum errors, networking errors, timeout errors and auth
123
+ # errors from expired credentials.
124
+ #
125
+ # @option options [String] :secret_access_key
126
+ #
127
+ # @option options [String] :session_token
128
+ #
129
+ # @option options [Boolean] :stub_responses (false)
130
+ # Causes the client to return stubbed responses. By default
131
+ # fake responses are generated and returned. You can specify
132
+ # the response data to return or errors to raise by calling
133
+ # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
134
+ #
135
+ # ** Please note ** When response stubbing is enabled, no HTTP
136
+ # requests are made, and retries are disabled.
137
+ #
138
+ # @option options [Boolean] :validate_params (true)
139
+ # When `true`, request parameters are validated before
140
+ # sending the request.
141
+ #
142
+ def initialize(*args)
143
+ super
144
+ end
145
+
146
+ # @!group API Operations
147
+
148
+ # Creates an application, optionally including an AWS SAM file to create
149
+ # the first application version in the same call.
150
+ #
151
+ # @option params [String] :author
152
+ #
153
+ # @option params [String] :description
154
+ #
155
+ # @option params [Array<String>] :labels
156
+ #
157
+ # @option params [String] :license_body
158
+ #
159
+ # @option params [String] :license_url
160
+ #
161
+ # @option params [String] :name
162
+ #
163
+ # @option params [String] :readme_body
164
+ #
165
+ # @option params [String] :readme_url
166
+ #
167
+ # @option params [String] :semantic_version
168
+ #
169
+ # @option params [String] :source_code_url
170
+ #
171
+ # @option params [String] :spdx_license_id
172
+ #
173
+ # @option params [String] :template_body
174
+ #
175
+ # @option params [String] :template_url
176
+ #
177
+ # @return [Types::CreateApplicationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
178
+ #
179
+ # * {Types::CreateApplicationResponse#application_id #application_id} => String
180
+ # * {Types::CreateApplicationResponse#author #author} => String
181
+ # * {Types::CreateApplicationResponse#creation_time #creation_time} => String
182
+ # * {Types::CreateApplicationResponse#description #description} => String
183
+ # * {Types::CreateApplicationResponse#labels #labels} => Array&lt;String&gt;
184
+ # * {Types::CreateApplicationResponse#license_url #license_url} => String
185
+ # * {Types::CreateApplicationResponse#name #name} => String
186
+ # * {Types::CreateApplicationResponse#readme_url #readme_url} => String
187
+ # * {Types::CreateApplicationResponse#spdx_license_id #spdx_license_id} => String
188
+ # * {Types::CreateApplicationResponse#version #version} => Types::Version
189
+ #
190
+ # @example Request syntax with placeholder values
191
+ #
192
+ # resp = client.create_application({
193
+ # author: "__string",
194
+ # description: "__string",
195
+ # labels: ["__string"],
196
+ # license_body: "__string",
197
+ # license_url: "__string",
198
+ # name: "__string",
199
+ # readme_body: "__string",
200
+ # readme_url: "__string",
201
+ # semantic_version: "__string",
202
+ # source_code_url: "__string",
203
+ # spdx_license_id: "__string",
204
+ # template_body: "__string",
205
+ # template_url: "__string",
206
+ # })
207
+ #
208
+ # @example Response structure
209
+ #
210
+ # resp.application_id #=> String
211
+ # resp.author #=> String
212
+ # resp.creation_time #=> String
213
+ # resp.description #=> String
214
+ # resp.labels #=> Array
215
+ # resp.labels[0] #=> String
216
+ # resp.license_url #=> String
217
+ # resp.name #=> String
218
+ # resp.readme_url #=> String
219
+ # resp.spdx_license_id #=> String
220
+ # resp.version.application_id #=> String
221
+ # resp.version.creation_time #=> String
222
+ # resp.version.parameter_definitions #=> Array
223
+ # resp.version.parameter_definitions[0].allowed_pattern #=> String
224
+ # resp.version.parameter_definitions[0].allowed_values #=> Array
225
+ # resp.version.parameter_definitions[0].allowed_values[0] #=> String
226
+ # resp.version.parameter_definitions[0].constraint_description #=> String
227
+ # resp.version.parameter_definitions[0].default_value #=> String
228
+ # resp.version.parameter_definitions[0].description #=> String
229
+ # resp.version.parameter_definitions[0].max_length #=> Integer
230
+ # resp.version.parameter_definitions[0].max_value #=> Integer
231
+ # resp.version.parameter_definitions[0].min_length #=> Integer
232
+ # resp.version.parameter_definitions[0].min_value #=> Integer
233
+ # resp.version.parameter_definitions[0].name #=> String
234
+ # resp.version.parameter_definitions[0].no_echo #=> Boolean
235
+ # resp.version.parameter_definitions[0].referenced_by_resources #=> Array
236
+ # resp.version.parameter_definitions[0].referenced_by_resources[0] #=> String
237
+ # resp.version.parameter_definitions[0].type #=> String
238
+ # resp.version.semantic_version #=> String
239
+ # resp.version.source_code_url #=> String
240
+ # resp.version.template_url #=> String
241
+ #
242
+ # @see http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplication AWS API Documentation
243
+ #
244
+ # @overload create_application(params = {})
245
+ # @param [Hash] params ({})
246
+ def create_application(params = {}, options = {})
247
+ req = build_request(:create_application, params)
248
+ req.send_request(options)
249
+ end
250
+
251
+ # Creates an application version.
252
+ #
253
+ # @option params [required, String] :application_id
254
+ #
255
+ # @option params [required, String] :semantic_version
256
+ #
257
+ # @option params [String] :source_code_url
258
+ #
259
+ # @option params [String] :template_body
260
+ #
261
+ # @option params [String] :template_url
262
+ #
263
+ # @return [Types::CreateApplicationVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
264
+ #
265
+ # * {Types::CreateApplicationVersionResponse#application_id #application_id} => String
266
+ # * {Types::CreateApplicationVersionResponse#creation_time #creation_time} => String
267
+ # * {Types::CreateApplicationVersionResponse#parameter_definitions #parameter_definitions} => Array&lt;Types::ParameterDefinition&gt;
268
+ # * {Types::CreateApplicationVersionResponse#semantic_version #semantic_version} => String
269
+ # * {Types::CreateApplicationVersionResponse#source_code_url #source_code_url} => String
270
+ # * {Types::CreateApplicationVersionResponse#template_url #template_url} => String
271
+ #
272
+ # @example Request syntax with placeholder values
273
+ #
274
+ # resp = client.create_application_version({
275
+ # application_id: "__string", # required
276
+ # semantic_version: "__string", # required
277
+ # source_code_url: "__string",
278
+ # template_body: "__string",
279
+ # template_url: "__string",
280
+ # })
281
+ #
282
+ # @example Response structure
283
+ #
284
+ # resp.application_id #=> String
285
+ # resp.creation_time #=> String
286
+ # resp.parameter_definitions #=> Array
287
+ # resp.parameter_definitions[0].allowed_pattern #=> String
288
+ # resp.parameter_definitions[0].allowed_values #=> Array
289
+ # resp.parameter_definitions[0].allowed_values[0] #=> String
290
+ # resp.parameter_definitions[0].constraint_description #=> String
291
+ # resp.parameter_definitions[0].default_value #=> String
292
+ # resp.parameter_definitions[0].description #=> String
293
+ # resp.parameter_definitions[0].max_length #=> Integer
294
+ # resp.parameter_definitions[0].max_value #=> Integer
295
+ # resp.parameter_definitions[0].min_length #=> Integer
296
+ # resp.parameter_definitions[0].min_value #=> Integer
297
+ # resp.parameter_definitions[0].name #=> String
298
+ # resp.parameter_definitions[0].no_echo #=> Boolean
299
+ # resp.parameter_definitions[0].referenced_by_resources #=> Array
300
+ # resp.parameter_definitions[0].referenced_by_resources[0] #=> String
301
+ # resp.parameter_definitions[0].type #=> String
302
+ # resp.semantic_version #=> String
303
+ # resp.source_code_url #=> String
304
+ # resp.template_url #=> String
305
+ #
306
+ # @see http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplicationVersion AWS API Documentation
307
+ #
308
+ # @overload create_application_version(params = {})
309
+ # @param [Hash] params ({})
310
+ def create_application_version(params = {}, options = {})
311
+ req = build_request(:create_application_version, params)
312
+ req.send_request(options)
313
+ end
314
+
315
+ # Creates an AWS CloudFormation ChangeSet for the given application.
316
+ #
317
+ # @option params [required, String] :application_id
318
+ #
319
+ # @option params [Array<Types::ParameterValue>] :parameter_overrides
320
+ #
321
+ # @option params [String] :semantic_version
322
+ #
323
+ # @option params [String] :stack_name
324
+ #
325
+ # @return [Types::CreateCloudFormationChangeSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
326
+ #
327
+ # * {Types::CreateCloudFormationChangeSetResponse#application_id #application_id} => String
328
+ # * {Types::CreateCloudFormationChangeSetResponse#change_set_id #change_set_id} => String
329
+ # * {Types::CreateCloudFormationChangeSetResponse#semantic_version #semantic_version} => String
330
+ # * {Types::CreateCloudFormationChangeSetResponse#stack_id #stack_id} => String
331
+ #
332
+ # @example Request syntax with placeholder values
333
+ #
334
+ # resp = client.create_cloud_formation_change_set({
335
+ # application_id: "__string", # required
336
+ # parameter_overrides: [
337
+ # {
338
+ # name: "__string",
339
+ # value: "__string",
340
+ # },
341
+ # ],
342
+ # semantic_version: "__string",
343
+ # stack_name: "__string",
344
+ # })
345
+ #
346
+ # @example Response structure
347
+ #
348
+ # resp.application_id #=> String
349
+ # resp.change_set_id #=> String
350
+ # resp.semantic_version #=> String
351
+ # resp.stack_id #=> String
352
+ #
353
+ # @see http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationChangeSet AWS API Documentation
354
+ #
355
+ # @overload create_cloud_formation_change_set(params = {})
356
+ # @param [Hash] params ({})
357
+ def create_cloud_formation_change_set(params = {}, options = {})
358
+ req = build_request(:create_cloud_formation_change_set, params)
359
+ req.send_request(options)
360
+ end
361
+
362
+ # Gets the specified application.
363
+ #
364
+ # @option params [required, String] :application_id
365
+ #
366
+ # @option params [String] :semantic_version
367
+ #
368
+ # @return [Types::GetApplicationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
369
+ #
370
+ # * {Types::GetApplicationResponse#application_id #application_id} => String
371
+ # * {Types::GetApplicationResponse#author #author} => String
372
+ # * {Types::GetApplicationResponse#creation_time #creation_time} => String
373
+ # * {Types::GetApplicationResponse#description #description} => String
374
+ # * {Types::GetApplicationResponse#labels #labels} => Array&lt;String&gt;
375
+ # * {Types::GetApplicationResponse#license_url #license_url} => String
376
+ # * {Types::GetApplicationResponse#name #name} => String
377
+ # * {Types::GetApplicationResponse#readme_url #readme_url} => String
378
+ # * {Types::GetApplicationResponse#spdx_license_id #spdx_license_id} => String
379
+ # * {Types::GetApplicationResponse#version #version} => Types::Version
380
+ #
381
+ # @example Request syntax with placeholder values
382
+ #
383
+ # resp = client.get_application({
384
+ # application_id: "__string", # required
385
+ # semantic_version: "__string",
386
+ # })
387
+ #
388
+ # @example Response structure
389
+ #
390
+ # resp.application_id #=> String
391
+ # resp.author #=> String
392
+ # resp.creation_time #=> String
393
+ # resp.description #=> String
394
+ # resp.labels #=> Array
395
+ # resp.labels[0] #=> String
396
+ # resp.license_url #=> String
397
+ # resp.name #=> String
398
+ # resp.readme_url #=> String
399
+ # resp.spdx_license_id #=> String
400
+ # resp.version.application_id #=> String
401
+ # resp.version.creation_time #=> String
402
+ # resp.version.parameter_definitions #=> Array
403
+ # resp.version.parameter_definitions[0].allowed_pattern #=> String
404
+ # resp.version.parameter_definitions[0].allowed_values #=> Array
405
+ # resp.version.parameter_definitions[0].allowed_values[0] #=> String
406
+ # resp.version.parameter_definitions[0].constraint_description #=> String
407
+ # resp.version.parameter_definitions[0].default_value #=> String
408
+ # resp.version.parameter_definitions[0].description #=> String
409
+ # resp.version.parameter_definitions[0].max_length #=> Integer
410
+ # resp.version.parameter_definitions[0].max_value #=> Integer
411
+ # resp.version.parameter_definitions[0].min_length #=> Integer
412
+ # resp.version.parameter_definitions[0].min_value #=> Integer
413
+ # resp.version.parameter_definitions[0].name #=> String
414
+ # resp.version.parameter_definitions[0].no_echo #=> Boolean
415
+ # resp.version.parameter_definitions[0].referenced_by_resources #=> Array
416
+ # resp.version.parameter_definitions[0].referenced_by_resources[0] #=> String
417
+ # resp.version.parameter_definitions[0].type #=> String
418
+ # resp.version.semantic_version #=> String
419
+ # resp.version.source_code_url #=> String
420
+ # resp.version.template_url #=> String
421
+ #
422
+ # @see http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplication AWS API Documentation
423
+ #
424
+ # @overload get_application(params = {})
425
+ # @param [Hash] params ({})
426
+ def get_application(params = {}, options = {})
427
+ req = build_request(:get_application, params)
428
+ req.send_request(options)
429
+ end
430
+
431
+ # Gets the policy for the specified application.
432
+ #
433
+ # @option params [required, String] :application_id
434
+ #
435
+ # @return [Types::GetApplicationPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
436
+ #
437
+ # * {Types::GetApplicationPolicyResponse#statements #statements} => Array&lt;Types::ApplicationPolicyStatement&gt;
438
+ #
439
+ # @example Request syntax with placeholder values
440
+ #
441
+ # resp = client.get_application_policy({
442
+ # application_id: "__string", # required
443
+ # })
444
+ #
445
+ # @example Response structure
446
+ #
447
+ # resp.statements #=> Array
448
+ # resp.statements[0].actions #=> Array
449
+ # resp.statements[0].actions[0] #=> String
450
+ # resp.statements[0].principals #=> Array
451
+ # resp.statements[0].principals[0] #=> String
452
+ # resp.statements[0].statement_id #=> String
453
+ #
454
+ # @see http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplicationPolicy AWS API Documentation
455
+ #
456
+ # @overload get_application_policy(params = {})
457
+ # @param [Hash] params ({})
458
+ def get_application_policy(params = {}, options = {})
459
+ req = build_request(:get_application_policy, params)
460
+ req.send_request(options)
461
+ end
462
+
463
+ # Lists versions for the specified application.
464
+ #
465
+ # @option params [required, String] :application_id
466
+ #
467
+ # @option params [Integer] :max_items
468
+ #
469
+ # @option params [String] :next_token
470
+ #
471
+ # @return [Types::ListApplicationVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
472
+ #
473
+ # * {Types::ListApplicationVersionsResponse#next_token #next_token} => String
474
+ # * {Types::ListApplicationVersionsResponse#versions #versions} => Array&lt;Types::VersionSummary&gt;
475
+ #
476
+ # @example Request syntax with placeholder values
477
+ #
478
+ # resp = client.list_application_versions({
479
+ # application_id: "__string", # required
480
+ # max_items: 1,
481
+ # next_token: "__string",
482
+ # })
483
+ #
484
+ # @example Response structure
485
+ #
486
+ # resp.next_token #=> String
487
+ # resp.versions #=> Array
488
+ # resp.versions[0].application_id #=> String
489
+ # resp.versions[0].creation_time #=> String
490
+ # resp.versions[0].semantic_version #=> String
491
+ # resp.versions[0].source_code_url #=> String
492
+ #
493
+ # @see http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationVersions AWS API Documentation
494
+ #
495
+ # @overload list_application_versions(params = {})
496
+ # @param [Hash] params ({})
497
+ def list_application_versions(params = {}, options = {})
498
+ req = build_request(:list_application_versions, params)
499
+ req.send_request(options)
500
+ end
501
+
502
+ # Lists applications owned by the requester.
503
+ #
504
+ # @option params [Integer] :max_items
505
+ #
506
+ # @option params [String] :next_token
507
+ #
508
+ # @return [Types::ListApplicationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
509
+ #
510
+ # * {Types::ListApplicationsResponse#applications #applications} => Array&lt;Types::ApplicationSummary&gt;
511
+ # * {Types::ListApplicationsResponse#next_token #next_token} => String
512
+ #
513
+ # @example Request syntax with placeholder values
514
+ #
515
+ # resp = client.list_applications({
516
+ # max_items: 1,
517
+ # next_token: "__string",
518
+ # })
519
+ #
520
+ # @example Response structure
521
+ #
522
+ # resp.applications #=> Array
523
+ # resp.applications[0].application_id #=> String
524
+ # resp.applications[0].author #=> String
525
+ # resp.applications[0].creation_time #=> String
526
+ # resp.applications[0].description #=> String
527
+ # resp.applications[0].labels #=> Array
528
+ # resp.applications[0].labels[0] #=> String
529
+ # resp.applications[0].name #=> String
530
+ # resp.applications[0].spdx_license_id #=> String
531
+ # resp.next_token #=> String
532
+ #
533
+ # @see http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplications AWS API Documentation
534
+ #
535
+ # @overload list_applications(params = {})
536
+ # @param [Hash] params ({})
537
+ def list_applications(params = {}, options = {})
538
+ req = build_request(:list_applications, params)
539
+ req.send_request(options)
540
+ end
541
+
542
+ # Puts the policy for the specified application.
543
+ #
544
+ # @option params [required, String] :application_id
545
+ #
546
+ # @option params [Array<Types::ApplicationPolicyStatement>] :statements
547
+ #
548
+ # @return [Types::PutApplicationPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
549
+ #
550
+ # * {Types::PutApplicationPolicyResponse#statements #statements} => Array&lt;Types::ApplicationPolicyStatement&gt;
551
+ #
552
+ # @example Request syntax with placeholder values
553
+ #
554
+ # resp = client.put_application_policy({
555
+ # application_id: "__string", # required
556
+ # statements: [
557
+ # {
558
+ # actions: ["__string"],
559
+ # principals: ["__string"],
560
+ # statement_id: "__string",
561
+ # },
562
+ # ],
563
+ # })
564
+ #
565
+ # @example Response structure
566
+ #
567
+ # resp.statements #=> Array
568
+ # resp.statements[0].actions #=> Array
569
+ # resp.statements[0].actions[0] #=> String
570
+ # resp.statements[0].principals #=> Array
571
+ # resp.statements[0].principals[0] #=> String
572
+ # resp.statements[0].statement_id #=> String
573
+ #
574
+ # @see http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/PutApplicationPolicy AWS API Documentation
575
+ #
576
+ # @overload put_application_policy(params = {})
577
+ # @param [Hash] params ({})
578
+ def put_application_policy(params = {}, options = {})
579
+ req = build_request(:put_application_policy, params)
580
+ req.send_request(options)
581
+ end
582
+
583
+ # Updates the specified application.
584
+ #
585
+ # @option params [required, String] :application_id
586
+ #
587
+ # @option params [String] :author
588
+ #
589
+ # @option params [String] :description
590
+ #
591
+ # @option params [Array<String>] :labels
592
+ #
593
+ # @option params [String] :readme_body
594
+ #
595
+ # @option params [String] :readme_url
596
+ #
597
+ # @return [Types::UpdateApplicationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
598
+ #
599
+ # * {Types::UpdateApplicationResponse#application_id #application_id} => String
600
+ # * {Types::UpdateApplicationResponse#author #author} => String
601
+ # * {Types::UpdateApplicationResponse#creation_time #creation_time} => String
602
+ # * {Types::UpdateApplicationResponse#description #description} => String
603
+ # * {Types::UpdateApplicationResponse#labels #labels} => Array&lt;String&gt;
604
+ # * {Types::UpdateApplicationResponse#license_url #license_url} => String
605
+ # * {Types::UpdateApplicationResponse#name #name} => String
606
+ # * {Types::UpdateApplicationResponse#readme_url #readme_url} => String
607
+ # * {Types::UpdateApplicationResponse#spdx_license_id #spdx_license_id} => String
608
+ # * {Types::UpdateApplicationResponse#version #version} => Types::Version
609
+ #
610
+ # @example Request syntax with placeholder values
611
+ #
612
+ # resp = client.update_application({
613
+ # application_id: "__string", # required
614
+ # author: "__string",
615
+ # description: "__string",
616
+ # labels: ["__string"],
617
+ # readme_body: "__string",
618
+ # readme_url: "__string",
619
+ # })
620
+ #
621
+ # @example Response structure
622
+ #
623
+ # resp.application_id #=> String
624
+ # resp.author #=> String
625
+ # resp.creation_time #=> String
626
+ # resp.description #=> String
627
+ # resp.labels #=> Array
628
+ # resp.labels[0] #=> String
629
+ # resp.license_url #=> String
630
+ # resp.name #=> String
631
+ # resp.readme_url #=> String
632
+ # resp.spdx_license_id #=> String
633
+ # resp.version.application_id #=> String
634
+ # resp.version.creation_time #=> String
635
+ # resp.version.parameter_definitions #=> Array
636
+ # resp.version.parameter_definitions[0].allowed_pattern #=> String
637
+ # resp.version.parameter_definitions[0].allowed_values #=> Array
638
+ # resp.version.parameter_definitions[0].allowed_values[0] #=> String
639
+ # resp.version.parameter_definitions[0].constraint_description #=> String
640
+ # resp.version.parameter_definitions[0].default_value #=> String
641
+ # resp.version.parameter_definitions[0].description #=> String
642
+ # resp.version.parameter_definitions[0].max_length #=> Integer
643
+ # resp.version.parameter_definitions[0].max_value #=> Integer
644
+ # resp.version.parameter_definitions[0].min_length #=> Integer
645
+ # resp.version.parameter_definitions[0].min_value #=> Integer
646
+ # resp.version.parameter_definitions[0].name #=> String
647
+ # resp.version.parameter_definitions[0].no_echo #=> Boolean
648
+ # resp.version.parameter_definitions[0].referenced_by_resources #=> Array
649
+ # resp.version.parameter_definitions[0].referenced_by_resources[0] #=> String
650
+ # resp.version.parameter_definitions[0].type #=> String
651
+ # resp.version.semantic_version #=> String
652
+ # resp.version.source_code_url #=> String
653
+ # resp.version.template_url #=> String
654
+ #
655
+ # @see http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UpdateApplication AWS API Documentation
656
+ #
657
+ # @overload update_application(params = {})
658
+ # @param [Hash] params ({})
659
+ def update_application(params = {}, options = {})
660
+ req = build_request(:update_application, params)
661
+ req.send_request(options)
662
+ end
663
+
664
+ # @!endgroup
665
+
666
+ # @param params ({})
667
+ # @api private
668
+ def build_request(operation_name, params = {})
669
+ handlers = @handlers.for(operation_name)
670
+ context = Seahorse::Client::RequestContext.new(
671
+ operation_name: operation_name,
672
+ operation: config.api.operation(operation_name),
673
+ client: self,
674
+ params: params,
675
+ config: config)
676
+ context[:gem_name] = 'aws-sdk-serverlessapplicationrepository'
677
+ context[:gem_version] = '1.0.0'
678
+ Seahorse::Client::Request.new(handlers, context)
679
+ end
680
+
681
+ # @api private
682
+ # @deprecated
683
+ def waiter_names
684
+ []
685
+ end
686
+
687
+ class << self
688
+
689
+ # @api private
690
+ attr_reader :identifier
691
+
692
+ # @api private
693
+ def errors_module
694
+ Errors
695
+ end
696
+
697
+ end
698
+ end
699
+ end