aws-sdk
Version:
AWS SDK for JavaScript
421 lines • 9.33 kB
JSON
{
"version": "2.0",
"metadata": {
"apiVersion": "2017-05-18",
"endpointPrefix": "athena",
"jsonVersion": "1.1",
"protocol": "json",
"serviceFullName": "Amazon Athena",
"serviceId": "Athena",
"signatureVersion": "v4",
"targetPrefix": "AmazonAthena",
"uid": "athena-2017-05-18"
},
"operations": {
"BatchGetNamedQuery": {
"input": {
"type": "structure",
"required": [
"NamedQueryIds"
],
"members": {
"NamedQueryIds": {
"shape": "S2"
}
}
},
"output": {
"type": "structure",
"members": {
"NamedQueries": {
"type": "list",
"member": {
"shape": "S6"
}
},
"UnprocessedNamedQueryIds": {
"type": "list",
"member": {
"type": "structure",
"members": {
"NamedQueryId": {},
"ErrorCode": {},
"ErrorMessage": {}
}
}
}
}
}
},
"BatchGetQueryExecution": {
"input": {
"type": "structure",
"required": [
"QueryExecutionIds"
],
"members": {
"QueryExecutionIds": {
"shape": "Sg"
}
}
},
"output": {
"type": "structure",
"members": {
"QueryExecutions": {
"type": "list",
"member": {
"shape": "Sk"
}
},
"UnprocessedQueryExecutionIds": {
"type": "list",
"member": {
"type": "structure",
"members": {
"QueryExecutionId": {},
"ErrorCode": {},
"ErrorMessage": {}
}
}
}
}
}
},
"CreateNamedQuery": {
"input": {
"type": "structure",
"required": [
"Name",
"Database",
"QueryString"
],
"members": {
"Name": {},
"Description": {},
"Database": {},
"QueryString": {},
"ClientRequestToken": {
"idempotencyToken": true
}
}
},
"output": {
"type": "structure",
"members": {
"NamedQueryId": {}
}
},
"idempotent": true
},
"DeleteNamedQuery": {
"input": {
"type": "structure",
"required": [
"NamedQueryId"
],
"members": {
"NamedQueryId": {
"idempotencyToken": true
}
}
},
"output": {
"type": "structure",
"members": {}
},
"idempotent": true
},
"GetNamedQuery": {
"input": {
"type": "structure",
"required": [
"NamedQueryId"
],
"members": {
"NamedQueryId": {}
}
},
"output": {
"type": "structure",
"members": {
"NamedQuery": {
"shape": "S6"
}
}
}
},
"GetQueryExecution": {
"input": {
"type": "structure",
"required": [
"QueryExecutionId"
],
"members": {
"QueryExecutionId": {}
}
},
"output": {
"type": "structure",
"members": {
"QueryExecution": {
"shape": "Sk"
}
}
}
},
"GetQueryResults": {
"input": {
"type": "structure",
"required": [
"QueryExecutionId"
],
"members": {
"QueryExecutionId": {},
"NextToken": {},
"MaxResults": {
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"UpdateCount": {
"type": "long"
},
"ResultSet": {
"type": "structure",
"members": {
"Rows": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Data": {
"type": "list",
"member": {
"type": "structure",
"members": {
"VarCharValue": {}
}
}
}
}
}
},
"ResultSetMetadata": {
"type": "structure",
"members": {
"ColumnInfo": {
"type": "list",
"member": {
"type": "structure",
"required": [
"Name",
"Type"
],
"members": {
"CatalogName": {},
"SchemaName": {},
"TableName": {},
"Name": {},
"Label": {},
"Type": {},
"Precision": {
"type": "integer"
},
"Scale": {
"type": "integer"
},
"Nullable": {},
"CaseSensitive": {
"type": "boolean"
}
}
}
}
}
}
}
},
"NextToken": {}
}
}
},
"ListNamedQueries": {
"input": {
"type": "structure",
"members": {
"NextToken": {},
"MaxResults": {
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"NamedQueryIds": {
"shape": "S2"
},
"NextToken": {}
}
}
},
"ListQueryExecutions": {
"input": {
"type": "structure",
"members": {
"NextToken": {},
"MaxResults": {
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"QueryExecutionIds": {
"shape": "Sg"
},
"NextToken": {}
}
}
},
"StartQueryExecution": {
"input": {
"type": "structure",
"required": [
"QueryString",
"ResultConfiguration"
],
"members": {
"QueryString": {},
"ClientRequestToken": {
"idempotencyToken": true
},
"QueryExecutionContext": {
"shape": "Sq"
},
"ResultConfiguration": {
"shape": "Sm"
}
}
},
"output": {
"type": "structure",
"members": {
"QueryExecutionId": {}
}
},
"idempotent": true
},
"StopQueryExecution": {
"input": {
"type": "structure",
"required": [
"QueryExecutionId"
],
"members": {
"QueryExecutionId": {
"idempotencyToken": true
}
}
},
"output": {
"type": "structure",
"members": {}
},
"idempotent": true
}
},
"shapes": {
"S2": {
"type": "list",
"member": {}
},
"S6": {
"type": "structure",
"required": [
"Name",
"Database",
"QueryString"
],
"members": {
"Name": {},
"Description": {},
"Database": {},
"QueryString": {},
"NamedQueryId": {}
}
},
"Sg": {
"type": "list",
"member": {}
},
"Sk": {
"type": "structure",
"members": {
"QueryExecutionId": {},
"Query": {},
"StatementType": {},
"ResultConfiguration": {
"shape": "Sm"
},
"QueryExecutionContext": {
"shape": "Sq"
},
"Status": {
"type": "structure",
"members": {
"State": {},
"StateChangeReason": {},
"SubmissionDateTime": {
"type": "timestamp"
},
"CompletionDateTime": {
"type": "timestamp"
}
}
},
"Statistics": {
"type": "structure",
"members": {
"EngineExecutionTimeInMillis": {
"type": "long"
},
"DataScannedInBytes": {
"type": "long"
}
}
}
}
},
"Sm": {
"type": "structure",
"required": [
"OutputLocation"
],
"members": {
"OutputLocation": {},
"EncryptionConfiguration": {
"type": "structure",
"required": [
"EncryptionOption"
],
"members": {
"EncryptionOption": {},
"KmsKey": {}
}
}
}
},
"Sq": {
"type": "structure",
"members": {
"Database": {}
}
}
}
}