Class: AWS.BCMDataExports
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.BCMDataExports
- Identifier:
- bcmdataexports
- API Version:
- 2023-11-26
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
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:
Sending a Request Using BCMDataExports
var bcmdataexports = new AWS.BCMDataExports();
bcmdataexports.createExport(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the BCMDataExports object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var bcmdataexports = new AWS.BCMDataExports({apiVersion: '2023-11-26'});
You can also set the API version globally in AWS.config.apiVersions using
the bcmdataexports service identifier:
AWS.config.apiVersions = {
bcmdataexports: '2023-11-26',
// other service API versions
};
var bcmdataexports = new AWS.BCMDataExports();
Version:
-
2023-11-26
Constructor Summary collapse
-
new AWS.BCMDataExports(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
createExport(params = {}, callback) ⇒ AWS.Request
Creates a data export and specifies the data query, the delivery preference, and any optional resource tags.
A
DataQueryconsists of both aQueryStatementandTableConfigurations.The
QueryStatementis an SQL statement. -
deleteExport(params = {}, callback) ⇒ AWS.Request
Deletes an existing data export.
.
-
getExecution(params = {}, callback) ⇒ AWS.Request
Exports data based on the source data update.
.
-
getExport(params = {}, callback) ⇒ AWS.Request
Views the definition of an existing data export.
.
-
getTable(params = {}, callback) ⇒ AWS.Request
Returns the metadata for the specified table and table properties.
-
listExecutions(params = {}, callback) ⇒ AWS.Request
Lists the historical executions for the export.
.
-
listExports(params = {}, callback) ⇒ AWS.Request
Lists all data export definitions.
.
-
listTables(params = {}, callback) ⇒ AWS.Request
Lists all available tables in data exports.
.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
List tags associated with an existing data export.
.
-
tagResource(params = {}, callback) ⇒ AWS.Request
Adds tags for an existing data export definition.
.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Deletes tags associated with an existing data export definition.
.
-
updateExport(params = {}, callback) ⇒ AWS.Request
Updates an existing data export by overwriting all export parameters.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.BCMDataExports(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a BCMDataExports object
var bcmdataexports = new AWS.BCMDataExports({apiVersion: '2023-11-26'});
Options Hash (options):
-
params
(map)
—
An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.
-
endpoint
(String|AWS.Endpoint)
—
The endpoint URI to send requests to. The default endpoint is built from the configured
region. The endpoint should be a string like'https://{service}.{region}.amazonaws.com'or an Endpoint object. -
accessKeyId
(String)
—
your AWS access key ID.
-
secretAccessKey
(String)
—
your AWS secret access key.
-
sessionToken
(AWS.Credentials)
—
the optional AWS session token to sign requests with.
-
credentials
(AWS.Credentials)
—
the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.
-
credentialProvider
(AWS.CredentialProviderChain)
—
the provider chain used to resolve credentials if no static
credentialsproperty is set. -
region
(String)
—
the region to send service requests to. See AWS.BCMDataExports.region for more information.
-
maxRetries
(Integer)
—
the maximum amount of retries to attempt with a request. See AWS.BCMDataExports.maxRetries for more information.
-
maxRedirects
(Integer)
—
the maximum amount of redirects to follow with a request. See AWS.BCMDataExports.maxRedirects for more information.
-
sslEnabled
(Boolean)
—
whether to enable SSL for requests.
-
paramValidation
(Boolean|map)
—
whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
true. - max [Boolean] — Validates that a value meets the max constraint.
- pattern [Boolean] — Validates that a string value matches a regular expression.
- enum [Boolean] — Validates that a string value matches one of the allowable enum values.
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
-
computeChecksums
(Boolean)
—
whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)
-
convertResponseTypes
(Boolean)
—
whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to
true. -
correctClockSkew
(Boolean)
—
whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to
false. -
s3ForcePathStyle
(Boolean)
—
whether to force path style URLs for S3 objects.
-
s3BucketEndpoint
(Boolean)
—
whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an
endpointto be provided explicitly to the service constructor. -
s3DisableBodySigning
(Boolean)
—
whether S3 body signing should be disabled when using signature version
v4. Body signing can only be disabled when using https. Defaults totrue. -
s3UsEast1RegionalEndpoint
('legacy'|'regional')
—
when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to
legacy -
s3UseArnRegion
(Boolean)
—
whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to
true -
retryDelayOptions
(map)
—
A set of options to configure the retry delay on retryable errors. Currently supported options are:
- base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
- customBackoff [function] — A custom function that accepts a
retry count and error and returns the amount of time to delay in
milliseconds. If the result is a non-zero negative value, no further
retry attempts will be made. The
baseoption will be ignored if this option is supplied. The function is only called for retryable errors.
-
httpOptions
(map)
—
A set of options to pass to the low-level HTTP request. Currently supported options are:
- proxy [String] — the URL to proxy requests through
- agent [http.Agent, https.Agent] — the Agent object to perform
HTTP requests with. Used for connection pooling. Defaults to the global
agent (
http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment. - connectTimeout [Integer] — Sets the socket to timeout after
failing to establish a connection with the server after
connectTimeoutmilliseconds. This timeout has no effect once a socket connection has been established. - timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
- xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
- xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
-
apiVersion
(String, Date)
—
a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by
apiVersions). Specify 'latest' to use the latest possible version. -
apiVersions
(map<String, String|Date>)
—
a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.
-
logger
(#write, #log)
—
an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests
-
systemClockOffset
(Number)
—
an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global
AWS.configobject and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds. -
signatureVersion
(String)
—
the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.
-
signatureCache
(Boolean)
—
whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to
true. -
dynamoDbCrc32
(Boolean)
—
whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default:
true. -
useAccelerateEndpoint
(Boolean)
—
Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default:
false. -
clientSideMonitoring
(Boolean)
—
whether to collect and publish this client's performance metrics of all its API requests.
-
endpointDiscoveryEnabled
(Boolean|undefined)
—
whether to call operations with endpoints given by service dynamically. Setting this
-
endpointCacheSize
(Number)
—
the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000
-
hostPrefixEnabled
(Boolean)
—
whether to marshal request parameters to the prefix of hostname. Defaults to
true. -
stsRegionalEndpoints
('legacy'|'regional')
—
whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.
-
useFipsEndpoint
(Boolean)
—
Enables FIPS compatible endpoints. Defaults to
false. -
useDualstackEndpoint
(Boolean)
—
Enables IPv6 dualstack endpoint. Defaults to
false.
Property Details
Method Details
createExport(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the createExport operation
var params = {
Export: { /* required */
DataQuery: { /* required */
QueryStatement: 'STRING_VALUE', /* required */
TableConfigurations: {
'<TableName>': {
'<TableProperty>': 'STRING_VALUE',
/* '<TableProperty>': ... */
},
/* '<TableName>': ... */
}
},
DestinationConfigurations: { /* required */
S3Destination: { /* required */
S3Bucket: 'STRING_VALUE', /* 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_VALUE', /* required */
S3Region: 'STRING_VALUE' /* required */
}
},
Name: 'STRING_VALUE', /* required */
RefreshCadence: { /* required */
Frequency: SYNCHRONOUS /* required */
},
Description: 'STRING_VALUE',
ExportArn: 'STRING_VALUE'
},
ResourceTags: [
{
Key: 'STRING_VALUE', /* required */
Value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
bcmdataexports.createExport(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Export— (map)The details of the export, including data query, name, description, and destination configuration.
DataQuery— required — (map)The data query for this specific data export.
QueryStatement— required — (String)The query statement.
TableConfigurations— (map<map<String>>)The table configuration.
Description— (String)The description for this specific data export.
DestinationConfigurations— required — (map)The destination configuration for this specific data export.
S3Destination— required — (map)An object that describes the destination of the data exports file.
S3Bucket— required — (String)The name of the Amazon S3 bucket used as the destination of a data export file.
S3OutputConfigurations— required — (map)The output configuration for the data export.
Compression— required — (String)The compression type for the data export.
Possible values include:"GZIP""PARQUET"
Format— required — (String)The file format for the data export.
Possible values include:"TEXT_OR_CSV""PARQUET"
OutputType— required — (String)The output type for the data export.
Possible values include:"CUSTOM"
Overwrite— required — (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.
Possible values include:"CREATE_NEW_REPORT""OVERWRITE_REPORT"
S3Prefix— required — (String)The S3 path prefix you want prepended to the name of your data export.
S3Region— required — (String)The S3 bucket Region.
ExportArn— (String)The Amazon Resource Name (ARN) for this export.
Name— required — (String)The name of this specific data export.
RefreshCadence— required — (map)The cadence for Amazon Web Services to update the export in your S3 bucket.
Frequency— required — (String)The frequency that data exports are updated. The export refreshes each time the source data updates, up to three times daily.
Possible values include:"SYNCHRONOUS"
ResourceTags— (Array<map>)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.
Key— required — (String)The key that's associated with the tag.
Value— required — (String)The value that's associated with the tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:ExportArn— (String)The Amazon Resource Name (ARN) for this export.
-
(AWS.Response)
—
Returns:
deleteExport(params = {}, callback) ⇒ AWS.Request
Deletes an existing data export.
Service Reference:
Examples:
Calling the deleteExport operation
var params = {
ExportArn: 'STRING_VALUE' /* required */
};
bcmdataexports.deleteExport(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ExportArn— (String)The Amazon Resource Name (ARN) for this export.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:ExportArn— (String)The Amazon Resource Name (ARN) for this export.
-
(AWS.Response)
—
Returns:
getExecution(params = {}, callback) ⇒ AWS.Request
Exports data based on the source data update.
Service Reference:
Examples:
Calling the getExecution operation
var params = {
ExecutionId: 'STRING_VALUE', /* required */
ExportArn: 'STRING_VALUE' /* required */
};
bcmdataexports.getExecution(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ExecutionId— (String)The ID for this specific execution.
ExportArn— (String)The Amazon Resource Name (ARN) of the Export object that generated this specific execution.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:ExecutionId— (String)The ID for this specific execution.
ExecutionStatus— (map)The status of this specific execution.
CompletedAt— (Date)The time when the execution was completed.
CreatedAt— (Date)The time when the execution was created.
LastUpdatedAt— (Date)The time when the execution was last updated.
StatusCode— (String)The code for the status of the execution.
Possible values include:"INITIATION_IN_PROCESS""QUERY_QUEUED""QUERY_IN_PROCESS""QUERY_FAILURE""DELIVERY_IN_PROCESS""DELIVERY_SUCCESS""DELIVERY_FAILURE"
StatusReason— (String)The reason for the failed status.
Possible values include:"INSUFFICIENT_PERMISSION""BILL_OWNER_CHANGED""INTERNAL_FAILURE"
Export— (map)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— required — (map)The data query for this specific data export.
QueryStatement— required — (String)The query statement.
TableConfigurations— (map<map<String>>)The table configuration.
Description— (String)The description for this specific data export.
DestinationConfigurations— required — (map)The destination configuration for this specific data export.
S3Destination— required — (map)An object that describes the destination of the data exports file.
S3Bucket— required — (String)The name of the Amazon S3 bucket used as the destination of a data export file.
S3OutputConfigurations— required — (map)The output configuration for the data export.
Compression— required — (String)The compression type for the data export.
Possible values include:"GZIP""PARQUET"
Format— required — (String)The file format for the data export.
Possible values include:"TEXT_OR_CSV""PARQUET"
OutputType— required — (String)The output type for the data export.
Possible values include:"CUSTOM"
Overwrite— required — (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.
Possible values include:"CREATE_NEW_REPORT""OVERWRITE_REPORT"
S3Prefix— required — (String)The S3 path prefix you want prepended to the name of your data export.
S3Region— required — (String)The S3 bucket Region.
ExportArn— (String)The Amazon Resource Name (ARN) for this export.
Name— required — (String)The name of this specific data export.
RefreshCadence— required — (map)The cadence for Amazon Web Services to update the export in your S3 bucket.
Frequency— required — (String)The frequency that data exports are updated. The export refreshes each time the source data updates, up to three times daily.
Possible values include:"SYNCHRONOUS"
-
(AWS.Response)
—
Returns:
getExport(params = {}, callback) ⇒ AWS.Request
Views the definition of an existing data export.
Service Reference:
Examples:
Calling the getExport operation
var params = {
ExportArn: 'STRING_VALUE' /* required */
};
bcmdataexports.getExport(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ExportArn— (String)The Amazon Resource Name (ARN) for this export.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:Export— (map)The data for this specific export.
DataQuery— required — (map)The data query for this specific data export.
QueryStatement— required — (String)The query statement.
TableConfigurations— (map<map<String>>)The table configuration.
Description— (String)The description for this specific data export.
DestinationConfigurations— required — (map)The destination configuration for this specific data export.
S3Destination— required — (map)An object that describes the destination of the data exports file.
S3Bucket— required — (String)The name of the Amazon S3 bucket used as the destination of a data export file.
S3OutputConfigurations— required — (map)The output configuration for the data export.
Compression— required — (String)The compression type for the data export.
Possible values include:"GZIP""PARQUET"
Format— required — (String)The file format for the data export.
Possible values include:"TEXT_OR_CSV""PARQUET"
OutputType— required — (String)The output type for the data export.
Possible values include:"CUSTOM"
Overwrite— required — (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.
Possible values include:"CREATE_NEW_REPORT""OVERWRITE_REPORT"
S3Prefix— required — (String)The S3 path prefix you want prepended to the name of your data export.
S3Region— required — (String)The S3 bucket Region.
ExportArn— (String)The Amazon Resource Name (ARN) for this export.
Name— required — (String)The name of this specific data export.
RefreshCadence— required — (map)The cadence for Amazon Web Services to update the export in your S3 bucket.
Frequency— required — (String)The frequency that data exports are updated. The export refreshes each time the source data updates, up to three times daily.
Possible values include:"SYNCHRONOUS"
ExportStatus— (map)The status of this specific export.
CreatedAt— (Date)The timestamp of when the export was created.
LastRefreshedAt— (Date)The timestamp of when the export was last generated.
LastUpdatedAt— (Date)The timestamp of when the export was updated.
StatusCode— (String)The status code for the request.
Possible values include:"HEALTHY""UNHEALTHY"
StatusReason— (String)The description for the status code.
Possible values include:"INSUFFICIENT_PERMISSION""BILL_OWNER_CHANGED""INTERNAL_FAILURE"
-
(AWS.Response)
—
Returns:
getTable(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the getTable operation
var params = {
TableName: 'STRING_VALUE', /* required */
TableProperties: {
'<TableProperty>': 'STRING_VALUE',
/* '<TableProperty>': ... */
}
};
bcmdataexports.getTable(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
TableName— (String)The name of the table.
TableProperties— (map<String>)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:Description— (String)The table description.
Schema— (Array<map>)The schema of the table.
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— (map<String>)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.
-
(AWS.Response)
—
Returns:
listExecutions(params = {}, callback) ⇒ AWS.Request
Lists the historical executions for the export.
Service Reference:
Examples:
Calling the listExecutions operation
var params = {
ExportArn: 'STRING_VALUE', /* required */
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
bcmdataexports.listExecutions(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ExportArn— (String)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:Executions— (Array<map>)The list of executions.
ExecutionId— required — (String)The ID for this specific execution.
ExecutionStatus— required — (map)The status of this specific execution.
CompletedAt— (Date)The time when the execution was completed.
CreatedAt— (Date)The time when the execution was created.
LastUpdatedAt— (Date)The time when the execution was last updated.
StatusCode— (String)The code for the status of the execution.
Possible values include:"INITIATION_IN_PROCESS""QUERY_QUEUED""QUERY_IN_PROCESS""QUERY_FAILURE""DELIVERY_IN_PROCESS""DELIVERY_SUCCESS""DELIVERY_FAILURE"
StatusReason— (String)The reason for the failed status.
Possible values include:"INSUFFICIENT_PERMISSION""BILL_OWNER_CHANGED""INTERNAL_FAILURE"
NextToken— (String)The token to retrieve the next set of results.
-
(AWS.Response)
—
Returns:
listExports(params = {}, callback) ⇒ AWS.Request
Lists all data export definitions.
Service Reference:
Examples:
Calling the listExports operation
var params = {
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
bcmdataexports.listExports(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
MaxResults— (Integer)The maximum number of objects that are returned for the request.
NextToken— (String)The token to retrieve the next set of results.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:Exports— (Array<map>)The details of the exports, including name and export status.
ExportArn— required — (String)The Amazon Resource Name (ARN) for this export.
ExportName— required — (String)The name of this specific data export.
ExportStatus— required — (map)The status of this specific data export.
CreatedAt— (Date)The timestamp of when the export was created.
LastRefreshedAt— (Date)The timestamp of when the export was last generated.
LastUpdatedAt— (Date)The timestamp of when the export was updated.
StatusCode— (String)The status code for the request.
Possible values include:"HEALTHY""UNHEALTHY"
StatusReason— (String)The description for the status code.
Possible values include:"INSUFFICIENT_PERMISSION""BILL_OWNER_CHANGED""INTERNAL_FAILURE"
NextToken— (String)The token to retrieve the next set of results.
-
(AWS.Response)
—
Returns:
listTables(params = {}, callback) ⇒ AWS.Request
Lists all available tables in data exports.
Service Reference:
Examples:
Calling the listTables operation
var params = {
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
bcmdataexports.listTables(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
MaxResults— (Integer)The maximum number of objects that are returned for the request.
NextToken— (String)The token to retrieve the next set of results.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:NextToken— (String)The token to retrieve the next set of results.
Tables— (Array<map>)The list of tables.
Description— (String)The description for the table.
TableName— (String)The name of the table.
TableProperties— (Array<map>)The properties for the table.
DefaultValue— (String)The default value for the table.
Description— (String)The description for the table.
Name— (String)The name of the table.
ValidValues— (Array<String>)The valid values for the table.
-
(AWS.Response)
—
Returns:
listTagsForResource(params = {}, callback) ⇒ AWS.Request
List tags associated with an existing data export.
Service Reference:
Examples:
Calling the listTagsForResource operation
var params = {
ResourceArn: 'STRING_VALUE', /* required */
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
bcmdataexports.listTagsForResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
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)The unique identifier for the resource.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:NextToken— (String)The token to retrieve the next set of results.
ResourceTags— (Array<map>)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.
Key— required — (String)The key that's associated with the tag.
Value— required — (String)The value that's associated with the tag.
-
(AWS.Response)
—
Returns:
tagResource(params = {}, callback) ⇒ AWS.Request
Adds tags for an existing data export definition.
Service Reference:
Examples:
Calling the tagResource operation
var params = {
ResourceArn: 'STRING_VALUE', /* required */
ResourceTags: [ /* required */
{
Key: 'STRING_VALUE', /* required */
Value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
bcmdataexports.tagResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn— (String)The unique identifier for the resource.
ResourceTags— (Array<map>)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.
Key— required — (String)The key that's associated with the tag.
Value— required — (String)The value that's associated with the tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs.
-
(AWS.Response)
—
Returns:
untagResource(params = {}, callback) ⇒ AWS.Request
Deletes tags associated with an existing data export definition.
Service Reference:
Examples:
Calling the untagResource operation
var params = {
ResourceArn: 'STRING_VALUE', /* required */
ResourceTagKeys: [ /* required */
'STRING_VALUE',
/* more items */
]
};
bcmdataexports.untagResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn— (String)The unique identifier for the resource.
ResourceTagKeys— (Array<String>)The tag keys that are associated with the resource ARN.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs.
-
(AWS.Response)
—
Returns:
updateExport(params = {}, callback) ⇒ AWS.Request
Updates an existing data export by overwriting all export parameters. All export parameters must be provided in the UpdateExport request.
Service Reference:
Examples:
Calling the updateExport operation
var params = {
Export: { /* required */
DataQuery: { /* required */
QueryStatement: 'STRING_VALUE', /* required */
TableConfigurations: {
'<TableName>': {
'<TableProperty>': 'STRING_VALUE',
/* '<TableProperty>': ... */
},
/* '<TableName>': ... */
}
},
DestinationConfigurations: { /* required */
S3Destination: { /* required */
S3Bucket: 'STRING_VALUE', /* 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_VALUE', /* required */
S3Region: 'STRING_VALUE' /* required */
}
},
Name: 'STRING_VALUE', /* required */
RefreshCadence: { /* required */
Frequency: SYNCHRONOUS /* required */
},
Description: 'STRING_VALUE',
ExportArn: 'STRING_VALUE'
},
ExportArn: 'STRING_VALUE' /* required */
};
bcmdataexports.updateExport(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Export— (map)The name and query details for the export.
DataQuery— required — (map)The data query for this specific data export.
QueryStatement— required — (String)The query statement.
TableConfigurations— (map<map<String>>)The table configuration.
Description— (String)The description for this specific data export.
DestinationConfigurations— required — (map)The destination configuration for this specific data export.
S3Destination— required — (map)An object that describes the destination of the data exports file.
S3Bucket— required — (String)The name of the Amazon S3 bucket used as the destination of a data export file.
S3OutputConfigurations— required — (map)The output configuration for the data export.
Compression— required — (String)The compression type for the data export.
Possible values include:"GZIP""PARQUET"
Format— required — (String)The file format for the data export.
Possible values include:"TEXT_OR_CSV""PARQUET"
OutputType— required — (String)The output type for the data export.
Possible values include:"CUSTOM"
Overwrite— required — (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.
Possible values include:"CREATE_NEW_REPORT""OVERWRITE_REPORT"
S3Prefix— required — (String)The S3 path prefix you want prepended to the name of your data export.
S3Region— required — (String)The S3 bucket Region.
ExportArn— (String)The Amazon Resource Name (ARN) for this export.
Name— required — (String)The name of this specific data export.
RefreshCadence— required — (map)The cadence for Amazon Web Services to update the export in your S3 bucket.
Frequency— required — (String)The frequency that data exports are updated. The export refreshes each time the source data updates, up to three times daily.
Possible values include:"SYNCHRONOUS"
ExportArn— (String)The Amazon Resource Name (ARN) for this export.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:ExportArn— (String)The Amazon Resource Name (ARN) for this export.
-
(AWS.Response)
—
Returns: