@datafire/amazonaws_athena

5.0.0 • Public • Published

@datafire/amazonaws_athena

Client library for Amazon Athena

Installation and Usage

npm install --save @datafire/amazonaws_athena
let amazonaws_athena = require('@datafire/amazonaws_athena').create({
  accessKeyId: "",
  secretAccessKey: "",
  region: ""
});

amazonaws_athena.BatchGetNamedQuery({
  "NamedQueryIds": []
}).then(data => {
  console.log(data);
});

Description

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 What is Amazon Athena in the Amazon Athena User Guide.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

Actions

BatchGetNamedQuery

amazonaws_athena.BatchGetNamedQuery({
  "NamedQueryIds": []
}, context)

Input

Output

BatchGetQueryExecution

amazonaws_athena.BatchGetQueryExecution({
  "QueryExecutionIds": []
}, context)

Input

Output

CreateNamedQuery

amazonaws_athena.CreateNamedQuery({
  "Name": "",
  "Database": "",
  "QueryString": ""
}, context)

Input

Output

DeleteNamedQuery

amazonaws_athena.DeleteNamedQuery({
  "NamedQueryId": ""
}, context)

Input

Output

GetNamedQuery

amazonaws_athena.GetNamedQuery({
  "NamedQueryId": ""
}, context)

Input

Output

GetQueryExecution

amazonaws_athena.GetQueryExecution({
  "QueryExecutionId": ""
}, context)

Input

Output

GetQueryResults

amazonaws_athena.GetQueryResults({
  "QueryExecutionId": ""
}, context)

Input

Output

ListNamedQueries

amazonaws_athena.ListNamedQueries({}, context)

Input

Output

ListQueryExecutions

amazonaws_athena.ListQueryExecutions({}, context)

Input

Output

StartQueryExecution

amazonaws_athena.StartQueryExecution({
  "QueryString": "",
  "ResultConfiguration": {
    "OutputLocation": ""
  }
}, context)

Input

Output

StopQueryExecution

amazonaws_athena.StopQueryExecution({
  "QueryExecutionId": ""
}, context)

Input

Output

Definitions

BatchGetNamedQueryInput

BatchGetNamedQueryOutput

BatchGetQueryExecutionInput

BatchGetQueryExecutionOutput

Boolean

  • Boolean boolean

ColumnInfo

ColumnInfoList

ColumnNullable

  • ColumnNullable string (values: NOT_NULL, NULLABLE, UNKNOWN)

CreateNamedQueryInput

CreateNamedQueryOutput

DatabaseString

  • DatabaseString string

Date

  • Date string

Datum

  • Datum object: A piece of data (a field in the table).

DeleteNamedQueryInput

  • DeleteNamedQueryInput object

DeleteNamedQueryOutput

  • DeleteNamedQueryOutput object

DescriptionString

  • DescriptionString string

EncryptionConfiguration

  • EncryptionConfiguration object: If query results are encrypted in Amazon S3, indicates the Amazon S3 encryption option used.

EncryptionOption

  • EncryptionOption string (values: SSE_S3, SSE_KMS, CSE_KMS)

ErrorCode

  • ErrorCode string

ErrorMessage

  • ErrorMessage string

GetNamedQueryInput

  • GetNamedQueryInput object

GetNamedQueryOutput

  • GetNamedQueryOutput object

GetQueryExecutionInput

GetQueryExecutionOutput

GetQueryResultsInput

GetQueryResultsOutput

IdempotencyToken

  • IdempotencyToken string

Integer

  • Integer integer

InternalServerException

  • InternalServerException object: Indicates a platform issue, which may be due to a transient condition or outage.

InvalidRequestException

  • InvalidRequestException object: Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.

ListNamedQueriesInput

ListNamedQueriesOutput

ListQueryExecutionsInput

ListQueryExecutionsOutput

Long

  • Long integer

MaxNamedQueriesCount

  • MaxNamedQueriesCount integer

MaxQueryExecutionsCount

  • MaxQueryExecutionsCount integer

MaxQueryResults

  • MaxQueryResults integer

NameString

  • NameString string

NamedQuery

NamedQueryId

  • NamedQueryId string

NamedQueryIdList

NamedQueryList

QueryExecution

QueryExecutionContext

  • QueryExecutionContext object: The database in which the query execution occurs.

QueryExecutionId

  • QueryExecutionId string

QueryExecutionIdList

QueryExecutionList

QueryExecutionState

  • QueryExecutionState string (values: QUEUED, RUNNING, SUCCEEDED, FAILED, CANCELLED)

QueryExecutionStatistics

  • QueryExecutionStatistics object: The amount of data scanned during the query execution and the amount of time that it took to execute.
    • DataScannedInBytes Long
    • EngineExecutionTimeInMillis Long

QueryExecutionStatus

  • QueryExecutionStatus object: The completion date, current state, submission time, and state change reason (if applicable) for the query execution.

QueryString

  • QueryString string

ResultConfiguration

  • ResultConfiguration object: The location in Amazon S3 where query results are stored and the encryption option, if any, used for query results.

ResultSet

  • ResultSet object: The metadata and rows that comprise a query result set. The metadata describes the column structure and data types.

ResultSetMetadata

  • ResultSetMetadata object: The metadata that describes the column structure and data types of a table of query results.

Row

  • Row object: The rows that comprise a query result table.

RowList

  • RowList array

StartQueryExecutionInput

StartQueryExecutionOutput

StopQueryExecutionInput

StopQueryExecutionOutput

  • StopQueryExecutionOutput object

String

  • String string

ThrottleReason

  • ThrottleReason string (values: CONCURRENT_QUERY_LIMIT_EXCEEDED)

Token

  • Token string

TooManyRequestsException

UnprocessedNamedQueryId

  • UnprocessedNamedQueryId object: Information about a named query ID that could not be processed.

UnprocessedNamedQueryIdList

UnprocessedQueryExecutionId

UnprocessedQueryExecutionIdList

datumList

  • datumList array

datumString

  • datumString string

Readme

Keywords

none

Package Sidebar

Install

npm i @datafire/amazonaws_athena

Weekly Downloads

2

Version

5.0.0

License

MIT

Unpacked Size

68.9 kB

Total Files

5

Last publish

Collaborators

  • datafire