|
69 | 69 | "documentation":"<p>Creates a named query in the specified workgroup. Requires that you have access to the workgroup.</p> <p>For code samples using the AWS SDK for Java, see <a href=\"http://docs.aws.amazon.com/athena/latest/ug/code-samples.html\">Examples and Code Samples</a> in the <i>Amazon Athena User Guide</i>.</p>",
|
70 | 70 | "idempotent":true
|
71 | 71 | },
|
| 72 | + "CreatePreparedStatement":{ |
| 73 | + "name":"CreatePreparedStatement", |
| 74 | + "http":{ |
| 75 | + "method":"POST", |
| 76 | + "requestUri":"/" |
| 77 | + }, |
| 78 | + "input":{"shape":"CreatePreparedStatementInput"}, |
| 79 | + "output":{"shape":"CreatePreparedStatementOutput"}, |
| 80 | + "errors":[ |
| 81 | + {"shape":"InternalServerException"}, |
| 82 | + {"shape":"InvalidRequestException"} |
| 83 | + ], |
| 84 | + "documentation":"<p>Creates a prepared statement for use with SQL queries in Athena.</p>" |
| 85 | + }, |
72 | 86 | "CreateWorkGroup":{
|
73 | 87 | "name":"CreateWorkGroup",
|
74 | 88 | "http":{
|
|
112 | 126 | "documentation":"<p>Deletes the named query if you have access to the workgroup in which the query was saved.</p> <p>For code samples using the AWS SDK for Java, see <a href=\"http://docs.aws.amazon.com/athena/latest/ug/code-samples.html\">Examples and Code Samples</a> in the <i>Amazon Athena User Guide</i>.</p>",
|
113 | 127 | "idempotent":true
|
114 | 128 | },
|
| 129 | + "DeletePreparedStatement":{ |
| 130 | + "name":"DeletePreparedStatement", |
| 131 | + "http":{ |
| 132 | + "method":"POST", |
| 133 | + "requestUri":"/" |
| 134 | + }, |
| 135 | + "input":{"shape":"DeletePreparedStatementInput"}, |
| 136 | + "output":{"shape":"DeletePreparedStatementOutput"}, |
| 137 | + "errors":[ |
| 138 | + {"shape":"InternalServerException"}, |
| 139 | + {"shape":"InvalidRequestException"}, |
| 140 | + {"shape":"ResourceNotFoundException"} |
| 141 | + ], |
| 142 | + "documentation":"<p>Deletes the prepared statement with the specified name from the specified workgroup.</p>" |
| 143 | + }, |
115 | 144 | "DeleteWorkGroup":{
|
116 | 145 | "name":"DeleteWorkGroup",
|
117 | 146 | "http":{
|
|
170 | 199 | ],
|
171 | 200 | "documentation":"<p>Returns information about a single query. Requires that you have access to the workgroup in which the query was saved.</p>"
|
172 | 201 | },
|
| 202 | + "GetPreparedStatement":{ |
| 203 | + "name":"GetPreparedStatement", |
| 204 | + "http":{ |
| 205 | + "method":"POST", |
| 206 | + "requestUri":"/" |
| 207 | + }, |
| 208 | + "input":{"shape":"GetPreparedStatementInput"}, |
| 209 | + "output":{"shape":"GetPreparedStatementOutput"}, |
| 210 | + "errors":[ |
| 211 | + {"shape":"InternalServerException"}, |
| 212 | + {"shape":"InvalidRequestException"}, |
| 213 | + {"shape":"ResourceNotFoundException"} |
| 214 | + ], |
| 215 | + "documentation":"<p>Retrieves the prepared statement with the specified name from the specified workgroup.</p>" |
| 216 | + }, |
173 | 217 | "GetQueryExecution":{
|
174 | 218 | "name":"GetQueryExecution",
|
175 | 219 | "http":{
|
|
284 | 328 | ],
|
285 | 329 | "documentation":"<p>Provides a list of available query IDs only for queries saved in the specified workgroup. Requires that you have access to the specified workgroup. If a workgroup is not specified, lists the saved queries for the primary workgroup.</p> <p>For code samples using the AWS SDK for Java, see <a href=\"http://docs.aws.amazon.com/athena/latest/ug/code-samples.html\">Examples and Code Samples</a> in the <i>Amazon Athena User Guide</i>.</p>"
|
286 | 330 | },
|
| 331 | + "ListPreparedStatements":{ |
| 332 | + "name":"ListPreparedStatements", |
| 333 | + "http":{ |
| 334 | + "method":"POST", |
| 335 | + "requestUri":"/" |
| 336 | + }, |
| 337 | + "input":{"shape":"ListPreparedStatementsInput"}, |
| 338 | + "output":{"shape":"ListPreparedStatementsOutput"}, |
| 339 | + "errors":[ |
| 340 | + {"shape":"InternalServerException"}, |
| 341 | + {"shape":"InvalidRequestException"} |
| 342 | + ], |
| 343 | + "documentation":"<p>Lists the prepared statements in the specfied workgroup.</p>" |
| 344 | + }, |
287 | 345 | "ListQueryExecutions":{
|
288 | 346 | "name":"ListQueryExecutions",
|
289 | 347 | "http":{
|
|
417 | 475 | ],
|
418 | 476 | "documentation":"<p>Updates the data catalog that has the specified name.</p>"
|
419 | 477 | },
|
| 478 | + "UpdatePreparedStatement":{ |
| 479 | + "name":"UpdatePreparedStatement", |
| 480 | + "http":{ |
| 481 | + "method":"POST", |
| 482 | + "requestUri":"/" |
| 483 | + }, |
| 484 | + "input":{"shape":"UpdatePreparedStatementInput"}, |
| 485 | + "output":{"shape":"UpdatePreparedStatementOutput"}, |
| 486 | + "errors":[ |
| 487 | + {"shape":"InternalServerException"}, |
| 488 | + {"shape":"InvalidRequestException"}, |
| 489 | + {"shape":"ResourceNotFoundException"} |
| 490 | + ], |
| 491 | + "documentation":"<p>Updates a prepared statement.</p>" |
| 492 | + }, |
420 | 493 | "UpdateWorkGroup":{
|
421 | 494 | "name":"UpdateWorkGroup",
|
422 | 495 | "http":{
|
|
665 | 738 | }
|
666 | 739 | }
|
667 | 740 | },
|
| 741 | + "CreatePreparedStatementInput":{ |
| 742 | + "type":"structure", |
| 743 | + "required":[ |
| 744 | + "StatementName", |
| 745 | + "WorkGroup", |
| 746 | + "QueryStatement" |
| 747 | + ], |
| 748 | + "members":{ |
| 749 | + "StatementName":{ |
| 750 | + "shape":"StatementName", |
| 751 | + "documentation":"<p>The name of the prepared statement.</p>" |
| 752 | + }, |
| 753 | + "WorkGroup":{ |
| 754 | + "shape":"WorkGroupName", |
| 755 | + "documentation":"<p>The name of the workgroup to which the prepared statement belongs.</p>" |
| 756 | + }, |
| 757 | + "QueryStatement":{ |
| 758 | + "shape":"QueryString", |
| 759 | + "documentation":"<p>The query string for the prepared statement.</p>" |
| 760 | + }, |
| 761 | + "Description":{ |
| 762 | + "shape":"DescriptionString", |
| 763 | + "documentation":"<p>The description of the prepared statement.</p>" |
| 764 | + } |
| 765 | + } |
| 766 | + }, |
| 767 | + "CreatePreparedStatementOutput":{ |
| 768 | + "type":"structure", |
| 769 | + "members":{ |
| 770 | + } |
| 771 | + }, |
668 | 772 | "CreateWorkGroupInput":{
|
669 | 773 | "type":"structure",
|
670 | 774 | "required":["Name"],
|
|
814 | 918 | "members":{
|
815 | 919 | }
|
816 | 920 | },
|
| 921 | + "DeletePreparedStatementInput":{ |
| 922 | + "type":"structure", |
| 923 | + "required":[ |
| 924 | + "StatementName", |
| 925 | + "WorkGroup" |
| 926 | + ], |
| 927 | + "members":{ |
| 928 | + "StatementName":{ |
| 929 | + "shape":"StatementName", |
| 930 | + "documentation":"<p>The name of the prepared statement to delete.</p>" |
| 931 | + }, |
| 932 | + "WorkGroup":{ |
| 933 | + "shape":"WorkGroupName", |
| 934 | + "documentation":"<p>The workgroup to which the statement to be deleted belongs.</p>" |
| 935 | + } |
| 936 | + } |
| 937 | + }, |
| 938 | + "DeletePreparedStatementOutput":{ |
| 939 | + "type":"structure", |
| 940 | + "members":{ |
| 941 | + } |
| 942 | + }, |
817 | 943 | "DeleteWorkGroupInput":{
|
818 | 944 | "type":"structure",
|
819 | 945 | "required":["WorkGroup"],
|
|
957 | 1083 | }
|
958 | 1084 | }
|
959 | 1085 | },
|
| 1086 | + "GetPreparedStatementInput":{ |
| 1087 | + "type":"structure", |
| 1088 | + "required":[ |
| 1089 | + "StatementName", |
| 1090 | + "WorkGroup" |
| 1091 | + ], |
| 1092 | + "members":{ |
| 1093 | + "StatementName":{ |
| 1094 | + "shape":"StatementName", |
| 1095 | + "documentation":"<p>The name of the prepared statement to retrieve.</p>" |
| 1096 | + }, |
| 1097 | + "WorkGroup":{ |
| 1098 | + "shape":"WorkGroupName", |
| 1099 | + "documentation":"<p>The workgroup to which the statement to be retrieved belongs.</p>" |
| 1100 | + } |
| 1101 | + } |
| 1102 | + }, |
| 1103 | + "GetPreparedStatementOutput":{ |
| 1104 | + "type":"structure", |
| 1105 | + "members":{ |
| 1106 | + "PreparedStatement":{ |
| 1107 | + "shape":"PreparedStatement", |
| 1108 | + "documentation":"<p>The name of the prepared statement that was retrieved.</p>" |
| 1109 | + } |
| 1110 | + } |
| 1111 | + }, |
960 | 1112 | "GetQueryExecutionInput":{
|
961 | 1113 | "type":"structure",
|
962 | 1114 | "required":["QueryExecutionId"],
|
|
1204 | 1356 | }
|
1205 | 1357 | }
|
1206 | 1358 | },
|
| 1359 | + "ListPreparedStatementsInput":{ |
| 1360 | + "type":"structure", |
| 1361 | + "required":["WorkGroup"], |
| 1362 | + "members":{ |
| 1363 | + "WorkGroup":{ |
| 1364 | + "shape":"WorkGroupName", |
| 1365 | + "documentation":"<p>The workgroup to list the prepared statements for.</p>" |
| 1366 | + }, |
| 1367 | + "NextToken":{ |
| 1368 | + "shape":"Token", |
| 1369 | + "documentation":"<p>A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.</p>" |
| 1370 | + }, |
| 1371 | + "MaxResults":{ |
| 1372 | + "shape":"MaxPreparedStatementsCount", |
| 1373 | + "documentation":"<p>The maximum number of results to return in this request.</p>" |
| 1374 | + } |
| 1375 | + } |
| 1376 | + }, |
| 1377 | + "ListPreparedStatementsOutput":{ |
| 1378 | + "type":"structure", |
| 1379 | + "members":{ |
| 1380 | + "PreparedStatements":{ |
| 1381 | + "shape":"PreparedStatementsList", |
| 1382 | + "documentation":"<p>The list of prepared statements for the workgroup.</p>" |
| 1383 | + }, |
| 1384 | + "NextToken":{ |
| 1385 | + "shape":"Token", |
| 1386 | + "documentation":"<p>A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.</p>" |
| 1387 | + } |
| 1388 | + } |
| 1389 | + }, |
1207 | 1390 | "ListQueryExecutionsInput":{
|
1208 | 1391 | "type":"structure",
|
1209 | 1392 | "members":{
|
|
1358 | 1541 | "max":50,
|
1359 | 1542 | "min":0
|
1360 | 1543 | },
|
| 1544 | + "MaxPreparedStatementsCount":{ |
| 1545 | + "type":"integer", |
| 1546 | + "box":true, |
| 1547 | + "max":50, |
| 1548 | + "min":1 |
| 1549 | + }, |
1361 | 1550 | "MaxQueryExecutionsCount":{
|
1362 | 1551 | "type":"integer",
|
1363 | 1552 | "box":true,
|
|
1455 | 1644 | "type":"string",
|
1456 | 1645 | "max":51200
|
1457 | 1646 | },
|
| 1647 | + "PreparedStatement":{ |
| 1648 | + "type":"structure", |
| 1649 | + "members":{ |
| 1650 | + "StatementName":{ |
| 1651 | + "shape":"StatementName", |
| 1652 | + "documentation":"<p>The name of the prepared statement.</p>" |
| 1653 | + }, |
| 1654 | + "QueryStatement":{ |
| 1655 | + "shape":"QueryString", |
| 1656 | + "documentation":"<p>The query string for the prepared statement.</p>" |
| 1657 | + }, |
| 1658 | + "WorkGroupName":{ |
| 1659 | + "shape":"WorkGroupName", |
| 1660 | + "documentation":"<p>The name of the workgroup to which the prepared statement belongs.</p>" |
| 1661 | + }, |
| 1662 | + "Description":{ |
| 1663 | + "shape":"DescriptionString", |
| 1664 | + "documentation":"<p>The description of the prepared statement.</p>" |
| 1665 | + }, |
| 1666 | + "LastModifiedTime":{ |
| 1667 | + "shape":"Date", |
| 1668 | + "documentation":"<p>The last modified time of the prepared statement.</p>" |
| 1669 | + } |
| 1670 | + }, |
| 1671 | + "documentation":"<p>A prepared SQL statement for use with Athena.</p>" |
| 1672 | + }, |
| 1673 | + "PreparedStatementSummary":{ |
| 1674 | + "type":"structure", |
| 1675 | + "members":{ |
| 1676 | + "StatementName":{ |
| 1677 | + "shape":"StatementName", |
| 1678 | + "documentation":"<p>The name of the prepared statement.</p>" |
| 1679 | + }, |
| 1680 | + "LastModifiedTime":{ |
| 1681 | + "shape":"Date", |
| 1682 | + "documentation":"<p>The last modified time of the prepared statement.</p>" |
| 1683 | + } |
| 1684 | + }, |
| 1685 | + "documentation":"<p>The name and last modified time of the prepared statement.</p>" |
| 1686 | + }, |
| 1687 | + "PreparedStatementsList":{ |
| 1688 | + "type":"list", |
| 1689 | + "member":{"shape":"PreparedStatementSummary"}, |
| 1690 | + "max":50, |
| 1691 | + "min":0 |
| 1692 | + }, |
1458 | 1693 | "QueryExecution":{
|
1459 | 1694 | "type":"structure",
|
1460 | 1695 | "members":{
|
|
1712 | 1947 | }
|
1713 | 1948 | }
|
1714 | 1949 | },
|
| 1950 | + "StatementName":{ |
| 1951 | + "type":"string", |
| 1952 | + "max":256, |
| 1953 | + "min":1, |
| 1954 | + "pattern":"[a-zA-Z_][a-zA-Z0-9_@:]{1,256}" |
| 1955 | + }, |
1715 | 1956 | "StatementType":{
|
1716 | 1957 | "type":"string",
|
1717 | 1958 | "enum":[
|
|
1956 | 2197 | "members":{
|
1957 | 2198 | }
|
1958 | 2199 | },
|
| 2200 | + "UpdatePreparedStatementInput":{ |
| 2201 | + "type":"structure", |
| 2202 | + "required":[ |
| 2203 | + "StatementName", |
| 2204 | + "WorkGroup", |
| 2205 | + "QueryStatement" |
| 2206 | + ], |
| 2207 | + "members":{ |
| 2208 | + "StatementName":{ |
| 2209 | + "shape":"StatementName", |
| 2210 | + "documentation":"<p>The name of the prepared statement.</p>" |
| 2211 | + }, |
| 2212 | + "WorkGroup":{ |
| 2213 | + "shape":"WorkGroupName", |
| 2214 | + "documentation":"<p>The workgroup for the prepared statement.</p>" |
| 2215 | + }, |
| 2216 | + "QueryStatement":{ |
| 2217 | + "shape":"QueryString", |
| 2218 | + "documentation":"<p>The query string for the prepared statement.</p>" |
| 2219 | + }, |
| 2220 | + "Description":{ |
| 2221 | + "shape":"DescriptionString", |
| 2222 | + "documentation":"<p>The description of the prepared statement.</p>" |
| 2223 | + } |
| 2224 | + } |
| 2225 | + }, |
| 2226 | + "UpdatePreparedStatementOutput":{ |
| 2227 | + "type":"structure", |
| 2228 | + "members":{ |
| 2229 | + } |
| 2230 | + }, |
1959 | 2231 | "UpdateWorkGroupInput":{
|
1960 | 2232 | "type":"structure",
|
1961 | 2233 | "required":["WorkGroup"],
|
|
0 commit comments