To create a data streamer for AWS services, a POST request should be sent to https://cdn.emnify.net/api/v1/data_stream.

The request body determines the data stream type and configuration. The following are example request bodies for creating AWS data streams:

AWS S3

POST cdn.emnify.net/api/v1/data_stream:

{
  "stream_historic_data": 0,
  "data_stream_type": {
    "description": "Usage Data & Events",
    "id": 3
  },
  "api_type": {
    "description": "AWS S3",
    "id": 5
  },
  "api_username": "accesskey",
  "api_password": "secret",
  "api_parameter": "bucket"
}

Warning: Currently only buckets in region eu-west-1 are supported.

AWS Kinesis

POST cdn.emnify.net/api/v1/data_stream:

{
  "stream_historic_data": 0,
  "data_stream_type": {
    "description": "Usage Data & Events",
    "id": 3
  },
  "api_type": {
    "description": "AWS Kinesis",
    "id": 4
  },
  "api_username": "accesskey",
  "api_password": "secretkey",
  "api_parameter": "eu-west-1/my_kinesis_stream"
}

Warning: Currently only region eu-west-1 is supported for Kinesis streams.

For more information, see the /data_stream Swagger Reference.