mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-24 15:07:23 +00:00
134 lines
3.5 KiB
JSON
134 lines
3.5 KiB
JSON
|
|
{
|
||
|
|
"$schema": "https://json-schema.org/",
|
||
|
|
"$id": "https://tooljet.io/dataqueries/S3.schema.json",
|
||
|
|
"title": "S3 datasource",
|
||
|
|
"description": "A schema defining S3 datasource",
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"operation": {
|
||
|
|
"$label": "Operation",
|
||
|
|
"$key": "operation",
|
||
|
|
"type": "dropdown-component-flip",
|
||
|
|
"description": "Single select dropdown for operation",
|
||
|
|
"$options": [
|
||
|
|
{ "value": "get_object", "name": "Read object" },
|
||
|
|
{ "value": "upload_object", "name": "Upload object" },
|
||
|
|
{ "value": "list_buckets", "name": "List buckets" },
|
||
|
|
{ "value": "list_objects", "name": "List objects in a bucket" },
|
||
|
|
{ "value": "signed_url_for_get", "name": "Signed url for download" },
|
||
|
|
{ "value": "signed_url_for_put", "name": "Signed url for upload" }
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"get_object": {
|
||
|
|
"bucket": {
|
||
|
|
"$label": "Bucket",
|
||
|
|
"$key": "bucket",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter bucket"
|
||
|
|
},
|
||
|
|
"key": {
|
||
|
|
"$label": "Key",
|
||
|
|
"$key": "key",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter key"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"upload_object": {
|
||
|
|
"bucket": {
|
||
|
|
"$label": "Bucket",
|
||
|
|
"$key": "bucket",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter bucket"
|
||
|
|
},
|
||
|
|
"key": {
|
||
|
|
"$label": "Key",
|
||
|
|
"$key": "key",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter key"
|
||
|
|
},
|
||
|
|
"contentType": {
|
||
|
|
"$label": "Content Type",
|
||
|
|
"$key": "contentType",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter content type"
|
||
|
|
},
|
||
|
|
"data": {
|
||
|
|
"$label": "Upload data",
|
||
|
|
"$key": "data",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter upload data"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"list_objects": {
|
||
|
|
"bucket": {
|
||
|
|
"$label": "Bucket",
|
||
|
|
"$key": "bucket",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter bucket"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"signed_url_for_get": {
|
||
|
|
"bucket": {
|
||
|
|
"$label": "Bucket",
|
||
|
|
"$key": "bucket",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter bucket"
|
||
|
|
},
|
||
|
|
"key": {
|
||
|
|
"$label": "Key",
|
||
|
|
"$key": "key",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter key"
|
||
|
|
},
|
||
|
|
"expiresIn": {
|
||
|
|
"$label": "Expires in",
|
||
|
|
"$key": "expiresIn",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"initialValue": "3600",
|
||
|
|
"description": "Enter expires in"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"signed_url_for_put": {
|
||
|
|
"bucket": {
|
||
|
|
"$label": "Bucket",
|
||
|
|
"$key": "bucket",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter bucket"
|
||
|
|
},
|
||
|
|
"key": {
|
||
|
|
"$label": "Key",
|
||
|
|
"$key": "key",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter key"
|
||
|
|
},
|
||
|
|
"expiresIn": {
|
||
|
|
"$label": "Expires in",
|
||
|
|
"$key": "expiresIn",
|
||
|
|
"type": "codehinter",
|
||
|
|
"initialValue": "3600",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter expires in"
|
||
|
|
},
|
||
|
|
"contentType": {
|
||
|
|
"$label": "Content Type",
|
||
|
|
"$key": "contentType",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter content type"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|