aws-sdk-athena 1.95.0 → 1.96.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: 7afd64f856a052af9caa3a5cb384faaa89bfae40c5a0d8a697b3c2ee640ed82c
4
+ data.tar.gz: 8475b8f4f0b64b028d3f75827f57e7881ca3662be09d7f89f025c187a4f1f7c8
5
5
  SHA512:
6
- metadata.gz: b6e34e105bce18b1f3c0ca492af96b053ea11e1eefbdee0dab5cdd295fbb77b28baa9398dec4564531f46570e6089d5c67a6c69b1e2d53322d9d372e9a1f159b
7
- data.tar.gz: c7aac846663becdb4e5eca0dad52e82d13723fb82164d1d4a9fdd6a7c580db95f6bda44325db1cbc3fd28b9b45efda2826cdfdf0c040dfe71df84599968e205d
6
+ metadata.gz: 04a642069675e199e6ecd1d4e3b488be69ef2ddf51a9624ca2e5a9b8cfff8c07d8e357de38cc5388861eaa1af40c9e2bf70616f5c8c53806b56ebbaf90b8aff0
7
+ data.tar.gz: 3dd23aef5501a04efa28ca8831135a8a7b08645f9412145f5aca96b8e41c243eb753bb71fe8b3668d50c0700a339cabf362b49c710d082f915ec18ce631b6056
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.96.0 (2024-10-18)
5
+ ------------------
6
+
7
+ * Feature - Removing FEDERATED from Create/List/Delete/GetDataCatalog API
8
+
4
9
  1.95.0 (2024-09-24)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.95.0
1
+ 1.96.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.
@@ -748,37 +746,17 @@ module Aws::Athena
748
746
  #
749
747
  # ^
750
748
  #
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
749
  # @option params [Array<Types::Tag>] :tags
770
750
  # A list of comma separated tags to add to the data catalog that is
771
751
  # created.
772
752
  #
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
753
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
776
754
  #
777
755
  # @example Request syntax with placeholder values
778
756
  #
779
757
  # resp = client.create_data_catalog({
780
758
  # name: "CatalogNameString", # required
781
- # type: "LAMBDA", # required, accepts LAMBDA, GLUE, HIVE, FEDERATED
759
+ # type: "LAMBDA", # required, accepts LAMBDA, GLUE, HIVE
782
760
  # description: "DescriptionString",
783
761
  # parameters: {
784
762
  # "KeyString" => "ParametersMapValue",
@@ -791,17 +769,6 @@ module Aws::Athena
791
769
  # ],
792
770
  # })
793
771
  #
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
772
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog AWS API Documentation
806
773
  #
807
774
  # @overload create_data_catalog(params = {})
@@ -1111,9 +1078,7 @@ module Aws::Athena
1111
1078
  # @option params [required, String] :name
1112
1079
  # The name of the data catalog to delete.
1113
1080
  #
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
1081
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1117
1082
  #
1118
1083
  # @example Request syntax with placeholder values
1119
1084
  #
@@ -1121,17 +1086,6 @@ module Aws::Athena
1121
1086
  # name: "CatalogNameString", # required
1122
1087
  # })
1123
1088
  #
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
1089
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog AWS API Documentation
1136
1090
  #
1137
1091
  # @overload delete_data_catalog(params = {})
@@ -1483,12 +1437,9 @@ module Aws::Athena
1483
1437
  #
1484
1438
  # resp.data_catalog.name #=> String
1485
1439
  # resp.data_catalog.description #=> String
1486
- # resp.data_catalog.type #=> String, one of "LAMBDA", "GLUE", "HIVE", "FEDERATED"
1440
+ # resp.data_catalog.type #=> String, one of "LAMBDA", "GLUE", "HIVE"
1487
1441
  # resp.data_catalog.parameters #=> Hash
1488
1442
  # 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
1443
  #
1493
1444
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog AWS API Documentation
1494
1445
  #
@@ -2315,10 +2266,7 @@ module Aws::Athena
2315
2266
  #
2316
2267
  # resp.data_catalogs_summary #=> Array
2317
2268
  # 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
2269
+ # resp.data_catalogs_summary[0].type #=> String, one of "LAMBDA", "GLUE", "HIVE"
2322
2270
  # resp.next_token #=> String
2323
2271
  #
2324
2272
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs AWS API Documentation
@@ -3515,7 +3463,7 @@ module Aws::Athena
3515
3463
  #
3516
3464
  # resp = client.update_data_catalog({
3517
3465
  # name: "CatalogNameString", # required
3518
- # type: "LAMBDA", # required, accepts LAMBDA, GLUE, HIVE, FEDERATED
3466
+ # type: "LAMBDA", # required, accepts LAMBDA, GLUE, HIVE
3519
3467
  # description: "DescriptionString",
3520
3468
  # parameters: {
3521
3469
  # "KeyString" => "ParametersMapValue",
@@ -3773,7 +3721,7 @@ module Aws::Athena
3773
3721
  tracer: tracer
3774
3722
  )
3775
3723
  context[:gem_name] = 'aws-sdk-athena'
3776
- context[:gem_version] = '1.95.0'
3724
+ context[:gem_version] = '1.96.0'
3777
3725
  Seahorse::Client::Request.new(handlers, context)
3778
3726
  end
3779
3727
 
@@ -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