aws-sdk-serverlessapplicationrepository 1.22.0 → 1.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 04f4d6358b248fb9c625173ca586523253c852f0
4
- data.tar.gz: 9c523dbab52848ce42239cfedb03ca8beae5b458
2
+ SHA256:
3
+ metadata.gz: fe8eb227b3e203055b25bdeefda3b2e6bd325f9a6d03490ec8daf6c5a6d84bac
4
+ data.tar.gz: 51b20cf4fe7c68ae695a32e5eb98b56d211f6d16de609fcfc273e69de8fb64cf
5
5
  SHA512:
6
- metadata.gz: 3d9480138542d44bdb2a1bd3f552417cf97296181c190cdf2fd598998221e7a0e3e60c376bb1b5fc70a395e29c5ff8cb528c5e24c33e3128df5b7519e9f28734
7
- data.tar.gz: 5189784365238a3d6981acaec28f279b4076135953a8e1de5908544ab4b36020108ad1da8637eaaf5609ea7e4e33708cbda116164941bc2a2d23009d1678e454
6
+ metadata.gz: c1dd0f9ecb68d2b3e04cc449113caa9afa1f9a3ae6f6070d6abc7fb2cb1d347220ba670d450e1f58f942097c73ec72b020e8655a9066ebee24313347a557be0e
7
+ data.tar.gz: e054023f54fd9ce175202ea4abd99e12504aa601b37a583b6d9757f5c9dec4ac836808f13212ca1797731f4d5fcc089d9e972a38331a869df99d6dcf6cbf2684
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-serverlessapplicationrepository/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # serverless_application_repository = Aws::ServerlessApplicationRepository::Client.new
28
+ # resp = serverless_application_repository.create_application(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from AWSServerlessApplicationRepository all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from AWSServerlessApplicationRepository are defined in the
35
+ # {Errors} module and all extend {Errors::ServiceError}.
33
36
  #
34
37
  # begin
35
38
  # # do stuff
36
39
  # rescue Aws::ServerlessApplicationRepository::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all AWSServerlessApplicationRepository API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-serverlessapplicationrepository/customizations'
42
45
  # @service
43
46
  module Aws::ServerlessApplicationRepository
44
47
 
45
- GEM_VERSION = '1.22.0'
48
+ GEM_VERSION = '1.27.0'
46
49
 
47
50
  end
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
30
30
  Aws::Plugins::GlobalConfiguration.add_identifier(:serverlessapplicationrepository)
31
31
 
32
32
  module Aws::ServerlessApplicationRepository
33
+ # An API client for ServerlessApplicationRepository. To construct a client, you need to configure a `:region` and `:credentials`.
34
+ #
35
+ # client = Aws::ServerlessApplicationRepository::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
+ #
41
+ # For details on configuring region and credentials see
42
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
43
+ #
44
+ # See {#initialize} for a full list of supported configuration options.
33
45
  class Client < Seahorse::Client::Base
34
46
 
35
47
  include Aws::ClientStubs
@@ -93,7 +105,7 @@ module Aws::ServerlessApplicationRepository
93
105
  # @option options [required, String] :region
94
106
  # The AWS region to connect to. The configured `:region` is
95
107
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
108
+ # a default `:region` is searched for in the following locations:
97
109
  #
98
110
  # * `Aws.config[:region]`
99
111
  # * `ENV['AWS_REGION']`
@@ -108,6 +120,12 @@ module Aws::ServerlessApplicationRepository
108
120
  # When set to `true`, a thread polling for endpoints will be running in
109
121
  # the background every 60 secs (default). Defaults to `false`.
110
122
  #
123
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
124
+ # Used only in `adaptive` retry mode. When true, the request will sleep
125
+ # until there is sufficent client side capacity to retry the request.
126
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
127
+ # not retry instead of sleeping.
128
+ #
111
129
  # @option options [Boolean] :client_side_monitoring (false)
112
130
  # When `true`, client-side metrics will be collected for all API requests from
113
131
  # this client.
@@ -132,6 +150,10 @@ module Aws::ServerlessApplicationRepository
132
150
  # When `true`, an attempt is made to coerce request parameters into
133
151
  # the required types.
134
152
  #
153
+ # @option options [Boolean] :correct_clock_skew (true)
154
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
155
+ # a clock skew correction and retry requests with skewed client clocks.
156
+ #
135
157
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
158
  # Set to true to disable SDK automatically adding host prefix
137
159
  # to default service endpoint when available.
@@ -139,7 +161,7 @@ module Aws::ServerlessApplicationRepository
139
161
  # @option options [String] :endpoint
140
162
  # The client endpoint is normally constructed from the `:region`
141
163
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
164
+ # to test endpoints. This should be a valid HTTP(S) URI.
143
165
  #
144
166
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
167
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +176,7 @@ module Aws::ServerlessApplicationRepository
154
176
  # requests fetching endpoints information. Defaults to 60 sec.
155
177
  #
156
178
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
179
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
180
  #
159
181
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
182
  # The log formatter.
@@ -166,15 +188,29 @@ module Aws::ServerlessApplicationRepository
166
188
  # The Logger instance to send log messages to. If this option
167
189
  # is not set, logging will be disabled.
168
190
  #
191
+ # @option options [Integer] :max_attempts (3)
192
+ # An integer representing the maximum number attempts that will be made for
193
+ # a single request, including the initial attempt. For example,
194
+ # setting this value to 5 will result in a request being retried up to
195
+ # 4 times. Used in `standard` and `adaptive` retry modes.
196
+ #
169
197
  # @option options [String] :profile ("default")
170
198
  # Used when loading credentials from the shared credentials file
171
199
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
200
  #
201
+ # @option options [Proc] :retry_backoff
202
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
203
+ # This option is only used in the `legacy` retry mode.
204
+ #
173
205
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
206
+ # The base delay in seconds used by the default backoff function. This option
207
+ # is only used in the `legacy` retry mode.
175
208
  #
176
209
  # @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.
210
+ # A delay randomiser function used by the default backoff function.
211
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
212
+ # otherwise a Proc that takes and returns a number. This option is only used
213
+ # in the `legacy` retry mode.
178
214
  #
179
215
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
216
  #
@@ -182,11 +218,30 @@ module Aws::ServerlessApplicationRepository
182
218
  # The maximum number of times to retry failed requests. Only
183
219
  # ~ 500 level server errors and certain ~ 400 level client errors
184
220
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
221
+ # checksum errors, networking errors, timeout errors, auth errors,
222
+ # endpoint discovery, and errors from expired credentials.
223
+ # This option is only used in the `legacy` retry mode.
187
224
  #
188
225
  # @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.
226
+ # The maximum number of seconds to delay between retries (0 for no limit)
227
+ # used by the default backoff function. This option is only used in the
228
+ # `legacy` retry mode.
229
+ #
230
+ # @option options [String] :retry_mode ("legacy")
231
+ # Specifies which retry algorithm to use. Values are:
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
190
245
  #
191
246
  # @option options [String] :secret_access_key
192
247
  #
@@ -209,16 +264,15 @@ module Aws::ServerlessApplicationRepository
209
264
  # requests through. Formatted like 'http://proxy.com:123'.
210
265
  #
211
266
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
267
+ # seconds to wait when opening a HTTP session before raising a
213
268
  # `Timeout::Error`.
214
269
  #
215
270
  # @option options [Integer] :http_read_timeout (60) The default
216
271
  # 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}.
272
+ # safely be set per-request on the session.
219
273
  #
220
274
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
275
+ # seconds a connection is allowed to sit idle before it is
222
276
  # considered stale. Stale connections are closed and removed
223
277
  # from the pool before making a request.
224
278
  #
@@ -227,7 +281,7 @@ module Aws::ServerlessApplicationRepository
227
281
  # request body. This option has no effect unless the request has
228
282
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
283
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
284
+ # request on the session.
231
285
  #
232
286
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
287
  # HTTP debug output will be sent to the `:logger`.
@@ -294,11 +348,13 @@ module Aws::ServerlessApplicationRepository
294
348
  # * {Types::CreateApplicationResponse#creation_time #creation_time} => String
295
349
  # * {Types::CreateApplicationResponse#description #description} => String
296
350
  # * {Types::CreateApplicationResponse#home_page_url #home_page_url} => String
351
+ # * {Types::CreateApplicationResponse#is_verified_author #is_verified_author} => Boolean
297
352
  # * {Types::CreateApplicationResponse#labels #labels} => Array&lt;String&gt;
298
353
  # * {Types::CreateApplicationResponse#license_url #license_url} => String
299
354
  # * {Types::CreateApplicationResponse#name #name} => String
300
355
  # * {Types::CreateApplicationResponse#readme_url #readme_url} => String
301
356
  # * {Types::CreateApplicationResponse#spdx_license_id #spdx_license_id} => String
357
+ # * {Types::CreateApplicationResponse#verified_author_url #verified_author_url} => String
302
358
  # * {Types::CreateApplicationResponse#version #version} => Types::Version
303
359
  #
304
360
  # @example Request syntax with placeholder values
@@ -328,12 +384,14 @@ module Aws::ServerlessApplicationRepository
328
384
  # resp.creation_time #=> String
329
385
  # resp.description #=> String
330
386
  # resp.home_page_url #=> String
387
+ # resp.is_verified_author #=> Boolean
331
388
  # resp.labels #=> Array
332
389
  # resp.labels[0] #=> String
333
390
  # resp.license_url #=> String
334
391
  # resp.name #=> String
335
392
  # resp.readme_url #=> String
336
393
  # resp.spdx_license_id #=> String
394
+ # resp.verified_author_url #=> String
337
395
  # resp.version.application_id #=> String
338
396
  # resp.version.creation_time #=> String
339
397
  # resp.version.parameter_definitions #=> Array
@@ -609,11 +667,13 @@ module Aws::ServerlessApplicationRepository
609
667
  # * {Types::GetApplicationResponse#creation_time #creation_time} => String
610
668
  # * {Types::GetApplicationResponse#description #description} => String
611
669
  # * {Types::GetApplicationResponse#home_page_url #home_page_url} => String
670
+ # * {Types::GetApplicationResponse#is_verified_author #is_verified_author} => Boolean
612
671
  # * {Types::GetApplicationResponse#labels #labels} => Array&lt;String&gt;
613
672
  # * {Types::GetApplicationResponse#license_url #license_url} => String
614
673
  # * {Types::GetApplicationResponse#name #name} => String
615
674
  # * {Types::GetApplicationResponse#readme_url #readme_url} => String
616
675
  # * {Types::GetApplicationResponse#spdx_license_id #spdx_license_id} => String
676
+ # * {Types::GetApplicationResponse#verified_author_url #verified_author_url} => String
617
677
  # * {Types::GetApplicationResponse#version #version} => Types::Version
618
678
  #
619
679
  # @example Request syntax with placeholder values
@@ -630,12 +690,14 @@ module Aws::ServerlessApplicationRepository
630
690
  # resp.creation_time #=> String
631
691
  # resp.description #=> String
632
692
  # resp.home_page_url #=> String
693
+ # resp.is_verified_author #=> Boolean
633
694
  # resp.labels #=> Array
634
695
  # resp.labels[0] #=> String
635
696
  # resp.license_url #=> String
636
697
  # resp.name #=> String
637
698
  # resp.readme_url #=> String
638
699
  # resp.spdx_license_id #=> String
700
+ # resp.verified_author_url #=> String
639
701
  # resp.version.application_id #=> String
640
702
  # resp.version.creation_time #=> String
641
703
  # resp.version.parameter_definitions #=> Array
@@ -690,6 +752,8 @@ module Aws::ServerlessApplicationRepository
690
752
  # resp.statements #=> Array
691
753
  # resp.statements[0].actions #=> Array
692
754
  # resp.statements[0].actions[0] #=> String
755
+ # resp.statements[0].principal_org_i_ds #=> Array
756
+ # resp.statements[0].principal_org_i_ds[0] #=> String
693
757
  # resp.statements[0].principals #=> Array
694
758
  # resp.statements[0].principals[0] #=> String
695
759
  # resp.statements[0].statement_id #=> String
@@ -761,6 +825,8 @@ module Aws::ServerlessApplicationRepository
761
825
  # * {Types::ListApplicationDependenciesResponse#dependencies #dependencies} => Array&lt;Types::ApplicationDependencySummary&gt;
762
826
  # * {Types::ListApplicationDependenciesResponse#next_token #next_token} => String
763
827
  #
828
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
829
+ #
764
830
  # @example Request syntax with placeholder values
765
831
  #
766
832
  # resp = client.list_application_dependencies({
@@ -799,6 +865,8 @@ module Aws::ServerlessApplicationRepository
799
865
  # * {Types::ListApplicationVersionsResponse#next_token #next_token} => String
800
866
  # * {Types::ListApplicationVersionsResponse#versions #versions} => Array&lt;Types::VersionSummary&gt;
801
867
  #
868
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
869
+ #
802
870
  # @example Request syntax with placeholder values
803
871
  #
804
872
  # resp = client.list_application_versions({
@@ -836,6 +904,8 @@ module Aws::ServerlessApplicationRepository
836
904
  # * {Types::ListApplicationsResponse#applications #applications} => Array&lt;Types::ApplicationSummary&gt;
837
905
  # * {Types::ListApplicationsResponse#next_token #next_token} => String
838
906
  #
907
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
908
+ #
839
909
  # @example Request syntax with placeholder values
840
910
  #
841
911
  # resp = client.list_applications({
@@ -888,6 +958,7 @@ module Aws::ServerlessApplicationRepository
888
958
  # statements: [ # required
889
959
  # {
890
960
  # actions: ["__string"], # required
961
+ # principal_org_i_ds: ["__string"],
891
962
  # principals: ["__string"], # required
892
963
  # statement_id: "__string",
893
964
  # },
@@ -899,6 +970,8 @@ module Aws::ServerlessApplicationRepository
899
970
  # resp.statements #=> Array
900
971
  # resp.statements[0].actions #=> Array
901
972
  # resp.statements[0].actions[0] #=> String
973
+ # resp.statements[0].principal_org_i_ds #=> Array
974
+ # resp.statements[0].principal_org_i_ds[0] #=> String
902
975
  # resp.statements[0].principals #=> Array
903
976
  # resp.statements[0].principals[0] #=> String
904
977
  # resp.statements[0].statement_id #=> String
@@ -912,6 +985,33 @@ module Aws::ServerlessApplicationRepository
912
985
  req.send_request(options)
913
986
  end
914
987
 
988
+ # Unshares an application from an AWS Organization.
989
+ #
990
+ # This operation can be called only from the organization's master
991
+ # account.
992
+ #
993
+ # @option params [required, String] :application_id
994
+ #
995
+ # @option params [required, String] :organization_id
996
+ #
997
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
998
+ #
999
+ # @example Request syntax with placeholder values
1000
+ #
1001
+ # resp = client.unshare_application({
1002
+ # application_id: "__string", # required
1003
+ # organization_id: "__string", # required
1004
+ # })
1005
+ #
1006
+ # @see http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UnshareApplication AWS API Documentation
1007
+ #
1008
+ # @overload unshare_application(params = {})
1009
+ # @param [Hash] params ({})
1010
+ def unshare_application(params = {}, options = {})
1011
+ req = build_request(:unshare_application, params)
1012
+ req.send_request(options)
1013
+ end
1014
+
915
1015
  # Updates the specified application.
916
1016
  #
917
1017
  # @option params [required, String] :application_id
@@ -935,11 +1035,13 @@ module Aws::ServerlessApplicationRepository
935
1035
  # * {Types::UpdateApplicationResponse#creation_time #creation_time} => String
936
1036
  # * {Types::UpdateApplicationResponse#description #description} => String
937
1037
  # * {Types::UpdateApplicationResponse#home_page_url #home_page_url} => String
1038
+ # * {Types::UpdateApplicationResponse#is_verified_author #is_verified_author} => Boolean
938
1039
  # * {Types::UpdateApplicationResponse#labels #labels} => Array&lt;String&gt;
939
1040
  # * {Types::UpdateApplicationResponse#license_url #license_url} => String
940
1041
  # * {Types::UpdateApplicationResponse#name #name} => String
941
1042
  # * {Types::UpdateApplicationResponse#readme_url #readme_url} => String
942
1043
  # * {Types::UpdateApplicationResponse#spdx_license_id #spdx_license_id} => String
1044
+ # * {Types::UpdateApplicationResponse#verified_author_url #verified_author_url} => String
943
1045
  # * {Types::UpdateApplicationResponse#version #version} => Types::Version
944
1046
  #
945
1047
  # @example Request syntax with placeholder values
@@ -961,12 +1063,14 @@ module Aws::ServerlessApplicationRepository
961
1063
  # resp.creation_time #=> String
962
1064
  # resp.description #=> String
963
1065
  # resp.home_page_url #=> String
1066
+ # resp.is_verified_author #=> Boolean
964
1067
  # resp.labels #=> Array
965
1068
  # resp.labels[0] #=> String
966
1069
  # resp.license_url #=> String
967
1070
  # resp.name #=> String
968
1071
  # resp.readme_url #=> String
969
1072
  # resp.spdx_license_id #=> String
1073
+ # resp.verified_author_url #=> String
970
1074
  # resp.version.application_id #=> String
971
1075
  # resp.version.creation_time #=> String
972
1076
  # resp.version.parameter_definitions #=> Array
@@ -1015,7 +1119,7 @@ module Aws::ServerlessApplicationRepository
1015
1119
  params: params,
1016
1120
  config: config)
1017
1121
  context[:gem_name] = 'aws-sdk-serverlessapplicationrepository'
1018
- context[:gem_version] = '1.22.0'
1122
+ context[:gem_version] = '1.27.0'
1019
1123
  Seahorse::Client::Request.new(handlers, context)
1020
1124
  end
1021
1125
 
@@ -61,6 +61,8 @@ module Aws::ServerlessApplicationRepository
61
61
  Tag = Shapes::StructureShape.new(name: 'Tag')
62
62
  TemplateDetails = Shapes::StructureShape.new(name: 'TemplateDetails')
63
63
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
64
+ UnshareApplicationInput = Shapes::StructureShape.new(name: 'UnshareApplicationInput')
65
+ UnshareApplicationRequest = Shapes::StructureShape.new(name: 'UnshareApplicationRequest')
64
66
  UpdateApplicationInput = Shapes::StructureShape.new(name: 'UpdateApplicationInput')
65
67
  UpdateApplicationRequest = Shapes::StructureShape.new(name: 'UpdateApplicationRequest')
66
68
  UpdateApplicationResponse = Shapes::StructureShape.new(name: 'UpdateApplicationResponse')
@@ -87,11 +89,13 @@ module Aws::ServerlessApplicationRepository
87
89
  Application.add_member(:creation_time, Shapes::ShapeRef.new(shape: __string, location_name: "creationTime"))
88
90
  Application.add_member(:description, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "description"))
89
91
  Application.add_member(:home_page_url, Shapes::ShapeRef.new(shape: __string, location_name: "homePageUrl"))
92
+ Application.add_member(:is_verified_author, Shapes::ShapeRef.new(shape: __boolean, location_name: "isVerifiedAuthor"))
90
93
  Application.add_member(:labels, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "labels"))
91
94
  Application.add_member(:license_url, Shapes::ShapeRef.new(shape: __string, location_name: "licenseUrl"))
92
95
  Application.add_member(:name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "name"))
93
96
  Application.add_member(:readme_url, Shapes::ShapeRef.new(shape: __string, location_name: "readmeUrl"))
94
97
  Application.add_member(:spdx_license_id, Shapes::ShapeRef.new(shape: __string, location_name: "spdxLicenseId"))
98
+ Application.add_member(:verified_author_url, Shapes::ShapeRef.new(shape: __string, location_name: "verifiedAuthorUrl"))
95
99
  Application.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
96
100
  Application.struct_class = Types::Application
97
101
 
@@ -111,6 +115,7 @@ module Aws::ServerlessApplicationRepository
111
115
  ApplicationPolicy.struct_class = Types::ApplicationPolicy
112
116
 
113
117
  ApplicationPolicyStatement.add_member(:actions, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "actions"))
118
+ ApplicationPolicyStatement.add_member(:principal_org_i_ds, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "principalOrgIDs"))
114
119
  ApplicationPolicyStatement.add_member(:principals, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "principals"))
115
120
  ApplicationPolicyStatement.add_member(:statement_id, Shapes::ShapeRef.new(shape: __string, location_name: "statementId"))
116
121
  ApplicationPolicyStatement.struct_class = Types::ApplicationPolicyStatement
@@ -182,11 +187,13 @@ module Aws::ServerlessApplicationRepository
182
187
  CreateApplicationResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: __string, location_name: "creationTime"))
183
188
  CreateApplicationResponse.add_member(:description, Shapes::ShapeRef.new(shape: __string, location_name: "description"))
184
189
  CreateApplicationResponse.add_member(:home_page_url, Shapes::ShapeRef.new(shape: __string, location_name: "homePageUrl"))
190
+ CreateApplicationResponse.add_member(:is_verified_author, Shapes::ShapeRef.new(shape: __boolean, location_name: "isVerifiedAuthor"))
185
191
  CreateApplicationResponse.add_member(:labels, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "labels"))
186
192
  CreateApplicationResponse.add_member(:license_url, Shapes::ShapeRef.new(shape: __string, location_name: "licenseUrl"))
187
193
  CreateApplicationResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "name"))
188
194
  CreateApplicationResponse.add_member(:readme_url, Shapes::ShapeRef.new(shape: __string, location_name: "readmeUrl"))
189
195
  CreateApplicationResponse.add_member(:spdx_license_id, Shapes::ShapeRef.new(shape: __string, location_name: "spdxLicenseId"))
196
+ CreateApplicationResponse.add_member(:verified_author_url, Shapes::ShapeRef.new(shape: __string, location_name: "verifiedAuthorUrl"))
190
197
  CreateApplicationResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
191
198
  CreateApplicationResponse.struct_class = Types::CreateApplicationResponse
192
199
 
@@ -285,11 +292,13 @@ module Aws::ServerlessApplicationRepository
285
292
  GetApplicationResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: __string, location_name: "creationTime"))
286
293
  GetApplicationResponse.add_member(:description, Shapes::ShapeRef.new(shape: __string, location_name: "description"))
287
294
  GetApplicationResponse.add_member(:home_page_url, Shapes::ShapeRef.new(shape: __string, location_name: "homePageUrl"))
295
+ GetApplicationResponse.add_member(:is_verified_author, Shapes::ShapeRef.new(shape: __boolean, location_name: "isVerifiedAuthor"))
288
296
  GetApplicationResponse.add_member(:labels, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "labels"))
289
297
  GetApplicationResponse.add_member(:license_url, Shapes::ShapeRef.new(shape: __string, location_name: "licenseUrl"))
290
298
  GetApplicationResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "name"))
291
299
  GetApplicationResponse.add_member(:readme_url, Shapes::ShapeRef.new(shape: __string, location_name: "readmeUrl"))
292
300
  GetApplicationResponse.add_member(:spdx_license_id, Shapes::ShapeRef.new(shape: __string, location_name: "spdxLicenseId"))
301
+ GetApplicationResponse.add_member(:verified_author_url, Shapes::ShapeRef.new(shape: __string, location_name: "verifiedAuthorUrl"))
293
302
  GetApplicationResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
294
303
  GetApplicationResponse.struct_class = Types::GetApplicationResponse
295
304
 
@@ -392,6 +401,13 @@ module Aws::ServerlessApplicationRepository
392
401
  TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
393
402
  TooManyRequestsException.struct_class = Types::TooManyRequestsException
394
403
 
404
+ UnshareApplicationInput.add_member(:organization_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "organizationId"))
405
+ UnshareApplicationInput.struct_class = Types::UnshareApplicationInput
406
+
407
+ UnshareApplicationRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "applicationId"))
408
+ UnshareApplicationRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "organizationId"))
409
+ UnshareApplicationRequest.struct_class = Types::UnshareApplicationRequest
410
+
395
411
  UpdateApplicationInput.add_member(:author, Shapes::ShapeRef.new(shape: __string, location_name: "author"))
396
412
  UpdateApplicationInput.add_member(:description, Shapes::ShapeRef.new(shape: __string, location_name: "description"))
397
413
  UpdateApplicationInput.add_member(:home_page_url, Shapes::ShapeRef.new(shape: __string, location_name: "homePageUrl"))
@@ -414,11 +430,13 @@ module Aws::ServerlessApplicationRepository
414
430
  UpdateApplicationResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: __string, location_name: "creationTime"))
415
431
  UpdateApplicationResponse.add_member(:description, Shapes::ShapeRef.new(shape: __string, location_name: "description"))
416
432
  UpdateApplicationResponse.add_member(:home_page_url, Shapes::ShapeRef.new(shape: __string, location_name: "homePageUrl"))
433
+ UpdateApplicationResponse.add_member(:is_verified_author, Shapes::ShapeRef.new(shape: __boolean, location_name: "isVerifiedAuthor"))
417
434
  UpdateApplicationResponse.add_member(:labels, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "labels"))
418
435
  UpdateApplicationResponse.add_member(:license_url, Shapes::ShapeRef.new(shape: __string, location_name: "licenseUrl"))
419
436
  UpdateApplicationResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "name"))
420
437
  UpdateApplicationResponse.add_member(:readme_url, Shapes::ShapeRef.new(shape: __string, location_name: "readmeUrl"))
421
438
  UpdateApplicationResponse.add_member(:spdx_license_id, Shapes::ShapeRef.new(shape: __string, location_name: "spdxLicenseId"))
439
+ UpdateApplicationResponse.add_member(:verified_author_url, Shapes::ShapeRef.new(shape: __string, location_name: "verifiedAuthorUrl"))
422
440
  UpdateApplicationResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
423
441
  UpdateApplicationResponse.struct_class = Types::UpdateApplicationResponse
424
442
 
@@ -650,6 +668,19 @@ module Aws::ServerlessApplicationRepository
650
668
  o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
651
669
  end)
652
670
 
671
+ api.add_operation(:unshare_application, Seahorse::Model::Operation.new.tap do |o|
672
+ o.name = "UnshareApplication"
673
+ o.http_method = "POST"
674
+ o.http_request_uri = "/applications/{applicationId}/unshare"
675
+ o.input = Shapes::ShapeRef.new(shape: UnshareApplicationRequest)
676
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
677
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
678
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
679
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
680
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
681
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
682
+ end)
683
+
653
684
  api.add_operation(:update_application, Seahorse::Model::Operation.new.tap do |o|
654
685
  o.name = "UpdateApplication"
655
686
  o.http_method = "PATCH"
@@ -6,6 +6,34 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::ServerlessApplicationRepository
9
+
10
+ # When ServerlessApplicationRepository returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::ServerlessApplicationRepository::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all ServerlessApplicationRepository errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::ServerlessApplicationRepository::Errors::ServiceError
18
+ # # rescues all ServerlessApplicationRepository API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {BadRequestException}
29
+ # * {ConflictException}
30
+ # * {ForbiddenException}
31
+ # * {InternalServerErrorException}
32
+ # * {NotFoundException}
33
+ # * {TooManyRequestsException}
34
+ #
35
+ # Additionally, error classes are dynamically generated for service errors based on the error code
36
+ # if they are not defined above.
9
37
  module Errors
10
38
 
11
39
  extend Aws::Errors::DynamicErrors
@@ -28,7 +56,6 @@ module Aws::ServerlessApplicationRepository
28
56
  def message
29
57
  @message || @data[:message]
30
58
  end
31
-
32
59
  end
33
60
 
34
61
  class ConflictException < ServiceError
@@ -49,7 +76,6 @@ module Aws::ServerlessApplicationRepository
49
76
  def message
50
77
  @message || @data[:message]
51
78
  end
52
-
53
79
  end
54
80
 
55
81
  class ForbiddenException < ServiceError
@@ -70,7 +96,6 @@ module Aws::ServerlessApplicationRepository
70
96
  def message
71
97
  @message || @data[:message]
72
98
  end
73
-
74
99
  end
75
100
 
76
101
  class InternalServerErrorException < ServiceError
@@ -91,7 +116,6 @@ module Aws::ServerlessApplicationRepository
91
116
  def message
92
117
  @message || @data[:message]
93
118
  end
94
-
95
119
  end
96
120
 
97
121
  class NotFoundException < ServiceError
@@ -112,7 +136,6 @@ module Aws::ServerlessApplicationRepository
112
136
  def message
113
137
  @message || @data[:message]
114
138
  end
115
-
116
139
  end
117
140
 
118
141
  class TooManyRequestsException < ServiceError
@@ -133,7 +156,6 @@ module Aws::ServerlessApplicationRepository
133
156
  def message
134
157
  @message || @data[:message]
135
158
  end
136
-
137
159
  end
138
160
 
139
161
  end
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::ServerlessApplicationRepository
9
+
9
10
  class Resource
10
11
 
11
12
  # @param options ({})
@@ -37,6 +37,14 @@ module Aws::ServerlessApplicationRepository
37
37
  # location of your GitHub repository for the application.
38
38
  # @return [String]
39
39
  #
40
+ # @!attribute [rw] is_verified_author
41
+ # Whether the author of this application has been verified. This means
42
+ # means that AWS has made a good faith review, as a reasonable and
43
+ # prudent service provider, of the information provided by the
44
+ # requester and has confirmed that the requester's identity is as
45
+ # claimed.
46
+ # @return [Boolean]
47
+ #
40
48
  # @!attribute [rw] labels
41
49
  # Labels to improve discovery of apps in search results.
42
50
  #
@@ -71,6 +79,11 @@ module Aws::ServerlessApplicationRepository
71
79
  # A valid identifier from https://spdx.org/licenses/.
72
80
  # @return [String]
73
81
  #
82
+ # @!attribute [rw] verified_author_url
83
+ # The URL to the public profile of a verified author. This URL is
84
+ # submitted by the author.
85
+ # @return [String]
86
+ #
74
87
  # @!attribute [rw] version
75
88
  # Version information about the application.
76
89
  # @return [Types::Version]
@@ -83,11 +96,13 @@ module Aws::ServerlessApplicationRepository
83
96
  :creation_time,
84
97
  :description,
85
98
  :home_page_url,
99
+ :is_verified_author,
86
100
  :labels,
87
101
  :license_url,
88
102
  :name,
89
103
  :readme_url,
90
104
  :spdx_license_id,
105
+ :verified_author_url,
91
106
  :version)
92
107
  include Aws::Structure
93
108
  end
@@ -166,6 +181,7 @@ module Aws::ServerlessApplicationRepository
166
181
  #
167
182
  # {
168
183
  # actions: ["__string"], # required
184
+ # principal_org_i_ds: ["__string"],
169
185
  # principals: ["__string"], # required
170
186
  # statement_id: "__string",
171
187
  # }
@@ -179,6 +195,15 @@ module Aws::ServerlessApplicationRepository
179
195
  # [1]: https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-permissions
180
196
  # @return [Array<String>]
181
197
  #
198
+ # @!attribute [rw] principal_org_i_ds
199
+ # An array of PrinciplalOrgIDs, which corresponds to AWS IAM
200
+ # [aws:PrincipalOrgID][1] global condition key.
201
+ #
202
+ #
203
+ #
204
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#principal-org-id
205
+ # @return [Array<String>]
206
+ #
182
207
  # @!attribute [rw] principals
183
208
  # An array of AWS account IDs, or * to make the application public.
184
209
  # @return [Array<String>]
@@ -191,6 +216,7 @@ module Aws::ServerlessApplicationRepository
191
216
  #
192
217
  class ApplicationPolicyStatement < Struct.new(
193
218
  :actions,
219
+ :principal_org_i_ds,
194
220
  :principals,
195
221
  :statement_id)
196
222
  include Aws::Structure
@@ -603,6 +629,9 @@ module Aws::ServerlessApplicationRepository
603
629
  # @!attribute [rw] home_page_url
604
630
  # @return [String]
605
631
  #
632
+ # @!attribute [rw] is_verified_author
633
+ # @return [Boolean]
634
+ #
606
635
  # @!attribute [rw] labels
607
636
  # @return [Array<String>]
608
637
  #
@@ -618,6 +647,9 @@ module Aws::ServerlessApplicationRepository
618
647
  # @!attribute [rw] spdx_license_id
619
648
  # @return [String]
620
649
  #
650
+ # @!attribute [rw] verified_author_url
651
+ # @return [String]
652
+ #
621
653
  # @!attribute [rw] version
622
654
  # Application version details.
623
655
  # @return [Types::Version]
@@ -630,11 +662,13 @@ module Aws::ServerlessApplicationRepository
630
662
  :creation_time,
631
663
  :description,
632
664
  :home_page_url,
665
+ :is_verified_author,
633
666
  :labels,
634
667
  :license_url,
635
668
  :name,
636
669
  :readme_url,
637
670
  :spdx_license_id,
671
+ :verified_author_url,
638
672
  :version)
639
673
  include Aws::Structure
640
674
  end
@@ -1174,6 +1208,9 @@ module Aws::ServerlessApplicationRepository
1174
1208
  # @!attribute [rw] home_page_url
1175
1209
  # @return [String]
1176
1210
  #
1211
+ # @!attribute [rw] is_verified_author
1212
+ # @return [Boolean]
1213
+ #
1177
1214
  # @!attribute [rw] labels
1178
1215
  # @return [Array<String>]
1179
1216
  #
@@ -1189,6 +1226,9 @@ module Aws::ServerlessApplicationRepository
1189
1226
  # @!attribute [rw] spdx_license_id
1190
1227
  # @return [String]
1191
1228
  #
1229
+ # @!attribute [rw] verified_author_url
1230
+ # @return [String]
1231
+ #
1192
1232
  # @!attribute [rw] version
1193
1233
  # Application version details.
1194
1234
  # @return [Types::Version]
@@ -1201,11 +1241,13 @@ module Aws::ServerlessApplicationRepository
1201
1241
  :creation_time,
1202
1242
  :description,
1203
1243
  :home_page_url,
1244
+ :is_verified_author,
1204
1245
  :labels,
1205
1246
  :license_url,
1206
1247
  :name,
1207
1248
  :readme_url,
1208
1249
  :spdx_license_id,
1250
+ :verified_author_url,
1209
1251
  :version)
1210
1252
  include Aws::Structure
1211
1253
  end
@@ -1591,6 +1633,7 @@ module Aws::ServerlessApplicationRepository
1591
1633
  # statements: [ # required
1592
1634
  # {
1593
1635
  # actions: ["__string"], # required
1636
+ # principal_org_i_ds: ["__string"],
1594
1637
  # principals: ["__string"], # required
1595
1638
  # statement_id: "__string",
1596
1639
  # },
@@ -1804,6 +1847,41 @@ module Aws::ServerlessApplicationRepository
1804
1847
  include Aws::Structure
1805
1848
  end
1806
1849
 
1850
+ # Unshare application request.
1851
+ #
1852
+ # @!attribute [rw] organization_id
1853
+ # The AWS Organization ID to unshare the application from.
1854
+ # @return [String]
1855
+ #
1856
+ # @see http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UnshareApplicationInput AWS API Documentation
1857
+ #
1858
+ class UnshareApplicationInput < Struct.new(
1859
+ :organization_id)
1860
+ include Aws::Structure
1861
+ end
1862
+
1863
+ # @note When making an API call, you may pass UnshareApplicationRequest
1864
+ # data as a hash:
1865
+ #
1866
+ # {
1867
+ # application_id: "__string", # required
1868
+ # organization_id: "__string", # required
1869
+ # }
1870
+ #
1871
+ # @!attribute [rw] application_id
1872
+ # @return [String]
1873
+ #
1874
+ # @!attribute [rw] organization_id
1875
+ # @return [String]
1876
+ #
1877
+ # @see http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UnshareApplicationRequest AWS API Documentation
1878
+ #
1879
+ class UnshareApplicationRequest < Struct.new(
1880
+ :application_id,
1881
+ :organization_id)
1882
+ include Aws::Structure
1883
+ end
1884
+
1807
1885
  # Update the application request.
1808
1886
  #
1809
1887
  # @!attribute [rw] author
@@ -1921,6 +1999,9 @@ module Aws::ServerlessApplicationRepository
1921
1999
  # @!attribute [rw] home_page_url
1922
2000
  # @return [String]
1923
2001
  #
2002
+ # @!attribute [rw] is_verified_author
2003
+ # @return [Boolean]
2004
+ #
1924
2005
  # @!attribute [rw] labels
1925
2006
  # @return [Array<String>]
1926
2007
  #
@@ -1936,6 +2017,9 @@ module Aws::ServerlessApplicationRepository
1936
2017
  # @!attribute [rw] spdx_license_id
1937
2018
  # @return [String]
1938
2019
  #
2020
+ # @!attribute [rw] verified_author_url
2021
+ # @return [String]
2022
+ #
1939
2023
  # @!attribute [rw] version
1940
2024
  # Application version details.
1941
2025
  # @return [Types::Version]
@@ -1948,11 +2032,13 @@ module Aws::ServerlessApplicationRepository
1948
2032
  :creation_time,
1949
2033
  :description,
1950
2034
  :home_page_url,
2035
+ :is_verified_author,
1951
2036
  :labels,
1952
2037
  :license_url,
1953
2038
  :name,
1954
2039
  :readme_url,
1955
2040
  :spdx_license_id,
2041
+ :verified_author_url,
1956
2042
  :version)
1957
2043
  include Aws::Structure
1958
2044
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-serverlessapplicationrepository
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2020-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - AWSServerlessApplicationRepository