2021-11-17 17:59:00 +00:00
|
|
|
{
|
2022-01-27 05:25:16 +00:00
|
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
|
2021-11-17 17:59:00 +00:00
|
|
|
"title": "S3 datasource",
|
|
|
|
|
"description": "A schema defining S3 datasource",
|
2022-01-17 07:08:17 +00:00
|
|
|
"type": "cloud-storage",
|
2022-09-26 05:58:54 +00:00
|
|
|
"defaults": {
|
|
|
|
|
"maxKeys": 1000
|
|
|
|
|
},
|
2021-11-17 17:59:00 +00:00
|
|
|
"properties": {
|
|
|
|
|
"operation": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Operation",
|
|
|
|
|
"key": "operation",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "dropdown-component-flip",
|
|
|
|
|
"description": "Single select dropdown for operation",
|
2022-01-17 07:08:17 +00:00
|
|
|
"list": [
|
2023-11-06 08:06:07 +00:00
|
|
|
{
|
|
|
|
|
"value": "create_bucket",
|
|
|
|
|
"name": "Create a new bucket"
|
|
|
|
|
},
|
2022-01-27 05:25:16 +00:00
|
|
|
{
|
|
|
|
|
"value": "get_object",
|
|
|
|
|
"name": "Read object"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "upload_object",
|
|
|
|
|
"name": "Upload object"
|
|
|
|
|
},
|
2022-09-16 16:35:23 +00:00
|
|
|
{
|
|
|
|
|
"value": "remove_object",
|
|
|
|
|
"name": "Remove object"
|
|
|
|
|
},
|
2022-01-27 05:25:16 +00:00
|
|
|
{
|
|
|
|
|
"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"
|
|
|
|
|
}
|
2021-11-17 17:59:00 +00:00
|
|
|
]
|
|
|
|
|
},
|
2023-11-06 08:06:07 +00:00
|
|
|
"create_bucket": {
|
|
|
|
|
"bucket": {
|
|
|
|
|
"label": "Bucket Name",
|
|
|
|
|
"key": "bucket",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enters a name for the new bucket",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter New Bucket Name"
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-11-17 17:59:00 +00:00
|
|
|
"get_object": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter bucket",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter bucket"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"key": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Key",
|
|
|
|
|
"key": "key",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter key",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter key"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"upload_object": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter bucket",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter bucket"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"key": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Key",
|
|
|
|
|
"key": "key",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter key",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter key"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"contentType": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Content Type",
|
|
|
|
|
"key": "contentType",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter content type",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"data": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Upload data",
|
|
|
|
|
"key": "data",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter upload data",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
2022-04-26 07:14:46 +00:00
|
|
|
},
|
|
|
|
|
"encoding": {
|
|
|
|
|
"label": "Encoding",
|
|
|
|
|
"key": "encoding",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter upload data",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "utf8"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"list_objects": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter bucket",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter bucket"
|
2021-12-18 04:27:39 +00:00
|
|
|
},
|
|
|
|
|
"prefix": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Prefix",
|
|
|
|
|
"key": "prefix",
|
2021-12-18 04:27:39 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter prefix",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
2022-09-26 05:58:54 +00:00
|
|
|
},
|
|
|
|
|
"maxKeys": {
|
|
|
|
|
"label": "Max keys",
|
|
|
|
|
"key": "maxKeys",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter max keys",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
2023-08-09 12:31:48 +00:00
|
|
|
"className": "codehinter-plugins"
|
2022-09-26 05:58:54 +00:00
|
|
|
},
|
|
|
|
|
"offset": {
|
|
|
|
|
"label": "Offset",
|
|
|
|
|
"key": "offset",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter offset",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
2023-08-09 12:31:48 +00:00
|
|
|
"className": "codehinter-plugins"
|
2022-09-26 05:58:54 +00:00
|
|
|
},
|
|
|
|
|
"NextContinuationToken": {
|
|
|
|
|
"label": "Next Continuation Token",
|
|
|
|
|
"key": "continuationToken",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter Next Continuation Token",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"signed_url_for_get": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter bucket",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter bucket"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"key": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Key",
|
|
|
|
|
"key": "key",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter key",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter key"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"expiresIn": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Expires in",
|
|
|
|
|
"key": "expiresIn",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"initialValue": "3600",
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter expires in",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"signed_url_for_put": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter bucket",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter bucket"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"key": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Key",
|
|
|
|
|
"key": "key",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter key",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter key"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"expiresIn": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Expires in",
|
|
|
|
|
"key": "expiresIn",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"initialValue": "3600",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter expires in",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"contentType": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Content Type",
|
|
|
|
|
"key": "contentType",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter content type",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
2022-09-16 16:35:23 +00:00
|
|
|
},
|
|
|
|
|
"remove_object": {
|
|
|
|
|
"bucket": {
|
|
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter bucket",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter bucket"
|
|
|
|
|
},
|
|
|
|
|
"key": {
|
|
|
|
|
"label": "Key",
|
|
|
|
|
"key": "key",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter key",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter key"
|
|
|
|
|
}
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
}
|
2022-04-26 07:14:46 +00:00
|
|
|
}
|