@effect-aws/client-athena 1.9.3
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/AthenaClientInstance/package.json +6 -0
- package/AthenaService/package.json +6 -0
- package/AthenaServiceConfig/package.json +6 -0
- package/Errors/package.json +6 -0
- package/LICENSE +19 -0
- package/README.md +58 -0
- package/dist/cjs/AthenaClientInstance.d.ts +24 -0
- package/dist/cjs/AthenaClientInstance.d.ts.map +1 -0
- package/dist/cjs/AthenaClientInstance.js +50 -0
- package/dist/cjs/AthenaClientInstance.js.map +1 -0
- package/dist/cjs/AthenaService.d.ts +313 -0
- package/dist/cjs/AthenaService.d.ts.map +1 -0
- package/dist/cjs/AthenaService.js +127 -0
- package/dist/cjs/AthenaService.js.map +1 -0
- package/dist/cjs/AthenaServiceConfig.d.ts +25 -0
- package/dist/cjs/AthenaServiceConfig.d.ts.map +1 -0
- package/dist/cjs/AthenaServiceConfig.js +35 -0
- package/dist/cjs/AthenaServiceConfig.js.map +1 -0
- package/dist/cjs/Errors.d.ts +13 -0
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +14 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/index.d.ts +39 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/dts/AthenaClientInstance.d.ts +24 -0
- package/dist/dts/AthenaClientInstance.d.ts.map +1 -0
- package/dist/dts/AthenaService.d.ts +313 -0
- package/dist/dts/AthenaService.d.ts.map +1 -0
- package/dist/dts/AthenaServiceConfig.d.ts +25 -0
- package/dist/dts/AthenaServiceConfig.d.ts.map +1 -0
- package/dist/dts/Errors.d.ts +13 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/index.d.ts +39 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/esm/AthenaClientInstance.js +23 -0
- package/dist/esm/AthenaClientInstance.js.map +1 -0
- package/dist/esm/AthenaService.js +100 -0
- package/dist/esm/AthenaService.js.map +1 -0
- package/dist/esm/AthenaServiceConfig.js +31 -0
- package/dist/esm/AthenaServiceConfig.js.map +1 -0
- package/dist/esm/Errors.js +11 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +71 -0
- package/src/AthenaClientInstance.ts +33 -0
- package/src/AthenaService.ts +1109 -0
- package/src/AthenaServiceConfig.ts +52 -0
- package/src/Errors.ts +29 -0
- package/src/index.ts +44 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.AthenaService = exports.makeAthenaService = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_athena_1 = require("@aws-sdk/client-athena");
|
|
31
|
+
const commons_1 = require("@effect-aws/commons");
|
|
32
|
+
const effect_1 = require("effect");
|
|
33
|
+
const Instance = __importStar(require("./AthenaClientInstance.js"));
|
|
34
|
+
const AthenaServiceConfig = __importStar(require("./AthenaServiceConfig.js"));
|
|
35
|
+
const Errors_js_1 = require("./Errors.js");
|
|
36
|
+
const commands = {
|
|
37
|
+
BatchGetNamedQueryCommand: client_athena_1.BatchGetNamedQueryCommand,
|
|
38
|
+
BatchGetPreparedStatementCommand: client_athena_1.BatchGetPreparedStatementCommand,
|
|
39
|
+
BatchGetQueryExecutionCommand: client_athena_1.BatchGetQueryExecutionCommand,
|
|
40
|
+
CancelCapacityReservationCommand: client_athena_1.CancelCapacityReservationCommand,
|
|
41
|
+
CreateCapacityReservationCommand: client_athena_1.CreateCapacityReservationCommand,
|
|
42
|
+
CreateDataCatalogCommand: client_athena_1.CreateDataCatalogCommand,
|
|
43
|
+
CreateNamedQueryCommand: client_athena_1.CreateNamedQueryCommand,
|
|
44
|
+
CreateNotebookCommand: client_athena_1.CreateNotebookCommand,
|
|
45
|
+
CreatePreparedStatementCommand: client_athena_1.CreatePreparedStatementCommand,
|
|
46
|
+
CreatePresignedNotebookUrlCommand: client_athena_1.CreatePresignedNotebookUrlCommand,
|
|
47
|
+
CreateWorkGroupCommand: client_athena_1.CreateWorkGroupCommand,
|
|
48
|
+
DeleteCapacityReservationCommand: client_athena_1.DeleteCapacityReservationCommand,
|
|
49
|
+
DeleteDataCatalogCommand: client_athena_1.DeleteDataCatalogCommand,
|
|
50
|
+
DeleteNamedQueryCommand: client_athena_1.DeleteNamedQueryCommand,
|
|
51
|
+
DeleteNotebookCommand: client_athena_1.DeleteNotebookCommand,
|
|
52
|
+
DeletePreparedStatementCommand: client_athena_1.DeletePreparedStatementCommand,
|
|
53
|
+
DeleteWorkGroupCommand: client_athena_1.DeleteWorkGroupCommand,
|
|
54
|
+
ExportNotebookCommand: client_athena_1.ExportNotebookCommand,
|
|
55
|
+
GetCalculationExecutionCommand: client_athena_1.GetCalculationExecutionCommand,
|
|
56
|
+
GetCalculationExecutionCodeCommand: client_athena_1.GetCalculationExecutionCodeCommand,
|
|
57
|
+
GetCalculationExecutionStatusCommand: client_athena_1.GetCalculationExecutionStatusCommand,
|
|
58
|
+
GetCapacityAssignmentConfigurationCommand: client_athena_1.GetCapacityAssignmentConfigurationCommand,
|
|
59
|
+
GetCapacityReservationCommand: client_athena_1.GetCapacityReservationCommand,
|
|
60
|
+
GetDataCatalogCommand: client_athena_1.GetDataCatalogCommand,
|
|
61
|
+
GetDatabaseCommand: client_athena_1.GetDatabaseCommand,
|
|
62
|
+
GetNamedQueryCommand: client_athena_1.GetNamedQueryCommand,
|
|
63
|
+
GetNotebookMetadataCommand: client_athena_1.GetNotebookMetadataCommand,
|
|
64
|
+
GetPreparedStatementCommand: client_athena_1.GetPreparedStatementCommand,
|
|
65
|
+
GetQueryExecutionCommand: client_athena_1.GetQueryExecutionCommand,
|
|
66
|
+
GetQueryResultsCommand: client_athena_1.GetQueryResultsCommand,
|
|
67
|
+
GetQueryRuntimeStatisticsCommand: client_athena_1.GetQueryRuntimeStatisticsCommand,
|
|
68
|
+
GetSessionCommand: client_athena_1.GetSessionCommand,
|
|
69
|
+
GetSessionStatusCommand: client_athena_1.GetSessionStatusCommand,
|
|
70
|
+
GetTableMetadataCommand: client_athena_1.GetTableMetadataCommand,
|
|
71
|
+
GetWorkGroupCommand: client_athena_1.GetWorkGroupCommand,
|
|
72
|
+
ImportNotebookCommand: client_athena_1.ImportNotebookCommand,
|
|
73
|
+
ListApplicationDPUSizesCommand: client_athena_1.ListApplicationDPUSizesCommand,
|
|
74
|
+
ListCalculationExecutionsCommand: client_athena_1.ListCalculationExecutionsCommand,
|
|
75
|
+
ListCapacityReservationsCommand: client_athena_1.ListCapacityReservationsCommand,
|
|
76
|
+
ListDataCatalogsCommand: client_athena_1.ListDataCatalogsCommand,
|
|
77
|
+
ListDatabasesCommand: client_athena_1.ListDatabasesCommand,
|
|
78
|
+
ListEngineVersionsCommand: client_athena_1.ListEngineVersionsCommand,
|
|
79
|
+
ListExecutorsCommand: client_athena_1.ListExecutorsCommand,
|
|
80
|
+
ListNamedQueriesCommand: client_athena_1.ListNamedQueriesCommand,
|
|
81
|
+
ListNotebookMetadataCommand: client_athena_1.ListNotebookMetadataCommand,
|
|
82
|
+
ListNotebookSessionsCommand: client_athena_1.ListNotebookSessionsCommand,
|
|
83
|
+
ListPreparedStatementsCommand: client_athena_1.ListPreparedStatementsCommand,
|
|
84
|
+
ListQueryExecutionsCommand: client_athena_1.ListQueryExecutionsCommand,
|
|
85
|
+
ListSessionsCommand: client_athena_1.ListSessionsCommand,
|
|
86
|
+
ListTableMetadataCommand: client_athena_1.ListTableMetadataCommand,
|
|
87
|
+
ListTagsForResourceCommand: client_athena_1.ListTagsForResourceCommand,
|
|
88
|
+
ListWorkGroupsCommand: client_athena_1.ListWorkGroupsCommand,
|
|
89
|
+
PutCapacityAssignmentConfigurationCommand: client_athena_1.PutCapacityAssignmentConfigurationCommand,
|
|
90
|
+
StartCalculationExecutionCommand: client_athena_1.StartCalculationExecutionCommand,
|
|
91
|
+
StartQueryExecutionCommand: client_athena_1.StartQueryExecutionCommand,
|
|
92
|
+
StartSessionCommand: client_athena_1.StartSessionCommand,
|
|
93
|
+
StopCalculationExecutionCommand: client_athena_1.StopCalculationExecutionCommand,
|
|
94
|
+
StopQueryExecutionCommand: client_athena_1.StopQueryExecutionCommand,
|
|
95
|
+
TagResourceCommand: client_athena_1.TagResourceCommand,
|
|
96
|
+
TerminateSessionCommand: client_athena_1.TerminateSessionCommand,
|
|
97
|
+
UntagResourceCommand: client_athena_1.UntagResourceCommand,
|
|
98
|
+
UpdateCapacityReservationCommand: client_athena_1.UpdateCapacityReservationCommand,
|
|
99
|
+
UpdateDataCatalogCommand: client_athena_1.UpdateDataCatalogCommand,
|
|
100
|
+
UpdateNamedQueryCommand: client_athena_1.UpdateNamedQueryCommand,
|
|
101
|
+
UpdateNotebookCommand: client_athena_1.UpdateNotebookCommand,
|
|
102
|
+
UpdateNotebookMetadataCommand: client_athena_1.UpdateNotebookMetadataCommand,
|
|
103
|
+
UpdatePreparedStatementCommand: client_athena_1.UpdatePreparedStatementCommand,
|
|
104
|
+
UpdateWorkGroupCommand: client_athena_1.UpdateWorkGroupCommand,
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* @since 1.0.0
|
|
108
|
+
* @category constructors
|
|
109
|
+
*/
|
|
110
|
+
exports.makeAthenaService = effect_1.Effect.gen(function* () {
|
|
111
|
+
const client = yield* Instance.AthenaClientInstance;
|
|
112
|
+
return commons_1.Service.fromClientAndCommands(client, commands, {
|
|
113
|
+
errorTags: Errors_js_1.AllServiceErrors,
|
|
114
|
+
resolveClientConfig: AthenaServiceConfig.toAthenaClientConfig,
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
/**
|
|
118
|
+
* @since 1.0.0
|
|
119
|
+
* @category models
|
|
120
|
+
*/
|
|
121
|
+
class AthenaService extends effect_1.Effect.Tag("@effect-aws/client-athena/AthenaService")() {
|
|
122
|
+
static defaultLayer = effect_1.Layer.effect(this, exports.makeAthenaService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
123
|
+
static layer = (config) => effect_1.Layer.effect(this, exports.makeAthenaService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(AthenaServiceConfig.setAthenaServiceConfig(config)));
|
|
124
|
+
static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeAthenaService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.AthenaClientInstance, effect_1.Effect.map(AthenaServiceConfig.toAthenaClientConfig, evaluate))));
|
|
125
|
+
}
|
|
126
|
+
exports.AthenaService = AthenaService;
|
|
127
|
+
//# sourceMappingURL=AthenaService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AthenaService.js","sourceRoot":"","sources":["../../src/AthenaService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,0DA+MgC;AAEhC,iDAA8C;AAC9C,mCAAuC;AACvC,oEAAsD;AACtD,8EAAgE;AAShE,2CAA+C;AAE/C,MAAM,QAAQ,GAAG;IACf,yBAAyB,EAAzB,yCAAyB;IACzB,gCAAgC,EAAhC,gDAAgC;IAChC,6BAA6B,EAA7B,6CAA6B;IAC7B,gCAAgC,EAAhC,gDAAgC;IAChC,gCAAgC,EAAhC,gDAAgC;IAChC,wBAAwB,EAAxB,wCAAwB;IACxB,uBAAuB,EAAvB,uCAAuB;IACvB,qBAAqB,EAArB,qCAAqB;IACrB,8BAA8B,EAA9B,8CAA8B;IAC9B,iCAAiC,EAAjC,iDAAiC;IACjC,sBAAsB,EAAtB,sCAAsB;IACtB,gCAAgC,EAAhC,gDAAgC;IAChC,wBAAwB,EAAxB,wCAAwB;IACxB,uBAAuB,EAAvB,uCAAuB;IACvB,qBAAqB,EAArB,qCAAqB;IACrB,8BAA8B,EAA9B,8CAA8B;IAC9B,sBAAsB,EAAtB,sCAAsB;IACtB,qBAAqB,EAArB,qCAAqB;IACrB,8BAA8B,EAA9B,8CAA8B;IAC9B,kCAAkC,EAAlC,kDAAkC;IAClC,oCAAoC,EAApC,oDAAoC;IACpC,yCAAyC,EAAzC,yDAAyC;IACzC,6BAA6B,EAA7B,6CAA6B;IAC7B,qBAAqB,EAArB,qCAAqB;IACrB,kBAAkB,EAAlB,kCAAkB;IAClB,oBAAoB,EAApB,oCAAoB;IACpB,0BAA0B,EAA1B,0CAA0B;IAC1B,2BAA2B,EAA3B,2CAA2B;IAC3B,wBAAwB,EAAxB,wCAAwB;IACxB,sBAAsB,EAAtB,sCAAsB;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from "effect";
|
|
6
|
+
import type { AthenaService } from "./AthenaService.js";
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category athena service config
|
|
10
|
+
*/
|
|
11
|
+
export declare const withAthenaServiceConfig: {
|
|
12
|
+
(config: AthenaService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
13
|
+
<A, E, R>(effect: Effect.Effect<A, E, R>, config: AthenaService.Config): Effect.Effect<A, E, R>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
* @category athena service config
|
|
18
|
+
*/
|
|
19
|
+
export declare const setAthenaServiceConfig: (config: AthenaService.Config) => Layer.Layer<never, never, never>;
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category adapters
|
|
23
|
+
*/
|
|
24
|
+
export declare const toAthenaClientConfig: Effect.Effect<AthenaClientConfig>;
|
|
25
|
+
//# sourceMappingURL=AthenaServiceConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AthenaServiceConfig.d.ts","sourceRoot":"","sources":["../../src/AthenaServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAWxD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE;IACpC,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACpG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKjG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,WAAY,cAAc,MAAM,qCACV,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAQjE,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toAthenaClientConfig = exports.setAthenaServiceConfig = exports.withAthenaServiceConfig = void 0;
|
|
4
|
+
const commons_1 = require("@effect-aws/commons");
|
|
5
|
+
const effect_1 = require("effect");
|
|
6
|
+
const Function_1 = require("effect/Function");
|
|
7
|
+
const GlobalValue_1 = require("effect/GlobalValue");
|
|
8
|
+
/**
|
|
9
|
+
* @since 1.0.0
|
|
10
|
+
* @category athena service config
|
|
11
|
+
*/
|
|
12
|
+
const currentAthenaServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-athena/currentAthenaServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category athena service config
|
|
16
|
+
*/
|
|
17
|
+
exports.withAthenaServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentAthenaServiceConfig, config));
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category athena service config
|
|
21
|
+
*/
|
|
22
|
+
const setAthenaServiceConfig = (config) => effect_1.Layer.locallyScoped(currentAthenaServiceConfig, config);
|
|
23
|
+
exports.setAthenaServiceConfig = setAthenaServiceConfig;
|
|
24
|
+
/**
|
|
25
|
+
* @since 1.0.0
|
|
26
|
+
* @category adapters
|
|
27
|
+
*/
|
|
28
|
+
exports.toAthenaClientConfig = effect_1.Effect.gen(function* () {
|
|
29
|
+
const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentAthenaServiceConfig);
|
|
30
|
+
const logger = serviceLogger === true
|
|
31
|
+
? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.defaultServiceLogger)
|
|
32
|
+
: (serviceLogger ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.make(serviceLogger)) : undefined);
|
|
33
|
+
return { logger, ...config };
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=AthenaServiceConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AthenaServiceConfig.js","sourceRoot":"","sources":["../../src/AthenaServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,0BAA0B,GAAG,IAAA,yBAAW,EAC5C,sDAAsD,EACtD,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAAuB,EAAE,CAAC,CACpD,CAAC;AAEF;;;GAGG;AACU,QAAA,uBAAuB,GAGhC,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA4B,EAA0B,EAAE,CAChG,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,0BAA0B,EAAE,MAAM,CAAC,CAC7D,CAAC;AAEF;;;GAGG;AACI,MAAM,sBAAsB,GAAG,CAAC,MAA4B,EAAE,EAAE,CACrE,cAAK,CAAC,aAAa,CAAC,0BAA0B,EAAE,MAAM,CAAC,CAAC;AAD7C,QAAA,sBAAsB,0BACuB;AAE1D;;;GAGG;AACU,QAAA,oBAAoB,GAAsC,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACzF,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IAE7F,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { InternalServerException, InvalidRequestException, MetadataException, ResourceNotFoundException, SessionAlreadyExistsException, TooManyRequestsException } from "@aws-sdk/client-athena";
|
|
2
|
+
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
|
+
export declare const AllServiceErrors: readonly ["InternalServerException", "InvalidRequestException", "MetadataException", "ResourceNotFoundException", "SessionAlreadyExistsException", "TooManyRequestsException"];
|
|
5
|
+
export type InternalServerError = TaggedException<InternalServerException>;
|
|
6
|
+
export type InvalidRequestError = TaggedException<InvalidRequestException>;
|
|
7
|
+
export type MetadataError = TaggedException<MetadataException>;
|
|
8
|
+
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
9
|
+
export type SessionAlreadyExistsError = TaggedException<SessionAlreadyExistsException>;
|
|
10
|
+
export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
|
|
11
|
+
export type SdkError = CommonSdkError;
|
|
12
|
+
export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
|
|
13
|
+
//# sourceMappingURL=Errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,gLAOnB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAE7E,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SdkError = exports.AllServiceErrors = void 0;
|
|
4
|
+
const commons_1 = require("@effect-aws/commons");
|
|
5
|
+
exports.AllServiceErrors = [
|
|
6
|
+
"InternalServerException",
|
|
7
|
+
"InvalidRequestException",
|
|
8
|
+
"MetadataException",
|
|
9
|
+
"ResourceNotFoundException",
|
|
10
|
+
"SessionAlreadyExistsException",
|
|
11
|
+
"TooManyRequestsException",
|
|
12
|
+
];
|
|
13
|
+
exports.SdkError = commons_1.SdkError;
|
|
14
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AASA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,yBAAyB;IACzB,yBAAyB;IACzB,mBAAmB;IACnB,2BAA2B;IAC3B,+BAA+B;IAC/B,0BAA0B;CAClB,CAAC;AAUE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { AthenaService } from "./AthenaService.js";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export * from "./Errors.js";
|
|
9
|
+
/**
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
export * as AthenaClientInstance from "./AthenaClientInstance.js";
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*/
|
|
16
|
+
export * as AthenaServiceConfig from "./AthenaServiceConfig.js";
|
|
17
|
+
/**
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
export * from "./AthenaService.js";
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
* @category exports
|
|
24
|
+
* @alias AthenaService
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace Athena {
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
* @alias AthenaService.Config
|
|
30
|
+
*/
|
|
31
|
+
type Config = AthenaService.Config;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category exports
|
|
36
|
+
* @alias AthenaService
|
|
37
|
+
*/
|
|
38
|
+
export declare const Athena: typeof AthenaService;
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAElE;;GAEG;AACH,OAAO,KAAK,mBAAmB,MAAM,0BAA0B,CAAC;AAEhE;;GAEG;AACH,cAAc,oBAAoB,CAAC;AAEnC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B;;;OAGG;IACH,KAAY,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC;CAC3C;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM,sBAAgB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Athena = exports.AthenaServiceConfig = exports.AthenaClientInstance = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* @since 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
const AthenaService_js_1 = require("./AthenaService.js");
|
|
34
|
+
/**
|
|
35
|
+
* @since 1.0.0
|
|
36
|
+
*/
|
|
37
|
+
__exportStar(require("./Errors.js"), exports);
|
|
38
|
+
/**
|
|
39
|
+
* @since 1.0.0
|
|
40
|
+
*/
|
|
41
|
+
exports.AthenaClientInstance = __importStar(require("./AthenaClientInstance.js"));
|
|
42
|
+
/**
|
|
43
|
+
* @since 1.0.0
|
|
44
|
+
*/
|
|
45
|
+
exports.AthenaServiceConfig = __importStar(require("./AthenaServiceConfig.js"));
|
|
46
|
+
/**
|
|
47
|
+
* @since 1.0.0
|
|
48
|
+
*/
|
|
49
|
+
__exportStar(require("./AthenaService.js"), exports);
|
|
50
|
+
/**
|
|
51
|
+
* @since 1.0.0
|
|
52
|
+
* @category exports
|
|
53
|
+
* @alias AthenaService
|
|
54
|
+
*/
|
|
55
|
+
exports.Athena = AthenaService_js_1.AthenaService;
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,yDAAmD;AAEnD;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,kFAAkE;AAElE;;GAEG;AACH,gFAAgE;AAEhE;;GAEG;AACH,qDAAmC;AAenC;;;;GAIG;AACU,QAAA,MAAM,GAAG,gCAAa,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { AthenaClient } from "@aws-sdk/client-athena";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
declare const AthenaClientInstance_base: Context.TagClass<AthenaClientInstance, "@effect-aws/client-athena/AthenaClientInstance", AthenaClient>;
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export declare class AthenaClientInstance extends AthenaClientInstance_base {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export declare const make: Effect.Effect<AthenaClient, never, import("effect/Scope").Scope>;
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export declare const layer: Layer.Layer<AthenaClientInstance, never, never>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=AthenaClientInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AthenaClientInstance.d.ts","sourceRoot":"","sources":["../../src/AthenaClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,yBAEH;CAAG;AAE1C;;;GAGG;AACH,eAAO,MAAM,IAAI,kEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,iDAA2C,CAAC"}
|