@effect-aws/client-sqs 1.7.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/SQSClientInstance/package.json +6 -0
- package/SQSService/package.json +6 -0
- package/SQSServiceConfig/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 +36 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/SQSClientInstance.d.ts +24 -0
- package/dist/cjs/SQSClientInstance.d.ts.map +1 -0
- package/dist/cjs/SQSClientInstance.js +50 -0
- package/dist/cjs/SQSClientInstance.js.map +1 -0
- package/dist/cjs/SQSService.d.ts +133 -0
- package/dist/cjs/SQSService.d.ts.map +1 -0
- package/dist/cjs/SQSService.js +82 -0
- package/dist/cjs/SQSService.js.map +1 -0
- package/dist/cjs/SQSServiceConfig.d.ts +25 -0
- package/dist/cjs/SQSServiceConfig.d.ts.map +1 -0
- package/dist/cjs/SQSServiceConfig.js +35 -0
- package/dist/cjs/SQSServiceConfig.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 +35 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/SQSClientInstance.d.ts +24 -0
- package/dist/dts/SQSClientInstance.d.ts.map +1 -0
- package/dist/dts/SQSService.d.ts +133 -0
- package/dist/dts/SQSService.d.ts.map +1 -0
- package/dist/dts/SQSServiceConfig.d.ts +25 -0
- package/dist/dts/SQSServiceConfig.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 +33 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/SQSClientInstance.js +23 -0
- package/dist/esm/SQSClientInstance.js.map +1 -0
- package/dist/esm/SQSService.js +55 -0
- package/dist/esm/SQSService.js.map +1 -0
- package/dist/esm/SQSServiceConfig.js +31 -0
- package/dist/esm/SQSServiceConfig.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 +95 -0
- package/src/SQSClientInstance.ts +33 -0
- package/src/SQSService.ts +610 -0
- package/src/SQSServiceConfig.ts +51 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -115
- package/docgen.json +0 -8
- package/lib/Errors.js +0 -36
- package/lib/SQSClientInstance.d.ts +0 -31
- package/lib/SQSClientInstance.js +0 -57
- package/lib/SQSClientInstanceConfig.d.ts +0 -23
- package/lib/SQSClientInstanceConfig.js +0 -44
- package/lib/SQSService.d.ts +0 -180
- package/lib/SQSService.js +0 -111
- package/lib/esm/Errors.js +0 -33
- package/lib/esm/SQSClientInstance.js +0 -30
- package/lib/esm/SQSClientInstanceConfig.js +0 -40
- package/lib/esm/SQSService.js +0 -107
- package/lib/esm/index.js +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -21
- package/project.json +0 -77
- package/vitest.config.ts +0 -3
package/CHANGELOG.md
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
# @effect-aws/client-sqs
|
|
2
|
-
|
|
3
|
-
## 1.7.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- [#93](https://github.com/floydspace/effect-aws/pull/93) [`a96fbd8`](https://github.com/floydspace/effect-aws/commit/a96fbd8840a7a6cfb795a2a6ab96aa32d32a3525) Thanks [@godu](https://github.com/godu)! - Destroy client after layer lifecycle to release idle connections.
|
|
8
|
-
|
|
9
|
-
## 1.6.0
|
|
10
|
-
|
|
11
|
-
### Minor Changes
|
|
12
|
-
|
|
13
|
-
- [#80](https://github.com/floydspace/effect-aws/pull/80) [`4b16fbe`](https://github.com/floydspace/effect-aws/commit/4b16fbebce8131df7798ee92f43cf6b7df3e907c) Thanks [@floydspace](https://github.com/floydspace)! - simplify layers configuration (closes #78)
|
|
14
|
-
|
|
15
|
-
## 1.5.1
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- [#75](https://github.com/floydspace/effect-aws/pull/75) [`9dc170d`](https://github.com/floydspace/effect-aws/commit/9dc170d975c04888bbc7ca7b241b4b5265668fb5) Thanks [@godu](https://github.com/godu)! - export the HttpHandlerOptions type
|
|
20
|
-
|
|
21
|
-
## 1.5.0
|
|
22
|
-
|
|
23
|
-
### Minor Changes
|
|
24
|
-
|
|
25
|
-
- [`e540420`](https://github.com/floydspace/effect-aws/commit/e5404208c2438e1e1546637a8edbbdc1c9468850) Thanks [@floydspace](https://github.com/floydspace)! - integrate aws-sdk abort signal with effect interruption
|
|
26
|
-
|
|
27
|
-
## 1.4.0
|
|
28
|
-
|
|
29
|
-
### Minor Changes
|
|
30
|
-
|
|
31
|
-
- [#58](https://github.com/floydspace/effect-aws/pull/58) [`888dc8c`](https://github.com/floydspace/effect-aws/commit/888dc8ca0d7104e33a24426a1aacedb48e8fc3ac) Thanks [@floydspace](https://github.com/floydspace)! - use Effect.Tag instead of Context.GenericTag for service, upgrade sdk, handle only known errors
|
|
32
|
-
|
|
33
|
-
## 1.3.0
|
|
34
|
-
|
|
35
|
-
### Minor Changes
|
|
36
|
-
|
|
37
|
-
- [`0cfcda0`](https://github.com/floydspace/effect-aws/commit/0cfcda0d5617916d966807f5d5120df9ba461c12) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect to v3
|
|
38
|
-
|
|
39
|
-
## 1.2.0
|
|
40
|
-
|
|
41
|
-
### Minor Changes
|
|
42
|
-
|
|
43
|
-
- [#43](https://github.com/floydspace/effect-aws/pull/43) [`6e6c0a0`](https://github.com/floydspace/effect-aws/commit/6e6c0a00078c38b4575c1bac1015949b478428c0) Thanks [@godu](https://github.com/godu)! - new dynamodb client method, typed errors in sqs service
|
|
44
|
-
|
|
45
|
-
## 1.1.1
|
|
46
|
-
|
|
47
|
-
### Patch Changes
|
|
48
|
-
|
|
49
|
-
- [`b2f00db`](https://github.com/floydspace/effect-aws/commit/b2f00db5fdffaa74bcb124324db7313bd4f218df) Thanks [@floydspace](https://github.com/floydspace)! - update effect peer version
|
|
50
|
-
|
|
51
|
-
## 1.1.0
|
|
52
|
-
|
|
53
|
-
### Minor Changes
|
|
54
|
-
|
|
55
|
-
- [`82eaea7`](https://github.com/floydspace/effect-aws/commit/82eaea778048c9ebba98682196448b0aa1586d2e) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect to v2.3 and fix breaking changes
|
|
56
|
-
|
|
57
|
-
## 1.0.2
|
|
58
|
-
|
|
59
|
-
### Patch Changes
|
|
60
|
-
|
|
61
|
-
- [`88676ae`](https://github.com/floydspace/effect-aws/commit/88676ae3a5f7fa514cab58ba83a50a0774be1aa1) Thanks [@floydspace](https://github.com/floydspace)! - use effect@~2.2 as maximum allowed peer version
|
|
62
|
-
|
|
63
|
-
## 1.0.1
|
|
64
|
-
|
|
65
|
-
### Patch Changes
|
|
66
|
-
|
|
67
|
-
- [#29](https://github.com/floydspace/effect-aws/pull/29) [`4b6c521`](https://github.com/floydspace/effect-aws/commit/4b6c521206c8ff76ff878938f6b90ee474cc8da2) Thanks [@godu](https://github.com/godu)! - improve tree shaking by using sideEffects flag
|
|
68
|
-
|
|
69
|
-
## 1.0.0
|
|
70
|
-
|
|
71
|
-
### Major Changes
|
|
72
|
-
|
|
73
|
-
- [`3e5d0b3`](https://github.com/floydspace/effect-aws/commit/3e5d0b3b3882e0aa6d07bc06432990551316ac30) Thanks [@floydspace](https://github.com/floydspace)! - Upgrade to effect v2 and release stable version
|
|
74
|
-
|
|
75
|
-
## 0.5.0
|
|
76
|
-
|
|
77
|
-
### Minor Changes
|
|
78
|
-
|
|
79
|
-
- [`744df3c`](https://github.com/floydspace/effect-aws/commit/744df3ca6406b3a35e3066d5fe11ca7082c4c454) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect dependency
|
|
80
|
-
|
|
81
|
-
## 0.4.0
|
|
82
|
-
|
|
83
|
-
### Minor Changes
|
|
84
|
-
|
|
85
|
-
- [`0a969d8`](https://github.com/floydspace/effect-aws/commit/0a969d8a74c3bf1b87ff6a1c8bf689af849797e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect peer version
|
|
86
|
-
|
|
87
|
-
## 0.3.2
|
|
88
|
-
|
|
89
|
-
### Patch Changes
|
|
90
|
-
|
|
91
|
-
- [`280d8bd`](https://github.com/floydspace/effect-aws/commit/280d8bd6686d6e7a2b73322a047e8eb22263b1e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade dependencies
|
|
92
|
-
|
|
93
|
-
## 0.3.1
|
|
94
|
-
|
|
95
|
-
### Patch Changes
|
|
96
|
-
|
|
97
|
-
- [`6b99904`](https://github.com/floydspace/effect-aws/commit/6b9990497bdb20f240d8261b6382db421e9a3ec2) Thanks [@floydspace](https://github.com/floydspace)! - as @mikearnaldi said: "we should really never do tacit passing"
|
|
98
|
-
|
|
99
|
-
## 0.3.0
|
|
100
|
-
|
|
101
|
-
### Minor Changes
|
|
102
|
-
|
|
103
|
-
- [#14](https://github.com/floydspace/effect-aws/pull/14) [`cddfb74`](https://github.com/floydspace/effect-aws/commit/cddfb74a00b10a13ccfe3749e90961119c4f0906) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect version to the next one
|
|
104
|
-
|
|
105
|
-
## 0.2.0
|
|
106
|
-
|
|
107
|
-
### Minor Changes
|
|
108
|
-
|
|
109
|
-
- [`d7d6c50`](https://github.com/floydspace/effect-aws/commit/d7d6c500de9aa538f76a5b8cfc9ffac741210d33) Thanks [@floydspace](https://github.com/floydspace)! - introduce tagged clients options for better narrowing
|
|
110
|
-
|
|
111
|
-
## 0.1.0
|
|
112
|
-
|
|
113
|
-
### Minor Changes
|
|
114
|
-
|
|
115
|
-
- [`1ddcac5`](https://github.com/floydspace/effect-aws/commit/1ddcac5355b37d83347b3d833202870e7e88ae7d) Thanks [@floydspace](https://github.com/floydspace)! - implement effectful sqs client
|
package/docgen.json
DELETED
package/lib/Errors.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SdkError = exports.AllServiceErrors = void 0;
|
|
4
|
-
const effect_1 = require("effect");
|
|
5
|
-
exports.AllServiceErrors = [
|
|
6
|
-
"BatchEntryIdsNotDistinct",
|
|
7
|
-
"BatchRequestTooLong",
|
|
8
|
-
"EmptyBatchRequest",
|
|
9
|
-
"InvalidAddress",
|
|
10
|
-
"InvalidAttributeName",
|
|
11
|
-
"InvalidAttributeValue",
|
|
12
|
-
"InvalidBatchEntryId",
|
|
13
|
-
"InvalidIdFormat",
|
|
14
|
-
"InvalidMessageContents",
|
|
15
|
-
"InvalidSecurity",
|
|
16
|
-
"KmsAccessDenied",
|
|
17
|
-
"KmsDisabled",
|
|
18
|
-
"KmsInvalidKeyUsage",
|
|
19
|
-
"KmsInvalidState",
|
|
20
|
-
"KmsNotFound",
|
|
21
|
-
"KmsOptInRequired",
|
|
22
|
-
"KmsThrottled",
|
|
23
|
-
"MessageNotInflight",
|
|
24
|
-
"OverLimit",
|
|
25
|
-
"PurgeQueueInProgress",
|
|
26
|
-
"QueueDeletedRecently",
|
|
27
|
-
"QueueDoesNotExist",
|
|
28
|
-
"QueueNameExists",
|
|
29
|
-
"ReceiptHandleIsInvalid",
|
|
30
|
-
"RequestThrottled",
|
|
31
|
-
"ResourceNotFoundException",
|
|
32
|
-
"TooManyEntriesInBatchRequest",
|
|
33
|
-
"UnsupportedOperation",
|
|
34
|
-
];
|
|
35
|
-
exports.SdkError = effect_1.Data.tagged("SdkError");
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXJyb3JzLmpzIiwic291cmNl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gVGFnZ2VkRXhjZXB0aW9uPFJlcXVlc3RUaHJvdHRsZWQ+O1xuZXhwb3J0IHR5cGUgUmVzb3VyY2VOb3RGb3VuZEVycm9yID0gVGFnZ2VkRXhjZXB0aW9uPFJlc291cmNlTm90Rm91bmRFeGNlcHRpb24+O1xuZXhwb3J0IHR5cGUgVG9vTWFueUVudHJpZXNJbkJhdGNoUmVxdWVzdEVycm9yID1cbiAgVGFnZ2VkRXhjZXB0aW9uPFRvb01hbnlFbnRyaWVzSW5CYXRjaFJlcXVlc3Q+O1xuZXhwb3J0IHR5cGUgVW5zdXBwb3J0ZWRPcGVyYXRpb25FcnJvciA9IFRhZ2dlZEV4Y2VwdGlvbjxVbnN1cHBvcnRlZE9wZXJhdGlvbj47XG5cbmV4cG9ydCB0eXBlIFNka0Vycm9yID0gVGFnZ2VkRXhjZXB0aW9uPEVycm9yICYgeyBuYW1lOiBcIlNka0Vycm9yXCIgfT47XG5leHBvcnQgY29uc3QgU2RrRXJyb3IgPSBEYXRhLnRhZ2dlZDxTZGtFcnJvcj4oXCJTZGtFcnJvclwiKTtcbiJdfQ==
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { SQSClient } from "@aws-sdk/client-sqs";
|
|
5
|
-
import * as Context from "effect/Context";
|
|
6
|
-
import * as Effect from "effect/Effect";
|
|
7
|
-
import * as Layer from "effect/Layer";
|
|
8
|
-
import { SQSClientInstanceConfig } from "./SQSClientInstanceConfig";
|
|
9
|
-
declare const SQSClientInstance_base: Context.TagClass<SQSClientInstance, "@effect-aws/client-sqs/SQSClientInstance", SQSClient>;
|
|
10
|
-
/**
|
|
11
|
-
* @since 1.0.0
|
|
12
|
-
* @category tags
|
|
13
|
-
*/
|
|
14
|
-
export declare class SQSClientInstance extends SQSClientInstance_base {
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @since 1.0.0
|
|
18
|
-
* @category constructors
|
|
19
|
-
*/
|
|
20
|
-
export declare const makeSQSClientInstance: Effect.Effect<SQSClient, never, import("effect/Scope").Scope | SQSClientInstanceConfig>;
|
|
21
|
-
/**
|
|
22
|
-
* @since 1.0.0
|
|
23
|
-
* @category layers
|
|
24
|
-
*/
|
|
25
|
-
export declare const SQSClientInstanceLayer: Layer.Layer<SQSClientInstance, never, SQSClientInstanceConfig>;
|
|
26
|
-
/**
|
|
27
|
-
* @since 1.0.0
|
|
28
|
-
* @category layers
|
|
29
|
-
*/
|
|
30
|
-
export declare const DefaultSQSClientInstanceLayer: Layer.Layer<SQSClientInstance, never, never>;
|
|
31
|
-
export {};
|
package/lib/SQSClientInstance.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.DefaultSQSClientInstanceLayer = exports.SQSClientInstanceLayer = exports.makeSQSClientInstance = exports.SQSClientInstance = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_sqs_1 = require("@aws-sdk/client-sqs");
|
|
31
|
-
const Context = __importStar(require("effect/Context"));
|
|
32
|
-
const Effect = __importStar(require("effect/Effect"));
|
|
33
|
-
const Layer = __importStar(require("effect/Layer"));
|
|
34
|
-
const SQSClientInstanceConfig_1 = require("./SQSClientInstanceConfig");
|
|
35
|
-
/**
|
|
36
|
-
* @since 1.0.0
|
|
37
|
-
* @category tags
|
|
38
|
-
*/
|
|
39
|
-
class SQSClientInstance extends Context.Tag("@effect-aws/client-sqs/SQSClientInstance")() {
|
|
40
|
-
}
|
|
41
|
-
exports.SQSClientInstance = SQSClientInstance;
|
|
42
|
-
/**
|
|
43
|
-
* @since 1.0.0
|
|
44
|
-
* @category constructors
|
|
45
|
-
*/
|
|
46
|
-
exports.makeSQSClientInstance = Effect.flatMap(SQSClientInstanceConfig_1.SQSClientInstanceConfig, (config) => Effect.acquireRelease(Effect.sync(() => new client_sqs_1.SQSClient(config)), (client) => Effect.sync(() => client.destroy())));
|
|
47
|
-
/**
|
|
48
|
-
* @since 1.0.0
|
|
49
|
-
* @category layers
|
|
50
|
-
*/
|
|
51
|
-
exports.SQSClientInstanceLayer = Layer.scoped(SQSClientInstance, exports.makeSQSClientInstance);
|
|
52
|
-
/**
|
|
53
|
-
* @since 1.0.0
|
|
54
|
-
* @category layers
|
|
55
|
-
*/
|
|
56
|
-
exports.DefaultSQSClientInstanceLayer = exports.SQSClientInstanceLayer.pipe(Layer.provide(SQSClientInstanceConfig_1.DefaultSQSClientConfigLayer));
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJz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uZGVzdHJveSgpKSxcbiAgICApLFxuKTtcblxuLyoqXG4gKiBAc2luY2UgMS4wLjBcbiAqIEBjYXRlZ29yeSBsYXllcnNcbiAqL1xuZXhwb3J0IGNvbnN0IFNRU0NsaWVudEluc3RhbmNlTGF5ZXIgPSBMYXllci5zY29wZWQoXG4gIFNRU0NsaWVudEluc3RhbmNlLFxuICBtYWtlU1FTQ2xpZW50SW5zdGFuY2UsXG4pO1xuXG4vKipcbiAqIEBzaW5jZSAxLjAuMFxuICogQGNhdGVnb3J5IGxheWVyc1xuICovXG5leHBvcnQgY29uc3QgRGVmYXVsdFNRU0NsaWVudEluc3RhbmNlTGF5ZXIgPSBTUVNDbGllbnRJbnN0YW5jZUxheWVyLnBpcGUoXG4gIExheWVyLnByb3ZpZGUoRGVmYXVsdFNRU0NsaWVudENvbmZpZ0xheWVyKSxcbik7XG4iXX0=
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import type { SQSClientConfig } from "@aws-sdk/client-sqs";
|
|
5
|
-
import { Context, Effect, Layer } from "effect";
|
|
6
|
-
declare const SQSClientInstanceConfig_base: Context.TagClass<SQSClientInstanceConfig, "@effect-aws/client-sqs/SQSClientInstanceConfig", SQSClientConfig>;
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category tags
|
|
10
|
-
*/
|
|
11
|
-
export declare class SQSClientInstanceConfig extends SQSClientInstanceConfig_base {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category constructors
|
|
16
|
-
*/
|
|
17
|
-
export declare const makeDefaultSQSClientInstanceConfig: Effect.Effect<SQSClientConfig>;
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category layers
|
|
21
|
-
*/
|
|
22
|
-
export declare const DefaultSQSClientConfigLayer: Layer.Layer<SQSClientInstanceConfig, never, never>;
|
|
23
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultSQSClientConfigLayer = exports.makeDefaultSQSClientInstanceConfig = exports.SQSClientInstanceConfig = void 0;
|
|
4
|
-
const effect_1 = require("effect");
|
|
5
|
-
/**
|
|
6
|
-
* @since 1.0.0
|
|
7
|
-
* @category tags
|
|
8
|
-
*/
|
|
9
|
-
class SQSClientInstanceConfig extends effect_1.Context.Tag("@effect-aws/client-sqs/SQSClientInstanceConfig")() {
|
|
10
|
-
}
|
|
11
|
-
exports.SQSClientInstanceConfig = SQSClientInstanceConfig;
|
|
12
|
-
/**
|
|
13
|
-
* @since 1.0.0
|
|
14
|
-
* @category constructors
|
|
15
|
-
*/
|
|
16
|
-
exports.makeDefaultSQSClientInstanceConfig = effect_1.Effect.gen(function* (_) {
|
|
17
|
-
const runtime = yield* _(effect_1.Effect.runtime());
|
|
18
|
-
const runSync = effect_1.Runtime.runSync(runtime);
|
|
19
|
-
return {
|
|
20
|
-
logger: {
|
|
21
|
-
info(m) {
|
|
22
|
-
effect_1.Effect.logInfo(m).pipe(runSync);
|
|
23
|
-
},
|
|
24
|
-
warn(m) {
|
|
25
|
-
effect_1.Effect.logWarning(m).pipe(runSync);
|
|
26
|
-
},
|
|
27
|
-
error(m) {
|
|
28
|
-
effect_1.Effect.logError(m).pipe(runSync);
|
|
29
|
-
},
|
|
30
|
-
debug(m) {
|
|
31
|
-
effect_1.Effect.logDebug(m).pipe(runSync);
|
|
32
|
-
},
|
|
33
|
-
trace(m) {
|
|
34
|
-
effect_1.Effect.logTrace(m).pipe(runSync);
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
/**
|
|
40
|
-
* @since 1.0.0
|
|
41
|
-
* @category layers
|
|
42
|
-
*/
|
|
43
|
-
exports.DefaultSQSClientConfigLayer = effect_1.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FxuKTtcbiJdfQ==
|
package/lib/SQSService.d.ts
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { type SQSClient, type SQSClientConfig, type AddPermissionCommandInput, type AddPermissionCommandOutput, type CancelMessageMoveTaskCommandInput, type CancelMessageMoveTaskCommandOutput, type ChangeMessageVisibilityCommandInput, type ChangeMessageVisibilityCommandOutput, type ChangeMessageVisibilityBatchCommandInput, type ChangeMessageVisibilityBatchCommandOutput, type CreateQueueCommandInput, type CreateQueueCommandOutput, type DeleteMessageCommandInput, type DeleteMessageCommandOutput, type DeleteMessageBatchCommandInput, type DeleteMessageBatchCommandOutput, type DeleteQueueCommandInput, type DeleteQueueCommandOutput, type GetQueueAttributesCommandInput, type GetQueueAttributesCommandOutput, type GetQueueUrlCommandInput, type GetQueueUrlCommandOutput, type ListDeadLetterSourceQueuesCommandInput, type ListDeadLetterSourceQueuesCommandOutput, type ListMessageMoveTasksCommandInput, type ListMessageMoveTasksCommandOutput, type ListQueueTagsCommandInput, type ListQueueTagsCommandOutput, type ListQueuesCommandInput, type ListQueuesCommandOutput, type PurgeQueueCommandInput, type PurgeQueueCommandOutput, type ReceiveMessageCommandInput, type ReceiveMessageCommandOutput, type RemovePermissionCommandInput, type RemovePermissionCommandOutput, type SendMessageCommandInput, type SendMessageCommandOutput, type SendMessageBatchCommandInput, type SendMessageBatchCommandOutput, type SetQueueAttributesCommandInput, type SetQueueAttributesCommandOutput, type StartMessageMoveTaskCommandInput, type StartMessageMoveTaskCommandOutput, type TagQueueCommandInput, type TagQueueCommandOutput, type UntagQueueCommandInput, type UntagQueueCommandOutput } from "@aws-sdk/client-sqs";
|
|
5
|
-
import { Effect, Layer } from "effect";
|
|
6
|
-
import { BatchEntryIdsNotDistinctError, BatchRequestTooLongError, EmptyBatchRequestError, InvalidAddressError, InvalidAttributeNameError, InvalidAttributeValueError, InvalidBatchEntryIdError, InvalidIdFormatError, InvalidMessageContentsError, InvalidSecurityError, KmsAccessDeniedError, KmsDisabledError, KmsInvalidKeyUsageError, KmsInvalidStateError, KmsNotFoundError, KmsOptInRequiredError, KmsThrottledError, MessageNotInflightError, OverLimitError, PurgeQueueInProgressError, QueueDeletedRecentlyError, QueueDoesNotExistError, QueueNameExistsError, ReceiptHandleIsInvalidError, RequestThrottledError, ResourceNotFoundError, TooManyEntriesInBatchRequestError, UnsupportedOperationError, SdkError } from "./Errors";
|
|
7
|
-
import { SQSClientInstance } from "./SQSClientInstance";
|
|
8
|
-
import { SQSClientInstanceConfig } from "./SQSClientInstanceConfig";
|
|
9
|
-
/**
|
|
10
|
-
* @since 1.0.0
|
|
11
|
-
*/
|
|
12
|
-
export interface HttpHandlerOptions {
|
|
13
|
-
/**
|
|
14
|
-
* The maximum time in milliseconds that the connection phase of a request
|
|
15
|
-
* may take before the connection attempt is abandoned.
|
|
16
|
-
*/
|
|
17
|
-
requestTimeout?: number;
|
|
18
|
-
}
|
|
19
|
-
interface SQSService$ {
|
|
20
|
-
readonly _: unique symbol;
|
|
21
|
-
/**
|
|
22
|
-
* @see {@link AddPermissionCommand}
|
|
23
|
-
*/
|
|
24
|
-
addPermission(args: AddPermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddPermissionCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
25
|
-
/**
|
|
26
|
-
* @see {@link CancelMessageMoveTaskCommand}
|
|
27
|
-
*/
|
|
28
|
-
cancelMessageMoveTask(args: CancelMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelMessageMoveTaskCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
29
|
-
/**
|
|
30
|
-
* @see {@link ChangeMessageVisibilityCommand}
|
|
31
|
-
*/
|
|
32
|
-
changeMessageVisibility(args: ChangeMessageVisibilityCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | MessageNotInflightError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
33
|
-
/**
|
|
34
|
-
* @see {@link ChangeMessageVisibilityBatchCommand}
|
|
35
|
-
*/
|
|
36
|
-
changeMessageVisibilityBatch(args: ChangeMessageVisibilityBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityBatchCommandOutput, SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
37
|
-
/**
|
|
38
|
-
* @see {@link CreateQueueCommand}
|
|
39
|
-
*/
|
|
40
|
-
createQueue(args: CreateQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateQueueCommandOutput, SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | QueueDeletedRecentlyError | QueueNameExistsError | RequestThrottledError | UnsupportedOperationError>;
|
|
41
|
-
/**
|
|
42
|
-
* @see {@link DeleteMessageCommand}
|
|
43
|
-
*/
|
|
44
|
-
deleteMessage(args: DeleteMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageCommandOutput, SdkError | InvalidAddressError | InvalidIdFormatError | InvalidSecurityError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
45
|
-
/**
|
|
46
|
-
* @see {@link DeleteMessageBatchCommand}
|
|
47
|
-
*/
|
|
48
|
-
deleteMessageBatch(args: DeleteMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageBatchCommandOutput, SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
49
|
-
/**
|
|
50
|
-
* @see {@link DeleteQueueCommand}
|
|
51
|
-
*/
|
|
52
|
-
deleteQueue(args: DeleteQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
53
|
-
/**
|
|
54
|
-
* @see {@link GetQueueAttributesCommand}
|
|
55
|
-
*/
|
|
56
|
-
getQueueAttributes(args: GetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueAttributesCommandOutput, SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
57
|
-
/**
|
|
58
|
-
* @see {@link GetQueueUrlCommand}
|
|
59
|
-
*/
|
|
60
|
-
getQueueUrl(args: GetQueueUrlCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueUrlCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
61
|
-
/**
|
|
62
|
-
* @see {@link ListDeadLetterSourceQueuesCommand}
|
|
63
|
-
*/
|
|
64
|
-
listDeadLetterSourceQueues(args: ListDeadLetterSourceQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDeadLetterSourceQueuesCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
65
|
-
/**
|
|
66
|
-
* @see {@link ListMessageMoveTasksCommand}
|
|
67
|
-
*/
|
|
68
|
-
listMessageMoveTasks(args: ListMessageMoveTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListMessageMoveTasksCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
69
|
-
/**
|
|
70
|
-
* @see {@link ListQueueTagsCommand}
|
|
71
|
-
*/
|
|
72
|
-
listQueueTags(args: ListQueueTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueueTagsCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
73
|
-
/**
|
|
74
|
-
* @see {@link ListQueuesCommand}
|
|
75
|
-
*/
|
|
76
|
-
listQueues(args: ListQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueuesCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | UnsupportedOperationError>;
|
|
77
|
-
/**
|
|
78
|
-
* @see {@link PurgeQueueCommand}
|
|
79
|
-
*/
|
|
80
|
-
purgeQueue(args: PurgeQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<PurgeQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | PurgeQueueInProgressError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
81
|
-
/**
|
|
82
|
-
* @see {@link ReceiveMessageCommand}
|
|
83
|
-
*/
|
|
84
|
-
receiveMessage(args: ReceiveMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<ReceiveMessageCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
85
|
-
/**
|
|
86
|
-
* @see {@link RemovePermissionCommand}
|
|
87
|
-
*/
|
|
88
|
-
removePermission(args: RemovePermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemovePermissionCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
89
|
-
/**
|
|
90
|
-
* @see {@link SendMessageCommand}
|
|
91
|
-
*/
|
|
92
|
-
sendMessage(args: SendMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageCommandOutput, SdkError | InvalidAddressError | InvalidMessageContentsError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
93
|
-
/**
|
|
94
|
-
* @see {@link SendMessageBatchCommand}
|
|
95
|
-
*/
|
|
96
|
-
sendMessageBatch(args: SendMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageBatchCommandOutput, SdkError | BatchEntryIdsNotDistinctError | BatchRequestTooLongError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
97
|
-
/**
|
|
98
|
-
* @see {@link SetQueueAttributesCommand}
|
|
99
|
-
*/
|
|
100
|
-
setQueueAttributes(args: SetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetQueueAttributesCommandOutput, SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
101
|
-
/**
|
|
102
|
-
* @see {@link StartMessageMoveTaskCommand}
|
|
103
|
-
*/
|
|
104
|
-
startMessageMoveTask(args: StartMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartMessageMoveTaskCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
105
|
-
/**
|
|
106
|
-
* @see {@link TagQueueCommand}
|
|
107
|
-
*/
|
|
108
|
-
tagQueue(args: TagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
109
|
-
/**
|
|
110
|
-
* @see {@link UntagQueueCommand}
|
|
111
|
-
*/
|
|
112
|
-
untagQueue(args: UntagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* @since 1.0.0
|
|
116
|
-
* @category constructors
|
|
117
|
-
*/
|
|
118
|
-
export declare const makeSQSService: Effect.Effect<SQSService$, never, SQSClientInstance>;
|
|
119
|
-
declare const SQSService_base: import("effect/Context").TagClass<SQSService, "@effect-aws/client-sqs/SQSService", SQSService$> & {
|
|
120
|
-
readonly _: Effect.Effect<SQSService$["_"], never, SQSService>;
|
|
121
|
-
addPermission: (args: AddPermissionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AddPermissionCommandOutput, InvalidAddressError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
122
|
-
cancelMessageMoveTask: (args: CancelMessageMoveTaskCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CancelMessageMoveTaskCommandOutput, InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError | SdkError, SQSService>;
|
|
123
|
-
changeMessageVisibility: (args: ChangeMessageVisibilityCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ChangeMessageVisibilityCommandOutput, InvalidAddressError | InvalidSecurityError | MessageNotInflightError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
124
|
-
changeMessageVisibilityBatch: (args: ChangeMessageVisibilityBatchCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ChangeMessageVisibilityBatchCommandOutput, BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError | SdkError, SQSService>;
|
|
125
|
-
createQueue: (args: CreateQueueCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateQueueCommandOutput, InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | QueueDeletedRecentlyError | QueueNameExistsError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
126
|
-
deleteMessage: (args: DeleteMessageCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteMessageCommandOutput, InvalidAddressError | InvalidIdFormatError | InvalidSecurityError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
127
|
-
deleteMessageBatch: (args: DeleteMessageBatchCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteMessageBatchCommandOutput, BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError | SdkError, SQSService>;
|
|
128
|
-
deleteQueue: (args: DeleteQueueCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteQueueCommandOutput, InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
129
|
-
getQueueAttributes: (args: GetQueueAttributesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetQueueAttributesCommandOutput, InvalidAddressError | InvalidAttributeNameError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
130
|
-
getQueueUrl: (args: GetQueueUrlCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetQueueUrlCommandOutput, InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
131
|
-
listDeadLetterSourceQueues: (args: ListDeadLetterSourceQueuesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListDeadLetterSourceQueuesCommandOutput, InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
132
|
-
listMessageMoveTasks: (args: ListMessageMoveTasksCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListMessageMoveTasksCommandOutput, InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError | SdkError, SQSService>;
|
|
133
|
-
listQueueTags: (args: ListQueueTagsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListQueueTagsCommandOutput, InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
134
|
-
listQueues: (args: ListQueuesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListQueuesCommandOutput, InvalidAddressError | InvalidSecurityError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
135
|
-
purgeQueue: (args: PurgeQueueCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PurgeQueueCommandOutput, InvalidAddressError | InvalidSecurityError | PurgeQueueInProgressError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
136
|
-
receiveMessage: (args: ReceiveMessageCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ReceiveMessageCommandOutput, InvalidAddressError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
137
|
-
removePermission: (args: RemovePermissionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<RemovePermissionCommandOutput, InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
138
|
-
sendMessage: (args: SendMessageCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<SendMessageCommandOutput, InvalidAddressError | InvalidMessageContentsError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
139
|
-
sendMessageBatch: (args: SendMessageBatchCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<SendMessageBatchCommandOutput, BatchEntryIdsNotDistinctError | BatchRequestTooLongError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError | SdkError, SQSService>;
|
|
140
|
-
setQueueAttributes: (args: SetQueueAttributesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<SetQueueAttributesCommandOutput, InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
141
|
-
startMessageMoveTask: (args: StartMessageMoveTaskCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<StartMessageMoveTaskCommandOutput, InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError | SdkError, SQSService>;
|
|
142
|
-
tagQueue: (args: TagQueueCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<TagQueueCommandOutput, InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
143
|
-
untagQueue: (args: UntagQueueCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UntagQueueCommandOutput, InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
144
|
-
} & {
|
|
145
|
-
use: <X>(body: (_: SQSService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, R | SQSService> : Effect.Effect<X, never, SQSService>;
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* @since 1.0.0
|
|
149
|
-
* @category models
|
|
150
|
-
*/
|
|
151
|
-
export declare class SQSService extends SQSService_base {
|
|
152
|
-
static readonly defaultLayer: Layer.Layer<SQSService, never, never>;
|
|
153
|
-
static readonly layer: (config: SQSClientConfig) => Layer.Layer<SQSService, never, never>;
|
|
154
|
-
static readonly baseLayer: (evaluate: (defaultConfig: SQSClientConfig) => SQSClient) => Layer.Layer<SQSService, never, never>;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* @since 1.0.0
|
|
158
|
-
* @category models
|
|
159
|
-
* @alias SQSService
|
|
160
|
-
*/
|
|
161
|
-
export declare const SQS: typeof SQSService;
|
|
162
|
-
/**
|
|
163
|
-
* @since 1.0.0
|
|
164
|
-
* @category layers
|
|
165
|
-
* @deprecated use SQS.baseLayer instead
|
|
166
|
-
*/
|
|
167
|
-
export declare const BaseSQSServiceLayer: Layer.Layer<SQSService, never, SQSClientInstance>;
|
|
168
|
-
/**
|
|
169
|
-
* @since 1.0.0
|
|
170
|
-
* @category layers
|
|
171
|
-
* @deprecated use SQS.layer instead
|
|
172
|
-
*/
|
|
173
|
-
export declare const SQSServiceLayer: Layer.Layer<SQSService, never, SQSClientInstanceConfig>;
|
|
174
|
-
/**
|
|
175
|
-
* @since 1.0.0
|
|
176
|
-
* @category layers
|
|
177
|
-
* @deprecated use SQS.defaultLayer instead
|
|
178
|
-
*/
|
|
179
|
-
export declare const DefaultSQSServiceLayer: Layer.Layer<SQSService, never, never>;
|
|
180
|
-
export {};
|