Skip to content

Commit f262791

Browse files
committed
chore(external docs): Add S3 sink categories
Signed-off-by: binarylogic <[email protected]>
1 parent 82d4028 commit f262791

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

docs/reference/components/sinks.cue

+8-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ components: sinks: [Name=string]: {
1111
if sinks[Name].features.send != _|_ && sinks[Name].features.send.batch != _|_ {
1212
if sinks[Name].features.send.batch.enabled {
1313
batch: {
14-
common: false
14+
common: sinks[Name].features.send.batch.common
1515
description: "Configures the sink batching behavior."
1616
required: false
1717
type: object: {
@@ -63,17 +63,19 @@ components: sinks: [Name=string]: {
6363
examples: []
6464
options: {
6565
max_events: {
66-
common: true
67-
description: "The maximum number of [events][docs.data-model] allowed in the buffer."
68-
required: false
66+
common: true
67+
description: "The maximum number of [events][docs.data-model] allowed in the buffer."
68+
required: false
69+
relevant_when: "type = \"memory\""
6970
type: uint: {
7071
default: 500
7172
unit: "events"
7273
}
7374
}
7475
max_size: {
75-
description: "The maximum size of the buffer on the disk."
76-
required: true
76+
description: "The maximum size of the buffer on the disk."
77+
required: true
78+
relevant_when: "type = \"disk\""
7779
type: uint: {
7880
examples: [104900000]
7981
unit: "bytes"

docs/reference/components/sinks/aws_s3.cue

+14-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ components: sinks: aws_s3: {
2525
}
2626
compression: {
2727
enabled: true
28-
default: "none"
28+
default: "gzip"
2929
algorithms: ["none", "gzip"]
3030
levels: ["none", "fast", "default", "best", 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
3131
}
@@ -110,6 +110,7 @@ components: sinks: aws_s3: {
110110
}
111111
}
112112
content_encoding: {
113+
category: "Content Type"
113114
common: false
114115
description: "Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. By default calculated from `compression` value."
115116
required: false
@@ -120,6 +121,7 @@ components: sinks: aws_s3: {
120121
}
121122
}
122123
content_type: {
124+
category: "Content Type"
123125
common: false
124126
description: "A standard MIME type describing the format of the contents."
125127
required: false
@@ -129,13 +131,15 @@ components: sinks: aws_s3: {
129131
}
130132
}
131133
filename_append_uuid: {
134+
category: "File Naming"
132135
common: false
133136
description: "Whether or not to append a UUID v4 token to the end of the file. This ensures there are no name collisions high volume use cases."
134137
required: false
135138
warnings: []
136139
type: bool: default: true
137140
}
138141
filename_extension: {
142+
category: "File Naming"
139143
common: false
140144
description: "The filename extension to use in the object name."
141145
required: false
@@ -145,6 +149,7 @@ components: sinks: aws_s3: {
145149
}
146150
}
147151
filename_time_format: {
152+
category: "File Naming"
148153
common: false
149154
description: "The format of the resulting object file name. [`strftime` specifiers](\(urls.strptime_specifiers)) are supported."
150155
required: false
@@ -154,6 +159,7 @@ components: sinks: aws_s3: {
154159
}
155160
}
156161
grant_full_control: {
162+
category: "ACL"
157163
common: false
158164
description: "Gives the named [grantee][urls.aws_s3_grantee] READ, READ_ACP, and WRITE_ACP permissions on the created objects."
159165
required: false
@@ -164,6 +170,7 @@ components: sinks: aws_s3: {
164170
}
165171
}
166172
grant_read: {
173+
category: "ACL"
167174
common: false
168175
description: "Allows the named [grantee][urls.aws_s3_grantee] to read the created objects and their metadata."
169176
required: false
@@ -174,6 +181,7 @@ components: sinks: aws_s3: {
174181
}
175182
}
176183
grant_read_acp: {
184+
category: "ACL"
177185
common: false
178186
description: "Allows the named [grantee][urls.aws_s3_grantee] to read the created objects' ACL."
179187
required: false
@@ -184,6 +192,7 @@ components: sinks: aws_s3: {
184192
}
185193
}
186194
grant_write_acp: {
195+
category: "ACL"
187196
common: false
188197
description: "Allows the named [grantee][urls.aws_s3_grantee] to write the created objects' ACL."
189198
required: false
@@ -194,6 +203,7 @@ components: sinks: aws_s3: {
194203
}
195204
}
196205
key_prefix: {
206+
category: "File Naming"
197207
common: true
198208
description: "A prefix to apply to all object key names. This should be used to partition your objects, and it's important to end this value with a `/` if you want this to be the root S3 \"folder\"."
199209
required: false
@@ -204,6 +214,7 @@ components: sinks: aws_s3: {
204214
}
205215
}
206216
server_side_encryption: {
217+
category: "Encryption"
207218
common: false
208219
description: "The server-side encryption algorithm used when storing these objects."
209220
required: false
@@ -217,6 +228,7 @@ components: sinks: aws_s3: {
217228
}
218229
}
219230
ssekms_key_id: {
231+
category: "Encryption"
220232
common: false
221233
description: "If `server_side_encryption` has the value `\"aws.kms\"`, this specifies the ID of the AWS Key Management Service (AWS KMS) symmetrical customer managed customer master key (CMK) that will used for the created objects. If not specified, Amazon S3 uses the AWS managed CMK in AWS to protect the data."
222234
required: false
@@ -227,6 +239,7 @@ components: sinks: aws_s3: {
227239
}
228240
}
229241
storage_class: {
242+
category: "Storage"
230243
common: false
231244
description: "The storage class for the created objects. See [the S3 Storage Classes](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) for more details."
232245
required: false

0 commit comments

Comments
 (0)