---
title: Create Sink
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Pipelines](https://developers.cloudflare.com/api/go/resources/pipelines)

[Sinks](https://developers.cloudflare.com/api/go/resources/pipelines/subresources/sinks)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Create Sink

client.Pipelines.Sinks.New(ctx, params) (\*[SinkNewResponse](<https://developers.cloudflare.com/api/go/resources/pipelines#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/pipelines/v1/sinks

Create a new Sink.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Pipelines Write`

##### ParametersExpand Collapse

<details>

<summary>

params SinkNewParams

</summary>

AccountID param.Field\[string]

Path param: Specifies the public ID of the account.

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

Name param.Field\[string]

Body param: Defines the name of the Sink.

maxLength128

minLength1

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20name">Link to this property</a>

<details>

<summary>

Type param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/pipelines/subresources/sinks/methods/create#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20type%20%3E%20(schema)">SinkNewParamsType</a>]

Body param: Specifies the type of sink.

</summary>

const SinkNewParamsTypeR2 <a href="https://developers.cloudflare.com/api/go/resources/pipelines/subresources/sinks/methods/create#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20type%20%3E%20(schema)">SinkNewParamsType</a> = "r2"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20type%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const SinkNewParamsTypeR2DataCatalog <a href="https://developers.cloudflare.com/api/go/resources/pipelines/subresources/sinks/methods/create#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20type%20%3E%20(schema)">SinkNewParamsType</a> = "r2\_data\_catalog"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20type%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

const SinkNewParamsTypeBasinCatalog <a href="https://developers.cloudflare.com/api/go/resources/pipelines/subresources/sinks/methods/create#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20type%20%3E%20(schema)">SinkNewParamsType</a> = "basin\_catalog"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20type%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20type">Link to this property</a>

<details>

<summary>

Config param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/pipelines/subresources/sinks/methods/create#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)">SinkNewParamsConfig</a>]Optional

Body param: Defines the configuration of the R2 Sink.

</summary>

<details>

<summary>

type SinkNewParamsConfigCloudflarePipelinesR2Table struct{…}

</summary>

AccountID string

Cloudflare Account ID for the bucket

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20account_id">Link to this property</a>

Bucket string

R2 Bucket to write to

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20bucket">Link to this property</a>

<details>

<summary>

Credentials SinkNewParamsConfigCloudflarePipelinesR2TableCredentials

</summary>

AccessKeyID string

Cloudflare Account ID for the bucket

formatvar-str

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20credentials%20%3E%20(property)%20access_key_id">Link to this property</a>

SecretAccessKey string

Cloudflare Account ID for the bucket

formatvar-str

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20credentials%20%3E%20(property)%20secret_access_key">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20credentials">Link to this property</a>

<details>

<summary>

FileNaming SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingOptional

Controls filename prefix/suffix and strategy.

</summary>

Prefix stringOptional

The prefix to use in file name. i.e prefix-.parquet

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20prefix">Link to this property</a>

<details>

<summary>

Strategy SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategyOptional

Filename generation strategy.

</summary>

One of the following:

const SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategySerial SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy = "serial"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%200">Link to this property</a>

const SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategyUUID SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy = "uuid"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%201">Link to this property</a>

const SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategyUUIDV7 SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy = "uuid\_v7"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%202">Link to this property</a>

const SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategyUlid SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy = "ulid"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy">Link to this property</a>

Suffix stringOptional

This will overwrite the default file suffix. i.e .parquet, use with caution

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20suffix">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20file_naming">Link to this property</a>

Jurisdiction stringOptional

Jurisdiction this bucket is hosted in

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20jurisdiction">Link to this property</a>

<details>

<summary>

Partitioning SinkNewParamsConfigCloudflarePipelinesR2TablePartitioningOptional

Data-layout partitioning for sinks.

</summary>

TimePattern stringOptional

The pattern of the date string

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20partitioning%20%3E%20(property)%20time_pattern">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20partitioning">Link to this property</a>

Path stringOptional

Subpath within the bucket to write to

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20path">Link to this property</a>

<details>

<summary>

RollingPolicy SinkNewParamsConfigCloudflarePipelinesR2TableRollingPolicyOptional

Rolling policy for file sinks (when &amp; why to close a file and open a new one).

</summary>

FileSizeBytes int64Optional

Files will be rolled after reaching this number of bytes

formatuint64

minimum0

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20file_size_bytes">Link to this property</a>

InactivitySeconds int64Optional

Number of seconds of inactivity to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20inactivity_seconds">Link to this property</a>

IntervalSeconds int64Optional

Number of seconds to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20interval_seconds">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTable struct{…}

R2 Data Catalog Sink

</summary>

Token string

Authentication token

formatvar-str

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20token">Link to this property</a>

AccountID string

Cloudflare Account ID

formaturi

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20account_id">Link to this property</a>

Bucket string

The R2 Bucket that hosts this catalog

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20bucket">Link to this property</a>

TableName string

Table name

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20table_name">Link to this property</a>

Namespace stringOptional

Table namespace

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20namespace">Link to this property</a>

<details>

<summary>

RollingPolicy SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTableRollingPolicyOptional

Rolling policy for file sinks (when &amp; why to close a file and open a new one).

</summary>

FileSizeBytes int64Optional

Files will be rolled after reaching this number of bytes

formatuint64

minimum0

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20file_size_bytes">Link to this property</a>

InactivitySeconds int64Optional

Number of seconds of inactivity to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20inactivity_seconds">Link to this property</a>

IntervalSeconds int64Optional

Number of seconds to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20interval_seconds">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20config">Link to this property</a>

<details>

<summary>

Format param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/pipelines/subresources/sinks/methods/create#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)">SinkNewParamsFormat</a>]Optional

Body param: Defines the output data format of a sink.

</summary>

<details>

<summary>

type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormat struct{…}

</summary>

Type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatType

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

Compression SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompressionOptional

Specifies the compression applied to JSON sink output.

</summary>

One of the following:

const SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompressionUncompressed SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompression = "uncompressed"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20compression%20%3E%20(member)%200">Link to this property</a>

const SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompressionGzip SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompression = "gzip"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20compression%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20compression">Link to this property</a>

<details>

<summary>

DecimalEncoding SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingOptional

</summary>

One of the following:

const SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingNumber SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "number"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding%20%3E%20(member)%200">Link to this property</a>

const SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingString SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "string"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding%20%3E%20(member)%201">Link to this property</a>

const SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingBytes SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "bytes"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding">Link to this property</a>

<details>

<summary>

TimestampFormat SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormatOptional

</summary>

One of the following:

const SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormatRfc3339 SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormat = "rfc3339"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20timestamp_format%20%3E%20(member)%200">Link to this property</a>

const SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormatUnixMillis SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormat = "unix\_millis"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20timestamp_format%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20timestamp_format">Link to this property</a>

Unstructured boolOptional

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20unstructured">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type SinkNewParamsFormatCloudflarePipelinesSinkParquetFormat struct{…}

</summary>

Type SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatType

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

Compression SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompressionOptional

</summary>

One of the following:

const SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompressionUncompressed SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression = "uncompressed"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%200">Link to this property</a>

const SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompressionSnappy SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression = "snappy"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%201">Link to this property</a>

const SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompressionGzip SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression = "gzip"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%202">Link to this property</a>

const SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompressionZstd SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression = "zstd"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%203">Link to this property</a>

const SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompressionLz4 SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression = "lz4"

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20compression">Link to this property</a>

RowGroupBytes int64Optional

formatint64

minimum0

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20row_group_bytes">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20format">Link to this property</a>

<details>

<summary>

Schema param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/pipelines/subresources/sinks/methods/create#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20schema%20%3E%20(schema)">SinkNewParamsSchema</a>]Optional

Body param: Defines the schema of the events in the data stream.

</summary>

<details>

<summary>

Fields \[]<a href="https://developers.cloudflare.com/api/go/resources/pipelines#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)">SourceField</a>Optional

</summary>

One of the following:

<details>

<summary>

type SourceFieldInt32 struct{…}

</summary>

Type SourceFieldInt32Type

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type SourceFieldInt64 struct{…}

</summary>

Type SourceFieldInt64Type

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

type SourceFieldFloat32 struct{…}

</summary>

Type SourceFieldFloat32Type

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

type SourceFieldFloat64 struct{…}

</summary>

Type SourceFieldFloat64Type

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

type SourceFieldBool struct{…}

</summary>

Type SourceFieldBoolType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

type SourceFieldString struct{…}

</summary>

Type SourceFieldStringType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

type SourceFieldBinary struct{…}

</summary>

Type SourceFieldBinaryType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

type SourceFieldTimestamp struct{…}

</summary>

Type SourceFieldTimestampType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20sql_name">Link to this property</a>

<details>

<summary>

Unit SourceFieldTimestampUnitOptional

</summary>

One of the following:

const SourceFieldTimestampUnitSecond SourceFieldTimestampUnit = "second"

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit%20%3E%20(member)%200">Link to this property</a>

const SourceFieldTimestampUnitMillisecond SourceFieldTimestampUnit = "millisecond"

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit%20%3E%20(member)%201">Link to this property</a>

const SourceFieldTimestampUnitMicrosecond SourceFieldTimestampUnit = "microsecond"

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit%20%3E%20(member)%202">Link to this property</a>

const SourceFieldTimestampUnitNanosecond SourceFieldTimestampUnit = "nanosecond"

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207">Link to this property</a>

<details>

<summary>

type SourceFieldJson struct{…}

</summary>

Type SourceFieldJsonType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208">Link to this property</a>

<details>

<summary>

type SourceFieldStruct struct{…}

</summary>

Type SourceFieldStructType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209">Link to this property</a>

<details>

<summary>

type SourceFieldList struct{…}

</summary>

Type SourceFieldListType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20schema%20%3E%20(schema)%20%3E%20(property)%20fields">Link to this property</a>

Inferred boolOptional

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20schema%20%3E%20(schema)%20%3E%20(property)%20inferred">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20schema">Link to this property</a>

</details>

[Link to this property](<#(resource)%20pipelines.sinks%20%3E%20(method)%20create%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type SinkNewResponse struct{…}

</summary>

ID string

Indicates a unique identifier for this sink.

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

CreatedAt Time

formatdate-time

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

ModifiedAt Time

formatdate-time

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

Name string

Defines the name of the Sink.

maxLength128

minLength1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

Type SinkNewResponseType

Specifies the type of sink.

</summary>

One of the following:

const SinkNewResponseTypeR2 SinkNewResponseType = "r2"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const SinkNewResponseTypeR2DataCatalog SinkNewResponseType = "r2\_data\_catalog"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

const SinkNewResponseTypeBasinCatalog SinkNewResponseType = "basin\_catalog"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

Config SinkNewResponseConfigOptional

R2 Data Catalog Sink

</summary>

One of the following:

<details>

<summary>

type SinkNewResponseConfigCloudflarePipelinesR2Table struct{…}

</summary>

AccountID string

Cloudflare Account ID for the bucket

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20account_id">Link to this property</a>

Bucket string

R2 Bucket to write to

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20bucket">Link to this property</a>

<details>

<summary>

Credentials SinkNewResponseConfigCloudflarePipelinesR2TableCredentials

</summary>

AccessKeyID string

Cloudflare Account ID for the bucket

formatvar-str

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20credentials%20%3E%20(property)%20access_key_id">Link to this property</a>

SecretAccessKey string

Cloudflare Account ID for the bucket

formatvar-str

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20credentials%20%3E%20(property)%20secret_access_key">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20credentials">Link to this property</a>

<details>

<summary>

FileNaming SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingOptional

Controls filename prefix/suffix and strategy.

</summary>

Prefix stringOptional

The prefix to use in file name. i.e prefix-.parquet

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20prefix">Link to this property</a>

<details>

<summary>

Strategy SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategyOptional

Filename generation strategy.

</summary>

One of the following:

const SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategySerial SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy = "serial"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%200">Link to this property</a>

const SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategyUUID SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy = "uuid"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%201">Link to this property</a>

const SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategyUUIDV7 SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy = "uuid\_v7"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%202">Link to this property</a>

const SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategyUlid SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy = "ulid"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy">Link to this property</a>

Suffix stringOptional

This will overwrite the default file suffix. i.e .parquet, use with caution

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20suffix">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming">Link to this property</a>

Jurisdiction stringOptional

Jurisdiction this bucket is hosted in

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20jurisdiction">Link to this property</a>

<details>

<summary>

Partitioning SinkNewResponseConfigCloudflarePipelinesR2TablePartitioningOptional

Data-layout partitioning for sinks.

</summary>

TimePattern stringOptional

The pattern of the date string

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20partitioning%20%3E%20(property)%20time_pattern">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20partitioning">Link to this property</a>

Path stringOptional

Subpath within the bucket to write to

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20path">Link to this property</a>

<details>

<summary>

RollingPolicy SinkNewResponseConfigCloudflarePipelinesR2TableRollingPolicyOptional

Rolling policy for file sinks (when &amp; why to close a file and open a new one).

</summary>

FileSizeBytes int64Optional

Files will be rolled after reaching this number of bytes

formatuint64

minimum0

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20file_size_bytes">Link to this property</a>

InactivitySeconds int64Optional

Number of seconds of inactivity to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20inactivity_seconds">Link to this property</a>

IntervalSeconds int64Optional

Number of seconds to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20interval_seconds">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTable struct{…}

R2 Data Catalog Sink

</summary>

Token string

Authentication token

formatvar-str

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20token">Link to this property</a>

AccountID string

Cloudflare Account ID

formaturi

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20account_id">Link to this property</a>

Bucket string

The R2 Bucket that hosts this catalog

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20bucket">Link to this property</a>

TableName string

Table name

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20table_name">Link to this property</a>

Namespace stringOptional

Table namespace

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20namespace">Link to this property</a>

<details>

<summary>

RollingPolicy SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTableRollingPolicyOptional

Rolling policy for file sinks (when &amp; why to close a file and open a new one).

</summary>

FileSizeBytes int64Optional

Files will be rolled after reaching this number of bytes

formatuint64

minimum0

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20file_size_bytes">Link to this property</a>

InactivitySeconds int64Optional

Number of seconds of inactivity to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20inactivity_seconds">Link to this property</a>

IntervalSeconds int64Optional

Number of seconds to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20interval_seconds">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20config">Link to this property</a>

<details>

<summary>

Format SinkNewResponseFormatOptional

Defines the output data format of a sink.

</summary>

One of the following:

<details>

<summary>

type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormat struct{…}

</summary>

Type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatType

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

Compression SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompressionOptional

Specifies the compression applied to JSON sink output.

</summary>

One of the following:

const SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompressionUncompressed SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompression = "uncompressed"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20compression%20%3E%20(member)%200">Link to this property</a>

const SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompressionGzip SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompression = "gzip"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20compression%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20compression">Link to this property</a>

<details>

<summary>

DecimalEncoding SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingOptional

</summary>

One of the following:

const SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingNumber SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "number"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding%20%3E%20(member)%200">Link to this property</a>

const SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingString SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "string"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding%20%3E%20(member)%201">Link to this property</a>

const SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingBytes SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "bytes"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding">Link to this property</a>

<details>

<summary>

TimestampFormat SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormatOptional

</summary>

One of the following:

const SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormatRfc3339 SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat = "rfc3339"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20timestamp_format%20%3E%20(member)%200">Link to this property</a>

const SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormatUnixMillis SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat = "unix\_millis"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20timestamp_format%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20timestamp_format">Link to this property</a>

Unstructured boolOptional

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20unstructured">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type SinkNewResponseFormatCloudflarePipelinesSinkParquetFormat struct{…}

</summary>

Type SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatType

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

Compression SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompressionOptional

</summary>

One of the following:

const SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompressionUncompressed SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "uncompressed"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%200">Link to this property</a>

const SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompressionSnappy SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "snappy"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%201">Link to this property</a>

const SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompressionGzip SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "gzip"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%202">Link to this property</a>

const SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompressionZstd SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "zstd"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%203">Link to this property</a>

const SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompressionLz4 SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "lz4"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression">Link to this property</a>

RowGroupBytes int64Optional

formatint64

minimum0

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20row_group_bytes">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20format">Link to this property</a>

<details>

<summary>

Schema SinkNewResponseSchemaOptional

Defines the schema of the events in the data stream.

</summary>

<details>

<summary>

Fields \[]<a href="https://developers.cloudflare.com/api/go/resources/pipelines#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)">SourceField</a>Optional

</summary>

One of the following:

<details>

<summary>

type SourceFieldInt32 struct{…}

</summary>

Type SourceFieldInt32Type

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type SourceFieldInt64 struct{…}

</summary>

Type SourceFieldInt64Type

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

type SourceFieldFloat32 struct{…}

</summary>

Type SourceFieldFloat32Type

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

type SourceFieldFloat64 struct{…}

</summary>

Type SourceFieldFloat64Type

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

type SourceFieldBool struct{…}

</summary>

Type SourceFieldBoolType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

type SourceFieldString struct{…}

</summary>

Type SourceFieldStringType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

type SourceFieldBinary struct{…}

</summary>

Type SourceFieldBinaryType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

type SourceFieldTimestamp struct{…}

</summary>

Type SourceFieldTimestampType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20sql_name">Link to this property</a>

<details>

<summary>

Unit SourceFieldTimestampUnitOptional

</summary>

One of the following:

const SourceFieldTimestampUnitSecond SourceFieldTimestampUnit = "second"

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit%20%3E%20(member)%200">Link to this property</a>

const SourceFieldTimestampUnitMillisecond SourceFieldTimestampUnit = "millisecond"

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit%20%3E%20(member)%201">Link to this property</a>

const SourceFieldTimestampUnitMicrosecond SourceFieldTimestampUnit = "microsecond"

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit%20%3E%20(member)%202">Link to this property</a>

const SourceFieldTimestampUnitNanosecond SourceFieldTimestampUnit = "nanosecond"

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207">Link to this property</a>

<details>

<summary>

type SourceFieldJson struct{…}

</summary>

Type SourceFieldJsonType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208">Link to this property</a>

<details>

<summary>

type SourceFieldStruct struct{…}

</summary>

Type SourceFieldStructType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209">Link to this property</a>

<details>

<summary>

type SourceFieldList struct{…}

</summary>

Type SourceFieldListType

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20type">Link to this property</a>

MetadataKey stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20metadata_key">Link to this property</a>

Name stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20name">Link to this property</a>

Required boolOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20required">Link to this property</a>

SqlName stringOptional

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20schema%20%3E%20(property)%20fields">Link to this property</a>

Inferred boolOptional

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20schema%20%3E%20(property)%20inferred">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)%20%3E%20(property)%20schema">Link to this property</a>

</details>

[Link to this property](<#(resource)%20pipelines.sinks%20%3E%20(model)%20SinkNewResponse%20%3E%20(schema)>)

### Create Sink

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
  "github.com/cloudflare/cloudflare-go/pipelines"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  sink, err := client.Pipelines.Sinks.New(context.TODO(), pipelines.SinkNewParams{
    AccountID: cloudflare.F("0123105f4ecef8ad9ca31a8372d0c353"),
    Name: cloudflare.F("my_sink"),
    Type: cloudflare.F(pipelines.SinkNewParamsTypeR2),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", sink.ID)
}
```

200 example

```
{
  "result": {
    "id": "01234567890123457689012345678901",
    "created_at": "2019-12-27T18:11:19.117Z",
    "modified_at": "2019-12-27T18:11:19.117Z",
    "name": "my_sink",
    "type": "r2",
    "config": {
      "account_id": "account_id",
      "bucket": "bucket",
      "credentials": {
        "access_key_id": "access_key_id",
        "secret_access_key": "secret_access_key"
      },
      "file_naming": {
        "prefix": "prefix",
        "strategy": "serial",
        "suffix": "suffix"
      },
      "jurisdiction": "jurisdiction",
      "partitioning": {
        "time_pattern": "year=%Y/month=%m/day=%d/hour=%H"
      },
      "path": "path",
      "rolling_policy": {
        "file_size_bytes": 0,
        "inactivity_seconds": 1,
        "interval_seconds": 1
      }
    },
    "format": {
      "type": "json",
      "compression": "uncompressed",
      "decimal_encoding": "number",
      "timestamp_format": "rfc3339",
      "unstructured": true
    },
    "schema": {
      "fields": [
        {
          "type": "int32",
          "metadata_key": "metadata_key",
          "name": "name",
          "required": true,
          "sql_name": "sql_name"
        }
      ],
      "inferred": true
    }
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "result": {
    "id": "01234567890123457689012345678901",
    "created_at": "2019-12-27T18:11:19.117Z",
    "modified_at": "2019-12-27T18:11:19.117Z",
    "name": "my_sink",
    "type": "r2",
    "config": {
      "account_id": "account_id",
      "bucket": "bucket",
      "credentials": {
        "access_key_id": "access_key_id",
        "secret_access_key": "secret_access_key"
      },
      "file_naming": {
        "prefix": "prefix",
        "strategy": "serial",
        "suffix": "suffix"
      },
      "jurisdiction": "jurisdiction",
      "partitioning": {
        "time_pattern": "year=%Y/month=%m/day=%d/hour=%H"
      },
      "path": "path",
      "rolling_policy": {
        "file_size_bytes": 0,
        "inactivity_seconds": 1,
        "interval_seconds": 1
      }
    },
    "format": {
      "type": "json",
      "compression": "uncompressed",
      "decimal_encoding": "number",
      "timestamp_format": "rfc3339",
      "unstructured": true
    },
    "schema": {
      "fields": [
        {
          "type": "int32",
          "metadata_key": "metadata_key",
          "name": "name",
          "required": true,
          "sql_name": "sql_name"
        }
      ],
      "inferred": true
    }
  },
  "success": true
}
```