Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TimestreamQuery

import { TimestreamQuery } from "https://aws-api.deno.dev/v0.3/services/timestreamquery.ts?docs=full";
class TimestreamQuery {
constructor(apiFactory: client.ApiFactory);
async cancelQuery(params: CancelQueryRequest, opts?: client.RequestOptions): Promise<CancelQueryResponse>;
async createScheduledQuery(params: CreateScheduledQueryRequest, opts?: client.RequestOptions): Promise<CreateScheduledQueryResponse>;
async deleteScheduledQuery(params: DeleteScheduledQueryRequest, opts?: client.RequestOptions): Promise<void>;
async describeEndpoints(opts?: client.RequestOptions): Promise<DescribeEndpointsResponse>;
async describeScheduledQuery(params: DescribeScheduledQueryRequest, opts?: client.RequestOptions): Promise<DescribeScheduledQueryResponse>;
async executeScheduledQuery(params: ExecuteScheduledQueryRequest, opts?: client.RequestOptions): Promise<void>;
async listScheduledQueries(params?: ListScheduledQueriesRequest, opts?: client.RequestOptions): Promise<ListScheduledQueriesResponse>;
async listTagsForResource(params: ListTagsForResourceRequest, opts?: client.RequestOptions): Promise<ListTagsForResourceResponse>;
async prepareQuery(params: PrepareQueryRequest, opts?: client.RequestOptions): Promise<PrepareQueryResponse>;
async query(params: QueryRequest, opts?: client.RequestOptions): Promise<QueryResponse>;
async tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async updateScheduledQuery(params: UpdateScheduledQueryRequest, opts?: client.RequestOptions): Promise<void>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new TimestreamQuery(apiFactory: client.ApiFactory)
[src]

§Methods

§

Cancels a query that has been issued. Cancellation is provided only if the query has not completed running before the cancellation request was issued. Because cancellation is an idempotent operation, subsequent cancellation requests will return a CancellationMessage, indicating that the query has already been canceled. See code sample for details.

§

Create a scheduled query that will be run on your behalf at the configured schedule. Timestream assumes the execution role provided as part of the ScheduledQueryExecutionRoleArn parameter to run the query. You can use the NotificationConfiguration parameter to configure notification for your scheduled query operations.

§
deleteScheduledQuery(params: DeleteScheduledQueryRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a given scheduled query. This is an irreversible operation.

§
describeEndpoints(opts?: client.RequestOptions): Promise<DescribeEndpointsResponse>
[src]

DescribeEndpoints returns a list of available endpoints to make Timestream API calls against. This API is available through both Write and Query.

Because the Timestream SDKs are designed to transparently work with the service’s architecture, including the management and mapping of the service endpoints, it is not recommended that you use this API unless:

For detailed information on how and when to use and implement DescribeEndpoints, see The Endpoint Discovery Pattern.

§

Provides detailed information about a scheduled query.

§
executeScheduledQuery(params: ExecuteScheduledQueryRequest, opts?: client.RequestOptions): Promise<void>
[src]

You can use this API to run a scheduled query manually.

§

Gets a list of all scheduled queries in the caller's Amazon account and Region. ListScheduledQueries is eventually consistent.

§

List all tags on a Timestream query resource.

§

A synchronous operation that allows you to submit a query with parameters to be stored by Timestream for later running. Timestream only supports using this operation with the PrepareQueryRequest$ValidateOnly set to true.

§
query(params: QueryRequest, opts?: client.RequestOptions): Promise<QueryResponse>
[src]

Query is a synchronous operation that enables you to run a query against your Amazon Timestream data. Query will time out after 60 seconds. You must update the default timeout in the SDK to support a timeout of 60 seconds. See the code sample for details.

Your query request will fail in the following cases:

  • If you submit a Query request with the same client token outside of the 5-minute idempotency window.
  • If you submit a Query request with the same client token, but change other parameters, within the 5-minute idempotency window.
  • If the size of the row (including the query metadata) exceeds 1 MB, then the query will fail with the following error message: Query aborted as max page response size has been exceeded by the output result row
  • If the IAM principal of the query initiator and the result reader are not the same and/or the query initiator and the result reader do not have the same query string in the query requests, the query will fail with an Invalid pagination token error.
§
tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Associate a set of tags with a Timestream resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking.

§
untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes the association of tags from a Timestream query resource.

§
updateScheduledQuery(params: UpdateScheduledQueryRequest, opts?: client.RequestOptions): Promise<void>
[src]

Update a scheduled query.

§Static Properties