@effect-aws/client-kinesis 1.2.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/{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 -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.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,203 @@
|
|
|
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$> & {
|
|
146
|
+
readonly _: Effect.Effect<KinesisService$["_"], never, KinesisService>;
|
|
147
|
+
addTagsToStream: (args: AddTagsToStreamCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AddTagsToStreamCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
148
|
+
createStream: (args: CreateStreamCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateStreamCommandOutput, InvalidArgumentError | LimitExceededError | ResourceInUseError | SdkError, KinesisService>;
|
|
149
|
+
decreaseStreamRetentionPeriod: (args: DecreaseStreamRetentionPeriodCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DecreaseStreamRetentionPeriodCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
150
|
+
deleteResourcePolicy: (args: DeleteResourcePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteResourcePolicyCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
151
|
+
deleteStream: (args: DeleteStreamCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteStreamCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
152
|
+
deregisterStreamConsumer: (args: DeregisterStreamConsumerCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeregisterStreamConsumerCommandOutput, InvalidArgumentError | LimitExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
153
|
+
describeLimits: (args: DescribeLimitsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeLimitsCommandOutput, LimitExceededError | SdkError, KinesisService>;
|
|
154
|
+
describeStream: (args: DescribeStreamCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeStreamCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
155
|
+
describeStreamConsumer: (args: DescribeStreamConsumerCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeStreamConsumerCommandOutput, InvalidArgumentError | LimitExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
156
|
+
describeStreamSummary: (args: DescribeStreamSummaryCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeStreamSummaryCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
157
|
+
disableEnhancedMonitoring: (args: DisableEnhancedMonitoringCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DisableEnhancedMonitoringCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
158
|
+
enableEnhancedMonitoring: (args: EnableEnhancedMonitoringCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<EnableEnhancedMonitoringCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
159
|
+
getRecords: (args: GetRecordsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetRecordsCommandOutput, AccessDeniedError | ExpiredIteratorError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | ProvisionedThroughputExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
160
|
+
getResourcePolicy: (args: GetResourcePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetResourcePolicyCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
161
|
+
getShardIterator: (args: GetShardIteratorCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetShardIteratorCommandOutput, AccessDeniedError | InvalidArgumentError | ProvisionedThroughputExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
162
|
+
increaseStreamRetentionPeriod: (args: IncreaseStreamRetentionPeriodCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<IncreaseStreamRetentionPeriodCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
163
|
+
listShards: (args: ListShardsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListShardsCommandOutput, AccessDeniedError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
164
|
+
listStreamConsumers: (args: ListStreamConsumersCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListStreamConsumersCommandOutput, ExpiredNextTokenError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
165
|
+
listStreams: (args: ListStreamsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListStreamsCommandOutput, ExpiredNextTokenError | InvalidArgumentError | LimitExceededError | SdkError, KinesisService>;
|
|
166
|
+
listTagsForStream: (args: ListTagsForStreamCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListTagsForStreamCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
167
|
+
mergeShards: (args: MergeShardsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<MergeShardsCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | ValidationError | SdkError, KinesisService>;
|
|
168
|
+
putRecord: (args: PutRecordCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutRecordCommandOutput, AccessDeniedError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | ProvisionedThroughputExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
169
|
+
putRecords: (args: PutRecordsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutRecordsCommandOutput, AccessDeniedError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | ProvisionedThroughputExceededError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
170
|
+
putResourcePolicy: (args: PutResourcePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutResourcePolicyCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
171
|
+
registerStreamConsumer: (args: RegisterStreamConsumerCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<RegisterStreamConsumerCommandOutput, InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
172
|
+
removeTagsFromStream: (args: RemoveTagsFromStreamCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<RemoveTagsFromStreamCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
173
|
+
splitShard: (args: SplitShardCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<SplitShardCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | ValidationError | SdkError, KinesisService>;
|
|
174
|
+
startStreamEncryption: (args: StartStreamEncryptionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<StartStreamEncryptionCommandOutput, AccessDeniedError | InvalidArgumentError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
175
|
+
stopStreamEncryption: (args: StopStreamEncryptionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<StopStreamEncryptionCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
176
|
+
subscribeToShard: (args: SubscribeToShardCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<SubscribeToShardCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
177
|
+
updateShardCount: (args: UpdateShardCountCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateShardCountCommandOutput, AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | ValidationError | SdkError, KinesisService>;
|
|
178
|
+
updateStreamMode: (args: UpdateStreamModeCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateStreamModeCommandOutput, InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError | SdkError, KinesisService>;
|
|
179
|
+
} & {
|
|
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>;
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* @since 1.0.0
|
|
184
|
+
* @category models
|
|
185
|
+
*/
|
|
186
|
+
export declare class KinesisService extends KinesisService_base {
|
|
187
|
+
static readonly defaultLayer: Layer.Layer<KinesisService, never, never>;
|
|
188
|
+
static readonly layer: (config: KinesisService.Config) => Layer.Layer<KinesisService, never, never>;
|
|
189
|
+
static readonly baseLayer: (evaluate: (defaultConfig: KinesisClientConfig) => KinesisClient) => Layer.Layer<KinesisService, never, never>;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* @since 1.0.0
|
|
193
|
+
*/
|
|
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
|
+
}
|
|
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,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,yC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AC,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,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,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,21 @@
|
|
|
1
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
2
|
+
export const AllServiceErrors = [
|
|
3
|
+
"AccessDeniedException",
|
|
4
|
+
"ExpiredIteratorException",
|
|
5
|
+
"ExpiredNextTokenException",
|
|
6
|
+
"InternalFailureException",
|
|
7
|
+
"InvalidArgumentException",
|
|
8
|
+
"KMSAccessDeniedException",
|
|
9
|
+
"KMSDisabledException",
|
|
10
|
+
"KMSInvalidStateException",
|
|
11
|
+
"KMSNotFoundException",
|
|
12
|
+
"KMSOptInRequired",
|
|
13
|
+
"KMSThrottlingException",
|
|
14
|
+
"LimitExceededException",
|
|
15
|
+
"ProvisionedThroughputExceededException",
|
|
16
|
+
"ResourceInUseException",
|
|
17
|
+
"ResourceNotFoundException",
|
|
18
|
+
"ValidationException",
|
|
19
|
+
];
|
|
20
|
+
export const SdkError = CommonSdkError;
|
|
21
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,CAAC,MAAM,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;AAoBX,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { KinesisClient } from "@aws-sdk/client-kinesis";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
import * as KinesisServiceConfig from "./KinesisServiceConfig.js";
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export class KinesisClientInstance extends Context.Tag("@effect-aws/client-kinesis/KinesisClientInstance")() {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export const make = Effect.flatMap(KinesisServiceConfig.toKinesisClientConfig, (config) => Effect.acquireRelease(Effect.sync(() => new KinesisClient(config)), (client) => Effect.sync(() => client.destroy())));
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export const layer = Layer.scoped(KinesisClientInstance, make);
|
|
23
|
+
//# sourceMappingURL=KinesisClientInstance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KinesisClientInstance.js","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;AAChD,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAElE;;;GAGG;AACH,MAAM,OAAO,qBAAsB,SAAQ,OAAO,CAAC,GAAG,CACpD,kDAAkD,CACnD,EAAwC;CAAG;AAE5C;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,oBAAoB,CAAC,qBAAqB,EAC1C,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC,EAC5C,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,qBAAqB,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { AddTagsToStreamCommand, CreateStreamCommand, DecreaseStreamRetentionPeriodCommand, DeleteResourcePolicyCommand, DeleteStreamCommand, DeregisterStreamConsumerCommand, DescribeLimitsCommand, DescribeStreamCommand, DescribeStreamConsumerCommand, DescribeStreamSummaryCommand, DisableEnhancedMonitoringCommand, EnableEnhancedMonitoringCommand, GetRecordsCommand, GetResourcePolicyCommand, GetShardIteratorCommand, IncreaseStreamRetentionPeriodCommand, ListShardsCommand, ListStreamConsumersCommand, ListStreamsCommand, ListTagsForStreamCommand, MergeShardsCommand, PutRecordCommand, PutRecordsCommand, PutResourcePolicyCommand, RegisterStreamConsumerCommand, RemoveTagsFromStreamCommand, SplitShardCommand, StartStreamEncryptionCommand, StopStreamEncryptionCommand, SubscribeToShardCommand, UpdateShardCountCommand, UpdateStreamModeCommand, } from "@aws-sdk/client-kinesis";
|
|
5
|
+
import { Service } from "@effect-aws/commons";
|
|
6
|
+
import { Effect, Layer } from "effect";
|
|
7
|
+
import { AllServiceErrors } from "./Errors.js";
|
|
8
|
+
import * as Instance from "./KinesisClientInstance.js";
|
|
9
|
+
import * as KinesisServiceConfig from "./KinesisServiceConfig.js";
|
|
10
|
+
const commands = {
|
|
11
|
+
AddTagsToStreamCommand,
|
|
12
|
+
CreateStreamCommand,
|
|
13
|
+
DecreaseStreamRetentionPeriodCommand,
|
|
14
|
+
DeleteResourcePolicyCommand,
|
|
15
|
+
DeleteStreamCommand,
|
|
16
|
+
DeregisterStreamConsumerCommand,
|
|
17
|
+
DescribeLimitsCommand,
|
|
18
|
+
DescribeStreamCommand,
|
|
19
|
+
DescribeStreamConsumerCommand,
|
|
20
|
+
DescribeStreamSummaryCommand,
|
|
21
|
+
DisableEnhancedMonitoringCommand,
|
|
22
|
+
EnableEnhancedMonitoringCommand,
|
|
23
|
+
GetRecordsCommand,
|
|
24
|
+
GetResourcePolicyCommand,
|
|
25
|
+
GetShardIteratorCommand,
|
|
26
|
+
IncreaseStreamRetentionPeriodCommand,
|
|
27
|
+
ListShardsCommand,
|
|
28
|
+
ListStreamConsumersCommand,
|
|
29
|
+
ListStreamsCommand,
|
|
30
|
+
ListTagsForStreamCommand,
|
|
31
|
+
MergeShardsCommand,
|
|
32
|
+
PutRecordCommand,
|
|
33
|
+
PutRecordsCommand,
|
|
34
|
+
PutResourcePolicyCommand,
|
|
35
|
+
RegisterStreamConsumerCommand,
|
|
36
|
+
RemoveTagsFromStreamCommand,
|
|
37
|
+
SplitShardCommand,
|
|
38
|
+
StartStreamEncryptionCommand,
|
|
39
|
+
StopStreamEncryptionCommand,
|
|
40
|
+
SubscribeToShardCommand,
|
|
41
|
+
UpdateShardCountCommand,
|
|
42
|
+
UpdateStreamModeCommand,
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @since 1.0.0
|
|
46
|
+
* @category constructors
|
|
47
|
+
*/
|
|
48
|
+
export const makeKinesisService = Effect.gen(function* () {
|
|
49
|
+
const client = yield* Instance.KinesisClientInstance;
|
|
50
|
+
return Service.fromClientAndCommands(client, commands, AllServiceErrors);
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* @since 1.0.0
|
|
54
|
+
* @category models
|
|
55
|
+
*/
|
|
56
|
+
export class KinesisService extends Effect.Tag("@effect-aws/client-kinesis/KinesisService")() {
|
|
57
|
+
static defaultLayer = Layer.effect(this, makeKinesisService).pipe(Layer.provide(Instance.layer));
|
|
58
|
+
static layer = (config) => Layer.effect(this, makeKinesisService).pipe(Layer.provide(Instance.layer), Layer.provide(KinesisServiceConfig.setKinesisServiceConfig(config)));
|
|
59
|
+
static baseLayer = (evaluate) => Layer.effect(this, makeKinesisService).pipe(Layer.provide(Layer.effect(Instance.KinesisClientInstance, Effect.map(KinesisServiceConfig.toKinesisClientConfig, evaluate))));
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=KinesisService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KinesisService.js","sourceRoot":"","sources":["../../src/KinesisService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,sBAAsB,EAGtB,mBAAmB,EAGnB,oCAAoC,EAGpC,2BAA2B,EAG3B,mBAAmB,EAGnB,+BAA+B,EAG/B,qBAAqB,EAGrB,qBAAqB,EAGrB,6BAA6B,EAG7B,4BAA4B,EAG5B,gCAAgC,EAGhC,+BAA+B,EAG/B,iBAAiB,EAGjB,wBAAwB,EAGxB,uBAAuB,EAGvB,oCAAoC,EAKpC,iBAAiB,EAGjB,0BAA0B,EAG1B,kBAAkB,EAGlB,wBAAwB,EAGxB,kBAAkB,EAGlB,gBAAgB,EAGhB,iBAAiB,EAGjB,wBAAwB,EAGxB,6BAA6B,EAG7B,2BAA2B,EAG3B,iBAAiB,EAGjB,4BAA4B,EAG5B,2BAA2B,EAG3B,uBAAuB,EAGvB,uBAAuB,EAGvB,uBAAuB,GAGxB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAkBvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAElE,MAAM,QAAQ,GAAG;IACf,sBAAsB;IACtB,mBAAmB;IACnB,oCAAoC;IACpC,2BAA2B;IAC3B,mBAAmB;IACnB,+BAA+B;IAC/B,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,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,IAAI,CACzC,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,qBAAqB,EAC9B,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CACjE,CACF,CACF,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ServiceLogger } from "@effect-aws/commons";
|
|
2
|
+
import { Effect, FiberRef, Layer } from "effect";
|
|
3
|
+
import { dual } from "effect/Function";
|
|
4
|
+
import { globalValue } from "effect/GlobalValue";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
* @category kinesis service config
|
|
8
|
+
*/
|
|
9
|
+
const currentKinesisServiceConfig = globalValue("@effect-aws/client-kinesis/currentKinesisServiceConfig", () => FiberRef.unsafeMake({}));
|
|
10
|
+
/**
|
|
11
|
+
* @since 1.0.0
|
|
12
|
+
* @category kinesis service config
|
|
13
|
+
*/
|
|
14
|
+
export const withKinesisServiceConfig = dual(2, (effect, config) => Effect.locally(effect, currentKinesisServiceConfig, config));
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
* @category kinesis service config
|
|
18
|
+
*/
|
|
19
|
+
export const setKinesisServiceConfig = (config) => Layer.locallyScoped(currentKinesisServiceConfig, config);
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category adapters
|
|
23
|
+
*/
|
|
24
|
+
export const toKinesisClientConfig = Effect.gen(function* () {
|
|
25
|
+
const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentKinesisServiceConfig);
|
|
26
|
+
const logger = serviceLogger === true
|
|
27
|
+
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
|
+
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
29
|
+
return { logger, ...config };
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=KinesisServiceConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KinesisServiceConfig.js","sourceRoot":"","sources":["../../src/KinesisServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD;;;GAGG;AACH,MAAM,2BAA2B,GAAG,WAAW,CAC7C,wDAAwD,EACxD,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAwB,EAAE,CAAC,CACrD,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAGjC,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA6B,EAA0B,EAAE,CACjG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,2BAA2B,EAAE,MAAM,CAAC,CAC9D,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,MAA6B,EAAE,EAAE,CACvE,KAAK,CAAC,aAAa,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC;AAE3D;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAuC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC3F,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;IAE9F,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,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,27 @@
|
|
|
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 const Kinesis = KinesisService;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","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,MAAM,OAAO,GAAG,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,54 +1,71 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-kinesis",
|
|
3
|
+
"version": "1.9.0",
|
|
4
|
+
"description": "Effectful AWS Kinesis client",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "github:floydspace/effect-aws",
|
|
9
|
+
"directory": "packages/client-kinesis"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": [],
|
|
3
12
|
"author": {
|
|
4
13
|
"name": "Victor Korzunin",
|
|
5
|
-
"email": "ifloydrose@gmail.com"
|
|
6
|
-
"organization": false
|
|
14
|
+
"email": "ifloydrose@gmail.com"
|
|
7
15
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"@
|
|
11
|
-
"@
|
|
12
|
-
"aws-sdk-client-mock": "^4.0.2",
|
|
13
|
-
"aws-sdk-client-mock-vitest": "^4.0.0",
|
|
14
|
-
"effect": "3.0.0",
|
|
15
|
-
"eslint": "^8",
|
|
16
|
-
"eslint-config-prettier": "^9.1.0",
|
|
17
|
-
"eslint-import-resolver-typescript": "^3.6.1",
|
|
18
|
-
"eslint-plugin-import": "^2.29.1",
|
|
19
|
-
"eslint-plugin-prettier": "^5.2.1",
|
|
20
|
-
"prettier": "^3.2.5",
|
|
21
|
-
"typescript": "^5.4.2",
|
|
22
|
-
"vitest": "^2.0.5"
|
|
16
|
+
"homepage": "https://floydspace.github.io/effect-aws/docs/client-kinesis",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@aws-sdk/client-kinesis": "^3",
|
|
19
|
+
"@effect-aws/commons": "^0.1.0"
|
|
23
20
|
},
|
|
24
21
|
"peerDependencies": {
|
|
25
|
-
"effect": ">=3.0.
|
|
22
|
+
"effect": ">=3.0.4 <4.0.0"
|
|
26
23
|
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
"main": "./dist/cjs/index.js",
|
|
25
|
+
"module": "./dist/esm/index.js",
|
|
26
|
+
"types": "./dist/dts/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
"./package.json": "./package.json",
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/dts/index.d.ts",
|
|
31
|
+
"import": "./dist/esm/index.js",
|
|
32
|
+
"default": "./dist/cjs/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./Errors": {
|
|
35
|
+
"types": "./dist/dts/Errors.d.ts",
|
|
36
|
+
"import": "./dist/esm/Errors.js",
|
|
37
|
+
"default": "./dist/cjs/Errors.js"
|
|
38
|
+
},
|
|
39
|
+
"./KinesisClientInstance": {
|
|
40
|
+
"types": "./dist/dts/KinesisClientInstance.d.ts",
|
|
41
|
+
"import": "./dist/esm/KinesisClientInstance.js",
|
|
42
|
+
"default": "./dist/cjs/KinesisClientInstance.js"
|
|
43
|
+
},
|
|
44
|
+
"./KinesisService": {
|
|
45
|
+
"types": "./dist/dts/KinesisService.d.ts",
|
|
46
|
+
"import": "./dist/esm/KinesisService.js",
|
|
47
|
+
"default": "./dist/cjs/KinesisService.js"
|
|
48
|
+
},
|
|
49
|
+
"./KinesisServiceConfig": {
|
|
50
|
+
"types": "./dist/dts/KinesisServiceConfig.d.ts",
|
|
51
|
+
"import": "./dist/esm/KinesisServiceConfig.js",
|
|
52
|
+
"default": "./dist/cjs/KinesisServiceConfig.js"
|
|
53
|
+
}
|
|
35
54
|
},
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"watch": "npx projen watch",
|
|
52
|
-
"docgen": "docgen"
|
|
55
|
+
"typesVersions": {
|
|
56
|
+
"*": {
|
|
57
|
+
"Errors": [
|
|
58
|
+
"./dist/dts/Errors.d.ts"
|
|
59
|
+
],
|
|
60
|
+
"KinesisClientInstance": [
|
|
61
|
+
"./dist/dts/KinesisClientInstance.d.ts"
|
|
62
|
+
],
|
|
63
|
+
"KinesisService": [
|
|
64
|
+
"./dist/dts/KinesisService.d.ts"
|
|
65
|
+
],
|
|
66
|
+
"KinesisServiceConfig": [
|
|
67
|
+
"./dist/dts/KinesisServiceConfig.d.ts"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
53
70
|
}
|
|
54
71
|
}
|