1{ 2 "version":"2.0", 3 "metadata":{ 4 "apiVersion":"2017-05-18", 5 "endpointPrefix":"athena", 6 "jsonVersion":"1.1", 7 "protocol":"json", 8 "serviceFullName":"Amazon Athena", 9 "serviceId":"Athena", 10 "signatureVersion":"v4", 11 "targetPrefix":"AmazonAthena", 12 "uid":"athena-2017-05-18" 13 }, 14 "operations":{ 15 "BatchGetNamedQuery":{ 16 "name":"BatchGetNamedQuery", 17 "http":{ 18 "method":"POST", 19 "requestUri":"/" 20 }, 21 "input":{"shape":"BatchGetNamedQueryInput"}, 22 "output":{"shape":"BatchGetNamedQueryOutput"}, 23 "errors":[ 24 {"shape":"InternalServerException"}, 25 {"shape":"InvalidRequestException"} 26 ] 27 }, 28 "BatchGetQueryExecution":{ 29 "name":"BatchGetQueryExecution", 30 "http":{ 31 "method":"POST", 32 "requestUri":"/" 33 }, 34 "input":{"shape":"BatchGetQueryExecutionInput"}, 35 "output":{"shape":"BatchGetQueryExecutionOutput"}, 36 "errors":[ 37 {"shape":"InternalServerException"}, 38 {"shape":"InvalidRequestException"} 39 ] 40 }, 41 "CreateDataCatalog":{ 42 "name":"CreateDataCatalog", 43 "http":{ 44 "method":"POST", 45 "requestUri":"/" 46 }, 47 "input":{"shape":"CreateDataCatalogInput"}, 48 "output":{"shape":"CreateDataCatalogOutput"}, 49 "errors":[ 50 {"shape":"InternalServerException"}, 51 {"shape":"InvalidRequestException"} 52 ] 53 }, 54 "CreateNamedQuery":{ 55 "name":"CreateNamedQuery", 56 "http":{ 57 "method":"POST", 58 "requestUri":"/" 59 }, 60 "input":{"shape":"CreateNamedQueryInput"}, 61 "output":{"shape":"CreateNamedQueryOutput"}, 62 "errors":[ 63 {"shape":"InternalServerException"}, 64 {"shape":"InvalidRequestException"} 65 ], 66 "idempotent":true 67 }, 68 "CreateWorkGroup":{ 69 "name":"CreateWorkGroup", 70 "http":{ 71 "method":"POST", 72 "requestUri":"/" 73 }, 74 "input":{"shape":"CreateWorkGroupInput"}, 75 "output":{"shape":"CreateWorkGroupOutput"}, 76 "errors":[ 77 {"shape":"InternalServerException"}, 78 {"shape":"InvalidRequestException"} 79 ] 80 }, 81 "DeleteDataCatalog":{ 82 "name":"DeleteDataCatalog", 83 "http":{ 84 "method":"POST", 85 "requestUri":"/" 86 }, 87 "input":{"shape":"DeleteDataCatalogInput"}, 88 "output":{"shape":"DeleteDataCatalogOutput"}, 89 "errors":[ 90 {"shape":"InternalServerException"}, 91 {"shape":"InvalidRequestException"} 92 ] 93 }, 94 "DeleteNamedQuery":{ 95 "name":"DeleteNamedQuery", 96 "http":{ 97 "method":"POST", 98 "requestUri":"/" 99 }, 100 "input":{"shape":"DeleteNamedQueryInput"}, 101 "output":{"shape":"DeleteNamedQueryOutput"}, 102 "errors":[ 103 {"shape":"InternalServerException"}, 104 {"shape":"InvalidRequestException"} 105 ], 106 "idempotent":true 107 }, 108 "DeleteWorkGroup":{ 109 "name":"DeleteWorkGroup", 110 "http":{ 111 "method":"POST", 112 "requestUri":"/" 113 }, 114 "input":{"shape":"DeleteWorkGroupInput"}, 115 "output":{"shape":"DeleteWorkGroupOutput"}, 116 "errors":[ 117 {"shape":"InternalServerException"}, 118 {"shape":"InvalidRequestException"} 119 ], 120 "idempotent":true 121 }, 122 "GetDataCatalog":{ 123 "name":"GetDataCatalog", 124 "http":{ 125 "method":"POST", 126 "requestUri":"/" 127 }, 128 "input":{"shape":"GetDataCatalogInput"}, 129 "output":{"shape":"GetDataCatalogOutput"}, 130 "errors":[ 131 {"shape":"InternalServerException"}, 132 {"shape":"InvalidRequestException"} 133 ] 134 }, 135 "GetDatabase":{ 136 "name":"GetDatabase", 137 "http":{ 138 "method":"POST", 139 "requestUri":"/" 140 }, 141 "input":{"shape":"GetDatabaseInput"}, 142 "output":{"shape":"GetDatabaseOutput"}, 143 "errors":[ 144 {"shape":"InternalServerException"}, 145 {"shape":"InvalidRequestException"}, 146 {"shape":"MetadataException"} 147 ] 148 }, 149 "GetNamedQuery":{ 150 "name":"GetNamedQuery", 151 "http":{ 152 "method":"POST", 153 "requestUri":"/" 154 }, 155 "input":{"shape":"GetNamedQueryInput"}, 156 "output":{"shape":"GetNamedQueryOutput"}, 157 "errors":[ 158 {"shape":"InternalServerException"}, 159 {"shape":"InvalidRequestException"} 160 ] 161 }, 162 "GetQueryExecution":{ 163 "name":"GetQueryExecution", 164 "http":{ 165 "method":"POST", 166 "requestUri":"/" 167 }, 168 "input":{"shape":"GetQueryExecutionInput"}, 169 "output":{"shape":"GetQueryExecutionOutput"}, 170 "errors":[ 171 {"shape":"InternalServerException"}, 172 {"shape":"InvalidRequestException"} 173 ] 174 }, 175 "GetQueryResults":{ 176 "name":"GetQueryResults", 177 "http":{ 178 "method":"POST", 179 "requestUri":"/" 180 }, 181 "input":{"shape":"GetQueryResultsInput"}, 182 "output":{"shape":"GetQueryResultsOutput"}, 183 "errors":[ 184 {"shape":"InternalServerException"}, 185 {"shape":"InvalidRequestException"} 186 ] 187 }, 188 "GetTableMetadata":{ 189 "name":"GetTableMetadata", 190 "http":{ 191 "method":"POST", 192 "requestUri":"/" 193 }, 194 "input":{"shape":"GetTableMetadataInput"}, 195 "output":{"shape":"GetTableMetadataOutput"}, 196 "errors":[ 197 {"shape":"InternalServerException"}, 198 {"shape":"InvalidRequestException"}, 199 {"shape":"MetadataException"} 200 ] 201 }, 202 "GetWorkGroup":{ 203 "name":"GetWorkGroup", 204 "http":{ 205 "method":"POST", 206 "requestUri":"/" 207 }, 208 "input":{"shape":"GetWorkGroupInput"}, 209 "output":{"shape":"GetWorkGroupOutput"}, 210 "errors":[ 211 {"shape":"InternalServerException"}, 212 {"shape":"InvalidRequestException"} 213 ] 214 }, 215 "ListDataCatalogs":{ 216 "name":"ListDataCatalogs", 217 "http":{ 218 "method":"POST", 219 "requestUri":"/" 220 }, 221 "input":{"shape":"ListDataCatalogsInput"}, 222 "output":{"shape":"ListDataCatalogsOutput"}, 223 "errors":[ 224 {"shape":"InternalServerException"}, 225 {"shape":"InvalidRequestException"} 226 ] 227 }, 228 "ListDatabases":{ 229 "name":"ListDatabases", 230 "http":{ 231 "method":"POST", 232 "requestUri":"/" 233 }, 234 "input":{"shape":"ListDatabasesInput"}, 235 "output":{"shape":"ListDatabasesOutput"}, 236 "errors":[ 237 {"shape":"InternalServerException"}, 238 {"shape":"InvalidRequestException"}, 239 {"shape":"MetadataException"} 240 ] 241 }, 242 "ListNamedQueries":{ 243 "name":"ListNamedQueries", 244 "http":{ 245 "method":"POST", 246 "requestUri":"/" 247 }, 248 "input":{"shape":"ListNamedQueriesInput"}, 249 "output":{"shape":"ListNamedQueriesOutput"}, 250 "errors":[ 251 {"shape":"InternalServerException"}, 252 {"shape":"InvalidRequestException"} 253 ] 254 }, 255 "ListQueryExecutions":{ 256 "name":"ListQueryExecutions", 257 "http":{ 258 "method":"POST", 259 "requestUri":"/" 260 }, 261 "input":{"shape":"ListQueryExecutionsInput"}, 262 "output":{"shape":"ListQueryExecutionsOutput"}, 263 "errors":[ 264 {"shape":"InternalServerException"}, 265 {"shape":"InvalidRequestException"} 266 ] 267 }, 268 "ListTableMetadata":{ 269 "name":"ListTableMetadata", 270 "http":{ 271 "method":"POST", 272 "requestUri":"/" 273 }, 274 "input":{"shape":"ListTableMetadataInput"}, 275 "output":{"shape":"ListTableMetadataOutput"}, 276 "errors":[ 277 {"shape":"InternalServerException"}, 278 {"shape":"InvalidRequestException"}, 279 {"shape":"MetadataException"} 280 ] 281 }, 282 "ListTagsForResource":{ 283 "name":"ListTagsForResource", 284 "http":{ 285 "method":"POST", 286 "requestUri":"/" 287 }, 288 "input":{"shape":"ListTagsForResourceInput"}, 289 "output":{"shape":"ListTagsForResourceOutput"}, 290 "errors":[ 291 {"shape":"InternalServerException"}, 292 {"shape":"InvalidRequestException"}, 293 {"shape":"ResourceNotFoundException"} 294 ] 295 }, 296 "ListWorkGroups":{ 297 "name":"ListWorkGroups", 298 "http":{ 299 "method":"POST", 300 "requestUri":"/" 301 }, 302 "input":{"shape":"ListWorkGroupsInput"}, 303 "output":{"shape":"ListWorkGroupsOutput"}, 304 "errors":[ 305 {"shape":"InternalServerException"}, 306 {"shape":"InvalidRequestException"} 307 ] 308 }, 309 "StartQueryExecution":{ 310 "name":"StartQueryExecution", 311 "http":{ 312 "method":"POST", 313 "requestUri":"/" 314 }, 315 "input":{"shape":"StartQueryExecutionInput"}, 316 "output":{"shape":"StartQueryExecutionOutput"}, 317 "errors":[ 318 {"shape":"InternalServerException"}, 319 {"shape":"InvalidRequestException"}, 320 {"shape":"TooManyRequestsException"} 321 ], 322 "idempotent":true 323 }, 324 "StopQueryExecution":{ 325 "name":"StopQueryExecution", 326 "http":{ 327 "method":"POST", 328 "requestUri":"/" 329 }, 330 "input":{"shape":"StopQueryExecutionInput"}, 331 "output":{"shape":"StopQueryExecutionOutput"}, 332 "errors":[ 333 {"shape":"InternalServerException"}, 334 {"shape":"InvalidRequestException"} 335 ], 336 "idempotent":true 337 }, 338 "TagResource":{ 339 "name":"TagResource", 340 "http":{ 341 "method":"POST", 342 "requestUri":"/" 343 }, 344 "input":{"shape":"TagResourceInput"}, 345 "output":{"shape":"TagResourceOutput"}, 346 "errors":[ 347 {"shape":"InternalServerException"}, 348 {"shape":"InvalidRequestException"}, 349 {"shape":"ResourceNotFoundException"} 350 ] 351 }, 352 "UntagResource":{ 353 "name":"UntagResource", 354 "http":{ 355 "method":"POST", 356 "requestUri":"/" 357 }, 358 "input":{"shape":"UntagResourceInput"}, 359 "output":{"shape":"UntagResourceOutput"}, 360 "errors":[ 361 {"shape":"InternalServerException"}, 362 {"shape":"InvalidRequestException"}, 363 {"shape":"ResourceNotFoundException"} 364 ] 365 }, 366 "UpdateDataCatalog":{ 367 "name":"UpdateDataCatalog", 368 "http":{ 369 "method":"POST", 370 "requestUri":"/" 371 }, 372 "input":{"shape":"UpdateDataCatalogInput"}, 373 "output":{"shape":"UpdateDataCatalogOutput"}, 374 "errors":[ 375 {"shape":"InternalServerException"}, 376 {"shape":"InvalidRequestException"} 377 ] 378 }, 379 "UpdateWorkGroup":{ 380 "name":"UpdateWorkGroup", 381 "http":{ 382 "method":"POST", 383 "requestUri":"/" 384 }, 385 "input":{"shape":"UpdateWorkGroupInput"}, 386 "output":{"shape":"UpdateWorkGroupOutput"}, 387 "errors":[ 388 {"shape":"InternalServerException"}, 389 {"shape":"InvalidRequestException"} 390 ] 391 } 392 }, 393 "shapes":{ 394 "AmazonResourceName":{ 395 "type":"string", 396 "max":1011, 397 "min":1 398 }, 399 "BatchGetNamedQueryInput":{ 400 "type":"structure", 401 "required":["NamedQueryIds"], 402 "members":{ 403 "NamedQueryIds":{"shape":"NamedQueryIdList"} 404 } 405 }, 406 "BatchGetNamedQueryOutput":{ 407 "type":"structure", 408 "members":{ 409 "NamedQueries":{"shape":"NamedQueryList"}, 410 "UnprocessedNamedQueryIds":{"shape":"UnprocessedNamedQueryIdList"} 411 } 412 }, 413 "BatchGetQueryExecutionInput":{ 414 "type":"structure", 415 "required":["QueryExecutionIds"], 416 "members":{ 417 "QueryExecutionIds":{"shape":"QueryExecutionIdList"} 418 } 419 }, 420 "BatchGetQueryExecutionOutput":{ 421 "type":"structure", 422 "members":{ 423 "QueryExecutions":{"shape":"QueryExecutionList"}, 424 "UnprocessedQueryExecutionIds":{"shape":"UnprocessedQueryExecutionIdList"} 425 } 426 }, 427 "Boolean":{"type":"boolean"}, 428 "BoxedBoolean":{"type":"boolean"}, 429 "BytesScannedCutoffValue":{ 430 "type":"long", 431 "min":10000000 432 }, 433 "CatalogNameString":{ 434 "type":"string", 435 "max":256, 436 "min":1, 437 "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*" 438 }, 439 "Column":{ 440 "type":"structure", 441 "required":["Name"], 442 "members":{ 443 "Name":{"shape":"NameString"}, 444 "Type":{"shape":"TypeString"}, 445 "Comment":{"shape":"CommentString"} 446 } 447 }, 448 "ColumnInfo":{ 449 "type":"structure", 450 "required":[ 451 "Name", 452 "Type" 453 ], 454 "members":{ 455 "CatalogName":{"shape":"String"}, 456 "SchemaName":{"shape":"String"}, 457 "TableName":{"shape":"String"}, 458 "Name":{"shape":"String"}, 459 "Label":{"shape":"String"}, 460 "Type":{"shape":"String"}, 461 "Precision":{"shape":"Integer"}, 462 "Scale":{"shape":"Integer"}, 463 "Nullable":{"shape":"ColumnNullable"}, 464 "CaseSensitive":{"shape":"Boolean"} 465 } 466 }, 467 "ColumnInfoList":{ 468 "type":"list", 469 "member":{"shape":"ColumnInfo"} 470 }, 471 "ColumnList":{ 472 "type":"list", 473 "member":{"shape":"Column"} 474 }, 475 "ColumnNullable":{ 476 "type":"string", 477 "enum":[ 478 "NOT_NULL", 479 "NULLABLE", 480 "UNKNOWN" 481 ] 482 }, 483 "CommentString":{ 484 "type":"string", 485 "max":255, 486 "min":0, 487 "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*" 488 }, 489 "CreateDataCatalogInput":{ 490 "type":"structure", 491 "required":[ 492 "Name", 493 "Type" 494 ], 495 "members":{ 496 "Name":{"shape":"CatalogNameString"}, 497 "Type":{"shape":"DataCatalogType"}, 498 "Description":{"shape":"DescriptionString"}, 499 "Parameters":{"shape":"ParametersMap"}, 500 "Tags":{"shape":"TagList"} 501 } 502 }, 503 "CreateDataCatalogOutput":{ 504 "type":"structure", 505 "members":{ 506 } 507 }, 508 "CreateNamedQueryInput":{ 509 "type":"structure", 510 "required":[ 511 "Name", 512 "Database", 513 "QueryString" 514 ], 515 "members":{ 516 "Name":{"shape":"NameString"}, 517 "Description":{"shape":"DescriptionString"}, 518 "Database":{"shape":"DatabaseString"}, 519 "QueryString":{"shape":"QueryString"}, 520 "ClientRequestToken":{ 521 "shape":"IdempotencyToken", 522 "idempotencyToken":true 523 }, 524 "WorkGroup":{"shape":"WorkGroupName"} 525 } 526 }, 527 "CreateNamedQueryOutput":{ 528 "type":"structure", 529 "members":{ 530 "NamedQueryId":{"shape":"NamedQueryId"} 531 } 532 }, 533 "CreateWorkGroupInput":{ 534 "type":"structure", 535 "required":["Name"], 536 "members":{ 537 "Name":{"shape":"WorkGroupName"}, 538 "Configuration":{"shape":"WorkGroupConfiguration"}, 539 "Description":{"shape":"WorkGroupDescriptionString"}, 540 "Tags":{"shape":"TagList"} 541 } 542 }, 543 "CreateWorkGroupOutput":{ 544 "type":"structure", 545 "members":{ 546 } 547 }, 548 "DataCatalog":{ 549 "type":"structure", 550 "required":[ 551 "Name", 552 "Type" 553 ], 554 "members":{ 555 "Name":{"shape":"CatalogNameString"}, 556 "Description":{"shape":"DescriptionString"}, 557 "Type":{"shape":"DataCatalogType"}, 558 "Parameters":{"shape":"ParametersMap"} 559 } 560 }, 561 "DataCatalogSummary":{ 562 "type":"structure", 563 "members":{ 564 "CatalogName":{"shape":"CatalogNameString"}, 565 "Type":{"shape":"DataCatalogType"} 566 } 567 }, 568 "DataCatalogSummaryList":{ 569 "type":"list", 570 "member":{"shape":"DataCatalogSummary"} 571 }, 572 "DataCatalogType":{ 573 "type":"string", 574 "enum":[ 575 "LAMBDA", 576 "GLUE", 577 "HIVE" 578 ] 579 }, 580 "Database":{ 581 "type":"structure", 582 "required":["Name"], 583 "members":{ 584 "Name":{"shape":"NameString"}, 585 "Description":{"shape":"DescriptionString"}, 586 "Parameters":{"shape":"ParametersMap"} 587 } 588 }, 589 "DatabaseList":{ 590 "type":"list", 591 "member":{"shape":"Database"} 592 }, 593 "DatabaseString":{ 594 "type":"string", 595 "max":255, 596 "min":1 597 }, 598 "Date":{"type":"timestamp"}, 599 "Datum":{ 600 "type":"structure", 601 "members":{ 602 "VarCharValue":{"shape":"datumString"} 603 } 604 }, 605 "DeleteDataCatalogInput":{ 606 "type":"structure", 607 "required":["Name"], 608 "members":{ 609 "Name":{"shape":"CatalogNameString"} 610 } 611 }, 612 "DeleteDataCatalogOutput":{ 613 "type":"structure", 614 "members":{ 615 } 616 }, 617 "DeleteNamedQueryInput":{ 618 "type":"structure", 619 "required":["NamedQueryId"], 620 "members":{ 621 "NamedQueryId":{ 622 "shape":"NamedQueryId", 623 "idempotencyToken":true 624 } 625 } 626 }, 627 "DeleteNamedQueryOutput":{ 628 "type":"structure", 629 "members":{ 630 } 631 }, 632 "DeleteWorkGroupInput":{ 633 "type":"structure", 634 "required":["WorkGroup"], 635 "members":{ 636 "WorkGroup":{"shape":"WorkGroupName"}, 637 "RecursiveDeleteOption":{"shape":"BoxedBoolean"} 638 } 639 }, 640 "DeleteWorkGroupOutput":{ 641 "type":"structure", 642 "members":{ 643 } 644 }, 645 "DescriptionString":{ 646 "type":"string", 647 "max":1024, 648 "min":1 649 }, 650 "EncryptionConfiguration":{ 651 "type":"structure", 652 "required":["EncryptionOption"], 653 "members":{ 654 "EncryptionOption":{"shape":"EncryptionOption"}, 655 "KmsKey":{"shape":"String"} 656 } 657 }, 658 "EncryptionOption":{ 659 "type":"string", 660 "enum":[ 661 "SSE_S3", 662 "SSE_KMS", 663 "CSE_KMS" 664 ] 665 }, 666 "ErrorCode":{ 667 "type":"string", 668 "max":256, 669 "min":1 670 }, 671 "ErrorMessage":{"type":"string"}, 672 "ExpressionString":{ 673 "type":"string", 674 "max":256, 675 "min":0 676 }, 677 "GetDataCatalogInput":{ 678 "type":"structure", 679 "required":["Name"], 680 "members":{ 681 "Name":{"shape":"CatalogNameString"} 682 } 683 }, 684 "GetDataCatalogOutput":{ 685 "type":"structure", 686 "members":{ 687 "DataCatalog":{"shape":"DataCatalog"} 688 } 689 }, 690 "GetDatabaseInput":{ 691 "type":"structure", 692 "required":[ 693 "CatalogName", 694 "DatabaseName" 695 ], 696 "members":{ 697 "CatalogName":{"shape":"CatalogNameString"}, 698 "DatabaseName":{"shape":"NameString"} 699 } 700 }, 701 "GetDatabaseOutput":{ 702 "type":"structure", 703 "members":{ 704 "Database":{"shape":"Database"} 705 } 706 }, 707 "GetNamedQueryInput":{ 708 "type":"structure", 709 "required":["NamedQueryId"], 710 "members":{ 711 "NamedQueryId":{"shape":"NamedQueryId"} 712 } 713 }, 714 "GetNamedQueryOutput":{ 715 "type":"structure", 716 "members":{ 717 "NamedQuery":{"shape":"NamedQuery"} 718 } 719 }, 720 "GetQueryExecutionInput":{ 721 "type":"structure", 722 "required":["QueryExecutionId"], 723 "members":{ 724 "QueryExecutionId":{"shape":"QueryExecutionId"} 725 } 726 }, 727 "GetQueryExecutionOutput":{ 728 "type":"structure", 729 "members":{ 730 "QueryExecution":{"shape":"QueryExecution"} 731 } 732 }, 733 "GetQueryResultsInput":{ 734 "type":"structure", 735 "required":["QueryExecutionId"], 736 "members":{ 737 "QueryExecutionId":{"shape":"QueryExecutionId"}, 738 "NextToken":{"shape":"Token"}, 739 "MaxResults":{"shape":"MaxQueryResults"} 740 } 741 }, 742 "GetQueryResultsOutput":{ 743 "type":"structure", 744 "members":{ 745 "UpdateCount":{"shape":"Long"}, 746 "ResultSet":{"shape":"ResultSet"}, 747 "NextToken":{"shape":"Token"} 748 } 749 }, 750 "GetTableMetadataInput":{ 751 "type":"structure", 752 "required":[ 753 "CatalogName", 754 "DatabaseName", 755 "TableName" 756 ], 757 "members":{ 758 "CatalogName":{"shape":"CatalogNameString"}, 759 "DatabaseName":{"shape":"NameString"}, 760 "TableName":{"shape":"NameString"} 761 } 762 }, 763 "GetTableMetadataOutput":{ 764 "type":"structure", 765 "members":{ 766 "TableMetadata":{"shape":"TableMetadata"} 767 } 768 }, 769 "GetWorkGroupInput":{ 770 "type":"structure", 771 "required":["WorkGroup"], 772 "members":{ 773 "WorkGroup":{"shape":"WorkGroupName"} 774 } 775 }, 776 "GetWorkGroupOutput":{ 777 "type":"structure", 778 "members":{ 779 "WorkGroup":{"shape":"WorkGroup"} 780 } 781 }, 782 "IdempotencyToken":{ 783 "type":"string", 784 "max":128, 785 "min":32 786 }, 787 "Integer":{"type":"integer"}, 788 "InternalServerException":{ 789 "type":"structure", 790 "members":{ 791 "Message":{"shape":"ErrorMessage"} 792 }, 793 "exception":true, 794 "fault":true 795 }, 796 "InvalidRequestException":{ 797 "type":"structure", 798 "members":{ 799 "AthenaErrorCode":{"shape":"ErrorCode"}, 800 "Message":{"shape":"ErrorMessage"} 801 }, 802 "exception":true 803 }, 804 "KeyString":{ 805 "type":"string", 806 "max":255, 807 "min":1, 808 "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*" 809 }, 810 "ListDataCatalogsInput":{ 811 "type":"structure", 812 "members":{ 813 "NextToken":{"shape":"Token"}, 814 "MaxResults":{"shape":"MaxDataCatalogsCount"} 815 } 816 }, 817 "ListDataCatalogsOutput":{ 818 "type":"structure", 819 "members":{ 820 "DataCatalogsSummary":{"shape":"DataCatalogSummaryList"}, 821 "NextToken":{"shape":"Token"} 822 } 823 }, 824 "ListDatabasesInput":{ 825 "type":"structure", 826 "required":["CatalogName"], 827 "members":{ 828 "CatalogName":{"shape":"CatalogNameString"}, 829 "NextToken":{"shape":"Token"}, 830 "MaxResults":{"shape":"MaxDatabasesCount"} 831 } 832 }, 833 "ListDatabasesOutput":{ 834 "type":"structure", 835 "members":{ 836 "DatabaseList":{"shape":"DatabaseList"}, 837 "NextToken":{"shape":"Token"} 838 } 839 }, 840 "ListNamedQueriesInput":{ 841 "type":"structure", 842 "members":{ 843 "NextToken":{"shape":"Token"}, 844 "MaxResults":{"shape":"MaxNamedQueriesCount"}, 845 "WorkGroup":{"shape":"WorkGroupName"} 846 } 847 }, 848 "ListNamedQueriesOutput":{ 849 "type":"structure", 850 "members":{ 851 "NamedQueryIds":{"shape":"NamedQueryIdList"}, 852 "NextToken":{"shape":"Token"} 853 } 854 }, 855 "ListQueryExecutionsInput":{ 856 "type":"structure", 857 "members":{ 858 "NextToken":{"shape":"Token"}, 859 "MaxResults":{"shape":"MaxQueryExecutionsCount"}, 860 "WorkGroup":{"shape":"WorkGroupName"} 861 } 862 }, 863 "ListQueryExecutionsOutput":{ 864 "type":"structure", 865 "members":{ 866 "QueryExecutionIds":{"shape":"QueryExecutionIdList"}, 867 "NextToken":{"shape":"Token"} 868 } 869 }, 870 "ListTableMetadataInput":{ 871 "type":"structure", 872 "required":[ 873 "CatalogName", 874 "DatabaseName" 875 ], 876 "members":{ 877 "CatalogName":{"shape":"CatalogNameString"}, 878 "DatabaseName":{"shape":"NameString"}, 879 "Expression":{"shape":"ExpressionString"}, 880 "NextToken":{"shape":"Token"}, 881 "MaxResults":{"shape":"MaxTableMetadataCount"} 882 } 883 }, 884 "ListTableMetadataOutput":{ 885 "type":"structure", 886 "members":{ 887 "TableMetadataList":{"shape":"TableMetadataList"}, 888 "NextToken":{"shape":"Token"} 889 } 890 }, 891 "ListTagsForResourceInput":{ 892 "type":"structure", 893 "required":["ResourceARN"], 894 "members":{ 895 "ResourceARN":{"shape":"AmazonResourceName"}, 896 "NextToken":{"shape":"Token"}, 897 "MaxResults":{"shape":"MaxTagsCount"} 898 } 899 }, 900 "ListTagsForResourceOutput":{ 901 "type":"structure", 902 "members":{ 903 "Tags":{"shape":"TagList"}, 904 "NextToken":{"shape":"Token"} 905 } 906 }, 907 "ListWorkGroupsInput":{ 908 "type":"structure", 909 "members":{ 910 "NextToken":{"shape":"Token"}, 911 "MaxResults":{"shape":"MaxWorkGroupsCount"} 912 } 913 }, 914 "ListWorkGroupsOutput":{ 915 "type":"structure", 916 "members":{ 917 "WorkGroups":{"shape":"WorkGroupsList"}, 918 "NextToken":{"shape":"Token"} 919 } 920 }, 921 "Long":{"type":"long"}, 922 "MaxDataCatalogsCount":{ 923 "type":"integer", 924 "box":true, 925 "max":50, 926 "min":2 927 }, 928 "MaxDatabasesCount":{ 929 "type":"integer", 930 "box":true, 931 "max":50, 932 "min":1 933 }, 934 "MaxNamedQueriesCount":{ 935 "type":"integer", 936 "box":true, 937 "max":50, 938 "min":0 939 }, 940 "MaxQueryExecutionsCount":{ 941 "type":"integer", 942 "box":true, 943 "max":50, 944 "min":0 945 }, 946 "MaxQueryResults":{ 947 "type":"integer", 948 "box":true, 949 "max":1000, 950 "min":1 951 }, 952 "MaxTableMetadataCount":{ 953 "type":"integer", 954 "box":true, 955 "max":50, 956 "min":1 957 }, 958 "MaxTagsCount":{ 959 "type":"integer", 960 "box":true, 961 "min":75 962 }, 963 "MaxWorkGroupsCount":{ 964 "type":"integer", 965 "box":true, 966 "max":50, 967 "min":1 968 }, 969 "MetadataException":{ 970 "type":"structure", 971 "members":{ 972 "Message":{"shape":"ErrorMessage"} 973 }, 974 "exception":true 975 }, 976 "NameString":{ 977 "type":"string", 978 "max":128, 979 "min":1 980 }, 981 "NamedQuery":{ 982 "type":"structure", 983 "required":[ 984 "Name", 985 "Database", 986 "QueryString" 987 ], 988 "members":{ 989 "Name":{"shape":"NameString"}, 990 "Description":{"shape":"DescriptionString"}, 991 "Database":{"shape":"DatabaseString"}, 992 "QueryString":{"shape":"QueryString"}, 993 "NamedQueryId":{"shape":"NamedQueryId"}, 994 "WorkGroup":{"shape":"WorkGroupName"} 995 } 996 }, 997 "NamedQueryId":{"type":"string"}, 998 "NamedQueryIdList":{ 999 "type":"list", 1000 "member":{"shape":"NamedQueryId"}, 1001 "max":50, 1002 "min":1 1003 }, 1004 "NamedQueryList":{ 1005 "type":"list", 1006 "member":{"shape":"NamedQuery"} 1007 }, 1008 "ParametersMap":{ 1009 "type":"map", 1010 "key":{"shape":"KeyString"}, 1011 "value":{"shape":"ParametersMapValue"} 1012 }, 1013 "ParametersMapValue":{ 1014 "type":"string", 1015 "max":51200 1016 }, 1017 "QueryExecution":{ 1018 "type":"structure", 1019 "members":{ 1020 "QueryExecutionId":{"shape":"QueryExecutionId"}, 1021 "Query":{"shape":"QueryString"}, 1022 "StatementType":{"shape":"StatementType"}, 1023 "ResultConfiguration":{"shape":"ResultConfiguration"}, 1024 "QueryExecutionContext":{"shape":"QueryExecutionContext"}, 1025 "Status":{"shape":"QueryExecutionStatus"}, 1026 "Statistics":{"shape":"QueryExecutionStatistics"}, 1027 "WorkGroup":{"shape":"WorkGroupName"} 1028 } 1029 }, 1030 "QueryExecutionContext":{ 1031 "type":"structure", 1032 "members":{ 1033 "Database":{"shape":"DatabaseString"}, 1034 "Catalog":{"shape":"CatalogNameString"} 1035 } 1036 }, 1037 "QueryExecutionId":{"type":"string"}, 1038 "QueryExecutionIdList":{ 1039 "type":"list", 1040 "member":{"shape":"QueryExecutionId"}, 1041 "max":50, 1042 "min":1 1043 }, 1044 "QueryExecutionList":{ 1045 "type":"list", 1046 "member":{"shape":"QueryExecution"} 1047 }, 1048 "QueryExecutionState":{ 1049 "type":"string", 1050 "enum":[ 1051 "QUEUED", 1052 "RUNNING", 1053 "SUCCEEDED", 1054 "FAILED", 1055 "CANCELLED" 1056 ] 1057 }, 1058 "QueryExecutionStatistics":{ 1059 "type":"structure", 1060 "members":{ 1061 "EngineExecutionTimeInMillis":{"shape":"Long"}, 1062 "DataScannedInBytes":{"shape":"Long"}, 1063 "DataManifestLocation":{"shape":"String"}, 1064 "TotalExecutionTimeInMillis":{"shape":"Long"}, 1065 "QueryQueueTimeInMillis":{"shape":"Long"}, 1066 "QueryPlanningTimeInMillis":{"shape":"Long"}, 1067 "ServiceProcessingTimeInMillis":{"shape":"Long"} 1068 } 1069 }, 1070 "QueryExecutionStatus":{ 1071 "type":"structure", 1072 "members":{ 1073 "State":{"shape":"QueryExecutionState"}, 1074 "StateChangeReason":{"shape":"String"}, 1075 "SubmissionDateTime":{"shape":"Date"}, 1076 "CompletionDateTime":{"shape":"Date"} 1077 } 1078 }, 1079 "QueryString":{ 1080 "type":"string", 1081 "max":262144, 1082 "min":1 1083 }, 1084 "ResourceNotFoundException":{ 1085 "type":"structure", 1086 "members":{ 1087 "Message":{"shape":"ErrorMessage"}, 1088 "ResourceName":{"shape":"AmazonResourceName"} 1089 }, 1090 "exception":true 1091 }, 1092 "ResultConfiguration":{ 1093 "type":"structure", 1094 "members":{ 1095 "OutputLocation":{"shape":"String"}, 1096 "EncryptionConfiguration":{"shape":"EncryptionConfiguration"} 1097 } 1098 }, 1099 "ResultConfigurationUpdates":{ 1100 "type":"structure", 1101 "members":{ 1102 "OutputLocation":{"shape":"String"}, 1103 "RemoveOutputLocation":{"shape":"BoxedBoolean"}, 1104 "EncryptionConfiguration":{"shape":"EncryptionConfiguration"}, 1105 "RemoveEncryptionConfiguration":{"shape":"BoxedBoolean"} 1106 } 1107 }, 1108 "ResultSet":{ 1109 "type":"structure", 1110 "members":{ 1111 "Rows":{"shape":"RowList"}, 1112 "ResultSetMetadata":{"shape":"ResultSetMetadata"} 1113 } 1114 }, 1115 "ResultSetMetadata":{ 1116 "type":"structure", 1117 "members":{ 1118 "ColumnInfo":{"shape":"ColumnInfoList"} 1119 } 1120 }, 1121 "Row":{ 1122 "type":"structure", 1123 "members":{ 1124 "Data":{"shape":"datumList"} 1125 } 1126 }, 1127 "RowList":{ 1128 "type":"list", 1129 "member":{"shape":"Row"} 1130 }, 1131 "StartQueryExecutionInput":{ 1132 "type":"structure", 1133 "required":["QueryString"], 1134 "members":{ 1135 "QueryString":{"shape":"QueryString"}, 1136 "ClientRequestToken":{ 1137 "shape":"IdempotencyToken", 1138 "idempotencyToken":true 1139 }, 1140 "QueryExecutionContext":{"shape":"QueryExecutionContext"}, 1141 "ResultConfiguration":{"shape":"ResultConfiguration"}, 1142 "WorkGroup":{"shape":"WorkGroupName"} 1143 } 1144 }, 1145 "StartQueryExecutionOutput":{ 1146 "type":"structure", 1147 "members":{ 1148 "QueryExecutionId":{"shape":"QueryExecutionId"} 1149 } 1150 }, 1151 "StatementType":{ 1152 "type":"string", 1153 "enum":[ 1154 "DDL", 1155 "DML", 1156 "UTILITY" 1157 ] 1158 }, 1159 "StopQueryExecutionInput":{ 1160 "type":"structure", 1161 "required":["QueryExecutionId"], 1162 "members":{ 1163 "QueryExecutionId":{ 1164 "shape":"QueryExecutionId", 1165 "idempotencyToken":true 1166 } 1167 } 1168 }, 1169 "StopQueryExecutionOutput":{ 1170 "type":"structure", 1171 "members":{ 1172 } 1173 }, 1174 "String":{"type":"string"}, 1175 "TableMetadata":{ 1176 "type":"structure", 1177 "required":["Name"], 1178 "members":{ 1179 "Name":{"shape":"NameString"}, 1180 "CreateTime":{"shape":"Timestamp"}, 1181 "LastAccessTime":{"shape":"Timestamp"}, 1182 "TableType":{"shape":"TableTypeString"}, 1183 "Columns":{"shape":"ColumnList"}, 1184 "PartitionKeys":{"shape":"ColumnList"}, 1185 "Parameters":{"shape":"ParametersMap"} 1186 } 1187 }, 1188 "TableMetadataList":{ 1189 "type":"list", 1190 "member":{"shape":"TableMetadata"} 1191 }, 1192 "TableTypeString":{ 1193 "type":"string", 1194 "max":255 1195 }, 1196 "Tag":{ 1197 "type":"structure", 1198 "members":{ 1199 "Key":{"shape":"TagKey"}, 1200 "Value":{"shape":"TagValue"} 1201 } 1202 }, 1203 "TagKey":{ 1204 "type":"string", 1205 "max":128, 1206 "min":1 1207 }, 1208 "TagKeyList":{ 1209 "type":"list", 1210 "member":{"shape":"TagKey"} 1211 }, 1212 "TagList":{ 1213 "type":"list", 1214 "member":{"shape":"Tag"} 1215 }, 1216 "TagResourceInput":{ 1217 "type":"structure", 1218 "required":[ 1219 "ResourceARN", 1220 "Tags" 1221 ], 1222 "members":{ 1223 "ResourceARN":{"shape":"AmazonResourceName"}, 1224 "Tags":{"shape":"TagList"} 1225 } 1226 }, 1227 "TagResourceOutput":{ 1228 "type":"structure", 1229 "members":{ 1230 } 1231 }, 1232 "TagValue":{ 1233 "type":"string", 1234 "max":256, 1235 "min":0 1236 }, 1237 "ThrottleReason":{ 1238 "type":"string", 1239 "enum":["CONCURRENT_QUERY_LIMIT_EXCEEDED"] 1240 }, 1241 "Timestamp":{"type":"timestamp"}, 1242 "Token":{ 1243 "type":"string", 1244 "max":1024, 1245 "min":1 1246 }, 1247 "TooManyRequestsException":{ 1248 "type":"structure", 1249 "members":{ 1250 "Message":{"shape":"ErrorMessage"}, 1251 "Reason":{"shape":"ThrottleReason"} 1252 }, 1253 "exception":true 1254 }, 1255 "TypeString":{ 1256 "type":"string", 1257 "max":4096, 1258 "min":0, 1259 "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*" 1260 }, 1261 "UnprocessedNamedQueryId":{ 1262 "type":"structure", 1263 "members":{ 1264 "NamedQueryId":{"shape":"NamedQueryId"}, 1265 "ErrorCode":{"shape":"ErrorCode"}, 1266 "ErrorMessage":{"shape":"ErrorMessage"} 1267 } 1268 }, 1269 "UnprocessedNamedQueryIdList":{ 1270 "type":"list", 1271 "member":{"shape":"UnprocessedNamedQueryId"} 1272 }, 1273 "UnprocessedQueryExecutionId":{ 1274 "type":"structure", 1275 "members":{ 1276 "QueryExecutionId":{"shape":"QueryExecutionId"}, 1277 "ErrorCode":{"shape":"ErrorCode"}, 1278 "ErrorMessage":{"shape":"ErrorMessage"} 1279 } 1280 }, 1281 "UnprocessedQueryExecutionIdList":{ 1282 "type":"list", 1283 "member":{"shape":"UnprocessedQueryExecutionId"} 1284 }, 1285 "UntagResourceInput":{ 1286 "type":"structure", 1287 "required":[ 1288 "ResourceARN", 1289 "TagKeys" 1290 ], 1291 "members":{ 1292 "ResourceARN":{"shape":"AmazonResourceName"}, 1293 "TagKeys":{"shape":"TagKeyList"} 1294 } 1295 }, 1296 "UntagResourceOutput":{ 1297 "type":"structure", 1298 "members":{ 1299 } 1300 }, 1301 "UpdateDataCatalogInput":{ 1302 "type":"structure", 1303 "required":[ 1304 "Name", 1305 "Type" 1306 ], 1307 "members":{ 1308 "Name":{"shape":"CatalogNameString"}, 1309 "Type":{"shape":"DataCatalogType"}, 1310 "Description":{"shape":"DescriptionString"}, 1311 "Parameters":{"shape":"ParametersMap"} 1312 } 1313 }, 1314 "UpdateDataCatalogOutput":{ 1315 "type":"structure", 1316 "members":{ 1317 } 1318 }, 1319 "UpdateWorkGroupInput":{ 1320 "type":"structure", 1321 "required":["WorkGroup"], 1322 "members":{ 1323 "WorkGroup":{"shape":"WorkGroupName"}, 1324 "Description":{"shape":"WorkGroupDescriptionString"}, 1325 "ConfigurationUpdates":{"shape":"WorkGroupConfigurationUpdates"}, 1326 "State":{"shape":"WorkGroupState"} 1327 } 1328 }, 1329 "UpdateWorkGroupOutput":{ 1330 "type":"structure", 1331 "members":{ 1332 } 1333 }, 1334 "WorkGroup":{ 1335 "type":"structure", 1336 "required":["Name"], 1337 "members":{ 1338 "Name":{"shape":"WorkGroupName"}, 1339 "State":{"shape":"WorkGroupState"}, 1340 "Configuration":{"shape":"WorkGroupConfiguration"}, 1341 "Description":{"shape":"WorkGroupDescriptionString"}, 1342 "CreationTime":{"shape":"Date"} 1343 } 1344 }, 1345 "WorkGroupConfiguration":{ 1346 "type":"structure", 1347 "members":{ 1348 "ResultConfiguration":{"shape":"ResultConfiguration"}, 1349 "EnforceWorkGroupConfiguration":{"shape":"BoxedBoolean"}, 1350 "PublishCloudWatchMetricsEnabled":{"shape":"BoxedBoolean"}, 1351 "BytesScannedCutoffPerQuery":{"shape":"BytesScannedCutoffValue"}, 1352 "RequesterPaysEnabled":{"shape":"BoxedBoolean"} 1353 } 1354 }, 1355 "WorkGroupConfigurationUpdates":{ 1356 "type":"structure", 1357 "members":{ 1358 "EnforceWorkGroupConfiguration":{"shape":"BoxedBoolean"}, 1359 "ResultConfigurationUpdates":{"shape":"ResultConfigurationUpdates"}, 1360 "PublishCloudWatchMetricsEnabled":{"shape":"BoxedBoolean"}, 1361 "BytesScannedCutoffPerQuery":{"shape":"BytesScannedCutoffValue"}, 1362 "RemoveBytesScannedCutoffPerQuery":{"shape":"BoxedBoolean"}, 1363 "RequesterPaysEnabled":{"shape":"BoxedBoolean"} 1364 } 1365 }, 1366 "WorkGroupDescriptionString":{ 1367 "type":"string", 1368 "max":1024, 1369 "min":0 1370 }, 1371 "WorkGroupName":{ 1372 "type":"string", 1373 "pattern":"[a-zA-Z0-9._-]{1,128}" 1374 }, 1375 "WorkGroupState":{ 1376 "type":"string", 1377 "enum":[ 1378 "ENABLED", 1379 "DISABLED" 1380 ] 1381 }, 1382 "WorkGroupSummary":{ 1383 "type":"structure", 1384 "members":{ 1385 "Name":{"shape":"WorkGroupName"}, 1386 "State":{"shape":"WorkGroupState"}, 1387 "Description":{"shape":"WorkGroupDescriptionString"}, 1388 "CreationTime":{"shape":"Date"} 1389 } 1390 }, 1391 "WorkGroupsList":{ 1392 "type":"list", 1393 "member":{"shape":"WorkGroupSummary"}, 1394 "max":50, 1395 "min":0 1396 }, 1397 "datumList":{ 1398 "type":"list", 1399 "member":{"shape":"Datum"} 1400 }, 1401 "datumString":{"type":"string"} 1402 } 1403} 1404