aws-sdk-codeconnections 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.
@@ -0,0 +1,1687 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ require 'seahorse/client/plugins/content_length.rb'
11
+ require 'aws-sdk-core/plugins/credentials_configuration.rb'
12
+ require 'aws-sdk-core/plugins/logging.rb'
13
+ require 'aws-sdk-core/plugins/param_converter.rb'
14
+ require 'aws-sdk-core/plugins/param_validator.rb'
15
+ require 'aws-sdk-core/plugins/user_agent.rb'
16
+ require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
17
+ require 'aws-sdk-core/plugins/retry_errors.rb'
18
+ require 'aws-sdk-core/plugins/global_configuration.rb'
19
+ require 'aws-sdk-core/plugins/regional_endpoint.rb'
20
+ require 'aws-sdk-core/plugins/endpoint_discovery.rb'
21
+ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
+ require 'aws-sdk-core/plugins/response_paging.rb'
23
+ require 'aws-sdk-core/plugins/stub_responses.rb'
24
+ require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
+ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
+ require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
+ require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
+ require 'aws-sdk-core/plugins/request_compression.rb'
32
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
33
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
34
+ require 'aws-sdk-core/plugins/sign.rb'
35
+ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
36
+
37
+ Aws::Plugins::GlobalConfiguration.add_identifier(:codeconnections)
38
+
39
+ module Aws::CodeConnections
40
+ # An API client for CodeConnections. To construct a client, you need to configure a `:region` and `:credentials`.
41
+ #
42
+ # client = Aws::CodeConnections::Client.new(
43
+ # region: region_name,
44
+ # credentials: credentials,
45
+ # # ...
46
+ # )
47
+ #
48
+ # For details on configuring region and credentials see
49
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
50
+ #
51
+ # See {#initialize} for a full list of supported configuration options.
52
+ class Client < Seahorse::Client::Base
53
+
54
+ include Aws::ClientStubs
55
+
56
+ @identifier = :codeconnections
57
+
58
+ set_api(ClientApi::API)
59
+
60
+ add_plugin(Seahorse::Client::Plugins::ContentLength)
61
+ add_plugin(Aws::Plugins::CredentialsConfiguration)
62
+ add_plugin(Aws::Plugins::Logging)
63
+ add_plugin(Aws::Plugins::ParamConverter)
64
+ add_plugin(Aws::Plugins::ParamValidator)
65
+ add_plugin(Aws::Plugins::UserAgent)
66
+ add_plugin(Aws::Plugins::HelpfulSocketErrors)
67
+ add_plugin(Aws::Plugins::RetryErrors)
68
+ add_plugin(Aws::Plugins::GlobalConfiguration)
69
+ add_plugin(Aws::Plugins::RegionalEndpoint)
70
+ add_plugin(Aws::Plugins::EndpointDiscovery)
71
+ add_plugin(Aws::Plugins::EndpointPattern)
72
+ add_plugin(Aws::Plugins::ResponsePaging)
73
+ add_plugin(Aws::Plugins::StubResponses)
74
+ add_plugin(Aws::Plugins::IdempotencyToken)
75
+ add_plugin(Aws::Plugins::JsonvalueConverter)
76
+ add_plugin(Aws::Plugins::ClientMetricsPlugin)
77
+ add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
78
+ add_plugin(Aws::Plugins::TransferEncoding)
79
+ add_plugin(Aws::Plugins::HttpChecksum)
80
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
81
+ add_plugin(Aws::Plugins::RequestCompression)
82
+ add_plugin(Aws::Plugins::DefaultsMode)
83
+ add_plugin(Aws::Plugins::RecursionDetection)
84
+ add_plugin(Aws::Plugins::Sign)
85
+ add_plugin(Aws::Plugins::Protocols::JsonRpc)
86
+ add_plugin(Aws::CodeConnections::Plugins::Endpoints)
87
+
88
+ # @overload initialize(options)
89
+ # @param [Hash] options
90
+ # @option options [required, Aws::CredentialProvider] :credentials
91
+ # Your AWS credentials. This can be an instance of any one of the
92
+ # following classes:
93
+ #
94
+ # * `Aws::Credentials` - Used for configuring static, non-refreshing
95
+ # credentials.
96
+ #
97
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
98
+ # shared file, such as `~/.aws/config`.
99
+ #
100
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
101
+ #
102
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
103
+ # assume a role after providing credentials via the web.
104
+ #
105
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
106
+ # access token generated from `aws login`.
107
+ #
108
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
109
+ # process that outputs to stdout.
110
+ #
111
+ # * `Aws::InstanceProfileCredentials` - Used for loading credentials
112
+ # from an EC2 IMDS on an EC2 instance.
113
+ #
114
+ # * `Aws::ECSCredentials` - Used for loading credentials from
115
+ # instances running in ECS.
116
+ #
117
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
118
+ # from the Cognito Identity service.
119
+ #
120
+ # When `:credentials` are not configured directly, the following
121
+ # locations will be searched for credentials:
122
+ #
123
+ # * `Aws.config[:credentials]`
124
+ # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
125
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
126
+ # * `~/.aws/credentials`
127
+ # * `~/.aws/config`
128
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
129
+ # are very aggressive. Construct and pass an instance of
130
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
131
+ # enable retries and extended timeouts. Instance profile credential
132
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
133
+ # to true.
134
+ #
135
+ # @option options [required, String] :region
136
+ # The AWS region to connect to. The configured `:region` is
137
+ # used to determine the service `:endpoint`. When not passed,
138
+ # a default `:region` is searched for in the following locations:
139
+ #
140
+ # * `Aws.config[:region]`
141
+ # * `ENV['AWS_REGION']`
142
+ # * `ENV['AMAZON_REGION']`
143
+ # * `ENV['AWS_DEFAULT_REGION']`
144
+ # * `~/.aws/credentials`
145
+ # * `~/.aws/config`
146
+ #
147
+ # @option options [String] :access_key_id
148
+ #
149
+ # @option options [Boolean] :active_endpoint_cache (false)
150
+ # When set to `true`, a thread polling for endpoints will be running in
151
+ # the background every 60 secs (default). Defaults to `false`.
152
+ #
153
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
154
+ # Used only in `adaptive` retry mode. When true, the request will sleep
155
+ # until there is sufficent client side capacity to retry the request.
156
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
157
+ # not retry instead of sleeping.
158
+ #
159
+ # @option options [Boolean] :client_side_monitoring (false)
160
+ # When `true`, client-side metrics will be collected for all API requests from
161
+ # this client.
162
+ #
163
+ # @option options [String] :client_side_monitoring_client_id ("")
164
+ # Allows you to provide an identifier for this client which will be attached to
165
+ # all generated client side metrics. Defaults to an empty string.
166
+ #
167
+ # @option options [String] :client_side_monitoring_host ("127.0.0.1")
168
+ # Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
169
+ # side monitoring agent is running on, where client metrics will be published via UDP.
170
+ #
171
+ # @option options [Integer] :client_side_monitoring_port (31000)
172
+ # Required for publishing client metrics. The port that the client side monitoring
173
+ # agent is running on, where client metrics will be published via UDP.
174
+ #
175
+ # @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
176
+ # Allows you to provide a custom client-side monitoring publisher class. By default,
177
+ # will use the Client Side Monitoring Agent Publisher.
178
+ #
179
+ # @option options [Boolean] :convert_params (true)
180
+ # When `true`, an attempt is made to coerce request parameters into
181
+ # the required types.
182
+ #
183
+ # @option options [Boolean] :correct_clock_skew (true)
184
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
185
+ # a clock skew correction and retry requests with skewed client clocks.
186
+ #
187
+ # @option options [String] :defaults_mode ("legacy")
188
+ # See {Aws::DefaultsModeConfiguration} for a list of the
189
+ # accepted modes and the configuration defaults that are included.
190
+ #
191
+ # @option options [Boolean] :disable_host_prefix_injection (false)
192
+ # Set to true to disable SDK automatically adding host prefix
193
+ # to default service endpoint when available.
194
+ #
195
+ # @option options [Boolean] :disable_request_compression (false)
196
+ # When set to 'true' the request body will not be compressed
197
+ # for supported operations.
198
+ #
199
+ # @option options [String] :endpoint
200
+ # The client endpoint is normally constructed from the `:region`
201
+ # option. You should only configure an `:endpoint` when connecting
202
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
203
+ #
204
+ # @option options [Integer] :endpoint_cache_max_entries (1000)
205
+ # Used for the maximum size limit of the LRU cache storing endpoints data
206
+ # for endpoint discovery enabled operations. Defaults to 1000.
207
+ #
208
+ # @option options [Integer] :endpoint_cache_max_threads (10)
209
+ # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
210
+ #
211
+ # @option options [Integer] :endpoint_cache_poll_interval (60)
212
+ # When :endpoint_discovery and :active_endpoint_cache is enabled,
213
+ # Use this option to config the time interval in seconds for making
214
+ # requests fetching endpoints information. Defaults to 60 sec.
215
+ #
216
+ # @option options [Boolean] :endpoint_discovery (false)
217
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
218
+ #
219
+ # @option options [Boolean] :ignore_configured_endpoint_urls
220
+ # Setting to true disables use of endpoint URLs provided via environment
221
+ # variables and the shared configuration file.
222
+ #
223
+ # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
224
+ # The log formatter.
225
+ #
226
+ # @option options [Symbol] :log_level (:info)
227
+ # The log level to send messages to the `:logger` at.
228
+ #
229
+ # @option options [Logger] :logger
230
+ # The Logger instance to send log messages to. If this option
231
+ # is not set, logging will be disabled.
232
+ #
233
+ # @option options [Integer] :max_attempts (3)
234
+ # An integer representing the maximum number attempts that will be made for
235
+ # a single request, including the initial attempt. For example,
236
+ # setting this value to 5 will result in a request being retried up to
237
+ # 4 times. Used in `standard` and `adaptive` retry modes.
238
+ #
239
+ # @option options [String] :profile ("default")
240
+ # Used when loading credentials from the shared credentials file
241
+ # at HOME/.aws/credentials. When not specified, 'default' is used.
242
+ #
243
+ # @option options [Integer] :request_min_compression_size_bytes (10240)
244
+ # The minimum size in bytes that triggers compression for request
245
+ # bodies. The value must be non-negative integer value between 0
246
+ # and 10485780 bytes inclusive.
247
+ #
248
+ # @option options [Proc] :retry_backoff
249
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
250
+ # This option is only used in the `legacy` retry mode.
251
+ #
252
+ # @option options [Float] :retry_base_delay (0.3)
253
+ # The base delay in seconds used by the default backoff function. This option
254
+ # is only used in the `legacy` retry mode.
255
+ #
256
+ # @option options [Symbol] :retry_jitter (:none)
257
+ # A delay randomiser function used by the default backoff function.
258
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
259
+ # otherwise a Proc that takes and returns a number. This option is only used
260
+ # in the `legacy` retry mode.
261
+ #
262
+ # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
263
+ #
264
+ # @option options [Integer] :retry_limit (3)
265
+ # The maximum number of times to retry failed requests. Only
266
+ # ~ 500 level server errors and certain ~ 400 level client errors
267
+ # are retried. Generally, these are throttling errors, data
268
+ # checksum errors, networking errors, timeout errors, auth errors,
269
+ # endpoint discovery, and errors from expired credentials.
270
+ # This option is only used in the `legacy` retry mode.
271
+ #
272
+ # @option options [Integer] :retry_max_delay (0)
273
+ # The maximum number of seconds to delay between retries (0 for no limit)
274
+ # used by the default backoff function. This option is only used in the
275
+ # `legacy` retry mode.
276
+ #
277
+ # @option options [String] :retry_mode ("legacy")
278
+ # Specifies which retry algorithm to use. Values are:
279
+ #
280
+ # * `legacy` - The pre-existing retry behavior. This is default value if
281
+ # no retry mode is provided.
282
+ #
283
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
284
+ # This includes support for retry quotas, which limit the number of
285
+ # unsuccessful retries a client can make.
286
+ #
287
+ # * `adaptive` - An experimental retry mode that includes all the
288
+ # functionality of `standard` mode along with automatic client side
289
+ # throttling. This is a provisional mode that may change behavior
290
+ # in the future.
291
+ #
292
+ #
293
+ # @option options [String] :sdk_ua_app_id
294
+ # A unique and opaque application ID that is appended to the
295
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
296
+ # maximum length of 50.
297
+ #
298
+ # @option options [String] :secret_access_key
299
+ #
300
+ # @option options [String] :session_token
301
+ #
302
+ # @option options [Boolean] :simple_json (false)
303
+ # Disables request parameter conversion, validation, and formatting.
304
+ # Also disable response data type conversions. This option is useful
305
+ # when you want to ensure the highest level of performance by
306
+ # avoiding overhead of walking request parameters and response data
307
+ # structures.
308
+ #
309
+ # When `:simple_json` is enabled, the request parameters hash must
310
+ # be formatted exactly as the DynamoDB API expects.
311
+ #
312
+ # @option options [Boolean] :stub_responses (false)
313
+ # Causes the client to return stubbed responses. By default
314
+ # fake responses are generated and returned. You can specify
315
+ # the response data to return or errors to raise by calling
316
+ # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
317
+ #
318
+ # ** Please note ** When response stubbing is enabled, no HTTP
319
+ # requests are made, and retries are disabled.
320
+ #
321
+ # @option options [Aws::TokenProvider] :token_provider
322
+ # A Bearer Token Provider. This can be an instance of any one of the
323
+ # following classes:
324
+ #
325
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
326
+ # tokens.
327
+ #
328
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
329
+ # access token generated from `aws login`.
330
+ #
331
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
332
+ # will be used to search for tokens configured for your profile in shared configuration files.
333
+ #
334
+ # @option options [Boolean] :use_dualstack_endpoint
335
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
336
+ # will be used if available.
337
+ #
338
+ # @option options [Boolean] :use_fips_endpoint
339
+ # When set to `true`, fips compatible endpoints will be used if available.
340
+ # When a `fips` region is used, the region is normalized and this config
341
+ # is set to `true`.
342
+ #
343
+ # @option options [Boolean] :validate_params (true)
344
+ # When `true`, request parameters are validated before
345
+ # sending the request.
346
+ #
347
+ # @option options [Aws::CodeConnections::EndpointProvider] :endpoint_provider
348
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::CodeConnections::EndpointParameters`
349
+ #
350
+ # @option options [URI::HTTP,String] :http_proxy A proxy to send
351
+ # requests through. Formatted like 'http://proxy.com:123'.
352
+ #
353
+ # @option options [Float] :http_open_timeout (15) The number of
354
+ # seconds to wait when opening a HTTP session before raising a
355
+ # `Timeout::Error`.
356
+ #
357
+ # @option options [Float] :http_read_timeout (60) The default
358
+ # number of seconds to wait for response data. This value can
359
+ # safely be set per-request on the session.
360
+ #
361
+ # @option options [Float] :http_idle_timeout (5) The number of
362
+ # seconds a connection is allowed to sit idle before it is
363
+ # considered stale. Stale connections are closed and removed
364
+ # from the pool before making a request.
365
+ #
366
+ # @option options [Float] :http_continue_timeout (1) The number of
367
+ # seconds to wait for a 100-continue response before sending the
368
+ # request body. This option has no effect unless the request has
369
+ # "Expect" header set to "100-continue". Defaults to `nil` which
370
+ # disables this behaviour. This value can safely be set per
371
+ # request on the session.
372
+ #
373
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
374
+ # in seconds.
375
+ #
376
+ # @option options [Boolean] :http_wire_trace (false) When `true`,
377
+ # HTTP debug output will be sent to the `:logger`.
378
+ #
379
+ # @option options [Boolean] :ssl_verify_peer (true) When `true`,
380
+ # SSL peer certificates are verified when establishing a
381
+ # connection.
382
+ #
383
+ # @option options [String] :ssl_ca_bundle Full path to the SSL
384
+ # certificate authority bundle file that should be used when
385
+ # verifying peer certificates. If you do not pass
386
+ # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
387
+ # will be used if available.
388
+ #
389
+ # @option options [String] :ssl_ca_directory Full path of the
390
+ # directory that contains the unbundled SSL certificate
391
+ # authority files for verifying peer certificates. If you do
392
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
393
+ # system default will be used if available.
394
+ #
395
+ def initialize(*args)
396
+ super
397
+ end
398
+
399
+ # @!group API Operations
400
+
401
+ # Creates a connection that can then be given to other Amazon Web
402
+ # Services services like CodePipeline so that it can access third-party
403
+ # code repositories. The connection is in pending status until the
404
+ # third-party connection handshake is completed from the console.
405
+ #
406
+ # @option params [String] :provider_type
407
+ # The name of the external provider where your third-party code
408
+ # repository is configured.
409
+ #
410
+ # @option params [required, String] :connection_name
411
+ # The name of the connection to be created.
412
+ #
413
+ # @option params [Array<Types::Tag>] :tags
414
+ # The key-value pair to use when tagging the resource.
415
+ #
416
+ # @option params [String] :host_arn
417
+ # The Amazon Resource Name (ARN) of the host associated with the
418
+ # connection to be created.
419
+ #
420
+ # @return [Types::CreateConnectionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
421
+ #
422
+ # * {Types::CreateConnectionOutput#connection_arn #connection_arn} => String
423
+ # * {Types::CreateConnectionOutput#tags #tags} => Array&lt;Types::Tag&gt;
424
+ #
425
+ # @example Request syntax with placeholder values
426
+ #
427
+ # resp = client.create_connection({
428
+ # provider_type: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer, GitLab, GitLabSelfManaged
429
+ # connection_name: "ConnectionName", # required
430
+ # tags: [
431
+ # {
432
+ # key: "TagKey", # required
433
+ # value: "TagValue", # required
434
+ # },
435
+ # ],
436
+ # host_arn: "HostArn",
437
+ # })
438
+ #
439
+ # @example Response structure
440
+ #
441
+ # resp.connection_arn #=> String
442
+ # resp.tags #=> Array
443
+ # resp.tags[0].key #=> String
444
+ # resp.tags[0].value #=> String
445
+ #
446
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/CreateConnection AWS API Documentation
447
+ #
448
+ # @overload create_connection(params = {})
449
+ # @param [Hash] params ({})
450
+ def create_connection(params = {}, options = {})
451
+ req = build_request(:create_connection, params)
452
+ req.send_request(options)
453
+ end
454
+
455
+ # Creates a resource that represents the infrastructure where a
456
+ # third-party provider is installed. The host is used when you create
457
+ # connections to an installed third-party provider type, such as GitHub
458
+ # Enterprise Server. You create one host for all connections to that
459
+ # provider.
460
+ #
461
+ # <note markdown="1"> A host created through the CLI or the SDK is in `PENDING` status by
462
+ # default. You can make its status `AVAILABLE` by setting up the host
463
+ # in the console.
464
+ #
465
+ # </note>
466
+ #
467
+ # @option params [required, String] :name
468
+ # The name of the host to be created.
469
+ #
470
+ # @option params [required, String] :provider_type
471
+ # The name of the installed provider to be associated with your
472
+ # connection. The host resource represents the infrastructure where your
473
+ # provider type is installed. The valid provider type is GitHub
474
+ # Enterprise Server.
475
+ #
476
+ # @option params [required, String] :provider_endpoint
477
+ # The endpoint of the infrastructure to be represented by the host after
478
+ # it is created.
479
+ #
480
+ # @option params [Types::VpcConfiguration] :vpc_configuration
481
+ # The VPC configuration to be provisioned for the host. A VPC must be
482
+ # configured and the infrastructure to be represented by the host must
483
+ # already be connected to the VPC.
484
+ #
485
+ # @option params [Array<Types::Tag>] :tags
486
+ # Tags for the host to be created.
487
+ #
488
+ # @return [Types::CreateHostOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
489
+ #
490
+ # * {Types::CreateHostOutput#host_arn #host_arn} => String
491
+ # * {Types::CreateHostOutput#tags #tags} => Array&lt;Types::Tag&gt;
492
+ #
493
+ # @example Request syntax with placeholder values
494
+ #
495
+ # resp = client.create_host({
496
+ # name: "HostName", # required
497
+ # provider_type: "Bitbucket", # required, accepts Bitbucket, GitHub, GitHubEnterpriseServer, GitLab, GitLabSelfManaged
498
+ # provider_endpoint: "Url", # required
499
+ # vpc_configuration: {
500
+ # vpc_id: "VpcId", # required
501
+ # subnet_ids: ["SubnetId"], # required
502
+ # security_group_ids: ["SecurityGroupId"], # required
503
+ # tls_certificate: "TlsCertificate",
504
+ # },
505
+ # tags: [
506
+ # {
507
+ # key: "TagKey", # required
508
+ # value: "TagValue", # required
509
+ # },
510
+ # ],
511
+ # })
512
+ #
513
+ # @example Response structure
514
+ #
515
+ # resp.host_arn #=> String
516
+ # resp.tags #=> Array
517
+ # resp.tags[0].key #=> String
518
+ # resp.tags[0].value #=> String
519
+ #
520
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/CreateHost AWS API Documentation
521
+ #
522
+ # @overload create_host(params = {})
523
+ # @param [Hash] params ({})
524
+ def create_host(params = {}, options = {})
525
+ req = build_request(:create_host, params)
526
+ req.send_request(options)
527
+ end
528
+
529
+ # Creates a link to a specified external Git repository. A repository
530
+ # link allows Git sync to monitor and sync changes to files in a
531
+ # specified Git repository.
532
+ #
533
+ # @option params [required, String] :connection_arn
534
+ # The Amazon Resource Name (ARN) of the connection to be associated with
535
+ # the repository link.
536
+ #
537
+ # @option params [required, String] :owner_id
538
+ # The owner ID for the repository associated with a specific sync
539
+ # configuration, such as the owner ID in GitHub.
540
+ #
541
+ # @option params [required, String] :repository_name
542
+ # The name of the repository to be associated with the repository link.
543
+ #
544
+ # @option params [String] :encryption_key_arn
545
+ # The Amazon Resource Name (ARN) encryption key for the repository to be
546
+ # associated with the repository link.
547
+ #
548
+ # @option params [Array<Types::Tag>] :tags
549
+ # The tags for the repository to be associated with the repository link.
550
+ #
551
+ # @return [Types::CreateRepositoryLinkOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
552
+ #
553
+ # * {Types::CreateRepositoryLinkOutput#repository_link_info #repository_link_info} => Types::RepositoryLinkInfo
554
+ #
555
+ # @example Request syntax with placeholder values
556
+ #
557
+ # resp = client.create_repository_link({
558
+ # connection_arn: "ConnectionArn", # required
559
+ # owner_id: "OwnerId", # required
560
+ # repository_name: "RepositoryName", # required
561
+ # encryption_key_arn: "KmsKeyArn",
562
+ # tags: [
563
+ # {
564
+ # key: "TagKey", # required
565
+ # value: "TagValue", # required
566
+ # },
567
+ # ],
568
+ # })
569
+ #
570
+ # @example Response structure
571
+ #
572
+ # resp.repository_link_info.connection_arn #=> String
573
+ # resp.repository_link_info.encryption_key_arn #=> String
574
+ # resp.repository_link_info.owner_id #=> String
575
+ # resp.repository_link_info.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
576
+ # resp.repository_link_info.repository_link_arn #=> String
577
+ # resp.repository_link_info.repository_link_id #=> String
578
+ # resp.repository_link_info.repository_name #=> String
579
+ #
580
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/CreateRepositoryLink AWS API Documentation
581
+ #
582
+ # @overload create_repository_link(params = {})
583
+ # @param [Hash] params ({})
584
+ def create_repository_link(params = {}, options = {})
585
+ req = build_request(:create_repository_link, params)
586
+ req.send_request(options)
587
+ end
588
+
589
+ # Creates a sync configuration which allows Amazon Web Services to sync
590
+ # content from a Git repository to update a specified Amazon Web
591
+ # Services resource. Parameters for the sync configuration are
592
+ # determined by the sync type.
593
+ #
594
+ # @option params [required, String] :branch
595
+ # The branch in the repository from which changes will be synced.
596
+ #
597
+ # @option params [required, String] :config_file
598
+ # The file name of the configuration file that manages syncing between
599
+ # the connection and the repository. This configuration file is stored
600
+ # in the repository.
601
+ #
602
+ # @option params [required, String] :repository_link_id
603
+ # The ID of the repository link created for the connection. A repository
604
+ # link allows Git sync to monitor and sync changes to files in a
605
+ # specified Git repository.
606
+ #
607
+ # @option params [required, String] :resource_name
608
+ # The name of the Amazon Web Services resource (for example, a
609
+ # CloudFormation stack in the case of CFN\_STACK\_SYNC) that will be
610
+ # synchronized from the linked repository.
611
+ #
612
+ # @option params [required, String] :role_arn
613
+ # The ARN of the IAM role that grants permission for Amazon Web Services
614
+ # to use Git sync to update a given Amazon Web Services resource on your
615
+ # behalf.
616
+ #
617
+ # @option params [required, String] :sync_type
618
+ # The type of sync configuration.
619
+ #
620
+ # @option params [String] :publish_deployment_status
621
+ # Whether to enable or disable publishing of deployment status to source
622
+ # providers.
623
+ #
624
+ # @option params [String] :trigger_resource_update_on
625
+ # When to trigger Git sync to begin the stack update.
626
+ #
627
+ # @return [Types::CreateSyncConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
628
+ #
629
+ # * {Types::CreateSyncConfigurationOutput#sync_configuration #sync_configuration} => Types::SyncConfiguration
630
+ #
631
+ # @example Request syntax with placeholder values
632
+ #
633
+ # resp = client.create_sync_configuration({
634
+ # branch: "BranchName", # required
635
+ # config_file: "DeploymentFilePath", # required
636
+ # repository_link_id: "RepositoryLinkId", # required
637
+ # resource_name: "ResourceName", # required
638
+ # role_arn: "IamRoleArn", # required
639
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
640
+ # publish_deployment_status: "ENABLED", # accepts ENABLED, DISABLED
641
+ # trigger_resource_update_on: "ANY_CHANGE", # accepts ANY_CHANGE, FILE_CHANGE
642
+ # })
643
+ #
644
+ # @example Response structure
645
+ #
646
+ # resp.sync_configuration.branch #=> String
647
+ # resp.sync_configuration.config_file #=> String
648
+ # resp.sync_configuration.owner_id #=> String
649
+ # resp.sync_configuration.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
650
+ # resp.sync_configuration.repository_link_id #=> String
651
+ # resp.sync_configuration.repository_name #=> String
652
+ # resp.sync_configuration.resource_name #=> String
653
+ # resp.sync_configuration.role_arn #=> String
654
+ # resp.sync_configuration.sync_type #=> String, one of "CFN_STACK_SYNC"
655
+ # resp.sync_configuration.publish_deployment_status #=> String, one of "ENABLED", "DISABLED"
656
+ # resp.sync_configuration.trigger_resource_update_on #=> String, one of "ANY_CHANGE", "FILE_CHANGE"
657
+ #
658
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/CreateSyncConfiguration AWS API Documentation
659
+ #
660
+ # @overload create_sync_configuration(params = {})
661
+ # @param [Hash] params ({})
662
+ def create_sync_configuration(params = {}, options = {})
663
+ req = build_request(:create_sync_configuration, params)
664
+ req.send_request(options)
665
+ end
666
+
667
+ # The connection to be deleted.
668
+ #
669
+ # @option params [required, String] :connection_arn
670
+ # The Amazon Resource Name (ARN) of the connection to be deleted.
671
+ #
672
+ # <note markdown="1"> The ARN is never reused if the connection is deleted.
673
+ #
674
+ # </note>
675
+ #
676
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
677
+ #
678
+ # @example Request syntax with placeholder values
679
+ #
680
+ # resp = client.delete_connection({
681
+ # connection_arn: "ConnectionArn", # required
682
+ # })
683
+ #
684
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/DeleteConnection AWS API Documentation
685
+ #
686
+ # @overload delete_connection(params = {})
687
+ # @param [Hash] params ({})
688
+ def delete_connection(params = {}, options = {})
689
+ req = build_request(:delete_connection, params)
690
+ req.send_request(options)
691
+ end
692
+
693
+ # The host to be deleted. Before you delete a host, all connections
694
+ # associated to the host must be deleted.
695
+ #
696
+ # <note markdown="1"> A host cannot be deleted if it is in the VPC\_CONFIG\_INITIALIZING or
697
+ # VPC\_CONFIG\_DELETING state.
698
+ #
699
+ # </note>
700
+ #
701
+ # @option params [required, String] :host_arn
702
+ # The Amazon Resource Name (ARN) of the host to be deleted.
703
+ #
704
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
705
+ #
706
+ # @example Request syntax with placeholder values
707
+ #
708
+ # resp = client.delete_host({
709
+ # host_arn: "HostArn", # required
710
+ # })
711
+ #
712
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/DeleteHost AWS API Documentation
713
+ #
714
+ # @overload delete_host(params = {})
715
+ # @param [Hash] params ({})
716
+ def delete_host(params = {}, options = {})
717
+ req = build_request(:delete_host, params)
718
+ req.send_request(options)
719
+ end
720
+
721
+ # Deletes the association between your connection and a specified
722
+ # external Git repository.
723
+ #
724
+ # @option params [required, String] :repository_link_id
725
+ # The ID of the repository link to be deleted.
726
+ #
727
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
728
+ #
729
+ # @example Request syntax with placeholder values
730
+ #
731
+ # resp = client.delete_repository_link({
732
+ # repository_link_id: "RepositoryLinkId", # required
733
+ # })
734
+ #
735
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/DeleteRepositoryLink AWS API Documentation
736
+ #
737
+ # @overload delete_repository_link(params = {})
738
+ # @param [Hash] params ({})
739
+ def delete_repository_link(params = {}, options = {})
740
+ req = build_request(:delete_repository_link, params)
741
+ req.send_request(options)
742
+ end
743
+
744
+ # Deletes the sync configuration for a specified repository and
745
+ # connection.
746
+ #
747
+ # @option params [required, String] :sync_type
748
+ # The type of sync configuration to be deleted.
749
+ #
750
+ # @option params [required, String] :resource_name
751
+ # The name of the Amazon Web Services resource associated with the sync
752
+ # configuration to be deleted.
753
+ #
754
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
755
+ #
756
+ # @example Request syntax with placeholder values
757
+ #
758
+ # resp = client.delete_sync_configuration({
759
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
760
+ # resource_name: "ResourceName", # required
761
+ # })
762
+ #
763
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/DeleteSyncConfiguration AWS API Documentation
764
+ #
765
+ # @overload delete_sync_configuration(params = {})
766
+ # @param [Hash] params ({})
767
+ def delete_sync_configuration(params = {}, options = {})
768
+ req = build_request(:delete_sync_configuration, params)
769
+ req.send_request(options)
770
+ end
771
+
772
+ # Returns the connection ARN and details such as status, owner, and
773
+ # provider type.
774
+ #
775
+ # @option params [required, String] :connection_arn
776
+ # The Amazon Resource Name (ARN) of a connection.
777
+ #
778
+ # @return [Types::GetConnectionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
779
+ #
780
+ # * {Types::GetConnectionOutput#connection #connection} => Types::Connection
781
+ #
782
+ # @example Request syntax with placeholder values
783
+ #
784
+ # resp = client.get_connection({
785
+ # connection_arn: "ConnectionArn", # required
786
+ # })
787
+ #
788
+ # @example Response structure
789
+ #
790
+ # resp.connection.connection_name #=> String
791
+ # resp.connection.connection_arn #=> String
792
+ # resp.connection.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
793
+ # resp.connection.owner_account_id #=> String
794
+ # resp.connection.connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
795
+ # resp.connection.host_arn #=> String
796
+ #
797
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/GetConnection AWS API Documentation
798
+ #
799
+ # @overload get_connection(params = {})
800
+ # @param [Hash] params ({})
801
+ def get_connection(params = {}, options = {})
802
+ req = build_request(:get_connection, params)
803
+ req.send_request(options)
804
+ end
805
+
806
+ # Returns the host ARN and details such as status, provider type,
807
+ # endpoint, and, if applicable, the VPC configuration.
808
+ #
809
+ # @option params [required, String] :host_arn
810
+ # The Amazon Resource Name (ARN) of the requested host.
811
+ #
812
+ # @return [Types::GetHostOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
813
+ #
814
+ # * {Types::GetHostOutput#name #name} => String
815
+ # * {Types::GetHostOutput#status #status} => String
816
+ # * {Types::GetHostOutput#provider_type #provider_type} => String
817
+ # * {Types::GetHostOutput#provider_endpoint #provider_endpoint} => String
818
+ # * {Types::GetHostOutput#vpc_configuration #vpc_configuration} => Types::VpcConfiguration
819
+ #
820
+ # @example Request syntax with placeholder values
821
+ #
822
+ # resp = client.get_host({
823
+ # host_arn: "HostArn", # required
824
+ # })
825
+ #
826
+ # @example Response structure
827
+ #
828
+ # resp.name #=> String
829
+ # resp.status #=> String
830
+ # resp.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
831
+ # resp.provider_endpoint #=> String
832
+ # resp.vpc_configuration.vpc_id #=> String
833
+ # resp.vpc_configuration.subnet_ids #=> Array
834
+ # resp.vpc_configuration.subnet_ids[0] #=> String
835
+ # resp.vpc_configuration.security_group_ids #=> Array
836
+ # resp.vpc_configuration.security_group_ids[0] #=> String
837
+ # resp.vpc_configuration.tls_certificate #=> String
838
+ #
839
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/GetHost AWS API Documentation
840
+ #
841
+ # @overload get_host(params = {})
842
+ # @param [Hash] params ({})
843
+ def get_host(params = {}, options = {})
844
+ req = build_request(:get_host, params)
845
+ req.send_request(options)
846
+ end
847
+
848
+ # Returns details about a repository link. A repository link allows Git
849
+ # sync to monitor and sync changes from files in a specified Git
850
+ # repository.
851
+ #
852
+ # @option params [required, String] :repository_link_id
853
+ # The ID of the repository link to get.
854
+ #
855
+ # @return [Types::GetRepositoryLinkOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
856
+ #
857
+ # * {Types::GetRepositoryLinkOutput#repository_link_info #repository_link_info} => Types::RepositoryLinkInfo
858
+ #
859
+ # @example Request syntax with placeholder values
860
+ #
861
+ # resp = client.get_repository_link({
862
+ # repository_link_id: "RepositoryLinkId", # required
863
+ # })
864
+ #
865
+ # @example Response structure
866
+ #
867
+ # resp.repository_link_info.connection_arn #=> String
868
+ # resp.repository_link_info.encryption_key_arn #=> String
869
+ # resp.repository_link_info.owner_id #=> String
870
+ # resp.repository_link_info.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
871
+ # resp.repository_link_info.repository_link_arn #=> String
872
+ # resp.repository_link_info.repository_link_id #=> String
873
+ # resp.repository_link_info.repository_name #=> String
874
+ #
875
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/GetRepositoryLink AWS API Documentation
876
+ #
877
+ # @overload get_repository_link(params = {})
878
+ # @param [Hash] params ({})
879
+ def get_repository_link(params = {}, options = {})
880
+ req = build_request(:get_repository_link, params)
881
+ req.send_request(options)
882
+ end
883
+
884
+ # Returns details about the sync status for a repository. A repository
885
+ # sync uses Git sync to push and pull changes from your remote
886
+ # repository.
887
+ #
888
+ # @option params [required, String] :branch
889
+ # The branch of the repository link for the requested repository sync
890
+ # status.
891
+ #
892
+ # @option params [required, String] :repository_link_id
893
+ # The repository link ID for the requested repository sync status.
894
+ #
895
+ # @option params [required, String] :sync_type
896
+ # The sync type of the requested sync status.
897
+ #
898
+ # @return [Types::GetRepositorySyncStatusOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
899
+ #
900
+ # * {Types::GetRepositorySyncStatusOutput#latest_sync #latest_sync} => Types::RepositorySyncAttempt
901
+ #
902
+ # @example Request syntax with placeholder values
903
+ #
904
+ # resp = client.get_repository_sync_status({
905
+ # branch: "BranchName", # required
906
+ # repository_link_id: "RepositoryLinkId", # required
907
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
908
+ # })
909
+ #
910
+ # @example Response structure
911
+ #
912
+ # resp.latest_sync.started_at #=> Time
913
+ # resp.latest_sync.status #=> String, one of "FAILED", "INITIATED", "IN_PROGRESS", "SUCCEEDED", "QUEUED"
914
+ # resp.latest_sync.events #=> Array
915
+ # resp.latest_sync.events[0].event #=> String
916
+ # resp.latest_sync.events[0].external_id #=> String
917
+ # resp.latest_sync.events[0].time #=> Time
918
+ # resp.latest_sync.events[0].type #=> String
919
+ #
920
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/GetRepositorySyncStatus AWS API Documentation
921
+ #
922
+ # @overload get_repository_sync_status(params = {})
923
+ # @param [Hash] params ({})
924
+ def get_repository_sync_status(params = {}, options = {})
925
+ req = build_request(:get_repository_sync_status, params)
926
+ req.send_request(options)
927
+ end
928
+
929
+ # Returns the status of the sync with the Git repository for a specific
930
+ # Amazon Web Services resource.
931
+ #
932
+ # @option params [required, String] :resource_name
933
+ # The name of the Amazon Web Services resource for the sync status with
934
+ # the Git repository.
935
+ #
936
+ # @option params [required, String] :sync_type
937
+ # The sync type for the sync status with the Git repository.
938
+ #
939
+ # @return [Types::GetResourceSyncStatusOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
940
+ #
941
+ # * {Types::GetResourceSyncStatusOutput#desired_state #desired_state} => Types::Revision
942
+ # * {Types::GetResourceSyncStatusOutput#latest_successful_sync #latest_successful_sync} => Types::ResourceSyncAttempt
943
+ # * {Types::GetResourceSyncStatusOutput#latest_sync #latest_sync} => Types::ResourceSyncAttempt
944
+ #
945
+ # @example Request syntax with placeholder values
946
+ #
947
+ # resp = client.get_resource_sync_status({
948
+ # resource_name: "ResourceName", # required
949
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
950
+ # })
951
+ #
952
+ # @example Response structure
953
+ #
954
+ # resp.desired_state.branch #=> String
955
+ # resp.desired_state.directory #=> String
956
+ # resp.desired_state.owner_id #=> String
957
+ # resp.desired_state.repository_name #=> String
958
+ # resp.desired_state.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
959
+ # resp.desired_state.sha #=> String
960
+ # resp.latest_successful_sync.events #=> Array
961
+ # resp.latest_successful_sync.events[0].event #=> String
962
+ # resp.latest_successful_sync.events[0].external_id #=> String
963
+ # resp.latest_successful_sync.events[0].time #=> Time
964
+ # resp.latest_successful_sync.events[0].type #=> String
965
+ # resp.latest_successful_sync.initial_revision.branch #=> String
966
+ # resp.latest_successful_sync.initial_revision.directory #=> String
967
+ # resp.latest_successful_sync.initial_revision.owner_id #=> String
968
+ # resp.latest_successful_sync.initial_revision.repository_name #=> String
969
+ # resp.latest_successful_sync.initial_revision.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
970
+ # resp.latest_successful_sync.initial_revision.sha #=> String
971
+ # resp.latest_successful_sync.started_at #=> Time
972
+ # resp.latest_successful_sync.status #=> String, one of "FAILED", "INITIATED", "IN_PROGRESS", "SUCCEEDED"
973
+ # resp.latest_successful_sync.target_revision.branch #=> String
974
+ # resp.latest_successful_sync.target_revision.directory #=> String
975
+ # resp.latest_successful_sync.target_revision.owner_id #=> String
976
+ # resp.latest_successful_sync.target_revision.repository_name #=> String
977
+ # resp.latest_successful_sync.target_revision.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
978
+ # resp.latest_successful_sync.target_revision.sha #=> String
979
+ # resp.latest_successful_sync.target #=> String
980
+ # resp.latest_sync.events #=> Array
981
+ # resp.latest_sync.events[0].event #=> String
982
+ # resp.latest_sync.events[0].external_id #=> String
983
+ # resp.latest_sync.events[0].time #=> Time
984
+ # resp.latest_sync.events[0].type #=> String
985
+ # resp.latest_sync.initial_revision.branch #=> String
986
+ # resp.latest_sync.initial_revision.directory #=> String
987
+ # resp.latest_sync.initial_revision.owner_id #=> String
988
+ # resp.latest_sync.initial_revision.repository_name #=> String
989
+ # resp.latest_sync.initial_revision.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
990
+ # resp.latest_sync.initial_revision.sha #=> String
991
+ # resp.latest_sync.started_at #=> Time
992
+ # resp.latest_sync.status #=> String, one of "FAILED", "INITIATED", "IN_PROGRESS", "SUCCEEDED"
993
+ # resp.latest_sync.target_revision.branch #=> String
994
+ # resp.latest_sync.target_revision.directory #=> String
995
+ # resp.latest_sync.target_revision.owner_id #=> String
996
+ # resp.latest_sync.target_revision.repository_name #=> String
997
+ # resp.latest_sync.target_revision.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
998
+ # resp.latest_sync.target_revision.sha #=> String
999
+ # resp.latest_sync.target #=> String
1000
+ #
1001
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/GetResourceSyncStatus AWS API Documentation
1002
+ #
1003
+ # @overload get_resource_sync_status(params = {})
1004
+ # @param [Hash] params ({})
1005
+ def get_resource_sync_status(params = {}, options = {})
1006
+ req = build_request(:get_resource_sync_status, params)
1007
+ req.send_request(options)
1008
+ end
1009
+
1010
+ # Returns a list of the most recent sync blockers.
1011
+ #
1012
+ # @option params [required, String] :sync_type
1013
+ # The sync type for the sync blocker summary.
1014
+ #
1015
+ # @option params [required, String] :resource_name
1016
+ # The name of the Amazon Web Services resource currently blocked from
1017
+ # automatically being synced from a Git repository.
1018
+ #
1019
+ # @return [Types::GetSyncBlockerSummaryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1020
+ #
1021
+ # * {Types::GetSyncBlockerSummaryOutput#sync_blocker_summary #sync_blocker_summary} => Types::SyncBlockerSummary
1022
+ #
1023
+ # @example Request syntax with placeholder values
1024
+ #
1025
+ # resp = client.get_sync_blocker_summary({
1026
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
1027
+ # resource_name: "ResourceName", # required
1028
+ # })
1029
+ #
1030
+ # @example Response structure
1031
+ #
1032
+ # resp.sync_blocker_summary.resource_name #=> String
1033
+ # resp.sync_blocker_summary.parent_resource_name #=> String
1034
+ # resp.sync_blocker_summary.latest_blockers #=> Array
1035
+ # resp.sync_blocker_summary.latest_blockers[0].id #=> String
1036
+ # resp.sync_blocker_summary.latest_blockers[0].type #=> String, one of "AUTOMATED"
1037
+ # resp.sync_blocker_summary.latest_blockers[0].status #=> String, one of "ACTIVE", "RESOLVED"
1038
+ # resp.sync_blocker_summary.latest_blockers[0].created_reason #=> String
1039
+ # resp.sync_blocker_summary.latest_blockers[0].created_at #=> Time
1040
+ # resp.sync_blocker_summary.latest_blockers[0].contexts #=> Array
1041
+ # resp.sync_blocker_summary.latest_blockers[0].contexts[0].key #=> String
1042
+ # resp.sync_blocker_summary.latest_blockers[0].contexts[0].value #=> String
1043
+ # resp.sync_blocker_summary.latest_blockers[0].resolved_reason #=> String
1044
+ # resp.sync_blocker_summary.latest_blockers[0].resolved_at #=> Time
1045
+ #
1046
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/GetSyncBlockerSummary AWS API Documentation
1047
+ #
1048
+ # @overload get_sync_blocker_summary(params = {})
1049
+ # @param [Hash] params ({})
1050
+ def get_sync_blocker_summary(params = {}, options = {})
1051
+ req = build_request(:get_sync_blocker_summary, params)
1052
+ req.send_request(options)
1053
+ end
1054
+
1055
+ # Returns details about a sync configuration, including the sync type
1056
+ # and resource name. A sync configuration allows the configuration to
1057
+ # sync (push and pull) changes from the remote repository for a
1058
+ # specified branch in a Git repository.
1059
+ #
1060
+ # @option params [required, String] :sync_type
1061
+ # The sync type for the sync configuration for which you want to
1062
+ # retrieve information.
1063
+ #
1064
+ # @option params [required, String] :resource_name
1065
+ # The name of the Amazon Web Services resource for the sync
1066
+ # configuration for which you want to retrieve information.
1067
+ #
1068
+ # @return [Types::GetSyncConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1069
+ #
1070
+ # * {Types::GetSyncConfigurationOutput#sync_configuration #sync_configuration} => Types::SyncConfiguration
1071
+ #
1072
+ # @example Request syntax with placeholder values
1073
+ #
1074
+ # resp = client.get_sync_configuration({
1075
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
1076
+ # resource_name: "ResourceName", # required
1077
+ # })
1078
+ #
1079
+ # @example Response structure
1080
+ #
1081
+ # resp.sync_configuration.branch #=> String
1082
+ # resp.sync_configuration.config_file #=> String
1083
+ # resp.sync_configuration.owner_id #=> String
1084
+ # resp.sync_configuration.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
1085
+ # resp.sync_configuration.repository_link_id #=> String
1086
+ # resp.sync_configuration.repository_name #=> String
1087
+ # resp.sync_configuration.resource_name #=> String
1088
+ # resp.sync_configuration.role_arn #=> String
1089
+ # resp.sync_configuration.sync_type #=> String, one of "CFN_STACK_SYNC"
1090
+ # resp.sync_configuration.publish_deployment_status #=> String, one of "ENABLED", "DISABLED"
1091
+ # resp.sync_configuration.trigger_resource_update_on #=> String, one of "ANY_CHANGE", "FILE_CHANGE"
1092
+ #
1093
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/GetSyncConfiguration AWS API Documentation
1094
+ #
1095
+ # @overload get_sync_configuration(params = {})
1096
+ # @param [Hash] params ({})
1097
+ def get_sync_configuration(params = {}, options = {})
1098
+ req = build_request(:get_sync_configuration, params)
1099
+ req.send_request(options)
1100
+ end
1101
+
1102
+ # Lists the connections associated with your account.
1103
+ #
1104
+ # @option params [String] :provider_type_filter
1105
+ # Filters the list of connections to those associated with a specified
1106
+ # provider, such as Bitbucket.
1107
+ #
1108
+ # @option params [String] :host_arn_filter
1109
+ # Filters the list of connections to those associated with a specified
1110
+ # host.
1111
+ #
1112
+ # @option params [Integer] :max_results
1113
+ # The maximum number of results to return in a single call. To retrieve
1114
+ # the remaining results, make another call with the returned `nextToken`
1115
+ # value.
1116
+ #
1117
+ # @option params [String] :next_token
1118
+ # The token that was returned from the previous `ListConnections` call,
1119
+ # which can be used to return the next set of connections in the list.
1120
+ #
1121
+ # @return [Types::ListConnectionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1122
+ #
1123
+ # * {Types::ListConnectionsOutput#connections #connections} => Array&lt;Types::Connection&gt;
1124
+ # * {Types::ListConnectionsOutput#next_token #next_token} => String
1125
+ #
1126
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1127
+ #
1128
+ # @example Request syntax with placeholder values
1129
+ #
1130
+ # resp = client.list_connections({
1131
+ # provider_type_filter: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer, GitLab, GitLabSelfManaged
1132
+ # host_arn_filter: "HostArn",
1133
+ # max_results: 1,
1134
+ # next_token: "NextToken",
1135
+ # })
1136
+ #
1137
+ # @example Response structure
1138
+ #
1139
+ # resp.connections #=> Array
1140
+ # resp.connections[0].connection_name #=> String
1141
+ # resp.connections[0].connection_arn #=> String
1142
+ # resp.connections[0].provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
1143
+ # resp.connections[0].owner_account_id #=> String
1144
+ # resp.connections[0].connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
1145
+ # resp.connections[0].host_arn #=> String
1146
+ # resp.next_token #=> String
1147
+ #
1148
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/ListConnections AWS API Documentation
1149
+ #
1150
+ # @overload list_connections(params = {})
1151
+ # @param [Hash] params ({})
1152
+ def list_connections(params = {}, options = {})
1153
+ req = build_request(:list_connections, params)
1154
+ req.send_request(options)
1155
+ end
1156
+
1157
+ # Lists the hosts associated with your account.
1158
+ #
1159
+ # @option params [Integer] :max_results
1160
+ # The maximum number of results to return in a single call. To retrieve
1161
+ # the remaining results, make another call with the returned `nextToken`
1162
+ # value.
1163
+ #
1164
+ # @option params [String] :next_token
1165
+ # The token that was returned from the previous `ListHosts` call, which
1166
+ # can be used to return the next set of hosts in the list.
1167
+ #
1168
+ # @return [Types::ListHostsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1169
+ #
1170
+ # * {Types::ListHostsOutput#hosts #hosts} => Array&lt;Types::Host&gt;
1171
+ # * {Types::ListHostsOutput#next_token #next_token} => String
1172
+ #
1173
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1174
+ #
1175
+ # @example Request syntax with placeholder values
1176
+ #
1177
+ # resp = client.list_hosts({
1178
+ # max_results: 1,
1179
+ # next_token: "NextToken",
1180
+ # })
1181
+ #
1182
+ # @example Response structure
1183
+ #
1184
+ # resp.hosts #=> Array
1185
+ # resp.hosts[0].name #=> String
1186
+ # resp.hosts[0].host_arn #=> String
1187
+ # resp.hosts[0].provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
1188
+ # resp.hosts[0].provider_endpoint #=> String
1189
+ # resp.hosts[0].vpc_configuration.vpc_id #=> String
1190
+ # resp.hosts[0].vpc_configuration.subnet_ids #=> Array
1191
+ # resp.hosts[0].vpc_configuration.subnet_ids[0] #=> String
1192
+ # resp.hosts[0].vpc_configuration.security_group_ids #=> Array
1193
+ # resp.hosts[0].vpc_configuration.security_group_ids[0] #=> String
1194
+ # resp.hosts[0].vpc_configuration.tls_certificate #=> String
1195
+ # resp.hosts[0].status #=> String
1196
+ # resp.hosts[0].status_message #=> String
1197
+ # resp.next_token #=> String
1198
+ #
1199
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/ListHosts AWS API Documentation
1200
+ #
1201
+ # @overload list_hosts(params = {})
1202
+ # @param [Hash] params ({})
1203
+ def list_hosts(params = {}, options = {})
1204
+ req = build_request(:list_hosts, params)
1205
+ req.send_request(options)
1206
+ end
1207
+
1208
+ # Lists the repository links created for connections in your account.
1209
+ #
1210
+ # @option params [Integer] :max_results
1211
+ # A non-zero, non-negative integer used to limit the number of returned
1212
+ # results.
1213
+ #
1214
+ # @option params [String] :next_token
1215
+ # An enumeration token that, when provided in a request, returns the
1216
+ # next batch of the results.
1217
+ #
1218
+ # @return [Types::ListRepositoryLinksOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1219
+ #
1220
+ # * {Types::ListRepositoryLinksOutput#repository_links #repository_links} => Array&lt;Types::RepositoryLinkInfo&gt;
1221
+ # * {Types::ListRepositoryLinksOutput#next_token #next_token} => String
1222
+ #
1223
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1224
+ #
1225
+ # @example Request syntax with placeholder values
1226
+ #
1227
+ # resp = client.list_repository_links({
1228
+ # max_results: 1,
1229
+ # next_token: "SharpNextToken",
1230
+ # })
1231
+ #
1232
+ # @example Response structure
1233
+ #
1234
+ # resp.repository_links #=> Array
1235
+ # resp.repository_links[0].connection_arn #=> String
1236
+ # resp.repository_links[0].encryption_key_arn #=> String
1237
+ # resp.repository_links[0].owner_id #=> String
1238
+ # resp.repository_links[0].provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
1239
+ # resp.repository_links[0].repository_link_arn #=> String
1240
+ # resp.repository_links[0].repository_link_id #=> String
1241
+ # resp.repository_links[0].repository_name #=> String
1242
+ # resp.next_token #=> String
1243
+ #
1244
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/ListRepositoryLinks AWS API Documentation
1245
+ #
1246
+ # @overload list_repository_links(params = {})
1247
+ # @param [Hash] params ({})
1248
+ def list_repository_links(params = {}, options = {})
1249
+ req = build_request(:list_repository_links, params)
1250
+ req.send_request(options)
1251
+ end
1252
+
1253
+ # Lists the repository sync definitions for repository links in your
1254
+ # account.
1255
+ #
1256
+ # @option params [required, String] :repository_link_id
1257
+ # The ID of the repository link for the sync definition for which you
1258
+ # want to retrieve information.
1259
+ #
1260
+ # @option params [required, String] :sync_type
1261
+ # The sync type of the repository link for the the sync definition for
1262
+ # which you want to retrieve information.
1263
+ #
1264
+ # @return [Types::ListRepositorySyncDefinitionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1265
+ #
1266
+ # * {Types::ListRepositorySyncDefinitionsOutput#repository_sync_definitions #repository_sync_definitions} => Array&lt;Types::RepositorySyncDefinition&gt;
1267
+ # * {Types::ListRepositorySyncDefinitionsOutput#next_token #next_token} => String
1268
+ #
1269
+ # @example Request syntax with placeholder values
1270
+ #
1271
+ # resp = client.list_repository_sync_definitions({
1272
+ # repository_link_id: "RepositoryLinkId", # required
1273
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
1274
+ # })
1275
+ #
1276
+ # @example Response structure
1277
+ #
1278
+ # resp.repository_sync_definitions #=> Array
1279
+ # resp.repository_sync_definitions[0].branch #=> String
1280
+ # resp.repository_sync_definitions[0].directory #=> String
1281
+ # resp.repository_sync_definitions[0].parent #=> String
1282
+ # resp.repository_sync_definitions[0].target #=> String
1283
+ # resp.next_token #=> String
1284
+ #
1285
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/ListRepositorySyncDefinitions AWS API Documentation
1286
+ #
1287
+ # @overload list_repository_sync_definitions(params = {})
1288
+ # @param [Hash] params ({})
1289
+ def list_repository_sync_definitions(params = {}, options = {})
1290
+ req = build_request(:list_repository_sync_definitions, params)
1291
+ req.send_request(options)
1292
+ end
1293
+
1294
+ # Returns a list of sync configurations for a specified repository.
1295
+ #
1296
+ # @option params [Integer] :max_results
1297
+ # A non-zero, non-negative integer used to limit the number of returned
1298
+ # results.
1299
+ #
1300
+ # @option params [String] :next_token
1301
+ # An enumeration token that allows the operation to batch the results of
1302
+ # the operation.
1303
+ #
1304
+ # @option params [required, String] :repository_link_id
1305
+ # The ID of the repository link for the requested list of sync
1306
+ # configurations.
1307
+ #
1308
+ # @option params [required, String] :sync_type
1309
+ # The sync type for the requested list of sync configurations.
1310
+ #
1311
+ # @return [Types::ListSyncConfigurationsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1312
+ #
1313
+ # * {Types::ListSyncConfigurationsOutput#sync_configurations #sync_configurations} => Array&lt;Types::SyncConfiguration&gt;
1314
+ # * {Types::ListSyncConfigurationsOutput#next_token #next_token} => String
1315
+ #
1316
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1317
+ #
1318
+ # @example Request syntax with placeholder values
1319
+ #
1320
+ # resp = client.list_sync_configurations({
1321
+ # max_results: 1,
1322
+ # next_token: "SharpNextToken",
1323
+ # repository_link_id: "RepositoryLinkId", # required
1324
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
1325
+ # })
1326
+ #
1327
+ # @example Response structure
1328
+ #
1329
+ # resp.sync_configurations #=> Array
1330
+ # resp.sync_configurations[0].branch #=> String
1331
+ # resp.sync_configurations[0].config_file #=> String
1332
+ # resp.sync_configurations[0].owner_id #=> String
1333
+ # resp.sync_configurations[0].provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
1334
+ # resp.sync_configurations[0].repository_link_id #=> String
1335
+ # resp.sync_configurations[0].repository_name #=> String
1336
+ # resp.sync_configurations[0].resource_name #=> String
1337
+ # resp.sync_configurations[0].role_arn #=> String
1338
+ # resp.sync_configurations[0].sync_type #=> String, one of "CFN_STACK_SYNC"
1339
+ # resp.sync_configurations[0].publish_deployment_status #=> String, one of "ENABLED", "DISABLED"
1340
+ # resp.sync_configurations[0].trigger_resource_update_on #=> String, one of "ANY_CHANGE", "FILE_CHANGE"
1341
+ # resp.next_token #=> String
1342
+ #
1343
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/ListSyncConfigurations AWS API Documentation
1344
+ #
1345
+ # @overload list_sync_configurations(params = {})
1346
+ # @param [Hash] params ({})
1347
+ def list_sync_configurations(params = {}, options = {})
1348
+ req = build_request(:list_sync_configurations, params)
1349
+ req.send_request(options)
1350
+ end
1351
+
1352
+ # Gets the set of key-value pairs (metadata) that are used to manage the
1353
+ # resource.
1354
+ #
1355
+ # @option params [required, String] :resource_arn
1356
+ # The Amazon Resource Name (ARN) of the resource for which you want to
1357
+ # get information about tags, if any.
1358
+ #
1359
+ # @return [Types::ListTagsForResourceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1360
+ #
1361
+ # * {Types::ListTagsForResourceOutput#tags #tags} => Array&lt;Types::Tag&gt;
1362
+ #
1363
+ # @example Request syntax with placeholder values
1364
+ #
1365
+ # resp = client.list_tags_for_resource({
1366
+ # resource_arn: "AmazonResourceName", # required
1367
+ # })
1368
+ #
1369
+ # @example Response structure
1370
+ #
1371
+ # resp.tags #=> Array
1372
+ # resp.tags[0].key #=> String
1373
+ # resp.tags[0].value #=> String
1374
+ #
1375
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/ListTagsForResource AWS API Documentation
1376
+ #
1377
+ # @overload list_tags_for_resource(params = {})
1378
+ # @param [Hash] params ({})
1379
+ def list_tags_for_resource(params = {}, options = {})
1380
+ req = build_request(:list_tags_for_resource, params)
1381
+ req.send_request(options)
1382
+ end
1383
+
1384
+ # Adds to or modifies the tags of the given resource. Tags are metadata
1385
+ # that can be used to manage a resource.
1386
+ #
1387
+ # @option params [required, String] :resource_arn
1388
+ # The Amazon Resource Name (ARN) of the resource to which you want to
1389
+ # add or update tags.
1390
+ #
1391
+ # @option params [required, Array<Types::Tag>] :tags
1392
+ # The tags you want to modify or add to the resource.
1393
+ #
1394
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1395
+ #
1396
+ # @example Request syntax with placeholder values
1397
+ #
1398
+ # resp = client.tag_resource({
1399
+ # resource_arn: "AmazonResourceName", # required
1400
+ # tags: [ # required
1401
+ # {
1402
+ # key: "TagKey", # required
1403
+ # value: "TagValue", # required
1404
+ # },
1405
+ # ],
1406
+ # })
1407
+ #
1408
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/TagResource AWS API Documentation
1409
+ #
1410
+ # @overload tag_resource(params = {})
1411
+ # @param [Hash] params ({})
1412
+ def tag_resource(params = {}, options = {})
1413
+ req = build_request(:tag_resource, params)
1414
+ req.send_request(options)
1415
+ end
1416
+
1417
+ # Removes tags from an Amazon Web Services resource.
1418
+ #
1419
+ # @option params [required, String] :resource_arn
1420
+ # The Amazon Resource Name (ARN) of the resource to remove tags from.
1421
+ #
1422
+ # @option params [required, Array<String>] :tag_keys
1423
+ # The list of keys for the tags to be removed from the resource.
1424
+ #
1425
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1426
+ #
1427
+ # @example Request syntax with placeholder values
1428
+ #
1429
+ # resp = client.untag_resource({
1430
+ # resource_arn: "AmazonResourceName", # required
1431
+ # tag_keys: ["TagKey"], # required
1432
+ # })
1433
+ #
1434
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/UntagResource AWS API Documentation
1435
+ #
1436
+ # @overload untag_resource(params = {})
1437
+ # @param [Hash] params ({})
1438
+ def untag_resource(params = {}, options = {})
1439
+ req = build_request(:untag_resource, params)
1440
+ req.send_request(options)
1441
+ end
1442
+
1443
+ # Updates a specified host with the provided configurations.
1444
+ #
1445
+ # @option params [required, String] :host_arn
1446
+ # The Amazon Resource Name (ARN) of the host to be updated.
1447
+ #
1448
+ # @option params [String] :provider_endpoint
1449
+ # The URL or endpoint of the host to be updated.
1450
+ #
1451
+ # @option params [Types::VpcConfiguration] :vpc_configuration
1452
+ # The VPC configuration of the host to be updated. A VPC must be
1453
+ # configured and the infrastructure to be represented by the host must
1454
+ # already be connected to the VPC.
1455
+ #
1456
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1457
+ #
1458
+ # @example Request syntax with placeholder values
1459
+ #
1460
+ # resp = client.update_host({
1461
+ # host_arn: "HostArn", # required
1462
+ # provider_endpoint: "Url",
1463
+ # vpc_configuration: {
1464
+ # vpc_id: "VpcId", # required
1465
+ # subnet_ids: ["SubnetId"], # required
1466
+ # security_group_ids: ["SecurityGroupId"], # required
1467
+ # tls_certificate: "TlsCertificate",
1468
+ # },
1469
+ # })
1470
+ #
1471
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/UpdateHost AWS API Documentation
1472
+ #
1473
+ # @overload update_host(params = {})
1474
+ # @param [Hash] params ({})
1475
+ def update_host(params = {}, options = {})
1476
+ req = build_request(:update_host, params)
1477
+ req.send_request(options)
1478
+ end
1479
+
1480
+ # Updates the association between your connection and a specified
1481
+ # external Git repository. A repository link allows Git sync to monitor
1482
+ # and sync changes to files in a specified Git repository.
1483
+ #
1484
+ # @option params [String] :connection_arn
1485
+ # The Amazon Resource Name (ARN) of the connection for the repository
1486
+ # link to be updated. The updated connection ARN must have the same
1487
+ # providerType (such as GitHub) as the original connection ARN for the
1488
+ # repo link.
1489
+ #
1490
+ # @option params [String] :encryption_key_arn
1491
+ # The Amazon Resource Name (ARN) of the encryption key for the
1492
+ # repository link to be updated.
1493
+ #
1494
+ # @option params [required, String] :repository_link_id
1495
+ # The ID of the repository link to be updated.
1496
+ #
1497
+ # @return [Types::UpdateRepositoryLinkOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1498
+ #
1499
+ # * {Types::UpdateRepositoryLinkOutput#repository_link_info #repository_link_info} => Types::RepositoryLinkInfo
1500
+ #
1501
+ # @example Request syntax with placeholder values
1502
+ #
1503
+ # resp = client.update_repository_link({
1504
+ # connection_arn: "ConnectionArn",
1505
+ # encryption_key_arn: "KmsKeyArn",
1506
+ # repository_link_id: "RepositoryLinkId", # required
1507
+ # })
1508
+ #
1509
+ # @example Response structure
1510
+ #
1511
+ # resp.repository_link_info.connection_arn #=> String
1512
+ # resp.repository_link_info.encryption_key_arn #=> String
1513
+ # resp.repository_link_info.owner_id #=> String
1514
+ # resp.repository_link_info.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
1515
+ # resp.repository_link_info.repository_link_arn #=> String
1516
+ # resp.repository_link_info.repository_link_id #=> String
1517
+ # resp.repository_link_info.repository_name #=> String
1518
+ #
1519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/UpdateRepositoryLink AWS API Documentation
1520
+ #
1521
+ # @overload update_repository_link(params = {})
1522
+ # @param [Hash] params ({})
1523
+ def update_repository_link(params = {}, options = {})
1524
+ req = build_request(:update_repository_link, params)
1525
+ req.send_request(options)
1526
+ end
1527
+
1528
+ # Allows you to update the status of a sync blocker, resolving the
1529
+ # blocker and allowing syncing to continue.
1530
+ #
1531
+ # @option params [required, String] :id
1532
+ # The ID of the sync blocker to be updated.
1533
+ #
1534
+ # @option params [required, String] :sync_type
1535
+ # The sync type of the sync blocker to be updated.
1536
+ #
1537
+ # @option params [required, String] :resource_name
1538
+ # The name of the resource for the sync blocker to be updated.
1539
+ #
1540
+ # @option params [required, String] :resolved_reason
1541
+ # The reason for resolving the sync blocker.
1542
+ #
1543
+ # @return [Types::UpdateSyncBlockerOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1544
+ #
1545
+ # * {Types::UpdateSyncBlockerOutput#resource_name #resource_name} => String
1546
+ # * {Types::UpdateSyncBlockerOutput#parent_resource_name #parent_resource_name} => String
1547
+ # * {Types::UpdateSyncBlockerOutput#sync_blocker #sync_blocker} => Types::SyncBlocker
1548
+ #
1549
+ # @example Request syntax with placeholder values
1550
+ #
1551
+ # resp = client.update_sync_blocker({
1552
+ # id: "Id", # required
1553
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
1554
+ # resource_name: "ResourceName", # required
1555
+ # resolved_reason: "ResolvedReason", # required
1556
+ # })
1557
+ #
1558
+ # @example Response structure
1559
+ #
1560
+ # resp.resource_name #=> String
1561
+ # resp.parent_resource_name #=> String
1562
+ # resp.sync_blocker.id #=> String
1563
+ # resp.sync_blocker.type #=> String, one of "AUTOMATED"
1564
+ # resp.sync_blocker.status #=> String, one of "ACTIVE", "RESOLVED"
1565
+ # resp.sync_blocker.created_reason #=> String
1566
+ # resp.sync_blocker.created_at #=> Time
1567
+ # resp.sync_blocker.contexts #=> Array
1568
+ # resp.sync_blocker.contexts[0].key #=> String
1569
+ # resp.sync_blocker.contexts[0].value #=> String
1570
+ # resp.sync_blocker.resolved_reason #=> String
1571
+ # resp.sync_blocker.resolved_at #=> Time
1572
+ #
1573
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/UpdateSyncBlocker AWS API Documentation
1574
+ #
1575
+ # @overload update_sync_blocker(params = {})
1576
+ # @param [Hash] params ({})
1577
+ def update_sync_blocker(params = {}, options = {})
1578
+ req = build_request(:update_sync_blocker, params)
1579
+ req.send_request(options)
1580
+ end
1581
+
1582
+ # Updates the sync configuration for your connection and a specified
1583
+ # external Git repository.
1584
+ #
1585
+ # @option params [String] :branch
1586
+ # The branch for the sync configuration to be updated.
1587
+ #
1588
+ # @option params [String] :config_file
1589
+ # The configuration file for the sync configuration to be updated.
1590
+ #
1591
+ # @option params [String] :repository_link_id
1592
+ # The ID of the repository link for the sync configuration to be
1593
+ # updated.
1594
+ #
1595
+ # @option params [required, String] :resource_name
1596
+ # The name of the Amazon Web Services resource for the sync
1597
+ # configuration to be updated.
1598
+ #
1599
+ # @option params [String] :role_arn
1600
+ # The ARN of the IAM role for the sync configuration to be updated.
1601
+ #
1602
+ # @option params [required, String] :sync_type
1603
+ # The sync type for the sync configuration to be updated.
1604
+ #
1605
+ # @option params [String] :publish_deployment_status
1606
+ # Whether to enable or disable publishing of deployment status to source
1607
+ # providers.
1608
+ #
1609
+ # @option params [String] :trigger_resource_update_on
1610
+ # When to trigger Git sync to begin the stack update.
1611
+ #
1612
+ # @return [Types::UpdateSyncConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1613
+ #
1614
+ # * {Types::UpdateSyncConfigurationOutput#sync_configuration #sync_configuration} => Types::SyncConfiguration
1615
+ #
1616
+ # @example Request syntax with placeholder values
1617
+ #
1618
+ # resp = client.update_sync_configuration({
1619
+ # branch: "BranchName",
1620
+ # config_file: "DeploymentFilePath",
1621
+ # repository_link_id: "RepositoryLinkId",
1622
+ # resource_name: "ResourceName", # required
1623
+ # role_arn: "IamRoleArn",
1624
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
1625
+ # publish_deployment_status: "ENABLED", # accepts ENABLED, DISABLED
1626
+ # trigger_resource_update_on: "ANY_CHANGE", # accepts ANY_CHANGE, FILE_CHANGE
1627
+ # })
1628
+ #
1629
+ # @example Response structure
1630
+ #
1631
+ # resp.sync_configuration.branch #=> String
1632
+ # resp.sync_configuration.config_file #=> String
1633
+ # resp.sync_configuration.owner_id #=> String
1634
+ # resp.sync_configuration.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab", "GitLabSelfManaged"
1635
+ # resp.sync_configuration.repository_link_id #=> String
1636
+ # resp.sync_configuration.repository_name #=> String
1637
+ # resp.sync_configuration.resource_name #=> String
1638
+ # resp.sync_configuration.role_arn #=> String
1639
+ # resp.sync_configuration.sync_type #=> String, one of "CFN_STACK_SYNC"
1640
+ # resp.sync_configuration.publish_deployment_status #=> String, one of "ENABLED", "DISABLED"
1641
+ # resp.sync_configuration.trigger_resource_update_on #=> String, one of "ANY_CHANGE", "FILE_CHANGE"
1642
+ #
1643
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/UpdateSyncConfiguration AWS API Documentation
1644
+ #
1645
+ # @overload update_sync_configuration(params = {})
1646
+ # @param [Hash] params ({})
1647
+ def update_sync_configuration(params = {}, options = {})
1648
+ req = build_request(:update_sync_configuration, params)
1649
+ req.send_request(options)
1650
+ end
1651
+
1652
+ # @!endgroup
1653
+
1654
+ # @param params ({})
1655
+ # @api private
1656
+ def build_request(operation_name, params = {})
1657
+ handlers = @handlers.for(operation_name)
1658
+ context = Seahorse::Client::RequestContext.new(
1659
+ operation_name: operation_name,
1660
+ operation: config.api.operation(operation_name),
1661
+ client: self,
1662
+ params: params,
1663
+ config: config)
1664
+ context[:gem_name] = 'aws-sdk-codeconnections'
1665
+ context[:gem_version] = '1.0.0'
1666
+ Seahorse::Client::Request.new(handlers, context)
1667
+ end
1668
+
1669
+ # @api private
1670
+ # @deprecated
1671
+ def waiter_names
1672
+ []
1673
+ end
1674
+
1675
+ class << self
1676
+
1677
+ # @api private
1678
+ attr_reader :identifier
1679
+
1680
+ # @api private
1681
+ def errors_module
1682
+ Errors
1683
+ end
1684
+
1685
+ end
1686
+ end
1687
+ end