Skip to content

Commit

Permalink
docs(client-timestream-query): Documentation updates, March 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Mar 18, 2024
1 parent 29679ab commit 69aee05
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export interface ListScheduledQueriesCommandInput extends ListScheduledQueriesRe
export interface ListScheduledQueriesCommandOutput extends ListScheduledQueriesResponse, __MetadataBearer {}

/**
* <p>Gets a list of all scheduled queries in the caller's Amazon account and Region. <code>ListScheduledQueries</code> is eventually consistent. </p>
* <p>Gets a list of all scheduled queries in the caller's Amazon account and Region.
* <code>ListScheduledQueries</code> is eventually consistent. </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export interface PrepareQueryCommandOutput extends PrepareQueryResponse, __Metad

/**
* <p>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
* <code>PrepareQueryRequest$ValidateOnly</code> set to <code>true</code>. </p>
* by Timestream for later running. Timestream only supports using this operation with
* <code>ValidateOnly</code> set to <code>true</code>. </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
63 changes: 37 additions & 26 deletions clients/client-timestream-query/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ export interface SnsConfiguration {
}

/**
* <p>Notification configuration for a scheduled query. A notification is sent by
* Timestream when a scheduled query is created, its state is updated or when it is deleted. </p>
* <p>Notification configuration for a scheduled query. A notification is sent by Timestream
* when a scheduled query is created, its state is updated or when it is deleted. </p>
* @public
*/
export interface NotificationConfiguration {
Expand Down Expand Up @@ -465,8 +465,8 @@ export interface TimestreamConfiguration {
DatabaseName: string | undefined;

/**
* <p>Name of Timestream table that the query result will be written to. The table should
* be within the same database that is provided in Timestream configuration.</p>
* <p>Name of Timestream table that the query result will be written to. The table should be
* within the same database that is provided in Timestream configuration.</p>
* @public
*/
TableName: string | undefined;
Expand Down Expand Up @@ -527,12 +527,15 @@ export interface CreateScheduledQueryRequest {
Name: string | undefined;

/**
* <p>The query string to run. Parameter
* names can be specified in the query string <code>@</code> character followed by an
* identifier. The named Parameter <code>@scheduled_runtime</code> is reserved and can be used in the query to get the time at which the query is scheduled to run.</p>
* <p>The timestamp calculated according to the ScheduleConfiguration parameter, will be the value of <code>@scheduled_runtime</code> paramater for each query run.
* For example, consider an instance of a scheduled query executing on 2021-12-01 00:00:00. For this instance, the <code>@scheduled_runtime</code> parameter is
* initialized to the timestamp 2021-12-01 00:00:00 when invoking the query.</p>
* <p>The query string to run. Parameter names can be specified in the query string
* <code>@</code> character followed by an identifier. The named Parameter
* <code>@scheduled_runtime</code> is reserved and can be used in the query to get the
* time at which the query is scheduled to run.</p>
* <p>The timestamp calculated according to the ScheduleConfiguration parameter, will be the
* value of <code>@scheduled_runtime</code> paramater for each query run. For example,
* consider an instance of a scheduled query executing on 2021-12-01 00:00:00. For this
* instance, the <code>@scheduled_runtime</code> parameter is initialized to the timestamp
* 2021-12-01 00:00:00 when invoking the query.</p>
* @public
*/
QueryString: string | undefined;
Expand All @@ -545,7 +548,8 @@ export interface CreateScheduledQueryRequest {

/**
* <p>Notification configuration for the scheduled query. A notification is sent by
* Timestream when a query run finishes, when the state is updated or when you delete it. </p>
* Timestream when a query run finishes, when the state is updated or when you delete it.
* </p>
* @public
*/
NotificationConfiguration: NotificationConfiguration | undefined;
Expand All @@ -557,10 +561,9 @@ export interface CreateScheduledQueryRequest {
TargetConfiguration?: TargetConfiguration;

/**
* <p>Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words, making the same request repeatedly will produce the same result. Making
* multiple identical CreateScheduledQuery requests has the same effect as making a single request.
*
* </p>
* <p>Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words,
* making the same request repeatedly will produce the same result. Making multiple
* identical CreateScheduledQuery requests has the same effect as making a single request. </p>
* <ul>
* <li>
* <p> If CreateScheduledQuery is called without a <code>ClientToken</code>, the
Expand All @@ -576,7 +579,8 @@ export interface CreateScheduledQueryRequest {
ClientToken?: string;

/**
* <p>The ARN for the IAM role that Timestream will assume when running the scheduled query. </p>
* <p>The ARN for the IAM role that Timestream will assume when running the scheduled query.
* </p>
* @public
*/
ScheduledQueryExecutionRoleArn: string | undefined;
Expand All @@ -588,18 +592,21 @@ export interface CreateScheduledQueryRequest {
Tags?: Tag[];

/**
* <p>The Amazon KMS key used to encrypt the scheduled query resource, at-rest. If the Amazon KMS
* key is not specified, the scheduled query resource will be encrypted with a Timestream
* owned Amazon KMS key. To specify a KMS key, use the key ID, key ARN, alias name, or alias
* ARN. When using an alias name, prefix the name with <i>alias/</i>
* <p>The Amazon KMS key used to encrypt the scheduled query resource, at-rest. If the
* Amazon KMS key is not specified, the scheduled query resource will be encrypted with a
* Timestream owned Amazon KMS key. To specify a KMS key, use the key ID, key ARN, alias
* name, or alias ARN. When using an alias name, prefix the name with
* <i>alias/</i>
* </p>
* <p>If ErrorReportConfiguration uses <code>SSE_KMS</code> as encryption type, the same KmsKeyId is used to encrypt the error report at rest.</p>
* <p>If ErrorReportConfiguration uses <code>SSE_KMS</code> as encryption type, the same
* KmsKeyId is used to encrypt the error report at rest.</p>
* @public
*/
KmsKeyId?: string;

/**
* <p>Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results. </p>
* <p>Configuration for error reporting. Error reports will be generated when a problem is
* encountered when writing the query results. </p>
* @public
*/
ErrorReportConfiguration: ErrorReportConfiguration | undefined;
Expand Down Expand Up @@ -761,7 +768,8 @@ export interface ErrorReportLocation {
*/
export interface ExecutionStats {
/**
* <p>Total time, measured in milliseconds, that was needed for the scheduled query run to complete.</p>
* <p>Total time, measured in milliseconds, that was needed for the scheduled query run to
* complete.</p>
* @public
*/
ExecutionTimeInMillis?: number;
Expand Down Expand Up @@ -815,7 +823,8 @@ export type ScheduledQueryRunStatus = (typeof ScheduledQueryRunStatus)[keyof typ
export interface ScheduledQueryRunSummary {
/**
* <p>InvocationTime for this run. This is the time at which the query is scheduled to run.
* Parameter <code>@scheduled_runtime</code> can be used in the query to get the value. </p>
* Parameter <code>@scheduled_runtime</code> can be used in the query to get the value.
* </p>
* @public
*/
InvocationTime?: Date;
Expand Down Expand Up @@ -984,7 +993,8 @@ export interface ExecuteScheduledQueryRequest {
ScheduledQueryArn: string | undefined;

/**
* <p>The timestamp in UTC. Query will be run as if it was invoked at this timestamp. </p>
* <p>The timestamp in UTC. Query will be run as if it was invoked at this timestamp.
* </p>
* @public
*/
InvocationTime: Date | undefined;
Expand Down Expand Up @@ -1448,7 +1458,8 @@ export interface ColumnInfo {
export interface Type {
/**
* <p>Indicates if the column is of type string, integer, Boolean, double, timestamp, date,
* time. </p>
* time. For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/supported-data-types.html">Supported data
* types</a>.</p>
* @public
*/
ScalarType?: ScalarType;
Expand Down
Loading

0 comments on commit 69aee05

Please sign in to comment.