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 "documentation":"<p>Returns the details of a single named query or a list of up to 50 queries, which you provide as an array of query ID strings. Requires you to have access to the workgroup in which the queries were saved. Use <a>ListNamedQueriesInput</a> to get the list of named query IDs in the specified workgroup. If information could not be retrieved for a submitted query ID, information about the query ID submitted is listed under <a>UnprocessedNamedQueryId</a>. Named queries differ from executed queries. Use <a>BatchGetQueryExecutionInput</a> to get details about each unique query execution, and <a>ListQueryExecutionsInput</a> to get a list of query execution IDs.</p>" 28 }, 29 "BatchGetQueryExecution":{ 30 "name":"BatchGetQueryExecution", 31 "http":{ 32 "method":"POST", 33 "requestUri":"/" 34 }, 35 "input":{"shape":"BatchGetQueryExecutionInput"}, 36 "output":{"shape":"BatchGetQueryExecutionOutput"}, 37 "errors":[ 38 {"shape":"InternalServerException"}, 39 {"shape":"InvalidRequestException"} 40 ], 41 "documentation":"<p>Returns the details of a single query execution or a list of up to 50 query executions, which you provide as an array of query execution ID strings. Requires you to have access to the workgroup in which the queries ran. To get a list of query execution IDs, use <a>ListQueryExecutionsInput$WorkGroup</a>. Query executions differ from named (saved) queries. Use <a>BatchGetNamedQueryInput</a> to get details about named queries.</p>" 42 }, 43 "CreateDataCatalog":{ 44 "name":"CreateDataCatalog", 45 "http":{ 46 "method":"POST", 47 "requestUri":"/" 48 }, 49 "input":{"shape":"CreateDataCatalogInput"}, 50 "output":{"shape":"CreateDataCatalogOutput"}, 51 "errors":[ 52 {"shape":"InternalServerException"}, 53 {"shape":"InvalidRequestException"} 54 ], 55 "documentation":"<p>Creates (registers) a data catalog with the specified name and properties. Catalogs created are visible to all users of the same Amazon Web Services account.</p>" 56 }, 57 "CreateNamedQuery":{ 58 "name":"CreateNamedQuery", 59 "http":{ 60 "method":"POST", 61 "requestUri":"/" 62 }, 63 "input":{"shape":"CreateNamedQueryInput"}, 64 "output":{"shape":"CreateNamedQueryOutput"}, 65 "errors":[ 66 {"shape":"InternalServerException"}, 67 {"shape":"InvalidRequestException"} 68 ], 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 Amazon Web Services 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 "idempotent":true 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 }, 86 "CreateWorkGroup":{ 87 "name":"CreateWorkGroup", 88 "http":{ 89 "method":"POST", 90 "requestUri":"/" 91 }, 92 "input":{"shape":"CreateWorkGroupInput"}, 93 "output":{"shape":"CreateWorkGroupOutput"}, 94 "errors":[ 95 {"shape":"InternalServerException"}, 96 {"shape":"InvalidRequestException"} 97 ], 98 "documentation":"<p>Creates a workgroup with the specified name.</p>" 99 }, 100 "DeleteDataCatalog":{ 101 "name":"DeleteDataCatalog", 102 "http":{ 103 "method":"POST", 104 "requestUri":"/" 105 }, 106 "input":{"shape":"DeleteDataCatalogInput"}, 107 "output":{"shape":"DeleteDataCatalogOutput"}, 108 "errors":[ 109 {"shape":"InternalServerException"}, 110 {"shape":"InvalidRequestException"} 111 ], 112 "documentation":"<p>Deletes a data catalog.</p>" 113 }, 114 "DeleteNamedQuery":{ 115 "name":"DeleteNamedQuery", 116 "http":{ 117 "method":"POST", 118 "requestUri":"/" 119 }, 120 "input":{"shape":"DeleteNamedQueryInput"}, 121 "output":{"shape":"DeleteNamedQueryOutput"}, 122 "errors":[ 123 {"shape":"InternalServerException"}, 124 {"shape":"InvalidRequestException"} 125 ], 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 Amazon Web Services 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>", 127 "idempotent":true 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 }, 144 "DeleteWorkGroup":{ 145 "name":"DeleteWorkGroup", 146 "http":{ 147 "method":"POST", 148 "requestUri":"/" 149 }, 150 "input":{"shape":"DeleteWorkGroupInput"}, 151 "output":{"shape":"DeleteWorkGroupOutput"}, 152 "errors":[ 153 {"shape":"InternalServerException"}, 154 {"shape":"InvalidRequestException"} 155 ], 156 "documentation":"<p>Deletes the workgroup with the specified name. The primary workgroup cannot be deleted.</p>", 157 "idempotent":true 158 }, 159 "GetDataCatalog":{ 160 "name":"GetDataCatalog", 161 "http":{ 162 "method":"POST", 163 "requestUri":"/" 164 }, 165 "input":{"shape":"GetDataCatalogInput"}, 166 "output":{"shape":"GetDataCatalogOutput"}, 167 "errors":[ 168 {"shape":"InternalServerException"}, 169 {"shape":"InvalidRequestException"} 170 ], 171 "documentation":"<p>Returns the specified data catalog.</p>" 172 }, 173 "GetDatabase":{ 174 "name":"GetDatabase", 175 "http":{ 176 "method":"POST", 177 "requestUri":"/" 178 }, 179 "input":{"shape":"GetDatabaseInput"}, 180 "output":{"shape":"GetDatabaseOutput"}, 181 "errors":[ 182 {"shape":"InternalServerException"}, 183 {"shape":"InvalidRequestException"}, 184 {"shape":"MetadataException"} 185 ], 186 "documentation":"<p>Returns a database object for the specified database and data catalog.</p>" 187 }, 188 "GetNamedQuery":{ 189 "name":"GetNamedQuery", 190 "http":{ 191 "method":"POST", 192 "requestUri":"/" 193 }, 194 "input":{"shape":"GetNamedQueryInput"}, 195 "output":{"shape":"GetNamedQueryOutput"}, 196 "errors":[ 197 {"shape":"InternalServerException"}, 198 {"shape":"InvalidRequestException"} 199 ], 200 "documentation":"<p>Returns information about a single query. Requires that you have access to the workgroup in which the query was saved.</p>" 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 }, 217 "GetQueryExecution":{ 218 "name":"GetQueryExecution", 219 "http":{ 220 "method":"POST", 221 "requestUri":"/" 222 }, 223 "input":{"shape":"GetQueryExecutionInput"}, 224 "output":{"shape":"GetQueryExecutionOutput"}, 225 "errors":[ 226 {"shape":"InternalServerException"}, 227 {"shape":"InvalidRequestException"} 228 ], 229 "documentation":"<p>Returns information about a single execution of a query if you have access to the workgroup in which the query ran. Each time a query executes, information about the query execution is saved with a unique ID.</p>" 230 }, 231 "GetQueryResults":{ 232 "name":"GetQueryResults", 233 "http":{ 234 "method":"POST", 235 "requestUri":"/" 236 }, 237 "input":{"shape":"GetQueryResultsInput"}, 238 "output":{"shape":"GetQueryResultsOutput"}, 239 "errors":[ 240 {"shape":"InternalServerException"}, 241 {"shape":"InvalidRequestException"} 242 ], 243 "documentation":"<p>Streams the results of a single query execution specified by <code>QueryExecutionId</code> from the Athena query results location in Amazon S3. For more information, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/querying.html\">Query Results</a> in the <i>Amazon Athena User Guide</i>. This request does not execute the query but returns results. Use <a>StartQueryExecution</a> to run a query.</p> <p>To stream query results successfully, the IAM principal with permission to call <code>GetQueryResults</code> also must have permissions to the Amazon S3 <code>GetObject</code> action for the Athena query results location.</p> <important> <p>IAM principals with permission to the Amazon S3 <code>GetObject</code> action for the query results location are able to retrieve query results from Amazon S3 even if permission to the <code>GetQueryResults</code> action is denied. To restrict user or role access, ensure that Amazon S3 permissions to the Athena query location are denied.</p> </important>" 244 }, 245 "GetTableMetadata":{ 246 "name":"GetTableMetadata", 247 "http":{ 248 "method":"POST", 249 "requestUri":"/" 250 }, 251 "input":{"shape":"GetTableMetadataInput"}, 252 "output":{"shape":"GetTableMetadataOutput"}, 253 "errors":[ 254 {"shape":"InternalServerException"}, 255 {"shape":"InvalidRequestException"}, 256 {"shape":"MetadataException"} 257 ], 258 "documentation":"<p>Returns table metadata for the specified catalog, database, and table.</p>" 259 }, 260 "GetWorkGroup":{ 261 "name":"GetWorkGroup", 262 "http":{ 263 "method":"POST", 264 "requestUri":"/" 265 }, 266 "input":{"shape":"GetWorkGroupInput"}, 267 "output":{"shape":"GetWorkGroupOutput"}, 268 "errors":[ 269 {"shape":"InternalServerException"}, 270 {"shape":"InvalidRequestException"} 271 ], 272 "documentation":"<p>Returns information about the workgroup with the specified name.</p>" 273 }, 274 "ListDataCatalogs":{ 275 "name":"ListDataCatalogs", 276 "http":{ 277 "method":"POST", 278 "requestUri":"/" 279 }, 280 "input":{"shape":"ListDataCatalogsInput"}, 281 "output":{"shape":"ListDataCatalogsOutput"}, 282 "errors":[ 283 {"shape":"InternalServerException"}, 284 {"shape":"InvalidRequestException"} 285 ], 286 "documentation":"<p>Lists the data catalogs in the current Amazon Web Services account.</p>" 287 }, 288 "ListDatabases":{ 289 "name":"ListDatabases", 290 "http":{ 291 "method":"POST", 292 "requestUri":"/" 293 }, 294 "input":{"shape":"ListDatabasesInput"}, 295 "output":{"shape":"ListDatabasesOutput"}, 296 "errors":[ 297 {"shape":"InternalServerException"}, 298 {"shape":"InvalidRequestException"}, 299 {"shape":"MetadataException"} 300 ], 301 "documentation":"<p>Lists the databases in the specified data catalog.</p>" 302 }, 303 "ListEngineVersions":{ 304 "name":"ListEngineVersions", 305 "http":{ 306 "method":"POST", 307 "requestUri":"/" 308 }, 309 "input":{"shape":"ListEngineVersionsInput"}, 310 "output":{"shape":"ListEngineVersionsOutput"}, 311 "errors":[ 312 {"shape":"InternalServerException"}, 313 {"shape":"InvalidRequestException"} 314 ], 315 "documentation":"<p>Returns a list of engine versions that are available to choose from, including the Auto option.</p>" 316 }, 317 "ListNamedQueries":{ 318 "name":"ListNamedQueries", 319 "http":{ 320 "method":"POST", 321 "requestUri":"/" 322 }, 323 "input":{"shape":"ListNamedQueriesInput"}, 324 "output":{"shape":"ListNamedQueriesOutput"}, 325 "errors":[ 326 {"shape":"InternalServerException"}, 327 {"shape":"InvalidRequestException"} 328 ], 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 Amazon Web Services 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>" 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 }, 345 "ListQueryExecutions":{ 346 "name":"ListQueryExecutions", 347 "http":{ 348 "method":"POST", 349 "requestUri":"/" 350 }, 351 "input":{"shape":"ListQueryExecutionsInput"}, 352 "output":{"shape":"ListQueryExecutionsOutput"}, 353 "errors":[ 354 {"shape":"InternalServerException"}, 355 {"shape":"InvalidRequestException"} 356 ], 357 "documentation":"<p>Provides a list of available query execution IDs for the queries in the specified workgroup. If a workgroup is not specified, returns a list of query execution IDs for the primary workgroup. Requires you to have access to the workgroup in which the queries ran.</p> <p>For code samples using the Amazon Web Services 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>" 358 }, 359 "ListTableMetadata":{ 360 "name":"ListTableMetadata", 361 "http":{ 362 "method":"POST", 363 "requestUri":"/" 364 }, 365 "input":{"shape":"ListTableMetadataInput"}, 366 "output":{"shape":"ListTableMetadataOutput"}, 367 "errors":[ 368 {"shape":"InternalServerException"}, 369 {"shape":"InvalidRequestException"}, 370 {"shape":"MetadataException"} 371 ], 372 "documentation":"<p>Lists the metadata for the tables in the specified data catalog database.</p>" 373 }, 374 "ListTagsForResource":{ 375 "name":"ListTagsForResource", 376 "http":{ 377 "method":"POST", 378 "requestUri":"/" 379 }, 380 "input":{"shape":"ListTagsForResourceInput"}, 381 "output":{"shape":"ListTagsForResourceOutput"}, 382 "errors":[ 383 {"shape":"InternalServerException"}, 384 {"shape":"InvalidRequestException"}, 385 {"shape":"ResourceNotFoundException"} 386 ], 387 "documentation":"<p>Lists the tags associated with an Athena workgroup or data catalog resource.</p>" 388 }, 389 "ListWorkGroups":{ 390 "name":"ListWorkGroups", 391 "http":{ 392 "method":"POST", 393 "requestUri":"/" 394 }, 395 "input":{"shape":"ListWorkGroupsInput"}, 396 "output":{"shape":"ListWorkGroupsOutput"}, 397 "errors":[ 398 {"shape":"InternalServerException"}, 399 {"shape":"InvalidRequestException"} 400 ], 401 "documentation":"<p>Lists available workgroups for the account.</p>" 402 }, 403 "StartQueryExecution":{ 404 "name":"StartQueryExecution", 405 "http":{ 406 "method":"POST", 407 "requestUri":"/" 408 }, 409 "input":{"shape":"StartQueryExecutionInput"}, 410 "output":{"shape":"StartQueryExecutionOutput"}, 411 "errors":[ 412 {"shape":"InternalServerException"}, 413 {"shape":"InvalidRequestException"}, 414 {"shape":"TooManyRequestsException"} 415 ], 416 "documentation":"<p>Runs the SQL query statements contained in the <code>Query</code>. Requires you to have access to the workgroup in which the query ran. Running queries against an external catalog requires <a>GetDataCatalog</a> permission to the catalog. For code samples using the Amazon Web Services 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>", 417 "idempotent":true 418 }, 419 "StopQueryExecution":{ 420 "name":"StopQueryExecution", 421 "http":{ 422 "method":"POST", 423 "requestUri":"/" 424 }, 425 "input":{"shape":"StopQueryExecutionInput"}, 426 "output":{"shape":"StopQueryExecutionOutput"}, 427 "errors":[ 428 {"shape":"InternalServerException"}, 429 {"shape":"InvalidRequestException"} 430 ], 431 "documentation":"<p>Stops a query execution. Requires you to have access to the workgroup in which the query ran.</p> <p>For code samples using the Amazon Web Services 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>", 432 "idempotent":true 433 }, 434 "TagResource":{ 435 "name":"TagResource", 436 "http":{ 437 "method":"POST", 438 "requestUri":"/" 439 }, 440 "input":{"shape":"TagResourceInput"}, 441 "output":{"shape":"TagResourceOutput"}, 442 "errors":[ 443 {"shape":"InternalServerException"}, 444 {"shape":"InvalidRequestException"}, 445 {"shape":"ResourceNotFoundException"} 446 ], 447 "documentation":"<p>Adds one or more tags to an Athena resource. A tag is a label that you assign to a resource. In Athena, a resource can be a workgroup or data catalog. Each tag consists of a key and an optional value, both of which you define. For example, you can use tags to categorize Athena workgroups or data catalogs by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter workgroups or data catalogs in your account. For best practices, see <a href=\"https://aws.amazon.com/answers/account-management/aws-tagging-strategies/\">Tagging Best Practices</a>. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and values are case-sensitive. Tag keys must be unique per resource. If you specify more than one tag, separate them by commas.</p>" 448 }, 449 "UntagResource":{ 450 "name":"UntagResource", 451 "http":{ 452 "method":"POST", 453 "requestUri":"/" 454 }, 455 "input":{"shape":"UntagResourceInput"}, 456 "output":{"shape":"UntagResourceOutput"}, 457 "errors":[ 458 {"shape":"InternalServerException"}, 459 {"shape":"InvalidRequestException"}, 460 {"shape":"ResourceNotFoundException"} 461 ], 462 "documentation":"<p>Removes one or more tags from a data catalog or workgroup resource.</p>" 463 }, 464 "UpdateDataCatalog":{ 465 "name":"UpdateDataCatalog", 466 "http":{ 467 "method":"POST", 468 "requestUri":"/" 469 }, 470 "input":{"shape":"UpdateDataCatalogInput"}, 471 "output":{"shape":"UpdateDataCatalogOutput"}, 472 "errors":[ 473 {"shape":"InternalServerException"}, 474 {"shape":"InvalidRequestException"} 475 ], 476 "documentation":"<p>Updates the data catalog that has the specified name.</p>" 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 }, 493 "UpdateWorkGroup":{ 494 "name":"UpdateWorkGroup", 495 "http":{ 496 "method":"POST", 497 "requestUri":"/" 498 }, 499 "input":{"shape":"UpdateWorkGroupInput"}, 500 "output":{"shape":"UpdateWorkGroupOutput"}, 501 "errors":[ 502 {"shape":"InternalServerException"}, 503 {"shape":"InvalidRequestException"} 504 ], 505 "documentation":"<p>Updates the workgroup with the specified name. The workgroup's name cannot be changed.</p>" 506 } 507 }, 508 "shapes":{ 509 "AmazonResourceName":{ 510 "type":"string", 511 "max":1011, 512 "min":1 513 }, 514 "BatchGetNamedQueryInput":{ 515 "type":"structure", 516 "required":["NamedQueryIds"], 517 "members":{ 518 "NamedQueryIds":{ 519 "shape":"NamedQueryIdList", 520 "documentation":"<p>An array of query IDs.</p>" 521 } 522 } 523 }, 524 "BatchGetNamedQueryOutput":{ 525 "type":"structure", 526 "members":{ 527 "NamedQueries":{ 528 "shape":"NamedQueryList", 529 "documentation":"<p>Information about the named query IDs submitted.</p>" 530 }, 531 "UnprocessedNamedQueryIds":{ 532 "shape":"UnprocessedNamedQueryIdList", 533 "documentation":"<p>Information about provided query IDs.</p>" 534 } 535 } 536 }, 537 "BatchGetQueryExecutionInput":{ 538 "type":"structure", 539 "required":["QueryExecutionIds"], 540 "members":{ 541 "QueryExecutionIds":{ 542 "shape":"QueryExecutionIdList", 543 "documentation":"<p>An array of query execution IDs.</p>" 544 } 545 } 546 }, 547 "BatchGetQueryExecutionOutput":{ 548 "type":"structure", 549 "members":{ 550 "QueryExecutions":{ 551 "shape":"QueryExecutionList", 552 "documentation":"<p>Information about a query execution.</p>" 553 }, 554 "UnprocessedQueryExecutionIds":{ 555 "shape":"UnprocessedQueryExecutionIdList", 556 "documentation":"<p>Information about the query executions that failed to run.</p>" 557 } 558 } 559 }, 560 "Boolean":{"type":"boolean"}, 561 "BoxedBoolean":{"type":"boolean"}, 562 "BytesScannedCutoffValue":{ 563 "type":"long", 564 "min":10000000 565 }, 566 "CatalogNameString":{ 567 "type":"string", 568 "max":256, 569 "min":1, 570 "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*" 571 }, 572 "Column":{ 573 "type":"structure", 574 "required":["Name"], 575 "members":{ 576 "Name":{ 577 "shape":"NameString", 578 "documentation":"<p>The name of the column.</p>" 579 }, 580 "Type":{ 581 "shape":"TypeString", 582 "documentation":"<p>The data type of the column.</p>" 583 }, 584 "Comment":{ 585 "shape":"CommentString", 586 "documentation":"<p>Optional information about the column.</p>" 587 } 588 }, 589 "documentation":"<p>Contains metadata for a column in a table.</p>" 590 }, 591 "ColumnInfo":{ 592 "type":"structure", 593 "required":[ 594 "Name", 595 "Type" 596 ], 597 "members":{ 598 "CatalogName":{ 599 "shape":"String", 600 "documentation":"<p>The catalog to which the query results belong.</p>" 601 }, 602 "SchemaName":{ 603 "shape":"String", 604 "documentation":"<p>The schema name (database name) to which the query results belong.</p>" 605 }, 606 "TableName":{ 607 "shape":"String", 608 "documentation":"<p>The table name for the query results.</p>" 609 }, 610 "Name":{ 611 "shape":"String", 612 "documentation":"<p>The name of the column.</p>" 613 }, 614 "Label":{ 615 "shape":"String", 616 "documentation":"<p>A column label.</p>" 617 }, 618 "Type":{ 619 "shape":"String", 620 "documentation":"<p>The data type of the column.</p>" 621 }, 622 "Precision":{ 623 "shape":"Integer", 624 "documentation":"<p>For <code>DECIMAL</code> data types, specifies the total number of digits, up to 38. For performance reasons, we recommend up to 18 digits.</p>" 625 }, 626 "Scale":{ 627 "shape":"Integer", 628 "documentation":"<p>For <code>DECIMAL</code> data types, specifies the total number of digits in the fractional part of the value. Defaults to 0.</p>" 629 }, 630 "Nullable":{ 631 "shape":"ColumnNullable", 632 "documentation":"<p>Indicates the column's nullable status.</p>" 633 }, 634 "CaseSensitive":{ 635 "shape":"Boolean", 636 "documentation":"<p>Indicates whether values in the column are case-sensitive.</p>" 637 } 638 }, 639 "documentation":"<p>Information about the columns in a query execution result.</p>" 640 }, 641 "ColumnInfoList":{ 642 "type":"list", 643 "member":{"shape":"ColumnInfo"} 644 }, 645 "ColumnList":{ 646 "type":"list", 647 "member":{"shape":"Column"} 648 }, 649 "ColumnNullable":{ 650 "type":"string", 651 "enum":[ 652 "NOT_NULL", 653 "NULLABLE", 654 "UNKNOWN" 655 ] 656 }, 657 "CommentString":{ 658 "type":"string", 659 "max":255, 660 "min":0, 661 "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*" 662 }, 663 "CreateDataCatalogInput":{ 664 "type":"structure", 665 "required":[ 666 "Name", 667 "Type" 668 ], 669 "members":{ 670 "Name":{ 671 "shape":"CatalogNameString", 672 "documentation":"<p>The name of the data catalog to create. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.</p>" 673 }, 674 "Type":{ 675 "shape":"DataCatalogType", 676 "documentation":"<p>The type of data catalog to create: <code>LAMBDA</code> for a federated catalog, <code>HIVE</code> for an external hive metastore, or <code>GLUE</code> for an Glue Data Catalog.</p>" 677 }, 678 "Description":{ 679 "shape":"DescriptionString", 680 "documentation":"<p>A description of the data catalog to be created.</p>" 681 }, 682 "Parameters":{ 683 "shape":"ParametersMap", 684 "documentation":"<p>Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type. </p> <ul> <li> <p>For the <code>HIVE</code> data catalog type, use the following syntax. The <code>metadata-function</code> parameter is required. <code>The sdk-version</code> parameter is optional and defaults to the currently supported version.</p> <p> <code>metadata-function=<i>lambda_arn</i>, sdk-version=<i>version_number</i> </code> </p> </li> <li> <p>For the <code>LAMBDA</code> data catalog type, use one of the following sets of required parameters, but not both.</p> <ul> <li> <p>If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.</p> <p> <code>metadata-function=<i>lambda_arn</i>, record-function=<i>lambda_arn</i> </code> </p> </li> <li> <p> If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.</p> <p> <code>function=<i>lambda_arn</i> </code> </p> </li> </ul> </li> <li> <p>The <code>GLUE</code> type takes a catalog ID parameter and is required. The <code> <i>catalog_id</i> </code> is the account ID of the Amazon Web Services account to which the Glue Data Catalog belongs.</p> <p> <code>catalog-id=<i>catalog_id</i> </code> </p> <ul> <li> <p>The <code>GLUE</code> data catalog type also applies to the default <code>AwsDataCatalog</code> that already exists in your account, of which you can have only one and cannot modify.</p> </li> <li> <p>Queries that specify a Glue Data Catalog other than the default <code>AwsDataCatalog</code> must be run on Athena engine version 2.</p> </li> <li> <p>In Regions where Athena engine version 2 is not available, creating new Glue data catalogs results in an <code>INVALID_INPUT</code> error.</p> </li> </ul> </li> </ul>" 685 }, 686 "Tags":{ 687 "shape":"TagList", 688 "documentation":"<p>A list of comma separated tags to add to the data catalog that is created.</p>" 689 } 690 } 691 }, 692 "CreateDataCatalogOutput":{ 693 "type":"structure", 694 "members":{ 695 } 696 }, 697 "CreateNamedQueryInput":{ 698 "type":"structure", 699 "required":[ 700 "Name", 701 "Database", 702 "QueryString" 703 ], 704 "members":{ 705 "Name":{ 706 "shape":"NameString", 707 "documentation":"<p>The query name.</p>" 708 }, 709 "Description":{ 710 "shape":"DescriptionString", 711 "documentation":"<p>The query description.</p>" 712 }, 713 "Database":{ 714 "shape":"DatabaseString", 715 "documentation":"<p>The database to which the query belongs.</p>" 716 }, 717 "QueryString":{ 718 "shape":"QueryString", 719 "documentation":"<p>The contents of the query with all query statements.</p>" 720 }, 721 "ClientRequestToken":{ 722 "shape":"IdempotencyToken", 723 "documentation":"<p>A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another <code>CreateNamedQuery</code> request is received, the same response is returned and another query is not created. If a parameter has changed, for example, the <code>QueryString</code>, an error is returned.</p> <important> <p>This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.</p> </important>", 724 "idempotencyToken":true 725 }, 726 "WorkGroup":{ 727 "shape":"WorkGroupName", 728 "documentation":"<p>The name of the workgroup in which the named query is being created.</p>" 729 } 730 } 731 }, 732 "CreateNamedQueryOutput":{ 733 "type":"structure", 734 "members":{ 735 "NamedQueryId":{ 736 "shape":"NamedQueryId", 737 "documentation":"<p>The unique ID of the query.</p>" 738 } 739 } 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 }, 772 "CreateWorkGroupInput":{ 773 "type":"structure", 774 "required":["Name"], 775 "members":{ 776 "Name":{ 777 "shape":"WorkGroupName", 778 "documentation":"<p>The workgroup name.</p>" 779 }, 780 "Configuration":{ 781 "shape":"WorkGroupConfiguration", 782 "documentation":"<p>The configuration for the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption configuration, if any, used for encrypting query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, the limit for the amount of bytes scanned (cutoff) per query, if it is specified, and whether workgroup's settings (specified with <code>EnforceWorkGroupConfiguration</code>) in the <code>WorkGroupConfiguration</code> override client-side settings. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a>.</p>" 783 }, 784 "Description":{ 785 "shape":"WorkGroupDescriptionString", 786 "documentation":"<p>The workgroup description.</p>" 787 }, 788 "Tags":{ 789 "shape":"TagList", 790 "documentation":"<p>A list of comma separated tags to add to the workgroup that is created.</p>" 791 } 792 } 793 }, 794 "CreateWorkGroupOutput":{ 795 "type":"structure", 796 "members":{ 797 } 798 }, 799 "DataCatalog":{ 800 "type":"structure", 801 "required":[ 802 "Name", 803 "Type" 804 ], 805 "members":{ 806 "Name":{ 807 "shape":"CatalogNameString", 808 "documentation":"<p>The name of the data catalog. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.</p>" 809 }, 810 "Description":{ 811 "shape":"DescriptionString", 812 "documentation":"<p>An optional description of the data catalog.</p>" 813 }, 814 "Type":{ 815 "shape":"DataCatalogType", 816 "documentation":"<p>The type of data catalog to create: <code>LAMBDA</code> for a federated catalog, <code>HIVE</code> for an external hive metastore, or <code>GLUE</code> for an Glue Data Catalog.</p>" 817 }, 818 "Parameters":{ 819 "shape":"ParametersMap", 820 "documentation":"<p>Specifies the Lambda function or functions to use for the data catalog. This is a mapping whose values depend on the catalog type. </p> <ul> <li> <p>For the <code>HIVE</code> data catalog type, use the following syntax. The <code>metadata-function</code> parameter is required. <code>The sdk-version</code> parameter is optional and defaults to the currently supported version.</p> <p> <code>metadata-function=<i>lambda_arn</i>, sdk-version=<i>version_number</i> </code> </p> </li> <li> <p>For the <code>LAMBDA</code> data catalog type, use one of the following sets of required parameters, but not both.</p> <ul> <li> <p>If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.</p> <p> <code>metadata-function=<i>lambda_arn</i>, record-function=<i>lambda_arn</i> </code> </p> </li> <li> <p> If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.</p> <p> <code>function=<i>lambda_arn</i> </code> </p> </li> </ul> </li> <li> <p>The <code>GLUE</code> type takes a catalog ID parameter and is required. The <code> <i>catalog_id</i> </code> is the account ID of the Amazon Web Services account to which the Glue catalog belongs.</p> <p> <code>catalog-id=<i>catalog_id</i> </code> </p> <ul> <li> <p>The <code>GLUE</code> data catalog type also applies to the default <code>AwsDataCatalog</code> that already exists in your account, of which you can have only one and cannot modify.</p> </li> <li> <p>Queries that specify a Glue Data Catalog other than the default <code>AwsDataCatalog</code> must be run on Athena engine version 2.</p> </li> </ul> </li> </ul>" 821 } 822 }, 823 "documentation":"<p>Contains information about a data catalog in an Amazon Web Services account.</p>" 824 }, 825 "DataCatalogSummary":{ 826 "type":"structure", 827 "members":{ 828 "CatalogName":{ 829 "shape":"CatalogNameString", 830 "documentation":"<p>The name of the data catalog.</p>" 831 }, 832 "Type":{ 833 "shape":"DataCatalogType", 834 "documentation":"<p>The data catalog type.</p>" 835 } 836 }, 837 "documentation":"<p>The summary information for the data catalog, which includes its name and type.</p>" 838 }, 839 "DataCatalogSummaryList":{ 840 "type":"list", 841 "member":{"shape":"DataCatalogSummary"} 842 }, 843 "DataCatalogType":{ 844 "type":"string", 845 "enum":[ 846 "LAMBDA", 847 "GLUE", 848 "HIVE" 849 ] 850 }, 851 "Database":{ 852 "type":"structure", 853 "required":["Name"], 854 "members":{ 855 "Name":{ 856 "shape":"NameString", 857 "documentation":"<p>The name of the database.</p>" 858 }, 859 "Description":{ 860 "shape":"DescriptionString", 861 "documentation":"<p>An optional description of the database.</p>" 862 }, 863 "Parameters":{ 864 "shape":"ParametersMap", 865 "documentation":"<p>A set of custom key/value pairs.</p>" 866 } 867 }, 868 "documentation":"<p>Contains metadata information for a database in a data catalog.</p>" 869 }, 870 "DatabaseList":{ 871 "type":"list", 872 "member":{"shape":"Database"} 873 }, 874 "DatabaseString":{ 875 "type":"string", 876 "max":255, 877 "min":1 878 }, 879 "Date":{"type":"timestamp"}, 880 "Datum":{ 881 "type":"structure", 882 "members":{ 883 "VarCharValue":{ 884 "shape":"datumString", 885 "documentation":"<p>The value of the datum.</p>" 886 } 887 }, 888 "documentation":"<p>A piece of data (a field in the table).</p>" 889 }, 890 "DeleteDataCatalogInput":{ 891 "type":"structure", 892 "required":["Name"], 893 "members":{ 894 "Name":{ 895 "shape":"CatalogNameString", 896 "documentation":"<p>The name of the data catalog to delete.</p>" 897 } 898 } 899 }, 900 "DeleteDataCatalogOutput":{ 901 "type":"structure", 902 "members":{ 903 } 904 }, 905 "DeleteNamedQueryInput":{ 906 "type":"structure", 907 "required":["NamedQueryId"], 908 "members":{ 909 "NamedQueryId":{ 910 "shape":"NamedQueryId", 911 "documentation":"<p>The unique ID of the query to delete.</p>", 912 "idempotencyToken":true 913 } 914 } 915 }, 916 "DeleteNamedQueryOutput":{ 917 "type":"structure", 918 "members":{ 919 } 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 }, 943 "DeleteWorkGroupInput":{ 944 "type":"structure", 945 "required":["WorkGroup"], 946 "members":{ 947 "WorkGroup":{ 948 "shape":"WorkGroupName", 949 "documentation":"<p>The unique name of the workgroup to delete.</p>" 950 }, 951 "RecursiveDeleteOption":{ 952 "shape":"BoxedBoolean", 953 "documentation":"<p>The option to delete the workgroup and its contents even if the workgroup contains any named queries or query executions.</p>" 954 } 955 } 956 }, 957 "DeleteWorkGroupOutput":{ 958 "type":"structure", 959 "members":{ 960 } 961 }, 962 "DescriptionString":{ 963 "type":"string", 964 "max":1024, 965 "min":1 966 }, 967 "EncryptionConfiguration":{ 968 "type":"structure", 969 "required":["EncryptionOption"], 970 "members":{ 971 "EncryptionOption":{ 972 "shape":"EncryptionOption", 973 "documentation":"<p>Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (<code>SSE-S3</code>), server-side encryption with KMS-managed keys (<code>SSE-KMS</code>), or client-side encryption with KMS-managed keys (CSE-KMS) is used.</p> <p>If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup. </p>" 974 }, 975 "KmsKey":{ 976 "shape":"String", 977 "documentation":"<p>For <code>SSE-KMS</code> and <code>CSE-KMS</code>, this is the KMS key ARN or ID.</p>" 978 } 979 }, 980 "documentation":"<p>If query results are encrypted in Amazon S3, indicates the encryption option used (for example, <code>SSE-KMS</code> or <code>CSE-KMS</code>) and key information.</p>" 981 }, 982 "EncryptionOption":{ 983 "type":"string", 984 "enum":[ 985 "SSE_S3", 986 "SSE_KMS", 987 "CSE_KMS" 988 ] 989 }, 990 "EngineVersion":{ 991 "type":"structure", 992 "members":{ 993 "SelectedEngineVersion":{ 994 "shape":"NameString", 995 "documentation":"<p>The engine version requested by the user. Possible values are determined by the output of <code>ListEngineVersions</code>, including Auto. The default is Auto.</p>" 996 }, 997 "EffectiveEngineVersion":{ 998 "shape":"NameString", 999 "documentation":"<p>Read only. The engine version on which the query runs. If the user requests a valid engine version other than Auto, the effective engine version is the same as the engine version that the user requested. If the user requests Auto, the effective engine version is chosen by Athena. When a request to update the engine version is made by a <code>CreateWorkGroup</code> or <code>UpdateWorkGroup</code> operation, the <code>EffectiveEngineVersion</code> field is ignored.</p>" 1000 } 1001 }, 1002 "documentation":"<p>The Athena engine version for running queries.</p>" 1003 }, 1004 "EngineVersionsList":{ 1005 "type":"list", 1006 "member":{"shape":"EngineVersion"}, 1007 "max":10, 1008 "min":0 1009 }, 1010 "ErrorCode":{ 1011 "type":"string", 1012 "documentation":"<p>The error code returned when the query execution failed to process, or when the processing request for the named query failed.</p>", 1013 "max":256, 1014 "min":1 1015 }, 1016 "ErrorMessage":{"type":"string"}, 1017 "ExpressionString":{ 1018 "type":"string", 1019 "max":256, 1020 "min":0 1021 }, 1022 "GetDataCatalogInput":{ 1023 "type":"structure", 1024 "required":["Name"], 1025 "members":{ 1026 "Name":{ 1027 "shape":"CatalogNameString", 1028 "documentation":"<p>The name of the data catalog to return.</p>" 1029 } 1030 } 1031 }, 1032 "GetDataCatalogOutput":{ 1033 "type":"structure", 1034 "members":{ 1035 "DataCatalog":{ 1036 "shape":"DataCatalog", 1037 "documentation":"<p>The data catalog returned.</p>" 1038 } 1039 } 1040 }, 1041 "GetDatabaseInput":{ 1042 "type":"structure", 1043 "required":[ 1044 "CatalogName", 1045 "DatabaseName" 1046 ], 1047 "members":{ 1048 "CatalogName":{ 1049 "shape":"CatalogNameString", 1050 "documentation":"<p>The name of the data catalog that contains the database to return.</p>" 1051 }, 1052 "DatabaseName":{ 1053 "shape":"NameString", 1054 "documentation":"<p>The name of the database to return.</p>" 1055 } 1056 } 1057 }, 1058 "GetDatabaseOutput":{ 1059 "type":"structure", 1060 "members":{ 1061 "Database":{ 1062 "shape":"Database", 1063 "documentation":"<p>The database returned.</p>" 1064 } 1065 } 1066 }, 1067 "GetNamedQueryInput":{ 1068 "type":"structure", 1069 "required":["NamedQueryId"], 1070 "members":{ 1071 "NamedQueryId":{ 1072 "shape":"NamedQueryId", 1073 "documentation":"<p>The unique ID of the query. Use <a>ListNamedQueries</a> to get query IDs.</p>" 1074 } 1075 } 1076 }, 1077 "GetNamedQueryOutput":{ 1078 "type":"structure", 1079 "members":{ 1080 "NamedQuery":{ 1081 "shape":"NamedQuery", 1082 "documentation":"<p>Information about the query.</p>" 1083 } 1084 } 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 }, 1112 "GetQueryExecutionInput":{ 1113 "type":"structure", 1114 "required":["QueryExecutionId"], 1115 "members":{ 1116 "QueryExecutionId":{ 1117 "shape":"QueryExecutionId", 1118 "documentation":"<p>The unique ID of the query execution.</p>" 1119 } 1120 } 1121 }, 1122 "GetQueryExecutionOutput":{ 1123 "type":"structure", 1124 "members":{ 1125 "QueryExecution":{ 1126 "shape":"QueryExecution", 1127 "documentation":"<p>Information about the query execution.</p>" 1128 } 1129 } 1130 }, 1131 "GetQueryResultsInput":{ 1132 "type":"structure", 1133 "required":["QueryExecutionId"], 1134 "members":{ 1135 "QueryExecutionId":{ 1136 "shape":"QueryExecutionId", 1137 "documentation":"<p>The unique ID of the query execution.</p>" 1138 }, 1139 "NextToken":{ 1140 "shape":"Token", 1141 "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>" 1142 }, 1143 "MaxResults":{ 1144 "shape":"MaxQueryResults", 1145 "documentation":"<p>The maximum number of results (rows) to return in this request.</p>" 1146 } 1147 } 1148 }, 1149 "GetQueryResultsOutput":{ 1150 "type":"structure", 1151 "members":{ 1152 "UpdateCount":{ 1153 "shape":"Long", 1154 "documentation":"<p>The number of rows inserted with a <code>CREATE TABLE AS SELECT</code> statement. </p>" 1155 }, 1156 "ResultSet":{ 1157 "shape":"ResultSet", 1158 "documentation":"<p>The results of the query execution.</p>" 1159 }, 1160 "NextToken":{ 1161 "shape":"Token", 1162 "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>" 1163 } 1164 } 1165 }, 1166 "GetTableMetadataInput":{ 1167 "type":"structure", 1168 "required":[ 1169 "CatalogName", 1170 "DatabaseName", 1171 "TableName" 1172 ], 1173 "members":{ 1174 "CatalogName":{ 1175 "shape":"CatalogNameString", 1176 "documentation":"<p>The name of the data catalog that contains the database and table metadata to return.</p>" 1177 }, 1178 "DatabaseName":{ 1179 "shape":"NameString", 1180 "documentation":"<p>The name of the database that contains the table metadata to return.</p>" 1181 }, 1182 "TableName":{ 1183 "shape":"NameString", 1184 "documentation":"<p>The name of the table for which metadata is returned.</p>" 1185 } 1186 } 1187 }, 1188 "GetTableMetadataOutput":{ 1189 "type":"structure", 1190 "members":{ 1191 "TableMetadata":{ 1192 "shape":"TableMetadata", 1193 "documentation":"<p>An object that contains table metadata.</p>" 1194 } 1195 } 1196 }, 1197 "GetWorkGroupInput":{ 1198 "type":"structure", 1199 "required":["WorkGroup"], 1200 "members":{ 1201 "WorkGroup":{ 1202 "shape":"WorkGroupName", 1203 "documentation":"<p>The name of the workgroup.</p>" 1204 } 1205 } 1206 }, 1207 "GetWorkGroupOutput":{ 1208 "type":"structure", 1209 "members":{ 1210 "WorkGroup":{ 1211 "shape":"WorkGroup", 1212 "documentation":"<p>Information about the workgroup.</p>" 1213 } 1214 } 1215 }, 1216 "IdempotencyToken":{ 1217 "type":"string", 1218 "max":128, 1219 "min":32 1220 }, 1221 "Integer":{"type":"integer"}, 1222 "InternalServerException":{ 1223 "type":"structure", 1224 "members":{ 1225 "Message":{"shape":"ErrorMessage"} 1226 }, 1227 "documentation":"<p>Indicates a platform issue, which may be due to a transient condition or outage.</p>", 1228 "exception":true, 1229 "fault":true 1230 }, 1231 "InvalidRequestException":{ 1232 "type":"structure", 1233 "members":{ 1234 "AthenaErrorCode":{"shape":"ErrorCode"}, 1235 "Message":{"shape":"ErrorMessage"} 1236 }, 1237 "documentation":"<p>Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.</p>", 1238 "exception":true 1239 }, 1240 "KeyString":{ 1241 "type":"string", 1242 "max":255, 1243 "min":1, 1244 "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*" 1245 }, 1246 "ListDataCatalogsInput":{ 1247 "type":"structure", 1248 "members":{ 1249 "NextToken":{ 1250 "shape":"Token", 1251 "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 NextToken from the response object of the previous page call.</p>" 1252 }, 1253 "MaxResults":{ 1254 "shape":"MaxDataCatalogsCount", 1255 "documentation":"<p>Specifies the maximum number of data catalogs to return.</p>" 1256 } 1257 } 1258 }, 1259 "ListDataCatalogsOutput":{ 1260 "type":"structure", 1261 "members":{ 1262 "DataCatalogsSummary":{ 1263 "shape":"DataCatalogSummaryList", 1264 "documentation":"<p>A summary list of data catalogs.</p>" 1265 }, 1266 "NextToken":{ 1267 "shape":"Token", 1268 "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 NextToken from the response object of the previous page call.</p>" 1269 } 1270 } 1271 }, 1272 "ListDatabasesInput":{ 1273 "type":"structure", 1274 "required":["CatalogName"], 1275 "members":{ 1276 "CatalogName":{ 1277 "shape":"CatalogNameString", 1278 "documentation":"<p>The name of the data catalog that contains the databases to return.</p>" 1279 }, 1280 "NextToken":{ 1281 "shape":"Token", 1282 "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>" 1283 }, 1284 "MaxResults":{ 1285 "shape":"MaxDatabasesCount", 1286 "documentation":"<p>Specifies the maximum number of results to return.</p>" 1287 } 1288 } 1289 }, 1290 "ListDatabasesOutput":{ 1291 "type":"structure", 1292 "members":{ 1293 "DatabaseList":{ 1294 "shape":"DatabaseList", 1295 "documentation":"<p>A list of databases from a data catalog.</p>" 1296 }, 1297 "NextToken":{ 1298 "shape":"Token", 1299 "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 NextToken from the response object of the previous page call.</p>" 1300 } 1301 } 1302 }, 1303 "ListEngineVersionsInput":{ 1304 "type":"structure", 1305 "members":{ 1306 "NextToken":{ 1307 "shape":"Token", 1308 "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>" 1309 }, 1310 "MaxResults":{ 1311 "shape":"MaxEngineVersionsCount", 1312 "documentation":"<p>The maximum number of engine versions to return in this request.</p>" 1313 } 1314 } 1315 }, 1316 "ListEngineVersionsOutput":{ 1317 "type":"structure", 1318 "members":{ 1319 "EngineVersions":{ 1320 "shape":"EngineVersionsList", 1321 "documentation":"<p>A list of engine versions that are available to choose from.</p>" 1322 }, 1323 "NextToken":{ 1324 "shape":"Token", 1325 "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>" 1326 } 1327 } 1328 }, 1329 "ListNamedQueriesInput":{ 1330 "type":"structure", 1331 "members":{ 1332 "NextToken":{ 1333 "shape":"Token", 1334 "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>" 1335 }, 1336 "MaxResults":{ 1337 "shape":"MaxNamedQueriesCount", 1338 "documentation":"<p>The maximum number of queries to return in this request.</p>" 1339 }, 1340 "WorkGroup":{ 1341 "shape":"WorkGroupName", 1342 "documentation":"<p>The name of the workgroup from which the named queries are being returned. If a workgroup is not specified, the saved queries for the primary workgroup are returned.</p>" 1343 } 1344 } 1345 }, 1346 "ListNamedQueriesOutput":{ 1347 "type":"structure", 1348 "members":{ 1349 "NamedQueryIds":{ 1350 "shape":"NamedQueryIdList", 1351 "documentation":"<p>The list of unique query IDs.</p>" 1352 }, 1353 "NextToken":{ 1354 "shape":"Token", 1355 "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>" 1356 } 1357 } 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 }, 1390 "ListQueryExecutionsInput":{ 1391 "type":"structure", 1392 "members":{ 1393 "NextToken":{ 1394 "shape":"Token", 1395 "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>" 1396 }, 1397 "MaxResults":{ 1398 "shape":"MaxQueryExecutionsCount", 1399 "documentation":"<p>The maximum number of query executions to return in this request.</p>" 1400 }, 1401 "WorkGroup":{ 1402 "shape":"WorkGroupName", 1403 "documentation":"<p>The name of the workgroup from which queries are being returned. If a workgroup is not specified, a list of available query execution IDs for the queries in the primary workgroup is returned.</p>" 1404 } 1405 } 1406 }, 1407 "ListQueryExecutionsOutput":{ 1408 "type":"structure", 1409 "members":{ 1410 "QueryExecutionIds":{ 1411 "shape":"QueryExecutionIdList", 1412 "documentation":"<p>The unique IDs of each query execution as an array of strings.</p>" 1413 }, 1414 "NextToken":{ 1415 "shape":"Token", 1416 "documentation":"<p>A token to be used by the next request if this request is truncated.</p>" 1417 } 1418 } 1419 }, 1420 "ListTableMetadataInput":{ 1421 "type":"structure", 1422 "required":[ 1423 "CatalogName", 1424 "DatabaseName" 1425 ], 1426 "members":{ 1427 "CatalogName":{ 1428 "shape":"CatalogNameString", 1429 "documentation":"<p>The name of the data catalog for which table metadata should be returned.</p>" 1430 }, 1431 "DatabaseName":{ 1432 "shape":"NameString", 1433 "documentation":"<p>The name of the database for which table metadata should be returned.</p>" 1434 }, 1435 "Expression":{ 1436 "shape":"ExpressionString", 1437 "documentation":"<p>A regex filter that pattern-matches table names. If no expression is supplied, metadata for all tables are listed.</p>" 1438 }, 1439 "NextToken":{ 1440 "shape":"Token", 1441 "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 NextToken from the response object of the previous page call.</p>" 1442 }, 1443 "MaxResults":{ 1444 "shape":"MaxTableMetadataCount", 1445 "documentation":"<p>Specifies the maximum number of results to return.</p>" 1446 } 1447 } 1448 }, 1449 "ListTableMetadataOutput":{ 1450 "type":"structure", 1451 "members":{ 1452 "TableMetadataList":{ 1453 "shape":"TableMetadataList", 1454 "documentation":"<p>A list of table metadata.</p>" 1455 }, 1456 "NextToken":{ 1457 "shape":"Token", 1458 "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 NextToken from the response object of the previous page call.</p>" 1459 } 1460 } 1461 }, 1462 "ListTagsForResourceInput":{ 1463 "type":"structure", 1464 "required":["ResourceARN"], 1465 "members":{ 1466 "ResourceARN":{ 1467 "shape":"AmazonResourceName", 1468 "documentation":"<p>Lists the tags for the resource with the specified ARN.</p>" 1469 }, 1470 "NextToken":{ 1471 "shape":"Token", 1472 "documentation":"<p>The token for the next set of results, or null if there are no additional results for this request, where the request lists the tags for the resource with the specified ARN.</p>" 1473 }, 1474 "MaxResults":{ 1475 "shape":"MaxTagsCount", 1476 "documentation":"<p>The maximum number of results to be returned per request that lists the tags for the resource.</p>" 1477 } 1478 } 1479 }, 1480 "ListTagsForResourceOutput":{ 1481 "type":"structure", 1482 "members":{ 1483 "Tags":{ 1484 "shape":"TagList", 1485 "documentation":"<p>The list of tags associated with the specified resource.</p>" 1486 }, 1487 "NextToken":{ 1488 "shape":"Token", 1489 "documentation":"<p>A token to be used by the next request if this request is truncated.</p>" 1490 } 1491 } 1492 }, 1493 "ListWorkGroupsInput":{ 1494 "type":"structure", 1495 "members":{ 1496 "NextToken":{ 1497 "shape":"Token", 1498 "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>" 1499 }, 1500 "MaxResults":{ 1501 "shape":"MaxWorkGroupsCount", 1502 "documentation":"<p>The maximum number of workgroups to return in this request.</p>" 1503 } 1504 } 1505 }, 1506 "ListWorkGroupsOutput":{ 1507 "type":"structure", 1508 "members":{ 1509 "WorkGroups":{ 1510 "shape":"WorkGroupsList", 1511 "documentation":"<p>A list of <a>WorkGroupSummary</a> objects that include the names, descriptions, creation times, and states for each workgroup.</p>" 1512 }, 1513 "NextToken":{ 1514 "shape":"Token", 1515 "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>" 1516 } 1517 } 1518 }, 1519 "Long":{"type":"long"}, 1520 "MaxDataCatalogsCount":{ 1521 "type":"integer", 1522 "box":true, 1523 "max":50, 1524 "min":2 1525 }, 1526 "MaxDatabasesCount":{ 1527 "type":"integer", 1528 "box":true, 1529 "max":50, 1530 "min":1 1531 }, 1532 "MaxEngineVersionsCount":{ 1533 "type":"integer", 1534 "box":true, 1535 "max":10, 1536 "min":1 1537 }, 1538 "MaxNamedQueriesCount":{ 1539 "type":"integer", 1540 "box":true, 1541 "max":50, 1542 "min":0 1543 }, 1544 "MaxPreparedStatementsCount":{ 1545 "type":"integer", 1546 "box":true, 1547 "max":50, 1548 "min":1 1549 }, 1550 "MaxQueryExecutionsCount":{ 1551 "type":"integer", 1552 "box":true, 1553 "max":50, 1554 "min":0 1555 }, 1556 "MaxQueryResults":{ 1557 "type":"integer", 1558 "box":true, 1559 "max":1000, 1560 "min":1 1561 }, 1562 "MaxTableMetadataCount":{ 1563 "type":"integer", 1564 "box":true, 1565 "max":50, 1566 "min":1 1567 }, 1568 "MaxTagsCount":{ 1569 "type":"integer", 1570 "box":true, 1571 "min":75 1572 }, 1573 "MaxWorkGroupsCount":{ 1574 "type":"integer", 1575 "box":true, 1576 "max":50, 1577 "min":1 1578 }, 1579 "MetadataException":{ 1580 "type":"structure", 1581 "members":{ 1582 "Message":{"shape":"ErrorMessage"} 1583 }, 1584 "documentation":"<p>An exception that Athena received when it called a custom metastore. Occurs if the error is not caused by user input (<code>InvalidRequestException</code>) or from the Athena platform (<code>InternalServerException</code>). For example, if a user-created Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned in a <code>MetadataException</code>.</p>", 1585 "exception":true 1586 }, 1587 "NameString":{ 1588 "type":"string", 1589 "max":128, 1590 "min":1 1591 }, 1592 "NamedQuery":{ 1593 "type":"structure", 1594 "required":[ 1595 "Name", 1596 "Database", 1597 "QueryString" 1598 ], 1599 "members":{ 1600 "Name":{ 1601 "shape":"NameString", 1602 "documentation":"<p>The query name.</p>" 1603 }, 1604 "Description":{ 1605 "shape":"DescriptionString", 1606 "documentation":"<p>The query description.</p>" 1607 }, 1608 "Database":{ 1609 "shape":"DatabaseString", 1610 "documentation":"<p>The database to which the query belongs.</p>" 1611 }, 1612 "QueryString":{ 1613 "shape":"QueryString", 1614 "documentation":"<p>The SQL query statements that comprise the query.</p>" 1615 }, 1616 "NamedQueryId":{ 1617 "shape":"NamedQueryId", 1618 "documentation":"<p>The unique identifier of the query.</p>" 1619 }, 1620 "WorkGroup":{ 1621 "shape":"WorkGroupName", 1622 "documentation":"<p>The name of the workgroup that contains the named query.</p>" 1623 } 1624 }, 1625 "documentation":"<p>A query, where <code>QueryString</code> is the list of SQL query statements that comprise the query.</p>" 1626 }, 1627 "NamedQueryId":{"type":"string"}, 1628 "NamedQueryIdList":{ 1629 "type":"list", 1630 "member":{"shape":"NamedQueryId"}, 1631 "max":50, 1632 "min":1 1633 }, 1634 "NamedQueryList":{ 1635 "type":"list", 1636 "member":{"shape":"NamedQuery"} 1637 }, 1638 "ParametersMap":{ 1639 "type":"map", 1640 "key":{"shape":"KeyString"}, 1641 "value":{"shape":"ParametersMapValue"} 1642 }, 1643 "ParametersMapValue":{ 1644 "type":"string", 1645 "max":51200 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 }, 1693 "QueryExecution":{ 1694 "type":"structure", 1695 "members":{ 1696 "QueryExecutionId":{ 1697 "shape":"QueryExecutionId", 1698 "documentation":"<p>The unique identifier for each query execution.</p>" 1699 }, 1700 "Query":{ 1701 "shape":"QueryString", 1702 "documentation":"<p>The SQL query statements which the query execution ran.</p>" 1703 }, 1704 "StatementType":{ 1705 "shape":"StatementType", 1706 "documentation":"<p>The type of query statement that was run. <code>DDL</code> indicates DDL query statements. <code>DML</code> indicates DML (Data Manipulation Language) query statements, such as <code>CREATE TABLE AS SELECT</code>. <code>UTILITY</code> indicates query statements other than DDL and DML, such as <code>SHOW CREATE TABLE</code>, or <code>DESCRIBE TABLE</code>.</p>" 1707 }, 1708 "ResultConfiguration":{ 1709 "shape":"ResultConfiguration", 1710 "documentation":"<p>The location in Amazon S3 where query results were stored and the encryption option, if any, used for query results. These are known as \"client-side settings\". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup.</p>" 1711 }, 1712 "QueryExecutionContext":{ 1713 "shape":"QueryExecutionContext", 1714 "documentation":"<p>The database in which the query execution occurred.</p>" 1715 }, 1716 "Status":{ 1717 "shape":"QueryExecutionStatus", 1718 "documentation":"<p>The completion date, current state, submission time, and state change reason (if applicable) for the query execution.</p>" 1719 }, 1720 "Statistics":{ 1721 "shape":"QueryExecutionStatistics", 1722 "documentation":"<p>Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run.</p>" 1723 }, 1724 "WorkGroup":{ 1725 "shape":"WorkGroupName", 1726 "documentation":"<p>The name of the workgroup in which the query ran.</p>" 1727 }, 1728 "EngineVersion":{ 1729 "shape":"EngineVersion", 1730 "documentation":"<p>The engine version that executed the query.</p>" 1731 } 1732 }, 1733 "documentation":"<p>Information about a single instance of a query execution.</p>" 1734 }, 1735 "QueryExecutionContext":{ 1736 "type":"structure", 1737 "members":{ 1738 "Database":{ 1739 "shape":"DatabaseString", 1740 "documentation":"<p>The name of the database used in the query execution. The database must exist in the catalog.</p>" 1741 }, 1742 "Catalog":{ 1743 "shape":"CatalogNameString", 1744 "documentation":"<p>The name of the data catalog used in the query execution.</p>" 1745 } 1746 }, 1747 "documentation":"<p>The database and data catalog context in which the query execution occurs.</p>" 1748 }, 1749 "QueryExecutionId":{"type":"string"}, 1750 "QueryExecutionIdList":{ 1751 "type":"list", 1752 "member":{"shape":"QueryExecutionId"}, 1753 "max":50, 1754 "min":1 1755 }, 1756 "QueryExecutionList":{ 1757 "type":"list", 1758 "member":{"shape":"QueryExecution"} 1759 }, 1760 "QueryExecutionState":{ 1761 "type":"string", 1762 "enum":[ 1763 "QUEUED", 1764 "RUNNING", 1765 "SUCCEEDED", 1766 "FAILED", 1767 "CANCELLED" 1768 ] 1769 }, 1770 "QueryExecutionStatistics":{ 1771 "type":"structure", 1772 "members":{ 1773 "EngineExecutionTimeInMillis":{ 1774 "shape":"Long", 1775 "documentation":"<p>The number of milliseconds that the query took to execute.</p>" 1776 }, 1777 "DataScannedInBytes":{ 1778 "shape":"Long", 1779 "documentation":"<p>The number of bytes in the data that was queried.</p>" 1780 }, 1781 "DataManifestLocation":{ 1782 "shape":"String", 1783 "documentation":"<p>The location and file name of a data manifest file. The manifest file is saved to the Athena query results location in Amazon S3. The manifest file tracks files that the query wrote to Amazon S3. If the query fails, the manifest file also tracks files that the query intended to write. The manifest is useful for identifying orphaned files resulting from a failed query. For more information, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/querying.html\">Working with Query Results, Output Files, and Query History</a> in the <i>Amazon Athena User Guide</i>.</p>" 1784 }, 1785 "TotalExecutionTimeInMillis":{ 1786 "shape":"Long", 1787 "documentation":"<p>The number of milliseconds that Athena took to run the query.</p>" 1788 }, 1789 "QueryQueueTimeInMillis":{ 1790 "shape":"Long", 1791 "documentation":"<p>The number of milliseconds that the query was in your query queue waiting for resources. Note that if transient errors occur, Athena might automatically add the query back to the queue.</p>" 1792 }, 1793 "QueryPlanningTimeInMillis":{ 1794 "shape":"Long", 1795 "documentation":"<p>The number of milliseconds that Athena took to plan the query processing flow. This includes the time spent retrieving table partitions from the data source. Note that because the query engine performs the query planning, query planning time is a subset of engine processing time.</p>" 1796 }, 1797 "ServiceProcessingTimeInMillis":{ 1798 "shape":"Long", 1799 "documentation":"<p>The number of milliseconds that Athena took to finalize and publish the query results after the query engine finished running the query.</p>" 1800 } 1801 }, 1802 "documentation":"<p>The amount of data scanned during the query execution and the amount of time that it took to execute, and the type of statement that was run.</p>" 1803 }, 1804 "QueryExecutionStatus":{ 1805 "type":"structure", 1806 "members":{ 1807 "State":{ 1808 "shape":"QueryExecutionState", 1809 "documentation":"<p>The state of query execution. <code>QUEUED</code> indicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available. <code>RUNNING</code> indicates that the query is in execution phase. <code>SUCCEEDED</code> indicates that the query completed without errors. <code>FAILED</code> indicates that the query experienced an error and did not complete processing. <code>CANCELLED</code> indicates that a user input interrupted query execution.</p> <note> <p>Athena automatically retries your queries in cases of certain transient errors. As a result, you may see the query state transition from <code>RUNNING</code> or <code>FAILED</code> to <code>QUEUED</code>. </p> </note>" 1810 }, 1811 "StateChangeReason":{ 1812 "shape":"String", 1813 "documentation":"<p>Further detail about the status of the query.</p>" 1814 }, 1815 "SubmissionDateTime":{ 1816 "shape":"Date", 1817 "documentation":"<p>The date and time that the query was submitted.</p>" 1818 }, 1819 "CompletionDateTime":{ 1820 "shape":"Date", 1821 "documentation":"<p>The date and time that the query completed.</p>" 1822 } 1823 }, 1824 "documentation":"<p>The completion date, current state, submission time, and state change reason (if applicable) for the query execution.</p>" 1825 }, 1826 "QueryString":{ 1827 "type":"string", 1828 "max":262144, 1829 "min":1 1830 }, 1831 "ResourceNotFoundException":{ 1832 "type":"structure", 1833 "members":{ 1834 "Message":{"shape":"ErrorMessage"}, 1835 "ResourceName":{"shape":"AmazonResourceName"} 1836 }, 1837 "documentation":"<p>A resource, such as a workgroup, was not found.</p>", 1838 "exception":true 1839 }, 1840 "ResultConfiguration":{ 1841 "type":"structure", 1842 "members":{ 1843 "OutputLocation":{ 1844 "shape":"String", 1845 "documentation":"<p>The location in Amazon S3 where your query results are stored, such as <code>s3://path/to/query/bucket/</code>. To run the query, you must specify the query results location using one of the ways: either for individual queries using either this setting (client-side), or in the workgroup, using <a>WorkGroupConfiguration</a>. If none of them is set, Athena issues an error that no output location is provided. For more information, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/querying.html\">Query Results</a>. If workgroup settings override client-side settings, then the query uses the settings specified for the workgroup. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a>.</p>" 1846 }, 1847 "EncryptionConfiguration":{ 1848 "shape":"EncryptionConfiguration", 1849 "documentation":"<p>If query results are encrypted in Amazon S3, indicates the encryption option used (for example, <code>SSE-KMS</code> or <code>CSE-KMS</code>) and key information. This is a client-side setting. If workgroup settings override client-side settings, then the query uses the encryption configuration that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a> and <a href=\"https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html\">Workgroup Settings Override Client-Side Settings</a>.</p>" 1850 } 1851 }, 1852 "documentation":"<p>The location in Amazon S3 where query results are stored and the encryption option, if any, used for query results. These are known as \"client-side settings\". If workgroup settings override client-side settings, then the query uses the workgroup settings.</p>" 1853 }, 1854 "ResultConfigurationUpdates":{ 1855 "type":"structure", 1856 "members":{ 1857 "OutputLocation":{ 1858 "shape":"String", 1859 "documentation":"<p>The location in Amazon S3 where your query results are stored, such as <code>s3://path/to/query/bucket/</code>. For more information, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/querying.html\">Query Results</a> If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup. The \"workgroup settings override\" is specified in <code>EnforceWorkGroupConfiguration</code> (true/false) in the <code>WorkGroupConfiguration</code>. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a>.</p>" 1860 }, 1861 "RemoveOutputLocation":{ 1862 "shape":"BoxedBoolean", 1863 "documentation":"<p>If set to \"true\", indicates that the previously-specified query results location (also known as a client-side setting) for queries in this workgroup should be ignored and set to null. If set to \"false\" or not set, and a value is present in the <code>OutputLocation</code> in <code>ResultConfigurationUpdates</code> (the client-side setting), the <code>OutputLocation</code> in the workgroup's <code>ResultConfiguration</code> will be updated with the new value. For more information, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html\">Workgroup Settings Override Client-Side Settings</a>.</p>" 1864 }, 1865 "EncryptionConfiguration":{ 1866 "shape":"EncryptionConfiguration", 1867 "documentation":"<p>The encryption configuration for the query results.</p>" 1868 }, 1869 "RemoveEncryptionConfiguration":{ 1870 "shape":"BoxedBoolean", 1871 "documentation":"<p>If set to \"true\", indicates that the previously-specified encryption configuration (also known as the client-side setting) for queries in this workgroup should be ignored and set to null. If set to \"false\" or not set, and a value is present in the <code>EncryptionConfiguration</code> in <code>ResultConfigurationUpdates</code> (the client-side setting), the <code>EncryptionConfiguration</code> in the workgroup's <code>ResultConfiguration</code> will be updated with the new value. For more information, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html\">Workgroup Settings Override Client-Side Settings</a>.</p>" 1872 } 1873 }, 1874 "documentation":"<p>The information about the updates in the query results, such as output location and encryption configuration for the query results.</p>" 1875 }, 1876 "ResultSet":{ 1877 "type":"structure", 1878 "members":{ 1879 "Rows":{ 1880 "shape":"RowList", 1881 "documentation":"<p>The rows in the table.</p>" 1882 }, 1883 "ResultSetMetadata":{ 1884 "shape":"ResultSetMetadata", 1885 "documentation":"<p>The metadata that describes the column structure and data types of a table of query results.</p>" 1886 } 1887 }, 1888 "documentation":"<p>The metadata and rows that comprise a query result set. The metadata describes the column structure and data types. To return a <code>ResultSet</code> object, use <a>GetQueryResults</a>.</p>" 1889 }, 1890 "ResultSetMetadata":{ 1891 "type":"structure", 1892 "members":{ 1893 "ColumnInfo":{ 1894 "shape":"ColumnInfoList", 1895 "documentation":"<p>Information about the columns returned in a query result metadata.</p>" 1896 } 1897 }, 1898 "documentation":"<p>The metadata that describes the column structure and data types of a table of query results. To return a <code>ResultSetMetadata</code> object, use <a>GetQueryResults</a>.</p>" 1899 }, 1900 "Row":{ 1901 "type":"structure", 1902 "members":{ 1903 "Data":{ 1904 "shape":"datumList", 1905 "documentation":"<p>The data that populates a row in a query result table.</p>" 1906 } 1907 }, 1908 "documentation":"<p>The rows that comprise a query result table.</p>" 1909 }, 1910 "RowList":{ 1911 "type":"list", 1912 "member":{"shape":"Row"} 1913 }, 1914 "StartQueryExecutionInput":{ 1915 "type":"structure", 1916 "required":["QueryString"], 1917 "members":{ 1918 "QueryString":{ 1919 "shape":"QueryString", 1920 "documentation":"<p>The SQL query statements to be executed.</p>" 1921 }, 1922 "ClientRequestToken":{ 1923 "shape":"IdempotencyToken", 1924 "documentation":"<p>A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another <code>StartQueryExecution</code> request is received, the same response is returned and another query is not created. If a parameter has changed, for example, the <code>QueryString</code>, an error is returned.</p> <important> <p>This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.</p> </important>", 1925 "idempotencyToken":true 1926 }, 1927 "QueryExecutionContext":{ 1928 "shape":"QueryExecutionContext", 1929 "documentation":"<p>The database within which the query executes.</p>" 1930 }, 1931 "ResultConfiguration":{ 1932 "shape":"ResultConfiguration", 1933 "documentation":"<p>Specifies information about where and how to save the results of the query execution. If the query runs in a workgroup, then workgroup's settings may override query settings. This affects the query results location. The workgroup settings override is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a>.</p>" 1934 }, 1935 "WorkGroup":{ 1936 "shape":"WorkGroupName", 1937 "documentation":"<p>The name of the workgroup in which the query is being started.</p>" 1938 } 1939 } 1940 }, 1941 "StartQueryExecutionOutput":{ 1942 "type":"structure", 1943 "members":{ 1944 "QueryExecutionId":{ 1945 "shape":"QueryExecutionId", 1946 "documentation":"<p>The unique ID of the query that ran as a result of this request.</p>" 1947 } 1948 } 1949 }, 1950 "StatementName":{ 1951 "type":"string", 1952 "max":256, 1953 "min":1, 1954 "pattern":"[a-zA-Z_][a-zA-Z0-9_@:]{1,256}" 1955 }, 1956 "StatementType":{ 1957 "type":"string", 1958 "enum":[ 1959 "DDL", 1960 "DML", 1961 "UTILITY" 1962 ] 1963 }, 1964 "StopQueryExecutionInput":{ 1965 "type":"structure", 1966 "required":["QueryExecutionId"], 1967 "members":{ 1968 "QueryExecutionId":{ 1969 "shape":"QueryExecutionId", 1970 "documentation":"<p>The unique ID of the query execution to stop.</p>", 1971 "idempotencyToken":true 1972 } 1973 } 1974 }, 1975 "StopQueryExecutionOutput":{ 1976 "type":"structure", 1977 "members":{ 1978 } 1979 }, 1980 "String":{"type":"string"}, 1981 "TableMetadata":{ 1982 "type":"structure", 1983 "required":["Name"], 1984 "members":{ 1985 "Name":{ 1986 "shape":"NameString", 1987 "documentation":"<p>The name of the table.</p>" 1988 }, 1989 "CreateTime":{ 1990 "shape":"Timestamp", 1991 "documentation":"<p>The time that the table was created.</p>" 1992 }, 1993 "LastAccessTime":{ 1994 "shape":"Timestamp", 1995 "documentation":"<p>The last time the table was accessed.</p>" 1996 }, 1997 "TableType":{ 1998 "shape":"TableTypeString", 1999 "documentation":"<p>The type of table. In Athena, only <code>EXTERNAL_TABLE</code> is supported.</p>" 2000 }, 2001 "Columns":{ 2002 "shape":"ColumnList", 2003 "documentation":"<p>A list of the columns in the table.</p>" 2004 }, 2005 "PartitionKeys":{ 2006 "shape":"ColumnList", 2007 "documentation":"<p>A list of the partition keys in the table.</p>" 2008 }, 2009 "Parameters":{ 2010 "shape":"ParametersMap", 2011 "documentation":"<p>A set of custom key/value pairs for table properties.</p>" 2012 } 2013 }, 2014 "documentation":"<p>Contains metadata for a table.</p>" 2015 }, 2016 "TableMetadataList":{ 2017 "type":"list", 2018 "member":{"shape":"TableMetadata"} 2019 }, 2020 "TableTypeString":{ 2021 "type":"string", 2022 "max":255 2023 }, 2024 "Tag":{ 2025 "type":"structure", 2026 "members":{ 2027 "Key":{ 2028 "shape":"TagKey", 2029 "documentation":"<p>A tag key. The tag key length is from 1 to 128 Unicode characters in UTF-8. You can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys are case-sensitive and must be unique per resource. </p>" 2030 }, 2031 "Value":{ 2032 "shape":"TagValue", 2033 "documentation":"<p>A tag value. The tag value length is from 0 to 256 Unicode characters in UTF-8. You can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag values are case-sensitive. </p>" 2034 } 2035 }, 2036 "documentation":"<p>A label that you assign to a resource. In Athena, a resource can be a workgroup or data catalog. Each tag consists of a key and an optional value, both of which you define. For example, you can use tags to categorize Athena workgroups or data catalogs by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter workgroups or data catalogs in your account. For best practices, see <a href=\"https://aws.amazon.com/answers/account-management/aws-tagging-strategies/\">Tagging Best Practices</a>. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and values are case-sensitive. Tag keys must be unique per resource. If you specify more than one tag, separate them by commas. </p>" 2037 }, 2038 "TagKey":{ 2039 "type":"string", 2040 "max":128, 2041 "min":1 2042 }, 2043 "TagKeyList":{ 2044 "type":"list", 2045 "member":{"shape":"TagKey"} 2046 }, 2047 "TagList":{ 2048 "type":"list", 2049 "member":{"shape":"Tag"} 2050 }, 2051 "TagResourceInput":{ 2052 "type":"structure", 2053 "required":[ 2054 "ResourceARN", 2055 "Tags" 2056 ], 2057 "members":{ 2058 "ResourceARN":{ 2059 "shape":"AmazonResourceName", 2060 "documentation":"<p>Specifies the ARN of the Athena resource (workgroup or data catalog) to which tags are to be added.</p>" 2061 }, 2062 "Tags":{ 2063 "shape":"TagList", 2064 "documentation":"<p>A collection of one or more tags, separated by commas, to be added to an Athena workgroup or data catalog resource.</p>" 2065 } 2066 } 2067 }, 2068 "TagResourceOutput":{ 2069 "type":"structure", 2070 "members":{ 2071 } 2072 }, 2073 "TagValue":{ 2074 "type":"string", 2075 "max":256, 2076 "min":0 2077 }, 2078 "ThrottleReason":{ 2079 "type":"string", 2080 "documentation":"<p>The reason for the query throttling, for example, when it exceeds the concurrent query limit.</p>", 2081 "enum":["CONCURRENT_QUERY_LIMIT_EXCEEDED"] 2082 }, 2083 "Timestamp":{"type":"timestamp"}, 2084 "Token":{ 2085 "type":"string", 2086 "max":1024, 2087 "min":1 2088 }, 2089 "TooManyRequestsException":{ 2090 "type":"structure", 2091 "members":{ 2092 "Message":{"shape":"ErrorMessage"}, 2093 "Reason":{"shape":"ThrottleReason"} 2094 }, 2095 "documentation":"<p>Indicates that the request was throttled.</p>", 2096 "exception":true 2097 }, 2098 "TypeString":{ 2099 "type":"string", 2100 "max":4096, 2101 "min":0, 2102 "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*" 2103 }, 2104 "UnprocessedNamedQueryId":{ 2105 "type":"structure", 2106 "members":{ 2107 "NamedQueryId":{ 2108 "shape":"NamedQueryId", 2109 "documentation":"<p>The unique identifier of the named query.</p>" 2110 }, 2111 "ErrorCode":{ 2112 "shape":"ErrorCode", 2113 "documentation":"<p>The error code returned when the processing request for the named query failed, if applicable.</p>" 2114 }, 2115 "ErrorMessage":{ 2116 "shape":"ErrorMessage", 2117 "documentation":"<p>The error message returned when the processing request for the named query failed, if applicable.</p>" 2118 } 2119 }, 2120 "documentation":"<p>Information about a named query ID that could not be processed.</p>" 2121 }, 2122 "UnprocessedNamedQueryIdList":{ 2123 "type":"list", 2124 "member":{"shape":"UnprocessedNamedQueryId"} 2125 }, 2126 "UnprocessedQueryExecutionId":{ 2127 "type":"structure", 2128 "members":{ 2129 "QueryExecutionId":{ 2130 "shape":"QueryExecutionId", 2131 "documentation":"<p>The unique identifier of the query execution.</p>" 2132 }, 2133 "ErrorCode":{ 2134 "shape":"ErrorCode", 2135 "documentation":"<p>The error code returned when the query execution failed to process, if applicable.</p>" 2136 }, 2137 "ErrorMessage":{ 2138 "shape":"ErrorMessage", 2139 "documentation":"<p>The error message returned when the query execution failed to process, if applicable.</p>" 2140 } 2141 }, 2142 "documentation":"<p>Describes a query execution that failed to process.</p>" 2143 }, 2144 "UnprocessedQueryExecutionIdList":{ 2145 "type":"list", 2146 "member":{"shape":"UnprocessedQueryExecutionId"} 2147 }, 2148 "UntagResourceInput":{ 2149 "type":"structure", 2150 "required":[ 2151 "ResourceARN", 2152 "TagKeys" 2153 ], 2154 "members":{ 2155 "ResourceARN":{ 2156 "shape":"AmazonResourceName", 2157 "documentation":"<p>Specifies the ARN of the resource from which tags are to be removed.</p>" 2158 }, 2159 "TagKeys":{ 2160 "shape":"TagKeyList", 2161 "documentation":"<p>A comma-separated list of one or more tag keys whose tags are to be removed from the specified resource.</p>" 2162 } 2163 } 2164 }, 2165 "UntagResourceOutput":{ 2166 "type":"structure", 2167 "members":{ 2168 } 2169 }, 2170 "UpdateDataCatalogInput":{ 2171 "type":"structure", 2172 "required":[ 2173 "Name", 2174 "Type" 2175 ], 2176 "members":{ 2177 "Name":{ 2178 "shape":"CatalogNameString", 2179 "documentation":"<p>The name of the data catalog to update. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.</p>" 2180 }, 2181 "Type":{ 2182 "shape":"DataCatalogType", 2183 "documentation":"<p>Specifies the type of data catalog to update. Specify <code>LAMBDA</code> for a federated catalog, <code>HIVE</code> for an external hive metastore, or <code>GLUE</code> for an Glue Data Catalog.</p>" 2184 }, 2185 "Description":{ 2186 "shape":"DescriptionString", 2187 "documentation":"<p>New or modified text that describes the data catalog.</p>" 2188 }, 2189 "Parameters":{ 2190 "shape":"ParametersMap", 2191 "documentation":"<p>Specifies the Lambda function or functions to use for updating the data catalog. This is a mapping whose values depend on the catalog type. </p> <ul> <li> <p>For the <code>HIVE</code> data catalog type, use the following syntax. The <code>metadata-function</code> parameter is required. <code>The sdk-version</code> parameter is optional and defaults to the currently supported version.</p> <p> <code>metadata-function=<i>lambda_arn</i>, sdk-version=<i>version_number</i> </code> </p> </li> <li> <p>For the <code>LAMBDA</code> data catalog type, use one of the following sets of required parameters, but not both.</p> <ul> <li> <p>If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.</p> <p> <code>metadata-function=<i>lambda_arn</i>, record-function=<i>lambda_arn</i> </code> </p> </li> <li> <p> If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.</p> <p> <code>function=<i>lambda_arn</i> </code> </p> </li> </ul> </li> </ul>" 2192 } 2193 } 2194 }, 2195 "UpdateDataCatalogOutput":{ 2196 "type":"structure", 2197 "members":{ 2198 } 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 }, 2231 "UpdateWorkGroupInput":{ 2232 "type":"structure", 2233 "required":["WorkGroup"], 2234 "members":{ 2235 "WorkGroup":{ 2236 "shape":"WorkGroupName", 2237 "documentation":"<p>The specified workgroup that will be updated.</p>" 2238 }, 2239 "Description":{ 2240 "shape":"WorkGroupDescriptionString", 2241 "documentation":"<p>The workgroup description.</p>" 2242 }, 2243 "ConfigurationUpdates":{ 2244 "shape":"WorkGroupConfigurationUpdates", 2245 "documentation":"<p>The workgroup configuration that will be updated for the given workgroup.</p>" 2246 }, 2247 "State":{ 2248 "shape":"WorkGroupState", 2249 "documentation":"<p>The workgroup state that will be updated for the given workgroup.</p>" 2250 } 2251 } 2252 }, 2253 "UpdateWorkGroupOutput":{ 2254 "type":"structure", 2255 "members":{ 2256 } 2257 }, 2258 "WorkGroup":{ 2259 "type":"structure", 2260 "required":["Name"], 2261 "members":{ 2262 "Name":{ 2263 "shape":"WorkGroupName", 2264 "documentation":"<p>The workgroup name.</p>" 2265 }, 2266 "State":{ 2267 "shape":"WorkGroupState", 2268 "documentation":"<p>The state of the workgroup: ENABLED or DISABLED.</p>" 2269 }, 2270 "Configuration":{ 2271 "shape":"WorkGroupConfiguration", 2272 "documentation":"<p>The configuration of the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption configuration, if any, used for query results; whether the Amazon CloudWatch Metrics are enabled for the workgroup; whether workgroup settings override client-side settings; and the data usage limits for the amount of data scanned per query or per workgroup. The workgroup settings override is specified in <code>EnforceWorkGroupConfiguration</code> (true/false) in the <code>WorkGroupConfiguration</code>. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a>.</p>" 2273 }, 2274 "Description":{ 2275 "shape":"WorkGroupDescriptionString", 2276 "documentation":"<p>The workgroup description.</p>" 2277 }, 2278 "CreationTime":{ 2279 "shape":"Date", 2280 "documentation":"<p>The date and time the workgroup was created.</p>" 2281 } 2282 }, 2283 "documentation":"<p>A workgroup, which contains a name, description, creation time, state, and other configuration, listed under <a>WorkGroup$Configuration</a>. Each workgroup enables you to isolate queries for you or your group of users from other queries in the same account, to configure the query results location and the encryption configuration (known as workgroup settings), to enable sending query metrics to Amazon CloudWatch, and to establish per-query data usage control limits for all queries in a workgroup. The workgroup settings override is specified in <code>EnforceWorkGroupConfiguration</code> (true/false) in the <code>WorkGroupConfiguration</code>. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a>.</p>" 2284 }, 2285 "WorkGroupConfiguration":{ 2286 "type":"structure", 2287 "members":{ 2288 "ResultConfiguration":{ 2289 "shape":"ResultConfiguration", 2290 "documentation":"<p>The configuration for the workgroup, which includes the location in Amazon S3 where query results are stored and the encryption option, if any, used for query results. To run the query, you must specify the query results location using one of the ways: either in the workgroup using this setting, or for individual queries (client-side), using <a>ResultConfiguration$OutputLocation</a>. If none of them is set, Athena issues an error that no output location is provided. For more information, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/querying.html\">Query Results</a>.</p>" 2291 }, 2292 "EnforceWorkGroupConfiguration":{ 2293 "shape":"BoxedBoolean", 2294 "documentation":"<p>If set to \"true\", the settings for the workgroup override client-side settings. If set to \"false\", client-side settings are used. For more information, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html\">Workgroup Settings Override Client-Side Settings</a>.</p>" 2295 }, 2296 "PublishCloudWatchMetricsEnabled":{ 2297 "shape":"BoxedBoolean", 2298 "documentation":"<p>Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.</p>" 2299 }, 2300 "BytesScannedCutoffPerQuery":{ 2301 "shape":"BytesScannedCutoffValue", 2302 "documentation":"<p>The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.</p>" 2303 }, 2304 "RequesterPaysEnabled":{ 2305 "shape":"BoxedBoolean", 2306 "documentation":"<p>If set to <code>true</code>, allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to <code>false</code>, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is <code>false</code>. For more information about Requester Pays buckets, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html\">Requester Pays Buckets</a> in the <i>Amazon Simple Storage Service Developer Guide</i>.</p>" 2307 }, 2308 "EngineVersion":{ 2309 "shape":"EngineVersion", 2310 "documentation":"<p>The engine version that all queries running on the workgroup use. Queries on the <code>AmazonAthenaPreviewFunctionality</code> workgroup run on the preview engine regardless of this setting.</p>" 2311 } 2312 }, 2313 "documentation":"<p>The configuration of the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup and whether workgroup settings override query settings, and the data usage limits for the amount of data scanned per query or per workgroup. The workgroup settings override is specified in <code>EnforceWorkGroupConfiguration</code> (true/false) in the <code>WorkGroupConfiguration</code>. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a>. </p>" 2314 }, 2315 "WorkGroupConfigurationUpdates":{ 2316 "type":"structure", 2317 "members":{ 2318 "EnforceWorkGroupConfiguration":{ 2319 "shape":"BoxedBoolean", 2320 "documentation":"<p>If set to \"true\", the settings for the workgroup override client-side settings. If set to \"false\" client-side settings are used. For more information, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html\">Workgroup Settings Override Client-Side Settings</a>.</p>" 2321 }, 2322 "ResultConfigurationUpdates":{ 2323 "shape":"ResultConfigurationUpdates", 2324 "documentation":"<p>The result configuration information about the queries in this workgroup that will be updated. Includes the updated results location and an updated option for encrypting query results.</p>" 2325 }, 2326 "PublishCloudWatchMetricsEnabled":{ 2327 "shape":"BoxedBoolean", 2328 "documentation":"<p>Indicates whether this workgroup enables publishing metrics to Amazon CloudWatch.</p>" 2329 }, 2330 "BytesScannedCutoffPerQuery":{ 2331 "shape":"BytesScannedCutoffValue", 2332 "documentation":"<p>The upper limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.</p>" 2333 }, 2334 "RemoveBytesScannedCutoffPerQuery":{ 2335 "shape":"BoxedBoolean", 2336 "documentation":"<p>Indicates that the data usage control limit per query is removed. <a>WorkGroupConfiguration$BytesScannedCutoffPerQuery</a> </p>" 2337 }, 2338 "RequesterPaysEnabled":{ 2339 "shape":"BoxedBoolean", 2340 "documentation":"<p>If set to <code>true</code>, allows members assigned to a workgroup to specify Amazon S3 Requester Pays buckets in queries. If set to <code>false</code>, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is <code>false</code>. For more information about Requester Pays buckets, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html\">Requester Pays Buckets</a> in the <i>Amazon Simple Storage Service Developer Guide</i>.</p>" 2341 }, 2342 "EngineVersion":{ 2343 "shape":"EngineVersion", 2344 "documentation":"<p>The engine version requested when a workgroup is updated. After the update, all queries on the workgroup run on the requested engine version. If no value was previously set, the default is Auto. Queries on the <code>AmazonAthenaPreviewFunctionality</code> workgroup run on the preview engine regardless of this setting.</p>" 2345 } 2346 }, 2347 "documentation":"<p>The configuration information that will be updated for this workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, whether the workgroup settings override the client-side settings, and the data usage limit for the amount of bytes scanned per query, if it is specified.</p>" 2348 }, 2349 "WorkGroupDescriptionString":{ 2350 "type":"string", 2351 "max":1024, 2352 "min":0 2353 }, 2354 "WorkGroupName":{ 2355 "type":"string", 2356 "pattern":"[a-zA-Z0-9._-]{1,128}" 2357 }, 2358 "WorkGroupState":{ 2359 "type":"string", 2360 "enum":[ 2361 "ENABLED", 2362 "DISABLED" 2363 ] 2364 }, 2365 "WorkGroupSummary":{ 2366 "type":"structure", 2367 "members":{ 2368 "Name":{ 2369 "shape":"WorkGroupName", 2370 "documentation":"<p>The name of the workgroup.</p>" 2371 }, 2372 "State":{ 2373 "shape":"WorkGroupState", 2374 "documentation":"<p>The state of the workgroup.</p>" 2375 }, 2376 "Description":{ 2377 "shape":"WorkGroupDescriptionString", 2378 "documentation":"<p>The workgroup description.</p>" 2379 }, 2380 "CreationTime":{ 2381 "shape":"Date", 2382 "documentation":"<p>The workgroup creation date and time.</p>" 2383 }, 2384 "EngineVersion":{ 2385 "shape":"EngineVersion", 2386 "documentation":"<p>The engine version setting for all queries on the workgroup. Queries on the <code>AmazonAthenaPreviewFunctionality</code> workgroup run on the preview engine regardless of this setting.</p>" 2387 } 2388 }, 2389 "documentation":"<p>The summary information for the workgroup, which includes its name, state, description, and the date and time it was created.</p>" 2390 }, 2391 "WorkGroupsList":{ 2392 "type":"list", 2393 "member":{"shape":"WorkGroupSummary"}, 2394 "max":50, 2395 "min":0 2396 }, 2397 "datumList":{ 2398 "type":"list", 2399 "member":{"shape":"Datum"} 2400 }, 2401 "datumString":{"type":"string"} 2402 }, 2403 "documentation":"<p>Amazon Athena is an interactive query service that lets you use standard SQL to analyze data directly in Amazon S3. You can point Athena at your data in Amazon S3 and run ad-hoc queries and get results in seconds. Athena is serverless, so there is no infrastructure to set up or manage. You pay only for the queries you run. Athena scales automatically—executing queries in parallel—so results are fast, even with large datasets and complex queries. For more information, see <a href=\"http://docs.aws.amazon.com/athena/latest/ug/what-is.html\">What is Amazon Athena</a> in the <i>Amazon Athena User Guide</i>.</p> <p>If you connect to Athena using the JDBC driver, use version 1.1.0 of the driver or later with the Amazon Athena API. Earlier version drivers do not support the API. For more information and to download the driver, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html\">Accessing Amazon Athena with JDBC</a>.</p> <p>For code samples using the Amazon Web Services SDK for Java, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/code-samples.html\">Examples and Code Samples</a> in the <i>Amazon Athena User Guide</i>.</p>" 2404} 2405