Skip to main content

exports

Creates, updates, deletes, gets or lists an exports resource.

Overview

Nameexports
TypeResource
Idaws.bcm_data_exports.exports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
exportobjectThe data for this specific export.
export_statusobjectThe status of this specific export.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_exportselectregionViews the definition of an existing data export.
list_exportsselectregionLists all data export definitions.
create_exportinsertregionCreates a data export and specifies the data query, the delivery preference, and any optional resource tags. A DataQuery consists of both a QueryStatement and TableConfigurations. The QueryStatement is an SQL statement. Data Exports only supports a limited subset of the SQL syntax. For more information on the SQL syntax that is supported, see Data query. To view the available tables and columns, see the Data Exports table dictionary. The TableConfigurations is a collection of specified TableProperties for the table being queried in the QueryStatement. TableProperties are additional configurations you can provide to change the data and schema of a table. Each table can have different TableProperties. However, tables are not required to have any TableProperties. Each table property has a default value that it assumes if not specified. For more information on table configurations, see Data query. To view the table properties available for each table, see the Data Exports table dictionary or use the ListTables API to get a response of all tables and their available properties.
update_exportupdateregion, ExportArnUpdates an existing data export by overwriting all export parameters. All export parameters must be provided in the UpdateExport request.
delete_exportdeleteregionDeletes an existing data export.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Views the definition of an existing data export.

SELECT
export,
export_status
FROM aws.bcm_data_exports.exports
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a data export and specifies the data query, the delivery preference, and any optional resource tags. A DataQuery consists of both a QueryStatement and TableConfigurations. The QueryStatement is an SQL statement. Data Exports only supports a limited subset of the SQL syntax. For more information on the SQL syntax that is supported, see Data query. To view the available tables and columns, see the Data Exports table dictionary. The TableConfigurations is a collection of specified TableProperties for the table being queried in the QueryStatement. TableProperties are additional configurations you can provide to change the data and schema of a table. Each table can have different TableProperties. However, tables are not required to have any TableProperties. Each table property has a default value that it assumes if not specified. For more information on table configurations, see Data query. To view the table properties available for each table, see the Data Exports table dictionary or use the ListTables API to get a response of all tables and their available properties.

INSERT INTO aws.bcm_data_exports.exports (
Export,
ResourceTags,
region
)
SELECT
'{{ Export }}',
'{{ ResourceTags }}',
'{{ region }}'
RETURNING
export_arn
;

UPDATE examples

Updates an existing data export by overwriting all export parameters. All export parameters must be provided in the UpdateExport request.

UPDATE aws.bcm_data_exports.exports
SET
ExportArn = '{{ ExportArn }}',
Export = '{{ Export }}'
WHERE
region = '{{ region }}' --required
AND ExportArn = '{{ ExportArn }}' --required
RETURNING
export_arn;

DELETE examples

Deletes an existing data export.

DELETE FROM aws.bcm_data_exports.exports
WHERE region = '{{ region }}' --required
;