@aws-sdk/client-athena 3.344.0 → 3.345.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/README.md +8 -0
- package/dist-cjs/Athena.js +2 -0
- package/dist-cjs/commands/DeleteCapacityReservationCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +46 -3
- package/dist-es/Athena.js +2 -0
- package/dist-es/commands/DeleteCapacityReservationCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +41 -0
- package/dist-types/Athena.d.ts +7 -0
- package/dist-types/AthenaClient.d.ts +3 -2
- package/dist-types/commands/CancelCapacityReservationCommand.d.ts +1 -1
- package/dist-types/commands/DeleteCapacityReservationCommand.d.ts +79 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +15 -1
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/Athena.d.ts +17 -0
- package/dist-types/ts3.4/AthenaClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/DeleteCapacityReservationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -303,6 +303,14 @@ CreateWorkGroup
|
|
|
303
303
|
|
|
304
304
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-athena/classes/createworkgroupcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-athena/interfaces/createworkgroupcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-athena/interfaces/createworkgroupcommandoutput.html)
|
|
305
305
|
|
|
306
|
+
</details>
|
|
307
|
+
<details>
|
|
308
|
+
<summary>
|
|
309
|
+
DeleteCapacityReservation
|
|
310
|
+
</summary>
|
|
311
|
+
|
|
312
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-athena/classes/deletecapacityreservationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-athena/interfaces/deletecapacityreservationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-athena/interfaces/deletecapacityreservationcommandoutput.html)
|
|
313
|
+
|
|
306
314
|
</details>
|
|
307
315
|
<details>
|
|
308
316
|
<summary>
|
package/dist-cjs/Athena.js
CHANGED
|
@@ -14,6 +14,7 @@ const CreateNotebookCommand_1 = require("./commands/CreateNotebookCommand");
|
|
|
14
14
|
const CreatePreparedStatementCommand_1 = require("./commands/CreatePreparedStatementCommand");
|
|
15
15
|
const CreatePresignedNotebookUrlCommand_1 = require("./commands/CreatePresignedNotebookUrlCommand");
|
|
16
16
|
const CreateWorkGroupCommand_1 = require("./commands/CreateWorkGroupCommand");
|
|
17
|
+
const DeleteCapacityReservationCommand_1 = require("./commands/DeleteCapacityReservationCommand");
|
|
17
18
|
const DeleteDataCatalogCommand_1 = require("./commands/DeleteDataCatalogCommand");
|
|
18
19
|
const DeleteNamedQueryCommand_1 = require("./commands/DeleteNamedQueryCommand");
|
|
19
20
|
const DeleteNotebookCommand_1 = require("./commands/DeleteNotebookCommand");
|
|
@@ -82,6 +83,7 @@ const commands = {
|
|
|
82
83
|
CreatePreparedStatementCommand: CreatePreparedStatementCommand_1.CreatePreparedStatementCommand,
|
|
83
84
|
CreatePresignedNotebookUrlCommand: CreatePresignedNotebookUrlCommand_1.CreatePresignedNotebookUrlCommand,
|
|
84
85
|
CreateWorkGroupCommand: CreateWorkGroupCommand_1.CreateWorkGroupCommand,
|
|
86
|
+
DeleteCapacityReservationCommand: DeleteCapacityReservationCommand_1.DeleteCapacityReservationCommand,
|
|
85
87
|
DeleteDataCatalogCommand: DeleteDataCatalogCommand_1.DeleteDataCatalogCommand,
|
|
86
88
|
DeleteNamedQueryCommand: DeleteNamedQueryCommand_1.DeleteNamedQueryCommand,
|
|
87
89
|
DeleteNotebookCommand: DeleteNotebookCommand_1.DeleteNotebookCommand,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteCapacityReservationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class DeleteCapacityReservationCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteCapacityReservationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "AthenaClient";
|
|
28
|
+
const commandName = "DeleteCapacityReservationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_DeleteCapacityReservationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_DeleteCapacityReservationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteCapacityReservationCommand = DeleteCapacityReservationCommand;
|
|
@@ -12,6 +12,7 @@ tslib_1.__exportStar(require("./CreateNotebookCommand"), exports);
|
|
|
12
12
|
tslib_1.__exportStar(require("./CreatePreparedStatementCommand"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./CreatePresignedNotebookUrlCommand"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./CreateWorkGroupCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./DeleteCapacityReservationCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./DeleteDataCatalogCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./DeleteNamedQueryCommand"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./DeleteNotebookCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateWorkGroupCommand = exports.de_UpdatePreparedStatementCommand = exports.de_UpdateNotebookMetadataCommand = exports.de_UpdateNotebookCommand = exports.de_UpdateNamedQueryCommand = exports.de_UpdateDataCatalogCommand = exports.de_UpdateCapacityReservationCommand = exports.de_UntagResourceCommand = exports.de_TerminateSessionCommand = exports.de_TagResourceCommand = exports.de_StopQueryExecutionCommand = exports.de_StopCalculationExecutionCommand = exports.de_StartSessionCommand = exports.de_StartQueryExecutionCommand = exports.de_StartCalculationExecutionCommand = exports.de_PutCapacityAssignmentConfigurationCommand = exports.de_ListWorkGroupsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListTableMetadataCommand = exports.de_ListSessionsCommand = exports.de_ListQueryExecutionsCommand = exports.de_ListPreparedStatementsCommand = exports.de_ListNotebookSessionsCommand = exports.de_ListNotebookMetadataCommand = exports.de_ListNamedQueriesCommand = exports.de_ListExecutorsCommand = exports.de_ListEngineVersionsCommand = exports.de_ListDataCatalogsCommand = exports.de_ListDatabasesCommand = exports.de_ListCapacityReservationsCommand = exports.de_ListCalculationExecutionsCommand = exports.de_ListApplicationDPUSizesCommand = exports.de_ImportNotebookCommand = exports.de_GetWorkGroupCommand = void 0;
|
|
3
|
+
exports.se_ListTableMetadataCommand = exports.se_ListSessionsCommand = exports.se_ListQueryExecutionsCommand = exports.se_ListPreparedStatementsCommand = exports.se_ListNotebookSessionsCommand = exports.se_ListNotebookMetadataCommand = exports.se_ListNamedQueriesCommand = exports.se_ListExecutorsCommand = exports.se_ListEngineVersionsCommand = exports.se_ListDataCatalogsCommand = exports.se_ListDatabasesCommand = exports.se_ListCapacityReservationsCommand = exports.se_ListCalculationExecutionsCommand = exports.se_ListApplicationDPUSizesCommand = exports.se_ImportNotebookCommand = exports.se_GetWorkGroupCommand = exports.se_GetTableMetadataCommand = exports.se_GetSessionStatusCommand = exports.se_GetSessionCommand = exports.se_GetQueryRuntimeStatisticsCommand = exports.se_GetQueryResultsCommand = exports.se_GetQueryExecutionCommand = exports.se_GetPreparedStatementCommand = exports.se_GetNotebookMetadataCommand = exports.se_GetNamedQueryCommand = exports.se_GetDataCatalogCommand = exports.se_GetDatabaseCommand = exports.se_GetCapacityReservationCommand = exports.se_GetCapacityAssignmentConfigurationCommand = exports.se_GetCalculationExecutionStatusCommand = exports.se_GetCalculationExecutionCodeCommand = exports.se_GetCalculationExecutionCommand = exports.se_ExportNotebookCommand = exports.se_DeleteWorkGroupCommand = exports.se_DeletePreparedStatementCommand = exports.se_DeleteNotebookCommand = exports.se_DeleteNamedQueryCommand = exports.se_DeleteDataCatalogCommand = exports.se_DeleteCapacityReservationCommand = exports.se_CreateWorkGroupCommand = exports.se_CreatePresignedNotebookUrlCommand = exports.se_CreatePreparedStatementCommand = exports.se_CreateNotebookCommand = exports.se_CreateNamedQueryCommand = exports.se_CreateDataCatalogCommand = exports.se_CreateCapacityReservationCommand = exports.se_CancelCapacityReservationCommand = exports.se_BatchGetQueryExecutionCommand = exports.se_BatchGetPreparedStatementCommand = exports.se_BatchGetNamedQueryCommand = void 0;
|
|
4
|
+
exports.de_GetSessionCommand = exports.de_GetQueryRuntimeStatisticsCommand = exports.de_GetQueryResultsCommand = exports.de_GetQueryExecutionCommand = exports.de_GetPreparedStatementCommand = exports.de_GetNotebookMetadataCommand = exports.de_GetNamedQueryCommand = exports.de_GetDataCatalogCommand = exports.de_GetDatabaseCommand = exports.de_GetCapacityReservationCommand = exports.de_GetCapacityAssignmentConfigurationCommand = exports.de_GetCalculationExecutionStatusCommand = exports.de_GetCalculationExecutionCodeCommand = exports.de_GetCalculationExecutionCommand = exports.de_ExportNotebookCommand = exports.de_DeleteWorkGroupCommand = exports.de_DeletePreparedStatementCommand = exports.de_DeleteNotebookCommand = exports.de_DeleteNamedQueryCommand = exports.de_DeleteDataCatalogCommand = exports.de_DeleteCapacityReservationCommand = exports.de_CreateWorkGroupCommand = exports.de_CreatePresignedNotebookUrlCommand = exports.de_CreatePreparedStatementCommand = exports.de_CreateNotebookCommand = exports.de_CreateNamedQueryCommand = exports.de_CreateDataCatalogCommand = exports.de_CreateCapacityReservationCommand = exports.de_CancelCapacityReservationCommand = exports.de_BatchGetQueryExecutionCommand = exports.de_BatchGetPreparedStatementCommand = exports.de_BatchGetNamedQueryCommand = exports.se_UpdateWorkGroupCommand = exports.se_UpdatePreparedStatementCommand = exports.se_UpdateNotebookMetadataCommand = exports.se_UpdateNotebookCommand = exports.se_UpdateNamedQueryCommand = exports.se_UpdateDataCatalogCommand = exports.se_UpdateCapacityReservationCommand = exports.se_UntagResourceCommand = exports.se_TerminateSessionCommand = exports.se_TagResourceCommand = exports.se_StopQueryExecutionCommand = exports.se_StopCalculationExecutionCommand = exports.se_StartSessionCommand = exports.se_StartQueryExecutionCommand = exports.se_StartCalculationExecutionCommand = exports.se_PutCapacityAssignmentConfigurationCommand = exports.se_ListWorkGroupsCommand = exports.se_ListTagsForResourceCommand = void 0;
|
|
5
|
+
exports.de_UpdateWorkGroupCommand = exports.de_UpdatePreparedStatementCommand = exports.de_UpdateNotebookMetadataCommand = exports.de_UpdateNotebookCommand = exports.de_UpdateNamedQueryCommand = exports.de_UpdateDataCatalogCommand = exports.de_UpdateCapacityReservationCommand = exports.de_UntagResourceCommand = exports.de_TerminateSessionCommand = exports.de_TagResourceCommand = exports.de_StopQueryExecutionCommand = exports.de_StopCalculationExecutionCommand = exports.de_StartSessionCommand = exports.de_StartQueryExecutionCommand = exports.de_StartCalculationExecutionCommand = exports.de_PutCapacityAssignmentConfigurationCommand = exports.de_ListWorkGroupsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListTableMetadataCommand = exports.de_ListSessionsCommand = exports.de_ListQueryExecutionsCommand = exports.de_ListPreparedStatementsCommand = exports.de_ListNotebookSessionsCommand = exports.de_ListNotebookMetadataCommand = exports.de_ListNamedQueriesCommand = exports.de_ListExecutorsCommand = exports.de_ListEngineVersionsCommand = exports.de_ListDataCatalogsCommand = exports.de_ListDatabasesCommand = exports.de_ListCapacityReservationsCommand = exports.de_ListCalculationExecutionsCommand = exports.de_ListApplicationDPUSizesCommand = exports.de_ImportNotebookCommand = exports.de_GetWorkGroupCommand = exports.de_GetTableMetadataCommand = exports.de_GetSessionStatusCommand = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -85,6 +85,13 @@ const se_CreateWorkGroupCommand = async (input, context) => {
|
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
87
|
exports.se_CreateWorkGroupCommand = se_CreateWorkGroupCommand;
|
|
88
|
+
const se_DeleteCapacityReservationCommand = async (input, context) => {
|
|
89
|
+
const headers = sharedHeaders("DeleteCapacityReservation");
|
|
90
|
+
let body;
|
|
91
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
92
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
93
|
+
};
|
|
94
|
+
exports.se_DeleteCapacityReservationCommand = se_DeleteCapacityReservationCommand;
|
|
88
95
|
const se_DeleteDataCatalogCommand = async (input, context) => {
|
|
89
96
|
const headers = sharedHeaders("DeleteDataCatalog");
|
|
90
97
|
let body;
|
|
@@ -879,6 +886,42 @@ const de_CreateWorkGroupCommandError = async (output, context) => {
|
|
|
879
886
|
});
|
|
880
887
|
}
|
|
881
888
|
};
|
|
889
|
+
const de_DeleteCapacityReservationCommand = async (output, context) => {
|
|
890
|
+
if (output.statusCode >= 300) {
|
|
891
|
+
return de_DeleteCapacityReservationCommandError(output, context);
|
|
892
|
+
}
|
|
893
|
+
const data = await parseBody(output.body, context);
|
|
894
|
+
let contents = {};
|
|
895
|
+
contents = (0, smithy_client_1._json)(data);
|
|
896
|
+
const response = {
|
|
897
|
+
$metadata: deserializeMetadata(output),
|
|
898
|
+
...contents,
|
|
899
|
+
};
|
|
900
|
+
return response;
|
|
901
|
+
};
|
|
902
|
+
exports.de_DeleteCapacityReservationCommand = de_DeleteCapacityReservationCommand;
|
|
903
|
+
const de_DeleteCapacityReservationCommandError = async (output, context) => {
|
|
904
|
+
const parsedOutput = {
|
|
905
|
+
...output,
|
|
906
|
+
body: await parseErrorBody(output.body, context),
|
|
907
|
+
};
|
|
908
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
909
|
+
switch (errorCode) {
|
|
910
|
+
case "InternalServerException":
|
|
911
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
912
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
913
|
+
case "InvalidRequestException":
|
|
914
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
915
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
916
|
+
default:
|
|
917
|
+
const parsedBody = parsedOutput.body;
|
|
918
|
+
return throwDefaultError({
|
|
919
|
+
output,
|
|
920
|
+
parsedBody,
|
|
921
|
+
errorCode,
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
};
|
|
882
925
|
const de_DeleteDataCatalogCommand = async (output, context) => {
|
|
883
926
|
if (output.statusCode >= 300) {
|
|
884
927
|
return de_DeleteDataCatalogCommandError(output, context);
|
package/dist-es/Athena.js
CHANGED
|
@@ -11,6 +11,7 @@ import { CreateNotebookCommand, } from "./commands/CreateNotebookCommand";
|
|
|
11
11
|
import { CreatePreparedStatementCommand, } from "./commands/CreatePreparedStatementCommand";
|
|
12
12
|
import { CreatePresignedNotebookUrlCommand, } from "./commands/CreatePresignedNotebookUrlCommand";
|
|
13
13
|
import { CreateWorkGroupCommand, } from "./commands/CreateWorkGroupCommand";
|
|
14
|
+
import { DeleteCapacityReservationCommand, } from "./commands/DeleteCapacityReservationCommand";
|
|
14
15
|
import { DeleteDataCatalogCommand, } from "./commands/DeleteDataCatalogCommand";
|
|
15
16
|
import { DeleteNamedQueryCommand, } from "./commands/DeleteNamedQueryCommand";
|
|
16
17
|
import { DeleteNotebookCommand, } from "./commands/DeleteNotebookCommand";
|
|
@@ -79,6 +80,7 @@ const commands = {
|
|
|
79
80
|
CreatePreparedStatementCommand,
|
|
80
81
|
CreatePresignedNotebookUrlCommand,
|
|
81
82
|
CreateWorkGroupCommand,
|
|
83
|
+
DeleteCapacityReservationCommand,
|
|
82
84
|
DeleteDataCatalogCommand,
|
|
83
85
|
DeleteNamedQueryCommand,
|
|
84
86
|
DeleteNotebookCommand,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_DeleteCapacityReservationCommand, se_DeleteCapacityReservationCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeleteCapacityReservationCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteCapacityReservationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "AthenaClient";
|
|
25
|
+
const commandName = "DeleteCapacityReservationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_DeleteCapacityReservationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_DeleteCapacityReservationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -9,6 +9,7 @@ export * from "./CreateNotebookCommand";
|
|
|
9
9
|
export * from "./CreatePreparedStatementCommand";
|
|
10
10
|
export * from "./CreatePresignedNotebookUrlCommand";
|
|
11
11
|
export * from "./CreateWorkGroupCommand";
|
|
12
|
+
export * from "./DeleteCapacityReservationCommand";
|
|
12
13
|
export * from "./DeleteDataCatalogCommand";
|
|
13
14
|
export * from "./DeleteNamedQueryCommand";
|
|
14
15
|
export * from "./DeleteNotebookCommand";
|
|
@@ -69,6 +69,12 @@ export const se_CreateWorkGroupCommand = async (input, context) => {
|
|
|
69
69
|
body = JSON.stringify(_json(input));
|
|
70
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
71
|
};
|
|
72
|
+
export const se_DeleteCapacityReservationCommand = async (input, context) => {
|
|
73
|
+
const headers = sharedHeaders("DeleteCapacityReservation");
|
|
74
|
+
let body;
|
|
75
|
+
body = JSON.stringify(_json(input));
|
|
76
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
+
};
|
|
72
78
|
export const se_DeleteDataCatalogCommand = async (input, context) => {
|
|
73
79
|
const headers = sharedHeaders("DeleteDataCatalog");
|
|
74
80
|
let body;
|
|
@@ -796,6 +802,41 @@ const de_CreateWorkGroupCommandError = async (output, context) => {
|
|
|
796
802
|
});
|
|
797
803
|
}
|
|
798
804
|
};
|
|
805
|
+
export const de_DeleteCapacityReservationCommand = async (output, context) => {
|
|
806
|
+
if (output.statusCode >= 300) {
|
|
807
|
+
return de_DeleteCapacityReservationCommandError(output, context);
|
|
808
|
+
}
|
|
809
|
+
const data = await parseBody(output.body, context);
|
|
810
|
+
let contents = {};
|
|
811
|
+
contents = _json(data);
|
|
812
|
+
const response = {
|
|
813
|
+
$metadata: deserializeMetadata(output),
|
|
814
|
+
...contents,
|
|
815
|
+
};
|
|
816
|
+
return response;
|
|
817
|
+
};
|
|
818
|
+
const de_DeleteCapacityReservationCommandError = async (output, context) => {
|
|
819
|
+
const parsedOutput = {
|
|
820
|
+
...output,
|
|
821
|
+
body: await parseErrorBody(output.body, context),
|
|
822
|
+
};
|
|
823
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
|
+
switch (errorCode) {
|
|
825
|
+
case "InternalServerException":
|
|
826
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
827
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
828
|
+
case "InvalidRequestException":
|
|
829
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
830
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
831
|
+
default:
|
|
832
|
+
const parsedBody = parsedOutput.body;
|
|
833
|
+
return throwDefaultError({
|
|
834
|
+
output,
|
|
835
|
+
parsedBody,
|
|
836
|
+
errorCode,
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
};
|
|
799
840
|
export const de_DeleteDataCatalogCommand = async (output, context) => {
|
|
800
841
|
if (output.statusCode >= 300) {
|
|
801
842
|
return de_DeleteDataCatalogCommandError(output, context);
|
package/dist-types/Athena.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { CreateNotebookCommandInput, CreateNotebookCommandOutput } from "./comma
|
|
|
11
11
|
import { CreatePreparedStatementCommandInput, CreatePreparedStatementCommandOutput } from "./commands/CreatePreparedStatementCommand";
|
|
12
12
|
import { CreatePresignedNotebookUrlCommandInput, CreatePresignedNotebookUrlCommandOutput } from "./commands/CreatePresignedNotebookUrlCommand";
|
|
13
13
|
import { CreateWorkGroupCommandInput, CreateWorkGroupCommandOutput } from "./commands/CreateWorkGroupCommand";
|
|
14
|
+
import { DeleteCapacityReservationCommandInput, DeleteCapacityReservationCommandOutput } from "./commands/DeleteCapacityReservationCommand";
|
|
14
15
|
import { DeleteDataCatalogCommandInput, DeleteDataCatalogCommandOutput } from "./commands/DeleteDataCatalogCommand";
|
|
15
16
|
import { DeleteNamedQueryCommandInput, DeleteNamedQueryCommandOutput } from "./commands/DeleteNamedQueryCommand";
|
|
16
17
|
import { DeleteNotebookCommandInput, DeleteNotebookCommandOutput } from "./commands/DeleteNotebookCommand";
|
|
@@ -134,6 +135,12 @@ export interface Athena {
|
|
|
134
135
|
createWorkGroup(args: CreateWorkGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateWorkGroupCommandOutput>;
|
|
135
136
|
createWorkGroup(args: CreateWorkGroupCommandInput, cb: (err: any, data?: CreateWorkGroupCommandOutput) => void): void;
|
|
136
137
|
createWorkGroup(args: CreateWorkGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWorkGroupCommandOutput) => void): void;
|
|
138
|
+
/**
|
|
139
|
+
* @see {@link DeleteCapacityReservationCommand}
|
|
140
|
+
*/
|
|
141
|
+
deleteCapacityReservation(args: DeleteCapacityReservationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCapacityReservationCommandOutput>;
|
|
142
|
+
deleteCapacityReservation(args: DeleteCapacityReservationCommandInput, cb: (err: any, data?: DeleteCapacityReservationCommandOutput) => void): void;
|
|
143
|
+
deleteCapacityReservation(args: DeleteCapacityReservationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCapacityReservationCommandOutput) => void): void;
|
|
137
144
|
/**
|
|
138
145
|
* @see {@link DeleteDataCatalogCommand}
|
|
139
146
|
*/
|
|
@@ -19,6 +19,7 @@ import { CreateNotebookCommandInput, CreateNotebookCommandOutput } from "./comma
|
|
|
19
19
|
import { CreatePreparedStatementCommandInput, CreatePreparedStatementCommandOutput } from "./commands/CreatePreparedStatementCommand";
|
|
20
20
|
import { CreatePresignedNotebookUrlCommandInput, CreatePresignedNotebookUrlCommandOutput } from "./commands/CreatePresignedNotebookUrlCommand";
|
|
21
21
|
import { CreateWorkGroupCommandInput, CreateWorkGroupCommandOutput } from "./commands/CreateWorkGroupCommand";
|
|
22
|
+
import { DeleteCapacityReservationCommandInput, DeleteCapacityReservationCommandOutput } from "./commands/DeleteCapacityReservationCommand";
|
|
22
23
|
import { DeleteDataCatalogCommandInput, DeleteDataCatalogCommandOutput } from "./commands/DeleteDataCatalogCommand";
|
|
23
24
|
import { DeleteNamedQueryCommandInput, DeleteNamedQueryCommandOutput } from "./commands/DeleteNamedQueryCommand";
|
|
24
25
|
import { DeleteNotebookCommandInput, DeleteNotebookCommandOutput } from "./commands/DeleteNotebookCommand";
|
|
@@ -80,11 +81,11 @@ export { __Client };
|
|
|
80
81
|
/**
|
|
81
82
|
* @public
|
|
82
83
|
*/
|
|
83
|
-
export type ServiceInputTypes = BatchGetNamedQueryCommandInput | BatchGetPreparedStatementCommandInput | BatchGetQueryExecutionCommandInput | CancelCapacityReservationCommandInput | CreateCapacityReservationCommandInput | CreateDataCatalogCommandInput | CreateNamedQueryCommandInput | CreateNotebookCommandInput | CreatePreparedStatementCommandInput | CreatePresignedNotebookUrlCommandInput | CreateWorkGroupCommandInput | DeleteDataCatalogCommandInput | DeleteNamedQueryCommandInput | DeleteNotebookCommandInput | DeletePreparedStatementCommandInput | DeleteWorkGroupCommandInput | ExportNotebookCommandInput | GetCalculationExecutionCodeCommandInput | GetCalculationExecutionCommandInput | GetCalculationExecutionStatusCommandInput | GetCapacityAssignmentConfigurationCommandInput | GetCapacityReservationCommandInput | GetDataCatalogCommandInput | GetDatabaseCommandInput | GetNamedQueryCommandInput | GetNotebookMetadataCommandInput | GetPreparedStatementCommandInput | GetQueryExecutionCommandInput | GetQueryResultsCommandInput | GetQueryRuntimeStatisticsCommandInput | GetSessionCommandInput | GetSessionStatusCommandInput | GetTableMetadataCommandInput | GetWorkGroupCommandInput | ImportNotebookCommandInput | ListApplicationDPUSizesCommandInput | ListCalculationExecutionsCommandInput | ListCapacityReservationsCommandInput | ListDataCatalogsCommandInput | ListDatabasesCommandInput | ListEngineVersionsCommandInput | ListExecutorsCommandInput | ListNamedQueriesCommandInput | ListNotebookMetadataCommandInput | ListNotebookSessionsCommandInput | ListPreparedStatementsCommandInput | ListQueryExecutionsCommandInput | ListSessionsCommandInput | ListTableMetadataCommandInput | ListTagsForResourceCommandInput | ListWorkGroupsCommandInput | PutCapacityAssignmentConfigurationCommandInput | StartCalculationExecutionCommandInput | StartQueryExecutionCommandInput | StartSessionCommandInput | StopCalculationExecutionCommandInput | StopQueryExecutionCommandInput | TagResourceCommandInput | TerminateSessionCommandInput | UntagResourceCommandInput | UpdateCapacityReservationCommandInput | UpdateDataCatalogCommandInput | UpdateNamedQueryCommandInput | UpdateNotebookCommandInput | UpdateNotebookMetadataCommandInput | UpdatePreparedStatementCommandInput | UpdateWorkGroupCommandInput;
|
|
84
|
+
export type ServiceInputTypes = BatchGetNamedQueryCommandInput | BatchGetPreparedStatementCommandInput | BatchGetQueryExecutionCommandInput | CancelCapacityReservationCommandInput | CreateCapacityReservationCommandInput | CreateDataCatalogCommandInput | CreateNamedQueryCommandInput | CreateNotebookCommandInput | CreatePreparedStatementCommandInput | CreatePresignedNotebookUrlCommandInput | CreateWorkGroupCommandInput | DeleteCapacityReservationCommandInput | DeleteDataCatalogCommandInput | DeleteNamedQueryCommandInput | DeleteNotebookCommandInput | DeletePreparedStatementCommandInput | DeleteWorkGroupCommandInput | ExportNotebookCommandInput | GetCalculationExecutionCodeCommandInput | GetCalculationExecutionCommandInput | GetCalculationExecutionStatusCommandInput | GetCapacityAssignmentConfigurationCommandInput | GetCapacityReservationCommandInput | GetDataCatalogCommandInput | GetDatabaseCommandInput | GetNamedQueryCommandInput | GetNotebookMetadataCommandInput | GetPreparedStatementCommandInput | GetQueryExecutionCommandInput | GetQueryResultsCommandInput | GetQueryRuntimeStatisticsCommandInput | GetSessionCommandInput | GetSessionStatusCommandInput | GetTableMetadataCommandInput | GetWorkGroupCommandInput | ImportNotebookCommandInput | ListApplicationDPUSizesCommandInput | ListCalculationExecutionsCommandInput | ListCapacityReservationsCommandInput | ListDataCatalogsCommandInput | ListDatabasesCommandInput | ListEngineVersionsCommandInput | ListExecutorsCommandInput | ListNamedQueriesCommandInput | ListNotebookMetadataCommandInput | ListNotebookSessionsCommandInput | ListPreparedStatementsCommandInput | ListQueryExecutionsCommandInput | ListSessionsCommandInput | ListTableMetadataCommandInput | ListTagsForResourceCommandInput | ListWorkGroupsCommandInput | PutCapacityAssignmentConfigurationCommandInput | StartCalculationExecutionCommandInput | StartQueryExecutionCommandInput | StartSessionCommandInput | StopCalculationExecutionCommandInput | StopQueryExecutionCommandInput | TagResourceCommandInput | TerminateSessionCommandInput | UntagResourceCommandInput | UpdateCapacityReservationCommandInput | UpdateDataCatalogCommandInput | UpdateNamedQueryCommandInput | UpdateNotebookCommandInput | UpdateNotebookMetadataCommandInput | UpdatePreparedStatementCommandInput | UpdateWorkGroupCommandInput;
|
|
84
85
|
/**
|
|
85
86
|
* @public
|
|
86
87
|
*/
|
|
87
|
-
export type ServiceOutputTypes = BatchGetNamedQueryCommandOutput | BatchGetPreparedStatementCommandOutput | BatchGetQueryExecutionCommandOutput | CancelCapacityReservationCommandOutput | CreateCapacityReservationCommandOutput | CreateDataCatalogCommandOutput | CreateNamedQueryCommandOutput | CreateNotebookCommandOutput | CreatePreparedStatementCommandOutput | CreatePresignedNotebookUrlCommandOutput | CreateWorkGroupCommandOutput | DeleteDataCatalogCommandOutput | DeleteNamedQueryCommandOutput | DeleteNotebookCommandOutput | DeletePreparedStatementCommandOutput | DeleteWorkGroupCommandOutput | ExportNotebookCommandOutput | GetCalculationExecutionCodeCommandOutput | GetCalculationExecutionCommandOutput | GetCalculationExecutionStatusCommandOutput | GetCapacityAssignmentConfigurationCommandOutput | GetCapacityReservationCommandOutput | GetDataCatalogCommandOutput | GetDatabaseCommandOutput | GetNamedQueryCommandOutput | GetNotebookMetadataCommandOutput | GetPreparedStatementCommandOutput | GetQueryExecutionCommandOutput | GetQueryResultsCommandOutput | GetQueryRuntimeStatisticsCommandOutput | GetSessionCommandOutput | GetSessionStatusCommandOutput | GetTableMetadataCommandOutput | GetWorkGroupCommandOutput | ImportNotebookCommandOutput | ListApplicationDPUSizesCommandOutput | ListCalculationExecutionsCommandOutput | ListCapacityReservationsCommandOutput | ListDataCatalogsCommandOutput | ListDatabasesCommandOutput | ListEngineVersionsCommandOutput | ListExecutorsCommandOutput | ListNamedQueriesCommandOutput | ListNotebookMetadataCommandOutput | ListNotebookSessionsCommandOutput | ListPreparedStatementsCommandOutput | ListQueryExecutionsCommandOutput | ListSessionsCommandOutput | ListTableMetadataCommandOutput | ListTagsForResourceCommandOutput | ListWorkGroupsCommandOutput | PutCapacityAssignmentConfigurationCommandOutput | StartCalculationExecutionCommandOutput | StartQueryExecutionCommandOutput | StartSessionCommandOutput | StopCalculationExecutionCommandOutput | StopQueryExecutionCommandOutput | TagResourceCommandOutput | TerminateSessionCommandOutput | UntagResourceCommandOutput | UpdateCapacityReservationCommandOutput | UpdateDataCatalogCommandOutput | UpdateNamedQueryCommandOutput | UpdateNotebookCommandOutput | UpdateNotebookMetadataCommandOutput | UpdatePreparedStatementCommandOutput | UpdateWorkGroupCommandOutput;
|
|
88
|
+
export type ServiceOutputTypes = BatchGetNamedQueryCommandOutput | BatchGetPreparedStatementCommandOutput | BatchGetQueryExecutionCommandOutput | CancelCapacityReservationCommandOutput | CreateCapacityReservationCommandOutput | CreateDataCatalogCommandOutput | CreateNamedQueryCommandOutput | CreateNotebookCommandOutput | CreatePreparedStatementCommandOutput | CreatePresignedNotebookUrlCommandOutput | CreateWorkGroupCommandOutput | DeleteCapacityReservationCommandOutput | DeleteDataCatalogCommandOutput | DeleteNamedQueryCommandOutput | DeleteNotebookCommandOutput | DeletePreparedStatementCommandOutput | DeleteWorkGroupCommandOutput | ExportNotebookCommandOutput | GetCalculationExecutionCodeCommandOutput | GetCalculationExecutionCommandOutput | GetCalculationExecutionStatusCommandOutput | GetCapacityAssignmentConfigurationCommandOutput | GetCapacityReservationCommandOutput | GetDataCatalogCommandOutput | GetDatabaseCommandOutput | GetNamedQueryCommandOutput | GetNotebookMetadataCommandOutput | GetPreparedStatementCommandOutput | GetQueryExecutionCommandOutput | GetQueryResultsCommandOutput | GetQueryRuntimeStatisticsCommandOutput | GetSessionCommandOutput | GetSessionStatusCommandOutput | GetTableMetadataCommandOutput | GetWorkGroupCommandOutput | ImportNotebookCommandOutput | ListApplicationDPUSizesCommandOutput | ListCalculationExecutionsCommandOutput | ListCapacityReservationsCommandOutput | ListDataCatalogsCommandOutput | ListDatabasesCommandOutput | ListEngineVersionsCommandOutput | ListExecutorsCommandOutput | ListNamedQueriesCommandOutput | ListNotebookMetadataCommandOutput | ListNotebookSessionsCommandOutput | ListPreparedStatementsCommandOutput | ListQueryExecutionsCommandOutput | ListSessionsCommandOutput | ListTableMetadataCommandOutput | ListTagsForResourceCommandOutput | ListWorkGroupsCommandOutput | PutCapacityAssignmentConfigurationCommandOutput | StartCalculationExecutionCommandOutput | StartQueryExecutionCommandOutput | StartSessionCommandOutput | StopCalculationExecutionCommandOutput | StopQueryExecutionCommandOutput | TagResourceCommandOutput | TerminateSessionCommandOutput | UntagResourceCommandOutput | UpdateCapacityReservationCommandOutput | UpdateDataCatalogCommandOutput | UpdateNamedQueryCommandOutput | UpdateNotebookCommandOutput | UpdateNotebookMetadataCommandOutput | UpdatePreparedStatementCommandOutput | UpdateWorkGroupCommandOutput;
|
|
88
89
|
/**
|
|
89
90
|
* @public
|
|
90
91
|
*/
|
|
@@ -23,7 +23,7 @@ export interface CancelCapacityReservationCommandOutput extends CancelCapacityRe
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>Cancels the capacity reservation with the specified name
|
|
26
|
+
* <p>Cancels the capacity reservation with the specified name. Cancelled reservations remain in your account and will be deleted 45 days after cancellation. During the 45 days, you cannot re-purpose or reuse a reservation that has been cancelled, but you can refer to its tags and view it for historical reference. </p>
|
|
27
27
|
* @example
|
|
28
28
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
29
|
* ```javascript
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { AthenaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AthenaClient";
|
|
5
|
+
import { DeleteCapacityReservationInput, DeleteCapacityReservationOutput } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteCapacityReservationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteCapacityReservationCommandInput extends DeleteCapacityReservationInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteCapacityReservationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteCapacityReservationCommandOutput extends DeleteCapacityReservationOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Deletes a cancelled capacity reservation. A reservation must be cancelled before it can be deleted. A deleted reservation is immediately removed from your account and can no longer be referenced, including by its ARN. A deleted reservation cannot be called by <code>GetCapacityReservation</code>, and deleted reservations do not appear in the output of <code>ListCapacityReservations</code>.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { AthenaClient, DeleteCapacityReservationCommand } from "@aws-sdk/client-athena"; // ES Modules import
|
|
31
|
+
* // const { AthenaClient, DeleteCapacityReservationCommand } = require("@aws-sdk/client-athena"); // CommonJS import
|
|
32
|
+
* const client = new AthenaClient(config);
|
|
33
|
+
* const input = { // DeleteCapacityReservationInput
|
|
34
|
+
* Name: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
36
|
+
* const command = new DeleteCapacityReservationCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // {};
|
|
39
|
+
*
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @param DeleteCapacityReservationCommandInput - {@link DeleteCapacityReservationCommandInput}
|
|
43
|
+
* @returns {@link DeleteCapacityReservationCommandOutput}
|
|
44
|
+
* @see {@link DeleteCapacityReservationCommandInput} for command's `input` shape.
|
|
45
|
+
* @see {@link DeleteCapacityReservationCommandOutput} for command's `response` shape.
|
|
46
|
+
* @see {@link AthenaClientResolvedConfig | config} for AthenaClient's `config` shape.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link InternalServerException} (server fault)
|
|
49
|
+
* <p>Indicates a platform issue, which may be due to a transient condition or
|
|
50
|
+
* outage.</p>
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
53
|
+
* <p>Indicates that something is wrong with the input to the request. For example, a
|
|
54
|
+
* required parameter may be missing or out of range.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link AthenaServiceException}
|
|
57
|
+
* <p>Base exception class for all service exceptions from Athena service.</p>
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export declare class DeleteCapacityReservationCommand extends $Command<DeleteCapacityReservationCommandInput, DeleteCapacityReservationCommandOutput, AthenaClientResolvedConfig> {
|
|
61
|
+
readonly input: DeleteCapacityReservationCommandInput;
|
|
62
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
63
|
+
/**
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
constructor(input: DeleteCapacityReservationCommandInput);
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteCapacityReservationCommandInput, DeleteCapacityReservationCommandOutput>;
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
private serialize;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
private deserialize;
|
|
79
|
+
}
|
|
@@ -9,6 +9,7 @@ export * from "./CreateNotebookCommand";
|
|
|
9
9
|
export * from "./CreatePreparedStatementCommand";
|
|
10
10
|
export * from "./CreatePresignedNotebookUrlCommand";
|
|
11
11
|
export * from "./CreateWorkGroupCommand";
|
|
12
|
+
export * from "./DeleteCapacityReservationCommand";
|
|
12
13
|
export * from "./DeleteDataCatalogCommand";
|
|
13
14
|
export * from "./DeleteNamedQueryCommand";
|
|
14
15
|
export * from "./DeleteNotebookCommand";
|
|
@@ -607,7 +607,7 @@ export interface QueryExecution {
|
|
|
607
607
|
EngineVersion?: EngineVersion;
|
|
608
608
|
/**
|
|
609
609
|
* <p>A list of values for the parameters in a query. The values are applied sequentially to
|
|
610
|
-
* the parameters in the query in the order in which the parameters occur.</p>
|
|
610
|
+
* the parameters in the query in the order in which the parameters occur. The list of parameters is not returned in the response.</p>
|
|
611
611
|
*/
|
|
612
612
|
ExecutionParameters?: string[];
|
|
613
613
|
/**
|
|
@@ -1119,6 +1119,20 @@ export interface CreateWorkGroupInput {
|
|
|
1119
1119
|
*/
|
|
1120
1120
|
export interface CreateWorkGroupOutput {
|
|
1121
1121
|
}
|
|
1122
|
+
/**
|
|
1123
|
+
* @public
|
|
1124
|
+
*/
|
|
1125
|
+
export interface DeleteCapacityReservationInput {
|
|
1126
|
+
/**
|
|
1127
|
+
* <p>The name of the capacity reservation to delete.</p>
|
|
1128
|
+
*/
|
|
1129
|
+
Name: string | undefined;
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* @public
|
|
1133
|
+
*/
|
|
1134
|
+
export interface DeleteCapacityReservationOutput {
|
|
1135
|
+
}
|
|
1122
1136
|
/**
|
|
1123
1137
|
* @public
|
|
1124
1138
|
*/
|
|
@@ -11,6 +11,7 @@ import { CreateNotebookCommandInput, CreateNotebookCommandOutput } from "../comm
|
|
|
11
11
|
import { CreatePreparedStatementCommandInput, CreatePreparedStatementCommandOutput } from "../commands/CreatePreparedStatementCommand";
|
|
12
12
|
import { CreatePresignedNotebookUrlCommandInput, CreatePresignedNotebookUrlCommandOutput } from "../commands/CreatePresignedNotebookUrlCommand";
|
|
13
13
|
import { CreateWorkGroupCommandInput, CreateWorkGroupCommandOutput } from "../commands/CreateWorkGroupCommand";
|
|
14
|
+
import { DeleteCapacityReservationCommandInput, DeleteCapacityReservationCommandOutput } from "../commands/DeleteCapacityReservationCommand";
|
|
14
15
|
import { DeleteDataCatalogCommandInput, DeleteDataCatalogCommandOutput } from "../commands/DeleteDataCatalogCommand";
|
|
15
16
|
import { DeleteNamedQueryCommandInput, DeleteNamedQueryCommandOutput } from "../commands/DeleteNamedQueryCommand";
|
|
16
17
|
import { DeleteNotebookCommandInput, DeleteNotebookCommandOutput } from "../commands/DeleteNotebookCommand";
|
|
@@ -111,6 +112,10 @@ export declare const se_CreatePresignedNotebookUrlCommand: (input: CreatePresign
|
|
|
111
112
|
* serializeAws_json1_1CreateWorkGroupCommand
|
|
112
113
|
*/
|
|
113
114
|
export declare const se_CreateWorkGroupCommand: (input: CreateWorkGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
115
|
+
/**
|
|
116
|
+
* serializeAws_json1_1DeleteCapacityReservationCommand
|
|
117
|
+
*/
|
|
118
|
+
export declare const se_DeleteCapacityReservationCommand: (input: DeleteCapacityReservationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
114
119
|
/**
|
|
115
120
|
* serializeAws_json1_1DeleteDataCatalogCommand
|
|
116
121
|
*/
|
|
@@ -379,6 +384,10 @@ export declare const de_CreatePresignedNotebookUrlCommand: (output: __HttpRespon
|
|
|
379
384
|
* deserializeAws_json1_1CreateWorkGroupCommand
|
|
380
385
|
*/
|
|
381
386
|
export declare const de_CreateWorkGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateWorkGroupCommandOutput>;
|
|
387
|
+
/**
|
|
388
|
+
* deserializeAws_json1_1DeleteCapacityReservationCommand
|
|
389
|
+
*/
|
|
390
|
+
export declare const de_DeleteCapacityReservationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteCapacityReservationCommandOutput>;
|
|
382
391
|
/**
|
|
383
392
|
* deserializeAws_json1_1DeleteDataCatalogCommand
|
|
384
393
|
*/
|
|
@@ -44,6 +44,10 @@ import {
|
|
|
44
44
|
CreateWorkGroupCommandInput,
|
|
45
45
|
CreateWorkGroupCommandOutput,
|
|
46
46
|
} from "./commands/CreateWorkGroupCommand";
|
|
47
|
+
import {
|
|
48
|
+
DeleteCapacityReservationCommandInput,
|
|
49
|
+
DeleteCapacityReservationCommandOutput,
|
|
50
|
+
} from "./commands/DeleteCapacityReservationCommand";
|
|
47
51
|
import {
|
|
48
52
|
DeleteDataCatalogCommandInput,
|
|
49
53
|
DeleteDataCatalogCommandOutput,
|
|
@@ -412,6 +416,19 @@ export interface Athena {
|
|
|
412
416
|
options: __HttpHandlerOptions,
|
|
413
417
|
cb: (err: any, data?: CreateWorkGroupCommandOutput) => void
|
|
414
418
|
): void;
|
|
419
|
+
deleteCapacityReservation(
|
|
420
|
+
args: DeleteCapacityReservationCommandInput,
|
|
421
|
+
options?: __HttpHandlerOptions
|
|
422
|
+
): Promise<DeleteCapacityReservationCommandOutput>;
|
|
423
|
+
deleteCapacityReservation(
|
|
424
|
+
args: DeleteCapacityReservationCommandInput,
|
|
425
|
+
cb: (err: any, data?: DeleteCapacityReservationCommandOutput) => void
|
|
426
|
+
): void;
|
|
427
|
+
deleteCapacityReservation(
|
|
428
|
+
args: DeleteCapacityReservationCommandInput,
|
|
429
|
+
options: __HttpHandlerOptions,
|
|
430
|
+
cb: (err: any, data?: DeleteCapacityReservationCommandOutput) => void
|
|
431
|
+
): void;
|
|
415
432
|
deleteDataCatalog(
|
|
416
433
|
args: DeleteDataCatalogCommandInput,
|
|
417
434
|
options?: __HttpHandlerOptions
|
|
@@ -90,6 +90,10 @@ import {
|
|
|
90
90
|
CreateWorkGroupCommandInput,
|
|
91
91
|
CreateWorkGroupCommandOutput,
|
|
92
92
|
} from "./commands/CreateWorkGroupCommand";
|
|
93
|
+
import {
|
|
94
|
+
DeleteCapacityReservationCommandInput,
|
|
95
|
+
DeleteCapacityReservationCommandOutput,
|
|
96
|
+
} from "./commands/DeleteCapacityReservationCommand";
|
|
93
97
|
import {
|
|
94
98
|
DeleteDataCatalogCommandInput,
|
|
95
99
|
DeleteDataCatalogCommandOutput,
|
|
@@ -332,6 +336,7 @@ export type ServiceInputTypes =
|
|
|
332
336
|
| CreatePreparedStatementCommandInput
|
|
333
337
|
| CreatePresignedNotebookUrlCommandInput
|
|
334
338
|
| CreateWorkGroupCommandInput
|
|
339
|
+
| DeleteCapacityReservationCommandInput
|
|
335
340
|
| DeleteDataCatalogCommandInput
|
|
336
341
|
| DeleteNamedQueryCommandInput
|
|
337
342
|
| DeleteNotebookCommandInput
|
|
@@ -400,6 +405,7 @@ export type ServiceOutputTypes =
|
|
|
400
405
|
| CreatePreparedStatementCommandOutput
|
|
401
406
|
| CreatePresignedNotebookUrlCommandOutput
|
|
402
407
|
| CreateWorkGroupCommandOutput
|
|
408
|
+
| DeleteCapacityReservationCommandOutput
|
|
403
409
|
| DeleteDataCatalogCommandOutput
|
|
404
410
|
| DeleteNamedQueryCommandOutput
|
|
405
411
|
| DeleteNotebookCommandOutput
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
AthenaClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../AthenaClient";
|
|
14
|
+
import {
|
|
15
|
+
DeleteCapacityReservationInput,
|
|
16
|
+
DeleteCapacityReservationOutput,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface DeleteCapacityReservationCommandInput
|
|
20
|
+
extends DeleteCapacityReservationInput {}
|
|
21
|
+
export interface DeleteCapacityReservationCommandOutput
|
|
22
|
+
extends DeleteCapacityReservationOutput,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class DeleteCapacityReservationCommand extends $Command<
|
|
25
|
+
DeleteCapacityReservationCommandInput,
|
|
26
|
+
DeleteCapacityReservationCommandOutput,
|
|
27
|
+
AthenaClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: DeleteCapacityReservationCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: DeleteCapacityReservationCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: AthenaClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
DeleteCapacityReservationCommandInput,
|
|
38
|
+
DeleteCapacityReservationCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -9,6 +9,7 @@ export * from "./CreateNotebookCommand";
|
|
|
9
9
|
export * from "./CreatePreparedStatementCommand";
|
|
10
10
|
export * from "./CreatePresignedNotebookUrlCommand";
|
|
11
11
|
export * from "./CreateWorkGroupCommand";
|
|
12
|
+
export * from "./DeleteCapacityReservationCommand";
|
|
12
13
|
export * from "./DeleteDataCatalogCommand";
|
|
13
14
|
export * from "./DeleteNamedQueryCommand";
|
|
14
15
|
export * from "./DeleteNotebookCommand";
|
|
@@ -271,6 +271,10 @@ export interface CreateWorkGroupInput {
|
|
|
271
271
|
Tags?: Tag[];
|
|
272
272
|
}
|
|
273
273
|
export interface CreateWorkGroupOutput {}
|
|
274
|
+
export interface DeleteCapacityReservationInput {
|
|
275
|
+
Name: string | undefined;
|
|
276
|
+
}
|
|
277
|
+
export interface DeleteCapacityReservationOutput {}
|
|
274
278
|
export interface DeleteDataCatalogInput {
|
|
275
279
|
Name: string | undefined;
|
|
276
280
|
}
|
|
@@ -47,6 +47,10 @@ import {
|
|
|
47
47
|
CreateWorkGroupCommandInput,
|
|
48
48
|
CreateWorkGroupCommandOutput,
|
|
49
49
|
} from "../commands/CreateWorkGroupCommand";
|
|
50
|
+
import {
|
|
51
|
+
DeleteCapacityReservationCommandInput,
|
|
52
|
+
DeleteCapacityReservationCommandOutput,
|
|
53
|
+
} from "../commands/DeleteCapacityReservationCommand";
|
|
50
54
|
import {
|
|
51
55
|
DeleteDataCatalogCommandInput,
|
|
52
56
|
DeleteDataCatalogCommandOutput,
|
|
@@ -315,6 +319,10 @@ export declare const se_CreateWorkGroupCommand: (
|
|
|
315
319
|
input: CreateWorkGroupCommandInput,
|
|
316
320
|
context: __SerdeContext
|
|
317
321
|
) => Promise<__HttpRequest>;
|
|
322
|
+
export declare const se_DeleteCapacityReservationCommand: (
|
|
323
|
+
input: DeleteCapacityReservationCommandInput,
|
|
324
|
+
context: __SerdeContext
|
|
325
|
+
) => Promise<__HttpRequest>;
|
|
318
326
|
export declare const se_DeleteDataCatalogCommand: (
|
|
319
327
|
input: DeleteDataCatalogCommandInput,
|
|
320
328
|
context: __SerdeContext
|
|
@@ -583,6 +591,10 @@ export declare const de_CreateWorkGroupCommand: (
|
|
|
583
591
|
output: __HttpResponse,
|
|
584
592
|
context: __SerdeContext
|
|
585
593
|
) => Promise<CreateWorkGroupCommandOutput>;
|
|
594
|
+
export declare const de_DeleteCapacityReservationCommand: (
|
|
595
|
+
output: __HttpResponse,
|
|
596
|
+
context: __SerdeContext
|
|
597
|
+
) => Promise<DeleteCapacityReservationCommandOutput>;
|
|
586
598
|
export declare const de_DeleteDataCatalogCommand: (
|
|
587
599
|
output: __HttpResponse,
|
|
588
600
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-athena",
|
|
3
3
|
"description": "AWS SDK for JavaScript Athena Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.345.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.345.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.342.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.345.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.342.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.344.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.342.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.342.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.342.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.342.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.345.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.342.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.344.0",
|
|
42
42
|
"@aws-sdk/smithy-client": "3.342.0",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@aws-sdk/util-defaults-mode-node": "3.342.0",
|
|
50
50
|
"@aws-sdk/util-endpoints": "3.342.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.342.0",
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.345.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.345.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
55
|
"@smithy/protocol-http": "^1.0.1",
|
|
56
56
|
"@smithy/types": "^1.0.0",
|