@aws-sdk/client-timestream-query 3.315.0 → 3.319.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TimestreamQuery = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CancelQueryCommand_1 = require("./commands/CancelQueryCommand");
5
6
  const CreateScheduledQueryCommand_1 = require("./commands/CreateScheduledQueryCommand");
6
7
  const DeleteScheduledQueryCommand_1 = require("./commands/DeleteScheduledQueryCommand");
@@ -15,188 +16,22 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
15
16
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
16
17
  const UpdateScheduledQueryCommand_1 = require("./commands/UpdateScheduledQueryCommand");
17
18
  const TimestreamQueryClient_1 = require("./TimestreamQueryClient");
19
+ const commands = {
20
+ CancelQueryCommand: CancelQueryCommand_1.CancelQueryCommand,
21
+ CreateScheduledQueryCommand: CreateScheduledQueryCommand_1.CreateScheduledQueryCommand,
22
+ DeleteScheduledQueryCommand: DeleteScheduledQueryCommand_1.DeleteScheduledQueryCommand,
23
+ DescribeEndpointsCommand: DescribeEndpointsCommand_1.DescribeEndpointsCommand,
24
+ DescribeScheduledQueryCommand: DescribeScheduledQueryCommand_1.DescribeScheduledQueryCommand,
25
+ ExecuteScheduledQueryCommand: ExecuteScheduledQueryCommand_1.ExecuteScheduledQueryCommand,
26
+ ListScheduledQueriesCommand: ListScheduledQueriesCommand_1.ListScheduledQueriesCommand,
27
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
28
+ PrepareQueryCommand: PrepareQueryCommand_1.PrepareQueryCommand,
29
+ QueryCommand: QueryCommand_1.QueryCommand,
30
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
31
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
32
+ UpdateScheduledQueryCommand: UpdateScheduledQueryCommand_1.UpdateScheduledQueryCommand,
33
+ };
18
34
  class TimestreamQuery extends TimestreamQueryClient_1.TimestreamQueryClient {
19
- cancelQuery(args, optionsOrCb, cb) {
20
- const command = new CancelQueryCommand_1.CancelQueryCommand(args);
21
- if (typeof optionsOrCb === "function") {
22
- this.send(command, optionsOrCb);
23
- }
24
- else if (typeof cb === "function") {
25
- if (typeof optionsOrCb !== "object")
26
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
27
- this.send(command, optionsOrCb || {}, cb);
28
- }
29
- else {
30
- return this.send(command, optionsOrCb);
31
- }
32
- }
33
- createScheduledQuery(args, optionsOrCb, cb) {
34
- const command = new CreateScheduledQueryCommand_1.CreateScheduledQueryCommand(args);
35
- if (typeof optionsOrCb === "function") {
36
- this.send(command, optionsOrCb);
37
- }
38
- else if (typeof cb === "function") {
39
- if (typeof optionsOrCb !== "object")
40
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
41
- this.send(command, optionsOrCb || {}, cb);
42
- }
43
- else {
44
- return this.send(command, optionsOrCb);
45
- }
46
- }
47
- deleteScheduledQuery(args, optionsOrCb, cb) {
48
- const command = new DeleteScheduledQueryCommand_1.DeleteScheduledQueryCommand(args);
49
- if (typeof optionsOrCb === "function") {
50
- this.send(command, optionsOrCb);
51
- }
52
- else if (typeof cb === "function") {
53
- if (typeof optionsOrCb !== "object")
54
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
55
- this.send(command, optionsOrCb || {}, cb);
56
- }
57
- else {
58
- return this.send(command, optionsOrCb);
59
- }
60
- }
61
- describeEndpoints(args, optionsOrCb, cb) {
62
- const command = new DescribeEndpointsCommand_1.DescribeEndpointsCommand(args);
63
- if (typeof optionsOrCb === "function") {
64
- this.send(command, optionsOrCb);
65
- }
66
- else if (typeof cb === "function") {
67
- if (typeof optionsOrCb !== "object")
68
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
69
- this.send(command, optionsOrCb || {}, cb);
70
- }
71
- else {
72
- return this.send(command, optionsOrCb);
73
- }
74
- }
75
- describeScheduledQuery(args, optionsOrCb, cb) {
76
- const command = new DescribeScheduledQueryCommand_1.DescribeScheduledQueryCommand(args);
77
- if (typeof optionsOrCb === "function") {
78
- this.send(command, optionsOrCb);
79
- }
80
- else if (typeof cb === "function") {
81
- if (typeof optionsOrCb !== "object")
82
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
83
- this.send(command, optionsOrCb || {}, cb);
84
- }
85
- else {
86
- return this.send(command, optionsOrCb);
87
- }
88
- }
89
- executeScheduledQuery(args, optionsOrCb, cb) {
90
- const command = new ExecuteScheduledQueryCommand_1.ExecuteScheduledQueryCommand(args);
91
- if (typeof optionsOrCb === "function") {
92
- this.send(command, optionsOrCb);
93
- }
94
- else if (typeof cb === "function") {
95
- if (typeof optionsOrCb !== "object")
96
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
97
- this.send(command, optionsOrCb || {}, cb);
98
- }
99
- else {
100
- return this.send(command, optionsOrCb);
101
- }
102
- }
103
- listScheduledQueries(args, optionsOrCb, cb) {
104
- const command = new ListScheduledQueriesCommand_1.ListScheduledQueriesCommand(args);
105
- if (typeof optionsOrCb === "function") {
106
- this.send(command, optionsOrCb);
107
- }
108
- else if (typeof cb === "function") {
109
- if (typeof optionsOrCb !== "object")
110
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
111
- this.send(command, optionsOrCb || {}, cb);
112
- }
113
- else {
114
- return this.send(command, optionsOrCb);
115
- }
116
- }
117
- listTagsForResource(args, optionsOrCb, cb) {
118
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
119
- if (typeof optionsOrCb === "function") {
120
- this.send(command, optionsOrCb);
121
- }
122
- else if (typeof cb === "function") {
123
- if (typeof optionsOrCb !== "object")
124
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
125
- this.send(command, optionsOrCb || {}, cb);
126
- }
127
- else {
128
- return this.send(command, optionsOrCb);
129
- }
130
- }
131
- prepareQuery(args, optionsOrCb, cb) {
132
- const command = new PrepareQueryCommand_1.PrepareQueryCommand(args);
133
- if (typeof optionsOrCb === "function") {
134
- this.send(command, optionsOrCb);
135
- }
136
- else if (typeof cb === "function") {
137
- if (typeof optionsOrCb !== "object")
138
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
139
- this.send(command, optionsOrCb || {}, cb);
140
- }
141
- else {
142
- return this.send(command, optionsOrCb);
143
- }
144
- }
145
- query(args, optionsOrCb, cb) {
146
- const command = new QueryCommand_1.QueryCommand(args);
147
- if (typeof optionsOrCb === "function") {
148
- this.send(command, optionsOrCb);
149
- }
150
- else if (typeof cb === "function") {
151
- if (typeof optionsOrCb !== "object")
152
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
153
- this.send(command, optionsOrCb || {}, cb);
154
- }
155
- else {
156
- return this.send(command, optionsOrCb);
157
- }
158
- }
159
- tagResource(args, optionsOrCb, cb) {
160
- const command = new TagResourceCommand_1.TagResourceCommand(args);
161
- if (typeof optionsOrCb === "function") {
162
- this.send(command, optionsOrCb);
163
- }
164
- else if (typeof cb === "function") {
165
- if (typeof optionsOrCb !== "object")
166
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
167
- this.send(command, optionsOrCb || {}, cb);
168
- }
169
- else {
170
- return this.send(command, optionsOrCb);
171
- }
172
- }
173
- untagResource(args, optionsOrCb, cb) {
174
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
175
- if (typeof optionsOrCb === "function") {
176
- this.send(command, optionsOrCb);
177
- }
178
- else if (typeof cb === "function") {
179
- if (typeof optionsOrCb !== "object")
180
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
181
- this.send(command, optionsOrCb || {}, cb);
182
- }
183
- else {
184
- return this.send(command, optionsOrCb);
185
- }
186
- }
187
- updateScheduledQuery(args, optionsOrCb, cb) {
188
- const command = new UpdateScheduledQueryCommand_1.UpdateScheduledQueryCommand(args);
189
- if (typeof optionsOrCb === "function") {
190
- this.send(command, optionsOrCb);
191
- }
192
- else if (typeof cb === "function") {
193
- if (typeof optionsOrCb !== "object")
194
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
195
- this.send(command, optionsOrCb || {}, cb);
196
- }
197
- else {
198
- return this.send(command, optionsOrCb);
199
- }
200
- }
201
35
  }
202
36
  exports.TimestreamQuery = TimestreamQuery;
37
+ (0, smithy_client_1.createAggregatedClient)(commands, TimestreamQuery);
@@ -768,7 +768,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
768
768
  };
769
769
  const se_CreateScheduledQueryRequest = (input, context) => {
770
770
  return (0, smithy_client_1.take)(input, {
771
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
771
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
772
772
  ErrorReportConfiguration: smithy_client_1._json,
773
773
  KmsKeyId: [],
774
774
  Name: [],
@@ -782,14 +782,14 @@ const se_CreateScheduledQueryRequest = (input, context) => {
782
782
  };
783
783
  const se_ExecuteScheduledQueryRequest = (input, context) => {
784
784
  return (0, smithy_client_1.take)(input, {
785
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
785
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
786
786
  InvocationTime: (_) => Math.round(_.getTime() / 1000),
787
787
  ScheduledQueryArn: [],
788
788
  });
789
789
  };
790
790
  const se_QueryRequest = (input, context) => {
791
791
  return (0, smithy_client_1.take)(input, {
792
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
792
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
793
793
  MaxRows: [],
794
794
  NextToken: [],
795
795
  QueryString: [],
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CancelQueryCommand } from "./commands/CancelQueryCommand";
2
3
  import { CreateScheduledQueryCommand, } from "./commands/CreateScheduledQueryCommand";
3
4
  import { DeleteScheduledQueryCommand, } from "./commands/DeleteScheduledQueryCommand";
@@ -12,187 +13,21 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
12
13
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
13
14
  import { UpdateScheduledQueryCommand, } from "./commands/UpdateScheduledQueryCommand";
14
15
  import { TimestreamQueryClient } from "./TimestreamQueryClient";
16
+ const commands = {
17
+ CancelQueryCommand,
18
+ CreateScheduledQueryCommand,
19
+ DeleteScheduledQueryCommand,
20
+ DescribeEndpointsCommand,
21
+ DescribeScheduledQueryCommand,
22
+ ExecuteScheduledQueryCommand,
23
+ ListScheduledQueriesCommand,
24
+ ListTagsForResourceCommand,
25
+ PrepareQueryCommand,
26
+ QueryCommand,
27
+ TagResourceCommand,
28
+ UntagResourceCommand,
29
+ UpdateScheduledQueryCommand,
30
+ };
15
31
  export class TimestreamQuery extends TimestreamQueryClient {
16
- cancelQuery(args, optionsOrCb, cb) {
17
- const command = new CancelQueryCommand(args);
18
- if (typeof optionsOrCb === "function") {
19
- this.send(command, optionsOrCb);
20
- }
21
- else if (typeof cb === "function") {
22
- if (typeof optionsOrCb !== "object")
23
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
24
- this.send(command, optionsOrCb || {}, cb);
25
- }
26
- else {
27
- return this.send(command, optionsOrCb);
28
- }
29
- }
30
- createScheduledQuery(args, optionsOrCb, cb) {
31
- const command = new CreateScheduledQueryCommand(args);
32
- if (typeof optionsOrCb === "function") {
33
- this.send(command, optionsOrCb);
34
- }
35
- else if (typeof cb === "function") {
36
- if (typeof optionsOrCb !== "object")
37
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
38
- this.send(command, optionsOrCb || {}, cb);
39
- }
40
- else {
41
- return this.send(command, optionsOrCb);
42
- }
43
- }
44
- deleteScheduledQuery(args, optionsOrCb, cb) {
45
- const command = new DeleteScheduledQueryCommand(args);
46
- if (typeof optionsOrCb === "function") {
47
- this.send(command, optionsOrCb);
48
- }
49
- else if (typeof cb === "function") {
50
- if (typeof optionsOrCb !== "object")
51
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
- this.send(command, optionsOrCb || {}, cb);
53
- }
54
- else {
55
- return this.send(command, optionsOrCb);
56
- }
57
- }
58
- describeEndpoints(args, optionsOrCb, cb) {
59
- const command = new DescribeEndpointsCommand(args);
60
- if (typeof optionsOrCb === "function") {
61
- this.send(command, optionsOrCb);
62
- }
63
- else if (typeof cb === "function") {
64
- if (typeof optionsOrCb !== "object")
65
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
- this.send(command, optionsOrCb || {}, cb);
67
- }
68
- else {
69
- return this.send(command, optionsOrCb);
70
- }
71
- }
72
- describeScheduledQuery(args, optionsOrCb, cb) {
73
- const command = new DescribeScheduledQueryCommand(args);
74
- if (typeof optionsOrCb === "function") {
75
- this.send(command, optionsOrCb);
76
- }
77
- else if (typeof cb === "function") {
78
- if (typeof optionsOrCb !== "object")
79
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
- this.send(command, optionsOrCb || {}, cb);
81
- }
82
- else {
83
- return this.send(command, optionsOrCb);
84
- }
85
- }
86
- executeScheduledQuery(args, optionsOrCb, cb) {
87
- const command = new ExecuteScheduledQueryCommand(args);
88
- if (typeof optionsOrCb === "function") {
89
- this.send(command, optionsOrCb);
90
- }
91
- else if (typeof cb === "function") {
92
- if (typeof optionsOrCb !== "object")
93
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
- this.send(command, optionsOrCb || {}, cb);
95
- }
96
- else {
97
- return this.send(command, optionsOrCb);
98
- }
99
- }
100
- listScheduledQueries(args, optionsOrCb, cb) {
101
- const command = new ListScheduledQueriesCommand(args);
102
- if (typeof optionsOrCb === "function") {
103
- this.send(command, optionsOrCb);
104
- }
105
- else if (typeof cb === "function") {
106
- if (typeof optionsOrCb !== "object")
107
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
- this.send(command, optionsOrCb || {}, cb);
109
- }
110
- else {
111
- return this.send(command, optionsOrCb);
112
- }
113
- }
114
- listTagsForResource(args, optionsOrCb, cb) {
115
- const command = new ListTagsForResourceCommand(args);
116
- if (typeof optionsOrCb === "function") {
117
- this.send(command, optionsOrCb);
118
- }
119
- else if (typeof cb === "function") {
120
- if (typeof optionsOrCb !== "object")
121
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
- this.send(command, optionsOrCb || {}, cb);
123
- }
124
- else {
125
- return this.send(command, optionsOrCb);
126
- }
127
- }
128
- prepareQuery(args, optionsOrCb, cb) {
129
- const command = new PrepareQueryCommand(args);
130
- if (typeof optionsOrCb === "function") {
131
- this.send(command, optionsOrCb);
132
- }
133
- else if (typeof cb === "function") {
134
- if (typeof optionsOrCb !== "object")
135
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
- this.send(command, optionsOrCb || {}, cb);
137
- }
138
- else {
139
- return this.send(command, optionsOrCb);
140
- }
141
- }
142
- query(args, optionsOrCb, cb) {
143
- const command = new QueryCommand(args);
144
- if (typeof optionsOrCb === "function") {
145
- this.send(command, optionsOrCb);
146
- }
147
- else if (typeof cb === "function") {
148
- if (typeof optionsOrCb !== "object")
149
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
- this.send(command, optionsOrCb || {}, cb);
151
- }
152
- else {
153
- return this.send(command, optionsOrCb);
154
- }
155
- }
156
- tagResource(args, optionsOrCb, cb) {
157
- const command = new TagResourceCommand(args);
158
- if (typeof optionsOrCb === "function") {
159
- this.send(command, optionsOrCb);
160
- }
161
- else if (typeof cb === "function") {
162
- if (typeof optionsOrCb !== "object")
163
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
- this.send(command, optionsOrCb || {}, cb);
165
- }
166
- else {
167
- return this.send(command, optionsOrCb);
168
- }
169
- }
170
- untagResource(args, optionsOrCb, cb) {
171
- const command = new UntagResourceCommand(args);
172
- if (typeof optionsOrCb === "function") {
173
- this.send(command, optionsOrCb);
174
- }
175
- else if (typeof cb === "function") {
176
- if (typeof optionsOrCb !== "object")
177
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
- this.send(command, optionsOrCb || {}, cb);
179
- }
180
- else {
181
- return this.send(command, optionsOrCb);
182
- }
183
- }
184
- updateScheduledQuery(args, optionsOrCb, cb) {
185
- const command = new UpdateScheduledQueryCommand(args);
186
- if (typeof optionsOrCb === "function") {
187
- this.send(command, optionsOrCb);
188
- }
189
- else if (typeof cb === "function") {
190
- if (typeof optionsOrCb !== "object")
191
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
- this.send(command, optionsOrCb || {}, cb);
193
- }
194
- else {
195
- return this.send(command, optionsOrCb);
196
- }
197
- }
198
32
  }
33
+ createAggregatedClient(commands, TimestreamQuery);
@@ -739,7 +739,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
739
739
  };
740
740
  const se_CreateScheduledQueryRequest = (input, context) => {
741
741
  return take(input, {
742
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
742
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
743
743
  ErrorReportConfiguration: _json,
744
744
  KmsKeyId: [],
745
745
  Name: [],
@@ -753,14 +753,14 @@ const se_CreateScheduledQueryRequest = (input, context) => {
753
753
  };
754
754
  const se_ExecuteScheduledQueryRequest = (input, context) => {
755
755
  return take(input, {
756
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
756
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
757
757
  InvocationTime: (_) => Math.round(_.getTime() / 1000),
758
758
  ScheduledQueryArn: [],
759
759
  });
760
760
  };
761
761
  const se_QueryRequest = (input, context) => {
762
762
  return take(input, {
763
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
763
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
764
764
  MaxRows: [],
765
765
  NextToken: [],
766
766
  QueryString: [],
@@ -13,165 +13,91 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
13
13
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
14
14
  import { UpdateScheduledQueryCommandInput, UpdateScheduledQueryCommandOutput } from "./commands/UpdateScheduledQueryCommand";
15
15
  import { TimestreamQueryClient } from "./TimestreamQueryClient";
16
- /**
17
- * @public
18
- * <fullname>Amazon Timestream Query
19
- * </fullname>
20
- * <p></p>
21
- */
22
- export declare class TimestreamQuery extends TimestreamQueryClient {
16
+ export interface TimestreamQuery {
23
17
  /**
24
- * @public
25
- * <p> Cancels a query that has been issued. Cancellation is provided only if the query has
26
- * not completed running before the cancellation request was issued. Because cancellation
27
- * is an idempotent operation, subsequent cancellation requests will return a
28
- * <code>CancellationMessage</code>, indicating that the query has already been
29
- * canceled. See <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.cancel-query.html">code
30
- * sample</a> for details. </p>
18
+ * @see {@link CancelQueryCommand}
31
19
  */
32
20
  cancelQuery(args: CancelQueryCommandInput, options?: __HttpHandlerOptions): Promise<CancelQueryCommandOutput>;
33
21
  cancelQuery(args: CancelQueryCommandInput, cb: (err: any, data?: CancelQueryCommandOutput) => void): void;
34
22
  cancelQuery(args: CancelQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelQueryCommandOutput) => void): void;
35
23
  /**
36
- * @public
37
- * <p> Create a scheduled query that will be run on your behalf at the configured schedule.
38
- * Timestream assumes the execution role provided as part of the
39
- * <code>ScheduledQueryExecutionRoleArn</code> parameter to run the query. You can use
40
- * the <code>NotificationConfiguration</code> parameter to configure notification for your
41
- * scheduled query operations.</p>
24
+ * @see {@link CreateScheduledQueryCommand}
42
25
  */
43
26
  createScheduledQuery(args: CreateScheduledQueryCommandInput, options?: __HttpHandlerOptions): Promise<CreateScheduledQueryCommandOutput>;
44
27
  createScheduledQuery(args: CreateScheduledQueryCommandInput, cb: (err: any, data?: CreateScheduledQueryCommandOutput) => void): void;
45
28
  createScheduledQuery(args: CreateScheduledQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateScheduledQueryCommandOutput) => void): void;
46
29
  /**
47
- * @public
48
- * <p>Deletes a given scheduled query. This is an irreversible operation. </p>
30
+ * @see {@link DeleteScheduledQueryCommand}
49
31
  */
50
32
  deleteScheduledQuery(args: DeleteScheduledQueryCommandInput, options?: __HttpHandlerOptions): Promise<DeleteScheduledQueryCommandOutput>;
51
33
  deleteScheduledQuery(args: DeleteScheduledQueryCommandInput, cb: (err: any, data?: DeleteScheduledQueryCommandOutput) => void): void;
52
34
  deleteScheduledQuery(args: DeleteScheduledQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteScheduledQueryCommandOutput) => void): void;
53
35
  /**
54
- * @public
55
- * <p>DescribeEndpoints returns a list of available endpoints to make Timestream
56
- * API calls against. This API is available through both Write and Query.</p>
57
- * <p>Because the Timestream SDKs are designed to transparently work with the
58
- * service’s architecture, including the management and mapping of the service endpoints,
59
- * <i>it is not recommended that you use this API unless</i>:</p>
60
- * <ul>
61
- * <li>
62
- * <p>You are using <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/VPCEndpoints">VPC endpoints (Amazon Web Services PrivateLink) with Timestream
63
- * </a>
64
- * </p>
65
- * </li>
66
- * <li>
67
- * <p>Your application uses a programming language that does not yet have SDK
68
- * support</p>
69
- * </li>
70
- * <li>
71
- * <p>You require better control over the client-side implementation</p>
72
- * </li>
73
- * </ul>
74
- * <p>For detailed information on how and when to use and implement DescribeEndpoints, see
75
- * <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/Using.API.html#Using-API.endpoint-discovery">The Endpoint Discovery Pattern</a>.</p>
36
+ * @see {@link DescribeEndpointsCommand}
76
37
  */
77
38
  describeEndpoints(args: DescribeEndpointsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEndpointsCommandOutput>;
78
39
  describeEndpoints(args: DescribeEndpointsCommandInput, cb: (err: any, data?: DescribeEndpointsCommandOutput) => void): void;
79
40
  describeEndpoints(args: DescribeEndpointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEndpointsCommandOutput) => void): void;
80
41
  /**
81
- * @public
82
- * <p>Provides detailed information about a scheduled query.</p>
42
+ * @see {@link DescribeScheduledQueryCommand}
83
43
  */
84
44
  describeScheduledQuery(args: DescribeScheduledQueryCommandInput, options?: __HttpHandlerOptions): Promise<DescribeScheduledQueryCommandOutput>;
85
45
  describeScheduledQuery(args: DescribeScheduledQueryCommandInput, cb: (err: any, data?: DescribeScheduledQueryCommandOutput) => void): void;
86
46
  describeScheduledQuery(args: DescribeScheduledQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeScheduledQueryCommandOutput) => void): void;
87
47
  /**
88
- * @public
89
- * <p> You can use this API to run a scheduled query manually. </p>
48
+ * @see {@link ExecuteScheduledQueryCommand}
90
49
  */
91
50
  executeScheduledQuery(args: ExecuteScheduledQueryCommandInput, options?: __HttpHandlerOptions): Promise<ExecuteScheduledQueryCommandOutput>;
92
51
  executeScheduledQuery(args: ExecuteScheduledQueryCommandInput, cb: (err: any, data?: ExecuteScheduledQueryCommandOutput) => void): void;
93
52
  executeScheduledQuery(args: ExecuteScheduledQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExecuteScheduledQueryCommandOutput) => void): void;
94
53
  /**
95
- * @public
96
- * <p>Gets a list of all scheduled queries in the caller's Amazon account and Region. <code>ListScheduledQueries</code> is eventually consistent. </p>
54
+ * @see {@link ListScheduledQueriesCommand}
97
55
  */
98
56
  listScheduledQueries(args: ListScheduledQueriesCommandInput, options?: __HttpHandlerOptions): Promise<ListScheduledQueriesCommandOutput>;
99
57
  listScheduledQueries(args: ListScheduledQueriesCommandInput, cb: (err: any, data?: ListScheduledQueriesCommandOutput) => void): void;
100
58
  listScheduledQueries(args: ListScheduledQueriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListScheduledQueriesCommandOutput) => void): void;
101
59
  /**
102
- * @public
103
- * <p>List all tags on a Timestream query resource.</p>
60
+ * @see {@link ListTagsForResourceCommand}
104
61
  */
105
62
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
106
63
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
107
64
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
108
65
  /**
109
- * @public
110
- * <p>A synchronous operation that allows you to submit a query with parameters to be stored
111
- * by Timestream for later running. Timestream only supports using this operation with the
112
- * <code>PrepareQueryRequest$ValidateOnly</code> set to <code>true</code>. </p>
66
+ * @see {@link PrepareQueryCommand}
113
67
  */
114
68
  prepareQuery(args: PrepareQueryCommandInput, options?: __HttpHandlerOptions): Promise<PrepareQueryCommandOutput>;
115
69
  prepareQuery(args: PrepareQueryCommandInput, cb: (err: any, data?: PrepareQueryCommandOutput) => void): void;
116
70
  prepareQuery(args: PrepareQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PrepareQueryCommandOutput) => void): void;
117
71
  /**
118
- * @public
119
- * <p>
120
- * <code>Query</code> is a synchronous operation that enables you to run a query against
121
- * your Amazon Timestream data. <code>Query</code> will time out after 60 seconds.
122
- * You must update the default timeout in the SDK to support a timeout of 60 seconds. See
123
- * the <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.run-query.html">code
124
- * sample</a> for details. </p>
125
- * <p>Your query request will fail in the following cases:</p>
126
- * <ul>
127
- * <li>
128
- * <p> If you submit a <code>Query</code> request with the same client token outside
129
- * of the 5-minute idempotency window. </p>
130
- * </li>
131
- * <li>
132
- * <p> If you submit a <code>Query</code> request with the same client token, but
133
- * change other parameters, within the 5-minute idempotency window. </p>
134
- * </li>
135
- * <li>
136
- * <p> If the size of the row (including the query metadata) exceeds 1 MB, then the
137
- * query will fail with the following error message: </p>
138
- * <p>
139
- * <code>Query aborted as max page response size has been exceeded by the output
140
- * result row</code>
141
- * </p>
142
- * </li>
143
- * <li>
144
- * <p> If the IAM principal of the query initiator and the result reader are not the
145
- * same and/or the query initiator and the result reader do not have the same query
146
- * string in the query requests, the query will fail with an <code>Invalid
147
- * pagination token</code> error. </p>
148
- * </li>
149
- * </ul>
72
+ * @see {@link QueryCommand}
150
73
  */
151
74
  query(args: QueryCommandInput, options?: __HttpHandlerOptions): Promise<QueryCommandOutput>;
152
75
  query(args: QueryCommandInput, cb: (err: any, data?: QueryCommandOutput) => void): void;
153
76
  query(args: QueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryCommandOutput) => void): void;
154
77
  /**
155
- * @public
156
- * <p>Associate a set of tags with a Timestream resource. You can then activate these
157
- * user-defined tags so that they appear on the Billing and Cost Management console for
158
- * cost allocation tracking. </p>
78
+ * @see {@link TagResourceCommand}
159
79
  */
160
80
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
161
81
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
162
82
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
163
83
  /**
164
- * @public
165
- * <p>Removes the association of tags from a Timestream query resource.</p>
84
+ * @see {@link UntagResourceCommand}
166
85
  */
167
86
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
168
87
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
169
88
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
170
89
  /**
171
- * @public
172
- * <p>Update a scheduled query.</p>
90
+ * @see {@link UpdateScheduledQueryCommand}
173
91
  */
174
92
  updateScheduledQuery(args: UpdateScheduledQueryCommandInput, options?: __HttpHandlerOptions): Promise<UpdateScheduledQueryCommandOutput>;
175
93
  updateScheduledQuery(args: UpdateScheduledQueryCommandInput, cb: (err: any, data?: UpdateScheduledQueryCommandOutput) => void): void;
176
94
  updateScheduledQuery(args: UpdateScheduledQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateScheduledQueryCommandOutput) => void): void;
177
95
  }
96
+ /**
97
+ * @public
98
+ * <fullname>Amazon Timestream Query
99
+ * </fullname>
100
+ * <p></p>
101
+ */
102
+ export declare class TimestreamQuery extends TimestreamQueryClient implements TimestreamQuery {
103
+ }
@@ -49,7 +49,7 @@ import {
49
49
  UpdateScheduledQueryCommandOutput,
50
50
  } from "./commands/UpdateScheduledQueryCommand";
51
51
  import { TimestreamQueryClient } from "./TimestreamQueryClient";
52
- export declare class TimestreamQuery extends TimestreamQueryClient {
52
+ export interface TimestreamQuery {
53
53
  cancelQuery(
54
54
  args: CancelQueryCommandInput,
55
55
  options?: __HttpHandlerOptions
@@ -220,3 +220,6 @@ export declare class TimestreamQuery extends TimestreamQueryClient {
220
220
  cb: (err: any, data?: UpdateScheduledQueryCommandOutput) => void
221
221
  ): void;
222
222
  }
223
+ export declare class TimestreamQuery
224
+ extends TimestreamQueryClient
225
+ implements TimestreamQuery {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-timestream-query",
3
3
  "description": "AWS SDK for JavaScript Timestream Query Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -37,19 +37,19 @@
37
37
  "@aws-sdk/middleware-serde": "3.310.0",
38
38
  "@aws-sdk/middleware-signing": "3.310.0",
39
39
  "@aws-sdk/middleware-stack": "3.310.0",
40
- "@aws-sdk/middleware-user-agent": "3.310.0",
40
+ "@aws-sdk/middleware-user-agent": "3.319.0",
41
41
  "@aws-sdk/node-config-provider": "3.310.0",
42
42
  "@aws-sdk/node-http-handler": "3.310.0",
43
43
  "@aws-sdk/protocol-http": "3.310.0",
44
- "@aws-sdk/smithy-client": "3.315.0",
44
+ "@aws-sdk/smithy-client": "3.316.0",
45
45
  "@aws-sdk/types": "3.310.0",
46
46
  "@aws-sdk/url-parser": "3.310.0",
47
47
  "@aws-sdk/util-base64": "3.310.0",
48
48
  "@aws-sdk/util-body-length-browser": "3.310.0",
49
49
  "@aws-sdk/util-body-length-node": "3.310.0",
50
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
51
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
52
- "@aws-sdk/util-endpoints": "3.310.0",
50
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
51
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
52
+ "@aws-sdk/util-endpoints": "3.319.0",
53
53
  "@aws-sdk/util-retry": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-browser": "3.310.0",
55
55
  "@aws-sdk/util-user-agent-node": "3.310.0",