BillingandCostManagementDataExports *********************************** Client ====== class BillingandCostManagementDataExports.Client A low-level client representing AWS Billing and Cost Management Data Exports You can use the Data Exports API to create customized exports from multiple Amazon Web Services cost management and billing datasets, such as cost and usage data and cost optimization recommendations. The Data Exports API provides the following endpoint: * https://bcm-data-exports.us-east-1.api.aws import boto3 client = boto3.client('bcm-data-exports') These are the available methods: * can_paginate * close * create_export * delete_export * get_execution * get_export * get_paginator * get_table * get_waiter * list_executions * list_exports * list_tables * list_tags_for_resource * tag_resource * untag_resource * update_export Paginators ========== Paginators are available on a client instance via the "get_paginator" method. For more detailed instructions and examples on the usage of paginators, see the paginators user guide. The available paginators are: * ListExecutions * ListExports * ListTables BillingandCostManagementDataExports / Paginator / ListExports ListExports *********** class BillingandCostManagementDataExports.Paginator.ListExports paginator = client.get_paginator('list_exports') paginate(**kwargs) Creates an iterator that will paginate through responses from "BillingandCostManagementDataExports.Client.list_exports()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Exports': [ { 'ExportArn': 'string', 'ExportName': 'string', 'ExportStatus': { 'CreatedAt': datetime(2015, 1, 1), 'LastRefreshedAt': datetime(2015, 1, 1), 'LastUpdatedAt': datetime(2015, 1, 1), 'StatusCode': 'HEALTHY'|'UNHEALTHY', 'StatusReason': 'INSUFFICIENT_PERMISSION'|'BILL_OWNER_CHANGED'|'INTERNAL_FAILURE' } }, ], } **Response Structure** * *(dict) --* * **Exports** *(list) --* The details of the exports, including name and export status. * *(dict) --* The reference details for a given export. * **ExportArn** *(string) --* The Amazon Resource Name (ARN) for this export. * **ExportName** *(string) --* The name of this specific data export. * **ExportStatus** *(dict) --* The status of this specific data export. * **CreatedAt** *(datetime) --* The timestamp of when the export was created. * **LastRefreshedAt** *(datetime) --* The timestamp of when the export was last generated. * **LastUpdatedAt** *(datetime) --* The timestamp of when the export was updated. * **StatusCode** *(string) --* The status code for the request. * **StatusReason** *(string) --* The description for the status code. BillingandCostManagementDataExports / Paginator / ListExecutions ListExecutions ************** class BillingandCostManagementDataExports.Paginator.ListExecutions paginator = client.get_paginator('list_executions') paginate(**kwargs) Creates an iterator that will paginate through responses from "BillingandCostManagementDataExports.Client.list_executions()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( ExportArn='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **ExportArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) for this export. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Executions': [ { 'ExecutionId': 'string', 'ExecutionStatus': { 'CompletedAt': datetime(2015, 1, 1), 'CreatedAt': datetime(2015, 1, 1), 'LastUpdatedAt': datetime(2015, 1, 1), 'StatusCode': 'INITIATION_IN_PROCESS'|'QUERY_QUEUED'|'QUERY_IN_PROCESS'|'QUERY_FAILURE'|'DELIVERY_IN_PROCESS'|'DELIVERY_SUCCESS'|'DELIVERY_FAILURE', 'StatusReason': 'INSUFFICIENT_PERMISSION'|'BILL_OWNER_CHANGED'|'INTERNAL_FAILURE' } }, ], } **Response Structure** * *(dict) --* * **Executions** *(list) --* The list of executions. * *(dict) --* The reference for the data export update. * **ExecutionId** *(string) --* The ID for this specific execution. * **ExecutionStatus** *(dict) --* The status of this specific execution. * **CompletedAt** *(datetime) --* The time when the execution was completed. * **CreatedAt** *(datetime) --* The time when the execution was created. * **LastUpdatedAt** *(datetime) --* The time when the execution was last updated. * **StatusCode** *(string) --* The code for the status of the execution. * **StatusReason** *(string) --* The reason for the failed status. BillingandCostManagementDataExports / Paginator / ListTables ListTables ********** class BillingandCostManagementDataExports.Paginator.ListTables paginator = client.get_paginator('list_tables') paginate(**kwargs) Creates an iterator that will paginate through responses from "BillingandCostManagementDataExports.Client.list_tables()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Tables': [ { 'Description': 'string', 'TableName': 'string', 'TableProperties': [ { 'DefaultValue': 'string', 'Description': 'string', 'Name': 'string', 'ValidValues': [ 'string', ] }, ] }, ] } **Response Structure** * *(dict) --* * **Tables** *(list) --* The list of tables. * *(dict) --* The details for the data export table. * **Description** *(string) --* The description for the table. * **TableName** *(string) --* The name of the table. * **TableProperties** *(list) --* The properties for the table. * *(dict) --* The properties for the data export table. * **DefaultValue** *(string) --* The default value for the table. * **Description** *(string) --* The description for the table. * **Name** *(string) --* The name of the table. * **ValidValues** *(list) --* The valid values for the table. * *(string) --* BillingandCostManagementDataExports / Client / delete_export delete_export ************* BillingandCostManagementDataExports.Client.delete_export(**kwargs) Deletes an existing data export. See also: AWS API Documentation **Request Syntax** response = client.delete_export( ExportArn='string' ) Parameters: **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** * "BillingandCostManagementDataExports.Client.exceptions.InternalS erverException" * "BillingandCostManagementDataExports.Client.exceptions.ResourceN otFoundException" * "BillingandCostManagementDataExports.Client.exceptions.Throttlin gException" * "BillingandCostManagementDataExports.Client.exceptions.Validatio nException" BillingandCostManagementDataExports / Client / get_paginator get_paginator ************* BillingandCostManagementDataExports.Client.get_paginator(operation_name) Create a paginator for an operation. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Raises: **OperationNotPageableError** -- Raised if the operation is not pageable. You can use the "client.can_paginate" method to check if an operation is pageable. Return type: "botocore.paginate.Paginator" Returns: A paginator object. BillingandCostManagementDataExports / Client / create_export create_export ************* BillingandCostManagementDataExports.Client.create_export(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.create_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' } }, ResourceTags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **Export** (*dict*) -- **[REQUIRED]** The details of the export, including data query, name, description, and destination configuration. * **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. * **ResourceTags** (*list*) -- An optional list of tags to associate with the specified export. Each tag consists of a key and a value, and each key must be unique for the resource. * *(dict) --* The tag structure that contains a tag key and value. * **Key** *(string) --* **[REQUIRED]** The key that's associated with the tag. * **Value** *(string) --* **[REQUIRED]** The value that's associated with the tag. Return type: dict Returns: **Response Syntax** { 'ExportArn': 'string' } **Response Structure** * *(dict) --* * **ExportArn** *(string) --* The Amazon Resource Name (ARN) for this export. **Exceptions** * "BillingandCostManagementDataExports.Client.exceptions.ServiceQu otaExceededException" * "BillingandCostManagementDataExports.Client.exceptions.InternalS erverException" * "BillingandCostManagementDataExports.Client.exceptions.Throttlin gException" * "BillingandCostManagementDataExports.Client.exceptions.Validatio nException" BillingandCostManagementDataExports / Client / can_paginate can_paginate ************ BillingandCostManagementDataExports.Client.can_paginate(operation_name) Check if an operation can be paginated. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Returns: "True" if the operation can be paginated, "False" otherwise. 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** * "BillingandCostManagementDataExports.Client.exceptions.InternalS erverException" * "BillingandCostManagementDataExports.Client.exceptions.ResourceN otFoundException" * "BillingandCostManagementDataExports.Client.exceptions.Throttlin gException" * "BillingandCostManagementDataExports.Client.exceptions.Validatio nException" BillingandCostManagementDataExports / Client / list_exports list_exports ************ BillingandCostManagementDataExports.Client.list_exports(**kwargs) Lists all data export definitions. See also: AWS API Documentation **Request Syntax** response = client.list_exports( MaxResults=123, NextToken='string' ) Parameters: * **MaxResults** (*integer*) -- The maximum number of objects that are returned for the request. * **NextToken** (*string*) -- The token to retrieve the next set of results. Return type: dict Returns: **Response Syntax** { 'Exports': [ { 'ExportArn': 'string', 'ExportName': 'string', 'ExportStatus': { 'CreatedAt': datetime(2015, 1, 1), 'LastRefreshedAt': datetime(2015, 1, 1), 'LastUpdatedAt': datetime(2015, 1, 1), 'StatusCode': 'HEALTHY'|'UNHEALTHY', 'StatusReason': 'INSUFFICIENT_PERMISSION'|'BILL_OWNER_CHANGED'|'INTERNAL_FAILURE' } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Exports** *(list) --* The details of the exports, including name and export status. * *(dict) --* The reference details for a given export. * **ExportArn** *(string) --* The Amazon Resource Name (ARN) for this export. * **ExportName** *(string) --* The name of this specific data export. * **ExportStatus** *(dict) --* The status of this specific data export. * **CreatedAt** *(datetime) --* The timestamp of when the export was created. * **LastRefreshedAt** *(datetime) --* The timestamp of when the export was last generated. * **LastUpdatedAt** *(datetime) --* The timestamp of when the export was updated. * **StatusCode** *(string) --* The status code for the request. * **StatusReason** *(string) --* The description for the status code. * **NextToken** *(string) --* The token to retrieve the next set of results. **Exceptions** * "BillingandCostManagementDataExports.Client.exceptions.InternalS erverException" * "BillingandCostManagementDataExports.Client.exceptions.Throttlin gException" * "BillingandCostManagementDataExports.Client.exceptions.Validatio nException" BillingandCostManagementDataExports / Client / get_table get_table ********* BillingandCostManagementDataExports.Client.get_table(**kwargs) Returns the metadata for the specified table and table properties. This includes the list of columns in the table schema, their data types, and column descriptions. See also: AWS API Documentation **Request Syntax** response = client.get_table( TableName='string', TableProperties={ 'string': 'string' } ) Parameters: * **TableName** (*string*) -- **[REQUIRED]** The name of the table. * **TableProperties** (*dict*) -- TableProperties are additional configurations you can provide to change the data and schema of a table. Each table can have different TableProperties. Tables are not required to have any TableProperties. Each table property has a default value that it assumes if not specified. * *(string) --* * *(string) --* Return type: dict Returns: **Response Syntax** { 'Description': 'string', 'Schema': [ { 'Description': 'string', 'Name': 'string', 'Type': 'string' }, ], 'TableName': 'string', 'TableProperties': { 'string': 'string' } } **Response Structure** * *(dict) --* * **Description** *(string) --* The table description. * **Schema** *(list) --* The schema of the table. * *(dict) --* Includes basic information for a data column such as its description, name, and type. * **Description** *(string) --* The description for a column. * **Name** *(string) --* The column name. * **Type** *(string) --* The kind of data a column stores. * **TableName** *(string) --* The name of the table. * **TableProperties** *(dict) --* TableProperties are additional configurations you can provide to change the data and schema of a table. Each table can have different TableProperties. Tables are not required to have any TableProperties. Each table property has a default value that it assumes if not specified. * *(string) --* * *(string) --* **Exceptions** * "BillingandCostManagementDataExports.Client.exceptions.InternalS erverException" * "BillingandCostManagementDataExports.Client.exceptions.Throttlin gException" * "BillingandCostManagementDataExports.Client.exceptions.Validatio nException" BillingandCostManagementDataExports / Client / list_tags_for_resource list_tags_for_resource ********************** BillingandCostManagementDataExports.Client.list_tags_for_resource(**kwargs) List tags associated with an existing data export. See also: AWS API Documentation **Request Syntax** response = client.list_tags_for_resource( MaxResults=123, NextToken='string', ResourceArn='string' ) Parameters: * **MaxResults** (*integer*) -- The maximum number of objects that are returned for the request. * **NextToken** (*string*) -- The token to retrieve the next set of results. * **ResourceArn** (*string*) -- **[REQUIRED]** The unique identifier for the resource. Return type: dict Returns: **Response Syntax** { 'NextToken': 'string', 'ResourceTags': [ { 'Key': 'string', 'Value': 'string' }, ] } **Response Structure** * *(dict) --* * **NextToken** *(string) --* The token to retrieve the next set of results. * **ResourceTags** *(list) --* An optional list of tags to associate with the specified export. Each tag consists of a key and a value, and each key must be unique for the resource. * *(dict) --* The tag structure that contains a tag key and value. * **Key** *(string) --* The key that's associated with the tag. * **Value** *(string) --* The value that's associated with the tag. **Exceptions** * "BillingandCostManagementDataExports.Client.exceptions.InternalS erverException" * "BillingandCostManagementDataExports.Client.exceptions.ResourceN otFoundException" * "BillingandCostManagementDataExports.Client.exceptions.Throttlin gException" * "BillingandCostManagementDataExports.Client.exceptions.Validatio nException" BillingandCostManagementDataExports / Client / untag_resource untag_resource ************** BillingandCostManagementDataExports.Client.untag_resource(**kwargs) Deletes tags associated with an existing data export definition. See also: AWS API Documentation **Request Syntax** response = client.untag_resource( ResourceArn='string', ResourceTagKeys=[ 'string', ] ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** The unique identifier for the resource. * **ResourceTagKeys** (*list*) -- **[REQUIRED]** The tag keys that are associated with the resource ARN. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "BillingandCostManagementDataExports.Client.exceptions.InternalS erverException" * "BillingandCostManagementDataExports.Client.exceptions.ResourceN otFoundException" * "BillingandCostManagementDataExports.Client.exceptions.Throttlin gException" * "BillingandCostManagementDataExports.Client.exceptions.Validatio nException" BillingandCostManagementDataExports / Client / get_execution get_execution ************* BillingandCostManagementDataExports.Client.get_execution(**kwargs) Exports data based on the source data update. See also: AWS API Documentation **Request Syntax** response = client.get_execution( ExecutionId='string', ExportArn='string' ) Parameters: * **ExecutionId** (*string*) -- **[REQUIRED]** The ID for this specific execution. * **ExportArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the Export object that generated this specific execution. Return type: dict Returns: **Response Syntax** { 'ExecutionId': 'string', 'ExecutionStatus': { 'CompletedAt': datetime(2015, 1, 1), 'CreatedAt': datetime(2015, 1, 1), 'LastUpdatedAt': datetime(2015, 1, 1), 'StatusCode': 'INITIATION_IN_PROCESS'|'QUERY_QUEUED'|'QUERY_IN_PROCESS'|'QUERY_FAILURE'|'DELIVERY_IN_PROCESS'|'DELIVERY_SUCCESS'|'DELIVERY_FAILURE', 'StatusReason': 'INSUFFICIENT_PERMISSION'|'BILL_OWNER_CHANGED'|'INTERNAL_FAILURE' }, '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' } } } **Response Structure** * *(dict) --* * **ExecutionId** *(string) --* The ID for this specific execution. * **ExecutionStatus** *(dict) --* The status of this specific execution. * **CompletedAt** *(datetime) --* The time when the execution was completed. * **CreatedAt** *(datetime) --* The time when the execution was created. * **LastUpdatedAt** *(datetime) --* The time when the execution was last updated. * **StatusCode** *(string) --* The code for the status of the execution. * **StatusReason** *(string) --* The reason for the failed status. * **Export** *(dict) --* The export data for this specific execution. This export data is a snapshot from when the execution was generated. The data could be different from the current export data if the export was updated since the execution was generated. * **DataQuery** *(dict) --* The data query for this specific data export. * **QueryStatement** *(string) --* The query statement. * **TableConfigurations** *(dict) --* The table configuration. * *(string) --* * *(dict) --* * *(string) --* * *(string) --* * **Description** *(string) --* The description for this specific data export. * **DestinationConfigurations** *(dict) --* The destination configuration for this specific data export. * **S3Destination** *(dict) --* An object that describes the destination of the data exports file. * **S3Bucket** *(string) --* The name of the Amazon S3 bucket used as the destination of a data export file. * **S3OutputConfigurations** *(dict) --* The output configuration for the data export. * **Compression** *(string) --* The compression type for the data export. * **Format** *(string) --* The file format for the data export. * **OutputType** *(string) --* The output type for the data export. * **Overwrite** *(string) --* 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) --* The S3 path prefix you want prepended to the name of your data export. * **S3Region** *(string) --* The S3 bucket Region. * **ExportArn** *(string) --* The Amazon Resource Name (ARN) for this export. * **Name** *(string) --* The name of this specific data export. * **RefreshCadence** *(dict) --* The cadence for Amazon Web Services to update the export in your S3 bucket. * **Frequency** *(string) --* The frequency that data exports are updated. The export refreshes each time the source data updates, up to three times daily. **Exceptions** * "BillingandCostManagementDataExports.Client.exceptions.InternalS erverException" * "BillingandCostManagementDataExports.Client.exceptions.ResourceN otFoundException" * "BillingandCostManagementDataExports.Client.exceptions.Throttlin gException" * "BillingandCostManagementDataExports.Client.exceptions.Validatio nException" BillingandCostManagementDataExports / Client / get_waiter get_waiter ********** BillingandCostManagementDataExports.Client.get_waiter(waiter_name) Returns an object that can wait for some condition. Parameters: **waiter_name** (*str*) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters. Returns: The specified waiter object. Return type: "botocore.waiter.Waiter" BillingandCostManagementDataExports / Client / list_executions list_executions *************** BillingandCostManagementDataExports.Client.list_executions(**kwargs) Lists the historical executions for the export. See also: AWS API Documentation **Request Syntax** response = client.list_executions( ExportArn='string', MaxResults=123, NextToken='string' ) Parameters: * **ExportArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) for this export. * **MaxResults** (*integer*) -- The maximum number of objects that are returned for the request. * **NextToken** (*string*) -- The token to retrieve the next set of results. Return type: dict Returns: **Response Syntax** { 'Executions': [ { 'ExecutionId': 'string', 'ExecutionStatus': { 'CompletedAt': datetime(2015, 1, 1), 'CreatedAt': datetime(2015, 1, 1), 'LastUpdatedAt': datetime(2015, 1, 1), 'StatusCode': 'INITIATION_IN_PROCESS'|'QUERY_QUEUED'|'QUERY_IN_PROCESS'|'QUERY_FAILURE'|'DELIVERY_IN_PROCESS'|'DELIVERY_SUCCESS'|'DELIVERY_FAILURE', 'StatusReason': 'INSUFFICIENT_PERMISSION'|'BILL_OWNER_CHANGED'|'INTERNAL_FAILURE' } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Executions** *(list) --* The list of executions. * *(dict) --* The reference for the data export update. * **ExecutionId** *(string) --* The ID for this specific execution. * **ExecutionStatus** *(dict) --* The status of this specific execution. * **CompletedAt** *(datetime) --* The time when the execution was completed. * **CreatedAt** *(datetime) --* The time when the execution was created. * **LastUpdatedAt** *(datetime) --* The time when the execution was last updated. * **StatusCode** *(string) --* The code for the status of the execution. * **StatusReason** *(string) --* The reason for the failed status. * **NextToken** *(string) --* The token to retrieve the next set of results. **Exceptions** * "BillingandCostManagementDataExports.Client.exceptions.InternalS erverException" * "BillingandCostManagementDataExports.Client.exceptions.ResourceN otFoundException" * "BillingandCostManagementDataExports.Client.exceptions.Throttlin gException" * "BillingandCostManagementDataExports.Client.exceptions.Validatio nException" BillingandCostManagementDataExports / Client / close close ***** BillingandCostManagementDataExports.Client.close() Closes underlying endpoint connections. BillingandCostManagementDataExports / Client / get_export get_export ********** BillingandCostManagementDataExports.Client.get_export(**kwargs) Views the definition of an existing data export. See also: AWS API Documentation **Request Syntax** response = client.get_export( ExportArn='string' ) Parameters: **ExportArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) for this export. Return type: dict Returns: **Response Syntax** { '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' } }, 'ExportStatus': { 'CreatedAt': datetime(2015, 1, 1), 'LastRefreshedAt': datetime(2015, 1, 1), 'LastUpdatedAt': datetime(2015, 1, 1), 'StatusCode': 'HEALTHY'|'UNHEALTHY', 'StatusReason': 'INSUFFICIENT_PERMISSION'|'BILL_OWNER_CHANGED'|'INTERNAL_FAILURE' } } **Response Structure** * *(dict) --* * **Export** *(dict) --* The data for this specific export. * **DataQuery** *(dict) --* The data query for this specific data export. * **QueryStatement** *(string) --* The query statement. * **TableConfigurations** *(dict) --* The table configuration. * *(string) --* * *(dict) --* * *(string) --* * *(string) --* * **Description** *(string) --* The description for this specific data export. * **DestinationConfigurations** *(dict) --* The destination configuration for this specific data export. * **S3Destination** *(dict) --* An object that describes the destination of the data exports file. * **S3Bucket** *(string) --* The name of the Amazon S3 bucket used as the destination of a data export file. * **S3OutputConfigurations** *(dict) --* The output configuration for the data export. * **Compression** *(string) --* The compression type for the data export. * **Format** *(string) --* The file format for the data export. * **OutputType** *(string) --* The output type for the data export. * **Overwrite** *(string) --* 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) --* The S3 path prefix you want prepended to the name of your data export. * **S3Region** *(string) --* The S3 bucket Region. * **ExportArn** *(string) --* The Amazon Resource Name (ARN) for this export. * **Name** *(string) --* The name of this specific data export. * **RefreshCadence** *(dict) --* The cadence for Amazon Web Services to update the export in your S3 bucket. * **Frequency** *(string) --* The frequency that data exports are updated. The export refreshes each time the source data updates, up to three times daily. * **ExportStatus** *(dict) --* The status of this specific export. * **CreatedAt** *(datetime) --* The timestamp of when the export was created. * **LastRefreshedAt** *(datetime) --* The timestamp of when the export was last generated. * **LastUpdatedAt** *(datetime) --* The timestamp of when the export was updated. * **StatusCode** *(string) --* The status code for the request. * **StatusReason** *(string) --* The description for the status code. **Exceptions** * "BillingandCostManagementDataExports.Client.exceptions.InternalS erverException" * "BillingandCostManagementDataExports.Client.exceptions.ResourceN otFoundException" * "BillingandCostManagementDataExports.Client.exceptions.Throttlin gException" * "BillingandCostManagementDataExports.Client.exceptions.Validatio nException" BillingandCostManagementDataExports / Client / list_tables list_tables *********** BillingandCostManagementDataExports.Client.list_tables(**kwargs) Lists all available tables in data exports. See also: AWS API Documentation **Request Syntax** response = client.list_tables( MaxResults=123, NextToken='string' ) Parameters: * **MaxResults** (*integer*) -- The maximum number of objects that are returned for the request. * **NextToken** (*string*) -- The token to retrieve the next set of results. Return type: dict Returns: **Response Syntax** { 'NextToken': 'string', 'Tables': [ { 'Description': 'string', 'TableName': 'string', 'TableProperties': [ { 'DefaultValue': 'string', 'Description': 'string', 'Name': 'string', 'ValidValues': [ 'string', ] }, ] }, ] } **Response Structure** * *(dict) --* * **NextToken** *(string) --* The token to retrieve the next set of results. * **Tables** *(list) --* The list of tables. * *(dict) --* The details for the data export table. * **Description** *(string) --* The description for the table. * **TableName** *(string) --* The name of the table. * **TableProperties** *(list) --* The properties for the table. * *(dict) --* The properties for the data export table. * **DefaultValue** *(string) --* The default value for the table. * **Description** *(string) --* The description for the table. * **Name** *(string) --* The name of the table. * **ValidValues** *(list) --* The valid values for the table. * *(string) --* **Exceptions** * "BillingandCostManagementDataExports.Client.exceptions.InternalS erverException" * "BillingandCostManagementDataExports.Client.exceptions.Throttlin gException" * "BillingandCostManagementDataExports.Client.exceptions.Validatio nException" BillingandCostManagementDataExports / Client / tag_resource tag_resource ************ BillingandCostManagementDataExports.Client.tag_resource(**kwargs) Adds tags for an existing data export definition. See also: AWS API Documentation **Request Syntax** response = client.tag_resource( ResourceArn='string', ResourceTags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** The unique identifier for the resource. * **ResourceTags** (*list*) -- **[REQUIRED]** The tags to associate with the resource. Each tag consists of a key and a value, and each key must be unique for the resource. * *(dict) --* The tag structure that contains a tag key and value. * **Key** *(string) --* **[REQUIRED]** The key that's associated with the tag. * **Value** *(string) --* **[REQUIRED]** The value that's associated with the tag. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "BillingandCostManagementDataExports.Client.exceptions.InternalS erverException" * "BillingandCostManagementDataExports.Client.exceptions.ResourceN otFoundException" * "BillingandCostManagementDataExports.Client.exceptions.Throttlin gException" * "BillingandCostManagementDataExports.Client.exceptions.Validatio nException"