aws-sdk-athena 1.57.0 → 1.59.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -81,6 +81,20 @@ module Aws::Athena
81
81
  end
82
82
  end
83
83
 
84
+ class CreateNotebook
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::Athena::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
84
98
  class CreatePreparedStatement
85
99
  def self.build(context)
86
100
  unless context.config.regional_endpoint
@@ -95,6 +109,20 @@ module Aws::Athena
95
109
  end
96
110
  end
97
111
 
112
+ class CreatePresignedNotebookUrl
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::Athena::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
98
126
  class CreateWorkGroup
99
127
  def self.build(context)
100
128
  unless context.config.regional_endpoint
@@ -137,6 +165,20 @@ module Aws::Athena
137
165
  end
138
166
  end
139
167
 
168
+ class DeleteNotebook
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::Athena::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
140
182
  class DeletePreparedStatement
141
183
  def self.build(context)
142
184
  unless context.config.regional_endpoint
@@ -165,6 +207,62 @@ module Aws::Athena
165
207
  end
166
208
  end
167
209
 
210
+ class ExportNotebook
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::Athena::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ class GetCalculationExecution
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::Athena::EndpointParameters.new(
230
+ region: context.config.region,
231
+ use_dual_stack: context.config.use_dualstack_endpoint,
232
+ use_fips: context.config.use_fips_endpoint,
233
+ endpoint: endpoint,
234
+ )
235
+ end
236
+ end
237
+
238
+ class GetCalculationExecutionCode
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::Athena::EndpointParameters.new(
244
+ region: context.config.region,
245
+ use_dual_stack: context.config.use_dualstack_endpoint,
246
+ use_fips: context.config.use_fips_endpoint,
247
+ endpoint: endpoint,
248
+ )
249
+ end
250
+ end
251
+
252
+ class GetCalculationExecutionStatus
253
+ def self.build(context)
254
+ unless context.config.regional_endpoint
255
+ endpoint = context.config.endpoint.to_s
256
+ end
257
+ Aws::Athena::EndpointParameters.new(
258
+ region: context.config.region,
259
+ use_dual_stack: context.config.use_dualstack_endpoint,
260
+ use_fips: context.config.use_fips_endpoint,
261
+ endpoint: endpoint,
262
+ )
263
+ end
264
+ end
265
+
168
266
  class GetDataCatalog
169
267
  def self.build(context)
170
268
  unless context.config.regional_endpoint
@@ -207,6 +305,20 @@ module Aws::Athena
207
305
  end
208
306
  end
209
307
 
308
+ class GetNotebookMetadata
309
+ def self.build(context)
310
+ unless context.config.regional_endpoint
311
+ endpoint = context.config.endpoint.to_s
312
+ end
313
+ Aws::Athena::EndpointParameters.new(
314
+ region: context.config.region,
315
+ use_dual_stack: context.config.use_dualstack_endpoint,
316
+ use_fips: context.config.use_fips_endpoint,
317
+ endpoint: endpoint,
318
+ )
319
+ end
320
+ end
321
+
210
322
  class GetPreparedStatement
211
323
  def self.build(context)
212
324
  unless context.config.regional_endpoint
@@ -263,6 +375,34 @@ module Aws::Athena
263
375
  end
264
376
  end
265
377
 
378
+ class GetSession
379
+ def self.build(context)
380
+ unless context.config.regional_endpoint
381
+ endpoint = context.config.endpoint.to_s
382
+ end
383
+ Aws::Athena::EndpointParameters.new(
384
+ region: context.config.region,
385
+ use_dual_stack: context.config.use_dualstack_endpoint,
386
+ use_fips: context.config.use_fips_endpoint,
387
+ endpoint: endpoint,
388
+ )
389
+ end
390
+ end
391
+
392
+ class GetSessionStatus
393
+ def self.build(context)
394
+ unless context.config.regional_endpoint
395
+ endpoint = context.config.endpoint.to_s
396
+ end
397
+ Aws::Athena::EndpointParameters.new(
398
+ region: context.config.region,
399
+ use_dual_stack: context.config.use_dualstack_endpoint,
400
+ use_fips: context.config.use_fips_endpoint,
401
+ endpoint: endpoint,
402
+ )
403
+ end
404
+ end
405
+
266
406
  class GetTableMetadata
267
407
  def self.build(context)
268
408
  unless context.config.regional_endpoint
@@ -291,6 +431,48 @@ module Aws::Athena
291
431
  end
292
432
  end
293
433
 
434
+ class ImportNotebook
435
+ def self.build(context)
436
+ unless context.config.regional_endpoint
437
+ endpoint = context.config.endpoint.to_s
438
+ end
439
+ Aws::Athena::EndpointParameters.new(
440
+ region: context.config.region,
441
+ use_dual_stack: context.config.use_dualstack_endpoint,
442
+ use_fips: context.config.use_fips_endpoint,
443
+ endpoint: endpoint,
444
+ )
445
+ end
446
+ end
447
+
448
+ class ListApplicationDPUSizes
449
+ def self.build(context)
450
+ unless context.config.regional_endpoint
451
+ endpoint = context.config.endpoint.to_s
452
+ end
453
+ Aws::Athena::EndpointParameters.new(
454
+ region: context.config.region,
455
+ use_dual_stack: context.config.use_dualstack_endpoint,
456
+ use_fips: context.config.use_fips_endpoint,
457
+ endpoint: endpoint,
458
+ )
459
+ end
460
+ end
461
+
462
+ class ListCalculationExecutions
463
+ def self.build(context)
464
+ unless context.config.regional_endpoint
465
+ endpoint = context.config.endpoint.to_s
466
+ end
467
+ Aws::Athena::EndpointParameters.new(
468
+ region: context.config.region,
469
+ use_dual_stack: context.config.use_dualstack_endpoint,
470
+ use_fips: context.config.use_fips_endpoint,
471
+ endpoint: endpoint,
472
+ )
473
+ end
474
+ end
475
+
294
476
  class ListDataCatalogs
295
477
  def self.build(context)
296
478
  unless context.config.regional_endpoint
@@ -333,6 +515,20 @@ module Aws::Athena
333
515
  end
334
516
  end
335
517
 
518
+ class ListExecutors
519
+ def self.build(context)
520
+ unless context.config.regional_endpoint
521
+ endpoint = context.config.endpoint.to_s
522
+ end
523
+ Aws::Athena::EndpointParameters.new(
524
+ region: context.config.region,
525
+ use_dual_stack: context.config.use_dualstack_endpoint,
526
+ use_fips: context.config.use_fips_endpoint,
527
+ endpoint: endpoint,
528
+ )
529
+ end
530
+ end
531
+
336
532
  class ListNamedQueries
337
533
  def self.build(context)
338
534
  unless context.config.regional_endpoint
@@ -347,6 +543,34 @@ module Aws::Athena
347
543
  end
348
544
  end
349
545
 
546
+ class ListNotebookMetadata
547
+ def self.build(context)
548
+ unless context.config.regional_endpoint
549
+ endpoint = context.config.endpoint.to_s
550
+ end
551
+ Aws::Athena::EndpointParameters.new(
552
+ region: context.config.region,
553
+ use_dual_stack: context.config.use_dualstack_endpoint,
554
+ use_fips: context.config.use_fips_endpoint,
555
+ endpoint: endpoint,
556
+ )
557
+ end
558
+ end
559
+
560
+ class ListNotebookSessions
561
+ def self.build(context)
562
+ unless context.config.regional_endpoint
563
+ endpoint = context.config.endpoint.to_s
564
+ end
565
+ Aws::Athena::EndpointParameters.new(
566
+ region: context.config.region,
567
+ use_dual_stack: context.config.use_dualstack_endpoint,
568
+ use_fips: context.config.use_fips_endpoint,
569
+ endpoint: endpoint,
570
+ )
571
+ end
572
+ end
573
+
350
574
  class ListPreparedStatements
351
575
  def self.build(context)
352
576
  unless context.config.regional_endpoint
@@ -375,6 +599,20 @@ module Aws::Athena
375
599
  end
376
600
  end
377
601
 
602
+ class ListSessions
603
+ def self.build(context)
604
+ unless context.config.regional_endpoint
605
+ endpoint = context.config.endpoint.to_s
606
+ end
607
+ Aws::Athena::EndpointParameters.new(
608
+ region: context.config.region,
609
+ use_dual_stack: context.config.use_dualstack_endpoint,
610
+ use_fips: context.config.use_fips_endpoint,
611
+ endpoint: endpoint,
612
+ )
613
+ end
614
+ end
615
+
378
616
  class ListTableMetadata
379
617
  def self.build(context)
380
618
  unless context.config.regional_endpoint
@@ -417,6 +655,20 @@ module Aws::Athena
417
655
  end
418
656
  end
419
657
 
658
+ class StartCalculationExecution
659
+ def self.build(context)
660
+ unless context.config.regional_endpoint
661
+ endpoint = context.config.endpoint.to_s
662
+ end
663
+ Aws::Athena::EndpointParameters.new(
664
+ region: context.config.region,
665
+ use_dual_stack: context.config.use_dualstack_endpoint,
666
+ use_fips: context.config.use_fips_endpoint,
667
+ endpoint: endpoint,
668
+ )
669
+ end
670
+ end
671
+
420
672
  class StartQueryExecution
421
673
  def self.build(context)
422
674
  unless context.config.regional_endpoint
@@ -431,6 +683,34 @@ module Aws::Athena
431
683
  end
432
684
  end
433
685
 
686
+ class StartSession
687
+ def self.build(context)
688
+ unless context.config.regional_endpoint
689
+ endpoint = context.config.endpoint.to_s
690
+ end
691
+ Aws::Athena::EndpointParameters.new(
692
+ region: context.config.region,
693
+ use_dual_stack: context.config.use_dualstack_endpoint,
694
+ use_fips: context.config.use_fips_endpoint,
695
+ endpoint: endpoint,
696
+ )
697
+ end
698
+ end
699
+
700
+ class StopCalculationExecution
701
+ def self.build(context)
702
+ unless context.config.regional_endpoint
703
+ endpoint = context.config.endpoint.to_s
704
+ end
705
+ Aws::Athena::EndpointParameters.new(
706
+ region: context.config.region,
707
+ use_dual_stack: context.config.use_dualstack_endpoint,
708
+ use_fips: context.config.use_fips_endpoint,
709
+ endpoint: endpoint,
710
+ )
711
+ end
712
+ end
713
+
434
714
  class StopQueryExecution
435
715
  def self.build(context)
436
716
  unless context.config.regional_endpoint
@@ -459,6 +739,20 @@ module Aws::Athena
459
739
  end
460
740
  end
461
741
 
742
+ class TerminateSession
743
+ def self.build(context)
744
+ unless context.config.regional_endpoint
745
+ endpoint = context.config.endpoint.to_s
746
+ end
747
+ Aws::Athena::EndpointParameters.new(
748
+ region: context.config.region,
749
+ use_dual_stack: context.config.use_dualstack_endpoint,
750
+ use_fips: context.config.use_fips_endpoint,
751
+ endpoint: endpoint,
752
+ )
753
+ end
754
+ end
755
+
462
756
  class UntagResource
463
757
  def self.build(context)
464
758
  unless context.config.regional_endpoint
@@ -501,6 +795,34 @@ module Aws::Athena
501
795
  end
502
796
  end
503
797
 
798
+ class UpdateNotebook
799
+ def self.build(context)
800
+ unless context.config.regional_endpoint
801
+ endpoint = context.config.endpoint.to_s
802
+ end
803
+ Aws::Athena::EndpointParameters.new(
804
+ region: context.config.region,
805
+ use_dual_stack: context.config.use_dualstack_endpoint,
806
+ use_fips: context.config.use_fips_endpoint,
807
+ endpoint: endpoint,
808
+ )
809
+ end
810
+ end
811
+
812
+ class UpdateNotebookMetadata
813
+ def self.build(context)
814
+ unless context.config.regional_endpoint
815
+ endpoint = context.config.endpoint.to_s
816
+ end
817
+ Aws::Athena::EndpointParameters.new(
818
+ region: context.config.region,
819
+ use_dual_stack: context.config.use_dualstack_endpoint,
820
+ use_fips: context.config.use_fips_endpoint,
821
+ endpoint: endpoint,
822
+ )
823
+ end
824
+ end
825
+
504
826
  class UpdatePreparedStatement
505
827
  def self.build(context)
506
828
  unless context.config.regional_endpoint
@@ -31,6 +31,7 @@ module Aws::Athena
31
31
  # * {InvalidRequestException}
32
32
  # * {MetadataException}
33
33
  # * {ResourceNotFoundException}
34
+ # * {SessionAlreadyExistsException}
34
35
  # * {TooManyRequestsException}
35
36
  #
36
37
  # Additionally, error classes are dynamically generated for service errors based on the error code
@@ -109,6 +110,21 @@ module Aws::Athena
109
110
  end
110
111
  end
111
112
 
113
+ class SessionAlreadyExistsException < ServiceError
114
+
115
+ # @param [Seahorse::Client::RequestContext] context
116
+ # @param [String] message
117
+ # @param [Aws::Athena::Types::SessionAlreadyExistsException] data
118
+ def initialize(context, message, data = Aws::EmptyStructure.new)
119
+ super(context, message, data)
120
+ end
121
+
122
+ # @return [String]
123
+ def message
124
+ @message || @data[:message]
125
+ end
126
+ end
127
+
112
128
  class TooManyRequestsException < ServiceError
113
129
 
114
130
  # @param [Seahorse::Client::RequestContext] context
@@ -66,24 +66,40 @@ module Aws::Athena
66
66
  Aws::Athena::Endpoints::CreateDataCatalog.build(context)
67
67
  when :create_named_query
68
68
  Aws::Athena::Endpoints::CreateNamedQuery.build(context)
69
+ when :create_notebook
70
+ Aws::Athena::Endpoints::CreateNotebook.build(context)
69
71
  when :create_prepared_statement
70
72
  Aws::Athena::Endpoints::CreatePreparedStatement.build(context)
73
+ when :create_presigned_notebook_url
74
+ Aws::Athena::Endpoints::CreatePresignedNotebookUrl.build(context)
71
75
  when :create_work_group
72
76
  Aws::Athena::Endpoints::CreateWorkGroup.build(context)
73
77
  when :delete_data_catalog
74
78
  Aws::Athena::Endpoints::DeleteDataCatalog.build(context)
75
79
  when :delete_named_query
76
80
  Aws::Athena::Endpoints::DeleteNamedQuery.build(context)
81
+ when :delete_notebook
82
+ Aws::Athena::Endpoints::DeleteNotebook.build(context)
77
83
  when :delete_prepared_statement
78
84
  Aws::Athena::Endpoints::DeletePreparedStatement.build(context)
79
85
  when :delete_work_group
80
86
  Aws::Athena::Endpoints::DeleteWorkGroup.build(context)
87
+ when :export_notebook
88
+ Aws::Athena::Endpoints::ExportNotebook.build(context)
89
+ when :get_calculation_execution
90
+ Aws::Athena::Endpoints::GetCalculationExecution.build(context)
91
+ when :get_calculation_execution_code
92
+ Aws::Athena::Endpoints::GetCalculationExecutionCode.build(context)
93
+ when :get_calculation_execution_status
94
+ Aws::Athena::Endpoints::GetCalculationExecutionStatus.build(context)
81
95
  when :get_data_catalog
82
96
  Aws::Athena::Endpoints::GetDataCatalog.build(context)
83
97
  when :get_database
84
98
  Aws::Athena::Endpoints::GetDatabase.build(context)
85
99
  when :get_named_query
86
100
  Aws::Athena::Endpoints::GetNamedQuery.build(context)
101
+ when :get_notebook_metadata
102
+ Aws::Athena::Endpoints::GetNotebookMetadata.build(context)
87
103
  when :get_prepared_statement
88
104
  Aws::Athena::Endpoints::GetPreparedStatement.build(context)
89
105
  when :get_query_execution
@@ -92,40 +108,70 @@ module Aws::Athena
92
108
  Aws::Athena::Endpoints::GetQueryResults.build(context)
93
109
  when :get_query_runtime_statistics
94
110
  Aws::Athena::Endpoints::GetQueryRuntimeStatistics.build(context)
111
+ when :get_session
112
+ Aws::Athena::Endpoints::GetSession.build(context)
113
+ when :get_session_status
114
+ Aws::Athena::Endpoints::GetSessionStatus.build(context)
95
115
  when :get_table_metadata
96
116
  Aws::Athena::Endpoints::GetTableMetadata.build(context)
97
117
  when :get_work_group
98
118
  Aws::Athena::Endpoints::GetWorkGroup.build(context)
119
+ when :import_notebook
120
+ Aws::Athena::Endpoints::ImportNotebook.build(context)
121
+ when :list_application_dpu_sizes
122
+ Aws::Athena::Endpoints::ListApplicationDPUSizes.build(context)
123
+ when :list_calculation_executions
124
+ Aws::Athena::Endpoints::ListCalculationExecutions.build(context)
99
125
  when :list_data_catalogs
100
126
  Aws::Athena::Endpoints::ListDataCatalogs.build(context)
101
127
  when :list_databases
102
128
  Aws::Athena::Endpoints::ListDatabases.build(context)
103
129
  when :list_engine_versions
104
130
  Aws::Athena::Endpoints::ListEngineVersions.build(context)
131
+ when :list_executors
132
+ Aws::Athena::Endpoints::ListExecutors.build(context)
105
133
  when :list_named_queries
106
134
  Aws::Athena::Endpoints::ListNamedQueries.build(context)
135
+ when :list_notebook_metadata
136
+ Aws::Athena::Endpoints::ListNotebookMetadata.build(context)
137
+ when :list_notebook_sessions
138
+ Aws::Athena::Endpoints::ListNotebookSessions.build(context)
107
139
  when :list_prepared_statements
108
140
  Aws::Athena::Endpoints::ListPreparedStatements.build(context)
109
141
  when :list_query_executions
110
142
  Aws::Athena::Endpoints::ListQueryExecutions.build(context)
143
+ when :list_sessions
144
+ Aws::Athena::Endpoints::ListSessions.build(context)
111
145
  when :list_table_metadata
112
146
  Aws::Athena::Endpoints::ListTableMetadata.build(context)
113
147
  when :list_tags_for_resource
114
148
  Aws::Athena::Endpoints::ListTagsForResource.build(context)
115
149
  when :list_work_groups
116
150
  Aws::Athena::Endpoints::ListWorkGroups.build(context)
151
+ when :start_calculation_execution
152
+ Aws::Athena::Endpoints::StartCalculationExecution.build(context)
117
153
  when :start_query_execution
118
154
  Aws::Athena::Endpoints::StartQueryExecution.build(context)
155
+ when :start_session
156
+ Aws::Athena::Endpoints::StartSession.build(context)
157
+ when :stop_calculation_execution
158
+ Aws::Athena::Endpoints::StopCalculationExecution.build(context)
119
159
  when :stop_query_execution
120
160
  Aws::Athena::Endpoints::StopQueryExecution.build(context)
121
161
  when :tag_resource
122
162
  Aws::Athena::Endpoints::TagResource.build(context)
163
+ when :terminate_session
164
+ Aws::Athena::Endpoints::TerminateSession.build(context)
123
165
  when :untag_resource
124
166
  Aws::Athena::Endpoints::UntagResource.build(context)
125
167
  when :update_data_catalog
126
168
  Aws::Athena::Endpoints::UpdateDataCatalog.build(context)
127
169
  when :update_named_query
128
170
  Aws::Athena::Endpoints::UpdateNamedQuery.build(context)
171
+ when :update_notebook
172
+ Aws::Athena::Endpoints::UpdateNotebook.build(context)
173
+ when :update_notebook_metadata
174
+ Aws::Athena::Endpoints::UpdateNotebookMetadata.build(context)
129
175
  when :update_prepared_statement
130
176
  Aws::Athena::Endpoints::UpdatePreparedStatement.build(context)
131
177
  when :update_work_group