BillingandCostManagementDataExports / Client / update_export

update_export#

BillingandCostManagementDataExports.Client.update_export(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response = client.update_export(
    Export={
        'DataQuery': {
            'QueryStatement': 'string',
            'TableConfigurations': {
                'string': {
                    'string': 'string'
                }
            }
        },
        'Description': 'string',
        'DestinationConfigurations': {
            'S3Destination': {
                'S3Bucket': 'string',
                'S3OutputConfigurations': {
                    'Compression': 'GZIP'|'PARQUET',
                    'Format': 'TEXT_OR_CSV'|'PARQUET',
                    'OutputType': 'CUSTOM',
                    'Overwrite': 'CREATE_NEW_REPORT'|'OVERWRITE_REPORT'
                },
                'S3Prefix': 'string',
                'S3Region': 'string'
            }
        },
        'ExportArn': 'string',
        'Name': 'string',
        'RefreshCadence': {
            'Frequency': 'SYNCHRONOUS'
        }
    },
    ExportArn='string'
)
Parameters:
  • Export (dict) –

    [REQUIRED]

    The name and query details for the export.

    • DataQuery (dict) – [REQUIRED]

      The data query for this specific data export.

      • QueryStatement (string) – [REQUIRED]

        The query statement.

      • TableConfigurations (dict) –

        The table configuration.

        • (string) –

          • (dict) –

            • (string) –

              • (string) –

    • Description (string) –

      The description for this specific data export.

    • DestinationConfigurations (dict) – [REQUIRED]

      The destination configuration for this specific data export.

      • S3Destination (dict) – [REQUIRED]

        An object that describes the destination of the data exports file.

        • S3Bucket (string) – [REQUIRED]

          The name of the Amazon S3 bucket used as the destination of a data export file.

        • S3OutputConfigurations (dict) – [REQUIRED]

          The output configuration for the data export.

          • Compression (string) – [REQUIRED]

            The compression type for the data export.

          • Format (string) – [REQUIRED]

            The file format for the data export.

          • OutputType (string) – [REQUIRED]

            The output type for the data export.

          • Overwrite (string) – [REQUIRED]

            The rule to follow when generating a version of the data export file. You have the choice to overwrite the previous version or to be delivered in addition to the previous versions. Overwriting exports can save on Amazon S3 storage costs. Creating new export versions allows you to track the changes in cost and usage data over time.

        • S3Prefix (string) – [REQUIRED]

          The S3 path prefix you want prepended to the name of your data export.

        • S3Region (string) – [REQUIRED]

          The S3 bucket Region.

    • ExportArn (string) –

      The Amazon Resource Name (ARN) for this export.

    • Name (string) – [REQUIRED]

      The name of this specific data export.

    • RefreshCadence (dict) – [REQUIRED]

      The cadence for Amazon Web Services to update the export in your S3 bucket.

      • Frequency (string) – [REQUIRED]

        The frequency that data exports are updated. The export refreshes each time the source data updates, up to three times daily.

  • ExportArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) for this export.

Return type:

dict

Returns:

Response Syntax

{
    'ExportArn': 'string'
}

Response Structure

  • (dict) –

    • ExportArn (string) –

      The Amazon Resource Name (ARN) for this export.

Exceptions