PUT
/
basins
/
{basin}
curl --request PUT \
  --url https://aws.s2.dev/v1/basins/{basin} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "config": null,
  "scope": "aws:us-east-1"
}'
{
  "name": "<string>",
  "scope": "aws:us-east-1",
  "state": "active"
}

Authorizations

Authorization
string
header
required

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

Headers

s2-request-token
string

Provide a client request token header for idempotent retry behaviour.

Path Parameters

basin
string
required

Basin name, which must be globally unique. The name must be between 8 and 48 characters, comprising lowercase letters, numbers and hyphens. It cannot begin or end with a hyphen.

Body

application/json
config
object | null

Basin configuration.

scope
enum<string>
default:aws:us-east-1

Basin scope.

Available options:
aws:us-east-1

Response

201
application/json
name
string
required

Basin name.

scope
enum<string>
required

Basin scope.

Available options:
aws:us-east-1
state
enum<string>
required

Basin state.

Available options:
active,
creating,
deleting