aws-sdk-codestarconnections 1.36.0 → 1.37.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.
@@ -40,6 +40,34 @@ module Aws::CodeStarconnections
40
40
  end
41
41
  end
42
42
 
43
+ class CreateRepositoryLink
44
+ def self.build(context)
45
+ unless context.config.regional_endpoint
46
+ endpoint = context.config.endpoint.to_s
47
+ end
48
+ Aws::CodeStarconnections::EndpointParameters.new(
49
+ region: context.config.region,
50
+ use_dual_stack: context.config.use_dualstack_endpoint,
51
+ use_fips: context.config.use_fips_endpoint,
52
+ endpoint: endpoint,
53
+ )
54
+ end
55
+ end
56
+
57
+ class CreateSyncConfiguration
58
+ def self.build(context)
59
+ unless context.config.regional_endpoint
60
+ endpoint = context.config.endpoint.to_s
61
+ end
62
+ Aws::CodeStarconnections::EndpointParameters.new(
63
+ region: context.config.region,
64
+ use_dual_stack: context.config.use_dualstack_endpoint,
65
+ use_fips: context.config.use_fips_endpoint,
66
+ endpoint: endpoint,
67
+ )
68
+ end
69
+ end
70
+
43
71
  class DeleteConnection
44
72
  def self.build(context)
45
73
  unless context.config.regional_endpoint
@@ -68,6 +96,34 @@ module Aws::CodeStarconnections
68
96
  end
69
97
  end
70
98
 
99
+ class DeleteRepositoryLink
100
+ def self.build(context)
101
+ unless context.config.regional_endpoint
102
+ endpoint = context.config.endpoint.to_s
103
+ end
104
+ Aws::CodeStarconnections::EndpointParameters.new(
105
+ region: context.config.region,
106
+ use_dual_stack: context.config.use_dualstack_endpoint,
107
+ use_fips: context.config.use_fips_endpoint,
108
+ endpoint: endpoint,
109
+ )
110
+ end
111
+ end
112
+
113
+ class DeleteSyncConfiguration
114
+ def self.build(context)
115
+ unless context.config.regional_endpoint
116
+ endpoint = context.config.endpoint.to_s
117
+ end
118
+ Aws::CodeStarconnections::EndpointParameters.new(
119
+ region: context.config.region,
120
+ use_dual_stack: context.config.use_dualstack_endpoint,
121
+ use_fips: context.config.use_fips_endpoint,
122
+ endpoint: endpoint,
123
+ )
124
+ end
125
+ end
126
+
71
127
  class GetConnection
72
128
  def self.build(context)
73
129
  unless context.config.regional_endpoint
@@ -96,6 +152,76 @@ module Aws::CodeStarconnections
96
152
  end
97
153
  end
98
154
 
155
+ class GetRepositoryLink
156
+ def self.build(context)
157
+ unless context.config.regional_endpoint
158
+ endpoint = context.config.endpoint.to_s
159
+ end
160
+ Aws::CodeStarconnections::EndpointParameters.new(
161
+ region: context.config.region,
162
+ use_dual_stack: context.config.use_dualstack_endpoint,
163
+ use_fips: context.config.use_fips_endpoint,
164
+ endpoint: endpoint,
165
+ )
166
+ end
167
+ end
168
+
169
+ class GetRepositorySyncStatus
170
+ def self.build(context)
171
+ unless context.config.regional_endpoint
172
+ endpoint = context.config.endpoint.to_s
173
+ end
174
+ Aws::CodeStarconnections::EndpointParameters.new(
175
+ region: context.config.region,
176
+ use_dual_stack: context.config.use_dualstack_endpoint,
177
+ use_fips: context.config.use_fips_endpoint,
178
+ endpoint: endpoint,
179
+ )
180
+ end
181
+ end
182
+
183
+ class GetResourceSyncStatus
184
+ def self.build(context)
185
+ unless context.config.regional_endpoint
186
+ endpoint = context.config.endpoint.to_s
187
+ end
188
+ Aws::CodeStarconnections::EndpointParameters.new(
189
+ region: context.config.region,
190
+ use_dual_stack: context.config.use_dualstack_endpoint,
191
+ use_fips: context.config.use_fips_endpoint,
192
+ endpoint: endpoint,
193
+ )
194
+ end
195
+ end
196
+
197
+ class GetSyncBlockerSummary
198
+ def self.build(context)
199
+ unless context.config.regional_endpoint
200
+ endpoint = context.config.endpoint.to_s
201
+ end
202
+ Aws::CodeStarconnections::EndpointParameters.new(
203
+ region: context.config.region,
204
+ use_dual_stack: context.config.use_dualstack_endpoint,
205
+ use_fips: context.config.use_fips_endpoint,
206
+ endpoint: endpoint,
207
+ )
208
+ end
209
+ end
210
+
211
+ class GetSyncConfiguration
212
+ def self.build(context)
213
+ unless context.config.regional_endpoint
214
+ endpoint = context.config.endpoint.to_s
215
+ end
216
+ Aws::CodeStarconnections::EndpointParameters.new(
217
+ region: context.config.region,
218
+ use_dual_stack: context.config.use_dualstack_endpoint,
219
+ use_fips: context.config.use_fips_endpoint,
220
+ endpoint: endpoint,
221
+ )
222
+ end
223
+ end
224
+
99
225
  class ListConnections
100
226
  def self.build(context)
101
227
  unless context.config.regional_endpoint
@@ -124,6 +250,48 @@ module Aws::CodeStarconnections
124
250
  end
125
251
  end
126
252
 
253
+ class ListRepositoryLinks
254
+ def self.build(context)
255
+ unless context.config.regional_endpoint
256
+ endpoint = context.config.endpoint.to_s
257
+ end
258
+ Aws::CodeStarconnections::EndpointParameters.new(
259
+ region: context.config.region,
260
+ use_dual_stack: context.config.use_dualstack_endpoint,
261
+ use_fips: context.config.use_fips_endpoint,
262
+ endpoint: endpoint,
263
+ )
264
+ end
265
+ end
266
+
267
+ class ListRepositorySyncDefinitions
268
+ def self.build(context)
269
+ unless context.config.regional_endpoint
270
+ endpoint = context.config.endpoint.to_s
271
+ end
272
+ Aws::CodeStarconnections::EndpointParameters.new(
273
+ region: context.config.region,
274
+ use_dual_stack: context.config.use_dualstack_endpoint,
275
+ use_fips: context.config.use_fips_endpoint,
276
+ endpoint: endpoint,
277
+ )
278
+ end
279
+ end
280
+
281
+ class ListSyncConfigurations
282
+ def self.build(context)
283
+ unless context.config.regional_endpoint
284
+ endpoint = context.config.endpoint.to_s
285
+ end
286
+ Aws::CodeStarconnections::EndpointParameters.new(
287
+ region: context.config.region,
288
+ use_dual_stack: context.config.use_dualstack_endpoint,
289
+ use_fips: context.config.use_fips_endpoint,
290
+ endpoint: endpoint,
291
+ )
292
+ end
293
+ end
294
+
127
295
  class ListTagsForResource
128
296
  def self.build(context)
129
297
  unless context.config.regional_endpoint
@@ -180,5 +348,47 @@ module Aws::CodeStarconnections
180
348
  end
181
349
  end
182
350
 
351
+ class UpdateRepositoryLink
352
+ def self.build(context)
353
+ unless context.config.regional_endpoint
354
+ endpoint = context.config.endpoint.to_s
355
+ end
356
+ Aws::CodeStarconnections::EndpointParameters.new(
357
+ region: context.config.region,
358
+ use_dual_stack: context.config.use_dualstack_endpoint,
359
+ use_fips: context.config.use_fips_endpoint,
360
+ endpoint: endpoint,
361
+ )
362
+ end
363
+ end
364
+
365
+ class UpdateSyncBlocker
366
+ def self.build(context)
367
+ unless context.config.regional_endpoint
368
+ endpoint = context.config.endpoint.to_s
369
+ end
370
+ Aws::CodeStarconnections::EndpointParameters.new(
371
+ region: context.config.region,
372
+ use_dual_stack: context.config.use_dualstack_endpoint,
373
+ use_fips: context.config.use_fips_endpoint,
374
+ endpoint: endpoint,
375
+ )
376
+ end
377
+ end
378
+
379
+ class UpdateSyncConfiguration
380
+ def self.build(context)
381
+ unless context.config.regional_endpoint
382
+ endpoint = context.config.endpoint.to_s
383
+ end
384
+ Aws::CodeStarconnections::EndpointParameters.new(
385
+ region: context.config.region,
386
+ use_dual_stack: context.config.use_dualstack_endpoint,
387
+ use_fips: context.config.use_fips_endpoint,
388
+ endpoint: endpoint,
389
+ )
390
+ end
391
+ end
392
+
183
393
  end
184
394
  end
@@ -27,11 +27,23 @@ module Aws::CodeStarconnections
27
27
  # See {Seahorse::Client::RequestContext} for more information.
28
28
  #
29
29
  # ## Error Classes
30
+ # * {AccessDeniedException}
31
+ # * {ConcurrentModificationException}
32
+ # * {ConditionalCheckFailedException}
30
33
  # * {ConflictException}
34
+ # * {InternalServerException}
35
+ # * {InvalidInputException}
31
36
  # * {LimitExceededException}
37
+ # * {ResourceAlreadyExistsException}
32
38
  # * {ResourceNotFoundException}
33
39
  # * {ResourceUnavailableException}
40
+ # * {RetryLatestCommitFailedException}
41
+ # * {SyncBlockerDoesNotExistException}
42
+ # * {SyncConfigurationStillExistsException}
43
+ # * {ThrottlingException}
34
44
  # * {UnsupportedOperationException}
45
+ # * {UnsupportedProviderTypeException}
46
+ # * {UpdateOutOfSyncException}
35
47
  #
36
48
  # Additionally, error classes are dynamically generated for service errors based on the error code
37
49
  # if they are not defined above.
@@ -39,6 +51,51 @@ module Aws::CodeStarconnections
39
51
 
40
52
  extend Aws::Errors::DynamicErrors
41
53
 
54
+ class AccessDeniedException < ServiceError
55
+
56
+ # @param [Seahorse::Client::RequestContext] context
57
+ # @param [String] message
58
+ # @param [Aws::CodeStarconnections::Types::AccessDeniedException] data
59
+ def initialize(context, message, data = Aws::EmptyStructure.new)
60
+ super(context, message, data)
61
+ end
62
+
63
+ # @return [String]
64
+ def message
65
+ @message || @data[:message]
66
+ end
67
+ end
68
+
69
+ class ConcurrentModificationException < ServiceError
70
+
71
+ # @param [Seahorse::Client::RequestContext] context
72
+ # @param [String] message
73
+ # @param [Aws::CodeStarconnections::Types::ConcurrentModificationException] data
74
+ def initialize(context, message, data = Aws::EmptyStructure.new)
75
+ super(context, message, data)
76
+ end
77
+
78
+ # @return [String]
79
+ def message
80
+ @message || @data[:message]
81
+ end
82
+ end
83
+
84
+ class ConditionalCheckFailedException < ServiceError
85
+
86
+ # @param [Seahorse::Client::RequestContext] context
87
+ # @param [String] message
88
+ # @param [Aws::CodeStarconnections::Types::ConditionalCheckFailedException] data
89
+ def initialize(context, message, data = Aws::EmptyStructure.new)
90
+ super(context, message, data)
91
+ end
92
+
93
+ # @return [String]
94
+ def message
95
+ @message || @data[:message]
96
+ end
97
+ end
98
+
42
99
  class ConflictException < ServiceError
43
100
 
44
101
  # @param [Seahorse::Client::RequestContext] context
@@ -54,6 +111,36 @@ module Aws::CodeStarconnections
54
111
  end
55
112
  end
56
113
 
114
+ class InternalServerException < ServiceError
115
+
116
+ # @param [Seahorse::Client::RequestContext] context
117
+ # @param [String] message
118
+ # @param [Aws::CodeStarconnections::Types::InternalServerException] data
119
+ def initialize(context, message, data = Aws::EmptyStructure.new)
120
+ super(context, message, data)
121
+ end
122
+
123
+ # @return [String]
124
+ def message
125
+ @message || @data[:message]
126
+ end
127
+ end
128
+
129
+ class InvalidInputException < ServiceError
130
+
131
+ # @param [Seahorse::Client::RequestContext] context
132
+ # @param [String] message
133
+ # @param [Aws::CodeStarconnections::Types::InvalidInputException] data
134
+ def initialize(context, message, data = Aws::EmptyStructure.new)
135
+ super(context, message, data)
136
+ end
137
+
138
+ # @return [String]
139
+ def message
140
+ @message || @data[:message]
141
+ end
142
+ end
143
+
57
144
  class LimitExceededException < ServiceError
58
145
 
59
146
  # @param [Seahorse::Client::RequestContext] context
@@ -69,6 +156,21 @@ module Aws::CodeStarconnections
69
156
  end
70
157
  end
71
158
 
159
+ class ResourceAlreadyExistsException < ServiceError
160
+
161
+ # @param [Seahorse::Client::RequestContext] context
162
+ # @param [String] message
163
+ # @param [Aws::CodeStarconnections::Types::ResourceAlreadyExistsException] data
164
+ def initialize(context, message, data = Aws::EmptyStructure.new)
165
+ super(context, message, data)
166
+ end
167
+
168
+ # @return [String]
169
+ def message
170
+ @message || @data[:message]
171
+ end
172
+ end
173
+
72
174
  class ResourceNotFoundException < ServiceError
73
175
 
74
176
  # @param [Seahorse::Client::RequestContext] context
@@ -99,6 +201,66 @@ module Aws::CodeStarconnections
99
201
  end
100
202
  end
101
203
 
204
+ class RetryLatestCommitFailedException < ServiceError
205
+
206
+ # @param [Seahorse::Client::RequestContext] context
207
+ # @param [String] message
208
+ # @param [Aws::CodeStarconnections::Types::RetryLatestCommitFailedException] data
209
+ def initialize(context, message, data = Aws::EmptyStructure.new)
210
+ super(context, message, data)
211
+ end
212
+
213
+ # @return [String]
214
+ def message
215
+ @message || @data[:message]
216
+ end
217
+ end
218
+
219
+ class SyncBlockerDoesNotExistException < ServiceError
220
+
221
+ # @param [Seahorse::Client::RequestContext] context
222
+ # @param [String] message
223
+ # @param [Aws::CodeStarconnections::Types::SyncBlockerDoesNotExistException] data
224
+ def initialize(context, message, data = Aws::EmptyStructure.new)
225
+ super(context, message, data)
226
+ end
227
+
228
+ # @return [String]
229
+ def message
230
+ @message || @data[:message]
231
+ end
232
+ end
233
+
234
+ class SyncConfigurationStillExistsException < ServiceError
235
+
236
+ # @param [Seahorse::Client::RequestContext] context
237
+ # @param [String] message
238
+ # @param [Aws::CodeStarconnections::Types::SyncConfigurationStillExistsException] data
239
+ def initialize(context, message, data = Aws::EmptyStructure.new)
240
+ super(context, message, data)
241
+ end
242
+
243
+ # @return [String]
244
+ def message
245
+ @message || @data[:message]
246
+ end
247
+ end
248
+
249
+ class ThrottlingException < ServiceError
250
+
251
+ # @param [Seahorse::Client::RequestContext] context
252
+ # @param [String] message
253
+ # @param [Aws::CodeStarconnections::Types::ThrottlingException] data
254
+ def initialize(context, message, data = Aws::EmptyStructure.new)
255
+ super(context, message, data)
256
+ end
257
+
258
+ # @return [String]
259
+ def message
260
+ @message || @data[:message]
261
+ end
262
+ end
263
+
102
264
  class UnsupportedOperationException < ServiceError
103
265
 
104
266
  # @param [Seahorse::Client::RequestContext] context
@@ -114,5 +276,35 @@ module Aws::CodeStarconnections
114
276
  end
115
277
  end
116
278
 
279
+ class UnsupportedProviderTypeException < ServiceError
280
+
281
+ # @param [Seahorse::Client::RequestContext] context
282
+ # @param [String] message
283
+ # @param [Aws::CodeStarconnections::Types::UnsupportedProviderTypeException] data
284
+ def initialize(context, message, data = Aws::EmptyStructure.new)
285
+ super(context, message, data)
286
+ end
287
+
288
+ # @return [String]
289
+ def message
290
+ @message || @data[:message]
291
+ end
292
+ end
293
+
294
+ class UpdateOutOfSyncException < ServiceError
295
+
296
+ # @param [Seahorse::Client::RequestContext] context
297
+ # @param [String] message
298
+ # @param [Aws::CodeStarconnections::Types::UpdateOutOfSyncException] data
299
+ def initialize(context, message, data = Aws::EmptyStructure.new)
300
+ super(context, message, data)
301
+ end
302
+
303
+ # @return [String]
304
+ def message
305
+ @message || @data[:message]
306
+ end
307
+ end
308
+
117
309
  end
118
310
  end
@@ -60,18 +60,42 @@ module Aws::CodeStarconnections
60
60
  Aws::CodeStarconnections::Endpoints::CreateConnection.build(context)
61
61
  when :create_host
62
62
  Aws::CodeStarconnections::Endpoints::CreateHost.build(context)
63
+ when :create_repository_link
64
+ Aws::CodeStarconnections::Endpoints::CreateRepositoryLink.build(context)
65
+ when :create_sync_configuration
66
+ Aws::CodeStarconnections::Endpoints::CreateSyncConfiguration.build(context)
63
67
  when :delete_connection
64
68
  Aws::CodeStarconnections::Endpoints::DeleteConnection.build(context)
65
69
  when :delete_host
66
70
  Aws::CodeStarconnections::Endpoints::DeleteHost.build(context)
71
+ when :delete_repository_link
72
+ Aws::CodeStarconnections::Endpoints::DeleteRepositoryLink.build(context)
73
+ when :delete_sync_configuration
74
+ Aws::CodeStarconnections::Endpoints::DeleteSyncConfiguration.build(context)
67
75
  when :get_connection
68
76
  Aws::CodeStarconnections::Endpoints::GetConnection.build(context)
69
77
  when :get_host
70
78
  Aws::CodeStarconnections::Endpoints::GetHost.build(context)
79
+ when :get_repository_link
80
+ Aws::CodeStarconnections::Endpoints::GetRepositoryLink.build(context)
81
+ when :get_repository_sync_status
82
+ Aws::CodeStarconnections::Endpoints::GetRepositorySyncStatus.build(context)
83
+ when :get_resource_sync_status
84
+ Aws::CodeStarconnections::Endpoints::GetResourceSyncStatus.build(context)
85
+ when :get_sync_blocker_summary
86
+ Aws::CodeStarconnections::Endpoints::GetSyncBlockerSummary.build(context)
87
+ when :get_sync_configuration
88
+ Aws::CodeStarconnections::Endpoints::GetSyncConfiguration.build(context)
71
89
  when :list_connections
72
90
  Aws::CodeStarconnections::Endpoints::ListConnections.build(context)
73
91
  when :list_hosts
74
92
  Aws::CodeStarconnections::Endpoints::ListHosts.build(context)
93
+ when :list_repository_links
94
+ Aws::CodeStarconnections::Endpoints::ListRepositoryLinks.build(context)
95
+ when :list_repository_sync_definitions
96
+ Aws::CodeStarconnections::Endpoints::ListRepositorySyncDefinitions.build(context)
97
+ when :list_sync_configurations
98
+ Aws::CodeStarconnections::Endpoints::ListSyncConfigurations.build(context)
75
99
  when :list_tags_for_resource
76
100
  Aws::CodeStarconnections::Endpoints::ListTagsForResource.build(context)
77
101
  when :tag_resource
@@ -80,6 +104,12 @@ module Aws::CodeStarconnections
80
104
  Aws::CodeStarconnections::Endpoints::UntagResource.build(context)
81
105
  when :update_host
82
106
  Aws::CodeStarconnections::Endpoints::UpdateHost.build(context)
107
+ when :update_repository_link
108
+ Aws::CodeStarconnections::Endpoints::UpdateRepositoryLink.build(context)
109
+ when :update_sync_blocker
110
+ Aws::CodeStarconnections::Endpoints::UpdateSyncBlocker.build(context)
111
+ when :update_sync_configuration
112
+ Aws::CodeStarconnections::Endpoints::UpdateSyncConfiguration.build(context)
83
113
  end
84
114
  end
85
115
  end