aws-sdk-athena 1.61.0 → 1.63.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17c7359948a71cd049a1c7b30871d6630e4749f1fc253927069badb35c283981
4
- data.tar.gz: 3fc88e310166a64959391dc8b023c0692ffc003324b4dc12af3715338473b735
3
+ metadata.gz: a47b687a2ae8a057806cd5aae61746ef130002dc40297337f4661af13a38a3a1
4
+ data.tar.gz: 0d540a5dac835c0b3b7f3d12ca0cc94d529d5a6fc839dc5e9fa8862cc2f99e9d
5
5
  SHA512:
6
- metadata.gz: f51c14c31fa92aba69489d57a666a9dcecfe4e45b6a308bc1a4bb73f0719121b570769f40a8ea11eaad79809b5394a60c58337c4e1d5fdd5dd0265b9834dc963
7
- data.tar.gz: 6cbc2ae3c603818522995e7c99257c5a9c0f91f930f1ba0a218792bf50fb9b27127518485e02e7e257cc7d16ad636683ea91a70cde458a31be0e0ddbc0c7c37b
6
+ metadata.gz: d6cb3f6a82d68f0cb41d1e74b6e1ada0e216eefd8f7750f334096d5dc4acf78f804140c6ab89af2b98ba85e6384db2acac49b1b8e111a7b9fba0521b2dd03682
7
+ data.tar.gz: 814575e5c05532df2dcee0120eb3ce135602f87c760b5dafff73ef2633d4668e291f21e27c3bd7185ee1efce7f69a30bd7af63488cc549910909ff0afe0c0dfe
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.63.0 (2023-03-27)
5
+ ------------------
6
+
7
+ * Feature - Enforces a minimal level of encryption for the workgroup for query and calculation results that are written to Amazon S3. When enabled, workgroup users can set encryption only to the minimum level set by the administrator or higher when they submit queries.
8
+
9
+ 1.62.0 (2023-03-08)
10
+ ------------------
11
+
12
+ * Feature - A new field SubstatementType is added to GetQueryExecution API, so customers have an error free way to detect the query type and interpret the result.
13
+
4
14
  1.61.0 (2023-01-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.61.0
1
+ 1.63.0
@@ -531,6 +531,7 @@ module Aws::Athena
531
531
  # resp.query_executions[0].engine_version.effective_engine_version #=> String
532
532
  # resp.query_executions[0].execution_parameters #=> Array
533
533
  # resp.query_executions[0].execution_parameters[0] #=> String
534
+ # resp.query_executions[0].substatement_type #=> String
534
535
  # resp.unprocessed_query_execution_ids #=> Array
535
536
  # resp.unprocessed_query_execution_ids[0].query_execution_id #=> String
536
537
  # resp.unprocessed_query_execution_ids[0].error_code #=> String
@@ -793,6 +794,12 @@ module Aws::Athena
793
794
  # Gets an authentication token and the URL at which the notebook can be
794
795
  # accessed. During programmatic access, `CreatePresignedNotebookUrl`
795
796
  # must be called every 10 minutes to refresh the authentication token.
797
+ # For information about granting programmatic access, see [Grant
798
+ # programmatic access][1].
799
+ #
800
+ #
801
+ #
802
+ # [1]: https://docs.aws.amazon.com/athena/latest/ug/setting-up.html#setting-up-grant-programmatic-access
796
803
  #
797
804
  # @option params [required, String] :session_id
798
805
  # The session ID.
@@ -824,24 +831,22 @@ module Aws::Athena
824
831
  req.send_request(options)
825
832
  end
826
833
 
827
- # Creates a workgroup with the specified name. Only one of
828
- # `Configurations` or `Configuration` can be specified; `Configurations`
829
- # for a workgroup with multi engine support (for example, an Apache
830
- # Spark enabled workgroup) or `Configuration` for an Athena SQL
831
- # workgroup.
834
+ # Creates a workgroup with the specified name. A workgroup can be an
835
+ # Apache Spark enabled workgroup or an Athena SQL workgroup.
832
836
  #
833
837
  # @option params [required, String] :name
834
838
  # The workgroup name.
835
839
  #
836
840
  # @option params [Types::WorkGroupConfiguration] :configuration
837
841
  # Contains configuration information for creating an Athena SQL
838
- # workgroup, which includes the location in Amazon S3 where query
839
- # results are stored, the encryption configuration, if any, used for
840
- # encrypting query results, whether the Amazon CloudWatch Metrics are
841
- # enabled for the workgroup, the limit for the amount of bytes scanned
842
- # (cutoff) per query, if it is specified, and whether workgroup's
843
- # settings (specified with `EnforceWorkGroupConfiguration`) in the
844
- # `WorkGroupConfiguration` override client-side settings. See
842
+ # workgroup or Spark enabled Athena workgroup. Athena SQL workgroup
843
+ # configuration includes the location in Amazon S3 where query and
844
+ # calculation results are stored, the encryption configuration, if any,
845
+ # used for encrypting query results, whether the Amazon CloudWatch
846
+ # Metrics are enabled for the workgroup, the limit for the amount of
847
+ # bytes scanned (cutoff) per query, if it is specified, and whether
848
+ # workgroup's settings (specified with `EnforceWorkGroupConfiguration`)
849
+ # in the `WorkGroupConfiguration` override client-side settings. See
845
850
  # WorkGroupConfiguration$EnforceWorkGroupConfiguration.
846
851
  #
847
852
  # @option params [String] :description
@@ -882,6 +887,7 @@ module Aws::Athena
882
887
  # customer_content_encryption_configuration: {
883
888
  # kms_key: "KmsKey", # required
884
889
  # },
890
+ # enable_minimum_encryption_configuration: false,
885
891
  # },
886
892
  # description: "WorkGroupDescriptionString",
887
893
  # tags: [
@@ -1013,7 +1019,7 @@ module Aws::Athena
1013
1019
  #
1014
1020
  # @option params [Boolean] :recursive_delete_option
1015
1021
  # The option to delete the workgroup and its contents even if the
1016
- # workgroup contains any named queries or query executions.
1022
+ # workgroup contains any named queries, query executions, or notebooks.
1017
1023
  #
1018
1024
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1019
1025
  #
@@ -1115,8 +1121,7 @@ module Aws::Athena
1115
1121
  req.send_request(options)
1116
1122
  end
1117
1123
 
1118
- # Retrieves a pre-signed URL to a copy of the code that was executed for
1119
- # the calculation.
1124
+ # Retrieves the unencrypted code that was executed for the calculation.
1120
1125
  #
1121
1126
  # @option params [required, String] :calculation_execution_id
1122
1127
  # The calculation execution UUID.
@@ -1402,6 +1407,7 @@ module Aws::Athena
1402
1407
  # resp.query_execution.engine_version.effective_engine_version #=> String
1403
1408
  # resp.query_execution.execution_parameters #=> Array
1404
1409
  # resp.query_execution.execution_parameters[0] #=> String
1410
+ # resp.query_execution.substatement_type #=> String
1405
1411
  #
1406
1412
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution AWS API Documentation
1407
1413
  #
@@ -1414,9 +1420,10 @@ module Aws::Athena
1414
1420
 
1415
1421
  # Streams the results of a single query execution specified by
1416
1422
  # `QueryExecutionId` from the Athena query results location in Amazon
1417
- # S3. For more information, see [Query Results][1] in the *Amazon Athena
1418
- # User Guide*. This request does not execute the query but returns
1419
- # results. Use StartQueryExecution to run a query.
1423
+ # S3. For more information, see [Working with query results, recent
1424
+ # queries, and output files][1] in the *Amazon Athena User Guide*. This
1425
+ # request does not execute the query but returns results. Use
1426
+ # StartQueryExecution to run a query.
1420
1427
  #
1421
1428
  # To stream query results successfully, the IAM principal with
1422
1429
  # permission to call `GetQueryResults` also must have permissions to the
@@ -1721,6 +1728,7 @@ module Aws::Athena
1721
1728
  # resp.work_group.configuration.additional_configuration #=> String
1722
1729
  # resp.work_group.configuration.execution_role #=> String
1723
1730
  # resp.work_group.configuration.customer_content_encryption_configuration.kms_key #=> String
1731
+ # resp.work_group.configuration.enable_minimum_encryption_configuration #=> Boolean
1724
1732
  # resp.work_group.description #=> String
1725
1733
  # resp.work_group.creation_time #=> Time
1726
1734
  #
@@ -1788,7 +1796,7 @@ module Aws::Athena
1788
1796
  end
1789
1797
 
1790
1798
  # Returns the supported DPU sizes for the supported application runtimes
1791
- # (for example, `Jupyter 1.0`).
1799
+ # (for example, `Athena notebook version 1`).
1792
1800
  #
1793
1801
  # @option params [Integer] :max_results
1794
1802
  # Specifies the maximum number of results to return.
@@ -1904,6 +1912,11 @@ module Aws::Athena
1904
1912
 
1905
1913
  # Lists the data catalogs in the current Amazon Web Services account.
1906
1914
  #
1915
+ # <note markdown="1"> In the Athena console, data catalogs are listed as "data sources" on
1916
+ # the **Data sources** page under the **Data source name** column.
1917
+ #
1918
+ # </note>
1919
+ #
1907
1920
  # @option params [String] :next_token
1908
1921
  # A token generated by the Athena service that specifies where to
1909
1922
  # continue pagination if a previous request was truncated. To obtain the
@@ -2032,9 +2045,9 @@ module Aws::Athena
2032
2045
  req.send_request(options)
2033
2046
  end
2034
2047
 
2035
- # Lists, in descending order, the executors that have been submitted to
2036
- # a session. Newer executors are listed first; older executors are
2037
- # listed later. The result can be optionally filtered by state.
2048
+ # Lists, in descending order, the executors that joined a session. Newer
2049
+ # executors are listed first; older executors are listed later. The
2050
+ # result can be optionally filtered by state.
2038
2051
  #
2039
2052
  # @option params [required, String] :session_id
2040
2053
  # The session ID.
@@ -2599,8 +2612,7 @@ module Aws::Athena
2599
2612
  end
2600
2613
 
2601
2614
  # Submits calculations for execution within a session. You can supply
2602
- # the code to run as an inline code block within the request or as an
2603
- # Amazon S3 URL.
2615
+ # the code to run as an inline code block within the request.
2604
2616
  #
2605
2617
  # @option params [required, String] :session_id
2606
2618
  # The session ID.
@@ -2772,9 +2784,12 @@ module Aws::Athena
2772
2784
  # parameter mappings.
2773
2785
  #
2774
2786
  # @option params [String] :notebook_version
2775
- # The notebook version. This value is required only when requesting that
2776
- # a notebook server be started for the session. The only valid notebook
2777
- # version is `Jupyter1.0`.
2787
+ # The notebook version. This value is supplied automatically for
2788
+ # notebook sessions in the Athena console and is not required for
2789
+ # programmatic session access. The only valid notebook version is
2790
+ # `Athena notebook version 1`. If you specify a value for
2791
+ # `NotebookVersion`, you must also specify a value for `NotebookId`. See
2792
+ # EngineConfiguration$AdditionalConfigs.
2778
2793
  #
2779
2794
  # @option params [Integer] :session_idle_timeout_in_minutes
2780
2795
  # The idle timeout in minutes for the session.
@@ -2917,7 +2932,7 @@ module Aws::Athena
2917
2932
  #
2918
2933
  #
2919
2934
  #
2920
- # [1]: https://aws.amazon.com/answers/account-management/aws-tagging-strategies/
2935
+ # [1]: https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html
2921
2936
  #
2922
2937
  # @option params [required, String] :resource_arn
2923
2938
  # Specifies the ARN of the Athena resource (workgroup or data catalog)
@@ -3122,7 +3137,8 @@ module Aws::Athena
3122
3137
  # The notebook content type. Currently, the only valid type is `IPYNB`.
3123
3138
  #
3124
3139
  # @option params [String] :session_id
3125
- # The ID of the session in which the notebook will be updated.
3140
+ # The active notebook session ID. Required if the notebook has an active
3141
+ # session.
3126
3142
  #
3127
3143
  # @option params [String] :client_request_token
3128
3144
  # A unique case-sensitive string used to ensure the request to create
@@ -3227,11 +3243,7 @@ module Aws::Athena
3227
3243
  end
3228
3244
 
3229
3245
  # Updates the workgroup with the specified name. The workgroup's name
3230
- # cannot be changed. Only one of `ConfigurationsUpdates` or
3231
- # `ConfigurationUpdates` can be specified; `ConfigurationsUpdates` for a
3232
- # workgroup with multi engine support (for example, an Apache Spark
3233
- # enabled workgroup) or `ConfigurationUpdates` for an Athena SQL
3234
- # workgroup.
3246
+ # cannot be changed. Only `ConfigurationUpdates` can be specified.
3235
3247
  #
3236
3248
  # @option params [required, String] :work_group
3237
3249
  # The specified workgroup that will be updated.
@@ -3283,6 +3295,7 @@ module Aws::Athena
3283
3295
  # customer_content_encryption_configuration: {
3284
3296
  # kms_key: "KmsKey", # required
3285
3297
  # },
3298
+ # enable_minimum_encryption_configuration: false,
3286
3299
  # },
3287
3300
  # state: "ENABLED", # accepts ENABLED, DISABLED
3288
3301
  # })
@@ -3309,7 +3322,7 @@ module Aws::Athena
3309
3322
  params: params,
3310
3323
  config: config)
3311
3324
  context[:gem_name] = 'aws-sdk-athena'
3312
- context[:gem_version] = '1.61.0'
3325
+ context[:gem_version] = '1.63.0'
3313
3326
  Seahorse::Client::Request.new(handlers, context)
3314
3327
  end
3315
3328
 
@@ -870,6 +870,7 @@ module Aws::Athena
870
870
  QueryExecution.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
871
871
  QueryExecution.add_member(:engine_version, Shapes::ShapeRef.new(shape: EngineVersion, location_name: "EngineVersion"))
872
872
  QueryExecution.add_member(:execution_parameters, Shapes::ShapeRef.new(shape: ExecutionParameters, location_name: "ExecutionParameters"))
873
+ QueryExecution.add_member(:substatement_type, Shapes::ShapeRef.new(shape: String, location_name: "SubstatementType"))
873
874
  QueryExecution.struct_class = Types::QueryExecution
874
875
 
875
876
  QueryExecutionContext.add_member(:database, Shapes::ShapeRef.new(shape: DatabaseString, location_name: "Database"))
@@ -1183,6 +1184,7 @@ module Aws::Athena
1183
1184
  WorkGroupConfiguration.add_member(:additional_configuration, Shapes::ShapeRef.new(shape: NameString, location_name: "AdditionalConfiguration"))
1184
1185
  WorkGroupConfiguration.add_member(:execution_role, Shapes::ShapeRef.new(shape: RoleArn, location_name: "ExecutionRole"))
1185
1186
  WorkGroupConfiguration.add_member(:customer_content_encryption_configuration, Shapes::ShapeRef.new(shape: CustomerContentEncryptionConfiguration, location_name: "CustomerContentEncryptionConfiguration"))
1187
+ WorkGroupConfiguration.add_member(:enable_minimum_encryption_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "EnableMinimumEncryptionConfiguration"))
1186
1188
  WorkGroupConfiguration.struct_class = Types::WorkGroupConfiguration
1187
1189
 
1188
1190
  WorkGroupConfigurationUpdates.add_member(:enforce_work_group_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "EnforceWorkGroupConfiguration"))
@@ -1196,6 +1198,7 @@ module Aws::Athena
1196
1198
  WorkGroupConfigurationUpdates.add_member(:additional_configuration, Shapes::ShapeRef.new(shape: NameString, location_name: "AdditionalConfiguration"))
1197
1199
  WorkGroupConfigurationUpdates.add_member(:execution_role, Shapes::ShapeRef.new(shape: RoleArn, location_name: "ExecutionRole"))
1198
1200
  WorkGroupConfigurationUpdates.add_member(:customer_content_encryption_configuration, Shapes::ShapeRef.new(shape: CustomerContentEncryptionConfiguration, location_name: "CustomerContentEncryptionConfiguration"))
1201
+ WorkGroupConfigurationUpdates.add_member(:enable_minimum_encryption_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "EnableMinimumEncryptionConfiguration"))
1199
1202
  WorkGroupConfigurationUpdates.struct_class = Types::WorkGroupConfigurationUpdates
1200
1203
 
1201
1204
  WorkGroupSummary.add_member(:name, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "Name"))
@@ -50,9 +50,6 @@ module Aws::Athena
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,36 +14,39 @@ module Aws::Athena
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://athena-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://athena-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://athena.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://athena-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://athena-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://athena.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://athena.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://athena.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -45,8 +45,8 @@ module Aws::Athena
45
45
  # Contains the application runtime IDs and their supported DPU sizes.
46
46
  #
47
47
  # @!attribute [rw] application_runtime_id
48
- # The name of the supported application runtime (for example, `Jupyter
49
- # 1.0`).
48
+ # The name of the supported application runtime (for example, `Athena
49
+ # notebook version 1`).
50
50
  # @return [String]
51
51
  #
52
52
  # @!attribute [rw] supported_dpu_sizes
@@ -690,13 +690,15 @@ module Aws::Athena
690
690
  #
691
691
  # @!attribute [rw] configuration
692
692
  # Contains configuration information for creating an Athena SQL
693
- # workgroup, which includes the location in Amazon S3 where query
694
- # results are stored, the encryption configuration, if any, used for
695
- # encrypting query results, whether the Amazon CloudWatch Metrics are
696
- # enabled for the workgroup, the limit for the amount of bytes scanned
697
- # (cutoff) per query, if it is specified, and whether workgroup's
698
- # settings (specified with `EnforceWorkGroupConfiguration`) in the
699
- # `WorkGroupConfiguration` override client-side settings. See
693
+ # workgroup or Spark enabled Athena workgroup. Athena SQL workgroup
694
+ # configuration includes the location in Amazon S3 where query and
695
+ # calculation results are stored, the encryption configuration, if
696
+ # any, used for encrypting query results, whether the Amazon
697
+ # CloudWatch Metrics are enabled for the workgroup, the limit for the
698
+ # amount of bytes scanned (cutoff) per query, if it is specified, and
699
+ # whether workgroup's settings (specified with
700
+ # `EnforceWorkGroupConfiguration`) in the `WorkGroupConfiguration`
701
+ # override client-side settings. See
700
702
  # WorkGroupConfiguration$EnforceWorkGroupConfiguration.
701
703
  # @return [Types::WorkGroupConfiguration]
702
704
  #
@@ -743,6 +745,11 @@ module Aws::Athena
743
745
  # Contains information about a data catalog in an Amazon Web Services
744
746
  # account.
745
747
  #
748
+ # <note markdown="1"> In the Athena console, data catalogs are listed as "data sources" on
749
+ # the **Data sources** page under the **Data source name** column.
750
+ #
751
+ # </note>
752
+ #
746
753
  # @!attribute [rw] name
747
754
  # The name of the data catalog. The catalog name must be unique for
748
755
  # the Amazon Web Services account and can use a maximum of 127
@@ -952,7 +959,8 @@ module Aws::Athena
952
959
  #
953
960
  # @!attribute [rw] recursive_delete_option
954
961
  # The option to delete the workgroup and its contents even if the
955
- # workgroup contains any named queries or query executions.
962
+ # workgroup contains any named queries, query executions, or
963
+ # notebooks.
956
964
  # @return [Boolean]
957
965
  #
958
966
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroupInput AWS API Documentation
@@ -968,8 +976,9 @@ module Aws::Athena
968
976
  #
969
977
  class DeleteWorkGroupOutput < Aws::EmptyStructure; end
970
978
 
971
- # If query results are encrypted in Amazon S3, indicates the encryption
972
- # option used (for example, `SSE_KMS` or `CSE_KMS`) and key information.
979
+ # If query and calculation results are encrypted in Amazon S3, indicates
980
+ # the encryption option used (for example, `SSE_KMS` or `CSE_KMS`) and
981
+ # key information.
973
982
  #
974
983
  # @!attribute [rw] encryption_option
975
984
  # Indicates whether Amazon S3 server-side encryption with Amazon
@@ -1017,11 +1026,11 @@ module Aws::Athena
1017
1026
  #
1018
1027
  # @!attribute [rw] additional_configs
1019
1028
  # Contains additional notebook engine `MAP<string, string>` parameter
1020
- # mappings in the form of key-value pairs. To specify an Amazon S3 URI
1021
- # that the Jupyter server will download and serve, specify a value for
1022
- # the StartSessionRequest$NotebookVersion field, and then add a key
1023
- # named `NotebookFileURI` to `AdditionalConfigs` that has value of the
1024
- # Amazon S3 URI.
1029
+ # mappings in the form of key-value pairs. To specify an Athena
1030
+ # notebook that the Jupyter server will download and serve, specify a
1031
+ # value for the StartSessionRequest$NotebookVersion field, and then
1032
+ # add a key named `NotebookId` to `AdditionalConfigs` that has the
1033
+ # value of the Athena notebook ID.
1025
1034
  # @return [Hash<String,String>]
1026
1035
  #
1027
1036
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/EngineConfiguration AWS API Documentation
@@ -1040,8 +1049,8 @@ module Aws::Athena
1040
1049
  #
1041
1050
  # @!attribute [rw] selected_engine_version
1042
1051
  # The engine version requested by the user. Possible values are
1043
- # determined by the output of `ListEngineVersions`, including Auto.
1044
- # The default is Auto.
1052
+ # determined by the output of `ListEngineVersions`, including AUTO.
1053
+ # The default is AUTO.
1045
1054
  # @return [String]
1046
1055
  #
1047
1056
  # @!attribute [rw] effective_engine_version
@@ -1176,7 +1185,7 @@ module Aws::Athena
1176
1185
  end
1177
1186
 
1178
1187
  # @!attribute [rw] code_block
1179
- # A pre-signed URL to the code that executed the calculation.
1188
+ # The unencrypted code that was executed for the calculation.
1180
1189
  # @return [String]
1181
1190
  #
1182
1191
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCodeResponse AWS API Documentation
@@ -1698,7 +1707,7 @@ module Aws::Athena
1698
1707
  end
1699
1708
 
1700
1709
  # @!attribute [rw] notebook_id
1701
- # The ID of the notebook to import.
1710
+ # The ID assigned to the imported notebook.
1702
1711
  # @return [String]
1703
1712
  #
1704
1713
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ImportNotebookOutput AWS API Documentation
@@ -2676,12 +2685,12 @@ module Aws::Athena
2676
2685
  # @return [String]
2677
2686
  #
2678
2687
  # @!attribute [rw] result_configuration
2679
- # The location in Amazon S3 where query results were stored and the
2680
- # encryption option, if any, used for query results. These are known
2681
- # as "client-side settings". If workgroup settings override
2682
- # client-side settings, then the query uses the location for the query
2683
- # results and the encryption configuration that are specified for the
2684
- # workgroup.
2688
+ # The location in Amazon S3 where query and calculation results are
2689
+ # stored and the encryption option, if any, used for query results.
2690
+ # These are known as "client-side settings". If workgroup settings
2691
+ # override client-side settings, then the query uses the location for
2692
+ # the query results and the encryption configuration that are
2693
+ # specified for the workgroup.
2685
2694
  # @return [Types::ResultConfiguration]
2686
2695
  #
2687
2696
  # @!attribute [rw] result_reuse_configuration
@@ -2718,6 +2727,10 @@ module Aws::Athena
2718
2727
  # which the parameters occur.
2719
2728
  # @return [Array<String>]
2720
2729
  #
2730
+ # @!attribute [rw] substatement_type
2731
+ # The kind of query statement that was run.
2732
+ # @return [String]
2733
+ #
2721
2734
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecution AWS API Documentation
2722
2735
  #
2723
2736
  class QueryExecution < Struct.new(
@@ -2731,7 +2744,8 @@ module Aws::Athena
2731
2744
  :statistics,
2732
2745
  :work_group,
2733
2746
  :engine_version,
2734
- :execution_parameters)
2747
+ :execution_parameters,
2748
+ :substatement_type)
2735
2749
  SENSITIVE = []
2736
2750
  include Aws::Structure
2737
2751
  end
@@ -3086,19 +3100,21 @@ module Aws::Athena
3086
3100
  include Aws::Structure
3087
3101
  end
3088
3102
 
3089
- # The location in Amazon S3 where query results are stored and the
3090
- # encryption option, if any, used for query results. These are known as
3091
- # "client-side settings". If workgroup settings override client-side
3092
- # settings, then the query uses the workgroup settings.
3103
+ # The location in Amazon S3 where query and calculation results are
3104
+ # stored and the encryption option, if any, used for query and
3105
+ # calculation results. These are known as "client-side settings". If
3106
+ # workgroup settings override client-side settings, then the query uses
3107
+ # the workgroup settings.
3093
3108
  #
3094
3109
  # @!attribute [rw] output_location
3095
- # The location in Amazon S3 where your query results are stored, such
3096
- # as `s3://path/to/query/bucket/`. To run the query, you must specify
3097
- # the query results location using one of the ways: either for
3098
- # individual queries using either this setting (client-side), or in
3099
- # the workgroup, using WorkGroupConfiguration. If none of them is set,
3100
- # Athena issues an error that no output location is provided. For more
3101
- # information, see [Query Results][1]. If workgroup settings override
3110
+ # The location in Amazon S3 where your query and calculation results
3111
+ # are stored, such as `s3://path/to/query/bucket/`. To run the query,
3112
+ # you must specify the query results location using one of the ways:
3113
+ # either for individual queries using either this setting
3114
+ # (client-side), or in the workgroup, using WorkGroupConfiguration. If
3115
+ # none of them is set, Athena issues an error that no output location
3116
+ # is provided. For more information, see [Working with query results,
3117
+ # recent queries, and output files][1]. If workgroup settings override
3102
3118
  # client-side settings, then the query uses the settings specified for
3103
3119
  # the workgroup. See
3104
3120
  # WorkGroupConfiguration$EnforceWorkGroupConfiguration.
@@ -3109,12 +3125,13 @@ module Aws::Athena
3109
3125
  # @return [String]
3110
3126
  #
3111
3127
  # @!attribute [rw] encryption_configuration
3112
- # If query results are encrypted in Amazon S3, indicates the
3113
- # encryption option used (for example, `SSE_KMS` or `CSE_KMS`) and key
3114
- # information. This is a client-side setting. If workgroup settings
3115
- # override client-side settings, then the query uses the encryption
3116
- # configuration that is specified for the workgroup, and also uses the
3117
- # location for storing query results specified in the workgroup. See
3128
+ # If query and calculation results are encrypted in Amazon S3,
3129
+ # indicates the encryption option used (for example, `SSE_KMS` or
3130
+ # `CSE_KMS`) and key information. This is a client-side setting. If
3131
+ # workgroup settings override client-side settings, then the query
3132
+ # uses the encryption configuration that is specified for the
3133
+ # workgroup, and also uses the location for storing query results
3134
+ # specified in the workgroup. See
3118
3135
  # WorkGroupConfiguration$EnforceWorkGroupConfiguration and [Workgroup
3119
3136
  # Settings Override Client-Side Settings][1].
3120
3137
  #
@@ -3175,12 +3192,13 @@ module Aws::Athena
3175
3192
  # location and encryption configuration for the query results.
3176
3193
  #
3177
3194
  # @!attribute [rw] output_location
3178
- # The location in Amazon S3 where your query results are stored, such
3179
- # as `s3://path/to/query/bucket/`. For more information, see [Query
3180
- # Results][1] If workgroup settings override client-side settings,
3181
- # then the query uses the location for the query results and the
3182
- # encryption configuration that are specified for the workgroup. The
3183
- # "workgroup settings override" is specified in
3195
+ # The location in Amazon S3 where your query and calculation results
3196
+ # are stored, such as `s3://path/to/query/bucket/`. For more
3197
+ # information, see [Working with query results, recent queries, and
3198
+ # output files][1]. If workgroup settings override client-side
3199
+ # settings, then the query uses the location for the query results and
3200
+ # the encryption configuration that are specified for the workgroup.
3201
+ # The "workgroup settings override" is specified in
3184
3202
  # `EnforceWorkGroupConfiguration` (true/false) in the
3185
3203
  # `WorkGroupConfiguration`. See
3186
3204
  # WorkGroupConfiguration$EnforceWorkGroupConfiguration.
@@ -3206,7 +3224,7 @@ module Aws::Athena
3206
3224
  # @return [Boolean]
3207
3225
  #
3208
3226
  # @!attribute [rw] encryption_configuration
3209
- # The encryption configuration for the query results.
3227
+ # The encryption configuration for query and calculation results.
3210
3228
  # @return [Types::EncryptionConfiguration]
3211
3229
  #
3212
3230
  # @!attribute [rw] remove_encryption_configuration
@@ -3427,9 +3445,9 @@ module Aws::Athena
3427
3445
  # @return [Integer]
3428
3446
  #
3429
3447
  # @!attribute [rw] encryption_configuration
3430
- # If query results are encrypted in Amazon S3, indicates the
3431
- # encryption option used (for example, `SSE_KMS` or `CSE_KMS`) and key
3432
- # information.
3448
+ # If query and calculation results are encrypted in Amazon S3,
3449
+ # indicates the encryption option used (for example, `SSE_KMS` or
3450
+ # `CSE_KMS`) and key information.
3433
3451
  # @return [Types::EncryptionConfiguration]
3434
3452
  #
3435
3453
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/SessionConfiguration AWS API Documentation
@@ -3443,7 +3461,7 @@ module Aws::Athena
3443
3461
  include Aws::Structure
3444
3462
  end
3445
3463
 
3446
- # Contains statistics for a notebook session.
3464
+ # Contains statistics for a session.
3447
3465
  #
3448
3466
  # @!attribute [rw] dpu_execution_in_millis
3449
3467
  # The data processing unit execution time for a session in
@@ -3458,7 +3476,7 @@ module Aws::Athena
3458
3476
  include Aws::Structure
3459
3477
  end
3460
3478
 
3461
- # Contains information about the status of a notebook session.
3479
+ # Contains information about the status of a session.
3462
3480
  #
3463
3481
  # @!attribute [rw] start_date_time
3464
3482
  # The date and time that the session started.
@@ -3518,7 +3536,7 @@ module Aws::Athena
3518
3536
  include Aws::Structure
3519
3537
  end
3520
3538
 
3521
- # Contains summary information about a notebook session.
3539
+ # Contains summary information about a session.
3522
3540
  #
3523
3541
  # @!attribute [rw] session_id
3524
3542
  # The session ID.
@@ -3717,9 +3735,12 @@ module Aws::Athena
3717
3735
  # @return [Types::EngineConfiguration]
3718
3736
  #
3719
3737
  # @!attribute [rw] notebook_version
3720
- # The notebook version. This value is required only when requesting
3721
- # that a notebook server be started for the session. The only valid
3722
- # notebook version is `Jupyter1.0`.
3738
+ # The notebook version. This value is supplied automatically for
3739
+ # notebook sessions in the Athena console and is not required for
3740
+ # programmatic session access. The only valid notebook version is
3741
+ # `Athena notebook version 1`. If you specify a value for
3742
+ # `NotebookVersion`, you must also specify a value for `NotebookId`.
3743
+ # See EngineConfiguration$AdditionalConfigs.
3723
3744
  # @return [String]
3724
3745
  #
3725
3746
  # @!attribute [rw] session_idle_timeout_in_minutes
@@ -3907,7 +3928,7 @@ module Aws::Athena
3907
3928
  #
3908
3929
  #
3909
3930
  #
3910
- # [1]: https://aws.amazon.com/answers/account-management/aws-tagging-strategies/
3931
+ # [1]: https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html
3911
3932
  #
3912
3933
  # @!attribute [rw] key
3913
3934
  # A tag key. The tag key length is from 1 to 128 Unicode characters in
@@ -4233,7 +4254,8 @@ module Aws::Athena
4233
4254
  # @return [String]
4234
4255
  #
4235
4256
  # @!attribute [rw] session_id
4236
- # The ID of the session in which the notebook will be updated.
4257
+ # The active notebook session ID. Required if the notebook has an
4258
+ # active session.
4237
4259
  # @return [String]
4238
4260
  #
4239
4261
  # @!attribute [rw] client_request_token
@@ -4380,12 +4402,12 @@ module Aws::Athena
4380
4402
  #
4381
4403
  # @!attribute [rw] configuration
4382
4404
  # The configuration of the workgroup, which includes the location in
4383
- # Amazon S3 where query results are stored, the encryption
4384
- # configuration, if any, used for query results; whether the Amazon
4385
- # CloudWatch Metrics are enabled for the workgroup; whether workgroup
4386
- # settings override client-side settings; and the data usage limits
4387
- # for the amount of data scanned per query or per workgroup. The
4388
- # workgroup settings override is specified in
4405
+ # Amazon S3 where query and calculation results are stored, the
4406
+ # encryption configuration, if any, used for query and calculation
4407
+ # results; whether the Amazon CloudWatch Metrics are enabled for the
4408
+ # workgroup; whether workgroup settings override client-side settings;
4409
+ # and the data usage limits for the amount of data scanned per query
4410
+ # or per workgroup. The workgroup settings override is specified in
4389
4411
  # `EnforceWorkGroupConfiguration` (true/false) in the
4390
4412
  # `WorkGroupConfiguration`. See
4391
4413
  # WorkGroupConfiguration$EnforceWorkGroupConfiguration.
@@ -4412,24 +4434,27 @@ module Aws::Athena
4412
4434
  end
4413
4435
 
4414
4436
  # The configuration of the workgroup, which includes the location in
4415
- # Amazon S3 where query results are stored, the encryption option, if
4416
- # any, used for query results, whether the Amazon CloudWatch Metrics are
4417
- # enabled for the workgroup and whether workgroup settings override
4418
- # query settings, and the data usage limits for the amount of data
4419
- # scanned per query or per workgroup. The workgroup settings override is
4420
- # specified in `EnforceWorkGroupConfiguration` (true/false) in the
4437
+ # Amazon S3 where query and calculation results are stored, the
4438
+ # encryption option, if any, used for query and calculation results,
4439
+ # whether the Amazon CloudWatch Metrics are enabled for the workgroup
4440
+ # and whether workgroup settings override query settings, and the data
4441
+ # usage limits for the amount of data scanned per query or per
4442
+ # workgroup. The workgroup settings override is specified in
4443
+ # `EnforceWorkGroupConfiguration` (true/false) in the
4421
4444
  # `WorkGroupConfiguration`. See
4422
4445
  # WorkGroupConfiguration$EnforceWorkGroupConfiguration.
4423
4446
  #
4424
4447
  # @!attribute [rw] result_configuration
4425
4448
  # The configuration for the workgroup, which includes the location in
4426
- # Amazon S3 where query results are stored and the encryption option,
4427
- # if any, used for query results. To run the query, you must specify
4428
- # the query results location using one of the ways: either in the
4429
- # workgroup using this setting, or for individual queries
4430
- # (client-side), using ResultConfiguration$OutputLocation. If none of
4431
- # them is set, Athena issues an error that no output location is
4432
- # provided. For more information, see [Query Results][1].
4449
+ # Amazon S3 where query and calculation results are stored and the
4450
+ # encryption option, if any, used for query and calculation results.
4451
+ # To run the query, you must specify the query results location using
4452
+ # one of the ways: either in the workgroup using this setting, or for
4453
+ # individual queries (client-side), using
4454
+ # ResultConfiguration$OutputLocation. If none of them is set, Athena
4455
+ # issues an error that no output location is provided. For more
4456
+ # information, see [Working with query results, recent queries, and
4457
+ # output files][1].
4433
4458
  #
4434
4459
  #
4435
4460
  #
@@ -4483,7 +4508,7 @@ module Aws::Athena
4483
4508
  # @return [String]
4484
4509
  #
4485
4510
  # @!attribute [rw] execution_role
4486
- # Role used in a notebook session for accessing the user's resources.
4511
+ # Role used in a session for accessing the user's resources.
4487
4512
  # @return [String]
4488
4513
  #
4489
4514
  # @!attribute [rw] customer_content_encryption_configuration
@@ -4491,6 +4516,19 @@ module Aws::Athena
4491
4516
  # stores in Athena.
4492
4517
  # @return [Types::CustomerContentEncryptionConfiguration]
4493
4518
  #
4519
+ # @!attribute [rw] enable_minimum_encryption_configuration
4520
+ # Enforces a minimal level of encryption for the workgroup for query
4521
+ # and calculation results that are written to Amazon S3. When enabled,
4522
+ # workgroup users can set encryption only to the minimum level set by
4523
+ # the administrator or higher when they submit queries.
4524
+ #
4525
+ # The `EnforceWorkGroupConfiguration` setting takes precedence over
4526
+ # the `EnableMinimumEncryptionConfiguration` flag. This means that if
4527
+ # `EnforceWorkGroupConfiguration` is true, the
4528
+ # `EnableMinimumEncryptionConfiguration` flag is ignored, and the
4529
+ # workgroup configuration for encryption is used.
4530
+ # @return [Boolean]
4531
+ #
4494
4532
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/WorkGroupConfiguration AWS API Documentation
4495
4533
  #
4496
4534
  class WorkGroupConfiguration < Struct.new(
@@ -4502,18 +4540,19 @@ module Aws::Athena
4502
4540
  :engine_version,
4503
4541
  :additional_configuration,
4504
4542
  :execution_role,
4505
- :customer_content_encryption_configuration)
4543
+ :customer_content_encryption_configuration,
4544
+ :enable_minimum_encryption_configuration)
4506
4545
  SENSITIVE = []
4507
4546
  include Aws::Structure
4508
4547
  end
4509
4548
 
4510
4549
  # The configuration information that will be updated for this workgroup,
4511
- # which includes the location in Amazon S3 where query results are
4512
- # stored, the encryption option, if any, used for query results, whether
4513
- # the Amazon CloudWatch Metrics are enabled for the workgroup, whether
4514
- # the workgroup settings override the client-side settings, and the data
4515
- # usage limit for the amount of bytes scanned per query, if it is
4516
- # specified.
4550
+ # which includes the location in Amazon S3 where query and calculation
4551
+ # results are stored, the encryption option, if any, used for query
4552
+ # results, whether the Amazon CloudWatch Metrics are enabled for the
4553
+ # workgroup, whether the workgroup settings override the client-side
4554
+ # settings, and the data usage limit for the amount of bytes scanned per
4555
+ # query, if it is specified.
4517
4556
  #
4518
4557
  # @!attribute [rw] enforce_work_group_configuration
4519
4558
  # If set to "true", the settings for the workgroup override
@@ -4587,6 +4626,20 @@ module Aws::Athena
4587
4626
  # stores in Athena.
4588
4627
  # @return [Types::CustomerContentEncryptionConfiguration]
4589
4628
  #
4629
+ # @!attribute [rw] enable_minimum_encryption_configuration
4630
+ # Enforces a minimal level of encryption for the workgroup for query
4631
+ # and calculation results that are written to Amazon S3. When enabled,
4632
+ # workgroup users can set encryption only to the minimum level set by
4633
+ # the administrator or higher when they submit queries. This setting
4634
+ # does not apply to Spark-enabled workgroups.
4635
+ #
4636
+ # The `EnforceWorkGroupConfiguration` setting takes precedence over
4637
+ # the `EnableMinimumEncryptionConfiguration` flag. This means that if
4638
+ # `EnforceWorkGroupConfiguration` is true, the
4639
+ # `EnableMinimumEncryptionConfiguration` flag is ignored, and the
4640
+ # workgroup configuration for encryption is used.
4641
+ # @return [Boolean]
4642
+ #
4590
4643
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/WorkGroupConfigurationUpdates AWS API Documentation
4591
4644
  #
4592
4645
  class WorkGroupConfigurationUpdates < Struct.new(
@@ -4600,7 +4653,8 @@ module Aws::Athena
4600
4653
  :remove_customer_content_encryption_configuration,
4601
4654
  :additional_configuration,
4602
4655
  :execution_role,
4603
- :customer_content_encryption_configuration)
4656
+ :customer_content_encryption_configuration,
4657
+ :enable_minimum_encryption_configuration)
4604
4658
  SENSITIVE = []
4605
4659
  include Aws::Structure
4606
4660
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-athena/customizations'
52
52
  # @!group service
53
53
  module Aws::Athena
54
54
 
55
- GEM_VERSION = '1.61.0'
55
+ GEM_VERSION = '1.63.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-athena
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.61.0
4
+ version: 1.63.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core