@effect-aws/client-firehose 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/FirehoseClientInstance/package.json +6 -0
- package/FirehoseService/package.json +6 -0
- package/FirehoseServiceConfig/package.json +6 -0
- package/LICENSE +19 -0
- package/README.md +58 -0
- package/dist/cjs/Errors.d.ts +15 -0
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +16 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/FirehoseClientInstance.d.ts +24 -0
- package/dist/cjs/FirehoseClientInstance.d.ts.map +1 -0
- package/dist/cjs/FirehoseClientInstance.js +50 -0
- package/dist/cjs/FirehoseClientInstance.js.map +1 -0
- package/dist/cjs/FirehoseService.d.ts +89 -0
- package/dist/cjs/FirehoseService.d.ts.map +1 -0
- package/dist/cjs/FirehoseService.js +71 -0
- package/dist/cjs/FirehoseService.js.map +1 -0
- package/dist/cjs/FirehoseServiceConfig.d.ts +25 -0
- package/dist/cjs/FirehoseServiceConfig.d.ts.map +1 -0
- package/dist/cjs/FirehoseServiceConfig.js +35 -0
- package/dist/cjs/FirehoseServiceConfig.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 +15 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/FirehoseClientInstance.d.ts +24 -0
- package/dist/dts/FirehoseClientInstance.d.ts.map +1 -0
- package/dist/dts/FirehoseService.d.ts +89 -0
- package/dist/dts/FirehoseService.d.ts.map +1 -0
- package/dist/dts/FirehoseServiceConfig.d.ts +25 -0
- package/dist/dts/FirehoseServiceConfig.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 +13 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/FirehoseClientInstance.js +23 -0
- package/dist/esm/FirehoseClientInstance.js.map +1 -0
- package/dist/esm/FirehoseService.js +44 -0
- package/dist/esm/FirehoseService.js.map +1 -0
- package/dist/esm/FirehoseServiceConfig.js +31 -0
- package/dist/esm/FirehoseServiceConfig.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +71 -0
- package/src/Errors.ts +35 -0
- package/src/FirehoseClientInstance.ts +33 -0
- package/src/FirehoseService.ts +281 -0
- package/src/FirehoseServiceConfig.ts +52 -0
- package/src/index.ts +44 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2025 Victor Korzunin
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# @effect-aws/client-firehose
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@effect-aws/client-firehose)
|
|
4
|
+
[](https://www.npmjs.com/package/@effect-aws/client-firehose)
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm install --save @effect-aws/client-firehose
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
With default FirehoseClient instance:
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { Firehose } from "@effect-aws/client-firehose";
|
|
18
|
+
|
|
19
|
+
const program = Firehose.putRecord(args);
|
|
20
|
+
|
|
21
|
+
const result = pipe(
|
|
22
|
+
program,
|
|
23
|
+
Effect.provide(Firehose.defaultLayer),
|
|
24
|
+
Effect.runPromise,
|
|
25
|
+
);
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
With custom FirehoseClient instance:
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { Firehose } from "@effect-aws/client-firehose";
|
|
32
|
+
|
|
33
|
+
const program = Firehose.putRecord(args);
|
|
34
|
+
|
|
35
|
+
const result = await pipe(
|
|
36
|
+
program,
|
|
37
|
+
Effect.provide(
|
|
38
|
+
Firehose.baseLayer(() => new FirehoseClient({ region: "eu-central-1" })),
|
|
39
|
+
),
|
|
40
|
+
Effect.runPromise,
|
|
41
|
+
);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
With custom FirehoseClient configuration:
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
import { Firehose } from "@effect-aws/client-firehose";
|
|
48
|
+
|
|
49
|
+
const program = Firehose.putRecord(args);
|
|
50
|
+
|
|
51
|
+
const result = await pipe(
|
|
52
|
+
program,
|
|
53
|
+
Effect.provide(Firehose.layer({ region: "eu-central-1" })),
|
|
54
|
+
Effect.runPromiseExit,
|
|
55
|
+
);
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
or use `Firehose.baseLayer((default) => new FirehoseClient({ ...default, region: "eu-central-1" }))`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ConcurrentModificationException, InvalidArgumentException, InvalidKMSResourceException, InvalidSourceException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, ServiceUnavailableException } from "@aws-sdk/client-firehose";
|
|
2
|
+
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
|
+
export declare const AllServiceErrors: readonly ["ConcurrentModificationException", "InvalidArgumentException", "InvalidKMSResourceException", "InvalidSourceException", "LimitExceededException", "ResourceInUseException", "ResourceNotFoundException", "ServiceUnavailableException"];
|
|
5
|
+
export type ConcurrentModificationError = TaggedException<ConcurrentModificationException>;
|
|
6
|
+
export type InvalidArgumentError = TaggedException<InvalidArgumentException>;
|
|
7
|
+
export type InvalidKMSResourceError = TaggedException<InvalidKMSResourceException>;
|
|
8
|
+
export type InvalidSourceError = TaggedException<InvalidSourceException>;
|
|
9
|
+
export type LimitExceededError = TaggedException<LimitExceededException>;
|
|
10
|
+
export type ResourceInUseError = TaggedException<ResourceInUseException>;
|
|
11
|
+
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
12
|
+
export type ServiceUnavailableError = TaggedException<ServiceUnavailableException>;
|
|
13
|
+
export type SdkError = CommonSdkError;
|
|
14
|
+
export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
|
|
15
|
+
//# 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,+BAA+B,EAC/B,wBAAwB,EACxB,2BAA2B,EAC3B,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,mPASnB,CAAC;AAEX,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,+BAA+B,CAAC,CAAC;AAC3F,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AAEnF,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
"ConcurrentModificationException",
|
|
7
|
+
"InvalidArgumentException",
|
|
8
|
+
"InvalidKMSResourceException",
|
|
9
|
+
"InvalidSourceException",
|
|
10
|
+
"LimitExceededException",
|
|
11
|
+
"ResourceInUseException",
|
|
12
|
+
"ResourceNotFoundException",
|
|
13
|
+
"ServiceUnavailableException",
|
|
14
|
+
];
|
|
15
|
+
exports.SdkError = commons_1.SdkError;
|
|
16
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAWA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,iCAAiC;IACjC,0BAA0B;IAC1B,6BAA6B;IAC7B,wBAAwB;IACxB,wBAAwB;IACxB,wBAAwB;IACxB,2BAA2B;IAC3B,6BAA6B;CACrB,CAAC;AAYE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { FirehoseClient } from "@aws-sdk/client-firehose";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
declare const FirehoseClientInstance_base: Context.TagClass<FirehoseClientInstance, "@effect-aws/client-firehose/FirehoseClientInstance", FirehoseClient>;
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export declare class FirehoseClientInstance extends FirehoseClientInstance_base {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export declare const make: Effect.Effect<FirehoseClient, never, import("effect/Scope").Scope>;
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export declare const layer: Layer.Layer<FirehoseClientInstance, never, never>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=FirehoseClientInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FirehoseClientInstance.d.ts","sourceRoot":"","sources":["../../src/FirehoseClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,2BAED;CAAG;AAE9C;;;GAGG;AACH,eAAO,MAAM,IAAI,oEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,mDAA6C,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.FirehoseClientInstance = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_firehose_1 = require("@aws-sdk/client-firehose");
|
|
31
|
+
const effect_1 = require("effect");
|
|
32
|
+
const FirehoseServiceConfig = __importStar(require("./FirehoseServiceConfig.js"));
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category tags
|
|
36
|
+
*/
|
|
37
|
+
class FirehoseClientInstance extends effect_1.Context.Tag("@effect-aws/client-firehose/FirehoseClientInstance")() {
|
|
38
|
+
}
|
|
39
|
+
exports.FirehoseClientInstance = FirehoseClientInstance;
|
|
40
|
+
/**
|
|
41
|
+
* @since 1.0.0
|
|
42
|
+
* @category constructors
|
|
43
|
+
*/
|
|
44
|
+
exports.make = effect_1.Effect.flatMap(FirehoseServiceConfig.toFirehoseClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_firehose_1.FirehoseClient(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(FirehoseClientInstance, exports.make);
|
|
50
|
+
//# sourceMappingURL=FirehoseClientInstance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FirehoseClientInstance.js","sourceRoot":"","sources":["../../src/FirehoseClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,8DAA0D;AAC1D,mCAAgD;AAChD,kFAAoE;AAEpE;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,gBAAO,CAAC,GAAG,CACrD,oDAAoD,CACrD,EAA0C;CAAG;AAF9C,wDAE8C;AAE9C;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,qBAAqB,CAAC,sBAAsB,EAC5C,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,gCAAc,CAAC,MAAM,CAAC,CAAC,EAC7C,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,sBAAsB,EAAE,YAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { type CreateDeliveryStreamCommandInput, type CreateDeliveryStreamCommandOutput, type DeleteDeliveryStreamCommandInput, type DeleteDeliveryStreamCommandOutput, type DescribeDeliveryStreamCommandInput, type DescribeDeliveryStreamCommandOutput, type FirehoseClient, type FirehoseClientConfig, type ListDeliveryStreamsCommandInput, type ListDeliveryStreamsCommandOutput, type ListTagsForDeliveryStreamCommandInput, type ListTagsForDeliveryStreamCommandOutput, type PutRecordBatchCommandInput, type PutRecordBatchCommandOutput, type PutRecordCommandInput, type PutRecordCommandOutput, type StartDeliveryStreamEncryptionCommandInput, type StartDeliveryStreamEncryptionCommandOutput, type StopDeliveryStreamEncryptionCommandInput, type StopDeliveryStreamEncryptionCommandOutput, type TagDeliveryStreamCommandInput, type TagDeliveryStreamCommandOutput, type UntagDeliveryStreamCommandInput, type UntagDeliveryStreamCommandOutput, type UpdateDestinationCommandInput, type UpdateDestinationCommandOutput } from "@aws-sdk/client-firehose";
|
|
5
|
+
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import { Effect, Layer } from "effect";
|
|
7
|
+
import type { ConcurrentModificationError, InvalidArgumentError, InvalidKMSResourceError, InvalidSourceError, LimitExceededError, ResourceInUseError, ResourceNotFoundError, ServiceUnavailableError } from "./Errors.js";
|
|
8
|
+
import * as Instance from "./FirehoseClientInstance.js";
|
|
9
|
+
interface FirehoseService$ {
|
|
10
|
+
readonly _: unique symbol;
|
|
11
|
+
/**
|
|
12
|
+
* @see {@link CreateDeliveryStreamCommand}
|
|
13
|
+
*/
|
|
14
|
+
createDeliveryStream(args: CreateDeliveryStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateDeliveryStreamCommandOutput, SdkError | InvalidArgumentError | InvalidKMSResourceError | LimitExceededError | ResourceInUseError>;
|
|
15
|
+
/**
|
|
16
|
+
* @see {@link DeleteDeliveryStreamCommand}
|
|
17
|
+
*/
|
|
18
|
+
deleteDeliveryStream(args: DeleteDeliveryStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteDeliveryStreamCommandOutput, SdkError | ResourceInUseError | ResourceNotFoundError>;
|
|
19
|
+
/**
|
|
20
|
+
* @see {@link DescribeDeliveryStreamCommand}
|
|
21
|
+
*/
|
|
22
|
+
describeDeliveryStream(args: DescribeDeliveryStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeDeliveryStreamCommandOutput, SdkError | ResourceNotFoundError>;
|
|
23
|
+
/**
|
|
24
|
+
* @see {@link ListDeliveryStreamsCommand}
|
|
25
|
+
*/
|
|
26
|
+
listDeliveryStreams(args: ListDeliveryStreamsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDeliveryStreamsCommandOutput, SdkError>;
|
|
27
|
+
/**
|
|
28
|
+
* @see {@link ListTagsForDeliveryStreamCommand}
|
|
29
|
+
*/
|
|
30
|
+
listTagsForDeliveryStream(args: ListTagsForDeliveryStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForDeliveryStreamCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError>;
|
|
31
|
+
/**
|
|
32
|
+
* @see {@link PutRecordCommand}
|
|
33
|
+
*/
|
|
34
|
+
putRecord(args: PutRecordCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutRecordCommandOutput, SdkError | InvalidArgumentError | InvalidKMSResourceError | InvalidSourceError | ResourceNotFoundError | ServiceUnavailableError>;
|
|
35
|
+
/**
|
|
36
|
+
* @see {@link PutRecordBatchCommand}
|
|
37
|
+
*/
|
|
38
|
+
putRecordBatch(args: PutRecordBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutRecordBatchCommandOutput, SdkError | InvalidArgumentError | InvalidKMSResourceError | InvalidSourceError | ResourceNotFoundError | ServiceUnavailableError>;
|
|
39
|
+
/**
|
|
40
|
+
* @see {@link StartDeliveryStreamEncryptionCommand}
|
|
41
|
+
*/
|
|
42
|
+
startDeliveryStreamEncryption(args: StartDeliveryStreamEncryptionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartDeliveryStreamEncryptionCommandOutput, SdkError | InvalidArgumentError | InvalidKMSResourceError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link StopDeliveryStreamEncryptionCommand}
|
|
45
|
+
*/
|
|
46
|
+
stopDeliveryStreamEncryption(args: StopDeliveryStreamEncryptionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StopDeliveryStreamEncryptionCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
47
|
+
/**
|
|
48
|
+
* @see {@link TagDeliveryStreamCommand}
|
|
49
|
+
*/
|
|
50
|
+
tagDeliveryStream(args: TagDeliveryStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagDeliveryStreamCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
51
|
+
/**
|
|
52
|
+
* @see {@link UntagDeliveryStreamCommand}
|
|
53
|
+
*/
|
|
54
|
+
untagDeliveryStream(args: UntagDeliveryStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagDeliveryStreamCommandOutput, SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError>;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link UpdateDestinationCommand}
|
|
57
|
+
*/
|
|
58
|
+
updateDestination(args: UpdateDestinationCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateDestinationCommandOutput, SdkError | ConcurrentModificationError | InvalidArgumentError | ResourceInUseError | ResourceNotFoundError>;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @since 1.0.0
|
|
62
|
+
* @category constructors
|
|
63
|
+
*/
|
|
64
|
+
export declare const makeFirehoseService: Effect.Effect<FirehoseService$, never, Instance.FirehoseClientInstance>;
|
|
65
|
+
declare const FirehoseService_base: import("effect/Context").TagClass<FirehoseService, "@effect-aws/client-firehose/FirehoseService", FirehoseService$> & Effect.Tag.Proxy<FirehoseService, FirehoseService$> & {
|
|
66
|
+
use: <X>(body: (_: FirehoseService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, FirehoseService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, FirehoseService> : Effect.Effect<X, never, FirehoseService>;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @since 1.0.0
|
|
70
|
+
* @category models
|
|
71
|
+
*/
|
|
72
|
+
export declare class FirehoseService extends FirehoseService_base {
|
|
73
|
+
static readonly defaultLayer: Layer.Layer<FirehoseService, never, never>;
|
|
74
|
+
static readonly layer: (config: FirehoseService.Config) => Layer.Layer<FirehoseService, never, never>;
|
|
75
|
+
static readonly baseLayer: (evaluate: (defaultConfig: FirehoseClientConfig) => FirehoseClient) => Layer.Layer<FirehoseService, never, never>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @since 1.0.0
|
|
79
|
+
*/
|
|
80
|
+
export declare namespace FirehoseService {
|
|
81
|
+
/**
|
|
82
|
+
* @since 1.0.0
|
|
83
|
+
*/
|
|
84
|
+
interface Config extends Omit<FirehoseClientConfig, "logger"> {
|
|
85
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export {};
|
|
89
|
+
//# sourceMappingURL=FirehoseService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FirehoseService.d.ts","sourceRoot":"","sources":["../../src/FirehoseService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAEzB,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAE3B,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAE/C,KAAK,wCAAwC,EAC7C,KAAK,yCAAyC,EAE9C,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACpC,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEvF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EACV,2BAA2B,EAC3B,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAC;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ED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,yEAW9B,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,oBAGlC;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,6CAA+E;IAC3G,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,gBAAgB,MAAM,gDAInD;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,oBAAoB,KAAK,cAAc,gDAS/D;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;QAClE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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.FirehoseService = exports.makeFirehoseService = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_firehose_1 = require("@aws-sdk/client-firehose");
|
|
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("./FirehoseClientInstance.js"));
|
|
35
|
+
const FirehoseServiceConfig = __importStar(require("./FirehoseServiceConfig.js"));
|
|
36
|
+
const commands = {
|
|
37
|
+
CreateDeliveryStreamCommand: client_firehose_1.CreateDeliveryStreamCommand,
|
|
38
|
+
DeleteDeliveryStreamCommand: client_firehose_1.DeleteDeliveryStreamCommand,
|
|
39
|
+
DescribeDeliveryStreamCommand: client_firehose_1.DescribeDeliveryStreamCommand,
|
|
40
|
+
ListDeliveryStreamsCommand: client_firehose_1.ListDeliveryStreamsCommand,
|
|
41
|
+
ListTagsForDeliveryStreamCommand: client_firehose_1.ListTagsForDeliveryStreamCommand,
|
|
42
|
+
PutRecordCommand: client_firehose_1.PutRecordCommand,
|
|
43
|
+
PutRecordBatchCommand: client_firehose_1.PutRecordBatchCommand,
|
|
44
|
+
StartDeliveryStreamEncryptionCommand: client_firehose_1.StartDeliveryStreamEncryptionCommand,
|
|
45
|
+
StopDeliveryStreamEncryptionCommand: client_firehose_1.StopDeliveryStreamEncryptionCommand,
|
|
46
|
+
TagDeliveryStreamCommand: client_firehose_1.TagDeliveryStreamCommand,
|
|
47
|
+
UntagDeliveryStreamCommand: client_firehose_1.UntagDeliveryStreamCommand,
|
|
48
|
+
UpdateDestinationCommand: client_firehose_1.UpdateDestinationCommand,
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* @since 1.0.0
|
|
52
|
+
* @category constructors
|
|
53
|
+
*/
|
|
54
|
+
exports.makeFirehoseService = effect_1.Effect.gen(function* () {
|
|
55
|
+
const client = yield* Instance.FirehoseClientInstance;
|
|
56
|
+
return commons_1.Service.fromClientAndCommands(client, commands, {
|
|
57
|
+
errorTags: Errors_js_1.AllServiceErrors,
|
|
58
|
+
resolveClientConfig: FirehoseServiceConfig.toFirehoseClientConfig,
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* @since 1.0.0
|
|
63
|
+
* @category models
|
|
64
|
+
*/
|
|
65
|
+
class FirehoseService extends effect_1.Effect.Tag("@effect-aws/client-firehose/FirehoseService")() {
|
|
66
|
+
static defaultLayer = effect_1.Layer.effect(this, exports.makeFirehoseService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
67
|
+
static layer = (config) => effect_1.Layer.effect(this, exports.makeFirehoseService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(FirehoseServiceConfig.setFirehoseServiceConfig(config)));
|
|
68
|
+
static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeFirehoseService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.FirehoseClientInstance, effect_1.Effect.map(FirehoseServiceConfig.toFirehoseClientConfig, evaluate))));
|
|
69
|
+
}
|
|
70
|
+
exports.FirehoseService = FirehoseService;
|
|
71
|
+
//# sourceMappingURL=FirehoseService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FirehoseService.js","sourceRoot":"","sources":["../../src/FirehoseService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,8DAuCkC;AAElC,iDAA8C;AAC9C,mCAAuC;AAWvC,2CAA+C;AAC/C,sEAAwD;AACxD,kFAAoE;AAEpE,MAAM,QAAQ,GAAG;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SAAS,GAAG,CAC1B,QAAiE,EACjE,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,2BAAmB,CAAC,CAAC,IAAI,CAC1C,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,sBAAsB,EAC/B,eAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CACnE,CACF,CACF,CAAC;;AApBN,0CAqBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import type { FirehoseClientConfig } from "@aws-sdk/client-firehose";
|
|
5
|
+
import { Effect, Layer } from "effect";
|
|
6
|
+
import type { FirehoseService } from "./FirehoseService.js";
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category firehose service config
|
|
10
|
+
*/
|
|
11
|
+
export declare const withFirehoseServiceConfig: {
|
|
12
|
+
(config: FirehoseService.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: FirehoseService.Config): Effect.Effect<A, E, R>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
* @category firehose service config
|
|
18
|
+
*/
|
|
19
|
+
export declare const setFirehoseServiceConfig: (config: FirehoseService.Config) => Layer.Layer<never, never, never>;
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category adapters
|
|
23
|
+
*/
|
|
24
|
+
export declare const toFirehoseClientConfig: Effect.Effect<FirehoseClientConfig>;
|
|
25
|
+
//# sourceMappingURL=FirehoseServiceConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FirehoseServiceConfig.d.ts","sourceRoot":"","sources":["../../src/FirehoseServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAW5D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE;IACtC,CAAC,MAAM,EAAE,eAAe,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;IACtG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKnG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,WAAY,gBAAgB,MAAM,qCACZ,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAQrE,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toFirehoseClientConfig = exports.setFirehoseServiceConfig = exports.withFirehoseServiceConfig = 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 firehose service config
|
|
11
|
+
*/
|
|
12
|
+
const currentFirehoseServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-firehose/currentFirehoseServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category firehose service config
|
|
16
|
+
*/
|
|
17
|
+
exports.withFirehoseServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentFirehoseServiceConfig, config));
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category firehose service config
|
|
21
|
+
*/
|
|
22
|
+
const setFirehoseServiceConfig = (config) => effect_1.Layer.locallyScoped(currentFirehoseServiceConfig, config);
|
|
23
|
+
exports.setFirehoseServiceConfig = setFirehoseServiceConfig;
|
|
24
|
+
/**
|
|
25
|
+
* @since 1.0.0
|
|
26
|
+
* @category adapters
|
|
27
|
+
*/
|
|
28
|
+
exports.toFirehoseClientConfig = effect_1.Effect.gen(function* () {
|
|
29
|
+
const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentFirehoseServiceConfig);
|
|
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=FirehoseServiceConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FirehoseServiceConfig.js","sourceRoot":"","sources":["../../src/FirehoseServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,4BAA4B,GAAG,IAAA,yBAAW,EAC9C,0DAA0D,EAC1D,GAAG,E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|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
export * as FirehoseClientInstance from "./FirehoseClientInstance.js";
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*/
|
|
16
|
+
export * as FirehoseServiceConfig from "./FirehoseServiceConfig.js";
|
|
17
|
+
/**
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
export * from "./FirehoseService.js";
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
* @category exports
|
|
24
|
+
* @alias FirehoseService
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace Firehose {
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
* @alias FirehoseService.Config
|
|
30
|
+
*/
|
|
31
|
+
type Config = FirehoseService.Config;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category exports
|
|
36
|
+
* @alias FirehoseService
|
|
37
|
+
*/
|
|
38
|
+
export declare const Firehose: typeof FirehoseService;
|
|
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,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,sBAAsB,MAAM,6BAA6B,CAAC;AAEtE;;GAEG;AACH,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAC;AAEpE;;GAEG;AACH,cAAc,sBAAsB,CAAC;AAErC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC;;;OAGG;IACH,KAAY,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;CAC7C;AAED;;;;GAIG;AACH,eAAO,MAAM,QAAQ,wBAAkB,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.Firehose = exports.FirehoseServiceConfig = exports.FirehoseClientInstance = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* @since 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
const FirehoseService_js_1 = require("./FirehoseService.js");
|
|
34
|
+
/**
|
|
35
|
+
* @since 1.0.0
|
|
36
|
+
*/
|
|
37
|
+
__exportStar(require("./Errors.js"), exports);
|
|
38
|
+
/**
|
|
39
|
+
* @since 1.0.0
|
|
40
|
+
*/
|
|
41
|
+
exports.FirehoseClientInstance = __importStar(require("./FirehoseClientInstance.js"));
|
|
42
|
+
/**
|
|
43
|
+
* @since 1.0.0
|
|
44
|
+
*/
|
|
45
|
+
exports.FirehoseServiceConfig = __importStar(require("./FirehoseServiceConfig.js"));
|
|
46
|
+
/**
|
|
47
|
+
* @since 1.0.0
|
|
48
|
+
*/
|
|
49
|
+
__exportStar(require("./FirehoseService.js"), exports);
|
|
50
|
+
/**
|
|
51
|
+
* @since 1.0.0
|
|
52
|
+
* @category exports
|
|
53
|
+
* @alias FirehoseService
|
|
54
|
+
*/
|
|
55
|
+
exports.Firehose = FirehoseService_js_1.FirehoseService;
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,6DAAuD;AAEvD;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,sFAAsE;AAEtE;;GAEG;AACH,oFAAoE;AAEpE;;GAEG;AACH,uDAAqC;AAerC;;;;GAIG;AACU,QAAA,QAAQ,GAAG,oCAAe,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ConcurrentModificationException, InvalidArgumentException, InvalidKMSResourceException, InvalidSourceException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, ServiceUnavailableException } from "@aws-sdk/client-firehose";
|
|
2
|
+
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
|
+
export declare const AllServiceErrors: readonly ["ConcurrentModificationException", "InvalidArgumentException", "InvalidKMSResourceException", "InvalidSourceException", "LimitExceededException", "ResourceInUseException", "ResourceNotFoundException", "ServiceUnavailableException"];
|
|
5
|
+
export type ConcurrentModificationError = TaggedException<ConcurrentModificationException>;
|
|
6
|
+
export type InvalidArgumentError = TaggedException<InvalidArgumentException>;
|
|
7
|
+
export type InvalidKMSResourceError = TaggedException<InvalidKMSResourceException>;
|
|
8
|
+
export type InvalidSourceError = TaggedException<InvalidSourceException>;
|
|
9
|
+
export type LimitExceededError = TaggedException<LimitExceededException>;
|
|
10
|
+
export type ResourceInUseError = TaggedException<ResourceInUseException>;
|
|
11
|
+
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
12
|
+
export type ServiceUnavailableError = TaggedException<ServiceUnavailableException>;
|
|
13
|
+
export type SdkError = CommonSdkError;
|
|
14
|
+
export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
|
|
15
|
+
//# 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,+BAA+B,EAC/B,wBAAwB,EACxB,2BAA2B,EAC3B,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,mPASnB,CAAC;AAEX,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,+BAA+B,CAAC,CAAC;AAC3F,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AAEnF,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 { FirehoseClient } from "@aws-sdk/client-firehose";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
declare const FirehoseClientInstance_base: Context.TagClass<FirehoseClientInstance, "@effect-aws/client-firehose/FirehoseClientInstance", FirehoseClient>;
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export declare class FirehoseClientInstance extends FirehoseClientInstance_base {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export declare const make: Effect.Effect<FirehoseClient, never, import("effect/Scope").Scope>;
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export declare const layer: Layer.Layer<FirehoseClientInstance, never, never>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=FirehoseClientInstance.d.ts.map
|