ChatWithCloud
ChatWithCloud · Acciones GPT
ChatWithAWS API
POST /aws/runRuns code against AWS environment using users credentials. Every AWS SDK constructor MUST be using credentials stored in 'credentials' variable. Approach writing this code step-by-step. Code MUST return the result. If code fails, rerun with fixed code.
Esquema original API
{
"openapi": "3.0.2",
"paths": {
"/aws/run": {
"post": {
"summary": "Runs code against AWS environment using users credentials. Every AWS SDK constructor MUST be using credentials stored in 'credentials' variable. Approach writing this code step-by-step. Code MUST return the result. If code fails, rerun with fixed code.",
"tags": [],
"parameters": [],
"operationId": "runAwsCode",
"requestBody": {
"description": "Body",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"summary": {
"type": "string",
"description": "Summary of the code, what it does"
},
"code": {
"type": "string",
"description": "Code guidelines:\n- Think step-by-step before writing the code, approach it logically\n- Must written in Javascript (NodeJS) using AWS-SDK V2\n- Must prefer promises over callbacks\n- Should avoid hardcoded values like ARNs\n- Every AWS SDK constructor MUST be using credentials stored in 'credentials' variable\n- DO NOT require or import \"aws-sdk\", it is already available as \"AWS\" variable\n- Data returned from AWS-SDK must be returned as JSON containing only the minimal amount of data that is needed to answer the question. All extra data must be filtered out\n- Code MUST \"return\" a value: string, number, boolean or JSON object. If code does not return anything, it will be considered as FAILED\n- Do not include any comments or description of the code, do not wrap code in the backticks or code blocks\n- Code should in be written in one-line format, without any newlines or extra spaces"
}
},
"required": [
"summary",
"code"
]
}
}
}
},
"responses": {
"200": {
"description": "200",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"result": {
"type": "string"
}
},
"required": [
"result"
]
}
}
}
},
"400": {
"description": "400",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
}
}
}
}
},
"info": {
"title": "ChatWithAWS API",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.chatwithcloud.ai"
}
]
}