cURL
curl --request POST \ --url https://aws.s2.dev/v1/streams \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "stream": "<string>", "config": "<unknown>" } '
{ "created_at": "<string>", "name": "<string>", "deleted_at": "<string>" }
Create a new stream in a basin.
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
Bearer <token>
<token>
Client-specified request token for idempotent retries.
Stream name that is unique to the basin. It can be between 1 and 512 bytes in length.
1 - 512
Stream configuration.
Show child attributes
Delete-on-empty configuration.
Minimum age in seconds before an empty stream can be deleted. Set to 0 (default) to disable delete-on-empty (don't delete automatically).
x >= 0
Retention policy for the stream. If unspecified, the default is to retain records for 7 days.
Age in seconds for automatic trimming of records older than this threshold. This must be set to a value greater than 0 seconds.
Storage class for recent writes.
standard
express
Timestamping behavior.
Timestamping mode for appends that influences how timestamps are handled.
client-prefer
client-require
arrival
Allow client-specified timestamps to exceed the arrival time. If this is false or not set, client timestamps will be capped at the arrival time.
false
Creation time in ISO 8601 format.
Stream name.
Deletion time in ISO 8601 format, if the stream is being deleted.