Class: AWS.IoTAnalytics
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.IoTAnalytics
- Identifier:
- iotanalytics
- API Version:
- 2017-11-27
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
AWS IoT Analytics allows you to collect large amounts of device data, process messages, and store them. You can then query the data and run sophisticated analytics on it. AWS IoT Analytics enables advanced data exploration through integration with Jupyter Notebooks and data visualization through integration with Amazon QuickSight.
Traditional analytics and business intelligence tools are designed to process structured data. IoT data often comes from devices that record noisy processes (such as temperature, motion, or sound). As a result the data from these devices can have significant gaps, corrupted messages, and false readings that must be cleaned up before analysis can occur. Also, IoT data is often only meaningful in the context of other data from external sources.
AWS IoT Analytics automates the steps required to analyze data from IoT devices. AWS IoT Analytics filters, transforms, and enriches IoT data before storing it in a time-series data store for analysis. You can set up the service to collect only the data you need from your devices, apply mathematical transforms to process the data, and enrich the data with device-specific metadata such as device type and location before storing it. Then, you can analyze your data by running queries using the built-in SQL query engine, or perform more complex analytics and machine learning inference. AWS IoT Analytics includes pre-built models for common IoT use cases so you can answer questions like which devices are about to fail or which customers are at risk of abandoning their wearable devices.
Sending a Request Using IoTAnalytics
var iotanalytics = new AWS.IoTAnalytics();
iotanalytics.batchPutMessage(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 IoTAnalytics object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var iotanalytics = new AWS.IoTAnalytics({apiVersion: '2017-11-27'});
You can also set the API version globally in AWS.config.apiVersions
using
the iotanalytics service identifier:
AWS.config.apiVersions = {
iotanalytics: '2017-11-27',
// other service API versions
};
var iotanalytics = new AWS.IoTAnalytics();
Version:
-
2017-11-27
Constructor Summary
-
new AWS.IoTAnalytics(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary
-
batchPutMessage(params = {}, callback) ⇒ AWS.Request
Sends messages to a channel.
-
cancelPipelineReprocessing(params = {}, callback) ⇒ AWS.Request
Cancels the reprocessing of data through the pipeline.
-
createChannel(params = {}, callback) ⇒ AWS.Request
Creates a channel.
-
createDataset(params = {}, callback) ⇒ AWS.Request
Creates a data set.
-
createDatasetContent(params = {}, callback) ⇒ AWS.Request
Creates the content of a data set by applying a "queryAction" (a SQL query) or a "containerAction" (executing a containerized application).
-
createDatastore(params = {}, callback) ⇒ AWS.Request
Creates a data store, which is a repository for messages.
-
createPipeline(params = {}, callback) ⇒ AWS.Request
Creates a pipeline.
-
deleteChannel(params = {}, callback) ⇒ AWS.Request
Deletes the specified channel.
-
deleteDataset(params = {}, callback) ⇒ AWS.Request
Deletes the specified data set.
-
deleteDatasetContent(params = {}, callback) ⇒ AWS.Request
Deletes the content of the specified data set.
-
deleteDatastore(params = {}, callback) ⇒ AWS.Request
Deletes the specified data store.
-
deletePipeline(params = {}, callback) ⇒ AWS.Request
Deletes the specified pipeline.
-
describeChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about a channel.
-
describeDataset(params = {}, callback) ⇒ AWS.Request
Retrieves information about a data set.
-
describeDatastore(params = {}, callback) ⇒ AWS.Request
Retrieves information about a data store.
-
describeLoggingOptions(params = {}, callback) ⇒ AWS.Request
Retrieves the current settings of the AWS IoT Analytics logging options.
-
describePipeline(params = {}, callback) ⇒ AWS.Request
Retrieves information about a pipeline.
-
getDatasetContent(params = {}, callback) ⇒ AWS.Request
Retrieves the contents of a data set as pre-signed URIs.
-
listChannels(params = {}, callback) ⇒ AWS.Request
Retrieves a list of channels.
-
listDatasetContents(params = {}, callback) ⇒ AWS.Request
Lists information about data set contents that have been created.
-
listDatasets(params = {}, callback) ⇒ AWS.Request
Retrieves information about data sets.
-
listDatastores(params = {}, callback) ⇒ AWS.Request
Retrieves a list of data stores.
-
listPipelines(params = {}, callback) ⇒ AWS.Request
Retrieves a list of pipelines.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Lists the tags (metadata) which you have assigned to the resource.
-
putLoggingOptions(params = {}, callback) ⇒ AWS.Request
Sets or updates the AWS IoT Analytics logging options.
-
runPipelineActivity(params = {}, callback) ⇒ AWS.Request
Simulates the results of running a pipeline activity on a message payload.
-
sampleChannelData(params = {}, callback) ⇒ AWS.Request
Retrieves a sample of messages from the specified channel ingested during the specified timeframe.
-
startPipelineReprocessing(params = {}, callback) ⇒ AWS.Request
Starts the reprocessing of raw message data through the pipeline.
-
tagResource(params = {}, callback) ⇒ AWS.Request
Adds to or modifies the tags of the given resource.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Removes the given tags (metadata) from the resource.
-
updateChannel(params = {}, callback) ⇒ AWS.Request
Updates the settings of a channel.
-
updateDataset(params = {}, callback) ⇒ AWS.Request
Updates the settings of a data set.
-
updateDatastore(params = {}, callback) ⇒ AWS.Request
Updates the settings of a data store.
-
updatePipeline(params = {}, callback) ⇒ AWS.Request
Updates the settings of a pipeline.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.IoTAnalytics(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a IoTAnalytics object
var iotanalytics = new AWS.IoTAnalytics({apiVersion: '2017-11-27'});
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)
—
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'
. -
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
credentials
property is set. -
region
(String)
—
the region to send service requests to. See AWS.IoTAnalytics.region for more information.
-
maxRetries
(Integer)
—
the maximum amount of retries to attempt with a request. See AWS.IoTAnalytics.maxRetries for more information.
-
maxRedirects
(Integer)
—
the maximum amount of redirects to follow with a request. See AWS.IoTAnalytics.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
endpoint
to 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
. -
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 returns the amount of time to delay in milliseconds. The
base
option will be ignored if this option is supplied.
-
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
connectTimeout
milliseconds. 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.config
object 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)
—
whether to enable endpoint discovery for operations that allow optionally using an endpoint returned by the service. Defaults to 'false'
-
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
.
Property Details
Method Details
batchPutMessage(params = {}, callback) ⇒ AWS.Request
Sends messages to a channel.
Service Reference:
Examples:
Calling the batchPutMessage operation
var params = {
channelName: 'STRING_VALUE', /* required */
messages: [ /* required */
{
messageId: 'STRING_VALUE', /* required */
payload: new Buffer('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */ /* required */
},
/* more items */
]
};
iotanalytics.batchPutMessage(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: {})
—
channelName
— (String
)The name of the channel where the messages are sent.
messages
— (Array<map>
)The list of messages to be sent. Each message has format: '{ "messageId": "string", "payload": "string"}'.
Note that the field names of message payloads (data) that you send to AWS IoT Analytics:
-
Must contain only alphanumeric characters and undescores (); no other special characters are allowed.
-
Must begin with an alphabetic character or single underscore ().
-
Cannot contain hyphens (-).
-
In regular expression terms: "^A-Za-z_$".
-
Cannot be greater than 255 characters.
-
Are case-insensitive. (Fields named "foo" and "FOO" in the same payload are considered duplicates.)
For example, 29 or 29 are valid, but 29, 29 or 29 are invalid in message payloads.
messageId
— required — (String
)The ID you wish to assign to the message. Each "messageId" must be unique within each batch sent.
payload
— required — (Buffer, Typed Array, Blob, String
)The payload of the message. This may be a JSON string or a Base64-encoded string representing binary data (in which case you must decode it by means of a pipeline activity).
-
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:batchPutMessageErrorEntries
— (Array<map>
)A list of any errors encountered when sending the messages to the channel.
messageId
— (String
)The ID of the message that caused the error. (See the value corresponding to the "messageId" key in the message object.)
errorCode
— (String
)The code associated with the error.
errorMessage
— (String
)The message associated with the error.
-
(AWS.Response)
—
Returns:
cancelPipelineReprocessing(params = {}, callback) ⇒ AWS.Request
Cancels the reprocessing of data through the pipeline.
Service Reference:
Examples:
Calling the cancelPipelineReprocessing operation
var params = {
pipelineName: 'STRING_VALUE', /* required */
reprocessingId: 'STRING_VALUE' /* required */
};
iotanalytics.cancelPipelineReprocessing(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: {})
—
pipelineName
— (String
)The name of pipeline for which data reprocessing is canceled.
reprocessingId
— (String
)The ID of the reprocessing task (returned by "StartPipelineReprocessing").
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
createChannel(params = {}, callback) ⇒ AWS.Request
Creates a channel. A channel collects data from an MQTT topic and archives the raw, unprocessed messages before publishing the data to a pipeline.
Service Reference:
Examples:
Calling the createChannel operation
var params = {
channelName: 'STRING_VALUE', /* required */
retentionPeriod: {
numberOfDays: 'NUMBER_VALUE',
unlimited: true || false
},
tags: [
{
key: 'STRING_VALUE', /* required */
value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
iotanalytics.createChannel(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: {})
—
channelName
— (String
)The name of the channel.
retentionPeriod
— (map
)How long, in days, message data is kept for the channel.
unlimited
— (Boolean
)If true, message data is kept indefinitely.
numberOfDays
— (Integer
)The number of days that message data is kept. The "unlimited" parameter must be false.
tags
— (Array<map>
)Metadata which can be used to manage the channel.
key
— required — (String
)The tag's key.
value
— required — (String
)The tag's value.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:channelName
— (String
)The name of the channel.
channelArn
— (String
)The ARN of the channel.
retentionPeriod
— (map
)How long, in days, message data is kept for the channel.
unlimited
— (Boolean
)If true, message data is kept indefinitely.
numberOfDays
— (Integer
)The number of days that message data is kept. The "unlimited" parameter must be false.
-
(AWS.Response)
—
Returns:
createDataset(params = {}, callback) ⇒ AWS.Request
Creates a data set. A data set stores data retrieved from a data store by applying a "queryAction" (a SQL query) or a "containerAction" (executing a containerized application). This operation creates the skeleton of a data set. The data set can be populated manually by calling "CreateDatasetContent" or automatically according to a "trigger" you specify.
Service Reference:
Examples:
Calling the createDataset operation
var params = {
actions: [ /* required */
{
actionName: 'STRING_VALUE',
containerAction: {
executionRoleArn: 'STRING_VALUE', /* required */
image: 'STRING_VALUE', /* required */
resourceConfiguration: { /* required */
computeType: ACU_1 | ACU_2, /* required */
volumeSizeInGB: 'NUMBER_VALUE' /* required */
},
variables: [
{
name: 'STRING_VALUE', /* required */
datasetContentVersionValue: {
datasetName: 'STRING_VALUE' /* required */
},
doubleValue: 'NUMBER_VALUE',
outputFileUriValue: {
fileName: 'STRING_VALUE' /* required */
},
stringValue: 'STRING_VALUE'
},
/* more items */
]
},
queryAction: {
sqlQuery: 'STRING_VALUE', /* required */
filters: [
{
deltaTime: {
offsetSeconds: 'NUMBER_VALUE', /* required */
timeExpression: 'STRING_VALUE' /* required */
}
},
/* more items */
]
}
},
/* more items */
],
datasetName: 'STRING_VALUE', /* required */
contentDeliveryRules: [
{
destination: { /* required */
iotEventsDestinationConfiguration: {
inputName: 'STRING_VALUE', /* required */
roleArn: 'STRING_VALUE' /* required */
}
},
entryName: 'STRING_VALUE'
},
/* more items */
],
retentionPeriod: {
numberOfDays: 'NUMBER_VALUE',
unlimited: true || false
},
tags: [
{
key: 'STRING_VALUE', /* required */
value: 'STRING_VALUE' /* required */
},
/* more items */
],
triggers: [
{
dataset: {
name: 'STRING_VALUE' /* required */
},
schedule: {
expression: 'STRING_VALUE'
}
},
/* more items */
],
versioningConfiguration: {
maxVersions: 'NUMBER_VALUE',
unlimited: true || false
}
};
iotanalytics.createDataset(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: {})
—
datasetName
— (String
)The name of the data set.
actions
— (Array<map>
)A list of actions that create the data set contents.
actionName
— (String
)The name of the data set action by which data set contents are automatically created.
queryAction
— (map
)An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.
sqlQuery
— required — (String
)A SQL query string.
filters
— (Array<map>
)Pre-filters applied to message data.
deltaTime
— (map
)Used to limit data to that which has arrived since the last execution of the action.
offsetSeconds
— required — (Integer
)The number of seconds of estimated "in flight" lag time of message data. When you create data set contents using message data from a specified time frame, some message data may still be "in flight" when processing begins, and so will not arrive in time to be processed. Use this field to make allowances for the "in flight" time of your message data, so that data not processed from a previous time frame will be included with the next time frame. Without this, missed message data would be excluded from processing during the next time frame as well, because its timestamp places it within the previous time frame.
timeExpression
— required — (String
)An expression by which the time of the message data may be determined. This may be the name of a timestamp field, or a SQL expression which is used to derive the time the message data was generated.
containerAction
— (map
)Information which allows the system to run a containerized application in order to create the data set contents. The application must be in a Docker container along with any needed support libraries.
image
— required — (String
)The ARN of the Docker container stored in your account. The Docker container contains an application and needed support libraries and is used to generate data set contents.
executionRoleArn
— required — (String
)The ARN of the role which gives permission to the system to access needed resources in order to run the "containerAction". This includes, at minimum, permission to retrieve the data set contents which are the input to the containerized application.
resourceConfiguration
— required — (map
)Configuration of the resource which executes the "containerAction".
computeType
— required — (String
)The type of the compute resource used to execute the "containerAction". Possible values are: ACU_1 (vCPU=4, memory=16GiB) or ACU_2 (vCPU=8, memory=32GiB).
Possible values include:"ACU_1"
"ACU_2"
volumeSizeInGB
— required — (Integer
)The size (in GB) of the persistent storage available to the resource instance used to execute the "containerAction" (min: 1, max: 50).
variables
— (Array<map>
)The values of variables used within the context of the execution of the containerized application (basically, parameters passed to the application). Each variable must have a name and a value given by one of "stringValue", "datasetContentVersionValue", or "outputFileUriValue".
name
— required — (String
)The name of the variable.
stringValue
— (String
)The value of the variable as a string.
doubleValue
— (Float
)The value of the variable as a double (numeric).
datasetContentVersionValue
— (map
)The value of the variable as a structure that specifies a data set content version.
datasetName
— required — (String
)The name of the data set whose latest contents are used as input to the notebook or application.
outputFileUriValue
— (map
)The value of the variable as a structure that specifies an output file URI.
fileName
— required — (String
)The URI of the location where data set contents are stored, usually the URI of a file in an S3 bucket.
triggers
— (Array<map>
)A list of triggers. A trigger causes data set contents to be populated at a specified time interval or when another data set's contents are created. The list of triggers can be empty or contain up to five DataSetTrigger objects.
schedule
— (map
)The "Schedule" when the trigger is initiated.
expression
— (String
)The expression that defines when to trigger an update. For more information, see Schedule Expressions for Rules in the Amazon CloudWatch Events User Guide.
dataset
— (map
)The data set whose content creation triggers the creation of this data set's contents.
name
— required — (String
)The name of the data set whose content generation triggers the new data set content generation.
contentDeliveryRules
— (Array<map>
)When data set contents are created they are delivered to destinations specified here.
entryName
— (String
)The name of the data set content delivery rules entry.
destination
— required — (map
)The destination to which data set contents are delivered.
iotEventsDestinationConfiguration
— (map
)Configuration information for delivery of data set contents to AWS IoT Events.
inputName
— required — (String
)The name of the AWS IoT Events input to which data set contents are delivered.
roleArn
— required — (String
)The ARN of the role which grants AWS IoT Analytics permission to deliver data set contents to an AWS IoT Events input.
retentionPeriod
— (map
)[Optional] How long, in days, versions of data set contents are kept for the data set. If not specified or set to null, versions of data set contents are retained for at most 90 days. The number of versions of data set contents retained is determined by the
versioningConfiguration
parameter. (For more information, see https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions)unlimited
— (Boolean
)If true, message data is kept indefinitely.
numberOfDays
— (Integer
)The number of days that message data is kept. The "unlimited" parameter must be false.
versioningConfiguration
— (map
)[Optional] How many versions of data set contents are kept. If not specified or set to null, only the latest version plus the latest succeeded version (if they are different) are kept for the time period specified by the "retentionPeriod" parameter. (For more information, see https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions)
unlimited
— (Boolean
)If true, unlimited versions of data set contents will be kept.
maxVersions
— (Integer
)How many versions of data set contents will be kept. The "unlimited" parameter must be false.
tags
— (Array<map>
)Metadata which can be used to manage the data set.
key
— required — (String
)The tag's key.
value
— required — (String
)The tag's value.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:datasetName
— (String
)The name of the data set.
datasetArn
— (String
)The ARN of the data set.
retentionPeriod
— (map
)How long, in days, data set contents are kept for the data set.
unlimited
— (Boolean
)If true, message data is kept indefinitely.
numberOfDays
— (Integer
)The number of days that message data is kept. The "unlimited" parameter must be false.
-
(AWS.Response)
—
Returns:
createDatasetContent(params = {}, callback) ⇒ AWS.Request
Creates the content of a data set by applying a "queryAction" (a SQL query) or a "containerAction" (executing a containerized application).
Service Reference:
Examples:
Calling the createDatasetContent operation
var params = {
datasetName: 'STRING_VALUE' /* required */
};
iotanalytics.createDatasetContent(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: {})
—
datasetName
— (String
)The name of the data set.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:versionId
— (String
)The version ID of the data set contents which are being created.
-
(AWS.Response)
—
Returns:
createDatastore(params = {}, callback) ⇒ AWS.Request
Creates a data store, which is a repository for messages.
Service Reference:
Examples:
Calling the createDatastore operation
var params = {
datastoreName: 'STRING_VALUE', /* required */
retentionPeriod: {
numberOfDays: 'NUMBER_VALUE',
unlimited: true || false
},
tags: [
{
key: 'STRING_VALUE', /* required */
value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
iotanalytics.createDatastore(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: {})
—
datastoreName
— (String
)The name of the data store.
retentionPeriod
— (map
)How long, in days, message data is kept for the data store.
unlimited
— (Boolean
)If true, message data is kept indefinitely.
numberOfDays
— (Integer
)The number of days that message data is kept. The "unlimited" parameter must be false.
tags
— (Array<map>
)Metadata which can be used to manage the data store.
key
— required — (String
)The tag's key.
value
— required — (String
)The tag's value.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:datastoreName
— (String
)The name of the data store.
datastoreArn
— (String
)The ARN of the data store.
retentionPeriod
— (map
)How long, in days, message data is kept for the data store.
unlimited
— (Boolean
)If true, message data is kept indefinitely.
numberOfDays
— (Integer
)The number of days that message data is kept. The "unlimited" parameter must be false.
-
(AWS.Response)
—
Returns:
createPipeline(params = {}, callback) ⇒ AWS.Request
Creates a pipeline. A pipeline consumes messages from one or more channels and allows you to process the messages before storing them in a data store. You must specify both a channel
and a datastore
activity and, optionally, as many as 23 additional activities in the pipelineActivities
array.
Service Reference:
Examples:
Calling the createPipeline operation
var params = {
pipelineActivities: [ /* required */
{
addAttributes: {
attributes: { /* required */
'<AttributeName>': 'STRING_VALUE',
/* '<AttributeName>': ... */
},
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
channel: {
channelName: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
datastore: {
datastoreName: 'STRING_VALUE', /* required */
name: 'STRING_VALUE' /* required */
},
deviceRegistryEnrich: {
attribute: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
roleArn: 'STRING_VALUE', /* required */
thingName: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
deviceShadowEnrich: {
attribute: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
roleArn: 'STRING_VALUE', /* required */
thingName: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
filter: {
filter: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
lambda: {
batchSize: 'NUMBER_VALUE', /* required */
lambdaName: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
math: {
attribute: 'STRING_VALUE', /* required */
math: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
removeAttributes: {
attributes: [ /* required */
'STRING_VALUE',
/* more items */
],
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
selectAttributes: {
attributes: [ /* required */
'STRING_VALUE',
/* more items */
],
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
}
},
/* more items */
],
pipelineName: 'STRING_VALUE', /* required */
tags: [
{
key: 'STRING_VALUE', /* required */
value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
iotanalytics.createPipeline(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: {})
—
pipelineName
— (String
)The name of the pipeline.
pipelineActivities
— (Array<map>
)A list of "PipelineActivity" objects. Activities perform transformations on your messages, such as removing, renaming or adding message attributes; filtering messages based on attribute values; invoking your Lambda functions on messages for advanced processing; or performing mathematical transformations to normalize device data.
The list can be 2-25 PipelineActivity objects and must contain both a
channel
and adatastore
activity. Each entry in the list must contain only one activity, for example:pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]
channel
— (map
)Determines the source of the messages to be processed.
name
— required — (String
)The name of the 'channel' activity.
channelName
— required — (String
)The name of the channel from which the messages are processed.
next
— (String
)The next activity in the pipeline.
lambda
— (map
)Runs a Lambda function to modify the message.
name
— required — (String
)The name of the 'lambda' activity.
lambdaName
— required — (String
)The name of the Lambda function that is run on the message.
batchSize
— required — (Integer
)The number of messages passed to the Lambda function for processing.
The AWS Lambda function must be able to process all of these messages within five minutes, which is the maximum timeout duration for Lambda functions.
next
— (String
)The next activity in the pipeline.
datastore
— (map
)Specifies where to store the processed message data.
name
— required — (String
)The name of the 'datastore' activity.
datastoreName
— required — (String
)The name of the data store where processed messages are stored.
addAttributes
— (map
)Adds other attributes based on existing attributes in the message.
name
— required — (String
)The name of the 'addAttributes' activity.
attributes
— required — (map<String>
)A list of 1-50 "AttributeNameMapping" objects that map an existing attribute to a new attribute.
Note: The existing attributes remain in the message, so if you want to remove the originals, use "RemoveAttributeActivity".next
— (String
)The next activity in the pipeline.
removeAttributes
— (map
)Removes attributes from a message.
name
— required — (String
)The name of the 'removeAttributes' activity.
attributes
— required — (Array<String>
)A list of 1-50 attributes to remove from the message.
next
— (String
)The next activity in the pipeline.
selectAttributes
— (map
)Creates a new message using only the specified attributes from the original message.
name
— required — (String
)The name of the 'selectAttributes' activity.
attributes
— required — (Array<String>
)A list of the attributes to select from the message.
next
— (String
)The next activity in the pipeline.
filter
— (map
)Filters a message based on its attributes.
name
— required — (String
)The name of the 'filter' activity.
filter
— required — (String
)An expression that looks like a SQL WHERE clause that must return a Boolean value.
next
— (String
)The next activity in the pipeline.
math
— (map
)Computes an arithmetic expression using the message's attributes and adds it to the message.
name
— required — (String
)The name of the 'math' activity.
attribute
— required — (String
)The name of the attribute that contains the result of the math operation.
math
— required — (String
)An expression that uses one or more existing attributes and must return an integer value.
next
— (String
)The next activity in the pipeline.
deviceRegistryEnrich
— (map
)Adds data from the AWS IoT device registry to your message.
name
— required — (String
)The name of the 'deviceRegistryEnrich' activity.
attribute
— required — (String
)The name of the attribute that is added to the message.
thingName
— required — (String
)The name of the IoT device whose registry information is added to the message.
roleArn
— required — (String
)The ARN of the role that allows access to the device's registry information.
next
— (String
)The next activity in the pipeline.
deviceShadowEnrich
— (map
)Adds information from the AWS IoT Device Shadows service to a message.
name
— required — (String
)The name of the 'deviceShadowEnrich' activity.
attribute
— required — (String
)The name of the attribute that is added to the message.
thingName
— required — (String
)The name of the IoT device whose shadow information is added to the message.
roleArn
— required — (String
)The ARN of the role that allows access to the device's shadow.
next
— (String
)The next activity in the pipeline.
tags
— (Array<map>
)Metadata which can be used to manage the pipeline.
key
— required — (String
)The tag's key.
value
— required — (String
)The tag's value.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:pipelineName
— (String
)The name of the pipeline.
pipelineArn
— (String
)The ARN of the pipeline.
-
(AWS.Response)
—
Returns:
deleteChannel(params = {}, callback) ⇒ AWS.Request
Deletes the specified channel.
Service Reference:
Examples:
Calling the deleteChannel operation
var params = {
channelName: 'STRING_VALUE' /* required */
};
iotanalytics.deleteChannel(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: {})
—
channelName
— (String
)The name of the channel to delete.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteDataset(params = {}, callback) ⇒ AWS.Request
Deletes the specified data set.
You do not have to delete the content of the data set before you perform this operation.
Service Reference:
Examples:
Calling the deleteDataset operation
var params = {
datasetName: 'STRING_VALUE' /* required */
};
iotanalytics.deleteDataset(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: {})
—
datasetName
— (String
)The name of the data set to delete.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteDatasetContent(params = {}, callback) ⇒ AWS.Request
Deletes the content of the specified data set.
Service Reference:
Examples:
Calling the deleteDatasetContent operation
var params = {
datasetName: 'STRING_VALUE', /* required */
versionId: 'STRING_VALUE'
};
iotanalytics.deleteDatasetContent(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: {})
—
datasetName
— (String
)The name of the data set whose content is deleted.
versionId
— (String
)The version of the data set whose content is deleted. You can also use the strings "$LATEST" or "$LATEST_SUCCEEDED" to delete the latest or latest successfully completed data set. If not specified, "$LATEST_SUCCEEDED" is the default.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteDatastore(params = {}, callback) ⇒ AWS.Request
Deletes the specified data store.
Service Reference:
Examples:
Calling the deleteDatastore operation
var params = {
datastoreName: 'STRING_VALUE' /* required */
};
iotanalytics.deleteDatastore(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: {})
—
datastoreName
— (String
)The name of the data store to delete.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deletePipeline(params = {}, callback) ⇒ AWS.Request
Deletes the specified pipeline.
Service Reference:
Examples:
Calling the deletePipeline operation
var params = {
pipelineName: 'STRING_VALUE' /* required */
};
iotanalytics.deletePipeline(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: {})
—
pipelineName
— (String
)The name of the pipeline to delete.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
describeChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about a channel.
Service Reference:
Examples:
Calling the describeChannel operation
var params = {
channelName: 'STRING_VALUE', /* required */
includeStatistics: true || false
};
iotanalytics.describeChannel(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: {})
—
channelName
— (String
)The name of the channel whose information is retrieved.
includeStatistics
— (Boolean
)If true, additional statistical information about the channel is included in the response.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:channel
— (map
)An object that contains information about the channel.
name
— (String
)The name of the channel.
arn
— (String
)The ARN of the channel.
status
— (String
)The status of the channel.
Possible values include:"CREATING"
"ACTIVE"
"DELETING"
retentionPeriod
— (map
)How long, in days, message data is kept for the channel.
unlimited
— (Boolean
)If true, message data is kept indefinitely.
numberOfDays
— (Integer
)The number of days that message data is kept. The "unlimited" parameter must be false.
creationTime
— (Date
)When the channel was created.
lastUpdateTime
— (Date
)When the channel was last updated.
statistics
— (map
)Statistics about the channel. Included if the 'includeStatistics' parameter is set to true in the request.
size
— (map
)The estimated size of the channel.
estimatedSizeInBytes
— (Float
)The estimated size of the resource in bytes.
estimatedOn
— (Date
)The time when the estimate of the size of the resource was made.
-
(AWS.Response)
—
Returns:
describeDataset(params = {}, callback) ⇒ AWS.Request
Retrieves information about a data set.
Service Reference:
Examples:
Calling the describeDataset operation
var params = {
datasetName: 'STRING_VALUE' /* required */
};
iotanalytics.describeDataset(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: {})
—
datasetName
— (String
)The name of the data set whose information is retrieved.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:dataset
— (map
)An object that contains information about the data set.
name
— (String
)The name of the data set.
arn
— (String
)The ARN of the data set.
actions
— (Array<map>
)The "DatasetAction" objects that automatically create the data set contents.
actionName
— (String
)The name of the data set action by which data set contents are automatically created.
queryAction
— (map
)An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.
sqlQuery
— required — (String
)A SQL query string.
filters
— (Array<map>
)Pre-filters applied to message data.
deltaTime
— (map
)Used to limit data to that which has arrived since the last execution of the action.
offsetSeconds
— required — (Integer
)The number of seconds of estimated "in flight" lag time of message data. When you create data set contents using message data from a specified time frame, some message data may still be "in flight" when processing begins, and so will not arrive in time to be processed. Use this field to make allowances for the "in flight" time of your message data, so that data not processed from a previous time frame will be included with the next time frame. Without this, missed message data would be excluded from processing during the next time frame as well, because its timestamp places it within the previous time frame.
timeExpression
— required — (String
)An expression by which the time of the message data may be determined. This may be the name of a timestamp field, or a SQL expression which is used to derive the time the message data was generated.
containerAction
— (map
)Information which allows the system to run a containerized application in order to create the data set contents. The application must be in a Docker container along with any needed support libraries.
image
— required — (String
)The ARN of the Docker container stored in your account. The Docker container contains an application and needed support libraries and is used to generate data set contents.
executionRoleArn
— required — (String
)The ARN of the role which gives permission to the system to access needed resources in order to run the "containerAction". This includes, at minimum, permission to retrieve the data set contents which are the input to the containerized application.
resourceConfiguration
— required — (map
)Configuration of the resource which executes the "containerAction".
computeType
— required — (String
)The type of the compute resource used to execute the "containerAction". Possible values are: ACU_1 (vCPU=4, memory=16GiB) or ACU_2 (vCPU=8, memory=32GiB).
Possible values include:"ACU_1"
"ACU_2"
volumeSizeInGB
— required — (Integer
)The size (in GB) of the persistent storage available to the resource instance used to execute the "containerAction" (min: 1, max: 50).
variables
— (Array<map>
)The values of variables used within the context of the execution of the containerized application (basically, parameters passed to the application). Each variable must have a name and a value given by one of "stringValue", "datasetContentVersionValue", or "outputFileUriValue".
name
— required — (String
)The name of the variable.
stringValue
— (String
)The value of the variable as a string.
doubleValue
— (Float
)The value of the variable as a double (numeric).
datasetContentVersionValue
— (map
)The value of the variable as a structure that specifies a data set content version.
datasetName
— required — (String
)The name of the data set whose latest contents are used as input to the notebook or application.
outputFileUriValue
— (map
)The value of the variable as a structure that specifies an output file URI.
fileName
— required — (String
)The URI of the location where data set contents are stored, usually the URI of a file in an S3 bucket.
triggers
— (Array<map>
)The "DatasetTrigger" objects that specify when the data set is automatically updated.
schedule
— (map
)The "Schedule" when the trigger is initiated.
expression
— (String
)The expression that defines when to trigger an update. For more information, see Schedule Expressions for Rules in the Amazon CloudWatch Events User Guide.
dataset
— (map
)The data set whose content creation triggers the creation of this data set's contents.
name
— required — (String
)The name of the data set whose content generation triggers the new data set content generation.
contentDeliveryRules
— (Array<map>
)When data set contents are created they are delivered to destinations specified here.
entryName
— (String
)The name of the data set content delivery rules entry.
destination
— required — (map
)The destination to which data set contents are delivered.
iotEventsDestinationConfiguration
— (map
)Configuration information for delivery of data set contents to AWS IoT Events.
inputName
— required — (String
)The name of the AWS IoT Events input to which data set contents are delivered.
roleArn
— required — (String
)The ARN of the role which grants AWS IoT Analytics permission to deliver data set contents to an AWS IoT Events input.
status
— (String
)The status of the data set.
Possible values include:"CREATING"
"ACTIVE"
"DELETING"
creationTime
— (Date
)When the data set was created.
lastUpdateTime
— (Date
)The last time the data set was updated.
retentionPeriod
— (map
)[Optional] How long, in days, message data is kept for the data set.
unlimited
— (Boolean
)If true, message data is kept indefinitely.
numberOfDays
— (Integer
)The number of days that message data is kept. The "unlimited" parameter must be false.
versioningConfiguration
— (map
)[Optional] How many versions of data set contents are kept. If not specified or set to null, only the latest version plus the latest succeeded version (if they are different) are kept for the time period specified by the "retentionPeriod" parameter. (For more information, see https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions)
unlimited
— (Boolean
)If true, unlimited versions of data set contents will be kept.
maxVersions
— (Integer
)How many versions of data set contents will be kept. The "unlimited" parameter must be false.
-
(AWS.Response)
—
Returns:
describeDatastore(params = {}, callback) ⇒ AWS.Request
Retrieves information about a data store.
Service Reference:
Examples:
Calling the describeDatastore operation
var params = {
datastoreName: 'STRING_VALUE', /* required */
includeStatistics: true || false
};
iotanalytics.describeDatastore(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: {})
—
datastoreName
— (String
)The name of the data store
includeStatistics
— (Boolean
)If true, additional statistical information about the datastore is included in the response.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:datastore
— (map
)Information about the data store.
name
— (String
)The name of the data store.
arn
— (String
)The ARN of the data store.
status
— (String
)The status of a data store:
- CREATING
-
The data store is being created.
- ACTIVE
-
The data store has been created and can be used.
- DELETING
-
The data store is being deleted.
"CREATING"
"ACTIVE"
"DELETING"
retentionPeriod
— (map
)How long, in days, message data is kept for the data store.
unlimited
— (Boolean
)If true, message data is kept indefinitely.
numberOfDays
— (Integer
)The number of days that message data is kept. The "unlimited" parameter must be false.
creationTime
— (Date
)When the data store was created.
lastUpdateTime
— (Date
)The last time the data store was updated.
statistics
— (map
)Additional statistical information about the data store. Included if the 'includeStatistics' parameter is set to true in the request.
size
— (map
)The estimated size of the data store.
estimatedSizeInBytes
— (Float
)The estimated size of the resource in bytes.
estimatedOn
— (Date
)The time when the estimate of the size of the resource was made.
-
(AWS.Response)
—
Returns:
describeLoggingOptions(params = {}, callback) ⇒ AWS.Request
Retrieves the current settings of the AWS IoT Analytics logging options.
Service Reference:
Examples:
Calling the describeLoggingOptions operation
var params = {
};
iotanalytics.describeLoggingOptions(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: {})
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:loggingOptions
— (map
)The current settings of the AWS IoT Analytics logging options.
roleArn
— required — (String
)The ARN of the role that grants permission to AWS IoT Analytics to perform logging.
level
— required — (String
)The logging level. Currently, only "ERROR" is supported.
Possible values include:"ERROR"
enabled
— required — (Boolean
)If true, logging is enabled for AWS IoT Analytics.
-
(AWS.Response)
—
Returns:
describePipeline(params = {}, callback) ⇒ AWS.Request
Retrieves information about a pipeline.
Service Reference:
Examples:
Calling the describePipeline operation
var params = {
pipelineName: 'STRING_VALUE' /* required */
};
iotanalytics.describePipeline(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: {})
—
pipelineName
— (String
)The name of the pipeline whose information is retrieved.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:pipeline
— (map
)A "Pipeline" object that contains information about the pipeline.
name
— (String
)The name of the pipeline.
arn
— (String
)The ARN of the pipeline.
activities
— (Array<map>
)The activities that perform transformations on the messages.
channel
— (map
)Determines the source of the messages to be processed.
name
— required — (String
)The name of the 'channel' activity.
channelName
— required — (String
)The name of the channel from which the messages are processed.
next
— (String
)The next activity in the pipeline.
lambda
— (map
)Runs a Lambda function to modify the message.
name
— required — (String
)The name of the 'lambda' activity.
lambdaName
— required — (String
)The name of the Lambda function that is run on the message.
batchSize
— required — (Integer
)The number of messages passed to the Lambda function for processing.
The AWS Lambda function must be able to process all of these messages within five minutes, which is the maximum timeout duration for Lambda functions.
next
— (String
)The next activity in the pipeline.
datastore
— (map
)Specifies where to store the processed message data.
name
— required — (String
)The name of the 'datastore' activity.
datastoreName
— required — (String
)The name of the data store where processed messages are stored.
addAttributes
— (map
)Adds other attributes based on existing attributes in the message.
name
— required — (String
)The name of the 'addAttributes' activity.
attributes
— required — (map<String>
)A list of 1-50 "AttributeNameMapping" objects that map an existing attribute to a new attribute.
Note: The existing attributes remain in the message, so if you want to remove the originals, use "RemoveAttributeActivity".next
— (String
)The next activity in the pipeline.
removeAttributes
— (map
)Removes attributes from a message.
name
— required — (String
)The name of the 'removeAttributes' activity.
attributes
— required — (Array<String>
)A list of 1-50 attributes to remove from the message.
next
— (String
)The next activity in the pipeline.
selectAttributes
— (map
)Creates a new message using only the specified attributes from the original message.
name
— required — (String
)The name of the 'selectAttributes' activity.
attributes
— required — (Array<String>
)A list of the attributes to select from the message.
next
— (String
)The next activity in the pipeline.
filter
— (map
)Filters a message based on its attributes.
name
— required — (String
)The name of the 'filter' activity.
filter
— required — (String
)An expression that looks like a SQL WHERE clause that must return a Boolean value.
next
— (String
)The next activity in the pipeline.
math
— (map
)Computes an arithmetic expression using the message's attributes and adds it to the message.
name
— required — (String
)The name of the 'math' activity.
attribute
— required — (String
)The name of the attribute that contains the result of the math operation.
math
— required — (String
)An expression that uses one or more existing attributes and must return an integer value.
next
— (String
)The next activity in the pipeline.
deviceRegistryEnrich
— (map
)Adds data from the AWS IoT device registry to your message.
name
— required — (String
)The name of the 'deviceRegistryEnrich' activity.
attribute
— required — (String
)The name of the attribute that is added to the message.
thingName
— required — (String
)The name of the IoT device whose registry information is added to the message.
roleArn
— required — (String
)The ARN of the role that allows access to the device's registry information.
next
— (String
)The next activity in the pipeline.
deviceShadowEnrich
— (map
)Adds information from the AWS IoT Device Shadows service to a message.
name
— required — (String
)The name of the 'deviceShadowEnrich' activity.
attribute
— required — (String
)The name of the attribute that is added to the message.
thingName
— required — (String
)The name of the IoT device whose shadow information is added to the message.
roleArn
— required — (String
)The ARN of the role that allows access to the device's shadow.
next
— (String
)The next activity in the pipeline.
reprocessingSummaries
— (Array<map>
)A summary of information about the pipeline reprocessing.
id
— (String
)The 'reprocessingId' returned by "StartPipelineReprocessing".
status
— (String
)The status of the pipeline reprocessing.
Possible values include:"RUNNING"
"SUCCEEDED"
"CANCELLED"
"FAILED"
creationTime
— (Date
)The time the pipeline reprocessing was created.
creationTime
— (Date
)When the pipeline was created.
lastUpdateTime
— (Date
)The last time the pipeline was updated.
-
(AWS.Response)
—
Returns:
getDatasetContent(params = {}, callback) ⇒ AWS.Request
Retrieves the contents of a data set as pre-signed URIs.
Service Reference:
Examples:
Calling the getDatasetContent operation
var params = {
datasetName: 'STRING_VALUE', /* required */
versionId: 'STRING_VALUE'
};
iotanalytics.getDatasetContent(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: {})
—
datasetName
— (String
)The name of the data set whose contents are retrieved.
versionId
— (String
)The version of the data set whose contents are retrieved. You can also use the strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of the latest or latest successfully completed data set. If not specified, "$LATEST_SUCCEEDED" is the default.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:entries
— (Array<map>
)A list of "DatasetEntry" objects.
entryName
— (String
)The name of the data set item.
dataURI
— (String
)The pre-signed URI of the data set item.
timestamp
— (Date
)The time when the request was made.
status
— (map
)The status of the data set content.
state
— (String
)The state of the data set contents. Can be one of "READY", "CREATING", "SUCCEEDED" or "FAILED".
Possible values include:"CREATING"
"SUCCEEDED"
"FAILED"
reason
— (String
)The reason the data set contents are in this state.
-
(AWS.Response)
—
Returns:
listChannels(params = {}, callback) ⇒ AWS.Request
Retrieves a list of channels.
Service Reference:
Examples:
Calling the listChannels operation
var params = {
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
iotanalytics.listChannels(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: {})
—
nextToken
— (String
)The token for the next set of results.
maxResults
— (Integer
)The maximum number of results to return in this request.
The default value is 100.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:channelSummaries
— (Array<map>
)A list of "ChannelSummary" objects.
channelName
— (String
)The name of the channel.
status
— (String
)The status of the channel.
Possible values include:"CREATING"
"ACTIVE"
"DELETING"
creationTime
— (Date
)When the channel was created.
lastUpdateTime
— (Date
)The last time the channel was updated.
nextToken
— (String
)The token to retrieve the next set of results, or
null
if there are no more results.
-
(AWS.Response)
—
Returns:
listDatasetContents(params = {}, callback) ⇒ AWS.Request
Lists information about data set contents that have been created.
Service Reference:
Examples:
Calling the listDatasetContents operation
var params = {
datasetName: 'STRING_VALUE', /* required */
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE',
scheduledBefore: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
scheduledOnOrAfter: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
iotanalytics.listDatasetContents(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: {})
—
datasetName
— (String
)The name of the data set whose contents information you want to list.
nextToken
— (String
)The token for the next set of results.
maxResults
— (Integer
)The maximum number of results to return in this request.
scheduledOnOrAfter
— (Date
)A filter to limit results to those data set contents whose creation is scheduled on or after the given time. See the field
triggers.schedule
in the CreateDataset request. (timestamp)scheduledBefore
— (Date
)A filter to limit results to those data set contents whose creation is scheduled before the given time. See the field
triggers.schedule
in the CreateDataset request. (timestamp)
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:datasetContentSummaries
— (Array<map>
)Summary information about data set contents that have been created.
version
— (String
)The version of the data set contents.
status
— (map
)The status of the data set contents.
state
— (String
)The state of the data set contents. Can be one of "READY", "CREATING", "SUCCEEDED" or "FAILED".
Possible values include:"CREATING"
"SUCCEEDED"
"FAILED"
reason
— (String
)The reason the data set contents are in this state.
creationTime
— (Date
)The actual time the creation of the data set contents was started.
scheduleTime
— (Date
)The time the creation of the data set contents was scheduled to start.
nextToken
— (String
)The token to retrieve the next set of results, or
null
if there are no more results.
-
(AWS.Response)
—
Returns:
listDatasets(params = {}, callback) ⇒ AWS.Request
Retrieves information about data sets.
Service Reference:
Examples:
Calling the listDatasets operation
var params = {
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
iotanalytics.listDatasets(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: {})
—
nextToken
— (String
)The token for the next set of results.
maxResults
— (Integer
)The maximum number of results to return in this request.
The default value is 100.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:datasetSummaries
— (Array<map>
)A list of "DatasetSummary" objects.
datasetName
— (String
)The name of the data set.
status
— (String
)The status of the data set.
Possible values include:"CREATING"
"ACTIVE"
"DELETING"
creationTime
— (Date
)The time the data set was created.
lastUpdateTime
— (Date
)The last time the data set was updated.
triggers
— (Array<map>
)A list of triggers. A trigger causes data set content to be populated at a specified time interval or when another data set is populated. The list of triggers can be empty or contain up to five DataSetTrigger objects
schedule
— (map
)The "Schedule" when the trigger is initiated.
expression
— (String
)The expression that defines when to trigger an update. For more information, see Schedule Expressions for Rules in the Amazon CloudWatch Events User Guide.
dataset
— (map
)The data set whose content creation triggers the creation of this data set's contents.
name
— required — (String
)The name of the data set whose content generation triggers the new data set content generation.
actions
— (Array<map>
)A list of "DataActionSummary" objects.
actionName
— (String
)The name of the action which automatically creates the data set's contents.
actionType
— (String
)The type of action by which the data set's contents are automatically created.
Possible values include:"QUERY"
"CONTAINER"
nextToken
— (String
)The token to retrieve the next set of results, or
null
if there are no more results.
-
(AWS.Response)
—
Returns:
listDatastores(params = {}, callback) ⇒ AWS.Request
Retrieves a list of data stores.
Service Reference:
Examples:
Calling the listDatastores operation
var params = {
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
iotanalytics.listDatastores(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: {})
—
nextToken
— (String
)The token for the next set of results.
maxResults
— (Integer
)The maximum number of results to return in this request.
The default value is 100.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:datastoreSummaries
— (Array<map>
)A list of "DatastoreSummary" objects.
datastoreName
— (String
)The name of the data store.
status
— (String
)The status of the data store.
Possible values include:"CREATING"
"ACTIVE"
"DELETING"
creationTime
— (Date
)When the data store was created.
lastUpdateTime
— (Date
)The last time the data store was updated.
nextToken
— (String
)The token to retrieve the next set of results, or
null
if there are no more results.
-
(AWS.Response)
—
Returns:
listPipelines(params = {}, callback) ⇒ AWS.Request
Retrieves a list of pipelines.
Service Reference:
Examples:
Calling the listPipelines operation
var params = {
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
iotanalytics.listPipelines(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: {})
—
nextToken
— (String
)The token for the next set of results.
maxResults
— (Integer
)The maximum number of results to return in this request.
The default value is 100.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:pipelineSummaries
— (Array<map>
)A list of "PipelineSummary" objects.
pipelineName
— (String
)The name of the pipeline.
reprocessingSummaries
— (Array<map>
)A summary of information about the pipeline reprocessing.
id
— (String
)The 'reprocessingId' returned by "StartPipelineReprocessing".
status
— (String
)The status of the pipeline reprocessing.
Possible values include:"RUNNING"
"SUCCEEDED"
"CANCELLED"
"FAILED"
creationTime
— (Date
)The time the pipeline reprocessing was created.
creationTime
— (Date
)When the pipeline was created.
lastUpdateTime
— (Date
)When the pipeline was last updated.
nextToken
— (String
)The token to retrieve the next set of results, or
null
if there are no more results.
-
(AWS.Response)
—
Returns:
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Lists the tags (metadata) which you have assigned to the resource.
Service Reference:
Examples:
Calling the listTagsForResource operation
var params = {
resourceArn: 'STRING_VALUE' /* required */
};
iotanalytics.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: {})
—
resourceArn
— (String
)The ARN of the resource whose tags you want to list.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:tags
— (Array<map>
)The tags (metadata) which you have assigned to the resource.
key
— required — (String
)The tag's key.
value
— required — (String
)The tag's value.
-
(AWS.Response)
—
Returns:
putLoggingOptions(params = {}, callback) ⇒ AWS.Request
Sets or updates the AWS IoT Analytics logging options.
Note that if you update the value of any loggingOptions
field, it takes up to one minute for the change to take effect. Also, if you change the policy attached to the role you specified in the roleArn field (for example, to correct an invalid policy) it takes up to 5 minutes for that change to take effect.
Service Reference:
Examples:
Calling the putLoggingOptions operation
var params = {
loggingOptions: { /* required */
enabled: true || false, /* required */
level: ERROR, /* required */
roleArn: 'STRING_VALUE' /* required */
}
};
iotanalytics.putLoggingOptions(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: {})
—
loggingOptions
— (map
)The new values of the AWS IoT Analytics logging options.
roleArn
— required — (String
)The ARN of the role that grants permission to AWS IoT Analytics to perform logging.
level
— required — (String
)The logging level. Currently, only "ERROR" is supported.
Possible values include:"ERROR"
enabled
— required — (Boolean
)If true, logging is enabled for AWS IoT Analytics.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
runPipelineActivity(params = {}, callback) ⇒ AWS.Request
Simulates the results of running a pipeline activity on a message payload.
Service Reference:
Examples:
Calling the runPipelineActivity operation
var params = {
payloads: [ /* required */
new Buffer('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */,
/* more items */
],
pipelineActivity: { /* required */
addAttributes: {
attributes: { /* required */
'<AttributeName>': 'STRING_VALUE',
/* '<AttributeName>': ... */
},
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
channel: {
channelName: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
datastore: {
datastoreName: 'STRING_VALUE', /* required */
name: 'STRING_VALUE' /* required */
},
deviceRegistryEnrich: {
attribute: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
roleArn: 'STRING_VALUE', /* required */
thingName: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
deviceShadowEnrich: {
attribute: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
roleArn: 'STRING_VALUE', /* required */
thingName: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
filter: {
filter: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
lambda: {
batchSize: 'NUMBER_VALUE', /* required */
lambdaName: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
math: {
attribute: 'STRING_VALUE', /* required */
math: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
removeAttributes: {
attributes: [ /* required */
'STRING_VALUE',
/* more items */
],
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
selectAttributes: {
attributes: [ /* required */
'STRING_VALUE',
/* more items */
],
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
}
}
};
iotanalytics.runPipelineActivity(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: {})
—
pipelineActivity
— (map
)The pipeline activity that is run. This must not be a 'channel' activity or a 'datastore' activity because these activities are used in a pipeline only to load the original message and to store the (possibly) transformed message. If a 'lambda' activity is specified, only short-running Lambda functions (those with a timeout of less than 30 seconds or less) can be used.
channel
— (map
)Determines the source of the messages to be processed.
name
— required — (String
)The name of the 'channel' activity.
channelName
— required — (String
)The name of the channel from which the messages are processed.
next
— (String
)The next activity in the pipeline.
lambda
— (map
)Runs a Lambda function to modify the message.
name
— required — (String
)The name of the 'lambda' activity.
lambdaName
— required — (String
)The name of the Lambda function that is run on the message.
batchSize
— required — (Integer
)The number of messages passed to the Lambda function for processing.
The AWS Lambda function must be able to process all of these messages within five minutes, which is the maximum timeout duration for Lambda functions.
next
— (String
)The next activity in the pipeline.
datastore
— (map
)Specifies where to store the processed message data.
name
— required — (String
)The name of the 'datastore' activity.
datastoreName
— required — (String
)The name of the data store where processed messages are stored.
addAttributes
— (map
)Adds other attributes based on existing attributes in the message.
name
— required — (String
)The name of the 'addAttributes' activity.
attributes
— required — (map<String>
)A list of 1-50 "AttributeNameMapping" objects that map an existing attribute to a new attribute.
Note: The existing attributes remain in the message, so if you want to remove the originals, use "RemoveAttributeActivity".next
— (String
)The next activity in the pipeline.
removeAttributes
— (map
)Removes attributes from a message.
name
— required — (String
)The name of the 'removeAttributes' activity.
attributes
— required — (Array<String>
)A list of 1-50 attributes to remove from the message.
next
— (String
)The next activity in the pipeline.
selectAttributes
— (map
)Creates a new message using only the specified attributes from the original message.
name
— required — (String
)The name of the 'selectAttributes' activity.
attributes
— required — (Array<String>
)A list of the attributes to select from the message.
next
— (String
)The next activity in the pipeline.
filter
— (map
)Filters a message based on its attributes.
name
— required — (String
)The name of the 'filter' activity.
filter
— required — (String
)An expression that looks like a SQL WHERE clause that must return a Boolean value.
next
— (String
)The next activity in the pipeline.
math
— (map
)Computes an arithmetic expression using the message's attributes and adds it to the message.
name
— required — (String
)The name of the 'math' activity.
attribute
— required — (String
)The name of the attribute that contains the result of the math operation.
math
— required — (String
)An expression that uses one or more existing attributes and must return an integer value.
next
— (String
)The next activity in the pipeline.
deviceRegistryEnrich
— (map
)Adds data from the AWS IoT device registry to your message.
name
— required — (String
)The name of the 'deviceRegistryEnrich' activity.
attribute
— required — (String
)The name of the attribute that is added to the message.
thingName
— required — (String
)The name of the IoT device whose registry information is added to the message.
roleArn
— required — (String
)The ARN of the role that allows access to the device's registry information.
next
— (String
)The next activity in the pipeline.
deviceShadowEnrich
— (map
)Adds information from the AWS IoT Device Shadows service to a message.
name
— required — (String
)The name of the 'deviceShadowEnrich' activity.
attribute
— required — (String
)The name of the attribute that is added to the message.
thingName
— required — (String
)The name of the IoT device whose shadow information is added to the message.
roleArn
— required — (String
)The ARN of the role that allows access to the device's shadow.
next
— (String
)The next activity in the pipeline.
payloads
— (Array<Buffer, Typed Array, Blob, String>
)The sample message payloads on which the pipeline activity is run.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:payloads
— (Array<Buffer, Typed Array, Blob, String>
)The enriched or transformed sample message payloads as base64-encoded strings. (The results of running the pipeline activity on each input sample message payload, encoded in base64.)
logResult
— (String
)In case the pipeline activity fails, the log message that is generated.
-
(AWS.Response)
—
Returns:
sampleChannelData(params = {}, callback) ⇒ AWS.Request
Retrieves a sample of messages from the specified channel ingested during the specified timeframe. Up to 10 messages can be retrieved.
Service Reference:
Examples:
Calling the sampleChannelData operation
var params = {
channelName: 'STRING_VALUE', /* required */
endTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
maxMessages: 'NUMBER_VALUE',
startTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
iotanalytics.sampleChannelData(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: {})
—
channelName
— (String
)The name of the channel whose message samples are retrieved.
maxMessages
— (Integer
)The number of sample messages to be retrieved. The limit is 10, the default is also 10.
startTime
— (Date
)The start of the time window from which sample messages are retrieved.
endTime
— (Date
)The end of the time window from which sample messages are retrieved.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:payloads
— (Array<Buffer, Typed Array, Blob, String>
)The list of message samples. Each sample message is returned as a base64-encoded string.
-
(AWS.Response)
—
Returns:
startPipelineReprocessing(params = {}, callback) ⇒ AWS.Request
Starts the reprocessing of raw message data through the pipeline.
Service Reference:
Examples:
Calling the startPipelineReprocessing operation
var params = {
pipelineName: 'STRING_VALUE', /* required */
endTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
startTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
iotanalytics.startPipelineReprocessing(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: {})
—
pipelineName
— (String
)The name of the pipeline on which to start reprocessing.
startTime
— (Date
)The start time (inclusive) of raw message data that is reprocessed.
endTime
— (Date
)The end time (exclusive) of raw message data that is reprocessed.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:reprocessingId
— (String
)The ID of the pipeline reprocessing activity that was started.
-
(AWS.Response)
—
Returns:
tagResource(params = {}, callback) ⇒ AWS.Request
Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource.
Service Reference:
Examples:
Calling the tagResource operation
var params = {
resourceArn: 'STRING_VALUE', /* required */
tags: [ /* required */
{
key: 'STRING_VALUE', /* required */
value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
iotanalytics.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 ARN of the resource whose tags you want to modify.
tags
— (Array<map>
)The new or modified tags for the resource.
key
— required — (String
)The tag's key.
value
— required — (String
)The tag's value.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
untagResource(params = {}, callback) ⇒ AWS.Request
Removes the given tags (metadata) from the resource.
Service Reference:
Examples:
Calling the untagResource operation
var params = {
resourceArn: 'STRING_VALUE', /* required */
tagKeys: [ /* required */
'STRING_VALUE',
/* more items */
]
};
iotanalytics.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 ARN of the resource whose tags you want to remove.
tagKeys
— (Array<String>
)The keys of those tags which you want to remove.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateChannel(params = {}, callback) ⇒ AWS.Request
Updates the settings of a channel.
Service Reference:
Examples:
Calling the updateChannel operation
var params = {
channelName: 'STRING_VALUE', /* required */
retentionPeriod: {
numberOfDays: 'NUMBER_VALUE',
unlimited: true || false
}
};
iotanalytics.updateChannel(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: {})
—
channelName
— (String
)The name of the channel to be updated.
retentionPeriod
— (map
)How long, in days, message data is kept for the channel.
unlimited
— (Boolean
)If true, message data is kept indefinitely.
numberOfDays
— (Integer
)The number of days that message data is kept. The "unlimited" parameter must be false.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateDataset(params = {}, callback) ⇒ AWS.Request
Updates the settings of a data set.
Service Reference:
Examples:
Calling the updateDataset operation
var params = {
actions: [ /* required */
{
actionName: 'STRING_VALUE',
containerAction: {
executionRoleArn: 'STRING_VALUE', /* required */
image: 'STRING_VALUE', /* required */
resourceConfiguration: { /* required */
computeType: ACU_1 | ACU_2, /* required */
volumeSizeInGB: 'NUMBER_VALUE' /* required */
},
variables: [
{
name: 'STRING_VALUE', /* required */
datasetContentVersionValue: {
datasetName: 'STRING_VALUE' /* required */
},
doubleValue: 'NUMBER_VALUE',
outputFileUriValue: {
fileName: 'STRING_VALUE' /* required */
},
stringValue: 'STRING_VALUE'
},
/* more items */
]
},
queryAction: {
sqlQuery: 'STRING_VALUE', /* required */
filters: [
{
deltaTime: {
offsetSeconds: 'NUMBER_VALUE', /* required */
timeExpression: 'STRING_VALUE' /* required */
}
},
/* more items */
]
}
},
/* more items */
],
datasetName: 'STRING_VALUE', /* required */
contentDeliveryRules: [
{
destination: { /* required */
iotEventsDestinationConfiguration: {
inputName: 'STRING_VALUE', /* required */
roleArn: 'STRING_VALUE' /* required */
}
},
entryName: 'STRING_VALUE'
},
/* more items */
],
retentionPeriod: {
numberOfDays: 'NUMBER_VALUE',
unlimited: true || false
},
triggers: [
{
dataset: {
name: 'STRING_VALUE' /* required */
},
schedule: {
expression: 'STRING_VALUE'
}
},
/* more items */
],
versioningConfiguration: {
maxVersions: 'NUMBER_VALUE',
unlimited: true || false
}
};
iotanalytics.updateDataset(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: {})
—
datasetName
— (String
)The name of the data set to update.
actions
— (Array<map>
)A list of "DatasetAction" objects.
actionName
— (String
)The name of the data set action by which data set contents are automatically created.
queryAction
— (map
)An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.
sqlQuery
— required — (String
)A SQL query string.
filters
— (Array<map>
)Pre-filters applied to message data.
deltaTime
— (map
)Used to limit data to that which has arrived since the last execution of the action.
offsetSeconds
— required — (Integer
)The number of seconds of estimated "in flight" lag time of message data. When you create data set contents using message data from a specified time frame, some message data may still be "in flight" when processing begins, and so will not arrive in time to be processed. Use this field to make allowances for the "in flight" time of your message data, so that data not processed from a previous time frame will be included with the next time frame. Without this, missed message data would be excluded from processing during the next time frame as well, because its timestamp places it within the previous time frame.
timeExpression
— required — (String
)An expression by which the time of the message data may be determined. This may be the name of a timestamp field, or a SQL expression which is used to derive the time the message data was generated.
containerAction
— (map
)Information which allows the system to run a containerized application in order to create the data set contents. The application must be in a Docker container along with any needed support libraries.
image
— required — (String
)The ARN of the Docker container stored in your account. The Docker container contains an application and needed support libraries and is used to generate data set contents.
executionRoleArn
— required — (String
)The ARN of the role which gives permission to the system to access needed resources in order to run the "containerAction". This includes, at minimum, permission to retrieve the data set contents which are the input to the containerized application.
resourceConfiguration
— required — (map
)Configuration of the resource which executes the "containerAction".
computeType
— required — (String
)The type of the compute resource used to execute the "containerAction". Possible values are: ACU_1 (vCPU=4, memory=16GiB) or ACU_2 (vCPU=8, memory=32GiB).
Possible values include:"ACU_1"
"ACU_2"
volumeSizeInGB
— required — (Integer
)The size (in GB) of the persistent storage available to the resource instance used to execute the "containerAction" (min: 1, max: 50).
variables
— (Array<map>
)The values of variables used within the context of the execution of the containerized application (basically, parameters passed to the application). Each variable must have a name and a value given by one of "stringValue", "datasetContentVersionValue", or "outputFileUriValue".
name
— required — (String
)The name of the variable.
stringValue
— (String
)The value of the variable as a string.
doubleValue
— (Float
)The value of the variable as a double (numeric).
datasetContentVersionValue
— (map
)The value of the variable as a structure that specifies a data set content version.
datasetName
— required — (String
)The name of the data set whose latest contents are used as input to the notebook or application.
outputFileUriValue
— (map
)The value of the variable as a structure that specifies an output file URI.
fileName
— required — (String
)The URI of the location where data set contents are stored, usually the URI of a file in an S3 bucket.
triggers
— (Array<map>
)A list of "DatasetTrigger" objects. The list can be empty or can contain up to five DataSetTrigger objects.
schedule
— (map
)The "Schedule" when the trigger is initiated.
expression
— (String
)The expression that defines when to trigger an update. For more information, see Schedule Expressions for Rules in the Amazon CloudWatch Events User Guide.
dataset
— (map
)The data set whose content creation triggers the creation of this data set's contents.
name
— required — (String
)The name of the data set whose content generation triggers the new data set content generation.
contentDeliveryRules
— (Array<map>
)When data set contents are created they are delivered to destinations specified here.
entryName
— (String
)The name of the data set content delivery rules entry.
destination
— required — (map
)The destination to which data set contents are delivered.
iotEventsDestinationConfiguration
— (map
)Configuration information for delivery of data set contents to AWS IoT Events.
inputName
— required — (String
)The name of the AWS IoT Events input to which data set contents are delivered.
roleArn
— required — (String
)The ARN of the role which grants AWS IoT Analytics permission to deliver data set contents to an AWS IoT Events input.
retentionPeriod
— (map
)How long, in days, data set contents are kept for the data set.
unlimited
— (Boolean
)If true, message data is kept indefinitely.
numberOfDays
— (Integer
)The number of days that message data is kept. The "unlimited" parameter must be false.
versioningConfiguration
— (map
)[Optional] How many versions of data set contents are kept. If not specified or set to null, only the latest version plus the latest succeeded version (if they are different) are kept for the time period specified by the "retentionPeriod" parameter. (For more information, see https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions)
unlimited
— (Boolean
)If true, unlimited versions of data set contents will be kept.
maxVersions
— (Integer
)How many versions of data set contents will be kept. The "unlimited" parameter must be false.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateDatastore(params = {}, callback) ⇒ AWS.Request
Updates the settings of a data store.
Service Reference:
Examples:
Calling the updateDatastore operation
var params = {
datastoreName: 'STRING_VALUE', /* required */
retentionPeriod: {
numberOfDays: 'NUMBER_VALUE',
unlimited: true || false
}
};
iotanalytics.updateDatastore(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: {})
—
datastoreName
— (String
)The name of the data store to be updated.
retentionPeriod
— (map
)How long, in days, message data is kept for the data store.
unlimited
— (Boolean
)If true, message data is kept indefinitely.
numberOfDays
— (Integer
)The number of days that message data is kept. The "unlimited" parameter must be false.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updatePipeline(params = {}, callback) ⇒ AWS.Request
Updates the settings of a pipeline. You must specify both a channel
and a datastore
activity and, optionally, as many as 23 additional activities in the pipelineActivities
array.
Service Reference:
Examples:
Calling the updatePipeline operation
var params = {
pipelineActivities: [ /* required */
{
addAttributes: {
attributes: { /* required */
'<AttributeName>': 'STRING_VALUE',
/* '<AttributeName>': ... */
},
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
channel: {
channelName: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
datastore: {
datastoreName: 'STRING_VALUE', /* required */
name: 'STRING_VALUE' /* required */
},
deviceRegistryEnrich: {
attribute: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
roleArn: 'STRING_VALUE', /* required */
thingName: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
deviceShadowEnrich: {
attribute: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
roleArn: 'STRING_VALUE', /* required */
thingName: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
filter: {
filter: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
lambda: {
batchSize: 'NUMBER_VALUE', /* required */
lambdaName: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
math: {
attribute: 'STRING_VALUE', /* required */
math: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
removeAttributes: {
attributes: [ /* required */
'STRING_VALUE',
/* more items */
],
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
},
selectAttributes: {
attributes: [ /* required */
'STRING_VALUE',
/* more items */
],
name: 'STRING_VALUE', /* required */
next: 'STRING_VALUE'
}
},
/* more items */
],
pipelineName: 'STRING_VALUE' /* required */
};
iotanalytics.updatePipeline(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: {})
—
pipelineName
— (String
)The name of the pipeline to update.
pipelineActivities
— (Array<map>
)A list of "PipelineActivity" objects. Activities perform transformations on your messages, such as removing, renaming or adding message attributes; filtering messages based on attribute values; invoking your Lambda functions on messages for advanced processing; or performing mathematical transformations to normalize device data.
The list can be 2-25 PipelineActivity objects and must contain both a
channel
and adatastore
activity. Each entry in the list must contain only one activity, for example:pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]
channel
— (map
)Determines the source of the messages to be processed.
name
— required — (String
)The name of the 'channel' activity.
channelName
— required — (String
)The name of the channel from which the messages are processed.
next
— (String
)The next activity in the pipeline.
lambda
— (map
)Runs a Lambda function to modify the message.
name
— required — (String
)The name of the 'lambda' activity.
lambdaName
— required — (String
)The name of the Lambda function that is run on the message.
batchSize
— required — (Integer
)The number of messages passed to the Lambda function for processing.
The AWS Lambda function must be able to process all of these messages within five minutes, which is the maximum timeout duration for Lambda functions.
next
— (String
)The next activity in the pipeline.
datastore
— (map
)Specifies where to store the processed message data.
name
— required — (String
)The name of the 'datastore' activity.
datastoreName
— required — (String
)The name of the data store where processed messages are stored.
addAttributes
— (map
)Adds other attributes based on existing attributes in the message.
name
— required — (String
)The name of the 'addAttributes' activity.
attributes
— required — (map<String>
)A list of 1-50 "AttributeNameMapping" objects that map an existing attribute to a new attribute.
Note: The existing attributes remain in the message, so if you want to remove the originals, use "RemoveAttributeActivity".next
— (String
)The next activity in the pipeline.
removeAttributes
— (map
)Removes attributes from a message.
name
— required — (String
)The name of the 'removeAttributes' activity.
attributes
— required — (Array<String>
)A list of 1-50 attributes to remove from the message.
next
— (String
)The next activity in the pipeline.
selectAttributes
— (map
)Creates a new message using only the specified attributes from the original message.
name
— required — (String
)The name of the 'selectAttributes' activity.
attributes
— required — (Array<String>
)A list of the attributes to select from the message.
next
— (String
)The next activity in the pipeline.
filter
— (map
)Filters a message based on its attributes.
name
— required — (String
)The name of the 'filter' activity.
filter
— required — (String
)An expression that looks like a SQL WHERE clause that must return a Boolean value.
next
— (String
)The next activity in the pipeline.
math
— (map
)Computes an arithmetic expression using the message's attributes and adds it to the message.
name
— required — (String
)The name of the 'math' activity.
attribute
— required — (String
)The name of the attribute that contains the result of the math operation.
math
— required — (String
)An expression that uses one or more existing attributes and must return an integer value.
next
— (String
)The next activity in the pipeline.
deviceRegistryEnrich
— (map
)Adds data from the AWS IoT device registry to your message.
name
— required — (String
)The name of the 'deviceRegistryEnrich' activity.
attribute
— required — (String
)The name of the attribute that is added to the message.
thingName
— required — (String
)The name of the IoT device whose registry information is added to the message.
roleArn
— required — (String
)The ARN of the role that allows access to the device's registry information.
next
— (String
)The next activity in the pipeline.
deviceShadowEnrich
— (map
)Adds information from the AWS IoT Device Shadows service to a message.
name
— required — (String
)The name of the 'deviceShadowEnrich' activity.
attribute
— required — (String
)The name of the attribute that is added to the message.
thingName
— required — (String
)The name of the IoT device whose shadow information is added to the message.
roleArn
— required — (String
)The ARN of the role that allows access to the device's shadow.
next
— (String
)The next activity in the pipeline.
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
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns: