@effect-aws/client-kinesis 1.2.0 → 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/Errors/package.json +6 -0
- package/KinesisClientInstance/package.json +6 -0
- package/KinesisService/package.json +6 -0
- package/KinesisServiceConfig/package.json +6 -0
- package/{lib → dist/cjs}/Errors.d.ts +6 -11
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +24 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/KinesisClientInstance.d.ts +24 -0
- package/dist/cjs/KinesisClientInstance.d.ts.map +1 -0
- package/dist/cjs/KinesisClientInstance.js +50 -0
- package/dist/cjs/KinesisClientInstance.js.map +1 -0
- package/dist/cjs/KinesisService.d.ts +169 -0
- package/dist/cjs/KinesisService.d.ts.map +1 -0
- package/dist/cjs/KinesisService.js +91 -0
- package/dist/cjs/KinesisService.js.map +1 -0
- package/dist/cjs/KinesisServiceConfig.d.ts +25 -0
- package/dist/cjs/KinesisServiceConfig.d.ts.map +1 -0
- package/dist/cjs/KinesisServiceConfig.js +35 -0
- package/dist/cjs/KinesisServiceConfig.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/Errors.d.ts +23 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/KinesisClientInstance.d.ts +24 -0
- package/dist/dts/KinesisClientInstance.d.ts.map +1 -0
- package/dist/dts/KinesisService.d.ts +169 -0
- package/dist/dts/KinesisService.d.ts.map +1 -0
- package/dist/dts/KinesisServiceConfig.d.ts +25 -0
- package/dist/dts/KinesisServiceConfig.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/Errors.js +21 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/KinesisClientInstance.js +23 -0
- package/dist/esm/KinesisClientInstance.js.map +1 -0
- package/dist/esm/KinesisService.js +64 -0
- package/dist/esm/KinesisService.js.map +1 -0
- package/dist/esm/KinesisServiceConfig.js +31 -0
- package/dist/esm/KinesisServiceConfig.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 +60 -43
- package/src/Errors.ts +59 -0
- package/src/KinesisClientInstance.ts +33 -0
- package/src/KinesisService.ts +704 -0
- package/src/KinesisServiceConfig.ts +52 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -25
- package/docgen.json +0 -8
- package/lib/Errors.js +0 -24
- package/lib/KinesisClientInstance.d.ts +0 -31
- package/lib/KinesisClientInstance.js +0 -57
- package/lib/KinesisClientInstanceConfig.d.ts +0 -23
- package/lib/KinesisClientInstanceConfig.js +0 -44
- package/lib/KinesisService.d.ts +0 -225
- package/lib/KinesisService.js +0 -120
- package/lib/esm/Errors.js +0 -21
- package/lib/esm/KinesisClientInstance.js +0 -30
- package/lib/esm/KinesisClientInstanceConfig.js +0 -40
- package/lib/esm/KinesisService.js +0 -116
- package/lib/esm/index.js +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -21
- package/project.json +0 -77
- package/vitest.config.ts +0 -3
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import type { KinesisClientConfig } from "@aws-sdk/client-kinesis";
|
|
5
|
+
import { ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import { Effect, FiberRef, Layer } from "effect";
|
|
7
|
+
import { dual } from "effect/Function";
|
|
8
|
+
import { globalValue } from "effect/GlobalValue";
|
|
9
|
+
import type { KinesisService } from "./KinesisService.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @since 1.0.0
|
|
13
|
+
* @category kinesis service config
|
|
14
|
+
*/
|
|
15
|
+
const currentKinesisServiceConfig = globalValue(
|
|
16
|
+
"@effect-aws/client-kinesis/currentKinesisServiceConfig",
|
|
17
|
+
() => FiberRef.unsafeMake<KinesisService.Config>({}),
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category kinesis service config
|
|
23
|
+
*/
|
|
24
|
+
export const withKinesisServiceConfig: {
|
|
25
|
+
(config: KinesisService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
26
|
+
<A, E, R>(effect: Effect.Effect<A, E, R>, config: KinesisService.Config): Effect.Effect<A, E, R>;
|
|
27
|
+
} = dual(
|
|
28
|
+
2,
|
|
29
|
+
<A, E, R>(effect: Effect.Effect<A, E, R>, config: KinesisService.Config): Effect.Effect<A, E, R> =>
|
|
30
|
+
Effect.locally(effect, currentKinesisServiceConfig, config),
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category kinesis service config
|
|
36
|
+
*/
|
|
37
|
+
export const setKinesisServiceConfig = (config: KinesisService.Config) =>
|
|
38
|
+
Layer.locallyScoped(currentKinesisServiceConfig, config);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @since 1.0.0
|
|
42
|
+
* @category adapters
|
|
43
|
+
*/
|
|
44
|
+
export const toKinesisClientConfig: Effect.Effect<KinesisClientConfig> = Effect.gen(function*() {
|
|
45
|
+
const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentKinesisServiceConfig);
|
|
46
|
+
|
|
47
|
+
const logger = serviceLogger === true
|
|
48
|
+
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
49
|
+
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
50
|
+
|
|
51
|
+
return { logger, ...config };
|
|
52
|
+
});
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { KinesisService } from "./KinesisService.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @since 1.0.0
|
|
8
|
+
*/
|
|
9
|
+
export * from "./Errors.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @since 1.0.0
|
|
13
|
+
*/
|
|
14
|
+
export * as KinesisClientInstance from "./KinesisClientInstance.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @since 1.0.0
|
|
18
|
+
*/
|
|
19
|
+
export * as KinesisServiceConfig from "./KinesisServiceConfig.js";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
*/
|
|
24
|
+
export * from "./KinesisService.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @since 1.0.0
|
|
28
|
+
* @category exports
|
|
29
|
+
* @alias KinesisService
|
|
30
|
+
*/
|
|
31
|
+
export declare namespace Kinesis {
|
|
32
|
+
/**
|
|
33
|
+
* @since 1.0.0
|
|
34
|
+
* @alias KinesisService.Config
|
|
35
|
+
*/
|
|
36
|
+
export type Config = KinesisService.Config;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @since 1.0.0
|
|
41
|
+
* @category exports
|
|
42
|
+
* @alias KinesisService
|
|
43
|
+
*/
|
|
44
|
+
export const Kinesis = KinesisService;
|
package/CHANGELOG.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# @effect-aws/client-kinesis
|
|
2
|
-
|
|
3
|
-
## 1.2.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- [#93](https://github.com/floydspace/effect-aws/pull/93) [`a96fbd8`](https://github.com/floydspace/effect-aws/commit/a96fbd8840a7a6cfb795a2a6ab96aa32d32a3525) Thanks [@godu](https://github.com/godu)! - Destroy client after layer lifecycle to release idle connections.
|
|
8
|
-
|
|
9
|
-
## 1.1.0
|
|
10
|
-
|
|
11
|
-
### Minor Changes
|
|
12
|
-
|
|
13
|
-
- [#80](https://github.com/floydspace/effect-aws/pull/80) [`4b16fbe`](https://github.com/floydspace/effect-aws/commit/4b16fbebce8131df7798ee92f43cf6b7df3e907c) Thanks [@floydspace](https://github.com/floydspace)! - simplify layers configuration (closes #78)
|
|
14
|
-
|
|
15
|
-
## 1.0.1
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- [#75](https://github.com/floydspace/effect-aws/pull/75) [`9dc170d`](https://github.com/floydspace/effect-aws/commit/9dc170d975c04888bbc7ca7b241b4b5265668fb5) Thanks [@godu](https://github.com/godu)! - export the HttpHandlerOptions type
|
|
20
|
-
|
|
21
|
-
## 1.0.0
|
|
22
|
-
|
|
23
|
-
### Major Changes
|
|
24
|
-
|
|
25
|
-
- [`19dfb35`](https://github.com/floydspace/effect-aws/commit/19dfb352306ff66050b69224095a443528019367) Thanks [@floydspace](https://github.com/floydspace)! - implement effectful kinesis client
|
package/docgen.json
DELETED
package/lib/Errors.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SdkError = exports.AllServiceErrors = void 0;
|
|
4
|
-
const effect_1 = require("effect");
|
|
5
|
-
exports.AllServiceErrors = [
|
|
6
|
-
"AccessDeniedException",
|
|
7
|
-
"ExpiredIteratorException",
|
|
8
|
-
"ExpiredNextTokenException",
|
|
9
|
-
"InternalFailureException",
|
|
10
|
-
"InvalidArgumentException",
|
|
11
|
-
"KMSAccessDeniedException",
|
|
12
|
-
"KMSDisabledException",
|
|
13
|
-
"KMSInvalidStateException",
|
|
14
|
-
"KMSNotFoundException",
|
|
15
|
-
"KMSOptInRequired",
|
|
16
|
-
"KMSThrottlingException",
|
|
17
|
-
"LimitExceededException",
|
|
18
|
-
"ProvisionedThroughputExceededException",
|
|
19
|
-
"ResourceInUseException",
|
|
20
|
-
"ResourceNotFoundException",
|
|
21
|
-
"ValidationException",
|
|
22
|
-
];
|
|
23
|
-
exports.SdkError = effect_1.Data.tagged("SdkError");
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0Vycm9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFrQkEsbUNBQThCO0FBRWpCLFFBQUEsZ0JBQWdCLEdBQUc7SUFDOUIsdUJBQXVCO0lBQ3ZCLDBCQUEwQjtJQUMxQiwyQkFBMkI7SUFDM0IsMEJBQTBCO0lBQzFCLDBCQUEwQjtJQUMxQiwwQkFBMEI7SUFDMUIsc0JBQXNCO0lBQ3RCLDBCQUEwQjtJQUMxQixzQkFBc0I7SUFDdEIsa0JBQWtCO0lBQ2xCLHdCQUF3QjtJQUN4Qix3QkFBd0I7SUFDeEIsd0NBQXdDO0lBQ3hDLHdCQUF3QjtJQUN4QiwyQkFBMkI7SUFDM0IscUJBQXFCO0NBQ3RCLENBQUM7QUF5QlcsUUFBQSxRQUFRLEdBQUcsYUFBSSxDQUFDLE1BQU0sQ0FBVyxVQUFVLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHtcbiAgQWNjZXNzRGVuaWVkRXhjZXB0aW9uLFxuICBFeHBpcmVkSXRlcmF0b3JFeGNlcHRpb24sXG4gIEV4cGlyZWROZXh0VG9rZW5FeGNlcHRpb24sXG4gIEludGVybmFsRmFpbHVyZUV4Y2VwdGlvbixcbiAgSW52YWxpZEFyZ3VtZW50RXhjZXB0aW9uLFxuICBLTVNBY2Nlc3NEZW5pZWRFeGNlcHRpb24sXG4gIEtNU0Rpc2FibGVkRXhjZXB0aW9uLFxuICBLTVNJbnZhbGl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/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { KinesisClient } from "@aws-sdk/client-kinesis";
|
|
5
|
-
import * as Context from "effect/Context";
|
|
6
|
-
import * as Effect from "effect/Effect";
|
|
7
|
-
import * as Layer from "effect/Layer";
|
|
8
|
-
import { KinesisClientInstanceConfig } from "./KinesisClientInstanceConfig";
|
|
9
|
-
declare const KinesisClientInstance_base: Context.TagClass<KinesisClientInstance, "@effect-aws/client-kinesis/KinesisClientInstance", KinesisClient>;
|
|
10
|
-
/**
|
|
11
|
-
* @since 1.0.0
|
|
12
|
-
* @category tags
|
|
13
|
-
*/
|
|
14
|
-
export declare class KinesisClientInstance extends KinesisClientInstance_base {
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @since 1.0.0
|
|
18
|
-
* @category constructors
|
|
19
|
-
*/
|
|
20
|
-
export declare const makeKinesisClientInstance: Effect.Effect<KinesisClient, never, import("effect/Scope").Scope | KinesisClientInstanceConfig>;
|
|
21
|
-
/**
|
|
22
|
-
* @since 1.0.0
|
|
23
|
-
* @category layers
|
|
24
|
-
*/
|
|
25
|
-
export declare const KinesisClientInstanceLayer: Layer.Layer<KinesisClientInstance, never, KinesisClientInstanceConfig>;
|
|
26
|
-
/**
|
|
27
|
-
* @since 1.0.0
|
|
28
|
-
* @category layers
|
|
29
|
-
*/
|
|
30
|
-
export declare const DefaultKinesisClientInstanceLayer: Layer.Layer<KinesisClientInstance, never, never>;
|
|
31
|
-
export {};
|
|
@@ -1,57 +0,0 @@
|
|
|
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.DefaultKinesisClientInstanceLayer = exports.KinesisClientInstanceLayer = exports.makeKinesisClientInstance = exports.KinesisClientInstance = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_kinesis_1 = require("@aws-sdk/client-kinesis");
|
|
31
|
-
const Context = __importStar(require("effect/Context"));
|
|
32
|
-
const Effect = __importStar(require("effect/Effect"));
|
|
33
|
-
const Layer = __importStar(require("effect/Layer"));
|
|
34
|
-
const KinesisClientInstanceConfig_1 = require("./KinesisClientInstanceConfig");
|
|
35
|
-
/**
|
|
36
|
-
* @since 1.0.0
|
|
37
|
-
* @category tags
|
|
38
|
-
*/
|
|
39
|
-
class KinesisClientInstance extends Context.Tag("@effect-aws/client-kinesis/KinesisClientInstance")() {
|
|
40
|
-
}
|
|
41
|
-
exports.KinesisClientInstance = KinesisClientInstance;
|
|
42
|
-
/**
|
|
43
|
-
* @since 1.0.0
|
|
44
|
-
* @category constructors
|
|
45
|
-
*/
|
|
46
|
-
exports.makeKinesisClientInstance = Effect.flatMap(KinesisClientInstanceConfig_1.KinesisClientInstanceConfig, (config) => Effect.acquireRelease(Effect.sync(() => new client_kinesis_1.KinesisClient(config)), (client) => Effect.sync(() => client.destroy())));
|
|
47
|
-
/**
|
|
48
|
-
* @since 1.0.0
|
|
49
|
-
* @category layers
|
|
50
|
-
*/
|
|
51
|
-
exports.KinesisClientInstanceLayer = Layer.scoped(KinesisClientInstance, exports.makeKinesisClientInstance);
|
|
52
|
-
/**
|
|
53
|
-
* @since 1.0.0
|
|
54
|
-
* @category layers
|
|
55
|
-
*/
|
|
56
|
-
exports.DefaultKinesisClientInstanceLayer = exports.KinesisClientInstanceLayer.pipe(Layer.provide(KinesisClientInstanceConfig_1.DefaultKinesisClientConfigLayer));
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiS2luZXNpc0NsaWVudEluc3RhbmNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0tpbmVzaXNDbGllbnRJbnN0YW5jZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBOztHQUVHO0FBQ0gsNERBQXdEO0FBQ3hELHdEQUEwQztBQUMxQyxzREFBd0M7QUFDeEMsb0RBQXNDO0FBQ3RDLCtFQUd1QztBQUV2Qzs7O0dBR0c7QUFDSCxNQUFhLHFCQUFzQixTQUFRLE9BQU8sQ0FBQyxHQUFHLENBQ3BELGtEQUFrRCxDQUNuRCxFQUF3QztDQUFHO0FBRjVDLHNEQUU0QztBQUU1Qzs7O0dBR0c7QUFDVSxRQUFBLHlCQUF5QixHQUFHLE1BQU0sQ0FBQyxPQUFPLENBQ3JELHlEQUEyQixFQUMzQixDQUFDLE1BQU0sRUFBRSxFQUFFLENBQ1QsTUFBTSxDQUFDLGNBQWMsQ0FDbkIsTUFBTSxDQUFDL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0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import type { KinesisClientConfig } from "@aws-sdk/client-kinesis";
|
|
5
|
-
import { Context, Effect, Layer } from "effect";
|
|
6
|
-
declare const KinesisClientInstanceConfig_base: Context.TagClass<KinesisClientInstanceConfig, "@effect-aws/client-kinesis/KinesisClientInstanceConfig", KinesisClientConfig>;
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category tags
|
|
10
|
-
*/
|
|
11
|
-
export declare class KinesisClientInstanceConfig extends KinesisClientInstanceConfig_base {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category constructors
|
|
16
|
-
*/
|
|
17
|
-
export declare const makeDefaultKinesisClientInstanceConfig: Effect.Effect<KinesisClientConfig>;
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category layers
|
|
21
|
-
*/
|
|
22
|
-
export declare const DefaultKinesisClientConfigLayer: Layer.Layer<KinesisClientInstanceConfig, never, never>;
|
|
23
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultKinesisClientConfigLayer = exports.makeDefaultKinesisClientInstanceConfig = exports.KinesisClientInstanceConfig = void 0;
|
|
4
|
-
const effect_1 = require("effect");
|
|
5
|
-
/**
|
|
6
|
-
* @since 1.0.0
|
|
7
|
-
* @category tags
|
|
8
|
-
*/
|
|
9
|
-
class KinesisClientInstanceConfig extends effect_1.Context.Tag("@effect-aws/client-kinesis/KinesisClientInstanceConfig")() {
|
|
10
|
-
}
|
|
11
|
-
exports.KinesisClientInstanceConfig = KinesisClientInstanceConfig;
|
|
12
|
-
/**
|
|
13
|
-
* @since 1.0.0
|
|
14
|
-
* @category constructors
|
|
15
|
-
*/
|
|
16
|
-
exports.makeDefaultKinesisClientInstanceConfig = effect_1.Effect.gen(function* (_) {
|
|
17
|
-
const runtime = yield* _(effect_1.Effect.runtime());
|
|
18
|
-
const runSync = effect_1.Runtime.runSync(runtime);
|
|
19
|
-
return {
|
|
20
|
-
logger: {
|
|
21
|
-
info(m) {
|
|
22
|
-
effect_1.Effect.logInfo(m).pipe(runSync);
|
|
23
|
-
},
|
|
24
|
-
warn(m) {
|
|
25
|
-
effect_1.Effect.logWarning(m).pipe(runSync);
|
|
26
|
-
},
|
|
27
|
-
error(m) {
|
|
28
|
-
effect_1.Effect.logError(m).pipe(runSync);
|
|
29
|
-
},
|
|
30
|
-
debug(m) {
|
|
31
|
-
effect_1.Effect.logDebug(m).pipe(runSync);
|
|
32
|
-
},
|
|
33
|
-
trace(m) {
|
|
34
|
-
effect_1.Effect.logTrace(m).pipe(runSync);
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
/**
|
|
40
|
-
* @since 1.0.0
|
|
41
|
-
* @category layers
|
|
42
|
-
*/
|
|
43
|
-
exports.DefaultKinesisClientConfigLayer = effect_1.Layer.effect(KinesisClientInstanceConfig, exports.makeDefaultKinesisClientInstanceConfig);
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiS2luZXNpc0NsaWVudEluc3RhbmNlQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0tpbmVzaXNDbGllbnRJbnN0YW5jZUNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFJQSxtQ0FBeUQ7QUFFekQ7OztHQUdHO0FBQ0gsTUFBYSwyQkFBNEIsU0FBUSxnQkFBTyxDQUFDLEdBQUcsQ0FDMUQsd0RBQXdELENBQ3pELEVBQW9EO0NBQUc7QUFGeEQsa0VBRXdEO0FBRXhEOzs7R0FHRztBQUNVLFFBQUEsc0NBQXNDLE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pO1xuICAgICAgICB9LFxuICAgICAgICB3YXJuKG0pIHtcbiAgICAgICAgICBFZmZlY3QubG9nV2FybmluZyhtKS5waXBlKHJ1blN5bmMpO1xuICAgICAgICB9LFxuICAgICAgICBlcnJvcihtKSB7XG4gICAgICAgICAgRWZmZWN0LmxvZ0Vycm9yKG0pLnBpcGUocnVuU3luYyk7XG4gICAgICAgIH0sXG4gICAgICAgIGRlYnVnKG0pIHtcbiAgICAgICAgICBFZmZlY3QubG9nRGVidWcobSkucGlwZShydW5TeW5jKTtcbiAgICAgICAgfSxcbiAgICAgICAgdHJhY2UobSkge1xuICAgICAgICAgIEVmZmVjdC5sb2dUcmFjZShtKS5waXBlKHJ1blN5bmMpO1xuICAgICAgICB9LFxuICAgICAgfSxcbiAgICB9O1xuICB9KTtcblxuLyoqXG4gKiBAc2luY2UgMS4wLjBcbiAqIEBjYXRlZ29yeSBsYXllcnNcbiAqL1xuZXhwb3J0IGNvbnN0IERlZmF1bHRLaW5lc2lzQ2xpZW50Q29uZmlnTGF5ZXIgPSBMYXllci5lZmZlY3QoXG4gIEtpbmVzaXNDbGllbnRJbnN0YW5jZUNvbmZpZyxcbiAgbWFrZURlZmF1bHRLaW5lc2lzQ2xpZW50SW5zdGFuY2VDb25maWcsXG4pO1xuIl19
|
package/lib/KinesisService.d.ts
DELETED
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { type KinesisClient, type KinesisClientConfig, type AddTagsToStreamCommandInput, type AddTagsToStreamCommandOutput, type CreateStreamCommandInput, type CreateStreamCommandOutput, type DecreaseStreamRetentionPeriodCommandInput, type DecreaseStreamRetentionPeriodCommandOutput, type DeleteResourcePolicyCommandInput, type DeleteResourcePolicyCommandOutput, type DeleteStreamCommandInput, type DeleteStreamCommandOutput, type DeregisterStreamConsumerCommandInput, type DeregisterStreamConsumerCommandOutput, type DescribeLimitsCommandInput, type DescribeLimitsCommandOutput, type DescribeStreamCommandInput, type DescribeStreamCommandOutput, type DescribeStreamConsumerCommandInput, type DescribeStreamConsumerCommandOutput, type DescribeStreamSummaryCommandInput, type DescribeStreamSummaryCommandOutput, type DisableEnhancedMonitoringCommandInput, type DisableEnhancedMonitoringCommandOutput, type EnableEnhancedMonitoringCommandInput, type EnableEnhancedMonitoringCommandOutput, type GetRecordsCommandInput, type GetRecordsCommandOutput, type GetResourcePolicyCommandInput, type GetResourcePolicyCommandOutput, type GetShardIteratorCommandInput, type GetShardIteratorCommandOutput, type IncreaseStreamRetentionPeriodCommandInput, type IncreaseStreamRetentionPeriodCommandOutput, type ListShardsCommandInput, type ListShardsCommandOutput, type ListStreamConsumersCommandInput, type ListStreamConsumersCommandOutput, type ListStreamsCommandInput, type ListStreamsCommandOutput, type ListTagsForStreamCommandInput, type ListTagsForStreamCommandOutput, type MergeShardsCommandInput, type MergeShardsCommandOutput, type PutRecordCommandInput, type PutRecordCommandOutput, type PutRecordsCommandInput, type PutRecordsCommandOutput, type PutResourcePolicyCommandInput, type PutResourcePolicyCommandOutput, type RegisterStreamConsumerCommandInput, type RegisterStreamConsumerCommandOutput, type RemoveTagsFromStreamCommandInput, type RemoveTagsFromStreamCommandOutput, type SplitShardCommandInput, type SplitShardCommandOutput, type StartStreamEncryptionCommandInput, type StartStreamEncryptionCommandOutput, type StopStreamEncryptionCommandInput, type StopStreamEncryptionCommandOutput, type SubscribeToShardCommandInput, type SubscribeToShardCommandOutput, type UpdateShardCountCommandInput, type UpdateShardCountCommandOutput, type UpdateStreamModeCommandInput, type UpdateStreamModeCommandOutput } from "@aws-sdk/client-kinesis";
|
|
5
|
-
import { Effect, Layer } from "effect";
|
|
6
|
-
import { AccessDeniedError, ExpiredIteratorError, ExpiredNextTokenError, InvalidArgumentError, KMSAccessDeniedError, KMSDisabledError, KMSInvalidStateError, KMSNotFoundError, KMSOptInRequiredError, KMSThrottlingError, LimitExceededError, ProvisionedThroughputExceededError, ResourceInUseError, ResourceNotFoundError, ValidationError, SdkError } from "./Errors";
|
|
7
|
-
import { KinesisClientInstance } from "./KinesisClientInstance";
|
|
8
|
-
import { KinesisClientInstanceConfig } from "./KinesisClientInstanceConfig";
|
|
9
|
-
/**
|
|
10
|
-
* @since 1.0.0
|
|
11
|
-
*/
|
|
12
|
-
export interface HttpHandlerOptions {
|
|
13
|
-
/**
|
|
14
|
-
* The maximum time in milliseconds that the connection phase of a request
|
|
15
|
-
* may take before the connection attempt is abandoned.
|
|
16
|
-
*/
|
|
17
|
-
requestTimeout?: number;
|
|
18
|
-
}
|
|
19
|
-
interface KinesisService$ {
|
|
20
|
-
readonly _: unique symbol;
|
|
21
|
-
/**
|
|
22
|
-
* @see {@link AddTagsToStreamCommand}
|
|
23
|
-
*/
|
|
24
|
-
addTagsToStream(args: AddTagsToStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddTagsToStreamCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
25
|
-
/**
|
|
26
|
-
* @see {@link CreateStreamCommand}
|
|
27
|
-
*/
|
|
28
|
-
createStream(args: CreateStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateStreamCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError>;
|
|
29
|
-
/**
|
|
30
|
-
* @see {@link DecreaseStreamRetentionPeriodCommand}
|
|
31
|
-
*/
|
|
32
|
-
decreaseStreamRetentionPeriod(args: DecreaseStreamRetentionPeriodCommandInput, options?: HttpHandlerOptions): Effect.Effect<DecreaseStreamRetentionPeriodCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
33
|
-
/**
|
|
34
|
-
* @see {@link DeleteResourcePolicyCommand}
|
|
35
|
-
*/
|
|
36
|
-
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteResourcePolicyCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
37
|
-
/**
|
|
38
|
-
* @see {@link DeleteStreamCommand}
|
|
39
|
-
*/
|
|
40
|
-
deleteStream(args: DeleteStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteStreamCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
41
|
-
/**
|
|
42
|
-
* @see {@link DeregisterStreamConsumerCommand}
|
|
43
|
-
*/
|
|
44
|
-
deregisterStreamConsumer(args: DeregisterStreamConsumerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeregisterStreamConsumerCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError>;
|
|
45
|
-
/**
|
|
46
|
-
* @see {@link DescribeLimitsCommand}
|
|
47
|
-
*/
|
|
48
|
-
describeLimits(args: DescribeLimitsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeLimitsCommandOutput, SdkError | LimitExceededError>;
|
|
49
|
-
/**
|
|
50
|
-
* @see {@link DescribeStreamCommand}
|
|
51
|
-
*/
|
|
52
|
-
describeStream(args: DescribeStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeStreamCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError>;
|
|
53
|
-
/**
|
|
54
|
-
* @see {@link DescribeStreamConsumerCommand}
|
|
55
|
-
*/
|
|
56
|
-
describeStreamConsumer(args: DescribeStreamConsumerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeStreamConsumerCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError>;
|
|
57
|
-
/**
|
|
58
|
-
* @see {@link DescribeStreamSummaryCommand}
|
|
59
|
-
*/
|
|
60
|
-
describeStreamSummary(args: DescribeStreamSummaryCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeStreamSummaryCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError>;
|
|
61
|
-
/**
|
|
62
|
-
* @see {@link DisableEnhancedMonitoringCommand}
|
|
63
|
-
*/
|
|
64
|
-
disableEnhancedMonitoring(args: DisableEnhancedMonitoringCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisableEnhancedMonitoringCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
65
|
-
/**
|
|
66
|
-
* @see {@link EnableEnhancedMonitoringCommand}
|
|
67
|
-
*/
|
|
68
|
-
enableEnhancedMonitoring(args: EnableEnhancedMonitoringCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnableEnhancedMonitoringCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
69
|
-
/**
|
|
70
|
-
* @see {@link GetRecordsCommand}
|
|
71
|
-
*/
|
|
72
|
-
getRecords(args: GetRecordsCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetRecordsCommandOutput, SdkError | AccessDeniedError | ExpiredIteratorError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | ProvisionedThroughputExceededError | ResourceNotFoundError>;
|
|
73
|
-
/**
|
|
74
|
-
* @see {@link GetResourcePolicyCommand}
|
|
75
|
-
*/
|
|
76
|
-
getResourcePolicy(args: GetResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetResourcePolicyCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
77
|
-
/**
|
|
78
|
-
* @see {@link GetShardIteratorCommand}
|
|
79
|
-
*/
|
|
80
|
-
getShardIterator(args: GetShardIteratorCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetShardIteratorCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | ProvisionedThroughputExceededError | ResourceNotFoundError>;
|
|
81
|
-
/**
|
|
82
|
-
* @see {@link IncreaseStreamRetentionPeriodCommand}
|
|
83
|
-
*/
|
|
84
|
-
increaseStreamRetentionPeriod(args: IncreaseStreamRetentionPeriodCommandInput, options?: HttpHandlerOptions): Effect.Effect<IncreaseStreamRetentionPeriodCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
85
|
-
/**
|
|
86
|
-
* @see {@link ListShardsCommand}
|
|
87
|
-
*/
|
|
88
|
-
listShards(args: ListShardsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListShardsCommandOutput, SdkError | AccessDeniedError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
89
|
-
/**
|
|
90
|
-
* @see {@link ListStreamConsumersCommand}
|
|
91
|
-
*/
|
|
92
|
-
listStreamConsumers(args: ListStreamConsumersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListStreamConsumersCommandOutput, SdkError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
93
|
-
/**
|
|
94
|
-
* @see {@link ListStreamsCommand}
|
|
95
|
-
*/
|
|
96
|
-
listStreams(args: ListStreamsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListStreamsCommandOutput, SdkError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError>;
|
|
97
|
-
/**
|
|
98
|
-
* @see {@link ListTagsForStreamCommand}
|
|
99
|
-
*/
|
|
100
|
-
listTagsForStream(args: ListTagsForStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForStreamCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError>;
|
|
101
|
-
/**
|
|
102
|
-
* @see {@link MergeShardsCommand}
|
|
103
|
-
*/
|
|
104
|
-
mergeShards(args: MergeShardsCommandInput, options?: HttpHandlerOptions): Effect.Effect<MergeShardsCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | ValidationError>;
|
|
105
|
-
/**
|
|
106
|
-
* @see {@link PutRecordCommand}
|
|
107
|
-
*/
|
|
108
|
-
putRecord(args: PutRecordCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutRecordCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | ProvisionedThroughputExceededError | ResourceNotFoundError>;
|
|
109
|
-
/**
|
|
110
|
-
* @see {@link PutRecordsCommand}
|
|
111
|
-
*/
|
|
112
|
-
putRecords(args: PutRecordsCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutRecordsCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | ProvisionedThroughputExceededError | ResourceNotFoundError>;
|
|
113
|
-
/**
|
|
114
|
-
* @see {@link PutResourcePolicyCommand}
|
|
115
|
-
*/
|
|
116
|
-
putResourcePolicy(args: PutResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutResourcePolicyCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
117
|
-
/**
|
|
118
|
-
* @see {@link RegisterStreamConsumerCommand}
|
|
119
|
-
*/
|
|
120
|
-
registerStreamConsumer(args: RegisterStreamConsumerCommandInput, options?: HttpHandlerOptions): Effect.Effect<RegisterStreamConsumerCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
121
|
-
/**
|
|
122
|
-
* @see {@link RemoveTagsFromStreamCommand}
|
|
123
|
-
*/
|
|
124
|
-
removeTagsFromStream(args: RemoveTagsFromStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemoveTagsFromStreamCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
125
|
-
/**
|
|
126
|
-
* @see {@link SplitShardCommand}
|
|
127
|
-
*/
|
|
128
|
-
splitShard(args: SplitShardCommandInput, options?: HttpHandlerOptions): Effect.Effect<SplitShardCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | ValidationError>;
|
|
129
|
-
/**
|
|
130
|
-
* @see {@link StartStreamEncryptionCommand}
|
|
131
|
-
*/
|
|
132
|
-
startStreamEncryption(args: StartStreamEncryptionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartStreamEncryptionCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
133
|
-
/**
|
|
134
|
-
* @see {@link StopStreamEncryptionCommand}
|
|
135
|
-
*/
|
|
136
|
-
stopStreamEncryption(args: StopStreamEncryptionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StopStreamEncryptionCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
137
|
-
/**
|
|
138
|
-
* @see {@link SubscribeToShardCommand}
|
|
139
|
-
*/
|
|
140
|
-
subscribeToShard(args: SubscribeToShardCommandInput, options?: HttpHandlerOptions): Effect.Effect<SubscribeToShardCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
141
|
-
/**
|
|
142
|
-
* @see {@link UpdateShardCountCommand}
|
|
143
|
-
*/
|
|
144
|
-
updateShardCount(args: UpdateShardCountCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateShardCountCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | ValidationError>;
|
|
145
|
-
/**
|
|
146
|
-
* @see {@link UpdateStreamModeCommand}
|
|
147
|
-
*/
|
|
148
|
-
updateStreamMode(args: UpdateStreamModeCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateStreamModeCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* @since 1.0.0
|
|
152
|
-
* @category constructors
|
|
153
|
-
*/
|
|
154
|
-
export declare const makeKinesisService: Effect.Effect<KinesisService$, never, KinesisClientInstance>;
|
|
155
|
-
declare const KinesisService_base: import("effect/Context").TagClass<KinesisService, "@effect-aws/client-kinesis/KinesisService", KinesisService$> & {
|
|
156
|
-
readonly _: Effect.Effect<KinesisService$["_"], never, KinesisService>;
|
|
157
|
-
addTagsToStream: (args: AddTagsToStreamCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AddTagsToStreamCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
158
|
-
createStream: (args: CreateStreamCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateStreamCommandOutput, InvalidArgumentError | LimitExceededError | ResourceInUseError | SdkError, KinesisService>;
|
|
159
|
-
decreaseStreamRetentionPeriod: (args: DecreaseStreamRetentionPeriodCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DecreaseStreamRetentionPeriodCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
160
|
-
deleteResourcePolicy: (args: DeleteResourcePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteResourcePolicyCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
161
|
-
deleteStream: (args: DeleteStreamCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteStreamCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
162
|
-
deregisterStreamConsumer: (args: DeregisterStreamConsumerCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeregisterStreamConsumerCommandOutput, InvalidArgumentError | LimitExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
163
|
-
describeLimits: (args: DescribeLimitsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeLimitsCommandOutput, LimitExceededError | SdkError, KinesisService>;
|
|
164
|
-
describeStream: (args: DescribeStreamCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeStreamCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
165
|
-
describeStreamConsumer: (args: DescribeStreamConsumerCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeStreamConsumerCommandOutput, InvalidArgumentError | LimitExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
166
|
-
describeStreamSummary: (args: DescribeStreamSummaryCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeStreamSummaryCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
167
|
-
disableEnhancedMonitoring: (args: DisableEnhancedMonitoringCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DisableEnhancedMonitoringCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
168
|
-
enableEnhancedMonitoring: (args: EnableEnhancedMonitoringCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<EnableEnhancedMonitoringCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
169
|
-
getRecords: (args: GetRecordsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetRecordsCommandOutput, AccessDeniedError | ExpiredIteratorError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | ProvisionedThroughputExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
170
|
-
getResourcePolicy: (args: GetResourcePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetResourcePolicyCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
171
|
-
getShardIterator: (args: GetShardIteratorCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetShardIteratorCommandOutput, AccessDeniedError | InvalidArgumentError | ProvisionedThroughputExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
172
|
-
increaseStreamRetentionPeriod: (args: IncreaseStreamRetentionPeriodCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<IncreaseStreamRetentionPeriodCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
173
|
-
listShards: (args: ListShardsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListShardsCommandOutput, AccessDeniedError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
174
|
-
listStreamConsumers: (args: ListStreamConsumersCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListStreamConsumersCommandOutput, ExpiredNextTokenError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
175
|
-
listStreams: (args: ListStreamsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListStreamsCommandOutput, ExpiredNextTokenError | InvalidArgumentError | LimitExceededError | SdkError, KinesisService>;
|
|
176
|
-
listTagsForStream: (args: ListTagsForStreamCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListTagsForStreamCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
177
|
-
mergeShards: (args: MergeShardsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<MergeShardsCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | ValidationError | SdkError, KinesisService>;
|
|
178
|
-
putRecord: (args: PutRecordCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutRecordCommandOutput, AccessDeniedError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | ProvisionedThroughputExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
179
|
-
putRecords: (args: PutRecordsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutRecordsCommandOutput, AccessDeniedError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | ProvisionedThroughputExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
180
|
-
putResourcePolicy: (args: PutResourcePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutResourcePolicyCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
181
|
-
registerStreamConsumer: (args: RegisterStreamConsumerCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<RegisterStreamConsumerCommandOutput, InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
182
|
-
removeTagsFromStream: (args: RemoveTagsFromStreamCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<RemoveTagsFromStreamCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
183
|
-
splitShard: (args: SplitShardCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<SplitShardCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | ValidationError | SdkError, KinesisService>;
|
|
184
|
-
startStreamEncryption: (args: StartStreamEncryptionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<StartStreamEncryptionCommandOutput, AccessDeniedError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
185
|
-
stopStreamEncryption: (args: StopStreamEncryptionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<StopStreamEncryptionCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
186
|
-
subscribeToShard: (args: SubscribeToShardCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<SubscribeToShardCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
187
|
-
updateShardCount: (args: UpdateShardCountCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateShardCountCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | ValidationError | SdkError, KinesisService>;
|
|
188
|
-
updateStreamMode: (args: UpdateStreamModeCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateStreamModeCommandOutput, InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
189
|
-
} & {
|
|
190
|
-
use: <X>(body: (_: KinesisService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, R | KinesisService> : Effect.Effect<X, never, KinesisService>;
|
|
191
|
-
};
|
|
192
|
-
/**
|
|
193
|
-
* @since 1.0.0
|
|
194
|
-
* @category models
|
|
195
|
-
*/
|
|
196
|
-
export declare class KinesisService extends KinesisService_base {
|
|
197
|
-
static readonly defaultLayer: Layer.Layer<KinesisService, never, never>;
|
|
198
|
-
static readonly layer: (config: KinesisClientConfig) => Layer.Layer<KinesisService, never, never>;
|
|
199
|
-
static readonly baseLayer: (evaluate: (defaultConfig: KinesisClientConfig) => KinesisClient) => Layer.Layer<KinesisService, never, never>;
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* @since 1.0.0
|
|
203
|
-
* @category models
|
|
204
|
-
* @alias KinesisService
|
|
205
|
-
*/
|
|
206
|
-
export declare const Kinesis: typeof KinesisService;
|
|
207
|
-
/**
|
|
208
|
-
* @since 1.0.0
|
|
209
|
-
* @category layers
|
|
210
|
-
* @deprecated use Kinesis.baseLayer instead
|
|
211
|
-
*/
|
|
212
|
-
export declare const BaseKinesisServiceLayer: Layer.Layer<KinesisService, never, KinesisClientInstance>;
|
|
213
|
-
/**
|
|
214
|
-
* @since 1.0.0
|
|
215
|
-
* @category layers
|
|
216
|
-
* @deprecated use Kinesis.layer instead
|
|
217
|
-
*/
|
|
218
|
-
export declare const KinesisServiceLayer: Layer.Layer<KinesisService, never, KinesisClientInstanceConfig>;
|
|
219
|
-
/**
|
|
220
|
-
* @since 1.0.0
|
|
221
|
-
* @category layers
|
|
222
|
-
* @deprecated use Kinesis.defaultLayer instead
|
|
223
|
-
*/
|
|
224
|
-
export declare const DefaultKinesisServiceLayer: Layer.Layer<KinesisService, never, never>;
|
|
225
|
-
export {};
|