aws-sdk-codestarconnections 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 458eaea8f793edda21c8b57e477b8624879506f9
4
+ data.tar.gz: d116aa7d8b76050ff9bb80498063f0f5e089cd10
5
+ SHA512:
6
+ metadata.gz: fd3d6f4f508ca2f34571e1dab84bbbd382a7dd1d7f36cb0a1be9e344a7928c89946b6336bb5a19565b3ef0052004d19197ae9eefaff83ce891c8fc8368543ac7
7
+ data.tar.gz: 38d60a297c064c33159a323163d5068befc0c3e7d1dab60463ed69986c3e189ce1e2d2359eaadf2101cb74fa51772bb014fca395a7792bc97f697e19d49f478f
@@ -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-codestarconnections/types'
12
+ require_relative 'aws-sdk-codestarconnections/client_api'
13
+ require_relative 'aws-sdk-codestarconnections/client'
14
+ require_relative 'aws-sdk-codestarconnections/errors'
15
+ require_relative 'aws-sdk-codestarconnections/resource'
16
+ require_relative 'aws-sdk-codestarconnections/customizations'
17
+
18
+ # This module provides support for AWS CodeStar connections. This module is available in the
19
+ # `aws-sdk-codestarconnections` 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 CodeStar connections all
32
+ # extend {Errors::ServiceError}.
33
+ #
34
+ # begin
35
+ # # do stuff
36
+ # rescue Aws::CodeStarconnections::Errors::ServiceError
37
+ # # rescues all service API errors
38
+ # end
39
+ #
40
+ # See {Errors} for more information.
41
+ #
42
+ # @service
43
+ module Aws::CodeStarconnections
44
+
45
+ GEM_VERSION = '1.0.0'
46
+
47
+ end
@@ -0,0 +1,446 @@
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/json_rpc.rb'
29
+
30
+ Aws::Plugins::GlobalConfiguration.add_identifier(:codestarconnections)
31
+
32
+ module Aws::CodeStarconnections
33
+ class Client < Seahorse::Client::Base
34
+
35
+ include Aws::ClientStubs
36
+
37
+ @identifier = :codestarconnections
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::JsonRpc)
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] :simple_json (false)
196
+ # Disables request parameter conversion, validation, and formatting.
197
+ # Also disable response data type conversions. This option is useful
198
+ # when you want to ensure the highest level of performance by
199
+ # avoiding overhead of walking request parameters and response data
200
+ # structures.
201
+ #
202
+ # When `:simple_json` is enabled, the request parameters hash must
203
+ # be formatted exactly as the DynamoDB API expects.
204
+ #
205
+ # @option options [Boolean] :stub_responses (false)
206
+ # Causes the client to return stubbed responses. By default
207
+ # fake responses are generated and returned. You can specify
208
+ # the response data to return or errors to raise by calling
209
+ # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
210
+ #
211
+ # ** Please note ** When response stubbing is enabled, no HTTP
212
+ # requests are made, and retries are disabled.
213
+ #
214
+ # @option options [Boolean] :validate_params (true)
215
+ # When `true`, request parameters are validated before
216
+ # sending the request.
217
+ #
218
+ # @option options [URI::HTTP,String] :http_proxy A proxy to send
219
+ # requests through. Formatted like 'http://proxy.com:123'.
220
+ #
221
+ # @option options [Float] :http_open_timeout (15) The number of
222
+ # seconds to wait when opening a HTTP session before rasing a
223
+ # `Timeout::Error`.
224
+ #
225
+ # @option options [Integer] :http_read_timeout (60) The default
226
+ # number of seconds to wait for response data. This value can
227
+ # safely be set
228
+ # per-request on the session yeidled by {#session_for}.
229
+ #
230
+ # @option options [Float] :http_idle_timeout (5) The number of
231
+ # seconds a connection is allowed to sit idble before it is
232
+ # considered stale. Stale connections are closed and removed
233
+ # from the pool before making a request.
234
+ #
235
+ # @option options [Float] :http_continue_timeout (1) The number of
236
+ # seconds to wait for a 100-continue response before sending the
237
+ # request body. This option has no effect unless the request has
238
+ # "Expect" header set to "100-continue". Defaults to `nil` which
239
+ # disables this behaviour. This value can safely be set per
240
+ # request on the session yeidled by {#session_for}.
241
+ #
242
+ # @option options [Boolean] :http_wire_trace (false) When `true`,
243
+ # HTTP debug output will be sent to the `:logger`.
244
+ #
245
+ # @option options [Boolean] :ssl_verify_peer (true) When `true`,
246
+ # SSL peer certificates are verified when establishing a
247
+ # connection.
248
+ #
249
+ # @option options [String] :ssl_ca_bundle Full path to the SSL
250
+ # certificate authority bundle file that should be used when
251
+ # verifying peer certificates. If you do not pass
252
+ # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
253
+ # will be used if available.
254
+ #
255
+ # @option options [String] :ssl_ca_directory Full path of the
256
+ # directory that contains the unbundled SSL certificate
257
+ # authority files for verifying peer certificates. If you do
258
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
259
+ # system default will be used if available.
260
+ #
261
+ def initialize(*args)
262
+ super
263
+ end
264
+
265
+ # @!group API Operations
266
+
267
+ # Creates a connection that can then be given to other AWS services like
268
+ # CodePipeline so that it can access third-party code repositories. The
269
+ # connection is in pending status until the third-party connection
270
+ # handshake is completed from the console.
271
+ #
272
+ # @option params [required, String] :provider_type
273
+ # The name of the external provider where your third-party code
274
+ # repository is configured. Currently, the valid provider type is
275
+ # Bitbucket.
276
+ #
277
+ # @option params [required, String] :connection_name
278
+ # The name of the connection to be created. The name must be unique in
279
+ # the calling AWS account.
280
+ #
281
+ # @return [Types::CreateConnectionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
282
+ #
283
+ # * {Types::CreateConnectionOutput#connection_arn #connection_arn} => String
284
+ #
285
+ # @example Request syntax with placeholder values
286
+ #
287
+ # resp = client.create_connection({
288
+ # provider_type: "Bitbucket", # required, accepts Bitbucket
289
+ # connection_name: "ConnectionName", # required
290
+ # })
291
+ #
292
+ # @example Response structure
293
+ #
294
+ # resp.connection_arn #=> String
295
+ #
296
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateConnection AWS API Documentation
297
+ #
298
+ # @overload create_connection(params = {})
299
+ # @param [Hash] params ({})
300
+ def create_connection(params = {}, options = {})
301
+ req = build_request(:create_connection, params)
302
+ req.send_request(options)
303
+ end
304
+
305
+ # The connection to be deleted.
306
+ #
307
+ # @option params [required, String] :connection_arn
308
+ # The Amazon Resource Name (ARN) of the connection to be deleted.
309
+ #
310
+ # <note markdown="1"> The ARN is never reused if the connection is deleted.
311
+ #
312
+ # </note>
313
+ #
314
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
315
+ #
316
+ # @example Request syntax with placeholder values
317
+ #
318
+ # resp = client.delete_connection({
319
+ # connection_arn: "ConnectionArn", # required
320
+ # })
321
+ #
322
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteConnection AWS API Documentation
323
+ #
324
+ # @overload delete_connection(params = {})
325
+ # @param [Hash] params ({})
326
+ def delete_connection(params = {}, options = {})
327
+ req = build_request(:delete_connection, params)
328
+ req.send_request(options)
329
+ end
330
+
331
+ # Returns the connection ARN and details such as status, owner, and
332
+ # provider type.
333
+ #
334
+ # @option params [required, String] :connection_arn
335
+ # The Amazon Resource Name (ARN) of a connection.
336
+ #
337
+ # @return [Types::GetConnectionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
338
+ #
339
+ # * {Types::GetConnectionOutput#connection #connection} => Types::Connection
340
+ #
341
+ # @example Request syntax with placeholder values
342
+ #
343
+ # resp = client.get_connection({
344
+ # connection_arn: "ConnectionArn", # required
345
+ # })
346
+ #
347
+ # @example Response structure
348
+ #
349
+ # resp.connection.connection_name #=> String
350
+ # resp.connection.connection_arn #=> String
351
+ # resp.connection.provider_type #=> String, one of "Bitbucket"
352
+ # resp.connection.owner_account_id #=> String
353
+ # resp.connection.connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
354
+ #
355
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnection AWS API Documentation
356
+ #
357
+ # @overload get_connection(params = {})
358
+ # @param [Hash] params ({})
359
+ def get_connection(params = {}, options = {})
360
+ req = build_request(:get_connection, params)
361
+ req.send_request(options)
362
+ end
363
+
364
+ # Lists the connections associated with your account.
365
+ #
366
+ # @option params [String] :provider_type_filter
367
+ # Filters the list of connections to those associated with a specified
368
+ # provider, such as Bitbucket.
369
+ #
370
+ # @option params [Integer] :max_results
371
+ # The maximum number of results to return in a single call. To retrieve
372
+ # the remaining results, make another call with the returned `nextToken`
373
+ # value.
374
+ #
375
+ # @option params [String] :next_token
376
+ # The token that was returned from the previous `ListConnections` call,
377
+ # which can be used to return the next set of connections in the list.
378
+ #
379
+ # @return [Types::ListConnectionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
380
+ #
381
+ # * {Types::ListConnectionsOutput#connections #connections} => Array&lt;Types::Connection&gt;
382
+ # * {Types::ListConnectionsOutput#next_token #next_token} => String
383
+ #
384
+ # @example Request syntax with placeholder values
385
+ #
386
+ # resp = client.list_connections({
387
+ # provider_type_filter: "Bitbucket", # accepts Bitbucket
388
+ # max_results: 1,
389
+ # next_token: "NextToken",
390
+ # })
391
+ #
392
+ # @example Response structure
393
+ #
394
+ # resp.connections #=> Array
395
+ # resp.connections[0].connection_name #=> String
396
+ # resp.connections[0].connection_arn #=> String
397
+ # resp.connections[0].provider_type #=> String, one of "Bitbucket"
398
+ # resp.connections[0].owner_account_id #=> String
399
+ # resp.connections[0].connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
400
+ # resp.next_token #=> String
401
+ #
402
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnections AWS API Documentation
403
+ #
404
+ # @overload list_connections(params = {})
405
+ # @param [Hash] params ({})
406
+ def list_connections(params = {}, options = {})
407
+ req = build_request(:list_connections, params)
408
+ req.send_request(options)
409
+ end
410
+
411
+ # @!endgroup
412
+
413
+ # @param params ({})
414
+ # @api private
415
+ def build_request(operation_name, params = {})
416
+ handlers = @handlers.for(operation_name)
417
+ context = Seahorse::Client::RequestContext.new(
418
+ operation_name: operation_name,
419
+ operation: config.api.operation(operation_name),
420
+ client: self,
421
+ params: params,
422
+ config: config)
423
+ context[:gem_name] = 'aws-sdk-codestarconnections'
424
+ context[:gem_version] = '1.0.0'
425
+ Seahorse::Client::Request.new(handlers, context)
426
+ end
427
+
428
+ # @api private
429
+ # @deprecated
430
+ def waiter_names
431
+ []
432
+ end
433
+
434
+ class << self
435
+
436
+ # @api private
437
+ attr_reader :identifier
438
+
439
+ # @api private
440
+ def errors_module
441
+ Errors
442
+ end
443
+
444
+ end
445
+ end
446
+ end
@@ -0,0 +1,139 @@
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
+ module Aws::CodeStarconnections
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AccountId = Shapes::StringShape.new(name: 'AccountId')
15
+ Connection = Shapes::StructureShape.new(name: 'Connection')
16
+ ConnectionArn = Shapes::StringShape.new(name: 'ConnectionArn')
17
+ ConnectionList = Shapes::ListShape.new(name: 'ConnectionList')
18
+ ConnectionName = Shapes::StringShape.new(name: 'ConnectionName')
19
+ ConnectionStatus = Shapes::StringShape.new(name: 'ConnectionStatus')
20
+ CreateConnectionInput = Shapes::StructureShape.new(name: 'CreateConnectionInput')
21
+ CreateConnectionOutput = Shapes::StructureShape.new(name: 'CreateConnectionOutput')
22
+ DeleteConnectionInput = Shapes::StructureShape.new(name: 'DeleteConnectionInput')
23
+ DeleteConnectionOutput = Shapes::StructureShape.new(name: 'DeleteConnectionOutput')
24
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
25
+ GetConnectionInput = Shapes::StructureShape.new(name: 'GetConnectionInput')
26
+ GetConnectionOutput = Shapes::StructureShape.new(name: 'GetConnectionOutput')
27
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
28
+ ListConnectionsInput = Shapes::StructureShape.new(name: 'ListConnectionsInput')
29
+ ListConnectionsOutput = Shapes::StructureShape.new(name: 'ListConnectionsOutput')
30
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
31
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
32
+ ProviderType = Shapes::StringShape.new(name: 'ProviderType')
33
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
34
+
35
+ Connection.add_member(:connection_name, Shapes::ShapeRef.new(shape: ConnectionName, location_name: "ConnectionName"))
36
+ Connection.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, location_name: "ConnectionArn"))
37
+ Connection.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
38
+ Connection.add_member(:owner_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "OwnerAccountId"))
39
+ Connection.add_member(:connection_status, Shapes::ShapeRef.new(shape: ConnectionStatus, location_name: "ConnectionStatus"))
40
+ Connection.struct_class = Types::Connection
41
+
42
+ ConnectionList.member = Shapes::ShapeRef.new(shape: Connection)
43
+
44
+ CreateConnectionInput.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, required: true, location_name: "ProviderType"))
45
+ CreateConnectionInput.add_member(:connection_name, Shapes::ShapeRef.new(shape: ConnectionName, required: true, location_name: "ConnectionName"))
46
+ CreateConnectionInput.struct_class = Types::CreateConnectionInput
47
+
48
+ CreateConnectionOutput.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
49
+ CreateConnectionOutput.struct_class = Types::CreateConnectionOutput
50
+
51
+ DeleteConnectionInput.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
52
+ DeleteConnectionInput.struct_class = Types::DeleteConnectionInput
53
+
54
+ DeleteConnectionOutput.struct_class = Types::DeleteConnectionOutput
55
+
56
+ GetConnectionInput.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
57
+ GetConnectionInput.struct_class = Types::GetConnectionInput
58
+
59
+ GetConnectionOutput.add_member(:connection, Shapes::ShapeRef.new(shape: Connection, location_name: "Connection"))
60
+ GetConnectionOutput.struct_class = Types::GetConnectionOutput
61
+
62
+ LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
63
+ LimitExceededException.struct_class = Types::LimitExceededException
64
+
65
+ ListConnectionsInput.add_member(:provider_type_filter, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderTypeFilter"))
66
+ ListConnectionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
67
+ ListConnectionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
68
+ ListConnectionsInput.struct_class = Types::ListConnectionsInput
69
+
70
+ ListConnectionsOutput.add_member(:connections, Shapes::ShapeRef.new(shape: ConnectionList, location_name: "Connections"))
71
+ ListConnectionsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
72
+ ListConnectionsOutput.struct_class = Types::ListConnectionsOutput
73
+
74
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
75
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
76
+
77
+
78
+ # @api private
79
+ API = Seahorse::Model::Api.new.tap do |api|
80
+
81
+ api.version = "2019-12-01"
82
+
83
+ api.metadata = {
84
+ "apiVersion" => "2019-12-01",
85
+ "endpointPrefix" => "codestar-connections",
86
+ "jsonVersion" => "1.0",
87
+ "protocol" => "json",
88
+ "serviceFullName" => "AWS CodeStar connections",
89
+ "serviceId" => "CodeStar connections",
90
+ "signatureVersion" => "v4",
91
+ "signingName" => "codestar-connections",
92
+ "targetPrefix" => "com.amazonaws.codestar.connections.CodeStar_connections_20191201",
93
+ "uid" => "codestar-connections-2019-12-01",
94
+ }
95
+
96
+ api.add_operation(:create_connection, Seahorse::Model::Operation.new.tap do |o|
97
+ o.name = "CreateConnection"
98
+ o.http_method = "POST"
99
+ o.http_request_uri = "/"
100
+ o.input = Shapes::ShapeRef.new(shape: CreateConnectionInput)
101
+ o.output = Shapes::ShapeRef.new(shape: CreateConnectionOutput)
102
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
103
+ end)
104
+
105
+ api.add_operation(:delete_connection, Seahorse::Model::Operation.new.tap do |o|
106
+ o.name = "DeleteConnection"
107
+ o.http_method = "POST"
108
+ o.http_request_uri = "/"
109
+ o.input = Shapes::ShapeRef.new(shape: DeleteConnectionInput)
110
+ o.output = Shapes::ShapeRef.new(shape: DeleteConnectionOutput)
111
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
112
+ end)
113
+
114
+ api.add_operation(:get_connection, Seahorse::Model::Operation.new.tap do |o|
115
+ o.name = "GetConnection"
116
+ o.http_method = "POST"
117
+ o.http_request_uri = "/"
118
+ o.input = Shapes::ShapeRef.new(shape: GetConnectionInput)
119
+ o.output = Shapes::ShapeRef.new(shape: GetConnectionOutput)
120
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
121
+ end)
122
+
123
+ api.add_operation(:list_connections, Seahorse::Model::Operation.new.tap do |o|
124
+ o.name = "ListConnections"
125
+ o.http_method = "POST"
126
+ o.http_request_uri = "/"
127
+ o.input = Shapes::ShapeRef.new(shape: ListConnectionsInput)
128
+ o.output = Shapes::ShapeRef.new(shape: ListConnectionsOutput)
129
+ o[:pager] = Aws::Pager.new(
130
+ limit_key: "max_results",
131
+ tokens: {
132
+ "next_token" => "next_token"
133
+ }
134
+ )
135
+ end)
136
+ end
137
+
138
+ end
139
+ end
@@ -0,0 +1,46 @@
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
+ module Aws::CodeStarconnections
9
+ module Errors
10
+
11
+ extend Aws::Errors::DynamicErrors
12
+
13
+ class LimitExceededException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::CodeStarconnections::Types::LimitExceededException] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def message
24
+ @message || @data[:message]
25
+ end
26
+
27
+ end
28
+
29
+ class ResourceNotFoundException < ServiceError
30
+
31
+ # @param [Seahorse::Client::RequestContext] context
32
+ # @param [String] message
33
+ # @param [Aws::CodeStarconnections::Types::ResourceNotFoundException] data
34
+ def initialize(context, message, data = Aws::EmptyStructure.new)
35
+ super(context, message, data)
36
+ end
37
+
38
+ # @return [String]
39
+ def message
40
+ @message || @data[:message]
41
+ end
42
+
43
+ end
44
+
45
+ end
46
+ end
@@ -0,0 +1,23 @@
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
+ module Aws::CodeStarconnections
9
+ class Resource
10
+
11
+ # @param options ({})
12
+ # @option options [Client] :client
13
+ def initialize(options = {})
14
+ @client = options[:client] || Client.new(options)
15
+ end
16
+
17
+ # @return [Client]
18
+ def client
19
+ @client
20
+ end
21
+
22
+ end
23
+ end
@@ -0,0 +1,234 @@
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
+ module Aws::CodeStarconnections
9
+ module Types
10
+
11
+ # The configuration that allows a service such as CodePipeline to
12
+ # connect to a third-party code repository.
13
+ #
14
+ # @!attribute [rw] connection_name
15
+ # The name of the connection. Connection names must be unique in an
16
+ # AWS user account.
17
+ # @return [String]
18
+ #
19
+ # @!attribute [rw] connection_arn
20
+ # The Amazon Resource Name (ARN) of the connection. The ARN is used as
21
+ # the connection reference when the connection is shared between AWS
22
+ # services.
23
+ #
24
+ # <note markdown="1"> The ARN is never reused if the connection is deleted.
25
+ #
26
+ # </note>
27
+ # @return [String]
28
+ #
29
+ # @!attribute [rw] provider_type
30
+ # The name of the external provider where your third-party code
31
+ # repository is configured. Currently, the valid provider type is
32
+ # Bitbucket.
33
+ # @return [String]
34
+ #
35
+ # @!attribute [rw] owner_account_id
36
+ # The name of the external provider where your third-party code
37
+ # repository is configured. For Bitbucket, this is the account ID of
38
+ # the owner of the Bitbucket repository.
39
+ # @return [String]
40
+ #
41
+ # @!attribute [rw] connection_status
42
+ # The current status of the connection.
43
+ # @return [String]
44
+ #
45
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/Connection AWS API Documentation
46
+ #
47
+ class Connection < Struct.new(
48
+ :connection_name,
49
+ :connection_arn,
50
+ :provider_type,
51
+ :owner_account_id,
52
+ :connection_status)
53
+ include Aws::Structure
54
+ end
55
+
56
+ # @note When making an API call, you may pass CreateConnectionInput
57
+ # data as a hash:
58
+ #
59
+ # {
60
+ # provider_type: "Bitbucket", # required, accepts Bitbucket
61
+ # connection_name: "ConnectionName", # required
62
+ # }
63
+ #
64
+ # @!attribute [rw] provider_type
65
+ # The name of the external provider where your third-party code
66
+ # repository is configured. Currently, the valid provider type is
67
+ # Bitbucket.
68
+ # @return [String]
69
+ #
70
+ # @!attribute [rw] connection_name
71
+ # The name of the connection to be created. The name must be unique in
72
+ # the calling AWS account.
73
+ # @return [String]
74
+ #
75
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateConnectionInput AWS API Documentation
76
+ #
77
+ class CreateConnectionInput < Struct.new(
78
+ :provider_type,
79
+ :connection_name)
80
+ include Aws::Structure
81
+ end
82
+
83
+ # @!attribute [rw] connection_arn
84
+ # The Amazon Resource Name (ARN) of the connection to be created. The
85
+ # ARN is used as the connection reference when the connection is
86
+ # shared between AWS services.
87
+ #
88
+ # <note markdown="1"> The ARN is never reused if the connection is deleted.
89
+ #
90
+ # </note>
91
+ # @return [String]
92
+ #
93
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateConnectionOutput AWS API Documentation
94
+ #
95
+ class CreateConnectionOutput < Struct.new(
96
+ :connection_arn)
97
+ include Aws::Structure
98
+ end
99
+
100
+ # @note When making an API call, you may pass DeleteConnectionInput
101
+ # data as a hash:
102
+ #
103
+ # {
104
+ # connection_arn: "ConnectionArn", # required
105
+ # }
106
+ #
107
+ # @!attribute [rw] connection_arn
108
+ # The Amazon Resource Name (ARN) of the connection to be deleted.
109
+ #
110
+ # <note markdown="1"> The ARN is never reused if the connection is deleted.
111
+ #
112
+ # </note>
113
+ # @return [String]
114
+ #
115
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteConnectionInput AWS API Documentation
116
+ #
117
+ class DeleteConnectionInput < Struct.new(
118
+ :connection_arn)
119
+ include Aws::Structure
120
+ end
121
+
122
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteConnectionOutput AWS API Documentation
123
+ #
124
+ class DeleteConnectionOutput < Aws::EmptyStructure; end
125
+
126
+ # @note When making an API call, you may pass GetConnectionInput
127
+ # data as a hash:
128
+ #
129
+ # {
130
+ # connection_arn: "ConnectionArn", # required
131
+ # }
132
+ #
133
+ # @!attribute [rw] connection_arn
134
+ # The Amazon Resource Name (ARN) of a connection.
135
+ # @return [String]
136
+ #
137
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnectionInput AWS API Documentation
138
+ #
139
+ class GetConnectionInput < Struct.new(
140
+ :connection_arn)
141
+ include Aws::Structure
142
+ end
143
+
144
+ # @!attribute [rw] connection
145
+ # The connection details, such as status, owner, and provider type.
146
+ # @return [Types::Connection]
147
+ #
148
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnectionOutput AWS API Documentation
149
+ #
150
+ class GetConnectionOutput < Struct.new(
151
+ :connection)
152
+ include Aws::Structure
153
+ end
154
+
155
+ # Exceeded the maximum limit for connections.
156
+ #
157
+ # @!attribute [rw] message
158
+ # @return [String]
159
+ #
160
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/LimitExceededException AWS API Documentation
161
+ #
162
+ class LimitExceededException < Struct.new(
163
+ :message)
164
+ include Aws::Structure
165
+ end
166
+
167
+ # @note When making an API call, you may pass ListConnectionsInput
168
+ # data as a hash:
169
+ #
170
+ # {
171
+ # provider_type_filter: "Bitbucket", # accepts Bitbucket
172
+ # max_results: 1,
173
+ # next_token: "NextToken",
174
+ # }
175
+ #
176
+ # @!attribute [rw] provider_type_filter
177
+ # Filters the list of connections to those associated with a specified
178
+ # provider, such as Bitbucket.
179
+ # @return [String]
180
+ #
181
+ # @!attribute [rw] max_results
182
+ # The maximum number of results to return in a single call. To
183
+ # retrieve the remaining results, make another call with the returned
184
+ # `nextToken` value.
185
+ # @return [Integer]
186
+ #
187
+ # @!attribute [rw] next_token
188
+ # The token that was returned from the previous `ListConnections`
189
+ # call, which can be used to return the next set of connections in the
190
+ # list.
191
+ # @return [String]
192
+ #
193
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnectionsInput AWS API Documentation
194
+ #
195
+ class ListConnectionsInput < Struct.new(
196
+ :provider_type_filter,
197
+ :max_results,
198
+ :next_token)
199
+ include Aws::Structure
200
+ end
201
+
202
+ # @!attribute [rw] connections
203
+ # A list of connections and the details for each connection, such as
204
+ # status, owner, and provider type.
205
+ # @return [Array<Types::Connection>]
206
+ #
207
+ # @!attribute [rw] next_token
208
+ # A token that can be used in the next `ListConnections` call. To view
209
+ # all items in the list, continue to call this operation with each
210
+ # subsequent token until no more `nextToken` values are returned.
211
+ # @return [String]
212
+ #
213
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnectionsOutput AWS API Documentation
214
+ #
215
+ class ListConnectionsOutput < Struct.new(
216
+ :connections,
217
+ :next_token)
218
+ include Aws::Structure
219
+ end
220
+
221
+ # Resource not found. Verify the connection resource ARN and try again.
222
+ #
223
+ # @!attribute [rw] message
224
+ # @return [String]
225
+ #
226
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ResourceNotFoundException AWS API Documentation
227
+ #
228
+ class ResourceNotFoundException < Struct.new(
229
+ :message)
230
+ include Aws::Structure
231
+ end
232
+
233
+ end
234
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aws-sdk-codestarconnections
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Amazon Web Services
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-12-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: aws-sdk-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.71.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '3'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.71.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: aws-sigv4
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.1'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.1'
47
+ description: Official AWS Ruby gem for AWS CodeStar connections. This gem is part
48
+ of the AWS SDK for Ruby.
49
+ email:
50
+ - trevrowe@amazon.com
51
+ executables: []
52
+ extensions: []
53
+ extra_rdoc_files: []
54
+ files:
55
+ - lib/aws-sdk-codestarconnections.rb
56
+ - lib/aws-sdk-codestarconnections/client.rb
57
+ - lib/aws-sdk-codestarconnections/client_api.rb
58
+ - lib/aws-sdk-codestarconnections/customizations.rb
59
+ - lib/aws-sdk-codestarconnections/errors.rb
60
+ - lib/aws-sdk-codestarconnections/resource.rb
61
+ - lib/aws-sdk-codestarconnections/types.rb
62
+ homepage: https://github.com/aws/aws-sdk-ruby
63
+ licenses:
64
+ - Apache-2.0
65
+ metadata:
66
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-codestarconnections
67
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-codestarconnections/CHANGELOG.md
68
+ post_install_message:
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirements: []
83
+ rubyforge_project:
84
+ rubygems_version: 2.5.2.3
85
+ signing_key:
86
+ specification_version: 4
87
+ summary: AWS SDK for Ruby - AWS CodeStar connections
88
+ test_files: []