@aws-sdk/client-athena 3.112.0 → 3.121.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
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { AthenaClient } from "./AthenaClient";
3
3
  import { BatchGetNamedQueryCommandInput, BatchGetNamedQueryCommandOutput } from "./commands/BatchGetNamedQueryCommand";
4
+ import { BatchGetPreparedStatementCommandInput, BatchGetPreparedStatementCommandOutput } from "./commands/BatchGetPreparedStatementCommand";
4
5
  import { BatchGetQueryExecutionCommandInput, BatchGetQueryExecutionCommandOutput } from "./commands/BatchGetQueryExecutionCommand";
5
6
  import { CreateDataCatalogCommandInput, CreateDataCatalogCommandOutput } from "./commands/CreateDataCatalogCommand";
6
7
  import { CreateNamedQueryCommandInput, CreateNamedQueryCommandOutput } from "./commands/CreateNamedQueryCommand";
@@ -66,6 +67,12 @@ export declare class Athena extends AthenaClient {
66
67
  batchGetNamedQuery(args: BatchGetNamedQueryCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetNamedQueryCommandOutput>;
67
68
  batchGetNamedQuery(args: BatchGetNamedQueryCommandInput, cb: (err: any, data?: BatchGetNamedQueryCommandOutput) => void): void;
68
69
  batchGetNamedQuery(args: BatchGetNamedQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetNamedQueryCommandOutput) => void): void;
70
+ /**
71
+ * <p>Returns the details of a single prepared statement or a list of up to 256 prepared statements for the array of prepared statement names that you provide. Requires you to have access to the workgroup to which the prepared statements belong. If a prepared statement cannot be retrieved for the name specified, the statement is listed in <code>UnprocessedPreparedStatementNames</code>.</p>
72
+ */
73
+ batchGetPreparedStatement(args: BatchGetPreparedStatementCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetPreparedStatementCommandOutput>;
74
+ batchGetPreparedStatement(args: BatchGetPreparedStatementCommandInput, cb: (err: any, data?: BatchGetPreparedStatementCommandOutput) => void): void;
75
+ batchGetPreparedStatement(args: BatchGetPreparedStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetPreparedStatementCommandOutput) => void): void;
69
76
  /**
70
77
  * <p>Returns the details of a single query execution or a list of up to 50 query
71
78
  * executions, which you provide as an array of query execution ID strings. Requires you to
@@ -233,7 +240,7 @@ export declare class Athena extends AthenaClient {
233
240
  listNamedQueries(args: ListNamedQueriesCommandInput, cb: (err: any, data?: ListNamedQueriesCommandOutput) => void): void;
234
241
  listNamedQueries(args: ListNamedQueriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListNamedQueriesCommandOutput) => void): void;
235
242
  /**
236
- * <p>Lists the prepared statements in the specfied workgroup.</p>
243
+ * <p>Lists the prepared statements in the specified workgroup.</p>
237
244
  */
238
245
  listPreparedStatements(args: ListPreparedStatementsCommandInput, options?: __HttpHandlerOptions): Promise<ListPreparedStatementsCommandOutput>;
239
246
  listPreparedStatements(args: ListPreparedStatementsCommandInput, cb: (err: any, data?: ListPreparedStatementsCommandOutput) => void): void;
@@ -7,6 +7,7 @@ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchGetNamedQueryCommandInput, BatchGetNamedQueryCommandOutput } from "./commands/BatchGetNamedQueryCommand";
10
+ import { BatchGetPreparedStatementCommandInput, BatchGetPreparedStatementCommandOutput } from "./commands/BatchGetPreparedStatementCommand";
10
11
  import { BatchGetQueryExecutionCommandInput, BatchGetQueryExecutionCommandOutput } from "./commands/BatchGetQueryExecutionCommand";
11
12
  import { CreateDataCatalogCommandInput, CreateDataCatalogCommandOutput } from "./commands/CreateDataCatalogCommand";
12
13
  import { CreateNamedQueryCommandInput, CreateNamedQueryCommandOutput } from "./commands/CreateNamedQueryCommand";
@@ -41,8 +42,8 @@ import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from ".
41
42
  import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "./commands/UpdateNamedQueryCommand";
42
43
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "./commands/UpdatePreparedStatementCommand";
43
44
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "./commands/UpdateWorkGroupCommand";
44
- export declare type ServiceInputTypes = BatchGetNamedQueryCommandInput | BatchGetQueryExecutionCommandInput | CreateDataCatalogCommandInput | CreateNamedQueryCommandInput | CreatePreparedStatementCommandInput | CreateWorkGroupCommandInput | DeleteDataCatalogCommandInput | DeleteNamedQueryCommandInput | DeletePreparedStatementCommandInput | DeleteWorkGroupCommandInput | GetDataCatalogCommandInput | GetDatabaseCommandInput | GetNamedQueryCommandInput | GetPreparedStatementCommandInput | GetQueryExecutionCommandInput | GetQueryResultsCommandInput | GetTableMetadataCommandInput | GetWorkGroupCommandInput | ListDataCatalogsCommandInput | ListDatabasesCommandInput | ListEngineVersionsCommandInput | ListNamedQueriesCommandInput | ListPreparedStatementsCommandInput | ListQueryExecutionsCommandInput | ListTableMetadataCommandInput | ListTagsForResourceCommandInput | ListWorkGroupsCommandInput | StartQueryExecutionCommandInput | StopQueryExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDataCatalogCommandInput | UpdateNamedQueryCommandInput | UpdatePreparedStatementCommandInput | UpdateWorkGroupCommandInput;
45
- export declare type ServiceOutputTypes = BatchGetNamedQueryCommandOutput | BatchGetQueryExecutionCommandOutput | CreateDataCatalogCommandOutput | CreateNamedQueryCommandOutput | CreatePreparedStatementCommandOutput | CreateWorkGroupCommandOutput | DeleteDataCatalogCommandOutput | DeleteNamedQueryCommandOutput | DeletePreparedStatementCommandOutput | DeleteWorkGroupCommandOutput | GetDataCatalogCommandOutput | GetDatabaseCommandOutput | GetNamedQueryCommandOutput | GetPreparedStatementCommandOutput | GetQueryExecutionCommandOutput | GetQueryResultsCommandOutput | GetTableMetadataCommandOutput | GetWorkGroupCommandOutput | ListDataCatalogsCommandOutput | ListDatabasesCommandOutput | ListEngineVersionsCommandOutput | ListNamedQueriesCommandOutput | ListPreparedStatementsCommandOutput | ListQueryExecutionsCommandOutput | ListTableMetadataCommandOutput | ListTagsForResourceCommandOutput | ListWorkGroupsCommandOutput | StartQueryExecutionCommandOutput | StopQueryExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDataCatalogCommandOutput | UpdateNamedQueryCommandOutput | UpdatePreparedStatementCommandOutput | UpdateWorkGroupCommandOutput;
45
+ export declare type ServiceInputTypes = BatchGetNamedQueryCommandInput | BatchGetPreparedStatementCommandInput | BatchGetQueryExecutionCommandInput | CreateDataCatalogCommandInput | CreateNamedQueryCommandInput | CreatePreparedStatementCommandInput | CreateWorkGroupCommandInput | DeleteDataCatalogCommandInput | DeleteNamedQueryCommandInput | DeletePreparedStatementCommandInput | DeleteWorkGroupCommandInput | GetDataCatalogCommandInput | GetDatabaseCommandInput | GetNamedQueryCommandInput | GetPreparedStatementCommandInput | GetQueryExecutionCommandInput | GetQueryResultsCommandInput | GetTableMetadataCommandInput | GetWorkGroupCommandInput | ListDataCatalogsCommandInput | ListDatabasesCommandInput | ListEngineVersionsCommandInput | ListNamedQueriesCommandInput | ListPreparedStatementsCommandInput | ListQueryExecutionsCommandInput | ListTableMetadataCommandInput | ListTagsForResourceCommandInput | ListWorkGroupsCommandInput | StartQueryExecutionCommandInput | StopQueryExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDataCatalogCommandInput | UpdateNamedQueryCommandInput | UpdatePreparedStatementCommandInput | UpdateWorkGroupCommandInput;
46
+ export declare type ServiceOutputTypes = BatchGetNamedQueryCommandOutput | BatchGetPreparedStatementCommandOutput | BatchGetQueryExecutionCommandOutput | CreateDataCatalogCommandOutput | CreateNamedQueryCommandOutput | CreatePreparedStatementCommandOutput | CreateWorkGroupCommandOutput | DeleteDataCatalogCommandOutput | DeleteNamedQueryCommandOutput | DeletePreparedStatementCommandOutput | DeleteWorkGroupCommandOutput | GetDataCatalogCommandOutput | GetDatabaseCommandOutput | GetNamedQueryCommandOutput | GetPreparedStatementCommandOutput | GetQueryExecutionCommandOutput | GetQueryResultsCommandOutput | GetTableMetadataCommandOutput | GetWorkGroupCommandOutput | ListDataCatalogsCommandOutput | ListDatabasesCommandOutput | ListEngineVersionsCommandOutput | ListNamedQueriesCommandOutput | ListPreparedStatementsCommandOutput | ListQueryExecutionsCommandOutput | ListTableMetadataCommandOutput | ListTagsForResourceCommandOutput | ListWorkGroupsCommandOutput | StartQueryExecutionCommandOutput | StopQueryExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDataCatalogCommandOutput | UpdateNamedQueryCommandOutput | UpdatePreparedStatementCommandOutput | UpdateWorkGroupCommandOutput;
46
47
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
47
48
  /**
48
49
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { AthenaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AthenaClient";
4
+ import { BatchGetPreparedStatementInput, BatchGetPreparedStatementOutput } from "../models/models_0";
5
+ export interface BatchGetPreparedStatementCommandInput extends BatchGetPreparedStatementInput {
6
+ }
7
+ export interface BatchGetPreparedStatementCommandOutput extends BatchGetPreparedStatementOutput, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Returns the details of a single prepared statement or a list of up to 256 prepared statements for the array of prepared statement names that you provide. Requires you to have access to the workgroup to which the prepared statements belong. If a prepared statement cannot be retrieved for the name specified, the statement is listed in <code>UnprocessedPreparedStatementNames</code>.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { AthenaClient, BatchGetPreparedStatementCommand } from "@aws-sdk/client-athena"; // ES Modules import
15
+ * // const { AthenaClient, BatchGetPreparedStatementCommand } = require("@aws-sdk/client-athena"); // CommonJS import
16
+ * const client = new AthenaClient(config);
17
+ * const command = new BatchGetPreparedStatementCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link BatchGetPreparedStatementCommandInput} for command's `input` shape.
22
+ * @see {@link BatchGetPreparedStatementCommandOutput} for command's `response` shape.
23
+ * @see {@link AthenaClientResolvedConfig | config} for AthenaClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class BatchGetPreparedStatementCommand extends $Command<BatchGetPreparedStatementCommandInput, BatchGetPreparedStatementCommandOutput, AthenaClientResolvedConfig> {
27
+ readonly input: BatchGetPreparedStatementCommandInput;
28
+ constructor(input: BatchGetPreparedStatementCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetPreparedStatementCommandInput, BatchGetPreparedStatementCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -7,7 +7,7 @@ export interface ListPreparedStatementsCommandInput extends ListPreparedStatemen
7
7
  export interface ListPreparedStatementsCommandOutput extends ListPreparedStatementsOutput, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Lists the prepared statements in the specfied workgroup.</p>
10
+ * <p>Lists the prepared statements in the specified workgroup.</p>
11
11
  * @example
12
12
  * Use a bare-bones client and the command you need to make an API call.
13
13
  * ```javascript
@@ -1,4 +1,5 @@
1
1
  export * from "./BatchGetNamedQueryCommand";
2
+ export * from "./BatchGetPreparedStatementCommand";
2
3
  export * from "./BatchGetQueryExecutionCommand";
3
4
  export * from "./CreateDataCatalogCommand";
4
5
  export * from "./CreateNamedQueryCommand";
@@ -147,6 +147,110 @@ export declare class InvalidRequestException extends __BaseException {
147
147
  */
148
148
  constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
149
149
  }
150
+ export interface BatchGetPreparedStatementInput {
151
+ /**
152
+ * <p>A list of prepared statement names to return.</p>
153
+ */
154
+ PreparedStatementNames: string[] | undefined;
155
+ /**
156
+ * <p>The name of the workgroup to which the prepared statements belong.</p>
157
+ */
158
+ WorkGroup: string | undefined;
159
+ }
160
+ export declare namespace BatchGetPreparedStatementInput {
161
+ /**
162
+ * @internal
163
+ */
164
+ const filterSensitiveLog: (obj: BatchGetPreparedStatementInput) => any;
165
+ }
166
+ /**
167
+ * <p>A prepared SQL statement for use with Athena.</p>
168
+ */
169
+ export interface PreparedStatement {
170
+ /**
171
+ * <p>The name of the prepared statement.</p>
172
+ */
173
+ StatementName?: string;
174
+ /**
175
+ * <p>The query string for the prepared statement.</p>
176
+ */
177
+ QueryStatement?: string;
178
+ /**
179
+ * <p>The name of the workgroup to which the prepared statement belongs.</p>
180
+ */
181
+ WorkGroupName?: string;
182
+ /**
183
+ * <p>The description of the prepared statement.</p>
184
+ */
185
+ Description?: string;
186
+ /**
187
+ * <p>The last modified time of the prepared statement.</p>
188
+ */
189
+ LastModifiedTime?: Date;
190
+ }
191
+ export declare namespace PreparedStatement {
192
+ /**
193
+ * @internal
194
+ */
195
+ const filterSensitiveLog: (obj: PreparedStatement) => any;
196
+ }
197
+ /**
198
+ * <p>The name of a prepared statement that could not be returned.</p>
199
+ */
200
+ export interface UnprocessedPreparedStatementName {
201
+ /**
202
+ * <p>The name of a prepared statement that could not be returned due to an error.</p>
203
+ */
204
+ StatementName?: string;
205
+ /**
206
+ * <p>The error code returned when the request for the prepared statement failed.</p>
207
+ */
208
+ ErrorCode?: string;
209
+ /**
210
+ * <p>The error message containing the reason why the prepared statement could not be returned.
211
+ * The following error messages are possible:</p>
212
+ * <ul>
213
+ * <li>
214
+ * <p>
215
+ * <code>INVALID_INPUT</code> - The name of the prepared statement that was
216
+ * provided is not valid (for example, the name is too long).</p>
217
+ * </li>
218
+ * <li>
219
+ * <p>
220
+ * <code>STATEMENT_NOT_FOUND</code> - A prepared statement with the name provided
221
+ * could not be found.</p>
222
+ * </li>
223
+ * <li>
224
+ * <p>
225
+ * <code>UNAUTHORIZED</code> - The requester does not have permission to access
226
+ * the workgroup that contains the prepared statement.</p>
227
+ * </li>
228
+ * </ul>
229
+ */
230
+ ErrorMessage?: string;
231
+ }
232
+ export declare namespace UnprocessedPreparedStatementName {
233
+ /**
234
+ * @internal
235
+ */
236
+ const filterSensitiveLog: (obj: UnprocessedPreparedStatementName) => any;
237
+ }
238
+ export interface BatchGetPreparedStatementOutput {
239
+ /**
240
+ * <p>The list of prepared statements returned.</p>
241
+ */
242
+ PreparedStatements?: PreparedStatement[];
243
+ /**
244
+ * <p>A list of one or more prepared statements that were requested but could not be returned.</p>
245
+ */
246
+ UnprocessedPreparedStatementNames?: UnprocessedPreparedStatementName[];
247
+ }
248
+ export declare namespace BatchGetPreparedStatementOutput {
249
+ /**
250
+ * @internal
251
+ */
252
+ const filterSensitiveLog: (obj: BatchGetPreparedStatementOutput) => any;
253
+ }
150
254
  export interface BatchGetQueryExecutionInput {
151
255
  /**
152
256
  * <p>An array of query execution IDs.</p>
@@ -489,6 +593,10 @@ export interface QueryExecution {
489
593
  * <p>The engine version that executed the query.</p>
490
594
  */
491
595
  EngineVersion?: EngineVersion;
596
+ /**
597
+ * <p>A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur.</p>
598
+ */
599
+ ExecutionParameters?: string[];
492
600
  }
493
601
  export declare namespace QueryExecution {
494
602
  /**
@@ -933,6 +1041,9 @@ export declare class ResourceNotFoundException extends __BaseException {
933
1041
  readonly name: "ResourceNotFoundException";
934
1042
  readonly $fault: "client";
935
1043
  Message?: string;
1044
+ /**
1045
+ * <p>The name of the Amazon resource.</p>
1046
+ */
936
1047
  ResourceName?: string;
937
1048
  /**
938
1049
  * @internal
@@ -1190,37 +1301,6 @@ export declare namespace GetPreparedStatementInput {
1190
1301
  */
1191
1302
  const filterSensitiveLog: (obj: GetPreparedStatementInput) => any;
1192
1303
  }
1193
- /**
1194
- * <p>A prepared SQL statement for use with Athena.</p>
1195
- */
1196
- export interface PreparedStatement {
1197
- /**
1198
- * <p>The name of the prepared statement.</p>
1199
- */
1200
- StatementName?: string;
1201
- /**
1202
- * <p>The query string for the prepared statement.</p>
1203
- */
1204
- QueryStatement?: string;
1205
- /**
1206
- * <p>The name of the workgroup to which the prepared statement belongs.</p>
1207
- */
1208
- WorkGroupName?: string;
1209
- /**
1210
- * <p>The description of the prepared statement.</p>
1211
- */
1212
- Description?: string;
1213
- /**
1214
- * <p>The last modified time of the prepared statement.</p>
1215
- */
1216
- LastModifiedTime?: Date;
1217
- }
1218
- export declare namespace PreparedStatement {
1219
- /**
1220
- * @internal
1221
- */
1222
- const filterSensitiveLog: (obj: PreparedStatement) => any;
1223
- }
1224
1304
  export interface GetPreparedStatementOutput {
1225
1305
  /**
1226
1306
  * <p>The name of the prepared statement that was retrieved.</p>
@@ -2061,6 +2141,10 @@ export interface StartQueryExecutionInput {
2061
2141
  * <p>The name of the workgroup in which the query is being started.</p>
2062
2142
  */
2063
2143
  WorkGroup?: string;
2144
+ /**
2145
+ * <p>A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur.</p>
2146
+ */
2147
+ ExecutionParameters?: string[];
2064
2148
  }
2065
2149
  export declare namespace StartQueryExecutionInput {
2066
2150
  /**
@@ -1,6 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
3
  import { BatchGetNamedQueryCommandInput, BatchGetNamedQueryCommandOutput } from "../commands/BatchGetNamedQueryCommand";
4
+ import { BatchGetPreparedStatementCommandInput, BatchGetPreparedStatementCommandOutput } from "../commands/BatchGetPreparedStatementCommand";
4
5
  import { BatchGetQueryExecutionCommandInput, BatchGetQueryExecutionCommandOutput } from "../commands/BatchGetQueryExecutionCommand";
5
6
  import { CreateDataCatalogCommandInput, CreateDataCatalogCommandOutput } from "../commands/CreateDataCatalogCommand";
6
7
  import { CreateNamedQueryCommandInput, CreateNamedQueryCommandOutput } from "../commands/CreateNamedQueryCommand";
@@ -36,6 +37,7 @@ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "../
36
37
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "../commands/UpdatePreparedStatementCommand";
37
38
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "../commands/UpdateWorkGroupCommand";
38
39
  export declare const serializeAws_json1_1BatchGetNamedQueryCommand: (input: BatchGetNamedQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
+ export declare const serializeAws_json1_1BatchGetPreparedStatementCommand: (input: BatchGetPreparedStatementCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
39
41
  export declare const serializeAws_json1_1BatchGetQueryExecutionCommand: (input: BatchGetQueryExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
42
  export declare const serializeAws_json1_1CreateDataCatalogCommand: (input: CreateDataCatalogCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
41
43
  export declare const serializeAws_json1_1CreateNamedQueryCommand: (input: CreateNamedQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -71,6 +73,7 @@ export declare const serializeAws_json1_1UpdateNamedQueryCommand: (input: Update
71
73
  export declare const serializeAws_json1_1UpdatePreparedStatementCommand: (input: UpdatePreparedStatementCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
72
74
  export declare const serializeAws_json1_1UpdateWorkGroupCommand: (input: UpdateWorkGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
73
75
  export declare const deserializeAws_json1_1BatchGetNamedQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetNamedQueryCommandOutput>;
76
+ export declare const deserializeAws_json1_1BatchGetPreparedStatementCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetPreparedStatementCommandOutput>;
74
77
  export declare const deserializeAws_json1_1BatchGetQueryExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetQueryExecutionCommandOutput>;
75
78
  export declare const deserializeAws_json1_1CreateDataCatalogCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateDataCatalogCommandOutput>;
76
79
  export declare const deserializeAws_json1_1CreateNamedQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateNamedQueryCommandOutput>;
@@ -1,6 +1,7 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { AthenaClient } from "./AthenaClient";
3
3
  import { BatchGetNamedQueryCommandInput, BatchGetNamedQueryCommandOutput } from "./commands/BatchGetNamedQueryCommand";
4
+ import { BatchGetPreparedStatementCommandInput, BatchGetPreparedStatementCommandOutput } from "./commands/BatchGetPreparedStatementCommand";
4
5
  import { BatchGetQueryExecutionCommandInput, BatchGetQueryExecutionCommandOutput } from "./commands/BatchGetQueryExecutionCommand";
5
6
  import { CreateDataCatalogCommandInput, CreateDataCatalogCommandOutput } from "./commands/CreateDataCatalogCommand";
6
7
  import { CreateNamedQueryCommandInput, CreateNamedQueryCommandOutput } from "./commands/CreateNamedQueryCommand";
@@ -42,6 +43,10 @@ export declare class Athena extends AthenaClient {
42
43
  batchGetNamedQuery(args: BatchGetNamedQueryCommandInput, cb: (err: any, data?: BatchGetNamedQueryCommandOutput) => void): void;
43
44
  batchGetNamedQuery(args: BatchGetNamedQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetNamedQueryCommandOutput) => void): void;
44
45
 
46
+ batchGetPreparedStatement(args: BatchGetPreparedStatementCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetPreparedStatementCommandOutput>;
47
+ batchGetPreparedStatement(args: BatchGetPreparedStatementCommandInput, cb: (err: any, data?: BatchGetPreparedStatementCommandOutput) => void): void;
48
+ batchGetPreparedStatement(args: BatchGetPreparedStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetPreparedStatementCommandOutput) => void): void;
49
+
45
50
  batchGetQueryExecution(args: BatchGetQueryExecutionCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetQueryExecutionCommandOutput>;
46
51
  batchGetQueryExecution(args: BatchGetQueryExecutionCommandInput, cb: (err: any, data?: BatchGetQueryExecutionCommandOutput) => void): void;
47
52
  batchGetQueryExecution(args: BatchGetQueryExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetQueryExecutionCommandOutput) => void): void;
@@ -7,6 +7,7 @@ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchGetNamedQueryCommandInput, BatchGetNamedQueryCommandOutput } from "./commands/BatchGetNamedQueryCommand";
10
+ import { BatchGetPreparedStatementCommandInput, BatchGetPreparedStatementCommandOutput } from "./commands/BatchGetPreparedStatementCommand";
10
11
  import { BatchGetQueryExecutionCommandInput, BatchGetQueryExecutionCommandOutput } from "./commands/BatchGetQueryExecutionCommand";
11
12
  import { CreateDataCatalogCommandInput, CreateDataCatalogCommandOutput } from "./commands/CreateDataCatalogCommand";
12
13
  import { CreateNamedQueryCommandInput, CreateNamedQueryCommandOutput } from "./commands/CreateNamedQueryCommand";
@@ -41,8 +42,8 @@ import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from ".
41
42
  import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "./commands/UpdateNamedQueryCommand";
42
43
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "./commands/UpdatePreparedStatementCommand";
43
44
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "./commands/UpdateWorkGroupCommand";
44
- export declare type ServiceInputTypes = BatchGetNamedQueryCommandInput | BatchGetQueryExecutionCommandInput | CreateDataCatalogCommandInput | CreateNamedQueryCommandInput | CreatePreparedStatementCommandInput | CreateWorkGroupCommandInput | DeleteDataCatalogCommandInput | DeleteNamedQueryCommandInput | DeletePreparedStatementCommandInput | DeleteWorkGroupCommandInput | GetDataCatalogCommandInput | GetDatabaseCommandInput | GetNamedQueryCommandInput | GetPreparedStatementCommandInput | GetQueryExecutionCommandInput | GetQueryResultsCommandInput | GetTableMetadataCommandInput | GetWorkGroupCommandInput | ListDataCatalogsCommandInput | ListDatabasesCommandInput | ListEngineVersionsCommandInput | ListNamedQueriesCommandInput | ListPreparedStatementsCommandInput | ListQueryExecutionsCommandInput | ListTableMetadataCommandInput | ListTagsForResourceCommandInput | ListWorkGroupsCommandInput | StartQueryExecutionCommandInput | StopQueryExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDataCatalogCommandInput | UpdateNamedQueryCommandInput | UpdatePreparedStatementCommandInput | UpdateWorkGroupCommandInput;
45
- export declare type ServiceOutputTypes = BatchGetNamedQueryCommandOutput | BatchGetQueryExecutionCommandOutput | CreateDataCatalogCommandOutput | CreateNamedQueryCommandOutput | CreatePreparedStatementCommandOutput | CreateWorkGroupCommandOutput | DeleteDataCatalogCommandOutput | DeleteNamedQueryCommandOutput | DeletePreparedStatementCommandOutput | DeleteWorkGroupCommandOutput | GetDataCatalogCommandOutput | GetDatabaseCommandOutput | GetNamedQueryCommandOutput | GetPreparedStatementCommandOutput | GetQueryExecutionCommandOutput | GetQueryResultsCommandOutput | GetTableMetadataCommandOutput | GetWorkGroupCommandOutput | ListDataCatalogsCommandOutput | ListDatabasesCommandOutput | ListEngineVersionsCommandOutput | ListNamedQueriesCommandOutput | ListPreparedStatementsCommandOutput | ListQueryExecutionsCommandOutput | ListTableMetadataCommandOutput | ListTagsForResourceCommandOutput | ListWorkGroupsCommandOutput | StartQueryExecutionCommandOutput | StopQueryExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDataCatalogCommandOutput | UpdateNamedQueryCommandOutput | UpdatePreparedStatementCommandOutput | UpdateWorkGroupCommandOutput;
45
+ export declare type ServiceInputTypes = BatchGetNamedQueryCommandInput | BatchGetPreparedStatementCommandInput | BatchGetQueryExecutionCommandInput | CreateDataCatalogCommandInput | CreateNamedQueryCommandInput | CreatePreparedStatementCommandInput | CreateWorkGroupCommandInput | DeleteDataCatalogCommandInput | DeleteNamedQueryCommandInput | DeletePreparedStatementCommandInput | DeleteWorkGroupCommandInput | GetDataCatalogCommandInput | GetDatabaseCommandInput | GetNamedQueryCommandInput | GetPreparedStatementCommandInput | GetQueryExecutionCommandInput | GetQueryResultsCommandInput | GetTableMetadataCommandInput | GetWorkGroupCommandInput | ListDataCatalogsCommandInput | ListDatabasesCommandInput | ListEngineVersionsCommandInput | ListNamedQueriesCommandInput | ListPreparedStatementsCommandInput | ListQueryExecutionsCommandInput | ListTableMetadataCommandInput | ListTagsForResourceCommandInput | ListWorkGroupsCommandInput | StartQueryExecutionCommandInput | StopQueryExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDataCatalogCommandInput | UpdateNamedQueryCommandInput | UpdatePreparedStatementCommandInput | UpdateWorkGroupCommandInput;
46
+ export declare type ServiceOutputTypes = BatchGetNamedQueryCommandOutput | BatchGetPreparedStatementCommandOutput | BatchGetQueryExecutionCommandOutput | CreateDataCatalogCommandOutput | CreateNamedQueryCommandOutput | CreatePreparedStatementCommandOutput | CreateWorkGroupCommandOutput | DeleteDataCatalogCommandOutput | DeleteNamedQueryCommandOutput | DeletePreparedStatementCommandOutput | DeleteWorkGroupCommandOutput | GetDataCatalogCommandOutput | GetDatabaseCommandOutput | GetNamedQueryCommandOutput | GetPreparedStatementCommandOutput | GetQueryExecutionCommandOutput | GetQueryResultsCommandOutput | GetTableMetadataCommandOutput | GetWorkGroupCommandOutput | ListDataCatalogsCommandOutput | ListDatabasesCommandOutput | ListEngineVersionsCommandOutput | ListNamedQueriesCommandOutput | ListPreparedStatementsCommandOutput | ListQueryExecutionsCommandOutput | ListTableMetadataCommandOutput | ListTagsForResourceCommandOutput | ListWorkGroupsCommandOutput | StartQueryExecutionCommandOutput | StopQueryExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDataCatalogCommandOutput | UpdateNamedQueryCommandOutput | UpdatePreparedStatementCommandOutput | UpdateWorkGroupCommandOutput;
46
47
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
47
48
 
48
49
  requestHandler?: __HttpHandler;
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { AthenaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AthenaClient";
4
+ import { BatchGetPreparedStatementInput, BatchGetPreparedStatementOutput } from "../models/models_0";
5
+ export interface BatchGetPreparedStatementCommandInput extends BatchGetPreparedStatementInput {
6
+ }
7
+ export interface BatchGetPreparedStatementCommandOutput extends BatchGetPreparedStatementOutput, __MetadataBearer {
8
+ }
9
+
10
+ export declare class BatchGetPreparedStatementCommand extends $Command<BatchGetPreparedStatementCommandInput, BatchGetPreparedStatementCommandOutput, AthenaClientResolvedConfig> {
11
+ readonly input: BatchGetPreparedStatementCommandInput;
12
+ constructor(input: BatchGetPreparedStatementCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetPreparedStatementCommandInput, BatchGetPreparedStatementCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./BatchGetNamedQueryCommand";
2
+ export * from "./BatchGetPreparedStatementCommand";
2
3
  export * from "./BatchGetQueryExecutionCommand";
3
4
  export * from "./CreateDataCatalogCommand";
4
5
  export * from "./CreateNamedQueryCommand";
@@ -80,6 +80,56 @@ export declare class InvalidRequestException extends __BaseException {
80
80
 
81
81
  constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
82
82
  }
83
+ export interface BatchGetPreparedStatementInput {
84
+
85
+ PreparedStatementNames: string[] | undefined;
86
+
87
+ WorkGroup: string | undefined;
88
+ }
89
+ export declare namespace BatchGetPreparedStatementInput {
90
+
91
+ const filterSensitiveLog: (obj: BatchGetPreparedStatementInput) => any;
92
+ }
93
+
94
+ export interface PreparedStatement {
95
+
96
+ StatementName?: string;
97
+
98
+ QueryStatement?: string;
99
+
100
+ WorkGroupName?: string;
101
+
102
+ Description?: string;
103
+
104
+ LastModifiedTime?: Date;
105
+ }
106
+ export declare namespace PreparedStatement {
107
+
108
+ const filterSensitiveLog: (obj: PreparedStatement) => any;
109
+ }
110
+
111
+ export interface UnprocessedPreparedStatementName {
112
+
113
+ StatementName?: string;
114
+
115
+ ErrorCode?: string;
116
+
117
+ ErrorMessage?: string;
118
+ }
119
+ export declare namespace UnprocessedPreparedStatementName {
120
+
121
+ const filterSensitiveLog: (obj: UnprocessedPreparedStatementName) => any;
122
+ }
123
+ export interface BatchGetPreparedStatementOutput {
124
+
125
+ PreparedStatements?: PreparedStatement[];
126
+
127
+ UnprocessedPreparedStatementNames?: UnprocessedPreparedStatementName[];
128
+ }
129
+ export declare namespace BatchGetPreparedStatementOutput {
130
+
131
+ const filterSensitiveLog: (obj: BatchGetPreparedStatementOutput) => any;
132
+ }
83
133
  export interface BatchGetQueryExecutionInput {
84
134
 
85
135
  QueryExecutionIds: string[] | undefined;
@@ -226,6 +276,8 @@ export interface QueryExecution {
226
276
  WorkGroup?: string;
227
277
 
228
278
  EngineVersion?: EngineVersion;
279
+
280
+ ExecutionParameters?: string[];
229
281
  }
230
282
  export declare namespace QueryExecution {
231
283
 
@@ -426,6 +478,7 @@ export declare class ResourceNotFoundException extends __BaseException {
426
478
  readonly name: "ResourceNotFoundException";
427
479
  readonly $fault: "client";
428
480
  Message?: string;
481
+
429
482
  ResourceName?: string;
430
483
 
431
484
  constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
@@ -542,23 +595,6 @@ export declare namespace GetPreparedStatementInput {
542
595
 
543
596
  const filterSensitiveLog: (obj: GetPreparedStatementInput) => any;
544
597
  }
545
-
546
- export interface PreparedStatement {
547
-
548
- StatementName?: string;
549
-
550
- QueryStatement?: string;
551
-
552
- WorkGroupName?: string;
553
-
554
- Description?: string;
555
-
556
- LastModifiedTime?: Date;
557
- }
558
- export declare namespace PreparedStatement {
559
-
560
- const filterSensitiveLog: (obj: PreparedStatement) => any;
561
- }
562
598
  export interface GetPreparedStatementOutput {
563
599
 
564
600
  PreparedStatement?: PreparedStatement;
@@ -1014,6 +1050,8 @@ export interface StartQueryExecutionInput {
1014
1050
  ResultConfiguration?: ResultConfiguration;
1015
1051
 
1016
1052
  WorkGroup?: string;
1053
+
1054
+ ExecutionParameters?: string[];
1017
1055
  }
1018
1056
  export declare namespace StartQueryExecutionInput {
1019
1057
 
@@ -1,6 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
3
  import { BatchGetNamedQueryCommandInput, BatchGetNamedQueryCommandOutput } from "../commands/BatchGetNamedQueryCommand";
4
+ import { BatchGetPreparedStatementCommandInput, BatchGetPreparedStatementCommandOutput } from "../commands/BatchGetPreparedStatementCommand";
4
5
  import { BatchGetQueryExecutionCommandInput, BatchGetQueryExecutionCommandOutput } from "../commands/BatchGetQueryExecutionCommand";
5
6
  import { CreateDataCatalogCommandInput, CreateDataCatalogCommandOutput } from "../commands/CreateDataCatalogCommand";
6
7
  import { CreateNamedQueryCommandInput, CreateNamedQueryCommandOutput } from "../commands/CreateNamedQueryCommand";
@@ -36,6 +37,7 @@ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "../
36
37
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "../commands/UpdatePreparedStatementCommand";
37
38
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "../commands/UpdateWorkGroupCommand";
38
39
  export declare const serializeAws_json1_1BatchGetNamedQueryCommand: (input: BatchGetNamedQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
+ export declare const serializeAws_json1_1BatchGetPreparedStatementCommand: (input: BatchGetPreparedStatementCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
39
41
  export declare const serializeAws_json1_1BatchGetQueryExecutionCommand: (input: BatchGetQueryExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
42
  export declare const serializeAws_json1_1CreateDataCatalogCommand: (input: CreateDataCatalogCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
41
43
  export declare const serializeAws_json1_1CreateNamedQueryCommand: (input: CreateNamedQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -71,6 +73,7 @@ export declare const serializeAws_json1_1UpdateNamedQueryCommand: (input: Update
71
73
  export declare const serializeAws_json1_1UpdatePreparedStatementCommand: (input: UpdatePreparedStatementCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
72
74
  export declare const serializeAws_json1_1UpdateWorkGroupCommand: (input: UpdateWorkGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
73
75
  export declare const deserializeAws_json1_1BatchGetNamedQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetNamedQueryCommandOutput>;
76
+ export declare const deserializeAws_json1_1BatchGetPreparedStatementCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetPreparedStatementCommandOutput>;
74
77
  export declare const deserializeAws_json1_1BatchGetQueryExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetQueryExecutionCommandOutput>;
75
78
  export declare const deserializeAws_json1_1CreateDataCatalogCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateDataCatalogCommandOutput>;
76
79
  export declare const deserializeAws_json1_1CreateNamedQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateNamedQueryCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-athena",
3
3
  "description": "AWS SDK for JavaScript Athena Client for Node.js, Browser and React Native",
4
- "version": "3.112.0",
4
+ "version": "3.121.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",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.112.0",
21
+ "@aws-sdk/client-sts": "3.121.0",
22
22
  "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.112.0",
23
+ "@aws-sdk/credential-provider-node": "3.121.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.110.0",
25
25
  "@aws-sdk/hash-node": "3.110.0",
26
26
  "@aws-sdk/invalid-dependency": "3.110.0",
@@ -28,13 +28,13 @@
28
28
  "@aws-sdk/middleware-host-header": "3.110.0",
29
29
  "@aws-sdk/middleware-logger": "3.110.0",
30
30
  "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.110.0",
31
+ "@aws-sdk/middleware-retry": "3.118.1",
32
32
  "@aws-sdk/middleware-serde": "3.110.0",
33
33
  "@aws-sdk/middleware-signing": "3.110.0",
34
34
  "@aws-sdk/middleware-stack": "3.110.0",
35
35
  "@aws-sdk/middleware-user-agent": "3.110.0",
36
36
  "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.110.0",
37
+ "@aws-sdk/node-http-handler": "3.118.1",
38
38
  "@aws-sdk/protocol-http": "3.110.0",
39
39
  "@aws-sdk/smithy-client": "3.110.0",
40
40
  "@aws-sdk/types": "3.110.0",
@@ -46,7 +46,7 @@
46
46
  "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
47
  "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.110.0",
49
+ "@aws-sdk/util-user-agent-node": "3.118.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1",