SDK for PHP 3.x

Client: Aws\BCMDataExports\BCMDataExportsClient
Service ID: bcm-data-exports
Version: 2023-11-26

This page describes the parameters and results for the operations of the AWS Billing and Cost Management Data Exports (2023-11-26), and shows how to use the Aws\BCMDataExports\BCMDataExportsClient object to call the described operations. This documentation is specific to the 2023-11-26 API version of the service.

Operation Summary

Each of the following operations can be created from a client using $client->getCommand('CommandName'), where "CommandName" is the name of one of the following operations. Note: a command is a value that encapsulates an operation and the parameters used to create an HTTP request.

You can also create and send a command immediately using the magic methods available on a client object: $client->commandName(/* parameters */). You can send the command asynchronously (returning a promise) by appending the word "Async" to the operation name: $client->commandNameAsync(/* parameters */).

CreateExport ( array $params = [] )
Creates a data export and specifies the data query, the delivery preference, and any optional resource tags.
DeleteExport ( array $params = [] )
Deletes an existing data export.
GetExecution ( array $params = [] )
Exports data based on the source data update.
GetExport ( array $params = [] )
Views the definition of an existing data export.
GetTable ( array $params = [] )
Returns the metadata for the specified table and table properties.
ListExecutions ( array $params = [] )
Lists the historical executions for the export.
ListExports ( array $params = [] )
Lists all data export definitions.
ListTables ( array $params = [] )
Lists all available tables in data exports.
ListTagsForResource ( array $params = [] )
List tags associated with an existing data export.
TagResource ( array $params = [] )
Adds tags for an existing data export definition.
UntagResource ( array $params = [] )
Deletes tags associated with an existing data export definition.
UpdateExport ( array $params = [] )
Updates an existing data export by overwriting all export parameters.

Paginators

Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:

ListExecutions
ListExports
ListTables

Operations

CreateExport

$result = $client->createExport([/* ... */]);
$promise = $client->createExportAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->createExport([
    'Export' => [ // REQUIRED
        'DataQuery' => [ // REQUIRED
            'QueryStatement' => '<string>', // REQUIRED
            'TableConfigurations' => [
                '<TableName>' => ['<string>', ...],
                // ...
            ],
        ],
        'Description' => '<string>',
        'DestinationConfigurations' => [ // REQUIRED
            'S3Destination' => [ // REQUIRED
                'S3Bucket' => '<string>', // REQUIRED
                'S3OutputConfigurations' => [ // REQUIRED
                    'Compression' => 'GZIP|PARQUET', // REQUIRED
                    'Format' => 'TEXT_OR_CSV|PARQUET', // REQUIRED
                    'OutputType' => 'CUSTOM', // REQUIRED
                    'Overwrite' => 'CREATE_NEW_REPORT|OVERWRITE_REPORT', // REQUIRED
                ],
                'S3Prefix' => '<string>', // REQUIRED
                'S3Region' => '<string>', // REQUIRED
            ],
        ],
        'ExportArn' => '<string>',
        'Name' => '<string>', // REQUIRED
        'RefreshCadence' => [ // REQUIRED
            'Frequency' => 'SYNCHRONOUS', // REQUIRED
        ],
    ],
    'ResourceTags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
Export
Required: Yes
Type: Export structure

The details of the export, including data query, name, description, and destination configuration.

ResourceTags
Type: Array of ResourceTag structures

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.

Result Syntax

[
    'ExportArn' => '<string>',
]

Result Details

Members
ExportArn
Type: string

The Amazon Resource Name (ARN) for this export.

Errors

ServiceQuotaExceededException:

You've reached the limit on the number of resources you can create, or exceeded the size of an individual resource.

InternalServerException:

An error on the server occurred during the processing of your request. Try again later.

ThrottlingException:

The request was denied due to request throttling.

ValidationException:

The input fails to satisfy the constraints specified by an Amazon Web Services service.

DeleteExport

$result = $client->deleteExport([/* ... */]);
$promise = $client->deleteExportAsync([/* ... */]);

Deletes an existing data export.

Parameter Syntax

$result = $client->deleteExport([
    'ExportArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
ExportArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) for this export.

Result Syntax

[
    'ExportArn' => '<string>',
]

Result Details

Members
ExportArn
Type: string

The Amazon Resource Name (ARN) for this export.

Errors

InternalServerException:

An error on the server occurred during the processing of your request. Try again later.

ResourceNotFoundException:

The specified Amazon Resource Name (ARN) in the request doesn't exist.

ThrottlingException:

The request was denied due to request throttling.

ValidationException:

The input fails to satisfy the constraints specified by an Amazon Web Services service.

GetExecution

$result = $client->getExecution([/* ... */]);
$promise = $client->getExecutionAsync([/* ... */]);

Exports data based on the source data update.

Parameter Syntax

$result = $client->getExecution([
    'ExecutionId' => '<string>', // REQUIRED
    'ExportArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
ExecutionId
Required: Yes
Type: string

The ID for this specific execution.

ExportArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the Export object that generated this specific execution.

Result Syntax

[
    'ExecutionId' => '<string>',
    'ExecutionStatus' => [
        'CompletedAt' => <DateTime>,
        'CreatedAt' => <DateTime>,
        'LastUpdatedAt' => <DateTime>,
        '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' => [
                '<TableName>' => ['<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',
        ],
    ],
]

Result Details

Members
ExecutionId
Type: string

The ID for this specific execution.

ExecutionStatus
Type: ExecutionStatus structure

The status of this specific execution.

Export
Type: Export structure

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.

Errors

InternalServerException:

An error on the server occurred during the processing of your request. Try again later.

ResourceNotFoundException:

The specified Amazon Resource Name (ARN) in the request doesn't exist.

ThrottlingException:

The request was denied due to request throttling.

ValidationException:

The input fails to satisfy the constraints specified by an Amazon Web Services service.

GetExport

$result = $client->getExport([/* ... */]);
$promise = $client->getExportAsync([/* ... */]);

Views the definition of an existing data export.

Parameter Syntax

$result = $client->getExport([
    'ExportArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
ExportArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) for this export.

Result Syntax

[
    'Export' => [
        'DataQuery' => [
            'QueryStatement' => '<string>',
            'TableConfigurations' => [
                '<TableName>' => ['<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>,
        'LastRefreshedAt' => <DateTime>,
        'LastUpdatedAt' => <DateTime>,
        'StatusCode' => 'HEALTHY|UNHEALTHY',
        'StatusReason' => 'INSUFFICIENT_PERMISSION|BILL_OWNER_CHANGED|INTERNAL_FAILURE',
    ],
]

Result Details

Members
Export
Type: Export structure

The data for this specific export.

ExportStatus
Type: ExportStatus structure

The status of this specific export.

Errors

InternalServerException:

An error on the server occurred during the processing of your request. Try again later.

ResourceNotFoundException:

The specified Amazon Resource Name (ARN) in the request doesn't exist.

ThrottlingException:

The request was denied due to request throttling.

ValidationException:

The input fails to satisfy the constraints specified by an Amazon Web Services service.

GetTable

$result = $client->getTable([/* ... */]);
$promise = $client->getTableAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->getTable([
    'TableName' => '<string>', // REQUIRED
    'TableProperties' => ['<string>', ...],
]);

Parameter Details

Members
TableName
Required: Yes
Type: string

The name of the table.

TableProperties
Type: Associative array of custom strings keys (TableProperty) to strings

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.

Result Syntax

[
    'Description' => '<string>',
    'Schema' => [
        [
            'Description' => '<string>',
            'Name' => '<string>',
            'Type' => '<string>',
        ],
        // ...
    ],
    'TableName' => '<string>',
    'TableProperties' => ['<string>', ...],
]

Result Details

Members
Description
Type: string

The table description.

Schema
Type: Array of Column structures

The schema of the table.

TableName
Type: string

The name of the table.

TableProperties
Type: Associative array of custom strings keys (TableProperty) to strings

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.

Errors

InternalServerException:

An error on the server occurred during the processing of your request. Try again later.

ThrottlingException:

The request was denied due to request throttling.

ValidationException:

The input fails to satisfy the constraints specified by an Amazon Web Services service.

ListExecutions

$result = $client->listExecutions([/* ... */]);
$promise = $client->listExecutionsAsync([/* ... */]);

Lists the historical executions for the export.

Parameter Syntax

$result = $client->listExecutions([
    'ExportArn' => '<string>', // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
ExportArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) for this export.

MaxResults
Type: int

The maximum number of objects that are returned for the request.

NextToken
Type: string

The token to retrieve the next set of results.

Result Syntax

[
    'Executions' => [
        [
            'ExecutionId' => '<string>',
            'ExecutionStatus' => [
                'CompletedAt' => <DateTime>,
                'CreatedAt' => <DateTime>,
                'LastUpdatedAt' => <DateTime>,
                '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>',
]

Result Details

Members
Executions
Type: Array of ExecutionReference structures

The list of executions.

NextToken
Type: string

The token to retrieve the next set of results.

Errors

InternalServerException:

An error on the server occurred during the processing of your request. Try again later.

ResourceNotFoundException:

The specified Amazon Resource Name (ARN) in the request doesn't exist.

ThrottlingException:

The request was denied due to request throttling.

ValidationException:

The input fails to satisfy the constraints specified by an Amazon Web Services service.

ListExports

$result = $client->listExports([/* ... */]);
$promise = $client->listExportsAsync([/* ... */]);

Lists all data export definitions.

Parameter Syntax

$result = $client->listExports([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
MaxResults
Type: int

The maximum number of objects that are returned for the request.

NextToken
Type: string

The token to retrieve the next set of results.

Result Syntax

[
    'Exports' => [
        [
            'ExportArn' => '<string>',
            'ExportName' => '<string>',
            'ExportStatus' => [
                'CreatedAt' => <DateTime>,
                'LastRefreshedAt' => <DateTime>,
                'LastUpdatedAt' => <DateTime>,
                'StatusCode' => 'HEALTHY|UNHEALTHY',
                'StatusReason' => 'INSUFFICIENT_PERMISSION|BILL_OWNER_CHANGED|INTERNAL_FAILURE',
            ],
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Exports
Type: Array of ExportReference structures

The details of the exports, including name and export status.

NextToken
Type: string

The token to retrieve the next set of results.

Errors

InternalServerException:

An error on the server occurred during the processing of your request. Try again later.

ThrottlingException:

The request was denied due to request throttling.

ValidationException:

The input fails to satisfy the constraints specified by an Amazon Web Services service.

ListTables

$result = $client->listTables([/* ... */]);
$promise = $client->listTablesAsync([/* ... */]);

Lists all available tables in data exports.

Parameter Syntax

$result = $client->listTables([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
MaxResults
Type: int

The maximum number of objects that are returned for the request.

NextToken
Type: string

The token to retrieve the next set of results.

Result Syntax

[
    'NextToken' => '<string>',
    'Tables' => [
        [
            'Description' => '<string>',
            'TableName' => '<string>',
            'TableProperties' => [
                [
                    'DefaultValue' => '<string>',
                    'Description' => '<string>',
                    'Name' => '<string>',
                    'ValidValues' => ['<string>', ...],
                ],
                // ...
            ],
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

The token to retrieve the next set of results.

Tables
Type: Array of Table structures

The list of tables.

Errors

InternalServerException:

An error on the server occurred during the processing of your request. Try again later.

ThrottlingException:

The request was denied due to request throttling.

ValidationException:

The input fails to satisfy the constraints specified by an Amazon Web Services service.

ListTagsForResource

$result = $client->listTagsForResource([/* ... */]);
$promise = $client->listTagsForResourceAsync([/* ... */]);

List tags associated with an existing data export.

Parameter Syntax

$result = $client->listTagsForResource([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'ResourceArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
MaxResults
Type: int

The maximum number of objects that are returned for the request.

NextToken
Type: string

The token to retrieve the next set of results.

ResourceArn
Required: Yes
Type: string

The unique identifier for the resource.

Result Syntax

[
    'NextToken' => '<string>',
    'ResourceTags' => [
        [
            'Key' => '<string>',
            'Value' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

The token to retrieve the next set of results.

ResourceTags
Type: Array of ResourceTag structures

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.

Errors

InternalServerException:

An error on the server occurred during the processing of your request. Try again later.

ResourceNotFoundException:

The specified Amazon Resource Name (ARN) in the request doesn't exist.

ThrottlingException:

The request was denied due to request throttling.

ValidationException:

The input fails to satisfy the constraints specified by an Amazon Web Services service.

TagResource

$result = $client->tagResource([/* ... */]);
$promise = $client->tagResourceAsync([/* ... */]);

Adds tags for an existing data export definition.

Parameter Syntax

$result = $client->tagResource([
    'ResourceArn' => '<string>', // REQUIRED
    'ResourceTags' => [ // REQUIRED
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
ResourceArn
Required: Yes
Type: string

The unique identifier for the resource.

ResourceTags
Required: Yes
Type: Array of ResourceTag structures

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.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

An error on the server occurred during the processing of your request. Try again later.

ResourceNotFoundException:

The specified Amazon Resource Name (ARN) in the request doesn't exist.

ThrottlingException:

The request was denied due to request throttling.

ValidationException:

The input fails to satisfy the constraints specified by an Amazon Web Services service.

UntagResource

$result = $client->untagResource([/* ... */]);
$promise = $client->untagResourceAsync([/* ... */]);

Deletes tags associated with an existing data export definition.

Parameter Syntax

$result = $client->untagResource([
    'ResourceArn' => '<string>', // REQUIRED
    'ResourceTagKeys' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
ResourceArn
Required: Yes
Type: string

The unique identifier for the resource.

ResourceTagKeys
Required: Yes
Type: Array of strings

The tag keys that are associated with the resource ARN.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

An error on the server occurred during the processing of your request. Try again later.

ResourceNotFoundException:

The specified Amazon Resource Name (ARN) in the request doesn't exist.

ThrottlingException:

The request was denied due to request throttling.

ValidationException:

The input fails to satisfy the constraints specified by an Amazon Web Services service.

UpdateExport

$result = $client->updateExport([/* ... */]);
$promise = $client->updateExportAsync([/* ... */]);

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

Parameter Syntax

$result = $client->updateExport([
    'Export' => [ // REQUIRED
        'DataQuery' => [ // REQUIRED
            'QueryStatement' => '<string>', // REQUIRED
            'TableConfigurations' => [
                '<TableName>' => ['<string>', ...],
                // ...
            ],
        ],
        'Description' => '<string>',
        'DestinationConfigurations' => [ // REQUIRED
            'S3Destination' => [ // REQUIRED
                'S3Bucket' => '<string>', // REQUIRED
                'S3OutputConfigurations' => [ // REQUIRED
                    'Compression' => 'GZIP|PARQUET', // REQUIRED
                    'Format' => 'TEXT_OR_CSV|PARQUET', // REQUIRED
                    'OutputType' => 'CUSTOM', // REQUIRED
                    'Overwrite' => 'CREATE_NEW_REPORT|OVERWRITE_REPORT', // REQUIRED
                ],
                'S3Prefix' => '<string>', // REQUIRED
                'S3Region' => '<string>', // REQUIRED
            ],
        ],
        'ExportArn' => '<string>',
        'Name' => '<string>', // REQUIRED
        'RefreshCadence' => [ // REQUIRED
            'Frequency' => 'SYNCHRONOUS', // REQUIRED
        ],
    ],
    'ExportArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
Export
Required: Yes
Type: Export structure

The name and query details for the export.

ExportArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) for this export.

Result Syntax

[
    'ExportArn' => '<string>',
]

Result Details

Members
ExportArn
Type: string

The Amazon Resource Name (ARN) for this export.

Errors

InternalServerException:

An error on the server occurred during the processing of your request. Try again later.

ResourceNotFoundException:

The specified Amazon Resource Name (ARN) in the request doesn't exist.

ThrottlingException:

The request was denied due to request throttling.

ValidationException:

The input fails to satisfy the constraints specified by an Amazon Web Services service.

Shapes

Column

Description

Includes basic information for a data column such as its description, name, and type.

Members
Description
Type: string

The description for a column.

Name
Type: string

The column name.

Type
Type: string

The kind of data a column stores.

DataQuery

Description

The SQL query of column selections and row filters from the data table you want.

Members
QueryStatement
Required: Yes
Type: string

The query statement.

TableConfigurations
Type: Associative array of custom strings keys (TableName) to stringss

The table configuration.

DestinationConfigurations

Description

The destinations used for data exports.

Members
S3Destination
Required: Yes
Type: S3Destination structure

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

ExecutionReference

Description

The reference for the data export update.

Members
ExecutionId
Required: Yes
Type: string

The ID for this specific execution.

ExecutionStatus
Required: Yes
Type: ExecutionStatus structure

The status of this specific execution.

ExecutionStatus

Description

The status of the execution.

Members
CompletedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the execution was completed.

CreatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the execution was created.

LastUpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the execution was last updated.

StatusCode
Type: string

The code for the status of the execution.

StatusReason
Type: string

The reason for the failed status.

Export

Description

The details that are available for an export.

Members
DataQuery
Required: Yes
Type: DataQuery structure

The data query for this specific data export.

Description
Type: string

The description for this specific data export.

DestinationConfigurations
Required: Yes
Type: DestinationConfigurations structure

The destination configuration for this specific data export.

ExportArn
Type: string

The Amazon Resource Name (ARN) for this export.

Name
Required: Yes
Type: string

The name of this specific data export.

RefreshCadence
Required: Yes
Type: RefreshCadence structure

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

ExportReference

Description

The reference details for a given export.

Members
ExportArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) for this export.

ExportName
Required: Yes
Type: string

The name of this specific data export.

ExportStatus
Required: Yes
Type: ExportStatus structure

The status of this specific data export.

ExportStatus

Description

The status of the data export.

Members
CreatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp of when the export was created.

LastRefreshedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp of when the export was last generated.

LastUpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp of when the export was updated.

StatusCode
Type: string

The status code for the request.

StatusReason
Type: string

The description for the status code.

InternalServerException

Description

An error on the server occurred during the processing of your request. Try again later.

Members
Message
Required: Yes
Type: string

RefreshCadence

Description

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

Members
Frequency
Required: Yes
Type: string

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

ResourceNotFoundException

Description

The specified Amazon Resource Name (ARN) in the request doesn't exist.

Members
Message
Required: Yes
Type: string
ResourceId
Required: Yes
Type: string

The identifier of the resource that was not found.

ResourceType
Required: Yes
Type: string

The type of the resource that was not found.

ResourceTag

Description

The tag structure that contains a tag key and value.

Members
Key
Required: Yes
Type: string

The key that's associated with the tag.

Value
Required: Yes
Type: string

The value that's associated with the tag.

S3Destination

Description

Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a data exports file.

Members
S3Bucket
Required: Yes
Type: string

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

S3OutputConfigurations
Required: Yes
Type: S3OutputConfigurations structure

The output configuration for the data export.

S3Prefix
Required: Yes
Type: string

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

S3Region
Required: Yes
Type: string

The S3 bucket Region.

S3OutputConfigurations

Description

The compression type, file format, and overwrite preference for the data export.

Members
Compression
Required: Yes
Type: string

The compression type for the data export.

Format
Required: Yes
Type: string

The file format for the data export.

OutputType
Required: Yes
Type: string

The output type for the data export.

Overwrite
Required: Yes
Type: 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.

ServiceQuotaExceededException

Description

You've reached the limit on the number of resources you can create, or exceeded the size of an individual resource.

Members
Message
Required: Yes
Type: string
QuotaCode
Required: Yes
Type: string

The quota code that was exceeded.

ResourceId
Type: string

The identifier of the resource that exceeded quota.

ResourceType
Type: string

The type of the resource that exceeded quota.

ServiceCode
Required: Yes
Type: string

The service code that exceeded quota. It will always be “AWSBillingAndCostManagementDataExports”.

Table

Description

The details for the data export table.

Members
Description
Type: string

The description for the table.

TableName
Type: string

The name of the table.

TableProperties
Type: Array of TablePropertyDescription structures

The properties for the table.

TablePropertyDescription

Description

The properties for the data export table.

Members
DefaultValue
Type: string

The default value for the table.

Description
Type: string

The description for the table.

Name
Type: string

The name of the table.

ValidValues
Type: Array of strings

The valid values for the table.

ThrottlingException

Description

The request was denied due to request throttling.

Members
Message
Required: Yes
Type: string
QuotaCode
Type: string

The quota code that exceeded the throttling limit.

ServiceCode
Type: string

The service code that exceeded the throttling limit. It will always be “AWSBillingAndCostManagementDataExports”.

ValidationException

Description

The input fails to satisfy the constraints specified by an Amazon Web Services service.

Members
Fields
Type: Array of ValidationExceptionField structures

The list of fields that are invalid.

Message
Required: Yes
Type: string
Reason
Type: string

The reason for the validation exception.

ValidationExceptionField

Description

The input failed to meet the constraints specified by the Amazon Web Services service in a specified field.

Members
Message
Required: Yes
Type: string

A message with the reason for the validation exception error.

Name
Required: Yes
Type: string

The field name where the invalid entry was detected.