aws-sdk-athena 1.74.0 → 1.83.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +45 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-athena/client.rb +172 -102
- data/lib/aws-sdk-athena/client_api.rb +30 -1
- data/lib/aws-sdk-athena/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-athena/plugins/endpoints.rb +4 -2
- data/lib/aws-sdk-athena/types.rb +188 -34
- data/lib/aws-sdk-athena.rb +1 -1
- data/sig/client.rbs +1012 -0
- data/sig/errors.rbs +37 -0
- data/sig/resource.rbs +80 -0
- data/sig/types.rbs +1323 -0
- data/sig/waiters.rbs +13 -0
- metadata +14 -9
@@ -21,6 +21,7 @@ module Aws::Athena
|
|
21
21
|
ApplicationDPUSizesList = Shapes::ListShape.new(name: 'ApplicationDPUSizesList')
|
22
22
|
AthenaError = Shapes::StructureShape.new(name: 'AthenaError')
|
23
23
|
AuthToken = Shapes::StringShape.new(name: 'AuthToken')
|
24
|
+
AuthenticationType = Shapes::StringShape.new(name: 'AuthenticationType')
|
24
25
|
AwsAccountId = Shapes::StringShape.new(name: 'AwsAccountId')
|
25
26
|
BatchGetNamedQueryInput = Shapes::StructureShape.new(name: 'BatchGetNamedQueryInput')
|
26
27
|
BatchGetNamedQueryOutput = Shapes::StructureShape.new(name: 'BatchGetNamedQueryOutput')
|
@@ -154,6 +155,9 @@ module Aws::Athena
|
|
154
155
|
GetWorkGroupInput = Shapes::StructureShape.new(name: 'GetWorkGroupInput')
|
155
156
|
GetWorkGroupOutput = Shapes::StructureShape.new(name: 'GetWorkGroupOutput')
|
156
157
|
IdempotencyToken = Shapes::StringShape.new(name: 'IdempotencyToken')
|
158
|
+
IdentityCenterApplicationArn = Shapes::StringShape.new(name: 'IdentityCenterApplicationArn')
|
159
|
+
IdentityCenterConfiguration = Shapes::StructureShape.new(name: 'IdentityCenterConfiguration')
|
160
|
+
IdentityCenterInstanceArn = Shapes::StringShape.new(name: 'IdentityCenterInstanceArn')
|
157
161
|
ImportNotebookInput = Shapes::StructureShape.new(name: 'ImportNotebookInput')
|
158
162
|
ImportNotebookOutput = Shapes::StructureShape.new(name: 'ImportNotebookOutput')
|
159
163
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
@@ -243,6 +247,7 @@ module Aws::Athena
|
|
243
247
|
QueryExecutionState = Shapes::StringShape.new(name: 'QueryExecutionState')
|
244
248
|
QueryExecutionStatistics = Shapes::StructureShape.new(name: 'QueryExecutionStatistics')
|
245
249
|
QueryExecutionStatus = Shapes::StructureShape.new(name: 'QueryExecutionStatus')
|
250
|
+
QueryResultsS3AccessGrantsConfiguration = Shapes::StructureShape.new(name: 'QueryResultsS3AccessGrantsConfiguration')
|
246
251
|
QueryRuntimeStatistics = Shapes::StructureShape.new(name: 'QueryRuntimeStatistics')
|
247
252
|
QueryRuntimeStatisticsRows = Shapes::StructureShape.new(name: 'QueryRuntimeStatisticsRows')
|
248
253
|
QueryRuntimeStatisticsTimeline = Shapes::StructureShape.new(name: 'QueryRuntimeStatisticsTimeline')
|
@@ -650,6 +655,7 @@ module Aws::Athena
|
|
650
655
|
GetCapacityReservationOutput.struct_class = Types::GetCapacityReservationOutput
|
651
656
|
|
652
657
|
GetDataCatalogInput.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
|
658
|
+
GetDataCatalogInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
|
653
659
|
GetDataCatalogInput.struct_class = Types::GetDataCatalogInput
|
654
660
|
|
655
661
|
GetDataCatalogOutput.add_member(:data_catalog, Shapes::ShapeRef.new(shape: DataCatalog, location_name: "DataCatalog"))
|
@@ -657,6 +663,7 @@ module Aws::Athena
|
|
657
663
|
|
658
664
|
GetDatabaseInput.add_member(:catalog_name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "CatalogName"))
|
659
665
|
GetDatabaseInput.add_member(:database_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "DatabaseName"))
|
666
|
+
GetDatabaseInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
|
660
667
|
GetDatabaseInput.struct_class = Types::GetDatabaseInput
|
661
668
|
|
662
669
|
GetDatabaseOutput.add_member(:database, Shapes::ShapeRef.new(shape: Database, location_name: "Database"))
|
@@ -727,6 +734,7 @@ module Aws::Athena
|
|
727
734
|
GetTableMetadataInput.add_member(:catalog_name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "CatalogName"))
|
728
735
|
GetTableMetadataInput.add_member(:database_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "DatabaseName"))
|
729
736
|
GetTableMetadataInput.add_member(:table_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "TableName"))
|
737
|
+
GetTableMetadataInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
|
730
738
|
GetTableMetadataInput.struct_class = Types::GetTableMetadataInput
|
731
739
|
|
732
740
|
GetTableMetadataOutput.add_member(:table_metadata, Shapes::ShapeRef.new(shape: TableMetadata, location_name: "TableMetadata"))
|
@@ -738,10 +746,15 @@ module Aws::Athena
|
|
738
746
|
GetWorkGroupOutput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroup, location_name: "WorkGroup"))
|
739
747
|
GetWorkGroupOutput.struct_class = Types::GetWorkGroupOutput
|
740
748
|
|
749
|
+
IdentityCenterConfiguration.add_member(:enable_identity_center, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "EnableIdentityCenter"))
|
750
|
+
IdentityCenterConfiguration.add_member(:identity_center_instance_arn, Shapes::ShapeRef.new(shape: IdentityCenterInstanceArn, location_name: "IdentityCenterInstanceArn"))
|
751
|
+
IdentityCenterConfiguration.struct_class = Types::IdentityCenterConfiguration
|
752
|
+
|
741
753
|
ImportNotebookInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
|
742
754
|
ImportNotebookInput.add_member(:name, Shapes::ShapeRef.new(shape: NotebookName, required: true, location_name: "Name"))
|
743
|
-
ImportNotebookInput.add_member(:payload, Shapes::ShapeRef.new(shape: Payload,
|
755
|
+
ImportNotebookInput.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "Payload"))
|
744
756
|
ImportNotebookInput.add_member(:type, Shapes::ShapeRef.new(shape: NotebookType, required: true, location_name: "Type"))
|
757
|
+
ImportNotebookInput.add_member(:notebook_s3_location_uri, Shapes::ShapeRef.new(shape: S3Uri, location_name: "NotebookS3LocationUri"))
|
745
758
|
ImportNotebookInput.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken"))
|
746
759
|
ImportNotebookInput.struct_class = Types::ImportNotebookInput
|
747
760
|
|
@@ -783,6 +796,7 @@ module Aws::Athena
|
|
783
796
|
|
784
797
|
ListDataCatalogsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
785
798
|
ListDataCatalogsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxDataCatalogsCount, location_name: "MaxResults"))
|
799
|
+
ListDataCatalogsInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
|
786
800
|
ListDataCatalogsInput.struct_class = Types::ListDataCatalogsInput
|
787
801
|
|
788
802
|
ListDataCatalogsOutput.add_member(:data_catalogs_summary, Shapes::ShapeRef.new(shape: DataCatalogSummaryList, location_name: "DataCatalogsSummary"))
|
@@ -792,6 +806,7 @@ module Aws::Athena
|
|
792
806
|
ListDatabasesInput.add_member(:catalog_name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "CatalogName"))
|
793
807
|
ListDatabasesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
794
808
|
ListDatabasesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxDatabasesCount, location_name: "MaxResults"))
|
809
|
+
ListDatabasesInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
|
795
810
|
ListDatabasesInput.struct_class = Types::ListDatabasesInput
|
796
811
|
|
797
812
|
ListDatabasesOutput.add_member(:database_list, Shapes::ShapeRef.new(shape: DatabaseList, location_name: "DatabaseList"))
|
@@ -878,6 +893,7 @@ module Aws::Athena
|
|
878
893
|
ListTableMetadataInput.add_member(:expression, Shapes::ShapeRef.new(shape: ExpressionString, location_name: "Expression"))
|
879
894
|
ListTableMetadataInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
880
895
|
ListTableMetadataInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxTableMetadataCount, location_name: "MaxResults"))
|
896
|
+
ListTableMetadataInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
|
881
897
|
ListTableMetadataInput.struct_class = Types::ListTableMetadataInput
|
882
898
|
|
883
899
|
ListTableMetadataOutput.add_member(:table_metadata_list, Shapes::ShapeRef.new(shape: TableMetadataList, location_name: "TableMetadataList"))
|
@@ -970,6 +986,7 @@ module Aws::Athena
|
|
970
986
|
QueryExecution.add_member(:engine_version, Shapes::ShapeRef.new(shape: EngineVersion, location_name: "EngineVersion"))
|
971
987
|
QueryExecution.add_member(:execution_parameters, Shapes::ShapeRef.new(shape: ExecutionParameters, location_name: "ExecutionParameters"))
|
972
988
|
QueryExecution.add_member(:substatement_type, Shapes::ShapeRef.new(shape: String, location_name: "SubstatementType"))
|
989
|
+
QueryExecution.add_member(:query_results_s3_access_grants_configuration, Shapes::ShapeRef.new(shape: QueryResultsS3AccessGrantsConfiguration, location_name: "QueryResultsS3AccessGrantsConfiguration"))
|
973
990
|
QueryExecution.struct_class = Types::QueryExecution
|
974
991
|
|
975
992
|
QueryExecutionContext.add_member(:database, Shapes::ShapeRef.new(shape: DatabaseString, location_name: "Database"))
|
@@ -985,6 +1002,7 @@ module Aws::Athena
|
|
985
1002
|
QueryExecutionStatistics.add_member(:data_manifest_location, Shapes::ShapeRef.new(shape: String, location_name: "DataManifestLocation"))
|
986
1003
|
QueryExecutionStatistics.add_member(:total_execution_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "TotalExecutionTimeInMillis"))
|
987
1004
|
QueryExecutionStatistics.add_member(:query_queue_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "QueryQueueTimeInMillis"))
|
1005
|
+
QueryExecutionStatistics.add_member(:service_pre_processing_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "ServicePreProcessingTimeInMillis"))
|
988
1006
|
QueryExecutionStatistics.add_member(:query_planning_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "QueryPlanningTimeInMillis"))
|
989
1007
|
QueryExecutionStatistics.add_member(:service_processing_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "ServiceProcessingTimeInMillis"))
|
990
1008
|
QueryExecutionStatistics.add_member(:result_reuse_information, Shapes::ShapeRef.new(shape: ResultReuseInformation, location_name: "ResultReuseInformation"))
|
@@ -997,6 +1015,11 @@ module Aws::Athena
|
|
997
1015
|
QueryExecutionStatus.add_member(:athena_error, Shapes::ShapeRef.new(shape: AthenaError, location_name: "AthenaError"))
|
998
1016
|
QueryExecutionStatus.struct_class = Types::QueryExecutionStatus
|
999
1017
|
|
1018
|
+
QueryResultsS3AccessGrantsConfiguration.add_member(:enable_s3_access_grants, Shapes::ShapeRef.new(shape: BoxedBoolean, required: true, location_name: "EnableS3AccessGrants"))
|
1019
|
+
QueryResultsS3AccessGrantsConfiguration.add_member(:create_user_level_prefix, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "CreateUserLevelPrefix"))
|
1020
|
+
QueryResultsS3AccessGrantsConfiguration.add_member(:authentication_type, Shapes::ShapeRef.new(shape: AuthenticationType, required: true, location_name: "AuthenticationType"))
|
1021
|
+
QueryResultsS3AccessGrantsConfiguration.struct_class = Types::QueryResultsS3AccessGrantsConfiguration
|
1022
|
+
|
1000
1023
|
QueryRuntimeStatistics.add_member(:timeline, Shapes::ShapeRef.new(shape: QueryRuntimeStatisticsTimeline, location_name: "Timeline"))
|
1001
1024
|
QueryRuntimeStatistics.add_member(:rows, Shapes::ShapeRef.new(shape: QueryRuntimeStatisticsRows, location_name: "Rows"))
|
1002
1025
|
QueryRuntimeStatistics.add_member(:output_stage, Shapes::ShapeRef.new(shape: QueryStage, location_name: "OutputStage"))
|
@@ -1009,6 +1032,7 @@ module Aws::Athena
|
|
1009
1032
|
QueryRuntimeStatisticsRows.struct_class = Types::QueryRuntimeStatisticsRows
|
1010
1033
|
|
1011
1034
|
QueryRuntimeStatisticsTimeline.add_member(:query_queue_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "QueryQueueTimeInMillis"))
|
1035
|
+
QueryRuntimeStatisticsTimeline.add_member(:service_pre_processing_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "ServicePreProcessingTimeInMillis"))
|
1012
1036
|
QueryRuntimeStatisticsTimeline.add_member(:query_planning_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "QueryPlanningTimeInMillis"))
|
1013
1037
|
QueryRuntimeStatisticsTimeline.add_member(:engine_execution_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "EngineExecutionTimeInMillis"))
|
1014
1038
|
QueryRuntimeStatisticsTimeline.add_member(:service_processing_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "ServiceProcessingTimeInMillis"))
|
@@ -1278,6 +1302,7 @@ module Aws::Athena
|
|
1278
1302
|
WorkGroup.add_member(:configuration, Shapes::ShapeRef.new(shape: WorkGroupConfiguration, location_name: "Configuration"))
|
1279
1303
|
WorkGroup.add_member(:description, Shapes::ShapeRef.new(shape: WorkGroupDescriptionString, location_name: "Description"))
|
1280
1304
|
WorkGroup.add_member(:creation_time, Shapes::ShapeRef.new(shape: Date, location_name: "CreationTime"))
|
1305
|
+
WorkGroup.add_member(:identity_center_application_arn, Shapes::ShapeRef.new(shape: IdentityCenterApplicationArn, location_name: "IdentityCenterApplicationArn"))
|
1281
1306
|
WorkGroup.struct_class = Types::WorkGroup
|
1282
1307
|
|
1283
1308
|
WorkGroupConfiguration.add_member(:result_configuration, Shapes::ShapeRef.new(shape: ResultConfiguration, location_name: "ResultConfiguration"))
|
@@ -1290,6 +1315,8 @@ module Aws::Athena
|
|
1290
1315
|
WorkGroupConfiguration.add_member(:execution_role, Shapes::ShapeRef.new(shape: RoleArn, location_name: "ExecutionRole"))
|
1291
1316
|
WorkGroupConfiguration.add_member(:customer_content_encryption_configuration, Shapes::ShapeRef.new(shape: CustomerContentEncryptionConfiguration, location_name: "CustomerContentEncryptionConfiguration"))
|
1292
1317
|
WorkGroupConfiguration.add_member(:enable_minimum_encryption_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "EnableMinimumEncryptionConfiguration"))
|
1318
|
+
WorkGroupConfiguration.add_member(:identity_center_configuration, Shapes::ShapeRef.new(shape: IdentityCenterConfiguration, location_name: "IdentityCenterConfiguration"))
|
1319
|
+
WorkGroupConfiguration.add_member(:query_results_s3_access_grants_configuration, Shapes::ShapeRef.new(shape: QueryResultsS3AccessGrantsConfiguration, location_name: "QueryResultsS3AccessGrantsConfiguration"))
|
1293
1320
|
WorkGroupConfiguration.struct_class = Types::WorkGroupConfiguration
|
1294
1321
|
|
1295
1322
|
WorkGroupConfigurationUpdates.add_member(:enforce_work_group_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "EnforceWorkGroupConfiguration"))
|
@@ -1304,6 +1331,7 @@ module Aws::Athena
|
|
1304
1331
|
WorkGroupConfigurationUpdates.add_member(:execution_role, Shapes::ShapeRef.new(shape: RoleArn, location_name: "ExecutionRole"))
|
1305
1332
|
WorkGroupConfigurationUpdates.add_member(:customer_content_encryption_configuration, Shapes::ShapeRef.new(shape: CustomerContentEncryptionConfiguration, location_name: "CustomerContentEncryptionConfiguration"))
|
1306
1333
|
WorkGroupConfigurationUpdates.add_member(:enable_minimum_encryption_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "EnableMinimumEncryptionConfiguration"))
|
1334
|
+
WorkGroupConfigurationUpdates.add_member(:query_results_s3_access_grants_configuration, Shapes::ShapeRef.new(shape: QueryResultsS3AccessGrantsConfiguration, location_name: "QueryResultsS3AccessGrantsConfiguration"))
|
1307
1335
|
WorkGroupConfigurationUpdates.struct_class = Types::WorkGroupConfigurationUpdates
|
1308
1336
|
|
1309
1337
|
WorkGroupNamesList.member = Shapes::ShapeRef.new(shape: WorkGroupName)
|
@@ -1313,6 +1341,7 @@ module Aws::Athena
|
|
1313
1341
|
WorkGroupSummary.add_member(:description, Shapes::ShapeRef.new(shape: WorkGroupDescriptionString, location_name: "Description"))
|
1314
1342
|
WorkGroupSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: Date, location_name: "CreationTime"))
|
1315
1343
|
WorkGroupSummary.add_member(:engine_version, Shapes::ShapeRef.new(shape: EngineVersion, location_name: "EngineVersion"))
|
1344
|
+
WorkGroupSummary.add_member(:identity_center_application_arn, Shapes::ShapeRef.new(shape: IdentityCenterApplicationArn, location_name: "IdentityCenterApplicationArn"))
|
1316
1345
|
WorkGroupSummary.struct_class = Types::WorkGroupSummary
|
1317
1346
|
|
1318
1347
|
WorkGroupsList.member = Shapes::ShapeRef.new(shape: WorkGroupSummary)
|
@@ -32,7 +32,7 @@ module Aws::Athena
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://athena-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -14,6 +14,7 @@ module Aws::Athena
|
|
14
14
|
option(
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::Athena::EndpointProvider',
|
17
|
+
rbs_type: 'untyped',
|
17
18
|
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
19
|
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
20
|
'where `parameters` is a Struct similar to '\
|
@@ -25,16 +26,17 @@ module Aws::Athena
|
|
25
26
|
# @api private
|
26
27
|
class Handler < Seahorse::Client::Handler
|
27
28
|
def call(context)
|
28
|
-
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
29
|
unless context[:discovered_endpoint]
|
30
30
|
params = parameters_for_operation(context)
|
31
31
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
32
|
|
33
33
|
context.http_request.endpoint = endpoint.url
|
34
34
|
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
|
36
|
+
context[:endpoint_params] = params
|
37
|
+
context[:endpoint_properties] = endpoint.properties
|
35
38
|
end
|
36
39
|
|
37
|
-
context[:endpoint_params] = params
|
38
40
|
context[:auth_scheme] =
|
39
41
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
42
|
|