From 500786a14fa02561e817763aae95fb150729612c Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 3 Dec 2024 19:15:23 +0000 Subject: [PATCH] feat(client-athena): Add FEDERATED type to CreateDataCatalog. This creates Athena Data Catalog, AWS Lambda connector, and AWS Glue connection. Create/DeleteDataCatalog returns DataCatalog. Add Status, ConnectionType, and Error to DataCatalog and DataCatalogSummary. Add DeleteCatalogOnly to delete Athena Catalog only. --- .../src/commands/CreateDataCatalogCommand.ts | 36 +- .../src/commands/DeleteDataCatalogCommand.ts | 17 +- .../src/commands/GetDataCatalogCommand.ts | 5 +- .../src/commands/ListDataCatalogsCommand.ts | 5 +- .../src/commands/UpdateDataCatalogCommand.ts | 2 +- clients/client-athena/src/models/models_0.ts | 527 ++++++++++++++---- codegen/sdk-codegen/aws-models/athena.json | 259 ++++++++- 7 files changed, 734 insertions(+), 117 deletions(-) diff --git a/clients/client-athena/src/commands/CreateDataCatalogCommand.ts b/clients/client-athena/src/commands/CreateDataCatalogCommand.ts index 1c9af2931d53..8e7b7034b346 100644 --- a/clients/client-athena/src/commands/CreateDataCatalogCommand.ts +++ b/clients/client-athena/src/commands/CreateDataCatalogCommand.ts @@ -30,6 +30,24 @@ export interface CreateDataCatalogCommandOutput extends CreateDataCatalogOutput, /** *

Creates (registers) a data catalog with the specified name and properties. Catalogs * created are visible to all users of the same Amazon Web Services account.

+ *

This API operation creates the following resources.

+ * * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -38,7 +56,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 * "": "STRING_VALUE", @@ -52,7 +70,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 + * // "": "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" || "CMDB" || "TPCDS" || "TIMESTREAM" || "SAPHANA" || "SNOWFLAKE" || "DATALAKEGEN2" || "DB2AS400", + * // Error: "STRING_VALUE", + * // }, + * // }; * * ``` * @@ -100,7 +130,7 @@ export class CreateDataCatalogCommand extends $Command protected declare static __types: { api: { input: CreateDataCatalogInput; - output: {}; + output: CreateDataCatalogOutput; }; sdk: { input: CreateDataCatalogCommandInput; diff --git a/clients/client-athena/src/commands/DeleteDataCatalogCommand.ts b/clients/client-athena/src/commands/DeleteDataCatalogCommand.ts index fc0e8a0f6bde..237bec984c5d 100644 --- a/clients/client-athena/src/commands/DeleteDataCatalogCommand.ts +++ b/clients/client-athena/src/commands/DeleteDataCatalogCommand.ts @@ -37,10 +37,23 @@ export interface DeleteDataCatalogCommandOutput extends DeleteDataCatalogOutput, * const client = new AthenaClient(config); * const input = { // DeleteDataCatalogInput * Name: "STRING_VALUE", // required + * DeleteCatalogOnly: true || false, * }; * 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 + * // "": "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" || "CMDB" || "TPCDS" || "TIMESTREAM" || "SAPHANA" || "SNOWFLAKE" || "DATALAKEGEN2" || "DB2AS400", + * // Error: "STRING_VALUE", + * // }, + * // }; * * ``` * @@ -88,7 +101,7 @@ export class DeleteDataCatalogCommand extends $Command protected declare static __types: { api: { input: DeleteDataCatalogInput; - output: {}; + output: DeleteDataCatalogOutput; }; sdk: { input: DeleteDataCatalogCommandInput; diff --git a/clients/client-athena/src/commands/GetDataCatalogCommand.ts b/clients/client-athena/src/commands/GetDataCatalogCommand.ts index fc1b2615ef1a..5acb069c1b5b 100644 --- a/clients/client-athena/src/commands/GetDataCatalogCommand.ts +++ b/clients/client-athena/src/commands/GetDataCatalogCommand.ts @@ -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 * // "": "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" || "CMDB" || "TPCDS" || "TIMESTREAM" || "SAPHANA" || "SNOWFLAKE" || "DATALAKEGEN2" || "DB2AS400", + * // Error: "STRING_VALUE", * // }, * // }; * diff --git a/clients/client-athena/src/commands/ListDataCatalogsCommand.ts b/clients/client-athena/src/commands/ListDataCatalogsCommand.ts index 6b7a898e0452..e371cc79bac9 100644 --- a/clients/client-athena/src/commands/ListDataCatalogsCommand.ts +++ b/clients/client-athena/src/commands/ListDataCatalogsCommand.ts @@ -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" || "CMDB" || "TPCDS" || "TIMESTREAM" || "SAPHANA" || "SNOWFLAKE" || "DATALAKEGEN2" || "DB2AS400", + * // Error: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-athena/src/commands/UpdateDataCatalogCommand.ts b/clients/client-athena/src/commands/UpdateDataCatalogCommand.ts index 335b4069f2bf..50ece0fa59af 100644 --- a/clients/client-athena/src/commands/UpdateDataCatalogCommand.ts +++ b/clients/client-athena/src/commands/UpdateDataCatalogCommand.ts @@ -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 * "": "STRING_VALUE", diff --git a/clients/client-athena/src/models/models_0.ts b/clients/client-athena/src/models/models_0.ts index 2031c605903c..75ffd5c21e37 100644 --- a/clients/client-athena/src/models/models_0.ts +++ b/clients/client-athena/src/models/models_0.ts @@ -968,6 +968,7 @@ export interface CreateCapacityReservationOutput {} * @enum */ export const DataCatalogType = { + FEDERATED: "FEDERATED", GLUE: "GLUE", HIVE: "HIVE", LAMBDA: "LAMBDA", @@ -987,14 +988,32 @@ export interface CreateDataCatalogInput { * Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at * sign, or hyphen characters. The remainder of the length constraint of 256 is reserved * for use by Athena.

+ *

For FEDERATED type the catalog name has following considerations and + * limits:

+ *
    + *
  • + *

    The catalog name allows special characters such as _ , @ , \ , - + * . These characters are replaced with a hyphen (-) when creating the CFN + * Stack Name and with an underscore (_) when creating the Lambda Function and Glue + * Connection Name.

    + *
  • + *
  • + *

    The catalog name has a theoretical limit of 128 characters. However, since we + * use it to create other resources that allow less characters and we prepend a + * prefix to it, the actual catalog name limit for FEDERATED catalog + * is 64 - 23 = 41 characters.

    + *
  • + *
* @public */ Name: string | undefined; /** *

The type of data catalog to create: LAMBDA for a federated catalog, - * HIVE for an external hive metastore, or GLUE for an - * Glue Data Catalog.

+ * GLUE for an Glue Data Catalog, and HIVE for an + * external Apache Hive metastore. FEDERATED is a federated catalog for which + * Athena creates the connection and the Lambda function for + * you based on the parameters that you pass.

* @public */ Type: DataCatalogType | undefined; @@ -1063,22 +1082,327 @@ export interface CreateDataCatalogInput { * * * + *
  • + *

    The FEDERATED data catalog type uses one of the following + * parameters, but not both. Use connection-arn for an existing + * Glue connection. Use connection-type and + * connection-properties to specify the configuration setting for + * a new connection.

    + *
      + *
    • + *

      + * connection-arn: + * + *

      + *
    • + *
    • + *

      + * lambda-role-arn (optional): The execution role to use for the + * Lambda function. If not provided, one is created.

      + *
    • + *
    • + *

      + * connection-type:MYSQL|REDSHIFT|...., + * connection-properties:"" + *

      + *

      For + * + * , use escaped + * JSON text, as in the following example.

      + *

      + * "\{\"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\"\}" + *

      + *
    • + *
    + *
  • * * @public */ Parameters?: Record | undefined; /** - *

    A list of comma separated tags to add to the data catalog that is created.

    + *

    A list of comma separated tags to add to the data catalog that is created. All the + * resources that are created by the CreateDataCatalog API operation with + * FEDERATED type will have the tag + * federated_athena_datacatalog="true". This includes the CFN Stack, Glue + * Connection, Athena DataCatalog, and all the resources created as part of the CFN Stack + * (Lambda Function, IAM policies/roles).

    * @public */ Tags?: Tag[] | undefined; } +/** + * @public + * @enum + */ +export const ConnectionType = { + BIGQUERY: "BIGQUERY", + CMDB: "CMDB", + DATALAKEGEN2: "DATALAKEGEN2", + DB2: "DB2", + DB2AS400: "DB2AS400", + DOCUMENTDB: "DOCUMENTDB", + DYNAMODB: "DYNAMODB", + GOOGLECLOUDSTORAGE: "GOOGLECLOUDSTORAGE", + HBASE: "HBASE", + MYSQL: "MYSQL", + OPENSEARCH: "OPENSEARCH", + ORACLE: "ORACLE", + POSTGRESQL: "POSTGRESQL", + REDSHIFT: "REDSHIFT", + SAPHANA: "SAPHANA", + SNOWFLAKE: "SNOWFLAKE", + SQLSERVER: "SQLSERVER", + SYNAPSE: "SYNAPSE", + TIMESTREAM: "TIMESTREAM", + TPCDS: "TPCDS", +} as const; + /** * @public */ -export interface CreateDataCatalogOutput {} +export type ConnectionType = (typeof ConnectionType)[keyof typeof ConnectionType]; + +/** + * @public + * @enum + */ +export const DataCatalogStatus = { + CREATE_COMPLETE: "CREATE_COMPLETE", + CREATE_FAILED: "CREATE_FAILED", + CREATE_FAILED_CLEANUP_COMPLETE: "CREATE_FAILED_CLEANUP_COMPLETE", + CREATE_FAILED_CLEANUP_FAILED: "CREATE_FAILED_CLEANUP_FAILED", + CREATE_FAILED_CLEANUP_IN_PROGRESS: "CREATE_FAILED_CLEANUP_IN_PROGRESS", + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + DELETE_COMPLETE: "DELETE_COMPLETE", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", +} as const; + +/** + * @public + */ +export type DataCatalogStatus = (typeof DataCatalogStatus)[keyof typeof DataCatalogStatus]; + +/** + *

    Contains information about a data catalog in an Amazon Web Services account.

    + * + *

    In the Athena console, data catalogs are listed as "data sources" on + * the Data sources page under the Data source name column.

    + *
    + * @public + */ +export interface DataCatalog { + /** + *

    The name of the data catalog. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign, + * or hyphen characters. The remainder of the length constraint of 256 is reserved for use + * by Athena.

    + * @public + */ + Name: string | undefined; + + /** + *

    An optional description of the data catalog.

    + * @public + */ + Description?: string | undefined; + + /** + *

    The type of data catalog to create: LAMBDA for a federated catalog, + * GLUE for an Glue Data Catalog, and HIVE for an + * external Apache Hive metastore. FEDERATED is a federated catalog for which + * Athena creates the connection and the Lambda function for + * you based on the parameters that you pass.

    + * @public + */ + Type: DataCatalogType | undefined; + + /** + *

    Specifies the Lambda function or functions to use for the data catalog. + * This is a mapping whose values depend on the catalog type.

    + *
      + *
    • + *

      For the HIVE data catalog type, use the following syntax. The + * metadata-function parameter is required. The + * sdk-version parameter is optional and defaults to the currently + * supported version.

      + *

      + * metadata-function=lambda_arn, + * sdk-version=version_number + * + *

      + *
    • + *
    • + *

      For the LAMBDA data catalog type, use one of the following sets + * of required parameters, but not both.

      + *
        + *
      • + *

        If you have one Lambda function that processes metadata + * and another for reading the actual data, use the following syntax. Both + * parameters are required.

        + *

        + * metadata-function=lambda_arn, + * record-function=lambda_arn + * + *

        + *
      • + *
      • + *

        If you have a composite Lambda function that processes + * both metadata and data, use the following syntax to specify your Lambda function.

        + *

        + * function=lambda_arn + * + *

        + *
      • + *
      + *
    • + *
    • + *

      The GLUE type takes a catalog ID parameter and is required. The + * + * catalog_id + * is the account ID of the + * Amazon Web Services account to which the Glue catalog + * belongs.

      + *

      + * catalog-id=catalog_id + * + *

      + *
        + *
      • + *

        The GLUE data catalog type also applies to the default + * AwsDataCatalog that already exists in your account, of + * which you can have only one and cannot modify.

        + *
      • + *
      + *
    • + *
    • + *

      The FEDERATED data catalog type uses one of the following + * parameters, but not both. Use connection-arn for an existing + * Glue connection. Use connection-type and + * connection-properties to specify the configuration setting for + * a new connection.

      + *
        + *
      • + *

        + * connection-arn: + * + *

        + *
      • + *
      • + *

        + * connection-type:MYSQL|REDSHIFT|...., + * connection-properties:"" + *

        + *

        For + * + * , use escaped + * JSON text, as in the following example.

        + *

        + * "\{\"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\"\}" + *

        + *
      • + *
      + *
    • + *
    + * @public + */ + Parameters?: Record | undefined; + + /** + *

    The status of the creation or deletion of the data catalog.

    + *
      + *
    • + *

      The LAMBDA, GLUE, and HIVE data catalog + * types are created synchronously. Their status is either + * CREATE_COMPLETE or CREATE_FAILED.

      + *
    • + *
    • + *

      The FEDERATED data catalog type is created asynchronously.

      + *
    • + *
    + *

    Data catalog creation status:

    + *
      + *
    • + *

      + * CREATE_IN_PROGRESS: Federated data catalog creation in + * progress.

      + *
    • + *
    • + *

      + * CREATE_COMPLETE: Data catalog creation complete.

      + *
    • + *
    • + *

      + * CREATE_FAILED: Data catalog could not be created.

      + *
    • + *
    • + *

      + * CREATE_FAILED_CLEANUP_IN_PROGRESS: Federated data catalog + * creation failed and is being removed.

      + *
    • + *
    • + *

      + * CREATE_FAILED_CLEANUP_COMPLETE: Federated data catalog creation + * failed and was removed.

      + *
    • + *
    • + *

      + * CREATE_FAILED_CLEANUP_FAILED: Federated data catalog creation + * failed but could not be removed.

      + *
    • + *
    + *

    Data catalog deletion status:

    + *
      + *
    • + *

      + * DELETE_IN_PROGRESS: Federated data catalog deletion in + * progress.

      + *
    • + *
    • + *

      + * DELETE_COMPLETE: Federated data catalog deleted.

      + *
    • + *
    • + *

      + * DELETE_FAILED: Federated data catalog could not be + * deleted.

      + *
    • + *
    + * @public + */ + Status?: DataCatalogStatus | undefined; + + /** + *

    The type of connection for a FEDERATED data catalog (for example, + * REDSHIFT, MYSQL, or SQLSERVER). For + * information about individual connectors, see Available data source + * connectors.

    + * @public + */ + ConnectionType?: ConnectionType | undefined; + + /** + *

    Text of the error that occurred during data catalog creation or deletion.

    + * @public + */ + Error?: string | undefined; +} + +/** + * @public + */ +export interface CreateDataCatalogOutput { + /** + *

    Contains information about a data catalog in an Amazon Web Services account.

    + * + *

    In the Athena console, data catalogs are listed as "data sources" on + * the Data sources page under the Data source name column.

    + *
    + * @public + */ + DataCatalog?: DataCatalog | undefined; +} /** * @public @@ -1530,12 +1854,31 @@ export interface DeleteDataCatalogInput { * @public */ Name: string | undefined; + + /** + *

    Deletes the Athena Data Catalog. You can only use this with the FEDERATED + * catalogs. You usually perform this before registering the connector with Glue Data + * Catalog. After deletion, you will have to manage the Glue Connection and Lambda + * function.

    + * @public + */ + DeleteCatalogOnly?: boolean | undefined; } /** * @public */ -export interface DeleteDataCatalogOutput {} +export interface DeleteDataCatalogOutput { + /** + *

    Contains information about a data catalog in an Amazon Web Services account.

    + * + *

    In the Athena console, data catalogs are listed as "data sources" on + * the Data sources page under the Data source name column.

    + *
    + * @public + */ + DataCatalog?: DataCatalog | undefined; +} /** * @public @@ -2225,101 +2568,6 @@ export interface GetDataCatalogInput { WorkGroup?: string | undefined; } -/** - *

    Contains information about a data catalog in an Amazon Web Services account.

    - * - *

    In the Athena console, data catalogs are listed as "data sources" on - * the Data sources page under the Data source name column.

    - *
    - * @public - */ -export interface DataCatalog { - /** - *

    The name of the data catalog. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign, - * or hyphen characters. The remainder of the length constraint of 256 is reserved for use - * by Athena.

    - * @public - */ - Name: string | undefined; - - /** - *

    An optional description of the data catalog.

    - * @public - */ - Description?: string | undefined; - - /** - *

    The type of data catalog to create: LAMBDA for a federated catalog, - * HIVE for an external hive metastore, or GLUE for an - * Glue Data Catalog.

    - * @public - */ - Type: DataCatalogType | undefined; - - /** - *

    Specifies the Lambda function or functions to use for the data catalog. - * This is a mapping whose values depend on the catalog type.

    - *
      - *
    • - *

      For the HIVE data catalog type, use the following syntax. The - * metadata-function parameter is required. The - * sdk-version parameter is optional and defaults to the currently - * supported version.

      - *

      - * metadata-function=lambda_arn, - * sdk-version=version_number - * - *

      - *
    • - *
    • - *

      For the LAMBDA data catalog type, use one of the following sets - * of required parameters, but not both.

      - *
        - *
      • - *

        If you have one Lambda function that processes metadata - * and another for reading the actual data, use the following syntax. Both - * parameters are required.

        - *

        - * metadata-function=lambda_arn, - * record-function=lambda_arn - * - *

        - *
      • - *
      • - *

        If you have a composite Lambda function that processes - * both metadata and data, use the following syntax to specify your Lambda function.

        - *

        - * function=lambda_arn - * - *

        - *
      • - *
      - *
    • - *
    • - *

      The GLUE type takes a catalog ID parameter and is required. The - * - * catalog_id - * is the account ID of the - * Amazon Web Services account to which the Glue catalog - * belongs.

      - *

      - * catalog-id=catalog_id - * - *

      - *
        - *
      • - *

        The GLUE data catalog type also applies to the default - * AwsDataCatalog that already exists in your account, of - * which you can have only one and cannot modify.

        - *
      • - *
      - *
    • - *
    - * @public - */ - Parameters?: Record | undefined; -} - /** * @public */ @@ -3532,6 +3780,85 @@ export interface DataCatalogSummary { * @public */ Type?: DataCatalogType | undefined; + + /** + *

    The status of the creation or deletion of the data catalog.

    + *
      + *
    • + *

      The LAMBDA, GLUE, and HIVE data catalog + * types are created synchronously. Their status is either + * CREATE_COMPLETE or CREATE_FAILED.

      + *
    • + *
    • + *

      The FEDERATED data catalog type is created asynchronously.

      + *
    • + *
    + *

    Data catalog creation status:

    + *
      + *
    • + *

      + * CREATE_IN_PROGRESS: Federated data catalog creation in + * progress.

      + *
    • + *
    • + *

      + * CREATE_COMPLETE: Data catalog creation complete.

      + *
    • + *
    • + *

      + * CREATE_FAILED: Data catalog could not be created.

      + *
    • + *
    • + *

      + * CREATE_FAILED_CLEANUP_IN_PROGRESS: Federated data catalog + * creation failed and is being removed.

      + *
    • + *
    • + *

      + * CREATE_FAILED_CLEANUP_COMPLETE: Federated data catalog creation + * failed and was removed.

      + *
    • + *
    • + *

      + * CREATE_FAILED_CLEANUP_FAILED: Federated data catalog creation + * failed but could not be removed.

      + *
    • + *
    + *

    Data catalog deletion status:

    + *
      + *
    • + *

      + * DELETE_IN_PROGRESS: Federated data catalog deletion in + * progress.

      + *
    • + *
    • + *

      + * DELETE_COMPLETE: Federated data catalog deleted.

      + *
    • + *
    • + *

      + * DELETE_FAILED: Federated data catalog could not be + * deleted.

      + *
    • + *
    + * @public + */ + Status?: DataCatalogStatus | undefined; + + /** + *

    The type of connection for a FEDERATED data catalog (for example, + * REDSHIFT, MYSQL, or SQLSERVER). For + * information about individual connectors, see Available data source + * connectors.

    + * @public + */ + ConnectionType?: ConnectionType | undefined; + + /** + *

    Text of the error that occurred during data catalog creation or deletion.

    + * @public + */ + Error?: string | undefined; } /** diff --git a/codegen/sdk-codegen/aws-models/athena.json b/codegen/sdk-codegen/aws-models/athena.json index e6fef7b284fe..adc6930a5529 100644 --- a/codegen/sdk-codegen/aws-models/athena.json +++ b/codegen/sdk-codegen/aws-models/athena.json @@ -2172,6 +2172,131 @@ "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*$" } }, + "com.amazonaws.athena#ConnectionType": { + "type": "enum", + "members": { + "DYNAMODB": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DYNAMODB" + } + }, + "MYSQL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MYSQL" + } + }, + "POSTGRESQL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "POSTGRESQL" + } + }, + "REDSHIFT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "REDSHIFT" + } + }, + "ORACLE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ORACLE" + } + }, + "SYNAPSE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SYNAPSE" + } + }, + "SQLSERVER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SQLSERVER" + } + }, + "DB2": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DB2" + } + }, + "OPENSEARCH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OPENSEARCH" + } + }, + "BIGQUERY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BIGQUERY" + } + }, + "GOOGLECLOUDSTORAGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "GOOGLECLOUDSTORAGE" + } + }, + "HBASE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "HBASE" + } + }, + "DOCUMENTDB": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DOCUMENTDB" + } + }, + "CMDB": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CMDB" + } + }, + "TPCDS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TPCDS" + } + }, + "TIMESTREAM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TIMESTREAM" + } + }, + "SAPHANA": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SAPHANA" + } + }, + "SNOWFLAKE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SNOWFLAKE" + } + }, + "DATALAKEGEN2": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DATALAKEGEN2" + } + }, + "DB2AS400": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DB2AS400" + } + } + } + }, "com.amazonaws.athena#CoordinatorDpuSize": { "type": "integer", "traits": { @@ -2254,7 +2379,7 @@ } ], "traits": { - "smithy.api#documentation": "

    Creates (registers) a data catalog with the specified name and properties. Catalogs\n created are visible to all users of the same Amazon Web Services account.

    " + "smithy.api#documentation": "

    Creates (registers) a data catalog with the specified name and properties. Catalogs\n created are visible to all users of the same Amazon Web Services account.

    \n

    This API operation creates the following resources.

    \n
      \n
    • \n

      CFN Stack Name with a maximum length of 128 characters and prefix\n athenafederatedcatalog-CATALOG_NAME_SANITIZED with length 23\n characters.

      \n
    • \n
    • \n

      Lambda Function Name with a maximum length of 64 characters and prefix\n athenafederatedcatalog_CATALOG_NAME_SANITIZED with length 23\n characters.

      \n
    • \n
    • \n

      Glue Connection Name with a maximum length of 255 characters and a prefix\n athenafederatedcatalog_CATALOG_NAME_SANITIZED with length 23\n characters.

      \n
    • \n
    " } }, "com.amazonaws.athena#CreateDataCatalogInput": { @@ -2263,14 +2388,14 @@ "Name": { "target": "com.amazonaws.athena#CatalogNameString", "traits": { - "smithy.api#documentation": "

    The name of the data catalog to create. The catalog name must be unique for the\n Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at\n sign, or hyphen characters. The remainder of the length constraint of 256 is reserved\n for use by Athena.

    ", + "smithy.api#documentation": "

    The name of the data catalog to create. The catalog name must be unique for the\n Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at\n sign, or hyphen characters. The remainder of the length constraint of 256 is reserved\n for use by Athena.

    \n

    For FEDERATED type the catalog name has following considerations and\n limits:

    \n
      \n
    • \n

      The catalog name allows special characters such as _ , @ , \\ , -\n . These characters are replaced with a hyphen (-) when creating the CFN\n Stack Name and with an underscore (_) when creating the Lambda Function and Glue\n Connection Name.

      \n
    • \n
    • \n

      The catalog name has a theoretical limit of 128 characters. However, since we\n use it to create other resources that allow less characters and we prepend a\n prefix to it, the actual catalog name limit for FEDERATED catalog\n is 64 - 23 = 41 characters.

      \n
    • \n
    ", "smithy.api#required": {} } }, "Type": { "target": "com.amazonaws.athena#DataCatalogType", "traits": { - "smithy.api#documentation": "

    The type of data catalog to create: LAMBDA for a federated catalog,\n HIVE for an external hive metastore, or GLUE for an\n Glue Data Catalog.

    ", + "smithy.api#documentation": "

    The type of data catalog to create: LAMBDA for a federated catalog,\n GLUE for an Glue Data Catalog, and HIVE for an\n external Apache Hive metastore. FEDERATED is a federated catalog for which\n Athena creates the connection and the Lambda function for\n you based on the parameters that you pass.

    ", "smithy.api#required": {} } }, @@ -2283,13 +2408,13 @@ "Parameters": { "target": "com.amazonaws.athena#ParametersMap", "traits": { - "smithy.api#documentation": "

    Specifies the Lambda function or functions to use for creating the data\n catalog. This is a mapping whose values depend on the catalog type.

    \n
      \n
    • \n

      For the HIVE data catalog type, use the following syntax. The\n metadata-function parameter is required. The\n sdk-version parameter is optional and defaults to the currently\n supported version.

      \n

      \n metadata-function=lambda_arn,\n sdk-version=version_number\n \n

      \n
    • \n
    • \n

      For the LAMBDA data catalog type, use one of the following sets\n of required parameters, but not both.

      \n
        \n
      • \n

        If you have one Lambda function that processes metadata\n and another for reading the actual data, use the following syntax. Both\n parameters are required.

        \n

        \n metadata-function=lambda_arn,\n record-function=lambda_arn\n \n

        \n
      • \n
      • \n

        If you have a composite Lambda function that processes\n both metadata and data, use the following syntax to specify your Lambda function.

        \n

        \n function=lambda_arn\n \n

        \n
      • \n
      \n
    • \n
    • \n

      The GLUE type takes a catalog ID parameter and is required. The\n \n catalog_id\n is the account ID of the\n Amazon Web Services account to which the Glue Data Catalog\n belongs.

      \n

      \n catalog-id=catalog_id\n \n

      \n
        \n
      • \n

        The GLUE data catalog type also applies to the default\n AwsDataCatalog that already exists in your account, of\n which you can have only one and cannot modify.

        \n
      • \n
      \n
    • \n
    " + "smithy.api#documentation": "

    Specifies the Lambda function or functions to use for creating the data\n catalog. This is a mapping whose values depend on the catalog type.

    \n
      \n
    • \n

      For the HIVE data catalog type, use the following syntax. The\n metadata-function parameter is required. The\n sdk-version parameter is optional and defaults to the currently\n supported version.

      \n

      \n metadata-function=lambda_arn,\n sdk-version=version_number\n \n

      \n
    • \n
    • \n

      For the LAMBDA data catalog type, use one of the following sets\n of required parameters, but not both.

      \n
        \n
      • \n

        If you have one Lambda function that processes metadata\n and another for reading the actual data, use the following syntax. Both\n parameters are required.

        \n

        \n metadata-function=lambda_arn,\n record-function=lambda_arn\n \n

        \n
      • \n
      • \n

        If you have a composite Lambda function that processes\n both metadata and data, use the following syntax to specify your Lambda function.

        \n

        \n function=lambda_arn\n \n

        \n
      • \n
      \n
    • \n
    • \n

      The GLUE type takes a catalog ID parameter and is required. The\n \n catalog_id\n is the account ID of the\n Amazon Web Services account to which the Glue Data Catalog\n belongs.

      \n

      \n catalog-id=catalog_id\n \n

      \n
        \n
      • \n

        The GLUE data catalog type also applies to the default\n AwsDataCatalog that already exists in your account, of\n which you can have only one and cannot modify.

        \n
      • \n
      \n
    • \n
    • \n

      The FEDERATED data catalog type uses one of the following\n parameters, but not both. Use connection-arn for an existing\n Glue connection. Use connection-type and\n connection-properties to specify the configuration setting for\n a new connection.

      \n
        \n
      • \n

        \n connection-arn:\n \n

        \n
      • \n
      • \n

        \n lambda-role-arn (optional): The execution role to use for the\n Lambda function. If not provided, one is created.

        \n
      • \n
      • \n

        \n connection-type:MYSQL|REDSHIFT|....,\n connection-properties:\"\"\n

        \n

        For \n \n , use escaped\n JSON text, as in the following example.

        \n

        \n \"{\\\"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\\\"}\"\n

        \n
      • \n
      \n
    • \n
    " } }, "Tags": { "target": "com.amazonaws.athena#TagList", "traits": { - "smithy.api#documentation": "

    A list of comma separated tags to add to the data catalog that is created.

    " + "smithy.api#documentation": "

    A list of comma separated tags to add to the data catalog that is created. All the\n resources that are created by the CreateDataCatalog API operation with\n FEDERATED type will have the tag\n federated_athena_datacatalog=\"true\". This includes the CFN Stack, Glue\n Connection, Athena DataCatalog, and all the resources created as part of the CFN Stack\n (Lambda Function, IAM policies/roles).

    " } } }, @@ -2299,7 +2424,11 @@ }, "com.amazonaws.athena#CreateDataCatalogOutput": { "type": "structure", - "members": {}, + "members": { + "DataCatalog": { + "target": "com.amazonaws.athena#DataCatalog" + } + }, "traits": { "smithy.api#output": {} } @@ -2675,14 +2804,32 @@ "Type": { "target": "com.amazonaws.athena#DataCatalogType", "traits": { - "smithy.api#documentation": "

    The type of data catalog to create: LAMBDA for a federated catalog,\n HIVE for an external hive metastore, or GLUE for an\n Glue Data Catalog.

    ", + "smithy.api#documentation": "

    The type of data catalog to create: LAMBDA for a federated catalog,\n GLUE for an Glue Data Catalog, and HIVE for an\n external Apache Hive metastore. FEDERATED is a federated catalog for which\n Athena creates the connection and the Lambda function for\n you based on the parameters that you pass.

    ", "smithy.api#required": {} } }, "Parameters": { "target": "com.amazonaws.athena#ParametersMap", "traits": { - "smithy.api#documentation": "

    Specifies the Lambda function or functions to use for the data catalog.\n This is a mapping whose values depend on the catalog type.

    \n
      \n
    • \n

      For the HIVE data catalog type, use the following syntax. The\n metadata-function parameter is required. The\n sdk-version parameter is optional and defaults to the currently\n supported version.

      \n

      \n metadata-function=lambda_arn,\n sdk-version=version_number\n \n

      \n
    • \n
    • \n

      For the LAMBDA data catalog type, use one of the following sets\n of required parameters, but not both.

      \n
        \n
      • \n

        If you have one Lambda function that processes metadata\n and another for reading the actual data, use the following syntax. Both\n parameters are required.

        \n

        \n metadata-function=lambda_arn,\n record-function=lambda_arn\n \n

        \n
      • \n
      • \n

        If you have a composite Lambda function that processes\n both metadata and data, use the following syntax to specify your Lambda function.

        \n

        \n function=lambda_arn\n \n

        \n
      • \n
      \n
    • \n
    • \n

      The GLUE type takes a catalog ID parameter and is required. The\n \n catalog_id\n is the account ID of the\n Amazon Web Services account to which the Glue catalog\n belongs.

      \n

      \n catalog-id=catalog_id\n \n

      \n
        \n
      • \n

        The GLUE data catalog type also applies to the default\n AwsDataCatalog that already exists in your account, of\n which you can have only one and cannot modify.

        \n
      • \n
      \n
    • \n
    " + "smithy.api#documentation": "

    Specifies the Lambda function or functions to use for the data catalog.\n This is a mapping whose values depend on the catalog type.

    \n
      \n
    • \n

      For the HIVE data catalog type, use the following syntax. The\n metadata-function parameter is required. The\n sdk-version parameter is optional and defaults to the currently\n supported version.

      \n

      \n metadata-function=lambda_arn,\n sdk-version=version_number\n \n

      \n
    • \n
    • \n

      For the LAMBDA data catalog type, use one of the following sets\n of required parameters, but not both.

      \n
        \n
      • \n

        If you have one Lambda function that processes metadata\n and another for reading the actual data, use the following syntax. Both\n parameters are required.

        \n

        \n metadata-function=lambda_arn,\n record-function=lambda_arn\n \n

        \n
      • \n
      • \n

        If you have a composite Lambda function that processes\n both metadata and data, use the following syntax to specify your Lambda function.

        \n

        \n function=lambda_arn\n \n

        \n
      • \n
      \n
    • \n
    • \n

      The GLUE type takes a catalog ID parameter and is required. The\n \n catalog_id\n is the account ID of the\n Amazon Web Services account to which the Glue catalog\n belongs.

      \n

      \n catalog-id=catalog_id\n \n

      \n
        \n
      • \n

        The GLUE data catalog type also applies to the default\n AwsDataCatalog that already exists in your account, of\n which you can have only one and cannot modify.

        \n
      • \n
      \n
    • \n
    • \n

      The FEDERATED data catalog type uses one of the following\n parameters, but not both. Use connection-arn for an existing\n Glue connection. Use connection-type and\n connection-properties to specify the configuration setting for\n a new connection.

      \n
        \n
      • \n

        \n connection-arn:\n \n

        \n
      • \n
      • \n

        \n connection-type:MYSQL|REDSHIFT|....,\n connection-properties:\"\"\n

        \n

        For \n \n , use escaped\n JSON text, as in the following example.

        \n

        \n \"{\\\"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\\\"}\"\n

        \n
      • \n
      \n
    • \n
    " + } + }, + "Status": { + "target": "com.amazonaws.athena#DataCatalogStatus", + "traits": { + "smithy.api#documentation": "

    The status of the creation or deletion of the data catalog.

    \n
      \n
    • \n

      The LAMBDA, GLUE, and HIVE data catalog\n types are created synchronously. Their status is either\n CREATE_COMPLETE or CREATE_FAILED.

      \n
    • \n
    • \n

      The FEDERATED data catalog type is created asynchronously.

      \n
    • \n
    \n

    Data catalog creation status:

    \n
      \n
    • \n

      \n CREATE_IN_PROGRESS: Federated data catalog creation in\n progress.

      \n
    • \n
    • \n

      \n CREATE_COMPLETE: Data catalog creation complete.

      \n
    • \n
    • \n

      \n CREATE_FAILED: Data catalog could not be created.

      \n
    • \n
    • \n

      \n CREATE_FAILED_CLEANUP_IN_PROGRESS: Federated data catalog\n creation failed and is being removed.

      \n
    • \n
    • \n

      \n CREATE_FAILED_CLEANUP_COMPLETE: Federated data catalog creation\n failed and was removed.

      \n
    • \n
    • \n

      \n CREATE_FAILED_CLEANUP_FAILED: Federated data catalog creation\n failed but could not be removed.

      \n
    • \n
    \n

    Data catalog deletion status:

    \n
      \n
    • \n

      \n DELETE_IN_PROGRESS: Federated data catalog deletion in\n progress.

      \n
    • \n
    • \n

      \n DELETE_COMPLETE: Federated data catalog deleted.

      \n
    • \n
    • \n

      \n DELETE_FAILED: Federated data catalog could not be\n deleted.

      \n
    • \n
    " + } + }, + "ConnectionType": { + "target": "com.amazonaws.athena#ConnectionType", + "traits": { + "smithy.api#documentation": "

    The type of connection for a FEDERATED data catalog (for example,\n REDSHIFT, MYSQL, or SQLSERVER). For\n information about individual connectors, see Available data source\n connectors.

    " + } + }, + "Error": { + "target": "com.amazonaws.athena#ErrorMessage", + "traits": { + "smithy.api#documentation": "

    Text of the error that occurred during data catalog creation or deletion.

    " } } }, @@ -2690,6 +2837,65 @@ "smithy.api#documentation": "

    Contains information about a data catalog in an Amazon Web Services account.

    \n \n

    In the Athena console, data catalogs are listed as \"data sources\" on\n the Data sources page under the Data source name column.

    \n
    " } }, + "com.amazonaws.athena#DataCatalogStatus": { + "type": "enum", + "members": { + "CREATE_IN_PROGRESS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATE_IN_PROGRESS" + } + }, + "CREATE_COMPLETE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATE_COMPLETE" + } + }, + "CREATE_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATE_FAILED" + } + }, + "CREATE_FAILED_CLEANUP_IN_PROGRESS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATE_FAILED_CLEANUP_IN_PROGRESS" + } + }, + "CREATE_FAILED_CLEANUP_COMPLETE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATE_FAILED_CLEANUP_COMPLETE" + } + }, + "CREATE_FAILED_CLEANUP_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATE_FAILED_CLEANUP_FAILED" + } + }, + "DELETE_IN_PROGRESS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETE_IN_PROGRESS" + } + }, + "DELETE_COMPLETE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETE_COMPLETE" + } + }, + "DELETE_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETE_FAILED" + } + } + } + }, "com.amazonaws.athena#DataCatalogSummary": { "type": "structure", "members": { @@ -2704,6 +2910,24 @@ "traits": { "smithy.api#documentation": "

    The data catalog type.

    " } + }, + "Status": { + "target": "com.amazonaws.athena#DataCatalogStatus", + "traits": { + "smithy.api#documentation": "

    The status of the creation or deletion of the data catalog.

    \n
      \n
    • \n

      The LAMBDA, GLUE, and HIVE data catalog\n types are created synchronously. Their status is either\n CREATE_COMPLETE or CREATE_FAILED.

      \n
    • \n
    • \n

      The FEDERATED data catalog type is created asynchronously.

      \n
    • \n
    \n

    Data catalog creation status:

    \n
      \n
    • \n

      \n CREATE_IN_PROGRESS: Federated data catalog creation in\n progress.

      \n
    • \n
    • \n

      \n CREATE_COMPLETE: Data catalog creation complete.

      \n
    • \n
    • \n

      \n CREATE_FAILED: Data catalog could not be created.

      \n
    • \n
    • \n

      \n CREATE_FAILED_CLEANUP_IN_PROGRESS: Federated data catalog\n creation failed and is being removed.

      \n
    • \n
    • \n

      \n CREATE_FAILED_CLEANUP_COMPLETE: Federated data catalog creation\n failed and was removed.

      \n
    • \n
    • \n

      \n CREATE_FAILED_CLEANUP_FAILED: Federated data catalog creation\n failed but could not be removed.

      \n
    • \n
    \n

    Data catalog deletion status:

    \n
      \n
    • \n

      \n DELETE_IN_PROGRESS: Federated data catalog deletion in\n progress.

      \n
    • \n
    • \n

      \n DELETE_COMPLETE: Federated data catalog deleted.

      \n
    • \n
    • \n

      \n DELETE_FAILED: Federated data catalog could not be\n deleted.

      \n
    • \n
    " + } + }, + "ConnectionType": { + "target": "com.amazonaws.athena#ConnectionType", + "traits": { + "smithy.api#documentation": "

    The type of connection for a FEDERATED data catalog (for example,\n REDSHIFT, MYSQL, or SQLSERVER). For\n information about individual connectors, see Available data source\n connectors.

    " + } + }, + "Error": { + "target": "com.amazonaws.athena#ErrorMessage", + "traits": { + "smithy.api#documentation": "

    Text of the error that occurred during data catalog creation or deletion.

    " + } } }, "traits": { @@ -2736,6 +2960,12 @@ "traits": { "smithy.api#enumValue": "HIVE" } + }, + "FEDERATED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FEDERATED" + } } } }, @@ -2879,6 +3109,13 @@ "smithy.api#documentation": "

    The name of the data catalog to delete.

    ", "smithy.api#required": {} } + }, + "DeleteCatalogOnly": { + "target": "com.amazonaws.athena#Boolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

    Deletes the Athena Data Catalog. You can only use this with the FEDERATED\n catalogs. You usually perform this before registering the connector with Glue Data\n Catalog. After deletion, you will have to manage the Glue Connection and Lambda\n function.

    " + } } }, "traits": { @@ -2887,7 +3124,11 @@ }, "com.amazonaws.athena#DeleteDataCatalogOutput": { "type": "structure", - "members": {}, + "members": { + "DataCatalog": { + "target": "com.amazonaws.athena#DataCatalog" + } + }, "traits": { "smithy.api#output": {} }