@effect-aws/client-kinesis 1.1.0 → 1.9.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/Errors/package.json +6 -0
- package/KinesisClientInstance/package.json +6 -0
- package/KinesisService/package.json +6 -0
- package/KinesisServiceConfig/package.json +6 -0
- package/LICENSE +1 -1
- 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/{lib → dist/cjs}/KinesisService.d.ts +16 -38
- package/dist/cjs/KinesisService.d.ts.map +1 -0
- package/dist/cjs/KinesisService.js +88 -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 +203 -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 +61 -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 +697 -0
- package/src/KinesisServiceConfig.ts +52 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -19
- 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.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
package/LICENSE
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { AccessDeniedException, ExpiredIteratorException, ExpiredNextTokenException, InternalFailureException, InvalidArgumentException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, LimitExceededException, ProvisionedThroughputExceededException, ResourceInUseException, ResourceNotFoundException, ValidationException } from "@aws-sdk/client-kinesis";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
name: string;
|
|
6
|
-
}> = T & {
|
|
7
|
-
readonly _tag: T["name"];
|
|
8
|
-
};
|
|
2
|
+
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
|
+
export declare const AllServiceErrors: readonly ["AccessDeniedException", "ExpiredIteratorException", "ExpiredNextTokenException", "InternalFailureException", "InvalidArgumentException", "KMSAccessDeniedException", "KMSDisabledException", "KMSInvalidStateException", "KMSNotFoundException", "KMSOptInRequired", "KMSThrottlingException", "LimitExceededException", "ProvisionedThroughputExceededException", "ResourceInUseException", "ResourceNotFoundException", "ValidationException"];
|
|
9
5
|
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
10
6
|
export type ExpiredIteratorError = TaggedException<ExpiredIteratorException>;
|
|
11
7
|
export type ExpiredNextTokenError = TaggedException<ExpiredNextTokenException>;
|
|
@@ -22,7 +18,6 @@ export type ProvisionedThroughputExceededError = TaggedException<ProvisionedThro
|
|
|
22
18
|
export type ResourceInUseError = TaggedException<ResourceInUseException>;
|
|
23
19
|
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
24
20
|
export type ValidationError = TaggedException<ValidationException>;
|
|
25
|
-
export type SdkError =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
|
|
21
|
+
export type SdkError = CommonSdkError;
|
|
22
|
+
export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
|
|
23
|
+
//# 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,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,sCAAsC,EACtC,sBAAsB,EACtB,yBAAyB,EACzB,mB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AAC,CAAC;AAEnE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
"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 = commons_1.SdkError;
|
|
24
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAmBA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,0BAA0B;IAC1B,2BAA2B;IAC3B,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,sBAAsB;IACtB,0BAA0B;IAC1B,sBAAsB;IACtB,kBAAkB;IAClB,wBAAwB;IACxB,wBAAwB;IACxB,wCAAwC;IACxC,wBAAwB;IACxB,2BAA2B;IAC3B,qBAAqB;CACb,CAAC;AAoBE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { KinesisClient } from "@aws-sdk/client-kinesis";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
declare const KinesisClientInstance_base: Context.TagClass<KinesisClientInstance, "@effect-aws/client-kinesis/KinesisClientInstance", KinesisClient>;
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export declare class KinesisClientInstance extends KinesisClientInstance_base {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export declare const make: Effect.Effect<KinesisClient, never, import("effect/Scope").Scope>;
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export declare const layer: Layer.Layer<KinesisClientInstance, never, never>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=KinesisClientInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KinesisClientInstance.d.ts","sourceRoot":"","sources":["../../src/KinesisClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,0BAEF;CAAG;AAE5C;;;GAGG;AACH,eAAO,MAAM,IAAI,mEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,kDAA4C,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.layer = exports.make = exports.KinesisClientInstance = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_kinesis_1 = require("@aws-sdk/client-kinesis");
|
|
31
|
+
const effect_1 = require("effect");
|
|
32
|
+
const KinesisServiceConfig = __importStar(require("./KinesisServiceConfig.js"));
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category tags
|
|
36
|
+
*/
|
|
37
|
+
class KinesisClientInstance extends effect_1.Context.Tag("@effect-aws/client-kinesis/KinesisClientInstance")() {
|
|
38
|
+
}
|
|
39
|
+
exports.KinesisClientInstance = KinesisClientInstance;
|
|
40
|
+
/**
|
|
41
|
+
* @since 1.0.0
|
|
42
|
+
* @category constructors
|
|
43
|
+
*/
|
|
44
|
+
exports.make = effect_1.Effect.flatMap(KinesisServiceConfig.toKinesisClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_kinesis_1.KinesisClient(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
|
|
45
|
+
/**
|
|
46
|
+
* @since 1.0.0
|
|
47
|
+
* @category layers
|
|
48
|
+
*/
|
|
49
|
+
exports.layer = effect_1.Layer.scoped(KinesisClientInstance, exports.make);
|
|
50
|
+
//# sourceMappingURL=KinesisClientInstance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KinesisClientInstance.js","sourceRoot":"","sources":["../../src/KinesisClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4DAAwD;AACxD,mCAAgD;AAChD,gFAAkE;AAElE;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,gBAAO,CAAC,GAAG,CACpD,kDAAkD,CACnD,EAAwC;CAAG;AAF5C,sDAE4C;AAE5C;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,oBAAoB,CAAC,qBAAqB,EAC1C,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,8BAAa,CAAC,MAAM,CAAC,CAAC,EAC5C,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,qBAAqB,EAAE,YAAI,CAAC,CAAC"}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import { type
|
|
4
|
+
import { 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 KinesisClient, type KinesisClientConfig, 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 type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
5
6
|
import { Effect, Layer } from "effect";
|
|
6
|
-
import { AccessDeniedError, ExpiredIteratorError, ExpiredNextTokenError, InvalidArgumentError, KMSAccessDeniedError, KMSDisabledError, KMSInvalidStateError, KMSNotFoundError, KMSOptInRequiredError, KMSThrottlingError, LimitExceededError, ProvisionedThroughputExceededError, ResourceInUseError, ResourceNotFoundError, ValidationError
|
|
7
|
-
import
|
|
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
|
-
}
|
|
7
|
+
import type { AccessDeniedError, ExpiredIteratorError, ExpiredNextTokenError, InvalidArgumentError, KMSAccessDeniedError, KMSDisabledError, KMSInvalidStateError, KMSNotFoundError, KMSOptInRequiredError, KMSThrottlingError, LimitExceededError, ProvisionedThroughputExceededError, ResourceInUseError, ResourceNotFoundError, ValidationError } from "./Errors.js";
|
|
8
|
+
import * as Instance from "./KinesisClientInstance.js";
|
|
19
9
|
interface KinesisService$ {
|
|
20
10
|
readonly _: unique symbol;
|
|
21
11
|
/**
|
|
@@ -151,7 +141,7 @@ interface KinesisService$ {
|
|
|
151
141
|
* @since 1.0.0
|
|
152
142
|
* @category constructors
|
|
153
143
|
*/
|
|
154
|
-
export declare const makeKinesisService: Effect.Effect<KinesisService$, never, KinesisClientInstance>;
|
|
144
|
+
export declare const makeKinesisService: Effect.Effect<KinesisService$, never, Instance.KinesisClientInstance>;
|
|
155
145
|
declare const KinesisService_base: import("effect/Context").TagClass<KinesisService, "@effect-aws/client-kinesis/KinesisService", KinesisService$> & {
|
|
156
146
|
readonly _: Effect.Effect<KinesisService$["_"], never, KinesisService>;
|
|
157
147
|
addTagsToStream: (args: AddTagsToStreamCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AddTagsToStreamCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
@@ -187,7 +177,7 @@ declare const KinesisService_base: import("effect/Context").TagClass<KinesisServ
|
|
|
187
177
|
updateShardCount: (args: UpdateShardCountCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateShardCountCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | ValidationError | SdkError, KinesisService>;
|
|
188
178
|
updateStreamMode: (args: UpdateStreamModeCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateStreamModeCommandOutput, InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
189
179
|
} & {
|
|
190
|
-
use: <X>(body: (_: KinesisService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E,
|
|
180
|
+
use: <X>(body: (_: KinesisService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, KinesisService | R> : Effect.Effect<X, never, KinesisService>;
|
|
191
181
|
};
|
|
192
182
|
/**
|
|
193
183
|
* @since 1.0.0
|
|
@@ -195,31 +185,19 @@ declare const KinesisService_base: import("effect/Context").TagClass<KinesisServ
|
|
|
195
185
|
*/
|
|
196
186
|
export declare class KinesisService extends KinesisService_base {
|
|
197
187
|
static readonly defaultLayer: Layer.Layer<KinesisService, never, never>;
|
|
198
|
-
static readonly layer: (config:
|
|
188
|
+
static readonly layer: (config: KinesisService.Config) => Layer.Layer<KinesisService, never, never>;
|
|
199
189
|
static readonly baseLayer: (evaluate: (defaultConfig: KinesisClientConfig) => KinesisClient) => Layer.Layer<KinesisService, never, never>;
|
|
200
190
|
}
|
|
201
191
|
/**
|
|
202
192
|
* @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
193
|
*/
|
|
212
|
-
export declare
|
|
213
|
-
/**
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
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>;
|
|
194
|
+
export declare namespace KinesisService {
|
|
195
|
+
/**
|
|
196
|
+
* @since 1.0.0
|
|
197
|
+
*/
|
|
198
|
+
interface Config extends Omit<KinesisClientConfig, "logger"> {
|
|
199
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
225
202
|
export {};
|
|
203
|
+
//# sourceMappingURL=KinesisService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KinesisService.d.ts","sourceRoot":"","sources":["../../src/KinesisService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAE/C,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,E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,GAClB,kBAAkB,GAClB,qBAAqB,GACrB,eAAe,CAClB,CAAC;IAEF;;OAEG;IACH,gBAAgB,CACd,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,6BAA6B,EAC7B,QAAQ,GAAG,oBAAoB,GAAG,kBAAkB,GAAG,kBAAkB,GAAG,qBAAqB,CAClG,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uEAI7B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;;GAGG;AACH,qBAAa,cAAe,SAAQ,mBAGjC;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,4CAA8E;IAC1G,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,eAAe,MAAM,+CAIlD;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,mBAAmB,KAAK,aAAa,+CAS7D;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC;QACjE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.KinesisService = exports.makeKinesisService = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_kinesis_1 = require("@aws-sdk/client-kinesis");
|
|
31
|
+
const commons_1 = require("@effect-aws/commons");
|
|
32
|
+
const effect_1 = require("effect");
|
|
33
|
+
const Errors_js_1 = require("./Errors.js");
|
|
34
|
+
const Instance = __importStar(require("./KinesisClientInstance.js"));
|
|
35
|
+
const KinesisServiceConfig = __importStar(require("./KinesisServiceConfig.js"));
|
|
36
|
+
const commands = {
|
|
37
|
+
AddTagsToStreamCommand: client_kinesis_1.AddTagsToStreamCommand,
|
|
38
|
+
CreateStreamCommand: client_kinesis_1.CreateStreamCommand,
|
|
39
|
+
DecreaseStreamRetentionPeriodCommand: client_kinesis_1.DecreaseStreamRetentionPeriodCommand,
|
|
40
|
+
DeleteResourcePolicyCommand: client_kinesis_1.DeleteResourcePolicyCommand,
|
|
41
|
+
DeleteStreamCommand: client_kinesis_1.DeleteStreamCommand,
|
|
42
|
+
DeregisterStreamConsumerCommand: client_kinesis_1.DeregisterStreamConsumerCommand,
|
|
43
|
+
DescribeLimitsCommand: client_kinesis_1.DescribeLimitsCommand,
|
|
44
|
+
DescribeStreamCommand: client_kinesis_1.DescribeStreamCommand,
|
|
45
|
+
DescribeStreamConsumerCommand: client_kinesis_1.DescribeStreamConsumerCommand,
|
|
46
|
+
DescribeStreamSummaryCommand: client_kinesis_1.DescribeStreamSummaryCommand,
|
|
47
|
+
DisableEnhancedMonitoringCommand: client_kinesis_1.DisableEnhancedMonitoringCommand,
|
|
48
|
+
EnableEnhancedMonitoringCommand: client_kinesis_1.EnableEnhancedMonitoringCommand,
|
|
49
|
+
GetRecordsCommand: client_kinesis_1.GetRecordsCommand,
|
|
50
|
+
GetResourcePolicyCommand: client_kinesis_1.GetResourcePolicyCommand,
|
|
51
|
+
GetShardIteratorCommand: client_kinesis_1.GetShardIteratorCommand,
|
|
52
|
+
IncreaseStreamRetentionPeriodCommand: client_kinesis_1.IncreaseStreamRetentionPeriodCommand,
|
|
53
|
+
ListShardsCommand: client_kinesis_1.ListShardsCommand,
|
|
54
|
+
ListStreamConsumersCommand: client_kinesis_1.ListStreamConsumersCommand,
|
|
55
|
+
ListStreamsCommand: client_kinesis_1.ListStreamsCommand,
|
|
56
|
+
ListTagsForStreamCommand: client_kinesis_1.ListTagsForStreamCommand,
|
|
57
|
+
MergeShardsCommand: client_kinesis_1.MergeShardsCommand,
|
|
58
|
+
PutRecordCommand: client_kinesis_1.PutRecordCommand,
|
|
59
|
+
PutRecordsCommand: client_kinesis_1.PutRecordsCommand,
|
|
60
|
+
PutResourcePolicyCommand: client_kinesis_1.PutResourcePolicyCommand,
|
|
61
|
+
RegisterStreamConsumerCommand: client_kinesis_1.RegisterStreamConsumerCommand,
|
|
62
|
+
RemoveTagsFromStreamCommand: client_kinesis_1.RemoveTagsFromStreamCommand,
|
|
63
|
+
SplitShardCommand: client_kinesis_1.SplitShardCommand,
|
|
64
|
+
StartStreamEncryptionCommand: client_kinesis_1.StartStreamEncryptionCommand,
|
|
65
|
+
StopStreamEncryptionCommand: client_kinesis_1.StopStreamEncryptionCommand,
|
|
66
|
+
SubscribeToShardCommand: client_kinesis_1.SubscribeToShardCommand,
|
|
67
|
+
UpdateShardCountCommand: client_kinesis_1.UpdateShardCountCommand,
|
|
68
|
+
UpdateStreamModeCommand: client_kinesis_1.UpdateStreamModeCommand,
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* @since 1.0.0
|
|
72
|
+
* @category constructors
|
|
73
|
+
*/
|
|
74
|
+
exports.makeKinesisService = effect_1.Effect.gen(function* () {
|
|
75
|
+
const client = yield* Instance.KinesisClientInstance;
|
|
76
|
+
return commons_1.Service.fromClientAndCommands(client, commands, Errors_js_1.AllServiceErrors);
|
|
77
|
+
});
|
|
78
|
+
/**
|
|
79
|
+
* @since 1.0.0
|
|
80
|
+
* @category models
|
|
81
|
+
*/
|
|
82
|
+
class KinesisService extends effect_1.Effect.Tag("@effect-aws/client-kinesis/KinesisService")() {
|
|
83
|
+
static defaultLayer = effect_1.Layer.effect(this, exports.makeKinesisService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
84
|
+
static layer = (config) => effect_1.Layer.effect(this, exports.makeKinesisService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(KinesisServiceConfig.setKinesisServiceConfig(config)));
|
|
85
|
+
static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeKinesisService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.KinesisClientInstance, effect_1.Effect.map(KinesisServiceConfig.toKinesisClientConfig, evaluate))));
|
|
86
|
+
}
|
|
87
|
+
exports.KinesisService = KinesisService;
|
|
88
|
+
//# sourceMappingURL=KinesisService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KinesisService.js","sourceRoot":"","sources":["../../src/KinesisService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4DAmGiC;AAEjC,iDAA8C;AAC9C,mCAAuC;AAkBvC,2CAA+C;AAC/C,qEAAuD;AACv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BAAgB,CAAC,CAAC;AAC5F,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,cAAe,SAAQ,eAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC,EAGxF;IACD,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAAkB,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1G,MAAM,CAAU,KAAK,GAAG,CAAC,MAA6B,EAAE,EAAE,CACxD,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAAkB,CAAC,CAAC,IAAI,CACzC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC,CACpE,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAA+D,EAC/D,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAAkB,CAAC,CAAC,IAAI,CACzC,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,qBAAqB,EAC9B,eAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CACjE,CACF,CACF,CAAC;;AApBN,wCAqBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import type { KinesisClientConfig } from "@aws-sdk/client-kinesis";
|
|
5
|
+
import { Effect, Layer } from "effect";
|
|
6
|
+
import type { KinesisService } from "./KinesisService.js";
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category kinesis service config
|
|
10
|
+
*/
|
|
11
|
+
export declare const withKinesisServiceConfig: {
|
|
12
|
+
(config: KinesisService.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: KinesisService.Config): Effect.Effect<A, E, R>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
* @category kinesis service config
|
|
18
|
+
*/
|
|
19
|
+
export declare const setKinesisServiceConfig: (config: KinesisService.Config) => Layer.Layer<never, never, never>;
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category adapters
|
|
23
|
+
*/
|
|
24
|
+
export declare const toKinesisClientConfig: Effect.Effect<KinesisClientConfig>;
|
|
25
|
+
//# sourceMappingURL=KinesisServiceConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KinesisServiceConfig.d.ts","sourceRoot":"","sources":["../../src/KinesisServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAW1D;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE;IACrC,CAAC,MAAM,EAAE,cAAc,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;IACrG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKlG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,WAAY,eAAe,MAAM,qCACX,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAQnE,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKinesisClientConfig = exports.setKinesisServiceConfig = exports.withKinesisServiceConfig = 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 kinesis service config
|
|
11
|
+
*/
|
|
12
|
+
const currentKinesisServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-kinesis/currentKinesisServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category kinesis service config
|
|
16
|
+
*/
|
|
17
|
+
exports.withKinesisServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentKinesisServiceConfig, config));
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category kinesis service config
|
|
21
|
+
*/
|
|
22
|
+
const setKinesisServiceConfig = (config) => effect_1.Layer.locallyScoped(currentKinesisServiceConfig, config);
|
|
23
|
+
exports.setKinesisServiceConfig = setKinesisServiceConfig;
|
|
24
|
+
/**
|
|
25
|
+
* @since 1.0.0
|
|
26
|
+
* @category adapters
|
|
27
|
+
*/
|
|
28
|
+
exports.toKinesisClientConfig = effect_1.Effect.gen(function* () {
|
|
29
|
+
const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentKinesisServiceConfig);
|
|
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=KinesisServiceConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KinesisServiceConfig.js","sourceRoot":"","sources":["../../src/KinesisServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,2BAA2B,GAAG,IAAA,yBAAW,EAC7C,wDAAwD,EACxD,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAAwB,EAAE,CAAC,CACrD,CAAC;AAEF;;;GAGG;AACU,QAAA,wBAAwB,GAGjC,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA6B,EAA0B,EAAE,CACjG,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,2BAA2B,EAAE,MAAM,CAAC,CAC9D,CAAC;AAEF;;;GAGG;AACI,MAAM,uBAAuB,GAAG,CAAC,MAA6B,EAAE,EAAE,CACvE,cAAK,CAAC,aAAa,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC;AAD9C,QAAA,uBAAuB,2BACuB;AAE3D;;;GAGG;AACU,QAAA,qBAAqB,GAAuC,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC3F,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;IAE9F,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,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { KinesisService } from "./KinesisService.js";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export * from "./Errors.js";
|
|
9
|
+
/**
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
export * as KinesisClientInstance from "./KinesisClientInstance.js";
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*/
|
|
16
|
+
export * as KinesisServiceConfig from "./KinesisServiceConfig.js";
|
|
17
|
+
/**
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
export * from "./KinesisService.js";
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
* @category exports
|
|
24
|
+
* @alias KinesisService
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace Kinesis {
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
* @alias KinesisService.Config
|
|
30
|
+
*/
|
|
31
|
+
type Config = KinesisService.Config;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category exports
|
|
36
|
+
* @alias KinesisService
|
|
37
|
+
*/
|
|
38
|
+
export declare const Kinesis: typeof KinesisService;
|
|
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,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAC;AAEpE;;GAEG;AACH,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAElE;;GAEG;AACH,cAAc,qBAAqB,CAAC;AAEpC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B;;;OAGG;IACH,KAAY,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC;CAC5C;AAED;;;;GAIG;AACH,eAAO,MAAM,OAAO,uBAAiB,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.Kinesis = exports.KinesisServiceConfig = exports.KinesisClientInstance = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* @since 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
const KinesisService_js_1 = require("./KinesisService.js");
|
|
34
|
+
/**
|
|
35
|
+
* @since 1.0.0
|
|
36
|
+
*/
|
|
37
|
+
__exportStar(require("./Errors.js"), exports);
|
|
38
|
+
/**
|
|
39
|
+
* @since 1.0.0
|
|
40
|
+
*/
|
|
41
|
+
exports.KinesisClientInstance = __importStar(require("./KinesisClientInstance.js"));
|
|
42
|
+
/**
|
|
43
|
+
* @since 1.0.0
|
|
44
|
+
*/
|
|
45
|
+
exports.KinesisServiceConfig = __importStar(require("./KinesisServiceConfig.js"));
|
|
46
|
+
/**
|
|
47
|
+
* @since 1.0.0
|
|
48
|
+
*/
|
|
49
|
+
__exportStar(require("./KinesisService.js"), exports);
|
|
50
|
+
/**
|
|
51
|
+
* @since 1.0.0
|
|
52
|
+
* @category exports
|
|
53
|
+
* @alias KinesisService
|
|
54
|
+
*/
|
|
55
|
+
exports.Kinesis = KinesisService_js_1.KinesisService;
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,2DAAqD;AAErD;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,oFAAoE;AAEpE;;GAEG;AACH,kFAAkE;AAElE;;GAEG;AACH,sDAAoC;AAepC;;;;GAIG;AACU,QAAA,OAAO,GAAG,kCAAc,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AccessDeniedException, ExpiredIteratorException, ExpiredNextTokenException, InternalFailureException, InvalidArgumentException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, LimitExceededException, ProvisionedThroughputExceededException, ResourceInUseException, ResourceNotFoundException, ValidationException } from "@aws-sdk/client-kinesis";
|
|
2
|
+
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
|
+
export declare const AllServiceErrors: readonly ["AccessDeniedException", "ExpiredIteratorException", "ExpiredNextTokenException", "InternalFailureException", "InvalidArgumentException", "KMSAccessDeniedException", "KMSDisabledException", "KMSInvalidStateException", "KMSNotFoundException", "KMSOptInRequired", "KMSThrottlingException", "LimitExceededException", "ProvisionedThroughputExceededException", "ResourceInUseException", "ResourceNotFoundException", "ValidationException"];
|
|
5
|
+
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
6
|
+
export type ExpiredIteratorError = TaggedException<ExpiredIteratorException>;
|
|
7
|
+
export type ExpiredNextTokenError = TaggedException<ExpiredNextTokenException>;
|
|
8
|
+
export type InternalFailureError = TaggedException<InternalFailureException>;
|
|
9
|
+
export type InvalidArgumentError = TaggedException<InvalidArgumentException>;
|
|
10
|
+
export type KMSAccessDeniedError = TaggedException<KMSAccessDeniedException>;
|
|
11
|
+
export type KMSDisabledError = TaggedException<KMSDisabledException>;
|
|
12
|
+
export type KMSInvalidStateError = TaggedException<KMSInvalidStateException>;
|
|
13
|
+
export type KMSNotFoundError = TaggedException<KMSNotFoundException>;
|
|
14
|
+
export type KMSOptInRequiredError = TaggedException<KMSOptInRequired>;
|
|
15
|
+
export type KMSThrottlingError = TaggedException<KMSThrottlingException>;
|
|
16
|
+
export type LimitExceededError = TaggedException<LimitExceededException>;
|
|
17
|
+
export type ProvisionedThroughputExceededError = TaggedException<ProvisionedThroughputExceededException>;
|
|
18
|
+
export type ResourceInUseError = TaggedException<ResourceInUseException>;
|
|
19
|
+
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
20
|
+
export type ValidationError = TaggedException<ValidationException>;
|
|
21
|
+
export type SdkError = CommonSdkError;
|
|
22
|
+
export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
|
|
23
|
+
//# 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,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,sCAAsC,EACtC,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,6bAiBnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AACrE,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AACrE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,kCAAkC,GAAG,eAAe,CAAC,sCAAsC,CAAC,CAAC;AACzG,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAEnE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { KinesisClient } from "@aws-sdk/client-kinesis";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
declare const KinesisClientInstance_base: Context.TagClass<KinesisClientInstance, "@effect-aws/client-kinesis/KinesisClientInstance", KinesisClient>;
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export declare class KinesisClientInstance extends KinesisClientInstance_base {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export declare const make: Effect.Effect<KinesisClient, never, import("effect/Scope").Scope>;
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export declare const layer: Layer.Layer<KinesisClientInstance, never, never>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=KinesisClientInstance.d.ts.map
|