aws-sdk-athena 1.95.0 → 1.97.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: 192c19ec72dfe9b4ce635cfa22a99fd8ef88b90bd71455945eac6418d72a5b25
4
- data.tar.gz: 7c0660e757a6f8f4be9507a668616788d2e9690bb8cbb682b6beaeab218863d5
3
+ metadata.gz: bbae55c73b69ff1e49894951eb92f80bd8724b3b1968968eef3f1c56647c376f
4
+ data.tar.gz: 913d7682f2f653d3a3f0865d85fc3196a94e078d7b9279c9c996fb1597ac42a9
5
5
  SHA512:
6
- metadata.gz: b6e34e105bce18b1f3c0ca492af96b053ea11e1eefbdee0dab5cdd295fbb77b28baa9398dec4564531f46570e6089d5c67a6c69b1e2d53322d9d372e9a1f159b
7
- data.tar.gz: c7aac846663becdb4e5eca0dad52e82d13723fb82164d1d4a9fdd6a7c580db95f6bda44325db1cbc3fd28b9b45efda2826cdfdf0c040dfe71df84599968e205d
6
+ metadata.gz: b6c7f11069da6047f8be4ba3d58cd1ef56f70bcf47234e72b972df765eeb9aef8ec310d19b9e937cbf3bfff7fc1dd7c335f55d1773eb217c3b7eb7275a568785
7
+ data.tar.gz: 1b87a2f0f6b5d1fa1b39f019119d8139b209771459b2f2160a2b4cfc80ea021d845d70988e5135f6fabdb89cc5765068910264d54a7b9c7d9a0212a3b08b3382
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.97.0 (2024-11-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.96.0 (2024-10-18)
10
+ ------------------
11
+
12
+ * Feature - Remove DataCatalog from Create/DeleteDataCatalog. Remove Status, ConnectionType, and Error from DataCatalog and DataCatalogSummary. These were released inadvertently with no functionality. They were not populated or populated with a default value. Code related to these changes can be safely removed.
13
+
4
14
  1.95.0 (2024-09-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.95.0
1
+ 1.97.0
@@ -701,10 +701,8 @@ module Aws::Athena
701
701
  #
702
702
  # @option params [required, String] :type
703
703
  # The type of data catalog to create: `LAMBDA` for a federated catalog,
704
- # `GLUE` for an Glue Data Catalog, and `HIVE` for an external Apache
705
- # Hive metastore. `FEDERATED` is a federated catalog for which Athena
706
- # creates the connection and the Lambda function for you based on the
707
- # parameters that you pass.
704
+ # `HIVE` for an external hive metastore, or `GLUE` for an Glue Data
705
+ # Catalog.
708
706
  #
709
707
  # @option params [String] :description
710
708
  # A description of the data catalog to be created.
@@ -735,7 +733,6 @@ module Aws::Athena
735
733
  # function.
736
734
  #
737
735
  # `function=lambda_arn `
738
- #
739
736
  # * The `GLUE` type takes a catalog ID parameter and is required. The `
740
737
  # catalog_id ` is the account ID of the Amazon Web Services account to
741
738
  # which the Glue Data Catalog belongs.
@@ -748,37 +745,17 @@ module Aws::Athena
748
745
  #
749
746
  # ^
750
747
  #
751
- # * The `FEDERATED` data catalog type uses one of the following
752
- # parameters, but not both. Use `connection-arn` for an existing Glue
753
- # connection. Use `connection-type` and `connection-properties` to
754
- # specify the configuration setting for a new connection.
755
- #
756
- # * `connection-arn:<glue_connection_arn_to_reuse> `
757
- #
758
- # * `lambda-role-arn` (optional): The execution role to use for the
759
- # Lambda function. If not provided, one is created.
760
- #
761
- # * `connection-type:MYSQL|REDSHIFT|....,
762
- # connection-properties:"<json_string>"`
763
- #
764
- # For <i> <code>&lt;json_string&gt;</code> </i>, use escaped JSON
765
- # text, as in the following example.
766
- #
767
- # `"\{"spill_bucket":"my_spill","spill_prefix":"athena-spill","host":"abc12345.snowflakecomputing.com","port":"1234","warehouse":"DEV_WH","database":"TEST","schema":"PUBLIC","SecretArn":"arn:aws:secretsmanager:ap-south-1:111122223333:secret:snowflake-XHb67j"\}"`
768
- #
769
748
  # @option params [Array<Types::Tag>] :tags
770
749
  # A list of comma separated tags to add to the data catalog that is
771
750
  # created.
772
751
  #
773
- # @return [Types::CreateDataCatalogOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
774
- #
775
- # * {Types::CreateDataCatalogOutput#data_catalog #data_catalog} => Types::DataCatalog
752
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
776
753
  #
777
754
  # @example Request syntax with placeholder values
778
755
  #
779
756
  # resp = client.create_data_catalog({
780
757
  # name: "CatalogNameString", # required
781
- # type: "LAMBDA", # required, accepts LAMBDA, GLUE, HIVE, FEDERATED
758
+ # type: "LAMBDA", # required, accepts LAMBDA, GLUE, HIVE
782
759
  # description: "DescriptionString",
783
760
  # parameters: {
784
761
  # "KeyString" => "ParametersMapValue",
@@ -791,17 +768,6 @@ module Aws::Athena
791
768
  # ],
792
769
  # })
793
770
  #
794
- # @example Response structure
795
- #
796
- # resp.data_catalog.name #=> String
797
- # resp.data_catalog.description #=> String
798
- # resp.data_catalog.type #=> String, one of "LAMBDA", "GLUE", "HIVE", "FEDERATED"
799
- # resp.data_catalog.parameters #=> Hash
800
- # resp.data_catalog.parameters["KeyString"] #=> String
801
- # resp.data_catalog.status #=> String, one of "CREATE_IN_PROGRESS", "CREATE_COMPLETE", "CREATE_FAILED", "CREATE_FAILED_CLEANUP_IN_PROGRESS", "CREATE_FAILED_CLEANUP_COMPLETE", "CREATE_FAILED_CLEANUP_FAILED", "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED"
802
- # resp.data_catalog.connection_type #=> String, one of "DYNAMODB", "MYSQL", "POSTGRESQL", "REDSHIFT", "ORACLE", "SYNAPSE", "SQLSERVER", "DB2", "OPENSEARCH", "BIGQUERY", "GOOGLECLOUDSTORAGE", "HBASE", "DOCUMENTDB", "MSK", "NEPTUNE", "CMDB", "TPCDS", "REDIS", "CLOUDWATCH", "TIMESTREAM", "SAPHANA", "SNOWFLAKE", "TERADATA", "VERTICA", "CLOUDERAIMPALA", "CLOUDERAHIVE", "HORTONWORKSHIVE", "DATALAKEGEN2", "DB2AS400", "CLOUDWATCHMETRICS"
803
- # resp.data_catalog.error #=> String
804
- #
805
771
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog AWS API Documentation
806
772
  #
807
773
  # @overload create_data_catalog(params = {})
@@ -1111,9 +1077,7 @@ module Aws::Athena
1111
1077
  # @option params [required, String] :name
1112
1078
  # The name of the data catalog to delete.
1113
1079
  #
1114
- # @return [Types::DeleteDataCatalogOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1115
- #
1116
- # * {Types::DeleteDataCatalogOutput#data_catalog #data_catalog} => Types::DataCatalog
1080
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1117
1081
  #
1118
1082
  # @example Request syntax with placeholder values
1119
1083
  #
@@ -1121,17 +1085,6 @@ module Aws::Athena
1121
1085
  # name: "CatalogNameString", # required
1122
1086
  # })
1123
1087
  #
1124
- # @example Response structure
1125
- #
1126
- # resp.data_catalog.name #=> String
1127
- # resp.data_catalog.description #=> String
1128
- # resp.data_catalog.type #=> String, one of "LAMBDA", "GLUE", "HIVE", "FEDERATED"
1129
- # resp.data_catalog.parameters #=> Hash
1130
- # resp.data_catalog.parameters["KeyString"] #=> String
1131
- # resp.data_catalog.status #=> String, one of "CREATE_IN_PROGRESS", "CREATE_COMPLETE", "CREATE_FAILED", "CREATE_FAILED_CLEANUP_IN_PROGRESS", "CREATE_FAILED_CLEANUP_COMPLETE", "CREATE_FAILED_CLEANUP_FAILED", "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED"
1132
- # resp.data_catalog.connection_type #=> String, one of "DYNAMODB", "MYSQL", "POSTGRESQL", "REDSHIFT", "ORACLE", "SYNAPSE", "SQLSERVER", "DB2", "OPENSEARCH", "BIGQUERY", "GOOGLECLOUDSTORAGE", "HBASE", "DOCUMENTDB", "MSK", "NEPTUNE", "CMDB", "TPCDS", "REDIS", "CLOUDWATCH", "TIMESTREAM", "SAPHANA", "SNOWFLAKE", "TERADATA", "VERTICA", "CLOUDERAIMPALA", "CLOUDERAHIVE", "HORTONWORKSHIVE", "DATALAKEGEN2", "DB2AS400", "CLOUDWATCHMETRICS"
1133
- # resp.data_catalog.error #=> String
1134
- #
1135
1088
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog AWS API Documentation
1136
1089
  #
1137
1090
  # @overload delete_data_catalog(params = {})
@@ -1483,12 +1436,9 @@ module Aws::Athena
1483
1436
  #
1484
1437
  # resp.data_catalog.name #=> String
1485
1438
  # resp.data_catalog.description #=> String
1486
- # resp.data_catalog.type #=> String, one of "LAMBDA", "GLUE", "HIVE", "FEDERATED"
1439
+ # resp.data_catalog.type #=> String, one of "LAMBDA", "GLUE", "HIVE"
1487
1440
  # resp.data_catalog.parameters #=> Hash
1488
1441
  # resp.data_catalog.parameters["KeyString"] #=> String
1489
- # resp.data_catalog.status #=> String, one of "CREATE_IN_PROGRESS", "CREATE_COMPLETE", "CREATE_FAILED", "CREATE_FAILED_CLEANUP_IN_PROGRESS", "CREATE_FAILED_CLEANUP_COMPLETE", "CREATE_FAILED_CLEANUP_FAILED", "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED"
1490
- # resp.data_catalog.connection_type #=> String, one of "DYNAMODB", "MYSQL", "POSTGRESQL", "REDSHIFT", "ORACLE", "SYNAPSE", "SQLSERVER", "DB2", "OPENSEARCH", "BIGQUERY", "GOOGLECLOUDSTORAGE", "HBASE", "DOCUMENTDB", "MSK", "NEPTUNE", "CMDB", "TPCDS", "REDIS", "CLOUDWATCH", "TIMESTREAM", "SAPHANA", "SNOWFLAKE", "TERADATA", "VERTICA", "CLOUDERAIMPALA", "CLOUDERAHIVE", "HORTONWORKSHIVE", "DATALAKEGEN2", "DB2AS400", "CLOUDWATCHMETRICS"
1491
- # resp.data_catalog.error #=> String
1492
1442
  #
1493
1443
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog AWS API Documentation
1494
1444
  #
@@ -2315,10 +2265,7 @@ module Aws::Athena
2315
2265
  #
2316
2266
  # resp.data_catalogs_summary #=> Array
2317
2267
  # resp.data_catalogs_summary[0].catalog_name #=> String
2318
- # resp.data_catalogs_summary[0].type #=> String, one of "LAMBDA", "GLUE", "HIVE", "FEDERATED"
2319
- # resp.data_catalogs_summary[0].status #=> String, one of "CREATE_IN_PROGRESS", "CREATE_COMPLETE", "CREATE_FAILED", "CREATE_FAILED_CLEANUP_IN_PROGRESS", "CREATE_FAILED_CLEANUP_COMPLETE", "CREATE_FAILED_CLEANUP_FAILED", "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED"
2320
- # resp.data_catalogs_summary[0].connection_type #=> String, one of "DYNAMODB", "MYSQL", "POSTGRESQL", "REDSHIFT", "ORACLE", "SYNAPSE", "SQLSERVER", "DB2", "OPENSEARCH", "BIGQUERY", "GOOGLECLOUDSTORAGE", "HBASE", "DOCUMENTDB", "MSK", "NEPTUNE", "CMDB", "TPCDS", "REDIS", "CLOUDWATCH", "TIMESTREAM", "SAPHANA", "SNOWFLAKE", "TERADATA", "VERTICA", "CLOUDERAIMPALA", "CLOUDERAHIVE", "HORTONWORKSHIVE", "DATALAKEGEN2", "DB2AS400", "CLOUDWATCHMETRICS"
2321
- # resp.data_catalogs_summary[0].error #=> String
2268
+ # resp.data_catalogs_summary[0].type #=> String, one of "LAMBDA", "GLUE", "HIVE"
2322
2269
  # resp.next_token #=> String
2323
2270
  #
2324
2271
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs AWS API Documentation
@@ -3515,7 +3462,7 @@ module Aws::Athena
3515
3462
  #
3516
3463
  # resp = client.update_data_catalog({
3517
3464
  # name: "CatalogNameString", # required
3518
- # type: "LAMBDA", # required, accepts LAMBDA, GLUE, HIVE, FEDERATED
3465
+ # type: "LAMBDA", # required, accepts LAMBDA, GLUE, HIVE
3519
3466
  # description: "DescriptionString",
3520
3467
  # parameters: {
3521
3468
  # "KeyString" => "ParametersMapValue",
@@ -3773,7 +3720,7 @@ module Aws::Athena
3773
3720
  tracer: tracer
3774
3721
  )
3775
3722
  context[:gem_name] = 'aws-sdk-athena'
3776
- context[:gem_version] = '1.95.0'
3723
+ context[:gem_version] = '1.97.0'
3777
3724
  Seahorse::Client::Request.new(handlers, context)
3778
3725
  end
3779
3726
 
@@ -62,7 +62,6 @@ module Aws::Athena
62
62
  ColumnList = Shapes::ListShape.new(name: 'ColumnList')
63
63
  ColumnNullable = Shapes::StringShape.new(name: 'ColumnNullable')
64
64
  CommentString = Shapes::StringShape.new(name: 'CommentString')
65
- ConnectionType = Shapes::StringShape.new(name: 'ConnectionType')
66
65
  CoordinatorDpuSize = Shapes::IntegerShape.new(name: 'CoordinatorDpuSize')
67
66
  CreateCapacityReservationInput = Shapes::StructureShape.new(name: 'CreateCapacityReservationInput')
68
67
  CreateCapacityReservationOutput = Shapes::StructureShape.new(name: 'CreateCapacityReservationOutput')
@@ -80,7 +79,6 @@ module Aws::Athena
80
79
  CreateWorkGroupOutput = Shapes::StructureShape.new(name: 'CreateWorkGroupOutput')
81
80
  CustomerContentEncryptionConfiguration = Shapes::StructureShape.new(name: 'CustomerContentEncryptionConfiguration')
82
81
  DataCatalog = Shapes::StructureShape.new(name: 'DataCatalog')
83
- DataCatalogStatus = Shapes::StringShape.new(name: 'DataCatalogStatus')
84
82
  DataCatalogSummary = Shapes::StructureShape.new(name: 'DataCatalogSummary')
85
83
  DataCatalogSummaryList = Shapes::ListShape.new(name: 'DataCatalogSummaryList')
86
84
  DataCatalogType = Shapes::StringShape.new(name: 'DataCatalogType')
@@ -479,7 +477,6 @@ module Aws::Athena
479
477
  CreateDataCatalogInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
480
478
  CreateDataCatalogInput.struct_class = Types::CreateDataCatalogInput
481
479
 
482
- CreateDataCatalogOutput.add_member(:data_catalog, Shapes::ShapeRef.new(shape: DataCatalog, location_name: "DataCatalog"))
483
480
  CreateDataCatalogOutput.struct_class = Types::CreateDataCatalogOutput
484
481
 
485
482
  CreateNamedQueryInput.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
@@ -532,16 +529,10 @@ module Aws::Athena
532
529
  DataCatalog.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
533
530
  DataCatalog.add_member(:type, Shapes::ShapeRef.new(shape: DataCatalogType, required: true, location_name: "Type"))
534
531
  DataCatalog.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "Parameters"))
535
- DataCatalog.add_member(:status, Shapes::ShapeRef.new(shape: DataCatalogStatus, location_name: "Status"))
536
- DataCatalog.add_member(:connection_type, Shapes::ShapeRef.new(shape: ConnectionType, location_name: "ConnectionType"))
537
- DataCatalog.add_member(:error, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Error"))
538
532
  DataCatalog.struct_class = Types::DataCatalog
539
533
 
540
534
  DataCatalogSummary.add_member(:catalog_name, Shapes::ShapeRef.new(shape: CatalogNameString, location_name: "CatalogName"))
541
535
  DataCatalogSummary.add_member(:type, Shapes::ShapeRef.new(shape: DataCatalogType, location_name: "Type"))
542
- DataCatalogSummary.add_member(:status, Shapes::ShapeRef.new(shape: DataCatalogStatus, location_name: "Status"))
543
- DataCatalogSummary.add_member(:connection_type, Shapes::ShapeRef.new(shape: ConnectionType, location_name: "ConnectionType"))
544
- DataCatalogSummary.add_member(:error, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Error"))
545
536
  DataCatalogSummary.struct_class = Types::DataCatalogSummary
546
537
 
547
538
  DataCatalogSummaryList.member = Shapes::ShapeRef.new(shape: DataCatalogSummary)
@@ -564,7 +555,6 @@ module Aws::Athena
564
555
  DeleteDataCatalogInput.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
565
556
  DeleteDataCatalogInput.struct_class = Types::DeleteDataCatalogInput
566
557
 
567
- DeleteDataCatalogOutput.add_member(:data_catalog, Shapes::ShapeRef.new(shape: DataCatalog, location_name: "DataCatalog"))
568
558
  DeleteDataCatalogOutput.struct_class = Types::DeleteDataCatalogOutput
569
559
 
570
560
  DeleteNamedQueryInput.add_member(:named_query_id, Shapes::ShapeRef.new(shape: NamedQueryId, required: true, location_name: "NamedQueryId", metadata: {"idempotencyToken"=>true}))
@@ -52,15 +52,18 @@ module Aws::Athena
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end