@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
|
@@ -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,mBAAmB,EACpB,M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EnE,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"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
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";
|
|
6
|
+
import { Effect, Layer } from "effect";
|
|
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";
|
|
9
|
+
interface KinesisService$ {
|
|
10
|
+
readonly _: unique symbol;
|
|
11
|
+
/**
|
|
12
|
+
* @see {@link AddTagsToStreamCommand}
|
|
13
|
+
*/
|
|
14
|
+
addTagsToStream(args: AddTagsToStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddTagsToStreamCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
15
|
+
/**
|
|
16
|
+
* @see {@link CreateStreamCommand}
|
|
17
|
+
*/
|
|
18
|
+
createStream(args: CreateStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateStreamCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError>;
|
|
19
|
+
/**
|
|
20
|
+
* @see {@link DecreaseStreamRetentionPeriodCommand}
|
|
21
|
+
*/
|
|
22
|
+
decreaseStreamRetentionPeriod(args: DecreaseStreamRetentionPeriodCommandInput, options?: HttpHandlerOptions): Effect.Effect<DecreaseStreamRetentionPeriodCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
23
|
+
/**
|
|
24
|
+
* @see {@link DeleteResourcePolicyCommand}
|
|
25
|
+
*/
|
|
26
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteResourcePolicyCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
27
|
+
/**
|
|
28
|
+
* @see {@link DeleteStreamCommand}
|
|
29
|
+
*/
|
|
30
|
+
deleteStream(args: DeleteStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteStreamCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
31
|
+
/**
|
|
32
|
+
* @see {@link DeregisterStreamConsumerCommand}
|
|
33
|
+
*/
|
|
34
|
+
deregisterStreamConsumer(args: DeregisterStreamConsumerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeregisterStreamConsumerCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError>;
|
|
35
|
+
/**
|
|
36
|
+
* @see {@link DescribeLimitsCommand}
|
|
37
|
+
*/
|
|
38
|
+
describeLimits(args: DescribeLimitsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeLimitsCommandOutput, SdkError | LimitExceededError>;
|
|
39
|
+
/**
|
|
40
|
+
* @see {@link DescribeStreamCommand}
|
|
41
|
+
*/
|
|
42
|
+
describeStream(args: DescribeStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeStreamCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError>;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link DescribeStreamConsumerCommand}
|
|
45
|
+
*/
|
|
46
|
+
describeStreamConsumer(args: DescribeStreamConsumerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeStreamConsumerCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError>;
|
|
47
|
+
/**
|
|
48
|
+
* @see {@link DescribeStreamSummaryCommand}
|
|
49
|
+
*/
|
|
50
|
+
describeStreamSummary(args: DescribeStreamSummaryCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeStreamSummaryCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError>;
|
|
51
|
+
/**
|
|
52
|
+
* @see {@link DisableEnhancedMonitoringCommand}
|
|
53
|
+
*/
|
|
54
|
+
disableEnhancedMonitoring(args: DisableEnhancedMonitoringCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisableEnhancedMonitoringCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link EnableEnhancedMonitoringCommand}
|
|
57
|
+
*/
|
|
58
|
+
enableEnhancedMonitoring(args: EnableEnhancedMonitoringCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnableEnhancedMonitoringCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
59
|
+
/**
|
|
60
|
+
* @see {@link GetRecordsCommand}
|
|
61
|
+
*/
|
|
62
|
+
getRecords(args: GetRecordsCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetRecordsCommandOutput, SdkError | AccessDeniedError | ExpiredIteratorError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | ProvisionedThroughputExceededError | ResourceNotFoundError>;
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link GetResourcePolicyCommand}
|
|
65
|
+
*/
|
|
66
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetResourcePolicyCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
67
|
+
/**
|
|
68
|
+
* @see {@link GetShardIteratorCommand}
|
|
69
|
+
*/
|
|
70
|
+
getShardIterator(args: GetShardIteratorCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetShardIteratorCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | ProvisionedThroughputExceededError | ResourceNotFoundError>;
|
|
71
|
+
/**
|
|
72
|
+
* @see {@link IncreaseStreamRetentionPeriodCommand}
|
|
73
|
+
*/
|
|
74
|
+
increaseStreamRetentionPeriod(args: IncreaseStreamRetentionPeriodCommandInput, options?: HttpHandlerOptions): Effect.Effect<IncreaseStreamRetentionPeriodCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link ListShardsCommand}
|
|
77
|
+
*/
|
|
78
|
+
listShards(args: ListShardsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListShardsCommandOutput, SdkError | AccessDeniedError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
79
|
+
/**
|
|
80
|
+
* @see {@link ListStreamConsumersCommand}
|
|
81
|
+
*/
|
|
82
|
+
listStreamConsumers(args: ListStreamConsumersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListStreamConsumersCommandOutput, SdkError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
83
|
+
/**
|
|
84
|
+
* @see {@link ListStreamsCommand}
|
|
85
|
+
*/
|
|
86
|
+
listStreams(args: ListStreamsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListStreamsCommandOutput, SdkError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError>;
|
|
87
|
+
/**
|
|
88
|
+
* @see {@link ListTagsForStreamCommand}
|
|
89
|
+
*/
|
|
90
|
+
listTagsForStream(args: ListTagsForStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForStreamCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError>;
|
|
91
|
+
/**
|
|
92
|
+
* @see {@link MergeShardsCommand}
|
|
93
|
+
*/
|
|
94
|
+
mergeShards(args: MergeShardsCommandInput, options?: HttpHandlerOptions): Effect.Effect<MergeShardsCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | ValidationError>;
|
|
95
|
+
/**
|
|
96
|
+
* @see {@link PutRecordCommand}
|
|
97
|
+
*/
|
|
98
|
+
putRecord(args: PutRecordCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutRecordCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | ProvisionedThroughputExceededError | ResourceNotFoundError>;
|
|
99
|
+
/**
|
|
100
|
+
* @see {@link PutRecordsCommand}
|
|
101
|
+
*/
|
|
102
|
+
putRecords(args: PutRecordsCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutRecordsCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | ProvisionedThroughputExceededError | ResourceNotFoundError>;
|
|
103
|
+
/**
|
|
104
|
+
* @see {@link PutResourcePolicyCommand}
|
|
105
|
+
*/
|
|
106
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutResourcePolicyCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
107
|
+
/**
|
|
108
|
+
* @see {@link RegisterStreamConsumerCommand}
|
|
109
|
+
*/
|
|
110
|
+
registerStreamConsumer(args: RegisterStreamConsumerCommandInput, options?: HttpHandlerOptions): Effect.Effect<RegisterStreamConsumerCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
111
|
+
/**
|
|
112
|
+
* @see {@link RemoveTagsFromStreamCommand}
|
|
113
|
+
*/
|
|
114
|
+
removeTagsFromStream(args: RemoveTagsFromStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemoveTagsFromStreamCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
115
|
+
/**
|
|
116
|
+
* @see {@link SplitShardCommand}
|
|
117
|
+
*/
|
|
118
|
+
splitShard(args: SplitShardCommandInput, options?: HttpHandlerOptions): Effect.Effect<SplitShardCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | ValidationError>;
|
|
119
|
+
/**
|
|
120
|
+
* @see {@link StartStreamEncryptionCommand}
|
|
121
|
+
*/
|
|
122
|
+
startStreamEncryption(args: StartStreamEncryptionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartStreamEncryptionCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
123
|
+
/**
|
|
124
|
+
* @see {@link StopStreamEncryptionCommand}
|
|
125
|
+
*/
|
|
126
|
+
stopStreamEncryption(args: StopStreamEncryptionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StopStreamEncryptionCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
127
|
+
/**
|
|
128
|
+
* @see {@link SubscribeToShardCommand}
|
|
129
|
+
*/
|
|
130
|
+
subscribeToShard(args: SubscribeToShardCommandInput, options?: HttpHandlerOptions): Effect.Effect<SubscribeToShardCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
131
|
+
/**
|
|
132
|
+
* @see {@link UpdateShardCountCommand}
|
|
133
|
+
*/
|
|
134
|
+
updateShardCount(args: UpdateShardCountCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateShardCountCommandOutput, SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | ValidationError>;
|
|
135
|
+
/**
|
|
136
|
+
* @see {@link UpdateStreamModeCommand}
|
|
137
|
+
*/
|
|
138
|
+
updateStreamMode(args: UpdateStreamModeCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateStreamModeCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @since 1.0.0
|
|
142
|
+
* @category constructors
|
|
143
|
+
*/
|
|
144
|
+
export declare const makeKinesisService: Effect.Effect<KinesisService$, never, Instance.KinesisClientInstance>;
|
|
145
|
+
declare const KinesisService_base: import("effect/Context").TagClass<KinesisService, "@effect-aws/client-kinesis/KinesisService", KinesisService$> & Effect.Tag.Proxy<KinesisService, KinesisService$> & {
|
|
146
|
+
use: <X>(body: (_: KinesisService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, KinesisService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, KinesisService> : Effect.Effect<X, never, KinesisService>;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* @since 1.0.0
|
|
150
|
+
* @category models
|
|
151
|
+
*/
|
|
152
|
+
export declare class KinesisService extends KinesisService_base {
|
|
153
|
+
static readonly defaultLayer: Layer.Layer<KinesisService, never, never>;
|
|
154
|
+
static readonly layer: (config: KinesisService.Config) => Layer.Layer<KinesisService, never, never>;
|
|
155
|
+
static readonly baseLayer: (evaluate: (defaultConfig: KinesisClientConfig) => KinesisClient) => Layer.Layer<KinesisService, never, never>;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @since 1.0.0
|
|
159
|
+
*/
|
|
160
|
+
export declare namespace KinesisService {
|
|
161
|
+
/**
|
|
162
|
+
* @since 1.0.0
|
|
163
|
+
*/
|
|
164
|
+
interface Config extends Omit<KinesisClientConfig, "logger"> {
|
|
165
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
export {};
|
|
169
|
+
//# 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,EAE9B,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAE1C,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EAExC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAE1C,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAC/C,KAAK,aAAa,EAClB,KAAK,mBAAmB,EAExB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,6BAA6B,EAClC,KAAK,8BA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I,CAAC,mBAAmB,EAAE,QAAQ,CAAC;QACjE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
|
@@ -0,0 +1,91 @@
|
|
|
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, {
|
|
77
|
+
errorTags: Errors_js_1.AllServiceErrors,
|
|
78
|
+
resolveClientConfig: KinesisServiceConfig.toKinesisClientConfig,
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* @since 1.0.0
|
|
83
|
+
* @category models
|
|
84
|
+
*/
|
|
85
|
+
class KinesisService extends effect_1.Effect.Tag("@effect-aws/client-kinesis/KinesisService")() {
|
|
86
|
+
static defaultLayer = effect_1.Layer.effect(this, exports.makeKinesisService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
87
|
+
static layer = (config) => effect_1.Layer.effect(this, exports.makeKinesisService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(KinesisServiceConfig.setKinesisServiceConfig(config)));
|
|
88
|
+
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))));
|
|
89
|
+
}
|
|
90
|
+
exports.KinesisService = KinesisService;
|
|
91
|
+
//# 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;AACvD,gFAAkE;AAElE,MAAM,QAAQ,GAAG;IACf,sBAAsB,EAAtB,uCAAsB;IACtB,mBAAmB,EAAnB,oCAAmB;IACnB,oCAAoC,EAApC,qDAAoC;IACpC,2BAA2B,EAA3B,4CAA2B;IAC3B,mBAAmB,EAAnB,oCAAmB;IACnB,+BAA+B,EAA/B,gDAA+B;IAC/B,qBAAqB,EAArB,sCAAqB;IACrB,qBAAqB,EAArB,sCAAqB;IACrB,6BAA6B,EAA7B,8CAA6B;IAC7B,4BAA4B,EAA5B,6CAA4B;IAC5B,gCAAgC,EAAhC,iDAAgC;IAChC,+BAA+B,EAA/B,gDAA+B;IAC/B,iBAAiB,EAAjB,kCAAiB;IACjB,wBAAwB,EAAxB,yCAAwB;IACxB,uBAAuB,EAAvB,wCAAuB;IACvB,oCAAoC,EAApC,qDAAoC;IACpC,iBAAiB,EAAjB,kCAAiB;IACjB,0BAA0B,EAA1B,2CAA0B;IAC1B,kBAAkB,EAAlB,mCAAkB;IAClB,wBAAwB,E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,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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|
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"}
|