Skip to content

Commit

Permalink
feat(client-athena): List/Get/Update/Delete/CreateDataCatalog now int…
Browse files Browse the repository at this point in the history
…egrate with AWS Glue connections. Users can create a Glue connection through Athena or use a Glue connection to define their Athena federated parameters.
  • Loading branch information
awstools committed Sep 23, 2024
1 parent 093a53f commit 51c977f
Show file tree
Hide file tree
Showing 7 changed files with 744 additions and 113 deletions.
18 changes: 15 additions & 3 deletions clients/client-athena/src/commands/CreateDataCatalogCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface CreateDataCatalogCommandOutput extends CreateDataCatalogOutput,
* const client = new AthenaClient(config);
* const input = { // CreateDataCatalogInput
* Name: "STRING_VALUE", // required
* Type: "LAMBDA" || "GLUE" || "HIVE", // required
* Type: "LAMBDA" || "GLUE" || "HIVE" || "FEDERATED", // required
* Description: "STRING_VALUE",
* Parameters: { // ParametersMap
* "<keys>": "STRING_VALUE",
Expand All @@ -52,7 +52,19 @@ export interface CreateDataCatalogCommandOutput extends CreateDataCatalogOutput,
* };
* const command = new CreateDataCatalogCommand(input);
* const response = await client.send(command);
* // {};
* // { // CreateDataCatalogOutput
* // DataCatalog: { // DataCatalog
* // Name: "STRING_VALUE", // required
* // Description: "STRING_VALUE",
* // Type: "LAMBDA" || "GLUE" || "HIVE" || "FEDERATED", // required
* // Parameters: { // ParametersMap
* // "<keys>": "STRING_VALUE",
* // },
* // Status: "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",
* // ConnectionType: "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",
* // Error: "STRING_VALUE",
* // },
* // };
*
* ```
*
Expand Down Expand Up @@ -100,7 +112,7 @@ export class CreateDataCatalogCommand extends $Command
protected declare static __types: {
api: {
input: CreateDataCatalogInput;
output: {};
output: CreateDataCatalogOutput;
};
sdk: {
input: CreateDataCatalogCommandInput;
Expand Down
16 changes: 14 additions & 2 deletions clients/client-athena/src/commands/DeleteDataCatalogCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,19 @@ export interface DeleteDataCatalogCommandOutput extends DeleteDataCatalogOutput,
* };
* const command = new DeleteDataCatalogCommand(input);
* const response = await client.send(command);
* // {};
* // { // DeleteDataCatalogOutput
* // DataCatalog: { // DataCatalog
* // Name: "STRING_VALUE", // required
* // Description: "STRING_VALUE",
* // Type: "LAMBDA" || "GLUE" || "HIVE" || "FEDERATED", // required
* // Parameters: { // ParametersMap
* // "<keys>": "STRING_VALUE",
* // },
* // Status: "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",
* // ConnectionType: "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",
* // Error: "STRING_VALUE",
* // },
* // };
*
* ```
*
Expand Down Expand Up @@ -88,7 +100,7 @@ export class DeleteDataCatalogCommand extends $Command
protected declare static __types: {
api: {
input: DeleteDataCatalogInput;
output: {};
output: DeleteDataCatalogOutput;
};
sdk: {
input: DeleteDataCatalogCommandInput;
Expand Down
5 changes: 4 additions & 1 deletion clients/client-athena/src/commands/GetDataCatalogCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@ export interface GetDataCatalogCommandOutput extends GetDataCatalogOutput, __Met
* // DataCatalog: { // DataCatalog
* // Name: "STRING_VALUE", // required
* // Description: "STRING_VALUE",
* // Type: "LAMBDA" || "GLUE" || "HIVE", // required
* // Type: "LAMBDA" || "GLUE" || "HIVE" || "FEDERATED", // required
* // Parameters: { // ParametersMap
* // "<keys>": "STRING_VALUE",
* // },
* // Status: "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",
* // ConnectionType: "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",
* // Error: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ export interface ListDataCatalogsCommandOutput extends ListDataCatalogsOutput, _
* // DataCatalogsSummary: [ // DataCatalogSummaryList
* // { // DataCatalogSummary
* // CatalogName: "STRING_VALUE",
* // Type: "LAMBDA" || "GLUE" || "HIVE",
* // Type: "LAMBDA" || "GLUE" || "HIVE" || "FEDERATED",
* // Status: "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",
* // ConnectionType: "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",
* // Error: "STRING_VALUE",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface UpdateDataCatalogCommandOutput extends UpdateDataCatalogOutput,
* const client = new AthenaClient(config);
* const input = { // UpdateDataCatalogInput
* Name: "STRING_VALUE", // required
* Type: "LAMBDA" || "GLUE" || "HIVE", // required
* Type: "LAMBDA" || "GLUE" || "HIVE" || "FEDERATED", // required
* Description: "STRING_VALUE",
* Parameters: { // ParametersMap
* "<keys>": "STRING_VALUE",
Expand Down
Loading

0 comments on commit 51c977f

Please sign in to comment.