@aws-sdk/client-athena 3.53.0 → 3.55.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/Athena.js +15 -0
- package/dist-cjs/AthenaClient.js +13 -13
- package/dist-cjs/commands/BatchGetNamedQueryCommand.js +3 -3
- package/dist-cjs/commands/BatchGetQueryExecutionCommand.js +3 -3
- package/dist-cjs/commands/CreateDataCatalogCommand.js +3 -3
- package/dist-cjs/commands/CreateNamedQueryCommand.js +3 -3
- package/dist-cjs/commands/CreatePreparedStatementCommand.js +3 -3
- package/dist-cjs/commands/CreateWorkGroupCommand.js +3 -3
- package/dist-cjs/commands/DeleteDataCatalogCommand.js +3 -3
- package/dist-cjs/commands/DeleteNamedQueryCommand.js +3 -3
- package/dist-cjs/commands/DeletePreparedStatementCommand.js +3 -3
- package/dist-cjs/commands/DeleteWorkGroupCommand.js +3 -3
- package/dist-cjs/commands/GetDataCatalogCommand.js +3 -3
- package/dist-cjs/commands/GetDatabaseCommand.js +3 -3
- package/dist-cjs/commands/GetNamedQueryCommand.js +3 -3
- package/dist-cjs/commands/GetPreparedStatementCommand.js +3 -3
- package/dist-cjs/commands/GetQueryExecutionCommand.js +3 -3
- package/dist-cjs/commands/GetQueryResultsCommand.js +3 -3
- package/dist-cjs/commands/GetTableMetadataCommand.js +3 -3
- package/dist-cjs/commands/GetWorkGroupCommand.js +3 -3
- package/dist-cjs/commands/ListDataCatalogsCommand.js +3 -3
- package/dist-cjs/commands/ListDatabasesCommand.js +3 -3
- package/dist-cjs/commands/ListEngineVersionsCommand.js +3 -3
- package/dist-cjs/commands/ListNamedQueriesCommand.js +3 -3
- package/dist-cjs/commands/ListPreparedStatementsCommand.js +3 -3
- package/dist-cjs/commands/ListQueryExecutionsCommand.js +3 -3
- package/dist-cjs/commands/ListTableMetadataCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ListWorkGroupsCommand.js +3 -3
- package/dist-cjs/commands/StartQueryExecutionCommand.js +3 -3
- package/dist-cjs/commands/StopQueryExecutionCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateDataCatalogCommand.js +3 -3
- package/dist-cjs/commands/UpdateNamedQueryCommand.js +36 -0
- package/dist-cjs/commands/UpdatePreparedStatementCommand.js +3 -3
- package/dist-cjs/commands/UpdateWorkGroupCommand.js +3 -3
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +25 -3
- package/dist-cjs/protocols/Aws_json1_1.js +235 -152
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Athena.js +49 -34
- package/dist-es/commands/UpdateNamedQueryCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +16 -0
- package/dist-es/pagination/GetQueryResultsPaginator.js +4 -4
- package/dist-es/pagination/ListDataCatalogsPaginator.js +4 -4
- package/dist-es/pagination/ListDatabasesPaginator.js +4 -4
- package/dist-es/pagination/ListNamedQueriesPaginator.js +4 -4
- package/dist-es/pagination/ListPreparedStatementsPaginator.js +4 -4
- package/dist-es/pagination/ListQueryExecutionsPaginator.js +4 -4
- package/dist-es/pagination/ListTableMetadataPaginator.js +4 -4
- package/dist-es/pagination/ListTagsForResourcePaginator.js +4 -4
- package/dist-es/pagination/ListWorkGroupsPaginator.js +4 -4
- package/dist-es/protocols/Aws_json1_1.js +92 -3
- package/dist-types/Athena.d.ts +7 -0
- package/dist-types/AthenaClient.d.ts +5 -4
- package/dist-types/commands/UpdateNamedQueryCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +90 -7
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/Athena.d.ts +5 -0
- package/dist-types/ts3.4/AthenaClient.d.ts +5 -4
- package/dist-types/ts3.4/commands/UpdateNamedQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +38 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListQueryExecutionsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListQueryExecutionsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listQueryExecutions.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listQueryExecutions.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListQueryExecutions(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Athena)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof AthenaClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListTableMetadataCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTableMetadataCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listTableMetadata.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listTableMetadata.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListTableMetadata(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Athena)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof AthenaClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListTagsForResourceCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTagsForResourceCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listTagsForResource.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listTagsForResource.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListTagsForResource(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Athena)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof AthenaClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListWorkGroupsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListWorkGroupsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listWorkGroups.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listWorkGroups.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListWorkGroups(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Athena)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof AthenaClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -356,6 +356,17 @@ export var serializeAws_json1_1UpdateDataCatalogCommand = function (input, conte
|
|
|
356
356
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
357
357
|
});
|
|
358
358
|
}); };
|
|
359
|
+
export var serializeAws_json1_1UpdateNamedQueryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
360
|
+
var headers, body;
|
|
361
|
+
return __generator(this, function (_a) {
|
|
362
|
+
headers = {
|
|
363
|
+
"content-type": "application/x-amz-json-1.1",
|
|
364
|
+
"x-amz-target": "AmazonAthena.UpdateNamedQuery",
|
|
365
|
+
};
|
|
366
|
+
body = JSON.stringify(serializeAws_json1_1UpdateNamedQueryInput(input, context));
|
|
367
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
368
|
+
});
|
|
369
|
+
}); };
|
|
359
370
|
export var serializeAws_json1_1UpdatePreparedStatementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
360
371
|
var headers, body;
|
|
361
372
|
return __generator(this, function (_a) {
|
|
@@ -2146,6 +2157,60 @@ var deserializeAws_json1_1UpdateDataCatalogCommandError = function (output, cont
|
|
|
2146
2157
|
}
|
|
2147
2158
|
});
|
|
2148
2159
|
}); };
|
|
2160
|
+
export var deserializeAws_json1_1UpdateNamedQueryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2161
|
+
var data, contents, response;
|
|
2162
|
+
return __generator(this, function (_a) {
|
|
2163
|
+
switch (_a.label) {
|
|
2164
|
+
case 0:
|
|
2165
|
+
if (output.statusCode >= 300) {
|
|
2166
|
+
return [2, deserializeAws_json1_1UpdateNamedQueryCommandError(output, context)];
|
|
2167
|
+
}
|
|
2168
|
+
return [4, parseBody(output.body, context)];
|
|
2169
|
+
case 1:
|
|
2170
|
+
data = _a.sent();
|
|
2171
|
+
contents = {};
|
|
2172
|
+
contents = deserializeAws_json1_1UpdateNamedQueryOutput(data, context);
|
|
2173
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2174
|
+
return [2, Promise.resolve(response)];
|
|
2175
|
+
}
|
|
2176
|
+
});
|
|
2177
|
+
}); };
|
|
2178
|
+
var deserializeAws_json1_1UpdateNamedQueryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2179
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2180
|
+
var _c;
|
|
2181
|
+
return __generator(this, function (_d) {
|
|
2182
|
+
switch (_d.label) {
|
|
2183
|
+
case 0:
|
|
2184
|
+
_a = [__assign({}, output)];
|
|
2185
|
+
_c = {};
|
|
2186
|
+
return [4, parseBody(output.body, context)];
|
|
2187
|
+
case 1:
|
|
2188
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2189
|
+
errorCode = "UnknownError";
|
|
2190
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2191
|
+
_b = errorCode;
|
|
2192
|
+
switch (_b) {
|
|
2193
|
+
case "InternalServerException": return [3, 2];
|
|
2194
|
+
case "com.amazonaws.athena#InternalServerException": return [3, 2];
|
|
2195
|
+
case "InvalidRequestException": return [3, 4];
|
|
2196
|
+
case "com.amazonaws.athena#InvalidRequestException": return [3, 4];
|
|
2197
|
+
}
|
|
2198
|
+
return [3, 6];
|
|
2199
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2200
|
+
case 3: throw _d.sent();
|
|
2201
|
+
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2202
|
+
case 5: throw _d.sent();
|
|
2203
|
+
case 6:
|
|
2204
|
+
parsedBody = parsedOutput.body;
|
|
2205
|
+
response = new __BaseException({
|
|
2206
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2207
|
+
$fault: "client",
|
|
2208
|
+
$metadata: deserializeMetadata(output),
|
|
2209
|
+
});
|
|
2210
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2211
|
+
}
|
|
2212
|
+
});
|
|
2213
|
+
}); };
|
|
2149
2214
|
export var deserializeAws_json1_1UpdatePreparedStatementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2150
2215
|
var data, contents, response;
|
|
2151
2216
|
return __generator(this, function (_a) {
|
|
@@ -2303,6 +2368,9 @@ var deserializeAws_json1_1TooManyRequestsExceptionResponse = function (parsedOut
|
|
|
2303
2368
|
return [2, __decorateServiceException(exception, body)];
|
|
2304
2369
|
});
|
|
2305
2370
|
}); };
|
|
2371
|
+
var serializeAws_json1_1AclConfiguration = function (input, context) {
|
|
2372
|
+
return __assign({}, (input.S3AclOption !== undefined && input.S3AclOption !== null && { S3AclOption: input.S3AclOption }));
|
|
2373
|
+
};
|
|
2306
2374
|
var serializeAws_json1_1BatchGetNamedQueryInput = function (input, context) {
|
|
2307
2375
|
return __assign({}, (input.NamedQueryIds !== undefined &&
|
|
2308
2376
|
input.NamedQueryIds !== null && {
|
|
@@ -2445,7 +2513,10 @@ var serializeAws_json1_1QueryExecutionIdList = function (input, context) {
|
|
|
2445
2513
|
});
|
|
2446
2514
|
};
|
|
2447
2515
|
var serializeAws_json1_1ResultConfiguration = function (input, context) {
|
|
2448
|
-
return __assign(__assign(__assign({}, (input.
|
|
2516
|
+
return __assign(__assign(__assign(__assign({}, (input.AclConfiguration !== undefined &&
|
|
2517
|
+
input.AclConfiguration !== null && {
|
|
2518
|
+
AclConfiguration: serializeAws_json1_1AclConfiguration(input.AclConfiguration, context),
|
|
2519
|
+
})), (input.EncryptionConfiguration !== undefined &&
|
|
2449
2520
|
input.EncryptionConfiguration !== null && {
|
|
2450
2521
|
EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2451
2522
|
})), (input.ExpectedBucketOwner !== undefined &&
|
|
@@ -2453,12 +2524,16 @@ var serializeAws_json1_1ResultConfiguration = function (input, context) {
|
|
|
2453
2524
|
input.OutputLocation !== null && { OutputLocation: input.OutputLocation }));
|
|
2454
2525
|
};
|
|
2455
2526
|
var serializeAws_json1_1ResultConfigurationUpdates = function (input, context) {
|
|
2456
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.
|
|
2527
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AclConfiguration !== undefined &&
|
|
2528
|
+
input.AclConfiguration !== null && {
|
|
2529
|
+
AclConfiguration: serializeAws_json1_1AclConfiguration(input.AclConfiguration, context),
|
|
2530
|
+
})), (input.EncryptionConfiguration !== undefined &&
|
|
2457
2531
|
input.EncryptionConfiguration !== null && {
|
|
2458
2532
|
EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2459
2533
|
})), (input.ExpectedBucketOwner !== undefined &&
|
|
2460
2534
|
input.ExpectedBucketOwner !== null && { ExpectedBucketOwner: input.ExpectedBucketOwner })), (input.OutputLocation !== undefined &&
|
|
2461
|
-
input.OutputLocation !== null && { OutputLocation: input.OutputLocation })), (input.
|
|
2535
|
+
input.OutputLocation !== null && { OutputLocation: input.OutputLocation })), (input.RemoveAclConfiguration !== undefined &&
|
|
2536
|
+
input.RemoveAclConfiguration !== null && { RemoveAclConfiguration: input.RemoveAclConfiguration })), (input.RemoveEncryptionConfiguration !== undefined &&
|
|
2462
2537
|
input.RemoveEncryptionConfiguration !== null && {
|
|
2463
2538
|
RemoveEncryptionConfiguration: input.RemoveEncryptionConfiguration,
|
|
2464
2539
|
})), (input.RemoveExpectedBucketOwner !== undefined &&
|
|
@@ -2515,6 +2590,9 @@ var serializeAws_json1_1UpdateDataCatalogInput = function (input, context) {
|
|
|
2515
2590
|
return __assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Parameters !== undefined &&
|
|
2516
2591
|
input.Parameters !== null && { Parameters: serializeAws_json1_1ParametersMap(input.Parameters, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
2517
2592
|
};
|
|
2593
|
+
var serializeAws_json1_1UpdateNamedQueryInput = function (input, context) {
|
|
2594
|
+
return __assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.NamedQueryId !== undefined && input.NamedQueryId !== null && { NamedQueryId: input.NamedQueryId })), (input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString }));
|
|
2595
|
+
};
|
|
2518
2596
|
var serializeAws_json1_1UpdatePreparedStatementInput = function (input, context) {
|
|
2519
2597
|
return __assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.QueryStatement !== undefined &&
|
|
2520
2598
|
input.QueryStatement !== null && { QueryStatement: input.QueryStatement })), (input.StatementName !== undefined && input.StatementName !== null && { StatementName: input.StatementName })), (input.WorkGroup !== undefined && input.WorkGroup !== null && { WorkGroup: input.WorkGroup }));
|
|
@@ -2562,6 +2640,11 @@ var serializeAws_json1_1WorkGroupConfigurationUpdates = function (input, context
|
|
|
2562
2640
|
ResultConfigurationUpdates: serializeAws_json1_1ResultConfigurationUpdates(input.ResultConfigurationUpdates, context),
|
|
2563
2641
|
}));
|
|
2564
2642
|
};
|
|
2643
|
+
var deserializeAws_json1_1AclConfiguration = function (output, context) {
|
|
2644
|
+
return {
|
|
2645
|
+
S3AclOption: __expectString(output.S3AclOption),
|
|
2646
|
+
};
|
|
2647
|
+
};
|
|
2565
2648
|
var deserializeAws_json1_1AthenaError = function (output, context) {
|
|
2566
2649
|
return {
|
|
2567
2650
|
ErrorCategory: __expectInt32(output.ErrorCategory),
|
|
@@ -3046,6 +3129,9 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
|
|
|
3046
3129
|
};
|
|
3047
3130
|
var deserializeAws_json1_1ResultConfiguration = function (output, context) {
|
|
3048
3131
|
return {
|
|
3132
|
+
AclConfiguration: output.AclConfiguration !== undefined && output.AclConfiguration !== null
|
|
3133
|
+
? deserializeAws_json1_1AclConfiguration(output.AclConfiguration, context)
|
|
3134
|
+
: undefined,
|
|
3049
3135
|
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
3050
3136
|
? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3051
3137
|
: undefined,
|
|
@@ -3196,6 +3282,9 @@ var deserializeAws_json1_1UntagResourceOutput = function (output, context) {
|
|
|
3196
3282
|
var deserializeAws_json1_1UpdateDataCatalogOutput = function (output, context) {
|
|
3197
3283
|
return {};
|
|
3198
3284
|
};
|
|
3285
|
+
var deserializeAws_json1_1UpdateNamedQueryOutput = function (output, context) {
|
|
3286
|
+
return {};
|
|
3287
|
+
};
|
|
3199
3288
|
var deserializeAws_json1_1UpdatePreparedStatementOutput = function (output, context) {
|
|
3200
3289
|
return {};
|
|
3201
3290
|
};
|
package/dist-types/Athena.d.ts
CHANGED
|
@@ -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
|
/**
|
|
@@ -317,6 +318,12 @@ export declare class Athena extends AthenaClient {
|
|
|
317
318
|
updateDataCatalog(args: UpdateDataCatalogCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDataCatalogCommandOutput>;
|
|
318
319
|
updateDataCatalog(args: UpdateDataCatalogCommandInput, cb: (err: any, data?: UpdateDataCatalogCommandOutput) => void): void;
|
|
319
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;
|
|
320
327
|
/**
|
|
321
328
|
* <p>Updates a prepared statement.</p>
|
|
322
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?:
|
|
66
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
66
67
|
/**
|
|
67
68
|
* A function that converts a stream into an array of bytes.
|
|
68
69
|
* @internal
|
|
@@ -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";
|
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
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
|
+
}
|
|
3
31
|
export interface BatchGetNamedQueryInput {
|
|
4
32
|
/**
|
|
5
33
|
* <p>An array of query IDs.</p>
|
|
@@ -13,8 +41,8 @@ export declare namespace BatchGetNamedQueryInput {
|
|
|
13
41
|
const filterSensitiveLog: (obj: BatchGetNamedQueryInput) => any;
|
|
14
42
|
}
|
|
15
43
|
/**
|
|
16
|
-
* <p>A query, where <code>QueryString</code>
|
|
17
|
-
*
|
|
44
|
+
* <p>A query, where <code>QueryString</code> contains the SQL statements that
|
|
45
|
+
* make up the query.</p>
|
|
18
46
|
*/
|
|
19
47
|
export interface NamedQuery {
|
|
20
48
|
/**
|
|
@@ -30,7 +58,7 @@ export interface NamedQuery {
|
|
|
30
58
|
*/
|
|
31
59
|
Database: string | undefined;
|
|
32
60
|
/**
|
|
33
|
-
* <p>The SQL
|
|
61
|
+
* <p>The SQL statements that make up the query.</p>
|
|
34
62
|
*/
|
|
35
63
|
QueryString: string | undefined;
|
|
36
64
|
/**
|
|
@@ -248,6 +276,15 @@ export interface ResultConfiguration {
|
|
|
248
276
|
* and <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override Client-Side Settings</a>.</p>
|
|
249
277
|
*/
|
|
250
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;
|
|
251
288
|
}
|
|
252
289
|
export declare namespace ResultConfiguration {
|
|
253
290
|
/**
|
|
@@ -317,7 +354,7 @@ export declare namespace QueryExecutionStatistics {
|
|
|
317
354
|
* <code>AthenaError</code> feature provides standardized error information to help you
|
|
318
355
|
* understand failed queries and take steps after a query failure occurs.
|
|
319
356
|
* <code>AthenaError</code> includes an <code>ErrorCategory</code> field that specifies
|
|
320
|
-
* whether the cause of the failed query is due to system error, user error, or
|
|
357
|
+
* whether the cause of the failed query is due to system error, user error, or other
|
|
321
358
|
* error.</p>
|
|
322
359
|
*/
|
|
323
360
|
export interface AthenaError {
|
|
@@ -329,7 +366,7 @@ export interface AthenaError {
|
|
|
329
366
|
* <p>
|
|
330
367
|
* <b>2</b> - User</p>
|
|
331
368
|
* <p>
|
|
332
|
-
* <b>3</b> -
|
|
369
|
+
* <b>3</b> - Other</p>
|
|
333
370
|
*/
|
|
334
371
|
ErrorCategory?: number;
|
|
335
372
|
/**
|
|
@@ -1331,7 +1368,7 @@ export declare namespace Datum {
|
|
|
1331
1368
|
const filterSensitiveLog: (obj: Datum) => any;
|
|
1332
1369
|
}
|
|
1333
1370
|
/**
|
|
1334
|
-
* <p>The rows that
|
|
1371
|
+
* <p>The rows that make up a query result table.</p>
|
|
1335
1372
|
*/
|
|
1336
1373
|
export interface Row {
|
|
1337
1374
|
/**
|
|
@@ -1346,7 +1383,7 @@ export declare namespace Row {
|
|
|
1346
1383
|
const filterSensitiveLog: (obj: Row) => any;
|
|
1347
1384
|
}
|
|
1348
1385
|
/**
|
|
1349
|
-
* <p>The metadata and rows that
|
|
1386
|
+
* <p>The metadata and rows that make up a query result set. The metadata describes the
|
|
1350
1387
|
* column structure and data types. To return a <code>ResultSet</code> object, use <a>GetQueryResults</a>.</p>
|
|
1351
1388
|
*/
|
|
1352
1389
|
export interface ResultSet {
|
|
@@ -2211,6 +2248,38 @@ export declare namespace UpdateDataCatalogOutput {
|
|
|
2211
2248
|
*/
|
|
2212
2249
|
const filterSensitiveLog: (obj: UpdateDataCatalogOutput) => any;
|
|
2213
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
|
+
}
|
|
2214
2283
|
export interface UpdatePreparedStatementInput {
|
|
2215
2284
|
/**
|
|
2216
2285
|
* <p>The name of the prepared statement.</p>
|
|
@@ -2307,6 +2376,20 @@ export interface ResultConfigurationUpdates {
|
|
|
2307
2376
|
* Client-Side Settings</a>.</p>
|
|
2308
2377
|
*/
|
|
2309
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;
|
|
2310
2393
|
}
|
|
2311
2394
|
export declare namespace ResultConfigurationUpdates {
|
|
2312
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: (
|
|
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: (
|
|
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>;
|