aws-sdk-codecatalyst 1.25.0 → 1.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5da30697043d8d0589ec7cd36c034f408b7e75ef8fa5ee47d6b8852c219714e4
4
- data.tar.gz: cecfd9cabf17998b9d5363e906b89d2c4acf5bdfd433a94ea6a0be47e496dcdb
3
+ metadata.gz: f792eea0c6de8610b8a59ea0cd898b9f4a4ec2d63b7b3ec226ae09e06bd49711
4
+ data.tar.gz: 84b1de43bc000c1f8a7c3372599af253036c5f07430757d1c6f2cda1dff33eb9
5
5
  SHA512:
6
- metadata.gz: b710a0eb573fa045b882c93a302e4a22f0bbfbe63c6036966d3817628a892f1202589a607b56f23b01918b0d4b933580bdacd6c03809647cd8e15c866e1e4899
7
- data.tar.gz: fb8455cf51c74399c8045d4aedfb81ebe9317c70b509ac2c698cdd615c5a8d9fb24143f0afc4927f1cd9863030bbf1757f687cf39d247acd26b694eb6b2c6227
6
+ metadata.gz: a6abdea1073c21a1834dddffafeec69fb6a1bf628ad3ce8a18f4df01b9ce169fc287cc26cec4715176c0cc8bd7fd48187b67e9ac696c29fb90f383a866ef0a0d
7
+ data.tar.gz: 5710f1130a4439632dc93b59283b3c16f059cc5008d9c22f91da4358e2481f9f74abcfd4aab40c7cf9cfd2828b79a64705e5ecce5667a74b44ec41520725dc5c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.27.0 (2024-09-20)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.26.0 (2024-09-11)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.25.0 (2024-09-10)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.25.0
1
+ 1.27.0
@@ -130,13 +130,15 @@ module Aws::CodeCatalyst
130
130
  # locations will be searched for credentials:
131
131
  #
132
132
  # * `Aws.config[:credentials]`
133
- # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
134
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
133
+ # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
134
+ # `:account_id` options.
135
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
136
+ # ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
135
137
  # * `~/.aws/credentials`
136
138
  # * `~/.aws/config`
137
139
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
138
140
  # are very aggressive. Construct and pass an instance of
139
- # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
141
+ # `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
140
142
  # enable retries and extended timeouts. Instance profile credential
141
143
  # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
142
144
  # to true.
@@ -155,6 +157,8 @@ module Aws::CodeCatalyst
155
157
  #
156
158
  # @option options [String] :access_key_id
157
159
  #
160
+ # @option options [String] :account_id
161
+ #
158
162
  # @option options [Boolean] :active_endpoint_cache (false)
159
163
  # When set to `true`, a thread polling for endpoints will be running in
160
164
  # the background every 60 secs (default). Defaults to `false`.
@@ -369,7 +373,9 @@ module Aws::CodeCatalyst
369
373
  # sending the request.
370
374
  #
371
375
  # @option options [Aws::CodeCatalyst::EndpointProvider] :endpoint_provider
372
- # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::CodeCatalyst::EndpointParameters`
376
+ # The endpoint provider used to resolve endpoints. Any object that responds to
377
+ # `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
378
+ # `Aws::CodeCatalyst::EndpointParameters`.
373
379
  #
374
380
  # @option options [Float] :http_continue_timeout (1)
375
381
  # The number of seconds to wait for a 100-continue response before sending the
@@ -2457,7 +2463,7 @@ module Aws::CodeCatalyst
2457
2463
  tracer: tracer
2458
2464
  )
2459
2465
  context[:gem_name] = 'aws-sdk-codecatalyst'
2460
- context[:gem_version] = '1.25.0'
2466
+ context[:gem_version] = '1.27.0'
2461
2467
  Seahorse::Client::Request.new(handlers, context)
2462
2468
  end
2463
2469
 
@@ -14,494 +14,380 @@ module Aws::CodeCatalyst
14
14
 
15
15
  class CreateAccessToken
16
16
  def self.build(context)
17
- unless context.config.regional_endpoint
18
- endpoint = context.config.endpoint.to_s
19
- end
20
17
  Aws::CodeCatalyst::EndpointParameters.new(
21
18
  use_fips: context.config.use_fips_endpoint,
22
19
  region: context.config.region,
23
- endpoint: endpoint,
20
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
24
21
  )
25
22
  end
26
23
  end
27
24
 
28
25
  class CreateDevEnvironment
29
26
  def self.build(context)
30
- unless context.config.regional_endpoint
31
- endpoint = context.config.endpoint.to_s
32
- end
33
27
  Aws::CodeCatalyst::EndpointParameters.new(
34
28
  use_fips: context.config.use_fips_endpoint,
35
29
  region: context.config.region,
36
- endpoint: endpoint,
30
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
37
31
  )
38
32
  end
39
33
  end
40
34
 
41
35
  class CreateProject
42
36
  def self.build(context)
43
- unless context.config.regional_endpoint
44
- endpoint = context.config.endpoint.to_s
45
- end
46
37
  Aws::CodeCatalyst::EndpointParameters.new(
47
38
  use_fips: context.config.use_fips_endpoint,
48
39
  region: context.config.region,
49
- endpoint: endpoint,
40
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
50
41
  )
51
42
  end
52
43
  end
53
44
 
54
45
  class CreateSourceRepository
55
46
  def self.build(context)
56
- unless context.config.regional_endpoint
57
- endpoint = context.config.endpoint.to_s
58
- end
59
47
  Aws::CodeCatalyst::EndpointParameters.new(
60
48
  use_fips: context.config.use_fips_endpoint,
61
49
  region: context.config.region,
62
- endpoint: endpoint,
50
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
63
51
  )
64
52
  end
65
53
  end
66
54
 
67
55
  class CreateSourceRepositoryBranch
68
56
  def self.build(context)
69
- unless context.config.regional_endpoint
70
- endpoint = context.config.endpoint.to_s
71
- end
72
57
  Aws::CodeCatalyst::EndpointParameters.new(
73
58
  use_fips: context.config.use_fips_endpoint,
74
59
  region: context.config.region,
75
- endpoint: endpoint,
60
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
76
61
  )
77
62
  end
78
63
  end
79
64
 
80
65
  class DeleteAccessToken
81
66
  def self.build(context)
82
- unless context.config.regional_endpoint
83
- endpoint = context.config.endpoint.to_s
84
- end
85
67
  Aws::CodeCatalyst::EndpointParameters.new(
86
68
  use_fips: context.config.use_fips_endpoint,
87
69
  region: context.config.region,
88
- endpoint: endpoint,
70
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
89
71
  )
90
72
  end
91
73
  end
92
74
 
93
75
  class DeleteDevEnvironment
94
76
  def self.build(context)
95
- unless context.config.regional_endpoint
96
- endpoint = context.config.endpoint.to_s
97
- end
98
77
  Aws::CodeCatalyst::EndpointParameters.new(
99
78
  use_fips: context.config.use_fips_endpoint,
100
79
  region: context.config.region,
101
- endpoint: endpoint,
80
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
102
81
  )
103
82
  end
104
83
  end
105
84
 
106
85
  class DeleteProject
107
86
  def self.build(context)
108
- unless context.config.regional_endpoint
109
- endpoint = context.config.endpoint.to_s
110
- end
111
87
  Aws::CodeCatalyst::EndpointParameters.new(
112
88
  use_fips: context.config.use_fips_endpoint,
113
89
  region: context.config.region,
114
- endpoint: endpoint,
90
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
115
91
  )
116
92
  end
117
93
  end
118
94
 
119
95
  class DeleteSourceRepository
120
96
  def self.build(context)
121
- unless context.config.regional_endpoint
122
- endpoint = context.config.endpoint.to_s
123
- end
124
97
  Aws::CodeCatalyst::EndpointParameters.new(
125
98
  use_fips: context.config.use_fips_endpoint,
126
99
  region: context.config.region,
127
- endpoint: endpoint,
100
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
128
101
  )
129
102
  end
130
103
  end
131
104
 
132
105
  class DeleteSpace
133
106
  def self.build(context)
134
- unless context.config.regional_endpoint
135
- endpoint = context.config.endpoint.to_s
136
- end
137
107
  Aws::CodeCatalyst::EndpointParameters.new(
138
108
  use_fips: context.config.use_fips_endpoint,
139
109
  region: context.config.region,
140
- endpoint: endpoint,
110
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
141
111
  )
142
112
  end
143
113
  end
144
114
 
145
115
  class GetDevEnvironment
146
116
  def self.build(context)
147
- unless context.config.regional_endpoint
148
- endpoint = context.config.endpoint.to_s
149
- end
150
117
  Aws::CodeCatalyst::EndpointParameters.new(
151
118
  use_fips: context.config.use_fips_endpoint,
152
119
  region: context.config.region,
153
- endpoint: endpoint,
120
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
154
121
  )
155
122
  end
156
123
  end
157
124
 
158
125
  class GetProject
159
126
  def self.build(context)
160
- unless context.config.regional_endpoint
161
- endpoint = context.config.endpoint.to_s
162
- end
163
127
  Aws::CodeCatalyst::EndpointParameters.new(
164
128
  use_fips: context.config.use_fips_endpoint,
165
129
  region: context.config.region,
166
- endpoint: endpoint,
130
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
167
131
  )
168
132
  end
169
133
  end
170
134
 
171
135
  class GetSourceRepository
172
136
  def self.build(context)
173
- unless context.config.regional_endpoint
174
- endpoint = context.config.endpoint.to_s
175
- end
176
137
  Aws::CodeCatalyst::EndpointParameters.new(
177
138
  use_fips: context.config.use_fips_endpoint,
178
139
  region: context.config.region,
179
- endpoint: endpoint,
140
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
180
141
  )
181
142
  end
182
143
  end
183
144
 
184
145
  class GetSourceRepositoryCloneUrls
185
146
  def self.build(context)
186
- unless context.config.regional_endpoint
187
- endpoint = context.config.endpoint.to_s
188
- end
189
147
  Aws::CodeCatalyst::EndpointParameters.new(
190
148
  use_fips: context.config.use_fips_endpoint,
191
149
  region: context.config.region,
192
- endpoint: endpoint,
150
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
193
151
  )
194
152
  end
195
153
  end
196
154
 
197
155
  class GetSpace
198
156
  def self.build(context)
199
- unless context.config.regional_endpoint
200
- endpoint = context.config.endpoint.to_s
201
- end
202
157
  Aws::CodeCatalyst::EndpointParameters.new(
203
158
  use_fips: context.config.use_fips_endpoint,
204
159
  region: context.config.region,
205
- endpoint: endpoint,
160
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
206
161
  )
207
162
  end
208
163
  end
209
164
 
210
165
  class GetSubscription
211
166
  def self.build(context)
212
- unless context.config.regional_endpoint
213
- endpoint = context.config.endpoint.to_s
214
- end
215
167
  Aws::CodeCatalyst::EndpointParameters.new(
216
168
  use_fips: context.config.use_fips_endpoint,
217
169
  region: context.config.region,
218
- endpoint: endpoint,
170
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
219
171
  )
220
172
  end
221
173
  end
222
174
 
223
175
  class GetUserDetails
224
176
  def self.build(context)
225
- unless context.config.regional_endpoint
226
- endpoint = context.config.endpoint.to_s
227
- end
228
177
  Aws::CodeCatalyst::EndpointParameters.new(
229
178
  use_fips: context.config.use_fips_endpoint,
230
179
  region: context.config.region,
231
- endpoint: endpoint,
180
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
232
181
  )
233
182
  end
234
183
  end
235
184
 
236
185
  class GetWorkflow
237
186
  def self.build(context)
238
- unless context.config.regional_endpoint
239
- endpoint = context.config.endpoint.to_s
240
- end
241
187
  Aws::CodeCatalyst::EndpointParameters.new(
242
188
  use_fips: context.config.use_fips_endpoint,
243
189
  region: context.config.region,
244
- endpoint: endpoint,
190
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
245
191
  )
246
192
  end
247
193
  end
248
194
 
249
195
  class GetWorkflowRun
250
196
  def self.build(context)
251
- unless context.config.regional_endpoint
252
- endpoint = context.config.endpoint.to_s
253
- end
254
197
  Aws::CodeCatalyst::EndpointParameters.new(
255
198
  use_fips: context.config.use_fips_endpoint,
256
199
  region: context.config.region,
257
- endpoint: endpoint,
200
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
258
201
  )
259
202
  end
260
203
  end
261
204
 
262
205
  class ListAccessTokens
263
206
  def self.build(context)
264
- unless context.config.regional_endpoint
265
- endpoint = context.config.endpoint.to_s
266
- end
267
207
  Aws::CodeCatalyst::EndpointParameters.new(
268
208
  use_fips: context.config.use_fips_endpoint,
269
209
  region: context.config.region,
270
- endpoint: endpoint,
210
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
271
211
  )
272
212
  end
273
213
  end
274
214
 
275
215
  class ListDevEnvironmentSessions
276
216
  def self.build(context)
277
- unless context.config.regional_endpoint
278
- endpoint = context.config.endpoint.to_s
279
- end
280
217
  Aws::CodeCatalyst::EndpointParameters.new(
281
218
  use_fips: context.config.use_fips_endpoint,
282
219
  region: context.config.region,
283
- endpoint: endpoint,
220
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
284
221
  )
285
222
  end
286
223
  end
287
224
 
288
225
  class ListDevEnvironments
289
226
  def self.build(context)
290
- unless context.config.regional_endpoint
291
- endpoint = context.config.endpoint.to_s
292
- end
293
227
  Aws::CodeCatalyst::EndpointParameters.new(
294
228
  use_fips: context.config.use_fips_endpoint,
295
229
  region: context.config.region,
296
- endpoint: endpoint,
230
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
297
231
  )
298
232
  end
299
233
  end
300
234
 
301
235
  class ListEventLogs
302
236
  def self.build(context)
303
- unless context.config.regional_endpoint
304
- endpoint = context.config.endpoint.to_s
305
- end
306
237
  Aws::CodeCatalyst::EndpointParameters.new(
307
238
  use_fips: context.config.use_fips_endpoint,
308
239
  region: context.config.region,
309
- endpoint: endpoint,
240
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
310
241
  )
311
242
  end
312
243
  end
313
244
 
314
245
  class ListProjects
315
246
  def self.build(context)
316
- unless context.config.regional_endpoint
317
- endpoint = context.config.endpoint.to_s
318
- end
319
247
  Aws::CodeCatalyst::EndpointParameters.new(
320
248
  use_fips: context.config.use_fips_endpoint,
321
249
  region: context.config.region,
322
- endpoint: endpoint,
250
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
323
251
  )
324
252
  end
325
253
  end
326
254
 
327
255
  class ListSourceRepositories
328
256
  def self.build(context)
329
- unless context.config.regional_endpoint
330
- endpoint = context.config.endpoint.to_s
331
- end
332
257
  Aws::CodeCatalyst::EndpointParameters.new(
333
258
  use_fips: context.config.use_fips_endpoint,
334
259
  region: context.config.region,
335
- endpoint: endpoint,
260
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
336
261
  )
337
262
  end
338
263
  end
339
264
 
340
265
  class ListSourceRepositoryBranches
341
266
  def self.build(context)
342
- unless context.config.regional_endpoint
343
- endpoint = context.config.endpoint.to_s
344
- end
345
267
  Aws::CodeCatalyst::EndpointParameters.new(
346
268
  use_fips: context.config.use_fips_endpoint,
347
269
  region: context.config.region,
348
- endpoint: endpoint,
270
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
349
271
  )
350
272
  end
351
273
  end
352
274
 
353
275
  class ListSpaces
354
276
  def self.build(context)
355
- unless context.config.regional_endpoint
356
- endpoint = context.config.endpoint.to_s
357
- end
358
277
  Aws::CodeCatalyst::EndpointParameters.new(
359
278
  use_fips: context.config.use_fips_endpoint,
360
279
  region: context.config.region,
361
- endpoint: endpoint,
280
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
362
281
  )
363
282
  end
364
283
  end
365
284
 
366
285
  class ListWorkflowRuns
367
286
  def self.build(context)
368
- unless context.config.regional_endpoint
369
- endpoint = context.config.endpoint.to_s
370
- end
371
287
  Aws::CodeCatalyst::EndpointParameters.new(
372
288
  use_fips: context.config.use_fips_endpoint,
373
289
  region: context.config.region,
374
- endpoint: endpoint,
290
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
375
291
  )
376
292
  end
377
293
  end
378
294
 
379
295
  class ListWorkflows
380
296
  def self.build(context)
381
- unless context.config.regional_endpoint
382
- endpoint = context.config.endpoint.to_s
383
- end
384
297
  Aws::CodeCatalyst::EndpointParameters.new(
385
298
  use_fips: context.config.use_fips_endpoint,
386
299
  region: context.config.region,
387
- endpoint: endpoint,
300
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
388
301
  )
389
302
  end
390
303
  end
391
304
 
392
305
  class StartDevEnvironment
393
306
  def self.build(context)
394
- unless context.config.regional_endpoint
395
- endpoint = context.config.endpoint.to_s
396
- end
397
307
  Aws::CodeCatalyst::EndpointParameters.new(
398
308
  use_fips: context.config.use_fips_endpoint,
399
309
  region: context.config.region,
400
- endpoint: endpoint,
310
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
401
311
  )
402
312
  end
403
313
  end
404
314
 
405
315
  class StartDevEnvironmentSession
406
316
  def self.build(context)
407
- unless context.config.regional_endpoint
408
- endpoint = context.config.endpoint.to_s
409
- end
410
317
  Aws::CodeCatalyst::EndpointParameters.new(
411
318
  use_fips: context.config.use_fips_endpoint,
412
319
  region: context.config.region,
413
- endpoint: endpoint,
320
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
414
321
  )
415
322
  end
416
323
  end
417
324
 
418
325
  class StartWorkflowRun
419
326
  def self.build(context)
420
- unless context.config.regional_endpoint
421
- endpoint = context.config.endpoint.to_s
422
- end
423
327
  Aws::CodeCatalyst::EndpointParameters.new(
424
328
  use_fips: context.config.use_fips_endpoint,
425
329
  region: context.config.region,
426
- endpoint: endpoint,
330
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
427
331
  )
428
332
  end
429
333
  end
430
334
 
431
335
  class StopDevEnvironment
432
336
  def self.build(context)
433
- unless context.config.regional_endpoint
434
- endpoint = context.config.endpoint.to_s
435
- end
436
337
  Aws::CodeCatalyst::EndpointParameters.new(
437
338
  use_fips: context.config.use_fips_endpoint,
438
339
  region: context.config.region,
439
- endpoint: endpoint,
340
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
440
341
  )
441
342
  end
442
343
  end
443
344
 
444
345
  class StopDevEnvironmentSession
445
346
  def self.build(context)
446
- unless context.config.regional_endpoint
447
- endpoint = context.config.endpoint.to_s
448
- end
449
347
  Aws::CodeCatalyst::EndpointParameters.new(
450
348
  use_fips: context.config.use_fips_endpoint,
451
349
  region: context.config.region,
452
- endpoint: endpoint,
350
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
453
351
  )
454
352
  end
455
353
  end
456
354
 
457
355
  class UpdateDevEnvironment
458
356
  def self.build(context)
459
- unless context.config.regional_endpoint
460
- endpoint = context.config.endpoint.to_s
461
- end
462
357
  Aws::CodeCatalyst::EndpointParameters.new(
463
358
  use_fips: context.config.use_fips_endpoint,
464
359
  region: context.config.region,
465
- endpoint: endpoint,
360
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
466
361
  )
467
362
  end
468
363
  end
469
364
 
470
365
  class UpdateProject
471
366
  def self.build(context)
472
- unless context.config.regional_endpoint
473
- endpoint = context.config.endpoint.to_s
474
- end
475
367
  Aws::CodeCatalyst::EndpointParameters.new(
476
368
  use_fips: context.config.use_fips_endpoint,
477
369
  region: context.config.region,
478
- endpoint: endpoint,
370
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
479
371
  )
480
372
  end
481
373
  end
482
374
 
483
375
  class UpdateSpace
484
376
  def self.build(context)
485
- unless context.config.regional_endpoint
486
- endpoint = context.config.endpoint.to_s
487
- end
488
377
  Aws::CodeCatalyst::EndpointParameters.new(
489
378
  use_fips: context.config.use_fips_endpoint,
490
379
  region: context.config.region,
491
- endpoint: endpoint,
380
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
492
381
  )
493
382
  end
494
383
  end
495
384
 
496
385
  class VerifySession
497
386
  def self.build(context)
498
- unless context.config.regional_endpoint
499
- endpoint = context.config.endpoint.to_s
500
- end
501
387
  Aws::CodeCatalyst::EndpointParameters.new(
502
388
  use_fips: context.config.use_fips_endpoint,
503
389
  region: context.config.region,
504
- endpoint: endpoint,
390
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
505
391
  )
506
392
  end
507
393
  end
@@ -15,11 +15,11 @@ module Aws::CodeCatalyst
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::CodeCatalyst::EndpointProvider',
17
17
  rbs_type: 'untyped',
18
- docstring: 'The endpoint provider used to resolve endpoints. Any '\
19
- 'object that responds to `#resolve_endpoint(parameters)` '\
20
- 'where `parameters` is a Struct similar to '\
21
- '`Aws::CodeCatalyst::EndpointParameters`'
22
- ) do |cfg|
18
+ docstring: <<~DOCS) do |_cfg|
19
+ The endpoint provider used to resolve endpoints. Any object that responds to
20
+ `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
21
+ `Aws::CodeCatalyst::EndpointParameters`.
22
+ DOCS
23
23
  Aws::CodeCatalyst::EndpointProvider.new
24
24
  end
25
25
 
@@ -40,11 +40,23 @@ module Aws::CodeCatalyst
40
40
  context[:auth_scheme] =
41
41
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
42
42
 
43
- @handler.call(context)
43
+ with_metrics(context) { @handler.call(context) }
44
44
  end
45
45
 
46
46
  private
47
47
 
48
+ def with_metrics(context, &block)
49
+ metrics = []
50
+ metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
51
+ if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
52
+ metrics << 'SIGV4A_SIGNING'
53
+ end
54
+ if context.config.credentials&.credentials&.account_id
55
+ metrics << 'RESOLVED_ACCOUNT_ID'
56
+ end
57
+ Aws::Plugins::UserAgent.metric(*metrics, &block)
58
+ end
59
+
48
60
  def apply_endpoint_headers(context, headers)
49
61
  headers.each do |key, values|
50
62
  value = values
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-codecatalyst/customizations'
52
52
  # @!group service
53
53
  module Aws::CodeCatalyst
54
54
 
55
- GEM_VERSION = '1.25.0'
55
+ GEM_VERSION = '1.27.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -15,6 +15,7 @@ module Aws
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
17
  ?access_key_id: String,
18
+ ?account_id: String,
18
19
  ?active_endpoint_cache: bool,
19
20
  ?adaptive_retry_wait_to_fill: bool,
20
21
  ?client_side_monitoring: bool,
data/sig/resource.rbs CHANGED
@@ -15,6 +15,7 @@ module Aws
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
17
  ?access_key_id: String,
18
+ ?account_id: String,
18
19
  ?active_endpoint_cache: bool,
19
20
  ?adaptive_retry_wait_to_fill: bool,
20
21
  ?client_side_monitoring: bool,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codecatalyst
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.0
4
+ version: 1.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-10 00:00:00.000000000 Z
11
+ date: 2024-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.203.0
22
+ version: 3.207.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.203.0
32
+ version: 3.207.0
33
33
  description: Official AWS Ruby gem for Amazon CodeCatalyst. This gem is part of the
34
34
  AWS SDK for Ruby.
35
35
  email: