|
36 | 36 | ],
|
37 | 37 | "idempotent":true
|
38 | 38 | },
|
| 39 | + "GenerateQuery":{ |
| 40 | + "name":"GenerateQuery", |
| 41 | + "http":{ |
| 42 | + "method":"POST", |
| 43 | + "requestUri":"/generateQuery", |
| 44 | + "responseCode":200 |
| 45 | + }, |
| 46 | + "input":{"shape":"GenerateQueryRequest"}, |
| 47 | + "output":{"shape":"GenerateQueryResponse"}, |
| 48 | + "errors":[ |
| 49 | + {"shape":"ConflictException"}, |
| 50 | + {"shape":"ResourceNotFoundException"}, |
| 51 | + {"shape":"ValidationException"}, |
| 52 | + {"shape":"InternalServerException"}, |
| 53 | + {"shape":"DependencyFailedException"}, |
| 54 | + {"shape":"BadGatewayException"}, |
| 55 | + {"shape":"ThrottlingException"}, |
| 56 | + {"shape":"AccessDeniedException"}, |
| 57 | + {"shape":"ServiceQuotaExceededException"} |
| 58 | + ] |
| 59 | + }, |
39 | 60 | "GetAgentMemory":{
|
40 | 61 | "name":"GetAgentMemory",
|
41 | 62 | "http":{
|
|
1177 | 1198 | "type":"list",
|
1178 | 1199 | "member":{"shape":"FunctionDefinition"}
|
1179 | 1200 | },
|
| 1201 | + "GenerateQueryRequest":{ |
| 1202 | + "type":"structure", |
| 1203 | + "required":[ |
| 1204 | + "queryGenerationInput", |
| 1205 | + "transformationConfiguration" |
| 1206 | + ], |
| 1207 | + "members":{ |
| 1208 | + "queryGenerationInput":{"shape":"QueryGenerationInput"}, |
| 1209 | + "transformationConfiguration":{"shape":"TransformationConfiguration"} |
| 1210 | + } |
| 1211 | + }, |
| 1212 | + "GenerateQueryResponse":{ |
| 1213 | + "type":"structure", |
| 1214 | + "members":{ |
| 1215 | + "queries":{"shape":"GeneratedQueries"} |
| 1216 | + } |
| 1217 | + }, |
| 1218 | + "GeneratedQueries":{ |
| 1219 | + "type":"list", |
| 1220 | + "member":{"shape":"GeneratedQuery"}, |
| 1221 | + "min":0 |
| 1222 | + }, |
| 1223 | + "GeneratedQuery":{ |
| 1224 | + "type":"structure", |
| 1225 | + "members":{ |
| 1226 | + "sql":{"shape":"String"}, |
| 1227 | + "type":{"shape":"GeneratedQueryType"} |
| 1228 | + }, |
| 1229 | + "sensitive":true |
| 1230 | + }, |
| 1231 | + "GeneratedQueryType":{ |
| 1232 | + "type":"string", |
| 1233 | + "enum":["REDSHIFT_SQL"] |
| 1234 | + }, |
1180 | 1235 | "GeneratedResponsePart":{
|
1181 | 1236 | "type":"structure",
|
1182 | 1237 | "members":{
|
|
1648 | 1703 | },
|
1649 | 1704 | "union":true
|
1650 | 1705 | },
|
| 1706 | + "InputQueryType":{ |
| 1707 | + "type":"string", |
| 1708 | + "enum":["TEXT"] |
| 1709 | + }, |
1651 | 1710 | "InputText":{
|
1652 | 1711 | "type":"string",
|
1653 | 1712 | "max":25000000,
|
|
1876 | 1935 | "retrievalConfiguration":{"shape":"KnowledgeBaseRetrievalConfiguration"}
|
1877 | 1936 | }
|
1878 | 1937 | },
|
| 1938 | + "KnowledgeBaseArn":{ |
| 1939 | + "type":"string", |
| 1940 | + "max":128, |
| 1941 | + "min":0, |
| 1942 | + "pattern":"^arn:aws(|-cn|-us-gov):bedrock:[a-zA-Z0-9-]*:[0-9]{12}:knowledge-base/[0-9a-zA-Z]+$" |
| 1943 | + }, |
1879 | 1944 | "KnowledgeBaseConfiguration":{
|
1880 | 1945 | "type":"structure",
|
1881 | 1946 | "required":[
|
|
2474 | 2539 | "properties":{"shape":"ParameterList"}
|
2475 | 2540 | }
|
2476 | 2541 | },
|
| 2542 | + "QueryGenerationInput":{ |
| 2543 | + "type":"structure", |
| 2544 | + "required":[ |
| 2545 | + "text", |
| 2546 | + "type" |
| 2547 | + ], |
| 2548 | + "members":{ |
| 2549 | + "text":{"shape":"QueryGenerationInputTextString"}, |
| 2550 | + "type":{"shape":"InputQueryType"} |
| 2551 | + }, |
| 2552 | + "sensitive":true |
| 2553 | + }, |
| 2554 | + "QueryGenerationInputTextString":{ |
| 2555 | + "type":"string", |
| 2556 | + "max":20000, |
| 2557 | + "min":1 |
| 2558 | + }, |
2477 | 2559 | "QueryTransformationConfiguration":{
|
2478 | 2560 | "type":"structure",
|
2479 | 2561 | "required":["type"],
|
2480 | 2562 | "members":{
|
2481 | 2563 | "type":{"shape":"QueryTransformationType"}
|
2482 | 2564 | }
|
2483 | 2565 | },
|
| 2566 | + "QueryTransformationMode":{ |
| 2567 | + "type":"string", |
| 2568 | + "enum":["TEXT_TO_SQL"] |
| 2569 | + }, |
2484 | 2570 | "QueryTransformationType":{
|
2485 | 2571 | "type":"string",
|
2486 | 2572 | "enum":["QUERY_DECOMPOSITION"]
|
|
2771 | 2857 | },
|
2772 | 2858 | "RetrievalResultContent":{
|
2773 | 2859 | "type":"structure",
|
2774 |
| - "required":["text"], |
2775 | 2860 | "members":{
|
2776 |
| - "text":{"shape":"String"} |
| 2861 | + "byteContent":{"shape":"String"}, |
| 2862 | + "row":{"shape":"RetrievalResultContentRow"}, |
| 2863 | + "text":{"shape":"String"}, |
| 2864 | + "type":{"shape":"RetrievalResultContentType"} |
2777 | 2865 | },
|
2778 | 2866 | "sensitive":true
|
2779 | 2867 | },
|
| 2868 | + "RetrievalResultContentColumn":{ |
| 2869 | + "type":"structure", |
| 2870 | + "members":{ |
| 2871 | + "columnName":{"shape":"String"}, |
| 2872 | + "columnValue":{"shape":"String"}, |
| 2873 | + "type":{"shape":"RetrievalResultContentColumnType"} |
| 2874 | + }, |
| 2875 | + "sensitive":true |
| 2876 | + }, |
| 2877 | + "RetrievalResultContentColumnType":{ |
| 2878 | + "type":"string", |
| 2879 | + "enum":[ |
| 2880 | + "BLOB", |
| 2881 | + "BOOLEAN", |
| 2882 | + "DOUBLE", |
| 2883 | + "NULL", |
| 2884 | + "LONG", |
| 2885 | + "STRING" |
| 2886 | + ] |
| 2887 | + }, |
| 2888 | + "RetrievalResultContentRow":{ |
| 2889 | + "type":"list", |
| 2890 | + "member":{"shape":"RetrievalResultContentColumn"}, |
| 2891 | + "sensitive":true |
| 2892 | + }, |
| 2893 | + "RetrievalResultContentType":{ |
| 2894 | + "type":"string", |
| 2895 | + "enum":[ |
| 2896 | + "TEXT", |
| 2897 | + "IMAGE", |
| 2898 | + "ROW" |
| 2899 | + ] |
| 2900 | + }, |
2780 | 2901 | "RetrievalResultCustomDocumentLocation":{
|
2781 | 2902 | "type":"structure",
|
2782 | 2903 | "members":{
|
2783 | 2904 | "id":{"shape":"String"}
|
2784 | 2905 | }
|
2785 | 2906 | },
|
| 2907 | + "RetrievalResultKendraDocumentLocation":{ |
| 2908 | + "type":"structure", |
| 2909 | + "members":{ |
| 2910 | + "uri":{"shape":"String"} |
| 2911 | + } |
| 2912 | + }, |
2786 | 2913 | "RetrievalResultLocation":{
|
2787 | 2914 | "type":"structure",
|
2788 | 2915 | "required":["type"],
|
2789 | 2916 | "members":{
|
2790 | 2917 | "confluenceLocation":{"shape":"RetrievalResultConfluenceLocation"},
|
2791 | 2918 | "customDocumentLocation":{"shape":"RetrievalResultCustomDocumentLocation"},
|
| 2919 | + "kendraDocumentLocation":{"shape":"RetrievalResultKendraDocumentLocation"}, |
2792 | 2920 | "s3Location":{"shape":"RetrievalResultS3Location"},
|
2793 | 2921 | "salesforceLocation":{"shape":"RetrievalResultSalesforceLocation"},
|
2794 | 2922 | "sharePointLocation":{"shape":"RetrievalResultSharePointLocation"},
|
| 2923 | + "sqlLocation":{"shape":"RetrievalResultSqlLocation"}, |
2795 | 2924 | "type":{"shape":"RetrievalResultLocationType"},
|
2796 | 2925 | "webLocation":{"shape":"RetrievalResultWebLocation"}
|
2797 | 2926 | },
|
|
2805 | 2934 | "CONFLUENCE",
|
2806 | 2935 | "SALESFORCE",
|
2807 | 2936 | "SHAREPOINT",
|
2808 |
| - "CUSTOM" |
| 2937 | + "CUSTOM", |
| 2938 | + "KENDRA", |
| 2939 | + "SQL" |
2809 | 2940 | ]
|
2810 | 2941 | },
|
2811 | 2942 | "RetrievalResultMetadata":{
|
|
2844 | 2975 | "url":{"shape":"String"}
|
2845 | 2976 | }
|
2846 | 2977 | },
|
| 2978 | + "RetrievalResultSqlLocation":{ |
| 2979 | + "type":"structure", |
| 2980 | + "members":{ |
| 2981 | + "query":{"shape":"String"} |
| 2982 | + } |
| 2983 | + }, |
2847 | 2984 | "RetrievalResultWebLocation":{
|
2848 | 2985 | "type":"structure",
|
2849 | 2986 | "members":{
|
|
3229 | 3366 | },
|
3230 | 3367 | "sensitive":true
|
3231 | 3368 | },
|
| 3369 | + "TextToSqlConfiguration":{ |
| 3370 | + "type":"structure", |
| 3371 | + "required":["type"], |
| 3372 | + "members":{ |
| 3373 | + "knowledgeBaseConfiguration":{"shape":"TextToSqlKnowledgeBaseConfiguration"}, |
| 3374 | + "type":{"shape":"TextToSqlConfigurationType"} |
| 3375 | + } |
| 3376 | + }, |
| 3377 | + "TextToSqlConfigurationType":{ |
| 3378 | + "type":"string", |
| 3379 | + "enum":["KNOWLEDGE_BASE"] |
| 3380 | + }, |
| 3381 | + "TextToSqlKnowledgeBaseConfiguration":{ |
| 3382 | + "type":"structure", |
| 3383 | + "required":["knowledgeBaseArn"], |
| 3384 | + "members":{ |
| 3385 | + "knowledgeBaseArn":{"shape":"KnowledgeBaseArn"} |
| 3386 | + } |
| 3387 | + }, |
3232 | 3388 | "ThrottlingException":{
|
3233 | 3389 | "type":"structure",
|
3234 | 3390 | "members":{
|
|
3289 | 3445 | "event":true,
|
3290 | 3446 | "sensitive":true
|
3291 | 3447 | },
|
| 3448 | + "TransformationConfiguration":{ |
| 3449 | + "type":"structure", |
| 3450 | + "required":["mode"], |
| 3451 | + "members":{ |
| 3452 | + "mode":{"shape":"QueryTransformationMode"}, |
| 3453 | + "textToSqlConfiguration":{"shape":"TextToSqlConfiguration"} |
| 3454 | + } |
| 3455 | + }, |
3292 | 3456 | "Type":{
|
3293 | 3457 | "type":"string",
|
3294 | 3458 | "enum":[
|
|
0 commit comments