aws-sdk-datazone 1.21.0 → 1.23.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,1807 +14,1390 @@ module Aws::DataZone
14
14
 
15
15
  class AcceptPredictions
16
16
  def self.build(context)
17
- unless context.config.regional_endpoint
18
- endpoint = context.config.endpoint.to_s
19
- end
20
17
  Aws::DataZone::EndpointParameters.new(
21
18
  region: context.config.region,
22
19
  use_fips: context.config.use_fips_endpoint,
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 AcceptSubscriptionRequest
29
26
  def self.build(context)
30
- unless context.config.regional_endpoint
31
- endpoint = context.config.endpoint.to_s
32
- end
33
27
  Aws::DataZone::EndpointParameters.new(
34
28
  region: context.config.region,
35
29
  use_fips: context.config.use_fips_endpoint,
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 AddEntityOwner
42
36
  def self.build(context)
43
- unless context.config.regional_endpoint
44
- endpoint = context.config.endpoint.to_s
45
- end
46
37
  Aws::DataZone::EndpointParameters.new(
47
38
  region: context.config.region,
48
39
  use_fips: context.config.use_fips_endpoint,
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 AddPolicyGrant
55
46
  def self.build(context)
56
- unless context.config.regional_endpoint
57
- endpoint = context.config.endpoint.to_s
58
- end
59
47
  Aws::DataZone::EndpointParameters.new(
60
48
  region: context.config.region,
61
49
  use_fips: context.config.use_fips_endpoint,
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 AssociateEnvironmentRole
68
56
  def self.build(context)
69
- unless context.config.regional_endpoint
70
- endpoint = context.config.endpoint.to_s
71
- end
72
57
  Aws::DataZone::EndpointParameters.new(
73
58
  region: context.config.region,
74
59
  use_fips: context.config.use_fips_endpoint,
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 CancelMetadataGenerationRun
81
66
  def self.build(context)
82
- unless context.config.regional_endpoint
83
- endpoint = context.config.endpoint.to_s
84
- end
85
67
  Aws::DataZone::EndpointParameters.new(
86
68
  region: context.config.region,
87
69
  use_fips: context.config.use_fips_endpoint,
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 CancelSubscription
94
76
  def self.build(context)
95
- unless context.config.regional_endpoint
96
- endpoint = context.config.endpoint.to_s
97
- end
98
77
  Aws::DataZone::EndpointParameters.new(
99
78
  region: context.config.region,
100
79
  use_fips: context.config.use_fips_endpoint,
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 CreateAsset
107
86
  def self.build(context)
108
- unless context.config.regional_endpoint
109
- endpoint = context.config.endpoint.to_s
110
- end
111
87
  Aws::DataZone::EndpointParameters.new(
112
88
  region: context.config.region,
113
89
  use_fips: context.config.use_fips_endpoint,
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 CreateAssetFilter
120
96
  def self.build(context)
121
- unless context.config.regional_endpoint
122
- endpoint = context.config.endpoint.to_s
123
- end
124
97
  Aws::DataZone::EndpointParameters.new(
125
98
  region: context.config.region,
126
99
  use_fips: context.config.use_fips_endpoint,
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 CreateAssetRevision
133
106
  def self.build(context)
134
- unless context.config.regional_endpoint
135
- endpoint = context.config.endpoint.to_s
136
- end
137
107
  Aws::DataZone::EndpointParameters.new(
138
108
  region: context.config.region,
139
109
  use_fips: context.config.use_fips_endpoint,
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 CreateAssetType
146
116
  def self.build(context)
147
- unless context.config.regional_endpoint
148
- endpoint = context.config.endpoint.to_s
149
- end
150
117
  Aws::DataZone::EndpointParameters.new(
151
118
  region: context.config.region,
152
119
  use_fips: context.config.use_fips_endpoint,
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 CreateDataProduct
159
126
  def self.build(context)
160
- unless context.config.regional_endpoint
161
- endpoint = context.config.endpoint.to_s
162
- end
163
127
  Aws::DataZone::EndpointParameters.new(
164
128
  region: context.config.region,
165
129
  use_fips: context.config.use_fips_endpoint,
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 CreateDataProductRevision
172
136
  def self.build(context)
173
- unless context.config.regional_endpoint
174
- endpoint = context.config.endpoint.to_s
175
- end
176
137
  Aws::DataZone::EndpointParameters.new(
177
138
  region: context.config.region,
178
139
  use_fips: context.config.use_fips_endpoint,
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 CreateDataSource
185
146
  def self.build(context)
186
- unless context.config.regional_endpoint
187
- endpoint = context.config.endpoint.to_s
188
- end
189
147
  Aws::DataZone::EndpointParameters.new(
190
148
  region: context.config.region,
191
149
  use_fips: context.config.use_fips_endpoint,
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 CreateDomain
198
156
  def self.build(context)
199
- unless context.config.regional_endpoint
200
- endpoint = context.config.endpoint.to_s
201
- end
202
157
  Aws::DataZone::EndpointParameters.new(
203
158
  region: context.config.region,
204
159
  use_fips: context.config.use_fips_endpoint,
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 CreateDomainUnit
211
166
  def self.build(context)
212
- unless context.config.regional_endpoint
213
- endpoint = context.config.endpoint.to_s
214
- end
215
167
  Aws::DataZone::EndpointParameters.new(
216
168
  region: context.config.region,
217
169
  use_fips: context.config.use_fips_endpoint,
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 CreateEnvironment
224
176
  def self.build(context)
225
- unless context.config.regional_endpoint
226
- endpoint = context.config.endpoint.to_s
227
- end
228
177
  Aws::DataZone::EndpointParameters.new(
229
178
  region: context.config.region,
230
179
  use_fips: context.config.use_fips_endpoint,
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 CreateEnvironmentAction
237
186
  def self.build(context)
238
- unless context.config.regional_endpoint
239
- endpoint = context.config.endpoint.to_s
240
- end
241
187
  Aws::DataZone::EndpointParameters.new(
242
188
  region: context.config.region,
243
189
  use_fips: context.config.use_fips_endpoint,
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 CreateEnvironmentProfile
250
196
  def self.build(context)
251
- unless context.config.regional_endpoint
252
- endpoint = context.config.endpoint.to_s
253
- end
254
197
  Aws::DataZone::EndpointParameters.new(
255
198
  region: context.config.region,
256
199
  use_fips: context.config.use_fips_endpoint,
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 CreateFormType
263
206
  def self.build(context)
264
- unless context.config.regional_endpoint
265
- endpoint = context.config.endpoint.to_s
266
- end
267
207
  Aws::DataZone::EndpointParameters.new(
268
208
  region: context.config.region,
269
209
  use_fips: context.config.use_fips_endpoint,
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 CreateGlossary
276
216
  def self.build(context)
277
- unless context.config.regional_endpoint
278
- endpoint = context.config.endpoint.to_s
279
- end
280
217
  Aws::DataZone::EndpointParameters.new(
281
218
  region: context.config.region,
282
219
  use_fips: context.config.use_fips_endpoint,
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 CreateGlossaryTerm
289
226
  def self.build(context)
290
- unless context.config.regional_endpoint
291
- endpoint = context.config.endpoint.to_s
292
- end
293
227
  Aws::DataZone::EndpointParameters.new(
294
228
  region: context.config.region,
295
229
  use_fips: context.config.use_fips_endpoint,
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 CreateGroupProfile
302
236
  def self.build(context)
303
- unless context.config.regional_endpoint
304
- endpoint = context.config.endpoint.to_s
305
- end
306
237
  Aws::DataZone::EndpointParameters.new(
307
238
  region: context.config.region,
308
239
  use_fips: context.config.use_fips_endpoint,
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 CreateListingChangeSet
315
246
  def self.build(context)
316
- unless context.config.regional_endpoint
317
- endpoint = context.config.endpoint.to_s
318
- end
319
247
  Aws::DataZone::EndpointParameters.new(
320
248
  region: context.config.region,
321
249
  use_fips: context.config.use_fips_endpoint,
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 CreateProject
328
256
  def self.build(context)
329
- unless context.config.regional_endpoint
330
- endpoint = context.config.endpoint.to_s
331
- end
332
257
  Aws::DataZone::EndpointParameters.new(
333
258
  region: context.config.region,
334
259
  use_fips: context.config.use_fips_endpoint,
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 CreateProjectMembership
341
266
  def self.build(context)
342
- unless context.config.regional_endpoint
343
- endpoint = context.config.endpoint.to_s
344
- end
345
267
  Aws::DataZone::EndpointParameters.new(
346
268
  region: context.config.region,
347
269
  use_fips: context.config.use_fips_endpoint,
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 CreateSubscriptionGrant
354
276
  def self.build(context)
355
- unless context.config.regional_endpoint
356
- endpoint = context.config.endpoint.to_s
357
- end
358
277
  Aws::DataZone::EndpointParameters.new(
359
278
  region: context.config.region,
360
279
  use_fips: context.config.use_fips_endpoint,
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 CreateSubscriptionRequest
367
286
  def self.build(context)
368
- unless context.config.regional_endpoint
369
- endpoint = context.config.endpoint.to_s
370
- end
371
287
  Aws::DataZone::EndpointParameters.new(
372
288
  region: context.config.region,
373
289
  use_fips: context.config.use_fips_endpoint,
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 CreateSubscriptionTarget
380
296
  def self.build(context)
381
- unless context.config.regional_endpoint
382
- endpoint = context.config.endpoint.to_s
383
- end
384
297
  Aws::DataZone::EndpointParameters.new(
385
298
  region: context.config.region,
386
299
  use_fips: context.config.use_fips_endpoint,
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 CreateUserProfile
393
306
  def self.build(context)
394
- unless context.config.regional_endpoint
395
- endpoint = context.config.endpoint.to_s
396
- end
397
307
  Aws::DataZone::EndpointParameters.new(
398
308
  region: context.config.region,
399
309
  use_fips: context.config.use_fips_endpoint,
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 DeleteAsset
406
316
  def self.build(context)
407
- unless context.config.regional_endpoint
408
- endpoint = context.config.endpoint.to_s
409
- end
410
317
  Aws::DataZone::EndpointParameters.new(
411
318
  region: context.config.region,
412
319
  use_fips: context.config.use_fips_endpoint,
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 DeleteAssetFilter
419
326
  def self.build(context)
420
- unless context.config.regional_endpoint
421
- endpoint = context.config.endpoint.to_s
422
- end
423
327
  Aws::DataZone::EndpointParameters.new(
424
328
  region: context.config.region,
425
329
  use_fips: context.config.use_fips_endpoint,
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 DeleteAssetType
432
336
  def self.build(context)
433
- unless context.config.regional_endpoint
434
- endpoint = context.config.endpoint.to_s
435
- end
436
337
  Aws::DataZone::EndpointParameters.new(
437
338
  region: context.config.region,
438
339
  use_fips: context.config.use_fips_endpoint,
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 DeleteDataProduct
445
346
  def self.build(context)
446
- unless context.config.regional_endpoint
447
- endpoint = context.config.endpoint.to_s
448
- end
449
347
  Aws::DataZone::EndpointParameters.new(
450
348
  region: context.config.region,
451
349
  use_fips: context.config.use_fips_endpoint,
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 DeleteDataSource
458
356
  def self.build(context)
459
- unless context.config.regional_endpoint
460
- endpoint = context.config.endpoint.to_s
461
- end
462
357
  Aws::DataZone::EndpointParameters.new(
463
358
  region: context.config.region,
464
359
  use_fips: context.config.use_fips_endpoint,
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 DeleteDomain
471
366
  def self.build(context)
472
- unless context.config.regional_endpoint
473
- endpoint = context.config.endpoint.to_s
474
- end
475
367
  Aws::DataZone::EndpointParameters.new(
476
368
  region: context.config.region,
477
369
  use_fips: context.config.use_fips_endpoint,
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 DeleteDomainUnit
484
376
  def self.build(context)
485
- unless context.config.regional_endpoint
486
- endpoint = context.config.endpoint.to_s
487
- end
488
377
  Aws::DataZone::EndpointParameters.new(
489
378
  region: context.config.region,
490
379
  use_fips: context.config.use_fips_endpoint,
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 DeleteEnvironment
497
386
  def self.build(context)
498
- unless context.config.regional_endpoint
499
- endpoint = context.config.endpoint.to_s
500
- end
501
387
  Aws::DataZone::EndpointParameters.new(
502
388
  region: context.config.region,
503
389
  use_fips: context.config.use_fips_endpoint,
504
- endpoint: endpoint,
390
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
505
391
  )
506
392
  end
507
393
  end
508
394
 
509
395
  class DeleteEnvironmentAction
510
396
  def self.build(context)
511
- unless context.config.regional_endpoint
512
- endpoint = context.config.endpoint.to_s
513
- end
514
397
  Aws::DataZone::EndpointParameters.new(
515
398
  region: context.config.region,
516
399
  use_fips: context.config.use_fips_endpoint,
517
- endpoint: endpoint,
400
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
518
401
  )
519
402
  end
520
403
  end
521
404
 
522
405
  class DeleteEnvironmentBlueprintConfiguration
523
406
  def self.build(context)
524
- unless context.config.regional_endpoint
525
- endpoint = context.config.endpoint.to_s
526
- end
527
407
  Aws::DataZone::EndpointParameters.new(
528
408
  region: context.config.region,
529
409
  use_fips: context.config.use_fips_endpoint,
530
- endpoint: endpoint,
410
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
531
411
  )
532
412
  end
533
413
  end
534
414
 
535
415
  class DeleteEnvironmentProfile
536
416
  def self.build(context)
537
- unless context.config.regional_endpoint
538
- endpoint = context.config.endpoint.to_s
539
- end
540
417
  Aws::DataZone::EndpointParameters.new(
541
418
  region: context.config.region,
542
419
  use_fips: context.config.use_fips_endpoint,
543
- endpoint: endpoint,
420
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
544
421
  )
545
422
  end
546
423
  end
547
424
 
548
425
  class DeleteFormType
549
426
  def self.build(context)
550
- unless context.config.regional_endpoint
551
- endpoint = context.config.endpoint.to_s
552
- end
553
427
  Aws::DataZone::EndpointParameters.new(
554
428
  region: context.config.region,
555
429
  use_fips: context.config.use_fips_endpoint,
556
- endpoint: endpoint,
430
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
557
431
  )
558
432
  end
559
433
  end
560
434
 
561
435
  class DeleteGlossary
562
436
  def self.build(context)
563
- unless context.config.regional_endpoint
564
- endpoint = context.config.endpoint.to_s
565
- end
566
437
  Aws::DataZone::EndpointParameters.new(
567
438
  region: context.config.region,
568
439
  use_fips: context.config.use_fips_endpoint,
569
- endpoint: endpoint,
440
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
570
441
  )
571
442
  end
572
443
  end
573
444
 
574
445
  class DeleteGlossaryTerm
575
446
  def self.build(context)
576
- unless context.config.regional_endpoint
577
- endpoint = context.config.endpoint.to_s
578
- end
579
447
  Aws::DataZone::EndpointParameters.new(
580
448
  region: context.config.region,
581
449
  use_fips: context.config.use_fips_endpoint,
582
- endpoint: endpoint,
450
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
583
451
  )
584
452
  end
585
453
  end
586
454
 
587
455
  class DeleteListing
588
456
  def self.build(context)
589
- unless context.config.regional_endpoint
590
- endpoint = context.config.endpoint.to_s
591
- end
592
457
  Aws::DataZone::EndpointParameters.new(
593
458
  region: context.config.region,
594
459
  use_fips: context.config.use_fips_endpoint,
595
- endpoint: endpoint,
460
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
596
461
  )
597
462
  end
598
463
  end
599
464
 
600
465
  class DeleteProject
601
466
  def self.build(context)
602
- unless context.config.regional_endpoint
603
- endpoint = context.config.endpoint.to_s
604
- end
605
467
  Aws::DataZone::EndpointParameters.new(
606
468
  region: context.config.region,
607
469
  use_fips: context.config.use_fips_endpoint,
608
- endpoint: endpoint,
470
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
609
471
  )
610
472
  end
611
473
  end
612
474
 
613
475
  class DeleteProjectMembership
614
476
  def self.build(context)
615
- unless context.config.regional_endpoint
616
- endpoint = context.config.endpoint.to_s
617
- end
618
477
  Aws::DataZone::EndpointParameters.new(
619
478
  region: context.config.region,
620
479
  use_fips: context.config.use_fips_endpoint,
621
- endpoint: endpoint,
480
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
622
481
  )
623
482
  end
624
483
  end
625
484
 
626
485
  class DeleteSubscriptionGrant
627
486
  def self.build(context)
628
- unless context.config.regional_endpoint
629
- endpoint = context.config.endpoint.to_s
630
- end
631
487
  Aws::DataZone::EndpointParameters.new(
632
488
  region: context.config.region,
633
489
  use_fips: context.config.use_fips_endpoint,
634
- endpoint: endpoint,
490
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
635
491
  )
636
492
  end
637
493
  end
638
494
 
639
495
  class DeleteSubscriptionRequest
640
496
  def self.build(context)
641
- unless context.config.regional_endpoint
642
- endpoint = context.config.endpoint.to_s
643
- end
644
497
  Aws::DataZone::EndpointParameters.new(
645
498
  region: context.config.region,
646
499
  use_fips: context.config.use_fips_endpoint,
647
- endpoint: endpoint,
500
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
648
501
  )
649
502
  end
650
503
  end
651
504
 
652
505
  class DeleteSubscriptionTarget
653
506
  def self.build(context)
654
- unless context.config.regional_endpoint
655
- endpoint = context.config.endpoint.to_s
656
- end
657
507
  Aws::DataZone::EndpointParameters.new(
658
508
  region: context.config.region,
659
509
  use_fips: context.config.use_fips_endpoint,
660
- endpoint: endpoint,
510
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
661
511
  )
662
512
  end
663
513
  end
664
514
 
665
515
  class DeleteTimeSeriesDataPoints
666
516
  def self.build(context)
667
- unless context.config.regional_endpoint
668
- endpoint = context.config.endpoint.to_s
669
- end
670
517
  Aws::DataZone::EndpointParameters.new(
671
518
  region: context.config.region,
672
519
  use_fips: context.config.use_fips_endpoint,
673
- endpoint: endpoint,
520
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
674
521
  )
675
522
  end
676
523
  end
677
524
 
678
525
  class DisassociateEnvironmentRole
679
526
  def self.build(context)
680
- unless context.config.regional_endpoint
681
- endpoint = context.config.endpoint.to_s
682
- end
683
527
  Aws::DataZone::EndpointParameters.new(
684
528
  region: context.config.region,
685
529
  use_fips: context.config.use_fips_endpoint,
686
- endpoint: endpoint,
530
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
687
531
  )
688
532
  end
689
533
  end
690
534
 
691
535
  class GetAsset
692
536
  def self.build(context)
693
- unless context.config.regional_endpoint
694
- endpoint = context.config.endpoint.to_s
695
- end
696
537
  Aws::DataZone::EndpointParameters.new(
697
538
  region: context.config.region,
698
539
  use_fips: context.config.use_fips_endpoint,
699
- endpoint: endpoint,
540
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
700
541
  )
701
542
  end
702
543
  end
703
544
 
704
545
  class GetAssetFilter
705
546
  def self.build(context)
706
- unless context.config.regional_endpoint
707
- endpoint = context.config.endpoint.to_s
708
- end
709
547
  Aws::DataZone::EndpointParameters.new(
710
548
  region: context.config.region,
711
549
  use_fips: context.config.use_fips_endpoint,
712
- endpoint: endpoint,
550
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
713
551
  )
714
552
  end
715
553
  end
716
554
 
717
555
  class GetAssetType
718
556
  def self.build(context)
719
- unless context.config.regional_endpoint
720
- endpoint = context.config.endpoint.to_s
721
- end
722
557
  Aws::DataZone::EndpointParameters.new(
723
558
  region: context.config.region,
724
559
  use_fips: context.config.use_fips_endpoint,
725
- endpoint: endpoint,
560
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
726
561
  )
727
562
  end
728
563
  end
729
564
 
730
565
  class GetDataProduct
731
566
  def self.build(context)
732
- unless context.config.regional_endpoint
733
- endpoint = context.config.endpoint.to_s
734
- end
735
567
  Aws::DataZone::EndpointParameters.new(
736
568
  region: context.config.region,
737
569
  use_fips: context.config.use_fips_endpoint,
738
- endpoint: endpoint,
570
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
739
571
  )
740
572
  end
741
573
  end
742
574
 
743
575
  class GetDataSource
744
576
  def self.build(context)
745
- unless context.config.regional_endpoint
746
- endpoint = context.config.endpoint.to_s
747
- end
748
577
  Aws::DataZone::EndpointParameters.new(
749
578
  region: context.config.region,
750
579
  use_fips: context.config.use_fips_endpoint,
751
- endpoint: endpoint,
580
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
752
581
  )
753
582
  end
754
583
  end
755
584
 
756
585
  class GetDataSourceRun
757
586
  def self.build(context)
758
- unless context.config.regional_endpoint
759
- endpoint = context.config.endpoint.to_s
760
- end
761
587
  Aws::DataZone::EndpointParameters.new(
762
588
  region: context.config.region,
763
589
  use_fips: context.config.use_fips_endpoint,
764
- endpoint: endpoint,
590
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
765
591
  )
766
592
  end
767
593
  end
768
594
 
769
595
  class GetDomain
770
596
  def self.build(context)
771
- unless context.config.regional_endpoint
772
- endpoint = context.config.endpoint.to_s
773
- end
774
597
  Aws::DataZone::EndpointParameters.new(
775
598
  region: context.config.region,
776
599
  use_fips: context.config.use_fips_endpoint,
777
- endpoint: endpoint,
600
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
778
601
  )
779
602
  end
780
603
  end
781
604
 
782
605
  class GetDomainUnit
783
606
  def self.build(context)
784
- unless context.config.regional_endpoint
785
- endpoint = context.config.endpoint.to_s
786
- end
787
607
  Aws::DataZone::EndpointParameters.new(
788
608
  region: context.config.region,
789
609
  use_fips: context.config.use_fips_endpoint,
790
- endpoint: endpoint,
610
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
791
611
  )
792
612
  end
793
613
  end
794
614
 
795
615
  class GetEnvironment
796
616
  def self.build(context)
797
- unless context.config.regional_endpoint
798
- endpoint = context.config.endpoint.to_s
799
- end
800
617
  Aws::DataZone::EndpointParameters.new(
801
618
  region: context.config.region,
802
619
  use_fips: context.config.use_fips_endpoint,
803
- endpoint: endpoint,
620
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
804
621
  )
805
622
  end
806
623
  end
807
624
 
808
625
  class GetEnvironmentAction
809
626
  def self.build(context)
810
- unless context.config.regional_endpoint
811
- endpoint = context.config.endpoint.to_s
812
- end
813
627
  Aws::DataZone::EndpointParameters.new(
814
628
  region: context.config.region,
815
629
  use_fips: context.config.use_fips_endpoint,
816
- endpoint: endpoint,
630
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
817
631
  )
818
632
  end
819
633
  end
820
634
 
821
635
  class GetEnvironmentBlueprint
822
636
  def self.build(context)
823
- unless context.config.regional_endpoint
824
- endpoint = context.config.endpoint.to_s
825
- end
826
637
  Aws::DataZone::EndpointParameters.new(
827
638
  region: context.config.region,
828
639
  use_fips: context.config.use_fips_endpoint,
829
- endpoint: endpoint,
640
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
830
641
  )
831
642
  end
832
643
  end
833
644
 
834
645
  class GetEnvironmentBlueprintConfiguration
835
646
  def self.build(context)
836
- unless context.config.regional_endpoint
837
- endpoint = context.config.endpoint.to_s
838
- end
839
647
  Aws::DataZone::EndpointParameters.new(
840
648
  region: context.config.region,
841
649
  use_fips: context.config.use_fips_endpoint,
842
- endpoint: endpoint,
650
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
843
651
  )
844
652
  end
845
653
  end
846
654
 
847
655
  class GetEnvironmentCredentials
848
656
  def self.build(context)
849
- unless context.config.regional_endpoint
850
- endpoint = context.config.endpoint.to_s
851
- end
852
657
  Aws::DataZone::EndpointParameters.new(
853
658
  region: context.config.region,
854
659
  use_fips: context.config.use_fips_endpoint,
855
- endpoint: endpoint,
660
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
856
661
  )
857
662
  end
858
663
  end
859
664
 
860
665
  class GetEnvironmentProfile
861
666
  def self.build(context)
862
- unless context.config.regional_endpoint
863
- endpoint = context.config.endpoint.to_s
864
- end
865
667
  Aws::DataZone::EndpointParameters.new(
866
668
  region: context.config.region,
867
669
  use_fips: context.config.use_fips_endpoint,
868
- endpoint: endpoint,
670
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
869
671
  )
870
672
  end
871
673
  end
872
674
 
873
675
  class GetFormType
874
676
  def self.build(context)
875
- unless context.config.regional_endpoint
876
- endpoint = context.config.endpoint.to_s
877
- end
878
677
  Aws::DataZone::EndpointParameters.new(
879
678
  region: context.config.region,
880
679
  use_fips: context.config.use_fips_endpoint,
881
- endpoint: endpoint,
680
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
882
681
  )
883
682
  end
884
683
  end
885
684
 
886
685
  class GetGlossary
887
686
  def self.build(context)
888
- unless context.config.regional_endpoint
889
- endpoint = context.config.endpoint.to_s
890
- end
891
687
  Aws::DataZone::EndpointParameters.new(
892
688
  region: context.config.region,
893
689
  use_fips: context.config.use_fips_endpoint,
894
- endpoint: endpoint,
690
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
895
691
  )
896
692
  end
897
693
  end
898
694
 
899
695
  class GetGlossaryTerm
900
696
  def self.build(context)
901
- unless context.config.regional_endpoint
902
- endpoint = context.config.endpoint.to_s
903
- end
904
697
  Aws::DataZone::EndpointParameters.new(
905
698
  region: context.config.region,
906
699
  use_fips: context.config.use_fips_endpoint,
907
- endpoint: endpoint,
700
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
908
701
  )
909
702
  end
910
703
  end
911
704
 
912
705
  class GetGroupProfile
913
706
  def self.build(context)
914
- unless context.config.regional_endpoint
915
- endpoint = context.config.endpoint.to_s
916
- end
917
707
  Aws::DataZone::EndpointParameters.new(
918
708
  region: context.config.region,
919
709
  use_fips: context.config.use_fips_endpoint,
920
- endpoint: endpoint,
710
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
921
711
  )
922
712
  end
923
713
  end
924
714
 
925
715
  class GetIamPortalLoginUrl
926
716
  def self.build(context)
927
- unless context.config.regional_endpoint
928
- endpoint = context.config.endpoint.to_s
929
- end
930
717
  Aws::DataZone::EndpointParameters.new(
931
718
  region: context.config.region,
932
719
  use_fips: context.config.use_fips_endpoint,
933
- endpoint: endpoint,
720
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
934
721
  )
935
722
  end
936
723
  end
937
724
 
938
725
  class GetLineageNode
939
726
  def self.build(context)
940
- unless context.config.regional_endpoint
941
- endpoint = context.config.endpoint.to_s
942
- end
943
727
  Aws::DataZone::EndpointParameters.new(
944
728
  region: context.config.region,
945
729
  use_fips: context.config.use_fips_endpoint,
946
- endpoint: endpoint,
730
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
947
731
  )
948
732
  end
949
733
  end
950
734
 
951
735
  class GetListing
952
736
  def self.build(context)
953
- unless context.config.regional_endpoint
954
- endpoint = context.config.endpoint.to_s
955
- end
956
737
  Aws::DataZone::EndpointParameters.new(
957
738
  region: context.config.region,
958
739
  use_fips: context.config.use_fips_endpoint,
959
- endpoint: endpoint,
740
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
960
741
  )
961
742
  end
962
743
  end
963
744
 
964
745
  class GetMetadataGenerationRun
965
746
  def self.build(context)
966
- unless context.config.regional_endpoint
967
- endpoint = context.config.endpoint.to_s
968
- end
969
747
  Aws::DataZone::EndpointParameters.new(
970
748
  region: context.config.region,
971
749
  use_fips: context.config.use_fips_endpoint,
972
- endpoint: endpoint,
750
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
973
751
  )
974
752
  end
975
753
  end
976
754
 
977
755
  class GetProject
978
756
  def self.build(context)
979
- unless context.config.regional_endpoint
980
- endpoint = context.config.endpoint.to_s
981
- end
982
757
  Aws::DataZone::EndpointParameters.new(
983
758
  region: context.config.region,
984
759
  use_fips: context.config.use_fips_endpoint,
985
- endpoint: endpoint,
760
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
986
761
  )
987
762
  end
988
763
  end
989
764
 
990
765
  class GetSubscription
991
766
  def self.build(context)
992
- unless context.config.regional_endpoint
993
- endpoint = context.config.endpoint.to_s
994
- end
995
767
  Aws::DataZone::EndpointParameters.new(
996
768
  region: context.config.region,
997
769
  use_fips: context.config.use_fips_endpoint,
998
- endpoint: endpoint,
770
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
999
771
  )
1000
772
  end
1001
773
  end
1002
774
 
1003
775
  class GetSubscriptionGrant
1004
776
  def self.build(context)
1005
- unless context.config.regional_endpoint
1006
- endpoint = context.config.endpoint.to_s
1007
- end
1008
777
  Aws::DataZone::EndpointParameters.new(
1009
778
  region: context.config.region,
1010
779
  use_fips: context.config.use_fips_endpoint,
1011
- endpoint: endpoint,
780
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1012
781
  )
1013
782
  end
1014
783
  end
1015
784
 
1016
785
  class GetSubscriptionRequestDetails
1017
786
  def self.build(context)
1018
- unless context.config.regional_endpoint
1019
- endpoint = context.config.endpoint.to_s
1020
- end
1021
787
  Aws::DataZone::EndpointParameters.new(
1022
788
  region: context.config.region,
1023
789
  use_fips: context.config.use_fips_endpoint,
1024
- endpoint: endpoint,
790
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1025
791
  )
1026
792
  end
1027
793
  end
1028
794
 
1029
795
  class GetSubscriptionTarget
1030
796
  def self.build(context)
1031
- unless context.config.regional_endpoint
1032
- endpoint = context.config.endpoint.to_s
1033
- end
1034
797
  Aws::DataZone::EndpointParameters.new(
1035
798
  region: context.config.region,
1036
799
  use_fips: context.config.use_fips_endpoint,
1037
- endpoint: endpoint,
800
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1038
801
  )
1039
802
  end
1040
803
  end
1041
804
 
1042
805
  class GetTimeSeriesDataPoint
1043
806
  def self.build(context)
1044
- unless context.config.regional_endpoint
1045
- endpoint = context.config.endpoint.to_s
1046
- end
1047
807
  Aws::DataZone::EndpointParameters.new(
1048
808
  region: context.config.region,
1049
809
  use_fips: context.config.use_fips_endpoint,
1050
- endpoint: endpoint,
810
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1051
811
  )
1052
812
  end
1053
813
  end
1054
814
 
1055
815
  class GetUserProfile
1056
816
  def self.build(context)
1057
- unless context.config.regional_endpoint
1058
- endpoint = context.config.endpoint.to_s
1059
- end
1060
817
  Aws::DataZone::EndpointParameters.new(
1061
818
  region: context.config.region,
1062
819
  use_fips: context.config.use_fips_endpoint,
1063
- endpoint: endpoint,
820
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1064
821
  )
1065
822
  end
1066
823
  end
1067
824
 
1068
825
  class ListAssetFilters
1069
826
  def self.build(context)
1070
- unless context.config.regional_endpoint
1071
- endpoint = context.config.endpoint.to_s
1072
- end
1073
827
  Aws::DataZone::EndpointParameters.new(
1074
828
  region: context.config.region,
1075
829
  use_fips: context.config.use_fips_endpoint,
1076
- endpoint: endpoint,
830
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1077
831
  )
1078
832
  end
1079
833
  end
1080
834
 
1081
835
  class ListAssetRevisions
1082
836
  def self.build(context)
1083
- unless context.config.regional_endpoint
1084
- endpoint = context.config.endpoint.to_s
1085
- end
1086
837
  Aws::DataZone::EndpointParameters.new(
1087
838
  region: context.config.region,
1088
839
  use_fips: context.config.use_fips_endpoint,
1089
- endpoint: endpoint,
840
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1090
841
  )
1091
842
  end
1092
843
  end
1093
844
 
1094
845
  class ListDataProductRevisions
1095
846
  def self.build(context)
1096
- unless context.config.regional_endpoint
1097
- endpoint = context.config.endpoint.to_s
1098
- end
1099
847
  Aws::DataZone::EndpointParameters.new(
1100
848
  region: context.config.region,
1101
849
  use_fips: context.config.use_fips_endpoint,
1102
- endpoint: endpoint,
850
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1103
851
  )
1104
852
  end
1105
853
  end
1106
854
 
1107
855
  class ListDataSourceRunActivities
1108
856
  def self.build(context)
1109
- unless context.config.regional_endpoint
1110
- endpoint = context.config.endpoint.to_s
1111
- end
1112
857
  Aws::DataZone::EndpointParameters.new(
1113
858
  region: context.config.region,
1114
859
  use_fips: context.config.use_fips_endpoint,
1115
- endpoint: endpoint,
860
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1116
861
  )
1117
862
  end
1118
863
  end
1119
864
 
1120
865
  class ListDataSourceRuns
1121
866
  def self.build(context)
1122
- unless context.config.regional_endpoint
1123
- endpoint = context.config.endpoint.to_s
1124
- end
1125
867
  Aws::DataZone::EndpointParameters.new(
1126
868
  region: context.config.region,
1127
869
  use_fips: context.config.use_fips_endpoint,
1128
- endpoint: endpoint,
870
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1129
871
  )
1130
872
  end
1131
873
  end
1132
874
 
1133
875
  class ListDataSources
1134
876
  def self.build(context)
1135
- unless context.config.regional_endpoint
1136
- endpoint = context.config.endpoint.to_s
1137
- end
1138
877
  Aws::DataZone::EndpointParameters.new(
1139
878
  region: context.config.region,
1140
879
  use_fips: context.config.use_fips_endpoint,
1141
- endpoint: endpoint,
880
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1142
881
  )
1143
882
  end
1144
883
  end
1145
884
 
1146
885
  class ListDomainUnitsForParent
1147
886
  def self.build(context)
1148
- unless context.config.regional_endpoint
1149
- endpoint = context.config.endpoint.to_s
1150
- end
1151
887
  Aws::DataZone::EndpointParameters.new(
1152
888
  region: context.config.region,
1153
889
  use_fips: context.config.use_fips_endpoint,
1154
- endpoint: endpoint,
890
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1155
891
  )
1156
892
  end
1157
893
  end
1158
894
 
1159
895
  class ListDomains
1160
896
  def self.build(context)
1161
- unless context.config.regional_endpoint
1162
- endpoint = context.config.endpoint.to_s
1163
- end
1164
897
  Aws::DataZone::EndpointParameters.new(
1165
898
  region: context.config.region,
1166
899
  use_fips: context.config.use_fips_endpoint,
1167
- endpoint: endpoint,
900
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1168
901
  )
1169
902
  end
1170
903
  end
1171
904
 
1172
905
  class ListEntityOwners
1173
906
  def self.build(context)
1174
- unless context.config.regional_endpoint
1175
- endpoint = context.config.endpoint.to_s
1176
- end
1177
907
  Aws::DataZone::EndpointParameters.new(
1178
908
  region: context.config.region,
1179
909
  use_fips: context.config.use_fips_endpoint,
1180
- endpoint: endpoint,
910
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1181
911
  )
1182
912
  end
1183
913
  end
1184
914
 
1185
915
  class ListEnvironmentActions
1186
916
  def self.build(context)
1187
- unless context.config.regional_endpoint
1188
- endpoint = context.config.endpoint.to_s
1189
- end
1190
917
  Aws::DataZone::EndpointParameters.new(
1191
918
  region: context.config.region,
1192
919
  use_fips: context.config.use_fips_endpoint,
1193
- endpoint: endpoint,
920
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1194
921
  )
1195
922
  end
1196
923
  end
1197
924
 
1198
925
  class ListEnvironmentBlueprintConfigurations
1199
926
  def self.build(context)
1200
- unless context.config.regional_endpoint
1201
- endpoint = context.config.endpoint.to_s
1202
- end
1203
927
  Aws::DataZone::EndpointParameters.new(
1204
928
  region: context.config.region,
1205
929
  use_fips: context.config.use_fips_endpoint,
1206
- endpoint: endpoint,
930
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1207
931
  )
1208
932
  end
1209
933
  end
1210
934
 
1211
935
  class ListEnvironmentBlueprints
1212
936
  def self.build(context)
1213
- unless context.config.regional_endpoint
1214
- endpoint = context.config.endpoint.to_s
1215
- end
1216
937
  Aws::DataZone::EndpointParameters.new(
1217
938
  region: context.config.region,
1218
939
  use_fips: context.config.use_fips_endpoint,
1219
- endpoint: endpoint,
940
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1220
941
  )
1221
942
  end
1222
943
  end
1223
944
 
1224
945
  class ListEnvironmentProfiles
1225
946
  def self.build(context)
1226
- unless context.config.regional_endpoint
1227
- endpoint = context.config.endpoint.to_s
1228
- end
1229
947
  Aws::DataZone::EndpointParameters.new(
1230
948
  region: context.config.region,
1231
949
  use_fips: context.config.use_fips_endpoint,
1232
- endpoint: endpoint,
950
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1233
951
  )
1234
952
  end
1235
953
  end
1236
954
 
1237
955
  class ListEnvironments
1238
956
  def self.build(context)
1239
- unless context.config.regional_endpoint
1240
- endpoint = context.config.endpoint.to_s
1241
- end
1242
957
  Aws::DataZone::EndpointParameters.new(
1243
958
  region: context.config.region,
1244
959
  use_fips: context.config.use_fips_endpoint,
1245
- endpoint: endpoint,
960
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1246
961
  )
1247
962
  end
1248
963
  end
1249
964
 
1250
965
  class ListLineageNodeHistory
1251
966
  def self.build(context)
1252
- unless context.config.regional_endpoint
1253
- endpoint = context.config.endpoint.to_s
1254
- end
1255
967
  Aws::DataZone::EndpointParameters.new(
1256
968
  region: context.config.region,
1257
969
  use_fips: context.config.use_fips_endpoint,
1258
- endpoint: endpoint,
970
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1259
971
  )
1260
972
  end
1261
973
  end
1262
974
 
1263
975
  class ListMetadataGenerationRuns
1264
976
  def self.build(context)
1265
- unless context.config.regional_endpoint
1266
- endpoint = context.config.endpoint.to_s
1267
- end
1268
977
  Aws::DataZone::EndpointParameters.new(
1269
978
  region: context.config.region,
1270
979
  use_fips: context.config.use_fips_endpoint,
1271
- endpoint: endpoint,
980
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1272
981
  )
1273
982
  end
1274
983
  end
1275
984
 
1276
985
  class ListNotifications
1277
986
  def self.build(context)
1278
- unless context.config.regional_endpoint
1279
- endpoint = context.config.endpoint.to_s
1280
- end
1281
987
  Aws::DataZone::EndpointParameters.new(
1282
988
  region: context.config.region,
1283
989
  use_fips: context.config.use_fips_endpoint,
1284
- endpoint: endpoint,
990
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1285
991
  )
1286
992
  end
1287
993
  end
1288
994
 
1289
995
  class ListPolicyGrants
1290
996
  def self.build(context)
1291
- unless context.config.regional_endpoint
1292
- endpoint = context.config.endpoint.to_s
1293
- end
1294
997
  Aws::DataZone::EndpointParameters.new(
1295
998
  region: context.config.region,
1296
999
  use_fips: context.config.use_fips_endpoint,
1297
- endpoint: endpoint,
1000
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1298
1001
  )
1299
1002
  end
1300
1003
  end
1301
1004
 
1302
1005
  class ListProjectMemberships
1303
1006
  def self.build(context)
1304
- unless context.config.regional_endpoint
1305
- endpoint = context.config.endpoint.to_s
1306
- end
1307
1007
  Aws::DataZone::EndpointParameters.new(
1308
1008
  region: context.config.region,
1309
1009
  use_fips: context.config.use_fips_endpoint,
1310
- endpoint: endpoint,
1010
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1311
1011
  )
1312
1012
  end
1313
1013
  end
1314
1014
 
1315
1015
  class ListProjects
1316
1016
  def self.build(context)
1317
- unless context.config.regional_endpoint
1318
- endpoint = context.config.endpoint.to_s
1319
- end
1320
1017
  Aws::DataZone::EndpointParameters.new(
1321
1018
  region: context.config.region,
1322
1019
  use_fips: context.config.use_fips_endpoint,
1323
- endpoint: endpoint,
1020
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1324
1021
  )
1325
1022
  end
1326
1023
  end
1327
1024
 
1328
1025
  class ListSubscriptionGrants
1329
1026
  def self.build(context)
1330
- unless context.config.regional_endpoint
1331
- endpoint = context.config.endpoint.to_s
1332
- end
1333
1027
  Aws::DataZone::EndpointParameters.new(
1334
1028
  region: context.config.region,
1335
1029
  use_fips: context.config.use_fips_endpoint,
1336
- endpoint: endpoint,
1030
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1337
1031
  )
1338
1032
  end
1339
1033
  end
1340
1034
 
1341
1035
  class ListSubscriptionRequests
1342
1036
  def self.build(context)
1343
- unless context.config.regional_endpoint
1344
- endpoint = context.config.endpoint.to_s
1345
- end
1346
1037
  Aws::DataZone::EndpointParameters.new(
1347
1038
  region: context.config.region,
1348
1039
  use_fips: context.config.use_fips_endpoint,
1349
- endpoint: endpoint,
1040
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1350
1041
  )
1351
1042
  end
1352
1043
  end
1353
1044
 
1354
1045
  class ListSubscriptionTargets
1355
1046
  def self.build(context)
1356
- unless context.config.regional_endpoint
1357
- endpoint = context.config.endpoint.to_s
1358
- end
1359
1047
  Aws::DataZone::EndpointParameters.new(
1360
1048
  region: context.config.region,
1361
1049
  use_fips: context.config.use_fips_endpoint,
1362
- endpoint: endpoint,
1050
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1363
1051
  )
1364
1052
  end
1365
1053
  end
1366
1054
 
1367
1055
  class ListSubscriptions
1368
1056
  def self.build(context)
1369
- unless context.config.regional_endpoint
1370
- endpoint = context.config.endpoint.to_s
1371
- end
1372
1057
  Aws::DataZone::EndpointParameters.new(
1373
1058
  region: context.config.region,
1374
1059
  use_fips: context.config.use_fips_endpoint,
1375
- endpoint: endpoint,
1060
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1376
1061
  )
1377
1062
  end
1378
1063
  end
1379
1064
 
1380
1065
  class ListTagsForResource
1381
1066
  def self.build(context)
1382
- unless context.config.regional_endpoint
1383
- endpoint = context.config.endpoint.to_s
1384
- end
1385
1067
  Aws::DataZone::EndpointParameters.new(
1386
1068
  region: context.config.region,
1387
1069
  use_fips: context.config.use_fips_endpoint,
1388
- endpoint: endpoint,
1070
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1389
1071
  )
1390
1072
  end
1391
1073
  end
1392
1074
 
1393
1075
  class ListTimeSeriesDataPoints
1394
1076
  def self.build(context)
1395
- unless context.config.regional_endpoint
1396
- endpoint = context.config.endpoint.to_s
1397
- end
1398
1077
  Aws::DataZone::EndpointParameters.new(
1399
1078
  region: context.config.region,
1400
1079
  use_fips: context.config.use_fips_endpoint,
1401
- endpoint: endpoint,
1080
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1402
1081
  )
1403
1082
  end
1404
1083
  end
1405
1084
 
1406
1085
  class PostLineageEvent
1407
1086
  def self.build(context)
1408
- unless context.config.regional_endpoint
1409
- endpoint = context.config.endpoint.to_s
1410
- end
1411
1087
  Aws::DataZone::EndpointParameters.new(
1412
1088
  region: context.config.region,
1413
1089
  use_fips: context.config.use_fips_endpoint,
1414
- endpoint: endpoint,
1090
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1415
1091
  )
1416
1092
  end
1417
1093
  end
1418
1094
 
1419
1095
  class PostTimeSeriesDataPoints
1420
1096
  def self.build(context)
1421
- unless context.config.regional_endpoint
1422
- endpoint = context.config.endpoint.to_s
1423
- end
1424
1097
  Aws::DataZone::EndpointParameters.new(
1425
1098
  region: context.config.region,
1426
1099
  use_fips: context.config.use_fips_endpoint,
1427
- endpoint: endpoint,
1100
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1428
1101
  )
1429
1102
  end
1430
1103
  end
1431
1104
 
1432
1105
  class PutEnvironmentBlueprintConfiguration
1433
1106
  def self.build(context)
1434
- unless context.config.regional_endpoint
1435
- endpoint = context.config.endpoint.to_s
1436
- end
1437
1107
  Aws::DataZone::EndpointParameters.new(
1438
1108
  region: context.config.region,
1439
1109
  use_fips: context.config.use_fips_endpoint,
1440
- endpoint: endpoint,
1110
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1441
1111
  )
1442
1112
  end
1443
1113
  end
1444
1114
 
1445
1115
  class RejectPredictions
1446
1116
  def self.build(context)
1447
- unless context.config.regional_endpoint
1448
- endpoint = context.config.endpoint.to_s
1449
- end
1450
1117
  Aws::DataZone::EndpointParameters.new(
1451
1118
  region: context.config.region,
1452
1119
  use_fips: context.config.use_fips_endpoint,
1453
- endpoint: endpoint,
1120
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1454
1121
  )
1455
1122
  end
1456
1123
  end
1457
1124
 
1458
1125
  class RejectSubscriptionRequest
1459
1126
  def self.build(context)
1460
- unless context.config.regional_endpoint
1461
- endpoint = context.config.endpoint.to_s
1462
- end
1463
1127
  Aws::DataZone::EndpointParameters.new(
1464
1128
  region: context.config.region,
1465
1129
  use_fips: context.config.use_fips_endpoint,
1466
- endpoint: endpoint,
1130
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1467
1131
  )
1468
1132
  end
1469
1133
  end
1470
1134
 
1471
1135
  class RemoveEntityOwner
1472
1136
  def self.build(context)
1473
- unless context.config.regional_endpoint
1474
- endpoint = context.config.endpoint.to_s
1475
- end
1476
1137
  Aws::DataZone::EndpointParameters.new(
1477
1138
  region: context.config.region,
1478
1139
  use_fips: context.config.use_fips_endpoint,
1479
- endpoint: endpoint,
1140
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1480
1141
  )
1481
1142
  end
1482
1143
  end
1483
1144
 
1484
1145
  class RemovePolicyGrant
1485
1146
  def self.build(context)
1486
- unless context.config.regional_endpoint
1487
- endpoint = context.config.endpoint.to_s
1488
- end
1489
1147
  Aws::DataZone::EndpointParameters.new(
1490
1148
  region: context.config.region,
1491
1149
  use_fips: context.config.use_fips_endpoint,
1492
- endpoint: endpoint,
1150
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1493
1151
  )
1494
1152
  end
1495
1153
  end
1496
1154
 
1497
1155
  class RevokeSubscription
1498
1156
  def self.build(context)
1499
- unless context.config.regional_endpoint
1500
- endpoint = context.config.endpoint.to_s
1501
- end
1502
1157
  Aws::DataZone::EndpointParameters.new(
1503
1158
  region: context.config.region,
1504
1159
  use_fips: context.config.use_fips_endpoint,
1505
- endpoint: endpoint,
1160
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1506
1161
  )
1507
1162
  end
1508
1163
  end
1509
1164
 
1510
1165
  class Search
1511
1166
  def self.build(context)
1512
- unless context.config.regional_endpoint
1513
- endpoint = context.config.endpoint.to_s
1514
- end
1515
1167
  Aws::DataZone::EndpointParameters.new(
1516
1168
  region: context.config.region,
1517
1169
  use_fips: context.config.use_fips_endpoint,
1518
- endpoint: endpoint,
1170
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1519
1171
  )
1520
1172
  end
1521
1173
  end
1522
1174
 
1523
1175
  class SearchGroupProfiles
1524
1176
  def self.build(context)
1525
- unless context.config.regional_endpoint
1526
- endpoint = context.config.endpoint.to_s
1527
- end
1528
1177
  Aws::DataZone::EndpointParameters.new(
1529
1178
  region: context.config.region,
1530
1179
  use_fips: context.config.use_fips_endpoint,
1531
- endpoint: endpoint,
1180
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1532
1181
  )
1533
1182
  end
1534
1183
  end
1535
1184
 
1536
1185
  class SearchListings
1537
1186
  def self.build(context)
1538
- unless context.config.regional_endpoint
1539
- endpoint = context.config.endpoint.to_s
1540
- end
1541
1187
  Aws::DataZone::EndpointParameters.new(
1542
1188
  region: context.config.region,
1543
1189
  use_fips: context.config.use_fips_endpoint,
1544
- endpoint: endpoint,
1190
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1545
1191
  )
1546
1192
  end
1547
1193
  end
1548
1194
 
1549
1195
  class SearchTypes
1550
1196
  def self.build(context)
1551
- unless context.config.regional_endpoint
1552
- endpoint = context.config.endpoint.to_s
1553
- end
1554
1197
  Aws::DataZone::EndpointParameters.new(
1555
1198
  region: context.config.region,
1556
1199
  use_fips: context.config.use_fips_endpoint,
1557
- endpoint: endpoint,
1200
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1558
1201
  )
1559
1202
  end
1560
1203
  end
1561
1204
 
1562
1205
  class SearchUserProfiles
1563
1206
  def self.build(context)
1564
- unless context.config.regional_endpoint
1565
- endpoint = context.config.endpoint.to_s
1566
- end
1567
1207
  Aws::DataZone::EndpointParameters.new(
1568
1208
  region: context.config.region,
1569
1209
  use_fips: context.config.use_fips_endpoint,
1570
- endpoint: endpoint,
1210
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1571
1211
  )
1572
1212
  end
1573
1213
  end
1574
1214
 
1575
1215
  class StartDataSourceRun
1576
1216
  def self.build(context)
1577
- unless context.config.regional_endpoint
1578
- endpoint = context.config.endpoint.to_s
1579
- end
1580
1217
  Aws::DataZone::EndpointParameters.new(
1581
1218
  region: context.config.region,
1582
1219
  use_fips: context.config.use_fips_endpoint,
1583
- endpoint: endpoint,
1220
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1584
1221
  )
1585
1222
  end
1586
1223
  end
1587
1224
 
1588
1225
  class StartMetadataGenerationRun
1589
1226
  def self.build(context)
1590
- unless context.config.regional_endpoint
1591
- endpoint = context.config.endpoint.to_s
1592
- end
1593
1227
  Aws::DataZone::EndpointParameters.new(
1594
1228
  region: context.config.region,
1595
1229
  use_fips: context.config.use_fips_endpoint,
1596
- endpoint: endpoint,
1230
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1597
1231
  )
1598
1232
  end
1599
1233
  end
1600
1234
 
1601
1235
  class TagResource
1602
1236
  def self.build(context)
1603
- unless context.config.regional_endpoint
1604
- endpoint = context.config.endpoint.to_s
1605
- end
1606
1237
  Aws::DataZone::EndpointParameters.new(
1607
1238
  region: context.config.region,
1608
1239
  use_fips: context.config.use_fips_endpoint,
1609
- endpoint: endpoint,
1240
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1610
1241
  )
1611
1242
  end
1612
1243
  end
1613
1244
 
1614
1245
  class UntagResource
1615
1246
  def self.build(context)
1616
- unless context.config.regional_endpoint
1617
- endpoint = context.config.endpoint.to_s
1618
- end
1619
1247
  Aws::DataZone::EndpointParameters.new(
1620
1248
  region: context.config.region,
1621
1249
  use_fips: context.config.use_fips_endpoint,
1622
- endpoint: endpoint,
1250
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1623
1251
  )
1624
1252
  end
1625
1253
  end
1626
1254
 
1627
1255
  class UpdateAssetFilter
1628
1256
  def self.build(context)
1629
- unless context.config.regional_endpoint
1630
- endpoint = context.config.endpoint.to_s
1631
- end
1632
1257
  Aws::DataZone::EndpointParameters.new(
1633
1258
  region: context.config.region,
1634
1259
  use_fips: context.config.use_fips_endpoint,
1635
- endpoint: endpoint,
1260
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1636
1261
  )
1637
1262
  end
1638
1263
  end
1639
1264
 
1640
1265
  class UpdateDataSource
1641
1266
  def self.build(context)
1642
- unless context.config.regional_endpoint
1643
- endpoint = context.config.endpoint.to_s
1644
- end
1645
1267
  Aws::DataZone::EndpointParameters.new(
1646
1268
  region: context.config.region,
1647
1269
  use_fips: context.config.use_fips_endpoint,
1648
- endpoint: endpoint,
1270
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1649
1271
  )
1650
1272
  end
1651
1273
  end
1652
1274
 
1653
1275
  class UpdateDomain
1654
1276
  def self.build(context)
1655
- unless context.config.regional_endpoint
1656
- endpoint = context.config.endpoint.to_s
1657
- end
1658
1277
  Aws::DataZone::EndpointParameters.new(
1659
1278
  region: context.config.region,
1660
1279
  use_fips: context.config.use_fips_endpoint,
1661
- endpoint: endpoint,
1280
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1662
1281
  )
1663
1282
  end
1664
1283
  end
1665
1284
 
1666
1285
  class UpdateDomainUnit
1667
1286
  def self.build(context)
1668
- unless context.config.regional_endpoint
1669
- endpoint = context.config.endpoint.to_s
1670
- end
1671
1287
  Aws::DataZone::EndpointParameters.new(
1672
1288
  region: context.config.region,
1673
1289
  use_fips: context.config.use_fips_endpoint,
1674
- endpoint: endpoint,
1290
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1675
1291
  )
1676
1292
  end
1677
1293
  end
1678
1294
 
1679
1295
  class UpdateEnvironment
1680
1296
  def self.build(context)
1681
- unless context.config.regional_endpoint
1682
- endpoint = context.config.endpoint.to_s
1683
- end
1684
1297
  Aws::DataZone::EndpointParameters.new(
1685
1298
  region: context.config.region,
1686
1299
  use_fips: context.config.use_fips_endpoint,
1687
- endpoint: endpoint,
1300
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1688
1301
  )
1689
1302
  end
1690
1303
  end
1691
1304
 
1692
1305
  class UpdateEnvironmentAction
1693
1306
  def self.build(context)
1694
- unless context.config.regional_endpoint
1695
- endpoint = context.config.endpoint.to_s
1696
- end
1697
1307
  Aws::DataZone::EndpointParameters.new(
1698
1308
  region: context.config.region,
1699
1309
  use_fips: context.config.use_fips_endpoint,
1700
- endpoint: endpoint,
1310
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1701
1311
  )
1702
1312
  end
1703
1313
  end
1704
1314
 
1705
1315
  class UpdateEnvironmentProfile
1706
1316
  def self.build(context)
1707
- unless context.config.regional_endpoint
1708
- endpoint = context.config.endpoint.to_s
1709
- end
1710
1317
  Aws::DataZone::EndpointParameters.new(
1711
1318
  region: context.config.region,
1712
1319
  use_fips: context.config.use_fips_endpoint,
1713
- endpoint: endpoint,
1320
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1714
1321
  )
1715
1322
  end
1716
1323
  end
1717
1324
 
1718
1325
  class UpdateGlossary
1719
1326
  def self.build(context)
1720
- unless context.config.regional_endpoint
1721
- endpoint = context.config.endpoint.to_s
1722
- end
1723
1327
  Aws::DataZone::EndpointParameters.new(
1724
1328
  region: context.config.region,
1725
1329
  use_fips: context.config.use_fips_endpoint,
1726
- endpoint: endpoint,
1330
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1727
1331
  )
1728
1332
  end
1729
1333
  end
1730
1334
 
1731
1335
  class UpdateGlossaryTerm
1732
1336
  def self.build(context)
1733
- unless context.config.regional_endpoint
1734
- endpoint = context.config.endpoint.to_s
1735
- end
1736
1337
  Aws::DataZone::EndpointParameters.new(
1737
1338
  region: context.config.region,
1738
1339
  use_fips: context.config.use_fips_endpoint,
1739
- endpoint: endpoint,
1340
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1740
1341
  )
1741
1342
  end
1742
1343
  end
1743
1344
 
1744
1345
  class UpdateGroupProfile
1745
1346
  def self.build(context)
1746
- unless context.config.regional_endpoint
1747
- endpoint = context.config.endpoint.to_s
1748
- end
1749
1347
  Aws::DataZone::EndpointParameters.new(
1750
1348
  region: context.config.region,
1751
1349
  use_fips: context.config.use_fips_endpoint,
1752
- endpoint: endpoint,
1350
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1753
1351
  )
1754
1352
  end
1755
1353
  end
1756
1354
 
1757
1355
  class UpdateProject
1758
1356
  def self.build(context)
1759
- unless context.config.regional_endpoint
1760
- endpoint = context.config.endpoint.to_s
1761
- end
1762
1357
  Aws::DataZone::EndpointParameters.new(
1763
1358
  region: context.config.region,
1764
1359
  use_fips: context.config.use_fips_endpoint,
1765
- endpoint: endpoint,
1360
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1766
1361
  )
1767
1362
  end
1768
1363
  end
1769
1364
 
1770
1365
  class UpdateSubscriptionGrantStatus
1771
1366
  def self.build(context)
1772
- unless context.config.regional_endpoint
1773
- endpoint = context.config.endpoint.to_s
1774
- end
1775
1367
  Aws::DataZone::EndpointParameters.new(
1776
1368
  region: context.config.region,
1777
1369
  use_fips: context.config.use_fips_endpoint,
1778
- endpoint: endpoint,
1370
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1779
1371
  )
1780
1372
  end
1781
1373
  end
1782
1374
 
1783
1375
  class UpdateSubscriptionRequest
1784
1376
  def self.build(context)
1785
- unless context.config.regional_endpoint
1786
- endpoint = context.config.endpoint.to_s
1787
- end
1788
1377
  Aws::DataZone::EndpointParameters.new(
1789
1378
  region: context.config.region,
1790
1379
  use_fips: context.config.use_fips_endpoint,
1791
- endpoint: endpoint,
1380
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1792
1381
  )
1793
1382
  end
1794
1383
  end
1795
1384
 
1796
1385
  class UpdateSubscriptionTarget
1797
1386
  def self.build(context)
1798
- unless context.config.regional_endpoint
1799
- endpoint = context.config.endpoint.to_s
1800
- end
1801
1387
  Aws::DataZone::EndpointParameters.new(
1802
1388
  region: context.config.region,
1803
1389
  use_fips: context.config.use_fips_endpoint,
1804
- endpoint: endpoint,
1390
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1805
1391
  )
1806
1392
  end
1807
1393
  end
1808
1394
 
1809
1395
  class UpdateUserProfile
1810
1396
  def self.build(context)
1811
- unless context.config.regional_endpoint
1812
- endpoint = context.config.endpoint.to_s
1813
- end
1814
1397
  Aws::DataZone::EndpointParameters.new(
1815
1398
  region: context.config.region,
1816
1399
  use_fips: context.config.use_fips_endpoint,
1817
- endpoint: endpoint,
1400
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1818
1401
  )
1819
1402
  end
1820
1403
  end