@aws-sdk/client-athena 3.51.0 → 3.54.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist-cjs/Athena.js +15 -0
  3. package/dist-cjs/commands/UpdateNamedQueryCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/index.js +3 -0
  6. package/dist-cjs/models/AthenaServiceException.js +11 -0
  7. package/dist-cjs/models/models_0.js +99 -3
  8. package/dist-cjs/protocols/Aws_json1_1.js +350 -856
  9. package/dist-es/Athena.js +15 -0
  10. package/dist-es/commands/UpdateNamedQueryCommand.js +39 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/index.js +1 -0
  13. package/dist-es/models/AthenaServiceException.js +12 -0
  14. package/dist-es/models/models_0.js +86 -1
  15. package/dist-es/protocols/Aws_json1_1.js +711 -986
  16. package/dist-types/Athena.d.ts +7 -6
  17. package/dist-types/AthenaClient.d.ts +5 -4
  18. package/dist-types/commands/GetQueryResultsCommand.d.ts +0 -6
  19. package/dist-types/commands/UpdateNamedQueryCommand.d.ts +35 -0
  20. package/dist-types/commands/index.d.ts +1 -0
  21. package/dist-types/index.d.ts +1 -0
  22. package/dist-types/models/AthenaServiceException.d.ts +10 -0
  23. package/dist-types/models/models_0.d.ts +142 -32
  24. package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
  25. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  26. package/dist-types/runtimeConfig.d.ts +1 -1
  27. package/dist-types/runtimeConfig.native.d.ts +1 -1
  28. package/dist-types/ts3.4/Athena.d.ts +5 -0
  29. package/dist-types/ts3.4/AthenaClient.d.ts +5 -4
  30. package/dist-types/ts3.4/commands/UpdateNamedQueryCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  32. package/dist-types/ts3.4/index.d.ts +1 -0
  33. package/dist-types/ts3.4/models/AthenaServiceException.d.ts +6 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +67 -16
  35. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
  36. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  37. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  38. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  39. package/package.json +33 -33
@@ -32,6 +32,7 @@ import { StopQueryExecutionCommandInput, StopQueryExecutionCommandOutput } from
32
32
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
33
33
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
34
34
  import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from "./commands/UpdateDataCatalogCommand";
35
+ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "./commands/UpdateNamedQueryCommand";
35
36
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "./commands/UpdatePreparedStatementCommand";
36
37
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "./commands/UpdateWorkGroupCommand";
37
38
  /**
@@ -174,12 +175,6 @@ export declare class Athena extends AthenaClient {
174
175
  * <code>QueryExecutionId</code> from the Athena query results location in
175
176
  * Amazon S3. For more information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Query Results</a> in the <i>Amazon Athena User Guide</i>. This request does not execute the query
176
177
  * but returns results. Use <a>StartQueryExecution</a> to run a query.</p>
177
- * <p>If the original query execution ran using an <a>ResultConfiguration$ExpectedBucketOwner</a> setting, the setting also
178
- * applies to Amazon S3 read operations when <code>GetQueryResults</code> is
179
- * called. If an expected bucket owner has been specified and the query results are in an
180
- * Amazon S3 bucket whose owner account ID is different from the expected
181
- * bucket owner, the <code>GetQueryResults</code> call fails with an Amazon S3
182
- * permissions error.</p>
183
178
  * <p>To stream query results successfully, the IAM principal with permission to call
184
179
  * <code>GetQueryResults</code> also must have permissions to the Amazon S3
185
180
  * <code>GetObject</code> action for the Athena query results location.</p>
@@ -323,6 +318,12 @@ export declare class Athena extends AthenaClient {
323
318
  updateDataCatalog(args: UpdateDataCatalogCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDataCatalogCommandOutput>;
324
319
  updateDataCatalog(args: UpdateDataCatalogCommandInput, cb: (err: any, data?: UpdateDataCatalogCommandOutput) => void): void;
325
320
  updateDataCatalog(args: UpdateDataCatalogCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDataCatalogCommandOutput) => void): void;
321
+ /**
322
+ * <p>Updates a <a>NamedQuery</a> object. The database or workgroup cannot be updated.</p>
323
+ */
324
+ updateNamedQuery(args: UpdateNamedQueryCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNamedQueryCommandOutput>;
325
+ updateNamedQuery(args: UpdateNamedQueryCommandInput, cb: (err: any, data?: UpdateNamedQueryCommandOutput) => void): void;
326
+ updateNamedQuery(args: UpdateNamedQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateNamedQueryCommandOutput) => void): void;
326
327
  /**
327
328
  * <p>Updates a prepared statement.</p>
328
329
  */
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  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
- import { 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";
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
10
  import { BatchGetQueryExecutionCommandInput, BatchGetQueryExecutionCommandOutput } from "./commands/BatchGetQueryExecutionCommand";
11
11
  import { CreateDataCatalogCommandInput, CreateDataCatalogCommandOutput } from "./commands/CreateDataCatalogCommand";
@@ -38,10 +38,11 @@ import { StopQueryExecutionCommandInput, StopQueryExecutionCommandOutput } from
38
38
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
39
39
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
40
40
  import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from "./commands/UpdateDataCatalogCommand";
41
+ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "./commands/UpdateNamedQueryCommand";
41
42
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "./commands/UpdatePreparedStatementCommand";
42
43
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "./commands/UpdateWorkGroupCommand";
43
- 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 | UpdatePreparedStatementCommandInput | UpdateWorkGroupCommandInput;
44
- 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 | UpdatePreparedStatementCommandOutput | UpdateWorkGroupCommandOutput;
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
46
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
46
47
  /**
47
48
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -62,7 +63,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
62
63
  * A function that can calculate the length of a request body.
63
64
  * @internal
64
65
  */
65
- bodyLengthChecker?: (body: any) => number | undefined;
66
+ bodyLengthChecker?: __BodyLengthCalculator;
66
67
  /**
67
68
  * A function that converts a stream into an array of bytes.
68
69
  * @internal
@@ -11,12 +11,6 @@ export interface GetQueryResultsCommandOutput extends GetQueryResultsOutput, __M
11
11
  * <code>QueryExecutionId</code> from the Athena query results location in
12
12
  * Amazon S3. For more information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Query Results</a> in the <i>Amazon Athena User Guide</i>. This request does not execute the query
13
13
  * but returns results. Use <a>StartQueryExecution</a> to run a query.</p>
14
- * <p>If the original query execution ran using an <a>ResultConfiguration$ExpectedBucketOwner</a> setting, the setting also
15
- * applies to Amazon S3 read operations when <code>GetQueryResults</code> is
16
- * called. If an expected bucket owner has been specified and the query results are in an
17
- * Amazon S3 bucket whose owner account ID is different from the expected
18
- * bucket owner, the <code>GetQueryResults</code> call fails with an Amazon S3
19
- * permissions error.</p>
20
14
  * <p>To stream query results successfully, the IAM principal with permission to call
21
15
  * <code>GetQueryResults</code> also must have permissions to the Amazon S3
22
16
  * <code>GetObject</code> action for the Athena query results location.</p>
@@ -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 { UpdateNamedQueryInput, UpdateNamedQueryOutput } from "../models/models_0";
5
+ export interface UpdateNamedQueryCommandInput extends UpdateNamedQueryInput {
6
+ }
7
+ export interface UpdateNamedQueryCommandOutput extends UpdateNamedQueryOutput, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Updates a <a>NamedQuery</a> object. The database or workgroup cannot be updated.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { AthenaClient, UpdateNamedQueryCommand } from "@aws-sdk/client-athena"; // ES Modules import
15
+ * // const { AthenaClient, UpdateNamedQueryCommand } = require("@aws-sdk/client-athena"); // CommonJS import
16
+ * const client = new AthenaClient(config);
17
+ * const command = new UpdateNamedQueryCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link UpdateNamedQueryCommandInput} for command's `input` shape.
22
+ * @see {@link UpdateNamedQueryCommandOutput} for command's `response` shape.
23
+ * @see {@link AthenaClientResolvedConfig | config} for AthenaClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class UpdateNamedQueryCommand extends $Command<UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput, AthenaClientResolvedConfig> {
27
+ readonly input: UpdateNamedQueryCommandInput;
28
+ constructor(input: UpdateNamedQueryCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -30,5 +30,6 @@ export * from "./StopQueryExecutionCommand";
30
30
  export * from "./TagResourceCommand";
31
31
  export * from "./UntagResourceCommand";
32
32
  export * from "./UpdateDataCatalogCommand";
33
+ export * from "./UpdateNamedQueryCommand";
33
34
  export * from "./UpdatePreparedStatementCommand";
34
35
  export * from "./UpdateWorkGroupCommand";
@@ -3,3 +3,4 @@ export * from "./AthenaClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { AthenaServiceException } from "./models/AthenaServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from Athena service.
4
+ */
5
+ export declare class AthenaServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,33 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { AthenaServiceException as __BaseException } from "./AthenaServiceException";
3
+ export declare enum S3AclOption {
4
+ BUCKET_OWNER_FULL_CONTROL = "BUCKET_OWNER_FULL_CONTROL"
5
+ }
6
+ /**
7
+ * <p>Indicates that an Amazon S3 canned ACL should be set to control ownership of
8
+ * stored query results. When Athena stores query results in Amazon S3,
9
+ * the canned ACL is set with the <code>x-amz-acl</code> request header. For more
10
+ * information about S3 Object Ownership, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html#object-ownership-overview">Object Ownership settings</a> in the <i>Amazon S3 User
11
+ * Guide</i>.</p>
12
+ */
13
+ export interface AclConfiguration {
14
+ /**
15
+ * <p>The Amazon S3 canned ACL that Athena should specify when storing
16
+ * query results. Currently the only supported canned ACL is
17
+ * <code>BUCKET_OWNER_FULL_CONTROL</code>. If a query runs in a workgroup and the
18
+ * workgroup overrides client-side settings, then the Amazon S3 canned ACL
19
+ * specified in the workgroup's settings is used for all queries that run in the workgroup.
20
+ * For more information about Amazon S3 canned ACLs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl">Canned ACL</a> in the <i>Amazon S3 User
21
+ * Guide</i>.</p>
22
+ */
23
+ S3AclOption: S3AclOption | string | undefined;
24
+ }
25
+ export declare namespace AclConfiguration {
26
+ /**
27
+ * @internal
28
+ */
29
+ const filterSensitiveLog: (obj: AclConfiguration) => any;
30
+ }
2
31
  export interface BatchGetNamedQueryInput {
3
32
  /**
4
33
  * <p>An array of query IDs.</p>
@@ -12,8 +41,8 @@ export declare namespace BatchGetNamedQueryInput {
12
41
  const filterSensitiveLog: (obj: BatchGetNamedQueryInput) => any;
13
42
  }
14
43
  /**
15
- * <p>A query, where <code>QueryString</code> is the list of SQL query statements that
16
- * comprise the query.</p>
44
+ * <p>A query, where <code>QueryString</code> contains the SQL statements that
45
+ * make up the query.</p>
17
46
  */
18
47
  export interface NamedQuery {
19
48
  /**
@@ -29,7 +58,7 @@ export interface NamedQuery {
29
58
  */
30
59
  Database: string | undefined;
31
60
  /**
32
- * <p>The SQL query statements that comprise the query.</p>
61
+ * <p>The SQL statements that make up the query.</p>
33
62
  */
34
63
  QueryString: string | undefined;
35
64
  /**
@@ -92,24 +121,32 @@ export declare namespace BatchGetNamedQueryOutput {
92
121
  * <p>Indicates a platform issue, which may be due to a transient condition or
93
122
  * outage.</p>
94
123
  */
95
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
96
- name: "InternalServerException";
97
- $fault: "server";
124
+ export declare class InternalServerException extends __BaseException {
125
+ readonly name: "InternalServerException";
126
+ readonly $fault: "server";
98
127
  Message?: string;
128
+ /**
129
+ * @internal
130
+ */
131
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
99
132
  }
100
133
  /**
101
134
  * <p>Indicates that something is wrong with the input to the request. For example, a
102
135
  * required parameter may be missing or out of range.</p>
103
136
  */
104
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
105
- name: "InvalidRequestException";
106
- $fault: "client";
137
+ export declare class InvalidRequestException extends __BaseException {
138
+ readonly name: "InvalidRequestException";
139
+ readonly $fault: "client";
107
140
  /**
108
141
  * <p>The error code returned when the query execution failed to process, or when the
109
142
  * processing request for the named query failed.</p>
110
143
  */
111
144
  AthenaErrorCode?: string;
112
145
  Message?: string;
146
+ /**
147
+ * @internal
148
+ */
149
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
113
150
  }
114
151
  export interface BatchGetQueryExecutionInput {
115
152
  /**
@@ -229,7 +266,7 @@ export interface ResultConfiguration {
229
266
  * <p>The Amazon Web Services account ID that you expect to be the owner of the Amazon S3 bucket specified by <a>ResultConfiguration$OutputLocation</a>.
230
267
  * If set, Athena uses the value for <code>ExpectedBucketOwner</code> when it
231
268
  * makes Amazon S3 calls to your specified output location. If the
232
- * <code>ExpectedBucketOwner</code>
269
+ * <code>ExpectedBucketOwner</code>
233
270
  * Amazon Web Services account ID does not match the actual owner of the Amazon S3
234
271
  * bucket, the call fails with a permissions error.</p>
235
272
  * <p>This is a client-side setting. If workgroup settings override client-side settings,
@@ -239,6 +276,15 @@ export interface ResultConfiguration {
239
276
  * and <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override Client-Side Settings</a>.</p>
240
277
  */
241
278
  ExpectedBucketOwner?: string;
279
+ /**
280
+ * <p>Indicates that an Amazon S3 canned ACL should be set to control ownership of
281
+ * stored query results. Currently the only supported canned ACL is
282
+ * <code>BUCKET_OWNER_FULL_CONTROL</code>. This is a client-side setting. If workgroup
283
+ * settings override client-side settings, then the query uses the ACL configuration that
284
+ * is specified for the workgroup, and also uses the location for storing query results
285
+ * specified in the workgroup. For more information, see <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a> and <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override Client-Side Settings</a>.</p>
286
+ */
287
+ AclConfiguration?: AclConfiguration;
242
288
  }
243
289
  export declare namespace ResultConfiguration {
244
290
  /**
@@ -308,7 +354,7 @@ export declare namespace QueryExecutionStatistics {
308
354
  * <code>AthenaError</code> feature provides standardized error information to help you
309
355
  * understand failed queries and take steps after a query failure occurs.
310
356
  * <code>AthenaError</code> includes an <code>ErrorCategory</code> field that specifies
311
- * whether the cause of the failed query is due to system error, user error, or unknown
357
+ * whether the cause of the failed query is due to system error, user error, or other
312
358
  * error.</p>
313
359
  */
314
360
  export interface AthenaError {
@@ -320,9 +366,15 @@ export interface AthenaError {
320
366
  * <p>
321
367
  * <b>2</b> - User</p>
322
368
  * <p>
323
- * <b>3</b> - Unknown</p>
369
+ * <b>3</b> - Other</p>
324
370
  */
325
371
  ErrorCategory?: number;
372
+ /**
373
+ * <p>An integer value that provides specific information about an Athena query
374
+ * error. For the meaning of specific values, see the <a href="https://docs.aws.amazon.com/athena/latest/ug/error-reference.html#error-reference-error-type-reference">Error Type Reference</a> in the <i>Amazon Athena User
375
+ * Guide</i>.</p>
376
+ */
377
+ ErrorType?: number;
326
378
  }
327
379
  export declare namespace AthenaError {
328
380
  /**
@@ -872,11 +924,15 @@ export declare namespace DeletePreparedStatementOutput {
872
924
  /**
873
925
  * <p>A resource, such as a workgroup, was not found.</p>
874
926
  */
875
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
876
- name: "ResourceNotFoundException";
877
- $fault: "client";
927
+ export declare class ResourceNotFoundException extends __BaseException {
928
+ readonly name: "ResourceNotFoundException";
929
+ readonly $fault: "client";
878
930
  Message?: string;
879
931
  ResourceName?: string;
932
+ /**
933
+ * @internal
934
+ */
935
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
880
936
  }
881
937
  export interface DeleteWorkGroupInput {
882
938
  /**
@@ -964,10 +1020,14 @@ export declare namespace GetDatabaseOutput {
964
1020
  * Lambda
965
1021
  * <code>4XX</code> exception is returned in a <code>MetadataException</code>.</p>
966
1022
  */
967
- export interface MetadataException extends __SmithyException, $MetadataBearer {
968
- name: "MetadataException";
969
- $fault: "client";
1023
+ export declare class MetadataException extends __BaseException {
1024
+ readonly name: "MetadataException";
1025
+ readonly $fault: "client";
970
1026
  Message?: string;
1027
+ /**
1028
+ * @internal
1029
+ */
1030
+ constructor(opts: __ExceptionOptionType<MetadataException, __BaseException>);
971
1031
  }
972
1032
  export interface GetDataCatalogInput {
973
1033
  /**
@@ -1308,7 +1368,7 @@ export declare namespace Datum {
1308
1368
  const filterSensitiveLog: (obj: Datum) => any;
1309
1369
  }
1310
1370
  /**
1311
- * <p>The rows that comprise a query result table.</p>
1371
+ * <p>The rows that make up a query result table.</p>
1312
1372
  */
1313
1373
  export interface Row {
1314
1374
  /**
@@ -1323,7 +1383,7 @@ export declare namespace Row {
1323
1383
  const filterSensitiveLog: (obj: Row) => any;
1324
1384
  }
1325
1385
  /**
1326
- * <p>The metadata and rows that comprise a query result set. The metadata describes the
1386
+ * <p>The metadata and rows that make up a query result set. The metadata describes the
1327
1387
  * column structure and data types. To return a <code>ResultSet</code> object, use <a>GetQueryResults</a>.</p>
1328
1388
  */
1329
1389
  export interface ResultSet {
@@ -2027,15 +2087,19 @@ export declare enum ThrottleReason {
2027
2087
  /**
2028
2088
  * <p>Indicates that the request was throttled.</p>
2029
2089
  */
2030
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
2031
- name: "TooManyRequestsException";
2032
- $fault: "client";
2090
+ export declare class TooManyRequestsException extends __BaseException {
2091
+ readonly name: "TooManyRequestsException";
2092
+ readonly $fault: "client";
2033
2093
  Message?: string;
2034
2094
  /**
2035
2095
  * <p>The reason for the query throttling, for example, when it exceeds the concurrent query
2036
2096
  * limit.</p>
2037
2097
  */
2038
2098
  Reason?: ThrottleReason | string;
2099
+ /**
2100
+ * @internal
2101
+ */
2102
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
2039
2103
  }
2040
2104
  export interface StopQueryExecutionInput {
2041
2105
  /**
@@ -2184,6 +2248,38 @@ export declare namespace UpdateDataCatalogOutput {
2184
2248
  */
2185
2249
  const filterSensitiveLog: (obj: UpdateDataCatalogOutput) => any;
2186
2250
  }
2251
+ export interface UpdateNamedQueryInput {
2252
+ /**
2253
+ * <p>The unique identifier (UUID) of the query.</p>
2254
+ */
2255
+ NamedQueryId: string | undefined;
2256
+ /**
2257
+ * <p>The name of the query.</p>
2258
+ */
2259
+ Name: string | undefined;
2260
+ /**
2261
+ * <p>The query description.</p>
2262
+ */
2263
+ Description?: string;
2264
+ /**
2265
+ * <p>The contents of the query with all query statements.</p>
2266
+ */
2267
+ QueryString: string | undefined;
2268
+ }
2269
+ export declare namespace UpdateNamedQueryInput {
2270
+ /**
2271
+ * @internal
2272
+ */
2273
+ const filterSensitiveLog: (obj: UpdateNamedQueryInput) => any;
2274
+ }
2275
+ export interface UpdateNamedQueryOutput {
2276
+ }
2277
+ export declare namespace UpdateNamedQueryOutput {
2278
+ /**
2279
+ * @internal
2280
+ */
2281
+ const filterSensitiveLog: (obj: UpdateNamedQueryOutput) => any;
2282
+ }
2187
2283
  export interface UpdatePreparedStatementInput {
2188
2284
  /**
2189
2285
  * <p>The name of the prepared statement.</p>
@@ -2235,9 +2331,9 @@ export interface ResultConfigurationUpdates {
2235
2331
  * <p>If set to "true", indicates that the previously-specified query results location (also
2236
2332
  * known as a client-side setting) for queries in this workgroup should be ignored and set
2237
2333
  * to null. If set to "false" or not set, and a value is present in the
2238
- * <code>OutputLocation</code> in <code>ResultConfigurationUpdates</code> (the
2334
+ * <code>OutputLocation</code> in <code>ResultConfigurationUpdates</code> (the
2239
2335
  * client-side setting), the <code>OutputLocation</code> in the workgroup's
2240
- * <code>ResultConfiguration</code> is updated with the new value. For more
2336
+ * <code>ResultConfiguration</code> will be updated with the new value. For more
2241
2337
  * information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override
2242
2338
  * Client-Side Settings</a>.</p>
2243
2339
  */
@@ -2252,7 +2348,7 @@ export interface ResultConfigurationUpdates {
2252
2348
  * and set to null. If set to "false" or not set, and a value is present in the
2253
2349
  * <code>EncryptionConfiguration</code> in <code>ResultConfigurationUpdates</code> (the
2254
2350
  * client-side setting), the <code>EncryptionConfiguration</code> in the workgroup's
2255
- * <code>ResultConfiguration</code> is updated with the new value. For more
2351
+ * <code>ResultConfiguration</code> will be updated with the new value. For more
2256
2352
  * information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override
2257
2353
  * Client-Side Settings</a>.</p>
2258
2354
  */
@@ -2261,25 +2357,39 @@ export interface ResultConfigurationUpdates {
2261
2357
  * <p>The Amazon Web Services account ID that you expect to be the owner of the Amazon S3 bucket specified by <a>ResultConfiguration$OutputLocation</a>.
2262
2358
  * If set, Athena uses the value for <code>ExpectedBucketOwner</code> when it
2263
2359
  * makes Amazon S3 calls to your specified output location. If the
2264
- * <code>ExpectedBucketOwner</code>
2360
+ * <code>ExpectedBucketOwner</code>
2265
2361
  * Amazon Web Services account ID does not match the actual owner of the Amazon S3
2266
2362
  * bucket, the call fails with a permissions error.</p>
2267
2363
  *
2268
2364
  * <p>If workgroup settings override client-side settings, then the query uses the
2269
- * <code>ExpectedBucketOwner</code> setting that is specified for the workgroup, and
2365
+ * <code>ExpectedBucketOwner</code> setting that is specified for the workgroup, and
2270
2366
  * also uses the location for storing query results specified in the workgroup. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a> and <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override Client-Side Settings</a>.</p>
2271
2367
  */
2272
2368
  ExpectedBucketOwner?: string;
2273
2369
  /**
2274
2370
  * <p>If set to "true", removes the Amazon Web Services account ID previously specified for
2275
- * <a>ResultConfiguration$ExpectedBucketOwner</a>. If set to "false" or not
2371
+ * <a>ResultConfiguration$ExpectedBucketOwner</a>. If set to "false" or not
2276
2372
  * set, and a value is present in the <code>ExpectedBucketOwner</code> in
2277
- * <code>ResultConfigurationUpdates</code> (the client-side setting), the
2278
- * <code>ExpectedBucketOwner</code> in the workgroup's <code>ResultConfiguration</code>
2373
+ * <code>ResultConfigurationUpdates</code> (the client-side setting), the
2374
+ * <code>ExpectedBucketOwner</code> in the workgroup's <code>ResultConfiguration</code>
2279
2375
  * is updated with the new value. For more information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override
2280
2376
  * Client-Side Settings</a>.</p>
2281
2377
  */
2282
2378
  RemoveExpectedBucketOwner?: boolean;
2379
+ /**
2380
+ * <p>The ACL configuration for the query results.</p>
2381
+ */
2382
+ AclConfiguration?: AclConfiguration;
2383
+ /**
2384
+ * <p>If set to <code>true</code>, indicates that the previously-specified ACL configuration
2385
+ * for queries in this workgroup should be ignored and set to null. If set to
2386
+ * <code>false</code> or not set, and a value is present in the
2387
+ * <code>AclConfiguration</code> of <code>ResultConfigurationUpdates</code>, the
2388
+ * <code>AclConfiguration</code> in the workgroup's <code>ResultConfiguration</code> is
2389
+ * updated with the new value. For more information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override
2390
+ * Client-Side Settings</a>.</p>
2391
+ */
2392
+ RemoveAclConfiguration?: boolean;
2283
2393
  }
2284
2394
  export declare namespace ResultConfigurationUpdates {
2285
2395
  /**
@@ -32,6 +32,7 @@ import { StopQueryExecutionCommandInput, StopQueryExecutionCommandOutput } from
32
32
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
33
33
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
34
34
  import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from "../commands/UpdateDataCatalogCommand";
35
+ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "../commands/UpdateNamedQueryCommand";
35
36
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "../commands/UpdatePreparedStatementCommand";
36
37
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "../commands/UpdateWorkGroupCommand";
37
38
  export declare const serializeAws_json1_1BatchGetNamedQueryCommand: (input: BatchGetNamedQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -66,6 +67,7 @@ export declare const serializeAws_json1_1StopQueryExecutionCommand: (input: Stop
66
67
  export declare const serializeAws_json1_1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
67
68
  export declare const serializeAws_json1_1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
68
69
  export declare const serializeAws_json1_1UpdateDataCatalogCommand: (input: UpdateDataCatalogCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
70
+ export declare const serializeAws_json1_1UpdateNamedQueryCommand: (input: UpdateNamedQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
69
71
  export declare const serializeAws_json1_1UpdatePreparedStatementCommand: (input: UpdatePreparedStatementCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
70
72
  export declare const serializeAws_json1_1UpdateWorkGroupCommand: (input: UpdateWorkGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
71
73
  export declare const deserializeAws_json1_1BatchGetNamedQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetNamedQueryCommandOutput>;
@@ -100,5 +102,6 @@ export declare const deserializeAws_json1_1StopQueryExecutionCommand: (output: _
100
102
  export declare const deserializeAws_json1_1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
101
103
  export declare const deserializeAws_json1_1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
102
104
  export declare const deserializeAws_json1_1UpdateDataCatalogCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateDataCatalogCommandOutput>;
105
+ export declare const deserializeAws_json1_1UpdateNamedQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateNamedQueryCommandOutput>;
103
106
  export declare const deserializeAws_json1_1UpdatePreparedStatementCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdatePreparedStatementCommandOutput>;
104
107
  export declare const deserializeAws_json1_1UpdateWorkGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateWorkGroupCommandOutput>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -32,6 +32,7 @@ import { StopQueryExecutionCommandInput, StopQueryExecutionCommandOutput } from
32
32
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
33
33
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
34
34
  import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from "./commands/UpdateDataCatalogCommand";
35
+ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "./commands/UpdateNamedQueryCommand";
35
36
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "./commands/UpdatePreparedStatementCommand";
36
37
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "./commands/UpdateWorkGroupCommand";
37
38
 
@@ -165,6 +166,10 @@ export declare class Athena extends AthenaClient {
165
166
  updateDataCatalog(args: UpdateDataCatalogCommandInput, cb: (err: any, data?: UpdateDataCatalogCommandOutput) => void): void;
166
167
  updateDataCatalog(args: UpdateDataCatalogCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDataCatalogCommandOutput) => void): void;
167
168
 
169
+ updateNamedQuery(args: UpdateNamedQueryCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNamedQueryCommandOutput>;
170
+ updateNamedQuery(args: UpdateNamedQueryCommandInput, cb: (err: any, data?: UpdateNamedQueryCommandOutput) => void): void;
171
+ updateNamedQuery(args: UpdateNamedQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateNamedQueryCommandOutput) => void): void;
172
+
168
173
  updatePreparedStatement(args: UpdatePreparedStatementCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePreparedStatementCommandOutput>;
169
174
  updatePreparedStatement(args: UpdatePreparedStatementCommandInput, cb: (err: any, data?: UpdatePreparedStatementCommandOutput) => void): void;
170
175
  updatePreparedStatement(args: UpdatePreparedStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePreparedStatementCommandOutput) => void): void;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  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
- import { 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";
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
10
  import { BatchGetQueryExecutionCommandInput, BatchGetQueryExecutionCommandOutput } from "./commands/BatchGetQueryExecutionCommand";
11
11
  import { CreateDataCatalogCommandInput, CreateDataCatalogCommandOutput } from "./commands/CreateDataCatalogCommand";
@@ -38,10 +38,11 @@ import { StopQueryExecutionCommandInput, StopQueryExecutionCommandOutput } from
38
38
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
39
39
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
40
40
  import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from "./commands/UpdateDataCatalogCommand";
41
+ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "./commands/UpdateNamedQueryCommand";
41
42
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "./commands/UpdatePreparedStatementCommand";
42
43
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "./commands/UpdateWorkGroupCommand";
43
- 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 | UpdatePreparedStatementCommandInput | UpdateWorkGroupCommandInput;
44
- 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 | UpdatePreparedStatementCommandOutput | UpdateWorkGroupCommandOutput;
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
46
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
46
47
 
47
48
  requestHandler?: __HttpHandler;
@@ -50,7 +51,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
50
51
 
51
52
  urlParser?: __UrlParser;
52
53
 
53
- bodyLengthChecker?: (body: any) => number | undefined;
54
+ bodyLengthChecker?: __BodyLengthCalculator;
54
55
 
55
56
  streamCollector?: __StreamCollector;
56
57
 
@@ -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 { UpdateNamedQueryInput, UpdateNamedQueryOutput } from "../models/models_0";
5
+ export interface UpdateNamedQueryCommandInput extends UpdateNamedQueryInput {
6
+ }
7
+ export interface UpdateNamedQueryCommandOutput extends UpdateNamedQueryOutput, __MetadataBearer {
8
+ }
9
+
10
+ export declare class UpdateNamedQueryCommand extends $Command<UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput, AthenaClientResolvedConfig> {
11
+ readonly input: UpdateNamedQueryCommandInput;
12
+ constructor(input: UpdateNamedQueryCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -30,5 +30,6 @@ export * from "./StopQueryExecutionCommand";
30
30
  export * from "./TagResourceCommand";
31
31
  export * from "./UntagResourceCommand";
32
32
  export * from "./UpdateDataCatalogCommand";
33
+ export * from "./UpdateNamedQueryCommand";
33
34
  export * from "./UpdatePreparedStatementCommand";
34
35
  export * from "./UpdateWorkGroupCommand";