Aws Iot Analytics API
Aws Iot Analytics API
Amazon's trademarks and trade dress may not be used in connection with any product or service that is not
Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or
discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may
or may not be affiliated with, connected to, or sponsored by Amazon.
AWS IoT Analytics AWS IoT Analytics Documentation
Table of Contents
Welcome ........................................................................................................................................... 1
Actions ............................................................................................................................................. 2
BatchPutMessage ....................................................................................................................... 3
Request Syntax .................................................................................................................. 3
URI Request Parameters ...................................................................................................... 3
Request Body .................................................................................................................... 3
Response Syntax ................................................................................................................ 4
Response Elements ............................................................................................................. 4
Errors ............................................................................................................................... 4
See Also ............................................................................................................................ 5
CancelPipelineReprocessing ......................................................................................................... 6
Request Syntax .................................................................................................................. 6
URI Request Parameters ...................................................................................................... 6
Request Body .................................................................................................................... 6
Response Syntax ................................................................................................................ 6
Response Elements ............................................................................................................. 6
Errors ............................................................................................................................... 6
See Also ............................................................................................................................ 7
CreateChannel ........................................................................................................................... 8
Request Syntax .................................................................................................................. 8
URI Request Parameters ...................................................................................................... 8
Request Body .................................................................................................................... 8
Response Syntax ................................................................................................................ 9
Response Elements ............................................................................................................. 9
Errors .............................................................................................................................. 10
See Also .......................................................................................................................... 10
CreateDataset .......................................................................................................................... 11
Request Syntax ................................................................................................................ 11
URI Request Parameters .................................................................................................... 12
Request Body ................................................................................................................... 12
Response Syntax .............................................................................................................. 13
Response Elements ........................................................................................................... 14
Errors .............................................................................................................................. 14
See Also .......................................................................................................................... 15
CreateDatasetContent ............................................................................................................... 16
Request Syntax ................................................................................................................ 16
URI Request Parameters .................................................................................................... 16
Request Body ................................................................................................................... 16
Response Syntax .............................................................................................................. 16
Response Elements ........................................................................................................... 16
Errors .............................................................................................................................. 16
See Also .......................................................................................................................... 17
CreateDatastore ....................................................................................................................... 18
Request Syntax ................................................................................................................ 18
URI Request Parameters .................................................................................................... 18
Request Body ................................................................................................................... 18
Response Syntax .............................................................................................................. 19
Response Elements ........................................................................................................... 19
Errors .............................................................................................................................. 20
See Also .......................................................................................................................... 20
CreatePipeline .......................................................................................................................... 21
Request Syntax ................................................................................................................ 21
URI Request Parameters .................................................................................................... 22
Request Body ................................................................................................................... 22
Errors .............................................................................................................................. 58
See Also .......................................................................................................................... 58
ListDatastores .......................................................................................................................... 60
Request Syntax ................................................................................................................ 60
URI Request Parameters .................................................................................................... 60
Request Body ................................................................................................................... 60
Response Syntax .............................................................................................................. 60
Response Elements ........................................................................................................... 60
Errors .............................................................................................................................. 61
See Also .......................................................................................................................... 61
ListPipelines ............................................................................................................................. 62
Request Syntax ................................................................................................................ 62
URI Request Parameters .................................................................................................... 62
Request Body ................................................................................................................... 62
Response Syntax .............................................................................................................. 62
Response Elements ........................................................................................................... 62
Errors .............................................................................................................................. 63
See Also .......................................................................................................................... 63
ListTagsForResource .................................................................................................................. 64
Request Syntax ................................................................................................................ 64
URI Request Parameters .................................................................................................... 64
Request Body ................................................................................................................... 64
Response Syntax .............................................................................................................. 64
Response Elements ........................................................................................................... 64
Errors .............................................................................................................................. 64
See Also .......................................................................................................................... 65
PutLoggingOptions ................................................................................................................... 66
Request Syntax ................................................................................................................ 66
URI Request Parameters .................................................................................................... 66
Request Body ................................................................................................................... 66
Response Syntax .............................................................................................................. 66
Response Elements ........................................................................................................... 66
Errors .............................................................................................................................. 66
See Also .......................................................................................................................... 67
RunPipelineActivity ................................................................................................................... 68
Request Syntax ................................................................................................................ 68
URI Request Parameters .................................................................................................... 69
Request Body ................................................................................................................... 69
Response Syntax .............................................................................................................. 69
Response Elements ........................................................................................................... 69
Errors .............................................................................................................................. 70
See Also .......................................................................................................................... 70
SampleChannelData .................................................................................................................. 71
Request Syntax ................................................................................................................ 71
URI Request Parameters .................................................................................................... 71
Request Body ................................................................................................................... 71
Response Syntax .............................................................................................................. 71
Response Elements ........................................................................................................... 71
Errors .............................................................................................................................. 72
See Also .......................................................................................................................... 72
StartPipelineReprocessing .......................................................................................................... 73
Request Syntax ................................................................................................................ 73
URI Request Parameters .................................................................................................... 73
Request Body ................................................................................................................... 73
Response Syntax .............................................................................................................. 73
Response Elements ........................................................................................................... 74
Errors .............................................................................................................................. 74
Contents ......................................................................................................................... 97
See Also .......................................................................................................................... 98
ChannelActivity ........................................................................................................................ 99
Contents ......................................................................................................................... 99
See Also .......................................................................................................................... 99
ChannelStatistics .................................................................................................................... 100
Contents ........................................................................................................................ 100
See Also ........................................................................................................................ 100
ChannelStorage ...................................................................................................................... 101
Contents ........................................................................................................................ 101
See Also ........................................................................................................................ 101
ChannelStorageSummary ........................................................................................................ 102
Contents ........................................................................................................................ 102
See Also ........................................................................................................................ 102
ChannelSummary ................................................................................................................... 103
Contents ........................................................................................................................ 103
See Also ........................................................................................................................ 103
ContainerDatasetAction ........................................................................................................... 105
Contents ........................................................................................................................ 105
See Also ........................................................................................................................ 105
CustomerManagedChannelS3Storage ........................................................................................ 107
Contents ........................................................................................................................ 107
See Also ........................................................................................................................ 107
CustomerManagedChannelS3StorageSummary ........................................................................... 108
Contents ........................................................................................................................ 108
See Also ........................................................................................................................ 108
CustomerManagedDatastoreS3Storage ...................................................................................... 109
Contents ........................................................................................................................ 109
See Also ........................................................................................................................ 109
CustomerManagedDatastoreS3StorageSummary ......................................................................... 110
Contents ........................................................................................................................ 110
See Also ........................................................................................................................ 110
Dataset ................................................................................................................................. 111
Contents ........................................................................................................................ 111
See Also ........................................................................................................................ 112
DatasetAction ......................................................................................................................... 113
Contents ........................................................................................................................ 113
See Also ........................................................................................................................ 113
DatasetActionSummary ........................................................................................................... 114
Contents ........................................................................................................................ 114
See Also ........................................................................................................................ 114
DatasetContentDeliveryDestination ........................................................................................... 115
Contents ........................................................................................................................ 115
See Also ........................................................................................................................ 115
DatasetContentDeliveryRule ..................................................................................................... 116
Contents ........................................................................................................................ 116
See Also ........................................................................................................................ 116
DatasetContentStatus ............................................................................................................. 117
Contents ........................................................................................................................ 117
See Also ........................................................................................................................ 117
DatasetContentSummary ......................................................................................................... 118
Contents ........................................................................................................................ 118
See Also ........................................................................................................................ 118
DatasetContentVersionValue .................................................................................................... 119
Contents ........................................................................................................................ 119
See Also ........................................................................................................................ 119
DatasetEntry .......................................................................................................................... 120
Welcome
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.
Actions
The following actions are supported:
• BatchPutMessage (p. 3)
• CancelPipelineReprocessing (p. 6)
• CreateChannel (p. 8)
• CreateDataset (p. 11)
• CreateDatasetContent (p. 16)
• CreateDatastore (p. 18)
• CreatePipeline (p. 21)
• DeleteChannel (p. 25)
• DeleteDataset (p. 27)
• DeleteDatasetContent (p. 29)
• DeleteDatastore (p. 31)
• DeletePipeline (p. 33)
• DescribeChannel (p. 35)
• DescribeDataset (p. 38)
• DescribeDatastore (p. 41)
• DescribeLoggingOptions (p. 44)
• DescribePipeline (p. 46)
• GetDatasetContent (p. 49)
• ListChannels (p. 52)
• ListDatasetContents (p. 54)
• ListDatasets (p. 57)
• ListDatastores (p. 60)
• ListPipelines (p. 62)
• ListTagsForResource (p. 64)
• PutLoggingOptions (p. 66)
• RunPipelineActivity (p. 68)
• SampleChannelData (p. 71)
• StartPipelineReprocessing (p. 73)
• TagResource (p. 76)
• UntagResource (p. 78)
• UpdateChannel (p. 80)
• UpdateDataset (p. 83)
• UpdateDatastore (p. 87)
• UpdatePipeline (p. 90)
BatchPutMessage
Sends messages to a channel.
Request Syntax
POST /messages/batch HTTP/1.1
Content-type: application/json
{
"channelName": "string",
"messages": [
{
"messageId": "string",
"payload": blob
}
]
}
Request Body
The request accepts the following data in JSON format.
channelName (p. 3)
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: Yes
messages (p. 3)
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_]([A-Za-z0-9]*|[A-Za-z0-9][A-Za-z0-9_]*)$".
• Cannot be greater than 255 characters.
• Are case-insensitive. (Fields named "foo" and "FOO" in the same payload are considered
duplicates.)
For example, {"temp_01": 29} or {"_temp_01": 29} are valid, but {"temp-01": 29}, {"01_temp": 29} or
{"__temp_01": 29} are invalid in message payloads.
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"batchPutMessageErrorEntries": [
{
"errorCode": "string",
"errorMessage": "string",
"messageId": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
batchPutMessageErrorEntries (p. 4)
A list of any errors encountered when sending the messages to the channel.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
CancelPipelineReprocessing
Cancels the reprocessing of data through the pipeline.
Request Syntax
DELETE /pipelines/pipelineName/reprocessing/reprocessingId HTTP/1.1
pipelineName (p. 6)
Pattern: ^[a-zA-Z0-9_]+$
reprocessingId (p. 6)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
CreateChannel
Creates a channel. A channel collects data from an MQTT topic and archives the raw, unprocessed
messages before publishing the data to a pipeline.
Request Syntax
POST /channels HTTP/1.1
Content-type: application/json
{
"channelName": "string",
"channelStorage": {
"customerManagedS3": {
"bucket": "string",
"keyPrefix": "string",
"roleArn": "string"
},
"serviceManagedS3": {
}
},
"retentionPeriod": {
"numberOfDays": number,
"unlimited": boolean
},
"tags": [
{
"key": "string",
"value": "string"
}
]
}
Request Body
The request accepts the following data in JSON format.
channelName (p. 8)
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: Yes
channelStorage (p. 8)
Where channel data is stored. You may choose one of "serviceManagedS3" or "customerManagedS3"
storage. If not specified, the default is "serviceManagedS3". This cannot be changed after creation of
the channel.
Required: No
retentionPeriod (p. 8)
How long, in days, message data is kept for the channel. When "customerManagedS3" storage is
selected, this parameter is ignored.
Required: No
tags (p. 8)
Required: No
Response Syntax
HTTP/1.1 201
Content-type: application/json
{
"channelArn": "string",
"channelName": "string",
"retentionPeriod": {
"numberOfDays": number,
"unlimited": boolean
}
}
Response Elements
If the action is successful, the service sends back an HTTP 201 response.
channelArn (p. 9)
Type: String
channelName (p. 9)
Type: String
Pattern: ^[a-zA-Z0-9_]+$
retentionPeriod (p. 9)
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
CreateDataset
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.
Request Syntax
POST /datasets HTTP/1.1
Content-type: application/json
{
"actions": [
{
"actionName": "string",
"containerAction": {
"executionRoleArn": "string",
"image": "string",
"resourceConfiguration": {
"computeType": "string",
"volumeSizeInGB": number
},
"variables": [
{
"datasetContentVersionValue": {
"datasetName": "string"
},
"doubleValue": number,
"name": "string",
"outputFileUriValue": {
"fileName": "string"
},
"stringValue": "string"
}
]
},
"queryAction": {
"filters": [
{
"deltaTime": {
"offsetSeconds": number,
"timeExpression": "string"
}
}
],
"sqlQuery": "string"
}
}
],
"contentDeliveryRules": [
{
"destination": {
"iotEventsDestinationConfiguration": {
"inputName": "string",
"roleArn": "string"
},
"s3DestinationConfiguration": {
"bucket": "string",
"glueConfiguration": {
"databaseName": "string",
"tableName": "string"
},
"key": "string",
"roleArn": "string"
}
},
"entryName": "string"
}
],
"datasetName": "string",
"retentionPeriod": {
"numberOfDays": number,
"unlimited": boolean
},
"tags": [
{
"key": "string",
"value": "string"
}
],
"triggers": [
{
"dataset": {
"name": "string"
},
"schedule": {
"expression": "string"
}
}
],
"versioningConfiguration": {
"maxVersions": number,
"unlimited": boolean
}
}
Request Body
The request accepts the following data in JSON format.
Required: Yes
contentDeliveryRules (p. 11)
When data set contents are created they are delivered to destinations specified here.
Required: No
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: Yes
retentionPeriod (p. 11)
[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)
Required: No
tags (p. 11)
Required: No
triggers (p. 11)
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.
Required: No
versioningConfiguration (p. 11)
[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)
Required: No
Response Syntax
HTTP/1.1 201
Content-type: application/json
{
"datasetArn": "string",
"datasetName": "string",
"retentionPeriod": {
"numberOfDays": number,
"unlimited": boolean
}
}
Response Elements
If the action is successful, the service sends back an HTTP 201 response.
Type: String
datasetName (p. 13)
Type: String
Pattern: ^[a-zA-Z0-9_]+$
retentionPeriod (p. 13)
How long, in days, data set contents are kept for the data set.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
CreateDatasetContent
Creates the content of a data set by applying a "queryAction" (a SQL query) or a
"containerAction" (executing a containerized application).
Request Syntax
POST /datasets/datasetName/content HTTP/1.1
Pattern: ^[a-zA-Z0-9_]+$
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"versionId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The version ID of the data set contents which are being created.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
CreateDatastore
Creates a data store, which is a repository for messages.
Request Syntax
POST /datastores HTTP/1.1
Content-type: application/json
{
"datastoreName": "string",
"datastoreStorage": {
"customerManagedS3": {
"bucket": "string",
"keyPrefix": "string",
"roleArn": "string"
},
"serviceManagedS3": {
}
},
"retentionPeriod": {
"numberOfDays": number,
"unlimited": boolean
},
"tags": [
{
"key": "string",
"value": "string"
}
]
}
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: Yes
datastoreStorage (p. 18)
Where data store data is stored. You may choose one of "serviceManagedS3" or
"customerManagedS3" storage. If not specified, the default is "serviceManagedS3". This cannot be
changed after the data store is created.
Required: No
retentionPeriod (p. 18)
How long, in days, message data is kept for the data store. When "customerManagedS3" storage is
selected, this parameter is ignored.
Required: No
tags (p. 18)
Required: No
Response Syntax
HTTP/1.1 201
Content-type: application/json
{
"datastoreArn": "string",
"datastoreName": "string",
"retentionPeriod": {
"numberOfDays": number,
"unlimited": boolean
}
}
Response Elements
If the action is successful, the service sends back an HTTP 201 response.
Type: String
datastoreName (p. 19)
Type: String
Pattern: ^[a-zA-Z0-9_]+$
retentionPeriod (p. 19)
How long, in days, message data is kept for the data store.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
CreatePipeline
Creates a pipeline. A pipeline consumes messages from a channel 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.
Request Syntax
POST /pipelines HTTP/1.1
Content-type: application/json
{
"pipelineActivities": [
{
"addAttributes": {
"attributes": {
"string" : "string"
},
"name": "string",
"next": "string"
},
"channel": {
"channelName": "string",
"name": "string",
"next": "string"
},
"datastore": {
"datastoreName": "string",
"name": "string"
},
"deviceRegistryEnrich": {
"attribute": "string",
"name": "string",
"next": "string",
"roleArn": "string",
"thingName": "string"
},
"deviceShadowEnrich": {
"attribute": "string",
"name": "string",
"next": "string",
"roleArn": "string",
"thingName": "string"
},
"filter": {
"filter": "string",
"name": "string",
"next": "string"
},
"lambda": {
"batchSize": number,
"lambdaName": "string",
"name": "string",
"next": "string"
},
"math": {
"attribute": "string",
"math": "string",
"name": "string",
"next": "string"
},
"removeAttributes": {
"attributes": [ "string" ],
"name": "string",
"next": "string"
},
"selectAttributes": {
"attributes": [ "string" ],
"name": "string",
"next": "string"
}
}
],
"pipelineName": "string",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
Request Body
The request accepts the following data in JSON format.
The list can be 2-25 PipelineActivity objects and must contain both a channel and a datastore
activity. Each entry in the list must contain only one activity, for example:
Required: Yes
pipelineName (p. 21)
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: Yes
tags (p. 21)
Required: No
Response Syntax
HTTP/1.1 201
Content-type: application/json
{
"pipelineArn": "string",
"pipelineName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 201 response.
Type: String
pipelineName (p. 23)
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
ResourceAlreadyExistsException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DeleteChannel
Deletes the specified channel.
Request Syntax
DELETE /channels/channelName HTTP/1.1
Pattern: ^[a-zA-Z0-9_]+$
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
ServiceUnavailableException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DeleteDataset
Deletes the specified data set.
You do not have to delete the content of the data set before you perform this operation.
Request Syntax
DELETE /datasets/datasetName HTTP/1.1
Pattern: ^[a-zA-Z0-9_]+$
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DeleteDatasetContent
Deletes the content of the specified data set.
Request Syntax
DELETE /datasets/datasetName/content?versionId=versionId HTTP/1.1
Pattern: ^[a-zA-Z0-9_]+$
versionId (p. 29)
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.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DeleteDatastore
Deletes the specified data store.
Request Syntax
DELETE /datastores/datastoreName HTTP/1.1
Pattern: ^[a-zA-Z0-9_]+$
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
ServiceUnavailableException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DeletePipeline
Deletes the specified pipeline.
Request Syntax
DELETE /pipelines/pipelineName HTTP/1.1
Pattern: ^[a-zA-Z0-9_]+$
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
ServiceUnavailableException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DescribeChannel
Retrieves information about a channel.
Request Syntax
GET /channels/channelName?includeStatistics=includeStatistics HTTP/1.1
Pattern: ^[a-zA-Z0-9_]+$
includeStatistics (p. 35)
If true, additional statistical information about the channel is included in the response. This feature
cannot be used with a channel whose S3 storage is customer-managed.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"channel": {
"arn": "string",
"creationTime": number,
"lastUpdateTime": number,
"name": "string",
"retentionPeriod": {
"numberOfDays": number,
"unlimited": boolean
},
"status": "string",
"storage": {
"customerManagedS3": {
"bucket": "string",
"keyPrefix": "string",
"roleArn": "string"
},
"serviceManagedS3": {
}
}
},
"statistics": {
"size": {
"estimatedOn": number,
"estimatedSizeInBytes": number
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Statistics about the channel. Included if the 'includeStatistics' parameter is set to true in the request.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DescribeDataset
Retrieves information about a data set.
Request Syntax
GET /datasets/datasetName HTTP/1.1
Pattern: ^[a-zA-Z0-9_]+$
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"dataset": {
"actions": [
{
"actionName": "string",
"containerAction": {
"executionRoleArn": "string",
"image": "string",
"resourceConfiguration": {
"computeType": "string",
"volumeSizeInGB": number
},
"variables": [
{
"datasetContentVersionValue": {
"datasetName": "string"
},
"doubleValue": number,
"name": "string",
"outputFileUriValue": {
"fileName": "string"
},
"stringValue": "string"
}
]
},
"queryAction": {
"filters": [
{
"deltaTime": {
"offsetSeconds": number,
"timeExpression": "string"
}
}
],
"sqlQuery": "string"
}
}
],
"arn": "string",
"contentDeliveryRules": [
{
"destination": {
"iotEventsDestinationConfiguration": {
"inputName": "string",
"roleArn": "string"
},
"s3DestinationConfiguration": {
"bucket": "string",
"glueConfiguration": {
"databaseName": "string",
"tableName": "string"
},
"key": "string",
"roleArn": "string"
}
},
"entryName": "string"
}
],
"creationTime": number,
"lastUpdateTime": number,
"name": "string",
"retentionPeriod": {
"numberOfDays": number,
"unlimited": boolean
},
"status": "string",
"triggers": [
{
"dataset": {
"name": "string"
},
"schedule": {
"expression": "string"
}
}
],
"versioningConfiguration": {
"maxVersions": number,
"unlimited": boolean
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DescribeDatastore
Retrieves information about a data store.
Request Syntax
GET /datastores/datastoreName?includeStatistics=includeStatistics HTTP/1.1
Pattern: ^[a-zA-Z0-9_]+$
includeStatistics (p. 41)
If true, additional statistical information about the data store is included in the response. This
feature cannot be used with a data store whose S3 storage is customer-managed.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"datastore": {
"arn": "string",
"creationTime": number,
"lastUpdateTime": number,
"name": "string",
"retentionPeriod": {
"numberOfDays": number,
"unlimited": boolean
},
"status": "string",
"storage": {
"customerManagedS3": {
"bucket": "string",
"keyPrefix": "string",
"roleArn": "string"
},
"serviceManagedS3": {
}
}
},
"statistics": {
"size": {
"estimatedOn": number,
"estimatedSizeInBytes": number
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Additional statistical information about the data store. Included if the 'includeStatistics' parameter is
set to true in the request.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DescribeLoggingOptions
Retrieves the current settings of the AWS IoT Analytics logging options.
Request Syntax
GET /logging HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"loggingOptions": {
"enabled": boolean,
"level": "string",
"roleArn": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DescribePipeline
Retrieves information about a pipeline.
Request Syntax
GET /pipelines/pipelineName HTTP/1.1
Pattern: ^[a-zA-Z0-9_]+$
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"pipeline": {
"activities": [
{
"addAttributes": {
"attributes": {
"string" : "string"
},
"name": "string",
"next": "string"
},
"channel": {
"channelName": "string",
"name": "string",
"next": "string"
},
"datastore": {
"datastoreName": "string",
"name": "string"
},
"deviceRegistryEnrich": {
"attribute": "string",
"name": "string",
"next": "string",
"roleArn": "string",
"thingName": "string"
},
"deviceShadowEnrich": {
"attribute": "string",
"name": "string",
"next": "string",
"roleArn": "string",
"thingName": "string"
},
"filter": {
"filter": "string",
"name": "string",
"next": "string"
},
"lambda": {
"batchSize": number,
"lambdaName": "string",
"name": "string",
"next": "string"
},
"math": {
"attribute": "string",
"math": "string",
"name": "string",
"next": "string"
},
"removeAttributes": {
"attributes": [ "string" ],
"name": "string",
"next": "string"
},
"selectAttributes": {
"attributes": [ "string" ],
"name": "string",
"next": "string"
}
}
],
"arn": "string",
"creationTime": number,
"lastUpdateTime": number,
"name": "string",
"reprocessingSummaries": [
{
"creationTime": number,
"id": "string",
"status": "string"
}
]
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
GetDatasetContent
Retrieves the contents of a data set as pre-signed URIs.
Request Syntax
GET /datasets/datasetName/content?versionId=versionId HTTP/1.1
Pattern: ^[a-zA-Z0-9_]+$
versionId (p. 49)
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.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"entries": [
{
"dataURI": "string",
"entryName": "string"
}
],
"status": {
"reason": "string",
"state": "string"
},
"timestamp": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ListChannels
Retrieves a list of channels.
Request Syntax
GET /channels?maxResults=maxResults&nextToken=nextToken HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"channelSummaries": [
{
"channelName": "string",
"channelStorage": {
"customerManagedS3": {
"bucket": "string",
"keyPrefix": "string",
"roleArn": "string"
},
"serviceManagedS3": {
}
},
"creationTime": number,
"lastUpdateTime": number,
"status": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token to retrieve the next set of results, or null if there are no more results.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ListDatasetContents
Lists information about data set contents that have been created.
Request Syntax
GET /datasets/datasetName/contents?
maxResults=maxResults&nextToken=nextToken&scheduledBefore=scheduledBefore&scheduledOnOrAfter=scheduledO
HTTP/1.1
The name of the data set whose contents information you want to list.
Pattern: ^[a-zA-Z0-9_]+$
maxResults (p. 54)
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)
scheduledOnOrAfter (p. 54)
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)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"datasetContentSummaries": [
{
"creationTime": number,
"scheduleTime": number,
"status": {
"reason": "string",
"state": "string"
},
"version": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Summary information about data set contents that have been created.
The token to retrieve the next set of results, or null if there are no more results.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ListDatasets
Retrieves information about data sets.
Request Syntax
GET /datasets?maxResults=maxResults&nextToken=nextToken HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"datasetSummaries": [
{
"actions": [
{
"actionName": "string",
"actionType": "string"
}
],
"creationTime": number,
"datasetName": "string",
"lastUpdateTime": number,
"status": "string",
"triggers": [
{
"dataset": {
"name": "string"
},
"schedule": {
"expression": "string"
}
}
]
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token to retrieve the next set of results, or null if there are no more results.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ListDatastores
Retrieves a list of data stores.
Request Syntax
GET /datastores?maxResults=maxResults&nextToken=nextToken HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"datastoreSummaries": [
{
"creationTime": number,
"datastoreName": "string",
"datastoreStorage": {
"customerManagedS3": {
"bucket": "string",
"keyPrefix": "string",
"roleArn": "string"
},
"serviceManagedS3": {
}
},
"lastUpdateTime": number,
"status": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token to retrieve the next set of results, or null if there are no more results.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ListPipelines
Retrieves a list of pipelines.
Request Syntax
GET /pipelines?maxResults=maxResults&nextToken=nextToken HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"pipelineSummaries": [
{
"creationTime": number,
"lastUpdateTime": number,
"pipelineName": "string",
"reprocessingSummaries": [
{
"creationTime": number,
"id": "string",
"status": "string"
}
]
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token to retrieve the next set of results, or null if there are no more results.
Type: String
pipelineSummaries (p. 62)
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ListTagsForResource
Lists the tags (metadata) which you have assigned to the resource.
Request Syntax
GET /tags?resourceArn=resourceArn HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"tags": [
{
"key": "string",
"value": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
PutLoggingOptions
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.
Request Syntax
PUT /logging HTTP/1.1
Content-type: application/json
{
"loggingOptions": {
"enabled": boolean,
"level": "string",
"roleArn": "string"
}
}
Request Body
The request accepts the following data in JSON format.
Required: Yes
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
RunPipelineActivity
Simulates the results of running a pipeline activity on a message payload.
Request Syntax
POST /pipelineactivities/run HTTP/1.1
Content-type: application/json
{
"payloads": [ blob ],
"pipelineActivity": {
"addAttributes": {
"attributes": {
"string" : "string"
},
"name": "string",
"next": "string"
},
"channel": {
"channelName": "string",
"name": "string",
"next": "string"
},
"datastore": {
"datastoreName": "string",
"name": "string"
},
"deviceRegistryEnrich": {
"attribute": "string",
"name": "string",
"next": "string",
"roleArn": "string",
"thingName": "string"
},
"deviceShadowEnrich": {
"attribute": "string",
"name": "string",
"next": "string",
"roleArn": "string",
"thingName": "string"
},
"filter": {
"filter": "string",
"name": "string",
"next": "string"
},
"lambda": {
"batchSize": number,
"lambdaName": "string",
"name": "string",
"next": "string"
},
"math": {
"attribute": "string",
"math": "string",
"name": "string",
"next": "string"
},
"removeAttributes": {
"attributes": [ "string" ],
"name": "string",
"next": "string"
},
"selectAttributes": {
"attributes": [ "string" ],
"name": "string",
"next": "string"
}
}
}
Request Body
The request accepts the following data in JSON format.
Required: Yes
pipelineActivity (p. 68)
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.
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"logResult": "string",
"payloads": [ blob ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
In case the pipeline activity fails, the log message that is generated.
Type: String
payloads (p. 69)
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.)
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
SampleChannelData
Retrieves a sample of messages from the specified channel ingested during the specified timeframe. Up
to 10 messages can be retrieved.
Request Syntax
GET /channels/channelName/sample?
endTime=endTime&maxMessages=maxMessages&startTime=startTime HTTP/1.1
Pattern: ^[a-zA-Z0-9_]+$
endTime (p. 71)
The end of the time window from which sample messages are retrieved.
maxMessages (p. 71)
The number of sample messages to be retrieved. The limit is 10, the default is also 10.
The start of the time window from which sample messages are retrieved.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"payloads": [ blob ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The list of message samples. Each sample message is returned as a base64-encoded string.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
StartPipelineReprocessing
Starts the reprocessing of raw message data through the pipeline.
Request Syntax
POST /pipelines/pipelineName/reprocessing HTTP/1.1
Content-type: application/json
{
"endTime": number,
"startTime": number
}
Pattern: ^[a-zA-Z0-9_]+$
Request Body
The request accepts the following data in JSON format.
Type: Timestamp
Required: No
startTime (p. 73)
Type: Timestamp
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"reprocessingId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
TagResource
Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a
resource.
Request Syntax
POST /tags?resourceArn=resourceArn HTTP/1.1
Content-type: application/json
{
"tags": [
{
"key": "string",
"value": "string"
}
]
}
Request Body
The request accepts the following data in JSON format.
Required: Yes
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
UntagResource
Removes the given tags (metadata) from the resource.
Request Syntax
DELETE /tags?resourceArn=resourceArn&tagKeys=tagKeys HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
LimitExceededException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
UpdateChannel
Updates the settings of a channel.
Request Syntax
PUT /channels/channelName HTTP/1.1
Content-type: application/json
{
"channelStorage": {
"customerManagedS3": {
"bucket": "string",
"keyPrefix": "string",
"roleArn": "string"
},
"serviceManagedS3": {
}
},
"retentionPeriod": {
"numberOfDays": number,
"unlimited": boolean
}
}
Pattern: ^[a-zA-Z0-9_]+$
Request Body
The request accepts the following data in JSON format.
Where channel data is stored. You may choose one of "serviceManagedS3" or "customerManagedS3"
storage. If not specified, the default is "serviceManagedS3". This cannot be changed after creation of
the channel.
Required: No
retentionPeriod (p. 80)
How long, in days, message data is kept for the channel. The retention period cannot be updated if
the channel's S3 storage is customer-managed.
Required: No
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
UpdateDataset
Updates the settings of a data set.
Request Syntax
PUT /datasets/datasetName HTTP/1.1
Content-type: application/json
{
"actions": [
{
"actionName": "string",
"containerAction": {
"executionRoleArn": "string",
"image": "string",
"resourceConfiguration": {
"computeType": "string",
"volumeSizeInGB": number
},
"variables": [
{
"datasetContentVersionValue": {
"datasetName": "string"
},
"doubleValue": number,
"name": "string",
"outputFileUriValue": {
"fileName": "string"
},
"stringValue": "string"
}
]
},
"queryAction": {
"filters": [
{
"deltaTime": {
"offsetSeconds": number,
"timeExpression": "string"
}
}
],
"sqlQuery": "string"
}
}
],
"contentDeliveryRules": [
{
"destination": {
"iotEventsDestinationConfiguration": {
"inputName": "string",
"roleArn": "string"
},
"s3DestinationConfiguration": {
"bucket": "string",
"glueConfiguration": {
"databaseName": "string",
"tableName": "string"
},
"key": "string",
"roleArn": "string"
}
},
"entryName": "string"
}
],
"retentionPeriod": {
"numberOfDays": number,
"unlimited": boolean
},
"triggers": [
{
"dataset": {
"name": "string"
},
"schedule": {
"expression": "string"
}
}
],
"versioningConfiguration": {
"maxVersions": number,
"unlimited": boolean
}
}
Pattern: ^[a-zA-Z0-9_]+$
Request Body
The request accepts the following data in JSON format.
Required: Yes
contentDeliveryRules (p. 83)
When data set contents are created they are delivered to destinations specified here.
Required: No
retentionPeriod (p. 83)
How long, in days, data set contents are kept for the data set.
Required: No
triggers (p. 83)
A list of "DatasetTrigger" objects. The list can be empty or can contain up to five DataSetTrigger
objects.
Required: No
versioningConfiguration (p. 83)
[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)
Required: No
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
UpdateDatastore
Updates the settings of a data store.
Request Syntax
PUT /datastores/datastoreName HTTP/1.1
Content-type: application/json
{
"datastoreStorage": {
"customerManagedS3": {
"bucket": "string",
"keyPrefix": "string",
"roleArn": "string"
},
"serviceManagedS3": {
}
},
"retentionPeriod": {
"numberOfDays": number,
"unlimited": boolean
}
}
Pattern: ^[a-zA-Z0-9_]+$
Request Body
The request accepts the following data in JSON format.
Where data store data is stored. You may choose one of "serviceManagedS3" or
"customerManagedS3" storage. If not specified, the default is "serviceManagedS3". This cannot be
changed after the data store is created.
Required: No
retentionPeriod (p. 87)
How long, in days, message data is kept for the data store. The retention period cannot be updated
if the data store's S3 storage is customer-managed.
Required: No
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
UpdatePipeline
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.
Request Syntax
PUT /pipelines/pipelineName HTTP/1.1
Content-type: application/json
{
"pipelineActivities": [
{
"addAttributes": {
"attributes": {
"string" : "string"
},
"name": "string",
"next": "string"
},
"channel": {
"channelName": "string",
"name": "string",
"next": "string"
},
"datastore": {
"datastoreName": "string",
"name": "string"
},
"deviceRegistryEnrich": {
"attribute": "string",
"name": "string",
"next": "string",
"roleArn": "string",
"thingName": "string"
},
"deviceShadowEnrich": {
"attribute": "string",
"name": "string",
"next": "string",
"roleArn": "string",
"thingName": "string"
},
"filter": {
"filter": "string",
"name": "string",
"next": "string"
},
"lambda": {
"batchSize": number,
"lambdaName": "string",
"name": "string",
"next": "string"
},
"math": {
"attribute": "string",
"math": "string",
"name": "string",
"next": "string"
},
"removeAttributes": {
"attributes": [ "string" ],
"name": "string",
"next": "string"
},
"selectAttributes": {
"attributes": [ "string" ],
"name": "string",
"next": "string"
}
}
]
}
Pattern: ^[a-zA-Z0-9_]+$
Request Body
The request accepts the following data in JSON format.
The list can be 2-25 PipelineActivity objects and must contain both a channel and a datastore
activity. Each entry in the list must contain only one activity, for example:
Required: Yes
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 173).
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
Data Types
The AWS IoT Analytics API contains several data types that various actions use. This section describes
each data type in detail.
Note
The order of each element in a data type structure is not guaranteed. Applications should not
assume a particular order.
AddAttributesActivity
An activity that adds other attributes based on existing attributes in the message.
Contents
attributes
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".
Required: Yes
name
Type: String
Required: Yes
next
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
BatchPutMessageErrorEntry
Contains informations about errors.
Contents
errorCode
Type: String
Required: No
errorMessage
Type: String
Required: No
messageId
The ID of the message that caused the error. (See the value corresponding to the "messageId" key in
the message object.)
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
Channel
A collection of data from an MQTT topic. Channels archive the raw, unprocessed messages before
publishing the data to a pipeline.
Contents
arn
Type: String
Required: No
creationTime
Type: Timestamp
Required: No
lastUpdateTime
Type: Timestamp
Required: No
name
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: No
retentionPeriod
Required: No
status
Type: String
Required: No
storage
Where channel data is stored. You may choose one of "serviceManagedS3" or "customerManagedS3"
storage. If not specified, the default is "serviceManagedS3". This cannot be changed after creation of
the channel.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ChannelActivity
The activity that determines the source of the messages to be processed.
Contents
channelName
The name of the channel from which the messages are processed.
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: Yes
name
Type: String
Required: Yes
next
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ChannelStatistics
Statistics information about the channel.
Contents
size
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ChannelStorage
Where channel data is stored. You may choose one of "serviceManagedS3" or "customerManagedS3"
storage. If not specified, the default is "serviceManagedS3". This cannot be changed after creation of the
channel.
Contents
customerManagedS3
Use this to store channel data in an S3 bucket that you manage. If customer managed storage is
selected, the "retentionPeriod" parameter is ignored. The choice of service-managed or customer-
managed S3 storage cannot be changed after creation of the channel.
Required: No
serviceManagedS3
Use this to store channel data in an S3 bucket managed by the AWS IoT Analytics service. The choice
of service-managed or customer-managed S3 storage cannot be changed after creation of the
channel.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ChannelStorageSummary
Where channel data is stored.
Contents
customerManagedS3
Required: No
serviceManagedS3
Used to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ChannelSummary
A summary of information about a channel.
Contents
channelName
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: No
channelStorage
Required: No
creationTime
Type: Timestamp
Required: No
lastUpdateTime
Type: Timestamp
Required: No
status
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ContainerDatasetAction
Information needed to run the "containerAction" to produce data set contents.
Contents
executionRoleArn
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.
Type: String
Required: Yes
image
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.
Type: String
Required: Yes
resourceConfiguration
Required: Yes
variables
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".
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
CustomerManagedChannelS3Storage
Use this to store channel data in an S3 bucket that you manage. If customer managed storage is
selected, the "retentionPeriod" parameter is ignored. The choice of service-managed or customer-
managed S3 storage cannot be changed after creation of the channel.
Contents
bucket
Type: String
Pattern: ^[a-zA-Z0-9.\-_]*$
Required: Yes
keyPrefix
[Optional] The prefix used to create the keys of the channel data objects. Each object in an Amazon
S3 bucket has a key that is its unique identifier within the bucket (each object in a bucket has exactly
one key). The prefix must end with a '/'.
Type: String
Pattern: ^[a-zA-Z0-9!_.*'()/{}:-]*/$
Required: No
roleArn
The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3
resources.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
CustomerManagedChannelS3StorageSummary
Used to store channel data in an S3 bucket that you manage.
Contents
bucket
Type: String
Pattern: ^[a-zA-Z0-9.\-_]*$
Required: No
keyPrefix
[Optional] The prefix used to create the keys of the channel data objects. Each object in an Amazon
S3 bucket has a key that is its unique identifier within the bucket (each object in a bucket has exactly
one key). The prefix must end with a '/'.
Type: String
Pattern: ^[a-zA-Z0-9!_.*'()/{}:-]*/$
Required: No
roleArn
The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3
resources.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
CustomerManagedDatastoreS3Storage
Use this to store data store data in an S3 bucket that you manage. When customer managed storage
is selected, the "retentionPeriod" parameter is ignored. The choice of service-managed or customer-
managed S3 storage cannot be changed after creation of the data store.
Contents
bucket
The name of the Amazon S3 bucket in which data store data is stored.
Type: String
Pattern: ^[a-zA-Z0-9.\-_]*$
Required: Yes
keyPrefix
[Optional] The prefix used to create the keys of the data store data objects. Each object in an
Amazon S3 bucket has a key that is its unique identifier within the bucket (each object in a bucket
has exactly one key). The prefix must end with a '/'.
Type: String
Pattern: ^[a-zA-Z0-9!_.*'()/{}:-]*/$
Required: No
roleArn
The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3
resources.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
CustomerManagedDatastoreS3StorageSummary
Used to store data store data in an S3 bucket that you manage.
Contents
bucket
The name of the Amazon S3 bucket in which data store data is stored.
Type: String
Pattern: ^[a-zA-Z0-9.\-_]*$
Required: No
keyPrefix
[Optional] The prefix used to create the keys of the data store data objects. Each object in an
Amazon S3 bucket has a key that is its unique identifier within the bucket (each object in a bucket
has exactly one key). The prefix must end with a '/'.
Type: String
Pattern: ^[a-zA-Z0-9!_.*'()/{}:-]*/$
Required: No
roleArn
The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3
resources.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
Dataset
Information about a data set.
Contents
actions
The "DatasetAction" objects that automatically create the data set contents.
Required: No
arn
Type: String
Required: No
contentDeliveryRules
When data set contents are created they are delivered to destinations specified here.
Required: No
creationTime
Type: Timestamp
Required: No
lastUpdateTime
Type: Timestamp
Required: No
name
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: No
retentionPeriod
[Optional] How long, in days, message data is kept for the data set.
Required: No
status
Type: String
Required: No
triggers
The "DatasetTrigger" objects that specify when the data set is automatically updated.
Required: No
versioningConfiguration
[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)
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatasetAction
A "DatasetAction" object that specifies how data set contents are automatically created.
Contents
actionName
The name of the data set action by which data set contents are automatically created.
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: No
containerAction
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.
Required: No
queryAction
An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set
contents.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatasetActionSummary
Information about the action which automatically creates the data set's contents.
Contents
actionName
The name of the action which automatically creates the data set's contents.
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: No
actionType
The type of action by which the data set's contents are automatically created.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatasetContentDeliveryDestination
The destination to which data set contents are delivered.
Contents
iotEventsDestinationConfiguration
Configuration information for delivery of data set contents to AWS IoT Events.
Required: No
s3DestinationConfiguration
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatasetContentDeliveryRule
When data set contents are created they are delivered to destination specified here.
Contents
destination
Required: Yes
entryName
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatasetContentStatus
The state of the data set contents and the reason they are in this state.
Contents
reason
Type: String
Required: No
state
The state of the data set contents. Can be one of "READY", "CREATING", "SUCCEEDED" or "FAILED".
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatasetContentSummary
Summary information about data set contents.
Contents
creationTime
The actual time the creation of the data set contents was started.
Type: Timestamp
Required: No
scheduleTime
The time the creation of the data set contents was scheduled to start.
Type: Timestamp
Required: No
status
Required: No
version
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatasetContentVersionValue
The data set whose latest contents are used as input to the notebook or application.
Contents
datasetName
The name of the data set whose latest contents are used as input to the notebook or application.
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatasetEntry
The reference to a data set entry.
Contents
dataURI
Type: String
Required: No
entryName
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatasetSummary
A summary of information about a data set.
Contents
actions
Required: No
creationTime
Type: Timestamp
Required: No
datasetName
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: No
lastUpdateTime
Type: Timestamp
Required: No
status
Type: String
Required: No
triggers
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
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatasetTrigger
The "DatasetTrigger" that specifies when the data set is automatically updated.
Contents
dataset
The data set whose content creation triggers the creation of this data set's contents.
Required: No
schedule
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
Datastore
Information about a data store.
Contents
arn
Type: String
Required: No
creationTime
Type: Timestamp
Required: No
lastUpdateTime
Type: Timestamp
Required: No
name
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: No
retentionPeriod
How long, in days, message data is kept for the data store. When "customerManagedS3" storage is
selected, this parameter is ignored.
Required: No
status
Type: String
Required: No
storage
Where data store data is stored. You may choose one of "serviceManagedS3" or
"customerManagedS3" storage. If not specified, the default is "serviceManagedS3". This cannot be
changed after the data store is created.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatastoreActivity
The 'datastore' activity that specifies where to store the processed data.
Contents
datastoreName
The name of the data store where processed messages are stored.
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: Yes
name
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatastoreStatistics
Statistical information about the data store.
Contents
size
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatastoreStorage
Where data store data is stored. You may choose one of "serviceManagedS3" or "customerManagedS3"
storage. If not specified, the default is "serviceManagedS3". This cannot be changed after the data store
is created.
Contents
customerManagedS3
Use this to store data store data in an S3 bucket that you manage. When customer managed storage
is selected, the "retentionPeriod" parameter is ignored. The choice of service-managed or customer-
managed S3 storage cannot be changed after creation of the data store.
Required: No
serviceManagedS3
Use this to store data store data in an S3 bucket managed by the AWS IoT Analytics service. The
choice of service-managed or customer-managed S3 storage cannot be changed after creation of
the data store.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatastoreStorageSummary
Where data store data is stored.
Contents
customerManagedS3
Required: No
serviceManagedS3
Used to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DatastoreSummary
A summary of information about a data store.
Contents
creationTime
Type: Timestamp
Required: No
datastoreName
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: No
datastoreStorage
Required: No
lastUpdateTime
Type: Timestamp
Required: No
status
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DeltaTime
Used to limit data to that which has arrived since the last execution of the action.
Contents
offsetSeconds
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.
Type: Integer
Required: Yes
timeExpression
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.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DeviceRegistryEnrichActivity
An activity that adds data from the AWS IoT device registry to your message.
Contents
attribute
Type: String
Required: Yes
name
Type: String
Required: Yes
next
Type: String
Required: No
roleArn
The ARN of the role that allows access to the device's registry information.
Type: String
Required: Yes
thingName
The name of the IoT device whose registry information is added to the message.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DeviceShadowEnrichActivity
An activity that adds information from the AWS IoT Device Shadows service to a message.
Contents
attribute
Type: String
Required: Yes
name
Type: String
Required: Yes
next
Type: String
Required: No
roleArn
The ARN of the role that allows access to the device's shadow.
Type: String
Required: Yes
thingName
The name of the IoT device whose shadow information is added to the message.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
EstimatedResourceSize
The estimated size of the resource.
Contents
estimatedOn
The time when the estimate of the size of the resource was made.
Type: Timestamp
Required: No
estimatedSizeInBytes
Type: Double
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
FilterActivity
An activity that filters a message based on its attributes.
Contents
filter
An expression that looks like a SQL WHERE clause that must return a Boolean value.
Type: String
Required: Yes
name
Type: String
Required: Yes
next
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
GlueConfiguration
Configuration information for coordination with the AWS Glue ETL (extract, transform and load) service.
Contents
databaseName
The name of the database in your AWS Glue Data Catalog in which the table is located. (An AWS
Glue Data Catalog database contains Glue Data tables.)
Type: String
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*
Required: Yes
tableName
The name of the table in your AWS Glue Data Catalog which is used to perform the ETL (extract,
transform and load) operations. (An AWS Glue Data Catalog table contains partitioned data and
descriptions of data sources and targets.)
Type: String
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
IotEventsDestinationConfiguration
Configuration information for delivery of data set contents to AWS IoT Events.
Contents
inputName
The name of the AWS IoT Events input to which data set contents are delivered.
Type: String
Pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
Required: Yes
roleArn
The ARN of the role which grants AWS IoT Analytics permission to deliver data set contents to an
AWS IoT Events input.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
LambdaActivity
An activity that runs a Lambda function to modify the message.
Contents
batchSize
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.
Type: Integer
Required: Yes
lambdaName
Type: String
Pattern: ^[a-zA-Z0-9_-]+$
Required: Yes
name
Type: String
Required: Yes
next
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
LoggingOptions
Information about logging options.
Contents
enabled
Type: Boolean
Required: Yes
level
Type: String
Required: Yes
roleArn
The ARN of the role that grants permission to AWS IoT Analytics to perform logging.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
MathActivity
An activity that computes an arithmetic expression using the message's attributes.
Contents
attribute
The name of the attribute that contains the result of the math operation.
Type: String
Required: Yes
math
An expression that uses one or more existing attributes and must return an integer value.
Type: String
Required: Yes
name
Type: String
Required: Yes
next
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
Message
Information about a message.
Contents
messageId
The ID you wish to assign to the message. Each "messageId" must be unique within each batch sent.
Type: String
Required: Yes
payload
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).
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
OutputFileUriValue
The value of the variable as a structure that specifies an output file URI.
Contents
fileName
The URI of the location where data set contents are stored, usually the URI of a file in an S3 bucket.
Type: String
Pattern: [\w\.-]{1,255}
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
Pipeline
Contains information about a pipeline.
Contents
activities
Required: No
arn
Type: String
Required: No
creationTime
Type: Timestamp
Required: No
lastUpdateTime
Type: Timestamp
Required: No
name
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: No
reprocessingSummaries
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
PipelineActivity
An activity that performs a transformation on a message.
Contents
addAttributes
Required: No
channel
Required: No
datastore
Required: No
deviceRegistryEnrich
Adds data from the AWS IoT device registry to your message.
Required: No
deviceShadowEnrich
Adds information from the AWS IoT Device Shadows service to a message.
Required: No
filter
Required: No
lambda
Required: No
math
Computes an arithmetic expression using the message's attributes and adds it to the message.
Required: No
removeAttributes
Required: No
selectAttributes
Creates a new message using only the specified attributes from the original message.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
PipelineSummary
A summary of information about a pipeline.
Contents
creationTime
Type: Timestamp
Required: No
lastUpdateTime
Type: Timestamp
Required: No
pipelineName
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: No
reprocessingSummaries
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
QueryFilter
Information which is used to filter message data, to segregate it according to the time frame in which it
arrives.
Contents
deltaTime
Used to limit data to that which has arrived since the last execution of the action.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
RemoveAttributesActivity
An activity that removes attributes from a message.
Contents
attributes
Required: Yes
name
Type: String
Required: Yes
next
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ReprocessingSummary
Information about pipeline reprocessing.
Contents
creationTime
Type: Timestamp
Required: No
id
Type: String
Required: No
status
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ResourceConfiguration
The configuration of the resource used to execute the "containerAction".
Contents
computeType
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).
Type: String
Required: Yes
volumeSizeInGB
The size (in GB) of the persistent storage available to the resource instance used to execute the
"containerAction" (min: 1, max: 50).
Type: Integer
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
RetentionPeriod
How long, in days, message data is kept.
Contents
numberOfDays
The number of days that message data is kept. The "unlimited" parameter must be false.
Type: Integer
Required: No
unlimited
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
S3DestinationConfiguration
Configuration information for delivery of data set contents to Amazon S3.
Contents
bucket
The name of the Amazon S3 bucket to which data set contents are delivered.
Type: String
Pattern: ^[a-zA-Z0-9.\-_]*$
Required: Yes
glueConfiguration
Configuration information for coordination with the AWS Glue ETL (extract, transform and load)
service.
Required: No
key
The key of the data set contents object. Each object in an Amazon S3 bucket has a key that is its
unique identifier within the bucket (each object in a bucket has exactly one key). To produce a unique
key, you can use "!{iotanalytics:scheduledTime}" to insert the time of the scheduled SQL query run,
or "!{iotanalytics:versioned} to insert a unique hash identifying the data set, for example: "/DataSet/!
{iotanalytics:scheduledTime}/!{iotanalytics:versioned}.csv".
Type: String
Pattern: ^[a-zA-Z0-9!_.*'()/{}:-]*$
Required: Yes
roleArn
The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 and
AWS Glue resources.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
Schedule
The schedule for when to trigger an update.
Contents
expression
The expression that defines when to trigger an update. For more information, see Schedule
Expressions for Rules in the Amazon CloudWatch Events User Guide.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
SelectAttributesActivity
Creates a new message using only the specified attributes from the original message.
Contents
attributes
Required: Yes
name
Type: String
Required: Yes
next
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ServiceManagedChannelS3Storage
Use this to store channel data in an S3 bucket managed by the AWS IoT Analytics service. The choice of
service-managed or customer-managed S3 storage cannot be changed after creation of the channel.
Contents
The members of this structure are context-dependent.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ServiceManagedChannelS3StorageSummary
Used to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
Contents
The members of this structure are context-dependent.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ServiceManagedDatastoreS3Storage
Use this to store data store data in an S3 bucket managed by the AWS IoT Analytics service. The choice
of service-managed or customer-managed S3 storage cannot be changed after creation of the data
store.
Contents
The members of this structure are context-dependent.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ServiceManagedDatastoreS3StorageSummary
Used to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
Contents
The members of this structure are context-dependent.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
SqlQueryDatasetAction
The SQL query to modify the message.
Contents
filters
Required: No
sqlQuery
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
Tag
A set of key/value pairs which are used to manage the resource.
Contents
key
Type: String
Required: Yes
value
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
TriggeringDataset
Information about the data set whose content generation triggers the new data set content generation.
Contents
name
The name of the data set whose content generation triggers the new data set content generation.
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
Variable
An instance of a variable to be passed to the "containerAction" execution. Each variable must have a
name and a value given by one of "stringValue", "datasetContentVersionValue", or "outputFileUriValue".
Contents
datasetContentVersionValue
The value of the variable as a structure that specifies a data set content version.
Required: No
doubleValue
Type: Double
Required: No
name
Type: String
Required: Yes
outputFileUriValue
The value of the variable as a structure that specifies an output file URI.
Required: No
stringValue
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
VersioningConfiguration
Information about the versioning of data set contents.
Contents
maxVersions
How many versions of data set contents will be kept. The "unlimited" parameter must be false.
Type: Integer
Required: No
unlimited
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
Common Parameters
The following list contains the parameters that all actions use for signing Signature Version 4 requests
with a query string. Any action-specific parameters are listed in the topic for that action. For more
information about Signature Version 4, see Signature Version 4 Signing Process in the Amazon Web
Services General Reference.
Action
Type: string
Required: Yes
Version
The API version that the request is written for, expressed in the format YYYY-MM-DD.
Type: string
Required: Yes
X-Amz-Algorithm
The hash algorithm that you used to create the request signature.
Condition: Specify this parameter when you include authentication information in a query string
instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-Credential
The credential scope value, which is a string that includes your access key, the date, the region you
are targeting, the service you are requesting, and a termination string ("aws4_request"). The value is
expressed in the following format: access_key/YYYYMMDD/region/service/aws4_request.
For more information, see Task 2: Create a String to Sign for Signature Version 4 in the Amazon Web
Services General Reference.
Condition: Specify this parameter when you include authentication information in a query string
instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-Date
The date that is used to create the signature. The format must be ISO 8601 basic format
(YYYYMMDD'T'HHMMSS'Z'). For example, the following date time is a valid X-Amz-Date value:
20120325T120000Z.
Condition: X-Amz-Date is optional for all requests; it can be used to override the date used for
signing requests. If the Date header is specified in the ISO 8601 basic format, X-Amz-Date is
not required. When X-Amz-Date is used, it always overrides the value of the Date header. For
more information, see Handling Dates in Signature Version 4 in the Amazon Web Services General
Reference.
Type: string
Required: Conditional
X-Amz-Security-Token
The temporary security token that was obtained through a call to AWS Security Token Service (AWS
STS). For a list of services that support temporary security credentials from AWS Security Token
Service, go to AWS Services That Work with IAM in the IAM User Guide.
Condition: If you're using temporary security credentials from the AWS Security Token Service, you
must include the security token.
Type: string
Required: Conditional
X-Amz-Signature
Specifies the hex-encoded signature that was calculated from the string to sign and the derived
signing key.
Condition: Specify this parameter when you include authentication information in a query string
instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-SignedHeaders
Specifies all the HTTP headers that were included as part of the canonical request. For more
information about specifying signed headers, see Task 1: Create a Canonical Request For Signature
Version 4 in the Amazon Web Services General Reference.
Condition: Specify this parameter when you include authentication information in a query string
instead of in the HTTP authorization header.
Type: string
Required: Conditional
Common Errors
This section lists the errors common to the API actions of all AWS services. For errors specific to an API
action for this service, see the topic for that API action.
AccessDeniedException
The request processing has failed because of an unknown error, exception or failure.
The action or operation requested is invalid. Verify that the action is typed correctly.
The X.509 certificate or AWS access key ID provided does not exist in our records.
The AWS query string is malformed or does not adhere to AWS standards.
MissingAuthenticationToken
The request must contain either a valid (registered) AWS access key ID or X.509 certificate.
The request reached the service more than 15 minutes after the date stamp on the request or more
than 15 minutes after the request expiration date (such as for pre-signed URLs), or the date stamp
on the request is more than 15 minutes in the future.