cURL
curl --request PUT \ --url https://aws.s2.dev/v1/basins/{basin} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '"<unknown>"'
{ "name": "<string>", "scope": "aws:us-east-1", "state": "active" }
Create a new basin, or reconfigure an existing 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.
Basin name.
1 - 48
Basin configuration.
Show child attributes
Create stream on append if it doesn't exist, using the default stream configuration.
Create stream on read if it doesn't exist, using the default stream configuration.
Default stream configuration.
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
Basin scope. This cannot be reconfigured.
aws:us-east-1
Basin scope.
Basin state.
active
creating
deleting