2021-11-17 17:59:00 +00:00
|
|
|
{
|
|
|
|
|
"$schema": "https://json-schema.org/",
|
|
|
|
|
"$id": "https://tooljet.io/dataqueries/Dynamodb.schema.json",
|
|
|
|
|
"title": "Dynamodb datasource",
|
|
|
|
|
"description": "A schema defining Dynamodb datasource",
|
|
|
|
|
"type": "object",
|
2021-11-22 08:22:32 +00:00
|
|
|
"defaults": {},
|
2021-11-17 17:59:00 +00:00
|
|
|
"properties": {
|
|
|
|
|
"operation": {
|
|
|
|
|
"$label": "Operation",
|
|
|
|
|
"$key": "operation",
|
|
|
|
|
"type": "dropdown-component-flip",
|
|
|
|
|
"description": "Single select dropdown for operation",
|
|
|
|
|
"$options": [
|
|
|
|
|
{ "value": "list_tables", "name": "List Tables" },
|
|
|
|
|
{ "value": "get_item", "name": "Get Item" },
|
|
|
|
|
{ "value": "query_table", "name": "Query Table" },
|
|
|
|
|
{ "value": "scan_table", "name": "Scan Table" },
|
|
|
|
|
{ "value": "delete_item", "name": "Delete Item" }
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"get_item": {
|
|
|
|
|
"table": {
|
|
|
|
|
"$label": "Table",
|
|
|
|
|
"$key": "table",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter table"
|
|
|
|
|
},
|
|
|
|
|
"key": {
|
|
|
|
|
"$label": "Key name",
|
|
|
|
|
"$key": "key",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"mode": "javascript",
|
2021-11-21 04:14:26 +00:00
|
|
|
"description": "Enter key name",
|
|
|
|
|
"height": "150px"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"query_table": {
|
|
|
|
|
"query_condition": {
|
|
|
|
|
"$label": "Query condition",
|
|
|
|
|
"$key": "query_condition",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"mode": "javascript",
|
2021-11-21 04:14:26 +00:00
|
|
|
"description": "Enter query condition",
|
|
|
|
|
"height": "150px"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"scan_table": {
|
|
|
|
|
"scan_condition": {
|
|
|
|
|
"$label": "Scan condition",
|
|
|
|
|
"$key": "scan_condition",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"mode": "javascript",
|
2021-11-21 04:14:26 +00:00
|
|
|
"description": "Enter scan condition",
|
|
|
|
|
"height": "150px"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete_item": {
|
|
|
|
|
"table": {
|
|
|
|
|
"$label": "Table",
|
|
|
|
|
"$key": "get_item",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter table"
|
|
|
|
|
},
|
|
|
|
|
"key": {
|
|
|
|
|
"$label": "Key name",
|
|
|
|
|
"$key": "key",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"mode": "javascript",
|
2021-11-21 04:14:26 +00:00
|
|
|
"description": "Enter key name",
|
|
|
|
|
"height": "150px"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|