PATCH
/
streams
/
{stream}
curl --request PATCH \
  --url https://{basin}.b.aws.s2.dev/v1alpha/streams/{stream} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "retention_policy": null,
  "storage_class": "unspecified"
}'
{
  "retention_policy": null,
  "storage_class": "unspecified"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

stream
string
required

Name of the stream.

Body

application/json

Stream configuration.

storage_class
enum<string>
required

Storage class for recent writes. This is the main cost:performance knob in S2.

Available options:
unspecified,
standard,
express
retention_policy
object | null

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

Response

200
application/json

Stream configuration.

storage_class
enum<string>
required

Storage class for recent writes. This is the main cost:performance knob in S2.

Available options:
unspecified,
standard,
express
retention_policy
object | null

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