Skip to main content
PATCH
/
streams
/
{stream}
Reconfigure a stream.
curl --request PATCH \
  --url https://aws.s2.dev/v1/streams/{stream} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "delete_on_empty": "<unknown>",
  "retention_policy": "<unknown>",
  "storage_class": "<unknown>",
  "timestamping": "<unknown>"
}
'
{
  "delete_on_empty": "<unknown>",
  "retention_policy": "<unknown>",
  "storage_class": "<unknown>",
  "timestamping": "<unknown>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Path Parameters

stream
string
required

Stream name.

Required string length: 1 - 512

Body

application/json
delete_on_empty
object

Delete-on-empty configuration.

retention_policy
object

Retention policy for the stream. If unspecified, the default is to retain records for 7 days.

storage_class
null | enum<string>

Storage class for recent writes.

Available options:
standard,
express
timestamping
object

Timestamping behavior.

Response

delete_on_empty
object

Delete-on-empty configuration.

retention_policy
object

Retention policy for the stream. If unspecified, the default is to retain records for 7 days.

storage_class
null | enum<string>

Storage class for recent writes.

Available options:
standard,
express
timestamping
object

Timestamping behavior.