Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/buckets/snapshots-and-forks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ header: `X-Tigris-Snapshot: true`.

Snapshot description can optionally be specified as part of that header (with
semicolon separator), e.g.,
`X-Tigris-Snapshot: true; test snapshot description`.
`X-Tigris-Snapshot: true; desc=test snapshot description`.

<Tabs groupId="languages">
<TabItem value="go" label="Go">
Expand All @@ -228,7 +228,7 @@ Example using the Go SDK `github.com/aws/aws-sdk-go-v2/service/s3`:
```go
func createBucketSnapshot(ctx context.Context, client *s3.Client, bucketName string) error {
_, err := client.CreateBucket(ctx, &s3.CreateBucketInput{Bucket: aws.String(bucketName)}, func(options *s3.Options) {
options.APIOptions = append(options.APIOptions, http.AddHeaderValue("X-Tigris-Snapshot", "true; test snapshot description"))
options.APIOptions = append(options.APIOptions, http.AddHeaderValue("X-Tigris-Snapshot", "true; desc=test snapshot description"))
})
return err
}
Expand All @@ -246,7 +246,7 @@ async function createBucketSnapshot(client, bucketName) {
command.middlewareStack.add(
(next) => async (args) => {
args.request.headers["X-Tigris-Snapshot"] =
"true; test snapshot description";
"true; desc=test snapshot description";
return next(args);
},
{ step: "build" },
Expand All @@ -265,7 +265,7 @@ def create_bucket_snapshot(s3_client, bucket_name):
s3_client.meta.events.register(
"before-sign.s3.CreateBucket",
lambda request, **kwargs: request.headers.add_header(
"X-Tigris-Snapshot", "true; test snapshot description"
"X-Tigris-Snapshot", "true; desc=test snapshot description"
)
)
s3_client.create_bucket(Bucket=bucket_name)
Expand Down