@effect-aws/client-sqs 1.9.5 → 1.10.2
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/dist/cjs/Errors.d.ts +3 -3
- package/dist/cjs/Errors.d.ts.map +1 -1
- package/dist/cjs/Errors.js +1 -3
- package/dist/cjs/Errors.js.map +1 -1
- package/dist/cjs/SQSService.d.ts +27 -26
- package/dist/cjs/SQSService.d.ts.map +1 -1
- package/dist/cjs/SQSService.js +1 -1
- package/dist/cjs/SQSService.js.map +1 -1
- package/dist/dts/Errors.d.ts +3 -3
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/dts/SQSService.d.ts +27 -26
- package/dist/dts/SQSService.d.ts.map +1 -1
- package/dist/esm/Errors.js +0 -2
- package/dist/esm/Errors.js.map +1 -1
- package/dist/esm/SQSService.js +1 -1
- package/dist/esm/SQSService.js.map +1 -1
- package/package.json +2 -2
- package/src/Errors.ts +1 -4
- package/src/SQSService.ts +32 -3
package/dist/cjs/Errors.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { BatchEntryIdsNotDistinct, BatchRequestTooLong, EmptyBatchRequest, InvalidAddress, InvalidAttributeName, InvalidAttributeValue, InvalidBatchEntryId, InvalidIdFormat, InvalidMessageContents, InvalidSecurity, KmsAccessDenied, KmsDisabled, KmsInvalidKeyUsage, KmsInvalidState, KmsNotFound, KmsOptInRequired, KmsThrottled, MessageNotInflight, OverLimit, PurgeQueueInProgress, QueueDeletedRecently, QueueDoesNotExist, QueueNameExists, ReceiptHandleIsInvalid, RequestThrottled, ResourceNotFoundException, TooManyEntriesInBatchRequest, UnsupportedOperation } from "@aws-sdk/client-sqs";
|
|
2
2
|
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
3
|
export declare const AllServiceErrors: readonly ["BatchEntryIdsNotDistinct", "BatchRequestTooLong", "EmptyBatchRequest", "InvalidAddress", "InvalidAttributeName", "InvalidAttributeValue", "InvalidBatchEntryId", "InvalidIdFormat", "InvalidMessageContents", "InvalidSecurity", "KmsAccessDenied", "KmsDisabled", "KmsInvalidKeyUsage", "KmsInvalidState", "KmsNotFound", "KmsOptInRequired", "KmsThrottled", "MessageNotInflight", "OverLimit", "PurgeQueueInProgress", "QueueDeletedRecently", "QueueDoesNotExist", "QueueNameExists", "ReceiptHandleIsInvalid", "RequestThrottled", "ResourceNotFoundException", "TooManyEntriesInBatchRequest", "UnsupportedOperation"];
|
|
5
4
|
export type BatchEntryIdsNotDistinctError = TaggedException<BatchEntryIdsNotDistinct>;
|
|
6
5
|
export type BatchRequestTooLongError = TaggedException<BatchRequestTooLong>;
|
|
@@ -30,6 +29,7 @@ export type RequestThrottledError = TaggedException<RequestThrottled>;
|
|
|
30
29
|
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
31
30
|
export type TooManyEntriesInBatchRequestError = TaggedException<TooManyEntriesInBatchRequest>;
|
|
32
31
|
export type UnsupportedOperationError = TaggedException<UnsupportedOperation>;
|
|
33
|
-
export type SdkError =
|
|
34
|
-
|
|
32
|
+
export type SdkError = TaggedException<Error & {
|
|
33
|
+
name: "SdkError";
|
|
34
|
+
}>;
|
|
35
35
|
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,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C/E,MAAM,MAAM,iCAAiC,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AAC9F,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAC9E,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/cjs/Errors.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const commons_1 = require("@effect-aws/commons");
|
|
3
|
+
exports.AllServiceErrors = void 0;
|
|
5
4
|
exports.AllServiceErrors = [
|
|
6
5
|
"BatchEntryIdsNotDistinct",
|
|
7
6
|
"BatchRequestTooLong",
|
|
@@ -32,5 +31,4 @@ exports.AllServiceErrors = [
|
|
|
32
31
|
"TooManyEntriesInBatchRequest",
|
|
33
32
|
"UnsupportedOperation",
|
|
34
33
|
];
|
|
35
|
-
exports.SdkError = commons_1.SdkError;
|
|
36
34
|
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAgCa,QAAA,gBAAgB,GAAG;IAC9B,0BAA0B;IAC1B,qBAAqB;IACrB,mBAAmB;IACnB,gBAAgB;IAChB,sBAAsB;IACtB,uBAAuB;IACvB,qBAAqB;IACrB,iBAAiB;IACjB,wBAAwB;IACxB,iBAAiB;IACjB,iBAAiB;IACjB,aAAa;IACb,oBAAoB;IACpB,iBAAiB;IACjB,aAAa;IACb,kBAAkB;IAClB,cAAc;IACd,oBAAoB;IACpB,WAAW;IACX,sBAAsB;IACtB,sBAAsB;IACtB,mBAAmB;IACnB,iBAAiB;IACjB,wBAAwB;IACxB,kBAAkB;IAClB,2BAA2B;IAC3B,8BAA8B;IAC9B,sBAAsB;CACd,CAAC"}
|
package/dist/cjs/SQSService.d.ts
CHANGED
|
@@ -2,104 +2,105 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { type AddPermissionCommandInput, type AddPermissionCommandOutput, type CancelMessageMoveTaskCommandInput, type CancelMessageMoveTaskCommandOutput, type ChangeMessageVisibilityBatchCommandInput, type ChangeMessageVisibilityBatchCommandOutput, type ChangeMessageVisibilityCommandInput, type ChangeMessageVisibilityCommandOutput, type CreateQueueCommandInput, type CreateQueueCommandOutput, type DeleteMessageBatchCommandInput, type DeleteMessageBatchCommandOutput, type DeleteMessageCommandInput, type DeleteMessageCommandOutput, type DeleteQueueCommandInput, type DeleteQueueCommandOutput, type GetQueueAttributesCommandInput, type GetQueueAttributesCommandOutput, type GetQueueUrlCommandInput, type GetQueueUrlCommandOutput, type ListDeadLetterSourceQueuesCommandInput, type ListDeadLetterSourceQueuesCommandOutput, type ListMessageMoveTasksCommandInput, type ListMessageMoveTasksCommandOutput, type ListQueuesCommandInput, type ListQueuesCommandOutput, type ListQueueTagsCommandInput, type ListQueueTagsCommandOutput, type PurgeQueueCommandInput, type PurgeQueueCommandOutput, type ReceiveMessageCommandInput, type ReceiveMessageCommandOutput, type RemovePermissionCommandInput, type RemovePermissionCommandOutput, type SendMessageBatchCommandInput, type SendMessageBatchCommandOutput, type SendMessageCommandInput, type SendMessageCommandOutput, type SetQueueAttributesCommandInput, type SetQueueAttributesCommandOutput, type SQSClient, type SQSClientConfig, type StartMessageMoveTaskCommandInput, type StartMessageMoveTaskCommandOutput, type TagQueueCommandInput, type TagQueueCommandOutput, type UntagQueueCommandInput, type UntagQueueCommandOutput } from "@aws-sdk/client-sqs";
|
|
5
|
-
import type { HttpHandlerOptions,
|
|
5
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import type { Cause } from "effect";
|
|
6
7
|
import { Effect, Layer } from "effect";
|
|
7
|
-
import type { 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 } from "./Errors.js";
|
|
8
|
+
import type { 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, SdkError, TooManyEntriesInBatchRequestError, UnsupportedOperationError } from "./Errors.js";
|
|
8
9
|
import * as Instance from "./SQSClientInstance.js";
|
|
9
10
|
interface SQSService$ {
|
|
10
11
|
readonly _: unique symbol;
|
|
11
12
|
/**
|
|
12
13
|
* @see {@link AddPermissionCommand}
|
|
13
14
|
*/
|
|
14
|
-
addPermission(args: AddPermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddPermissionCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
15
|
+
addPermission(args: AddPermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddPermissionCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
15
16
|
/**
|
|
16
17
|
* @see {@link CancelMessageMoveTaskCommand}
|
|
17
18
|
*/
|
|
18
|
-
cancelMessageMoveTask(args: CancelMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelMessageMoveTaskCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
19
|
+
cancelMessageMoveTask(args: CancelMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelMessageMoveTaskCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
19
20
|
/**
|
|
20
21
|
* @see {@link ChangeMessageVisibilityCommand}
|
|
21
22
|
*/
|
|
22
|
-
changeMessageVisibility(args: ChangeMessageVisibilityCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | MessageNotInflightError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
23
|
+
changeMessageVisibility(args: ChangeMessageVisibilityCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | MessageNotInflightError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
23
24
|
/**
|
|
24
25
|
* @see {@link ChangeMessageVisibilityBatchCommand}
|
|
25
26
|
*/
|
|
26
|
-
changeMessageVisibilityBatch(args: ChangeMessageVisibilityBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityBatchCommandOutput, SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
27
|
+
changeMessageVisibilityBatch(args: ChangeMessageVisibilityBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityBatchCommandOutput, Cause.TimeoutException | SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
27
28
|
/**
|
|
28
29
|
* @see {@link CreateQueueCommand}
|
|
29
30
|
*/
|
|
30
|
-
createQueue(args: CreateQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateQueueCommandOutput, SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | QueueDeletedRecentlyError | QueueNameExistsError | RequestThrottledError | UnsupportedOperationError>;
|
|
31
|
+
createQueue(args: CreateQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateQueueCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | QueueDeletedRecentlyError | QueueNameExistsError | RequestThrottledError | UnsupportedOperationError>;
|
|
31
32
|
/**
|
|
32
33
|
* @see {@link DeleteMessageCommand}
|
|
33
34
|
*/
|
|
34
|
-
deleteMessage(args: DeleteMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageCommandOutput, SdkError | InvalidAddressError | InvalidIdFormatError | InvalidSecurityError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
35
|
+
deleteMessage(args: DeleteMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidIdFormatError | InvalidSecurityError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
35
36
|
/**
|
|
36
37
|
* @see {@link DeleteMessageBatchCommand}
|
|
37
38
|
*/
|
|
38
|
-
deleteMessageBatch(args: DeleteMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageBatchCommandOutput, SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
39
|
+
deleteMessageBatch(args: DeleteMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageBatchCommandOutput, Cause.TimeoutException | SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
39
40
|
/**
|
|
40
41
|
* @see {@link DeleteQueueCommand}
|
|
41
42
|
*/
|
|
42
|
-
deleteQueue(args: DeleteQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
43
|
+
deleteQueue(args: DeleteQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteQueueCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
43
44
|
/**
|
|
44
45
|
* @see {@link GetQueueAttributesCommand}
|
|
45
46
|
*/
|
|
46
|
-
getQueueAttributes(args: GetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueAttributesCommandOutput, SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
47
|
+
getQueueAttributes(args: GetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueAttributesCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
47
48
|
/**
|
|
48
49
|
* @see {@link GetQueueUrlCommand}
|
|
49
50
|
*/
|
|
50
|
-
getQueueUrl(args: GetQueueUrlCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueUrlCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
51
|
+
getQueueUrl(args: GetQueueUrlCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueUrlCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
51
52
|
/**
|
|
52
53
|
* @see {@link ListDeadLetterSourceQueuesCommand}
|
|
53
54
|
*/
|
|
54
|
-
listDeadLetterSourceQueues(args: ListDeadLetterSourceQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDeadLetterSourceQueuesCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
55
|
+
listDeadLetterSourceQueues(args: ListDeadLetterSourceQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDeadLetterSourceQueuesCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
55
56
|
/**
|
|
56
57
|
* @see {@link ListMessageMoveTasksCommand}
|
|
57
58
|
*/
|
|
58
|
-
listMessageMoveTasks(args: ListMessageMoveTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListMessageMoveTasksCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
59
|
+
listMessageMoveTasks(args: ListMessageMoveTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListMessageMoveTasksCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
59
60
|
/**
|
|
60
61
|
* @see {@link ListQueueTagsCommand}
|
|
61
62
|
*/
|
|
62
|
-
listQueueTags(args: ListQueueTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueueTagsCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
63
|
+
listQueueTags(args: ListQueueTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueueTagsCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
63
64
|
/**
|
|
64
65
|
* @see {@link ListQueuesCommand}
|
|
65
66
|
*/
|
|
66
|
-
listQueues(args: ListQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueuesCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | UnsupportedOperationError>;
|
|
67
|
+
listQueues(args: ListQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueuesCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | UnsupportedOperationError>;
|
|
67
68
|
/**
|
|
68
69
|
* @see {@link PurgeQueueCommand}
|
|
69
70
|
*/
|
|
70
|
-
purgeQueue(args: PurgeQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<PurgeQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | PurgeQueueInProgressError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
71
|
+
purgeQueue(args: PurgeQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<PurgeQueueCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | PurgeQueueInProgressError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
71
72
|
/**
|
|
72
73
|
* @see {@link ReceiveMessageCommand}
|
|
73
74
|
*/
|
|
74
|
-
receiveMessage(args: ReceiveMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<ReceiveMessageCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
75
|
+
receiveMessage(args: ReceiveMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<ReceiveMessageCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
75
76
|
/**
|
|
76
77
|
* @see {@link RemovePermissionCommand}
|
|
77
78
|
*/
|
|
78
|
-
removePermission(args: RemovePermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemovePermissionCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
79
|
+
removePermission(args: RemovePermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemovePermissionCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
79
80
|
/**
|
|
80
81
|
* @see {@link SendMessageCommand}
|
|
81
82
|
*/
|
|
82
|
-
sendMessage(args: SendMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageCommandOutput, SdkError | InvalidAddressError | InvalidMessageContentsError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
83
|
+
sendMessage(args: SendMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidMessageContentsError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
83
84
|
/**
|
|
84
85
|
* @see {@link SendMessageBatchCommand}
|
|
85
86
|
*/
|
|
86
|
-
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>;
|
|
87
|
+
sendMessageBatch(args: SendMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageBatchCommandOutput, Cause.TimeoutException | SdkError | BatchEntryIdsNotDistinctError | BatchRequestTooLongError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
87
88
|
/**
|
|
88
89
|
* @see {@link SetQueueAttributesCommand}
|
|
89
90
|
*/
|
|
90
|
-
setQueueAttributes(args: SetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetQueueAttributesCommandOutput, SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
91
|
+
setQueueAttributes(args: SetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetQueueAttributesCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
91
92
|
/**
|
|
92
93
|
* @see {@link StartMessageMoveTaskCommand}
|
|
93
94
|
*/
|
|
94
|
-
startMessageMoveTask(args: StartMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartMessageMoveTaskCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
95
|
+
startMessageMoveTask(args: StartMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartMessageMoveTaskCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
95
96
|
/**
|
|
96
97
|
* @see {@link TagQueueCommand}
|
|
97
98
|
*/
|
|
98
|
-
tagQueue(args: TagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
99
|
+
tagQueue(args: TagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagQueueCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
99
100
|
/**
|
|
100
101
|
* @see {@link UntagQueueCommand}
|
|
101
102
|
*/
|
|
102
|
-
untagQueue(args: UntagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
103
|
+
untagQueue(args: UntagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagQueueCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
103
104
|
}
|
|
104
105
|
/**
|
|
105
106
|
* @since 1.0.0
|
|
@@ -107,7 +108,7 @@ interface SQSService$ {
|
|
|
107
108
|
*/
|
|
108
109
|
export declare const makeSQSService: Effect.Effect<SQSService$, never, Instance.SQSClientInstance>;
|
|
109
110
|
declare const SQSService_base: import("effect/Context").TagClass<SQSService, "@effect-aws/client-sqs/SQSService", SQSService$> & Effect.Tag.Proxy<SQSService, SQSService$> & {
|
|
110
|
-
use: <X>(body: (_: SQSService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SQSService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1,
|
|
111
|
+
use: <X>(body: (_: SQSService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SQSService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, SQSService> : Effect.Effect<X, never, SQSService>;
|
|
111
112
|
};
|
|
112
113
|
/**
|
|
113
114
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SQSService.d.ts","sourceRoot":"","sources":["../../src/SQSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,iCAAiC,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ANGED
|
@@ -64,7 +64,7 @@ const commands = {
|
|
|
64
64
|
*/
|
|
65
65
|
exports.makeSQSService = effect_1.Effect.gen(function* () {
|
|
66
66
|
const client = yield* Instance.SQSClientInstance;
|
|
67
|
-
return commons_1.Service.fromClientAndCommands(client, commands, {
|
|
67
|
+
return yield* commons_1.Service.fromClientAndCommands(client, commands, {
|
|
68
68
|
errorTags: Errors_js_1.AllServiceErrors,
|
|
69
69
|
resolveClientConfig: SQSServiceConfig.toSQSClientConfig,
|
|
70
70
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SQSService.js","sourceRoot":"","sources":["../../src/SQSService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAwE6B;AAE7B,iDAA8C;
|
|
1
|
+
{"version":3,"file":"SQSService.js","sourceRoot":"","sources":["../../src/SQSService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAwE6B;AAE7B,iDAA8C;AAE9C,mCAAuC;AAgCvC,2CAA+C;AAC/C,iEAAmD;AACnD,wEAA0D;AAE1D,MAAM,QAAQ,GAAG;IACf,oBAAoB,EAApB,iCAAoB;IACpB,4BAA4B,EAA5B,yCAA4B;IAC5B,8BAA8B,EAA9B,2CAA8B;IAC9B,mCAAmC,EAAnC,gDAAmC;IACnC,kBAAkB,EAAlB,+BAAkB;IAClB,oBAAoB,EAApB,iCAAoB;IACpB,yBAAyB,EAAzB,sCAAyB;IACzB,kBAAkB,EAAlB,+BAAkB;IAClB,yBAAyB,EAAzB,sCAAyB;IACzB,kBAAkB,EAAlB,+BAAkB;IAClB,iCAAiC,EAAjC,8CAAiC;IACjC,2BAA2B,EAA3B,wCAA2B;IAC3B,oBAAoB,EAApB,iCAAoB;IACpB,iBAAiB,EAAjB,8BAAiB;IACjB,iBAAiB,EAAjB,8BAAiB;IACjB,qBAAqB,EAArB,kCAAqB;IACrB,uBAAuB,E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,CAAC,iBAAiB,EAC1B,eAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CACzD,CACF,CACF,CAAC;;AApBN,gCAqBC"}
|
package/dist/dts/Errors.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { BatchEntryIdsNotDistinct, BatchRequestTooLong, EmptyBatchRequest, InvalidAddress, InvalidAttributeName, InvalidAttributeValue, InvalidBatchEntryId, InvalidIdFormat, InvalidMessageContents, InvalidSecurity, KmsAccessDenied, KmsDisabled, KmsInvalidKeyUsage, KmsInvalidState, KmsNotFound, KmsOptInRequired, KmsThrottled, MessageNotInflight, OverLimit, PurgeQueueInProgress, QueueDeletedRecently, QueueDoesNotExist, QueueNameExists, ReceiptHandleIsInvalid, RequestThrottled, ResourceNotFoundException, TooManyEntriesInBatchRequest, UnsupportedOperation } from "@aws-sdk/client-sqs";
|
|
2
2
|
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
3
|
export declare const AllServiceErrors: readonly ["BatchEntryIdsNotDistinct", "BatchRequestTooLong", "EmptyBatchRequest", "InvalidAddress", "InvalidAttributeName", "InvalidAttributeValue", "InvalidBatchEntryId", "InvalidIdFormat", "InvalidMessageContents", "InvalidSecurity", "KmsAccessDenied", "KmsDisabled", "KmsInvalidKeyUsage", "KmsInvalidState", "KmsNotFound", "KmsOptInRequired", "KmsThrottled", "MessageNotInflight", "OverLimit", "PurgeQueueInProgress", "QueueDeletedRecently", "QueueDoesNotExist", "QueueNameExists", "ReceiptHandleIsInvalid", "RequestThrottled", "ResourceNotFoundException", "TooManyEntriesInBatchRequest", "UnsupportedOperation"];
|
|
5
4
|
export type BatchEntryIdsNotDistinctError = TaggedException<BatchEntryIdsNotDistinct>;
|
|
6
5
|
export type BatchRequestTooLongError = TaggedException<BatchRequestTooLong>;
|
|
@@ -30,6 +29,7 @@ export type RequestThrottledError = TaggedException<RequestThrottled>;
|
|
|
30
29
|
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
31
30
|
export type TooManyEntriesInBatchRequestError = TaggedException<TooManyEntriesInBatchRequest>;
|
|
32
31
|
export type UnsupportedOperationError = TaggedException<UnsupportedOperation>;
|
|
33
|
-
export type SdkError =
|
|
34
|
-
|
|
32
|
+
export type SdkError = TaggedException<Error & {
|
|
33
|
+
name: "SdkError";
|
|
34
|
+
}>;
|
|
35
35
|
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/dts/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,yBAAyB,EACzB,4BAA4B,EAC5B,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EA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AAC,WAAW,CAAC,CAAC;AAC5D,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;AAC9D,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;AACxD,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAC9E,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AACxE,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;AACpE,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AAClF,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC;AACtE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,iCAAiC,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AAC9F,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAC9E,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/dts/SQSService.d.ts
CHANGED
|
@@ -2,104 +2,105 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { type AddPermissionCommandInput, type AddPermissionCommandOutput, type CancelMessageMoveTaskCommandInput, type CancelMessageMoveTaskCommandOutput, type ChangeMessageVisibilityBatchCommandInput, type ChangeMessageVisibilityBatchCommandOutput, type ChangeMessageVisibilityCommandInput, type ChangeMessageVisibilityCommandOutput, type CreateQueueCommandInput, type CreateQueueCommandOutput, type DeleteMessageBatchCommandInput, type DeleteMessageBatchCommandOutput, type DeleteMessageCommandInput, type DeleteMessageCommandOutput, type DeleteQueueCommandInput, type DeleteQueueCommandOutput, type GetQueueAttributesCommandInput, type GetQueueAttributesCommandOutput, type GetQueueUrlCommandInput, type GetQueueUrlCommandOutput, type ListDeadLetterSourceQueuesCommandInput, type ListDeadLetterSourceQueuesCommandOutput, type ListMessageMoveTasksCommandInput, type ListMessageMoveTasksCommandOutput, type ListQueuesCommandInput, type ListQueuesCommandOutput, type ListQueueTagsCommandInput, type ListQueueTagsCommandOutput, type PurgeQueueCommandInput, type PurgeQueueCommandOutput, type ReceiveMessageCommandInput, type ReceiveMessageCommandOutput, type RemovePermissionCommandInput, type RemovePermissionCommandOutput, type SendMessageBatchCommandInput, type SendMessageBatchCommandOutput, type SendMessageCommandInput, type SendMessageCommandOutput, type SetQueueAttributesCommandInput, type SetQueueAttributesCommandOutput, type SQSClient, type SQSClientConfig, type StartMessageMoveTaskCommandInput, type StartMessageMoveTaskCommandOutput, type TagQueueCommandInput, type TagQueueCommandOutput, type UntagQueueCommandInput, type UntagQueueCommandOutput } from "@aws-sdk/client-sqs";
|
|
5
|
-
import type { HttpHandlerOptions,
|
|
5
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import type { Cause } from "effect";
|
|
6
7
|
import { Effect, Layer } from "effect";
|
|
7
|
-
import type { 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 } from "./Errors.js";
|
|
8
|
+
import type { 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, SdkError, TooManyEntriesInBatchRequestError, UnsupportedOperationError } from "./Errors.js";
|
|
8
9
|
import * as Instance from "./SQSClientInstance.js";
|
|
9
10
|
interface SQSService$ {
|
|
10
11
|
readonly _: unique symbol;
|
|
11
12
|
/**
|
|
12
13
|
* @see {@link AddPermissionCommand}
|
|
13
14
|
*/
|
|
14
|
-
addPermission(args: AddPermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddPermissionCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
15
|
+
addPermission(args: AddPermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddPermissionCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
15
16
|
/**
|
|
16
17
|
* @see {@link CancelMessageMoveTaskCommand}
|
|
17
18
|
*/
|
|
18
|
-
cancelMessageMoveTask(args: CancelMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelMessageMoveTaskCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
19
|
+
cancelMessageMoveTask(args: CancelMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelMessageMoveTaskCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
19
20
|
/**
|
|
20
21
|
* @see {@link ChangeMessageVisibilityCommand}
|
|
21
22
|
*/
|
|
22
|
-
changeMessageVisibility(args: ChangeMessageVisibilityCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | MessageNotInflightError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
23
|
+
changeMessageVisibility(args: ChangeMessageVisibilityCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | MessageNotInflightError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
23
24
|
/**
|
|
24
25
|
* @see {@link ChangeMessageVisibilityBatchCommand}
|
|
25
26
|
*/
|
|
26
|
-
changeMessageVisibilityBatch(args: ChangeMessageVisibilityBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityBatchCommandOutput, SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
27
|
+
changeMessageVisibilityBatch(args: ChangeMessageVisibilityBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityBatchCommandOutput, Cause.TimeoutException | SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
27
28
|
/**
|
|
28
29
|
* @see {@link CreateQueueCommand}
|
|
29
30
|
*/
|
|
30
|
-
createQueue(args: CreateQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateQueueCommandOutput, SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | QueueDeletedRecentlyError | QueueNameExistsError | RequestThrottledError | UnsupportedOperationError>;
|
|
31
|
+
createQueue(args: CreateQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateQueueCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | QueueDeletedRecentlyError | QueueNameExistsError | RequestThrottledError | UnsupportedOperationError>;
|
|
31
32
|
/**
|
|
32
33
|
* @see {@link DeleteMessageCommand}
|
|
33
34
|
*/
|
|
34
|
-
deleteMessage(args: DeleteMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageCommandOutput, SdkError | InvalidAddressError | InvalidIdFormatError | InvalidSecurityError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
35
|
+
deleteMessage(args: DeleteMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidIdFormatError | InvalidSecurityError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
35
36
|
/**
|
|
36
37
|
* @see {@link DeleteMessageBatchCommand}
|
|
37
38
|
*/
|
|
38
|
-
deleteMessageBatch(args: DeleteMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageBatchCommandOutput, SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
39
|
+
deleteMessageBatch(args: DeleteMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageBatchCommandOutput, Cause.TimeoutException | SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
39
40
|
/**
|
|
40
41
|
* @see {@link DeleteQueueCommand}
|
|
41
42
|
*/
|
|
42
|
-
deleteQueue(args: DeleteQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
43
|
+
deleteQueue(args: DeleteQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteQueueCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
43
44
|
/**
|
|
44
45
|
* @see {@link GetQueueAttributesCommand}
|
|
45
46
|
*/
|
|
46
|
-
getQueueAttributes(args: GetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueAttributesCommandOutput, SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
47
|
+
getQueueAttributes(args: GetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueAttributesCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
47
48
|
/**
|
|
48
49
|
* @see {@link GetQueueUrlCommand}
|
|
49
50
|
*/
|
|
50
|
-
getQueueUrl(args: GetQueueUrlCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueUrlCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
51
|
+
getQueueUrl(args: GetQueueUrlCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueUrlCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
51
52
|
/**
|
|
52
53
|
* @see {@link ListDeadLetterSourceQueuesCommand}
|
|
53
54
|
*/
|
|
54
|
-
listDeadLetterSourceQueues(args: ListDeadLetterSourceQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDeadLetterSourceQueuesCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
55
|
+
listDeadLetterSourceQueues(args: ListDeadLetterSourceQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDeadLetterSourceQueuesCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
55
56
|
/**
|
|
56
57
|
* @see {@link ListMessageMoveTasksCommand}
|
|
57
58
|
*/
|
|
58
|
-
listMessageMoveTasks(args: ListMessageMoveTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListMessageMoveTasksCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
59
|
+
listMessageMoveTasks(args: ListMessageMoveTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListMessageMoveTasksCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
59
60
|
/**
|
|
60
61
|
* @see {@link ListQueueTagsCommand}
|
|
61
62
|
*/
|
|
62
|
-
listQueueTags(args: ListQueueTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueueTagsCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
63
|
+
listQueueTags(args: ListQueueTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueueTagsCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
63
64
|
/**
|
|
64
65
|
* @see {@link ListQueuesCommand}
|
|
65
66
|
*/
|
|
66
|
-
listQueues(args: ListQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueuesCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | UnsupportedOperationError>;
|
|
67
|
+
listQueues(args: ListQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueuesCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | UnsupportedOperationError>;
|
|
67
68
|
/**
|
|
68
69
|
* @see {@link PurgeQueueCommand}
|
|
69
70
|
*/
|
|
70
|
-
purgeQueue(args: PurgeQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<PurgeQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | PurgeQueueInProgressError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
71
|
+
purgeQueue(args: PurgeQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<PurgeQueueCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | PurgeQueueInProgressError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
71
72
|
/**
|
|
72
73
|
* @see {@link ReceiveMessageCommand}
|
|
73
74
|
*/
|
|
74
|
-
receiveMessage(args: ReceiveMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<ReceiveMessageCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
75
|
+
receiveMessage(args: ReceiveMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<ReceiveMessageCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
75
76
|
/**
|
|
76
77
|
* @see {@link RemovePermissionCommand}
|
|
77
78
|
*/
|
|
78
|
-
removePermission(args: RemovePermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemovePermissionCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
79
|
+
removePermission(args: RemovePermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemovePermissionCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
79
80
|
/**
|
|
80
81
|
* @see {@link SendMessageCommand}
|
|
81
82
|
*/
|
|
82
|
-
sendMessage(args: SendMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageCommandOutput, SdkError | InvalidAddressError | InvalidMessageContentsError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
83
|
+
sendMessage(args: SendMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidMessageContentsError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
83
84
|
/**
|
|
84
85
|
* @see {@link SendMessageBatchCommand}
|
|
85
86
|
*/
|
|
86
|
-
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>;
|
|
87
|
+
sendMessageBatch(args: SendMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageBatchCommandOutput, Cause.TimeoutException | SdkError | BatchEntryIdsNotDistinctError | BatchRequestTooLongError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
87
88
|
/**
|
|
88
89
|
* @see {@link SetQueueAttributesCommand}
|
|
89
90
|
*/
|
|
90
|
-
setQueueAttributes(args: SetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetQueueAttributesCommandOutput, SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
91
|
+
setQueueAttributes(args: SetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetQueueAttributesCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
91
92
|
/**
|
|
92
93
|
* @see {@link StartMessageMoveTaskCommand}
|
|
93
94
|
*/
|
|
94
|
-
startMessageMoveTask(args: StartMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartMessageMoveTaskCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
95
|
+
startMessageMoveTask(args: StartMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartMessageMoveTaskCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
95
96
|
/**
|
|
96
97
|
* @see {@link TagQueueCommand}
|
|
97
98
|
*/
|
|
98
|
-
tagQueue(args: TagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
99
|
+
tagQueue(args: TagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagQueueCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
99
100
|
/**
|
|
100
101
|
* @see {@link UntagQueueCommand}
|
|
101
102
|
*/
|
|
102
|
-
untagQueue(args: UntagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
103
|
+
untagQueue(args: UntagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagQueueCommandOutput, Cause.TimeoutException | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
103
104
|
}
|
|
104
105
|
/**
|
|
105
106
|
* @since 1.0.0
|
|
@@ -107,7 +108,7 @@ interface SQSService$ {
|
|
|
107
108
|
*/
|
|
108
109
|
export declare const makeSQSService: Effect.Effect<SQSService$, never, Instance.SQSClientInstance>;
|
|
109
110
|
declare const SQSService_base: import("effect/Context").TagClass<SQSService, "@effect-aws/client-sqs/SQSService", SQSService$> & Effect.Tag.Proxy<SQSService, SQSService$> & {
|
|
110
|
-
use: <X>(body: (_: SQSService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SQSService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1,
|
|
111
|
+
use: <X>(body: (_: SQSService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SQSService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, SQSService> : Effect.Effect<X, never, SQSService>;
|
|
111
112
|
};
|
|
112
113
|
/**
|
|
113
114
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SQSService.d.ts","sourceRoot":"","sources":["../../src/SQSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,wCAAwC,EAC7C,KAAK,yCAAyC,EAE9C,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,sCA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B,GACpB,sBAAsB,GACtB,qBAAqB,GACrB,yBAAyB,CAC5B,CAAC;IAEF;;OAEG;IACH,UAAU,CACR,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,uBAAuB,EACrB,KAAK,CAAC,gBAAgB,GACtB,QAAQ,GACR,mBAAmB,GACnB,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,GACrB,yBAAyB,CAC5B,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,+DAWzB,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,UAAW,SAAQ,eAG7B;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,wCAA0E;IACtG,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,WAAW,MAAM,2CAI9C;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,eAAe,KAAK,SAAS,2CASrD;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC;QAC7D,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
package/dist/esm/Errors.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
2
1
|
export const AllServiceErrors = [
|
|
3
2
|
"BatchEntryIdsNotDistinct",
|
|
4
3
|
"BatchRequestTooLong",
|
|
@@ -29,5 +28,4 @@ export const AllServiceErrors = [
|
|
|
29
28
|
"TooManyEntriesInBatchRequest",
|
|
30
29
|
"UnsupportedOperation",
|
|
31
30
|
];
|
|
32
|
-
export const SdkError = CommonSdkError;
|
|
33
31
|
//# sourceMappingURL=Errors.js.map
|
package/dist/esm/Errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAgCA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,0BAA0B;IAC1B,qBAAqB;IACrB,mBAAmB;IACnB,gBAAgB;IAChB,sBAAsB;IACtB,uBAAuB;IACvB,qBAAqB;IACrB,iBAAiB;IACjB,wBAAwB;IACxB,iBAAiB;IACjB,iBAAiB;IACjB,aAAa;IACb,oBAAoB;IACpB,iBAAiB;IACjB,aAAa;IACb,kBAAkB;IAClB,cAAc;IACd,oBAAoB;IACpB,WAAW;IACX,sBAAsB;IACtB,sBAAsB;IACtB,mBAAmB;IACnB,iBAAiB;IACjB,wBAAwB;IACxB,kBAAkB;IAClB,2BAA2B;IAC3B,8BAA8B;IAC9B,sBAAsB;CACd,CAAC"}
|
package/dist/esm/SQSService.js
CHANGED
|
@@ -38,7 +38,7 @@ const commands = {
|
|
|
38
38
|
*/
|
|
39
39
|
export const makeSQSService = Effect.gen(function* () {
|
|
40
40
|
const client = yield* Instance.SQSClientInstance;
|
|
41
|
-
return Service.fromClientAndCommands(client, commands, {
|
|
41
|
+
return yield* Service.fromClientAndCommands(client, commands, {
|
|
42
42
|
errorTags: AllServiceErrors,
|
|
43
43
|
resolveClientConfig: SQSServiceConfig.toSQSClientConfig,
|
|
44
44
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SQSService.js","sourceRoot":"","sources":["../../src/SQSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,oBAAoB,EAGpB,4BAA4B,EAG5B,mCAAmC,EAGnC,8BAA8B,EAG9B,kBAAkB,EAGlB,yBAAyB,EAGzB,oBAAoB,EAGpB,kBAAkB,EAGlB,yBAAyB,EAGzB,kBAAkB,EAGlB,iCAAiC,EAGjC,2BA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B,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CACzD,CACF,CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-sqs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "Effectful AWS SQS client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/client-sqs",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-sqs": "^3",
|
|
19
|
-
"@effect-aws/commons": "^0.
|
|
19
|
+
"@effect-aws/commons": "^0.3.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"effect": ">=3.0.4 <4.0.0"
|
package/src/Errors.ts
CHANGED
|
@@ -29,7 +29,6 @@ import type {
|
|
|
29
29
|
UnsupportedOperation,
|
|
30
30
|
} from "@aws-sdk/client-sqs";
|
|
31
31
|
import type { TaggedException } from "@effect-aws/commons";
|
|
32
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
33
32
|
|
|
34
33
|
export const AllServiceErrors = [
|
|
35
34
|
"BatchEntryIdsNotDistinct",
|
|
@@ -90,6 +89,4 @@ export type RequestThrottledError = TaggedException<RequestThrottled>;
|
|
|
90
89
|
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
91
90
|
export type TooManyEntriesInBatchRequestError = TaggedException<TooManyEntriesInBatchRequest>;
|
|
92
91
|
export type UnsupportedOperationError = TaggedException<UnsupportedOperation>;
|
|
93
|
-
|
|
94
|
-
export type SdkError = CommonSdkError;
|
|
95
|
-
export const SdkError = CommonSdkError;
|
|
92
|
+
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
|
package/src/SQSService.ts
CHANGED
|
@@ -74,8 +74,9 @@ import {
|
|
|
74
74
|
type UntagQueueCommandInput,
|
|
75
75
|
type UntagQueueCommandOutput,
|
|
76
76
|
} from "@aws-sdk/client-sqs";
|
|
77
|
-
import type { HttpHandlerOptions,
|
|
77
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
78
78
|
import { Service } from "@effect-aws/commons";
|
|
79
|
+
import type { Cause } from "effect";
|
|
79
80
|
import { Effect, Layer } from "effect";
|
|
80
81
|
import type {
|
|
81
82
|
BatchEntryIdsNotDistinctError,
|
|
@@ -104,6 +105,7 @@ import type {
|
|
|
104
105
|
ReceiptHandleIsInvalidError,
|
|
105
106
|
RequestThrottledError,
|
|
106
107
|
ResourceNotFoundError,
|
|
108
|
+
SdkError,
|
|
107
109
|
TooManyEntriesInBatchRequestError,
|
|
108
110
|
UnsupportedOperationError,
|
|
109
111
|
} from "./Errors.js";
|
|
@@ -148,6 +150,7 @@ interface SQSService$ {
|
|
|
148
150
|
options?: HttpHandlerOptions,
|
|
149
151
|
): Effect.Effect<
|
|
150
152
|
AddPermissionCommandOutput,
|
|
153
|
+
| Cause.TimeoutException
|
|
151
154
|
| SdkError
|
|
152
155
|
| InvalidAddressError
|
|
153
156
|
| InvalidSecurityError
|
|
@@ -165,6 +168,7 @@ interface SQSService$ {
|
|
|
165
168
|
options?: HttpHandlerOptions,
|
|
166
169
|
): Effect.Effect<
|
|
167
170
|
CancelMessageMoveTaskCommandOutput,
|
|
171
|
+
| Cause.TimeoutException
|
|
168
172
|
| SdkError
|
|
169
173
|
| InvalidAddressError
|
|
170
174
|
| InvalidSecurityError
|
|
@@ -181,6 +185,7 @@ interface SQSService$ {
|
|
|
181
185
|
options?: HttpHandlerOptions,
|
|
182
186
|
): Effect.Effect<
|
|
183
187
|
ChangeMessageVisibilityCommandOutput,
|
|
188
|
+
| Cause.TimeoutException
|
|
184
189
|
| SdkError
|
|
185
190
|
| InvalidAddressError
|
|
186
191
|
| InvalidSecurityError
|
|
@@ -199,6 +204,7 @@ interface SQSService$ {
|
|
|
199
204
|
options?: HttpHandlerOptions,
|
|
200
205
|
): Effect.Effect<
|
|
201
206
|
ChangeMessageVisibilityBatchCommandOutput,
|
|
207
|
+
| Cause.TimeoutException
|
|
202
208
|
| SdkError
|
|
203
209
|
| BatchEntryIdsNotDistinctError
|
|
204
210
|
| EmptyBatchRequestError
|
|
@@ -219,6 +225,7 @@ interface SQSService$ {
|
|
|
219
225
|
options?: HttpHandlerOptions,
|
|
220
226
|
): Effect.Effect<
|
|
221
227
|
CreateQueueCommandOutput,
|
|
228
|
+
| Cause.TimeoutException
|
|
222
229
|
| SdkError
|
|
223
230
|
| InvalidAddressError
|
|
224
231
|
| InvalidAttributeNameError
|
|
@@ -238,6 +245,7 @@ interface SQSService$ {
|
|
|
238
245
|
options?: HttpHandlerOptions,
|
|
239
246
|
): Effect.Effect<
|
|
240
247
|
DeleteMessageCommandOutput,
|
|
248
|
+
| Cause.TimeoutException
|
|
241
249
|
| SdkError
|
|
242
250
|
| InvalidAddressError
|
|
243
251
|
| InvalidIdFormatError
|
|
@@ -256,6 +264,7 @@ interface SQSService$ {
|
|
|
256
264
|
options?: HttpHandlerOptions,
|
|
257
265
|
): Effect.Effect<
|
|
258
266
|
DeleteMessageBatchCommandOutput,
|
|
267
|
+
| Cause.TimeoutException
|
|
259
268
|
| SdkError
|
|
260
269
|
| BatchEntryIdsNotDistinctError
|
|
261
270
|
| EmptyBatchRequestError
|
|
@@ -276,6 +285,7 @@ interface SQSService$ {
|
|
|
276
285
|
options?: HttpHandlerOptions,
|
|
277
286
|
): Effect.Effect<
|
|
278
287
|
DeleteQueueCommandOutput,
|
|
288
|
+
| Cause.TimeoutException
|
|
279
289
|
| SdkError
|
|
280
290
|
| InvalidAddressError
|
|
281
291
|
| InvalidSecurityError
|
|
@@ -292,6 +302,7 @@ interface SQSService$ {
|
|
|
292
302
|
options?: HttpHandlerOptions,
|
|
293
303
|
): Effect.Effect<
|
|
294
304
|
GetQueueAttributesCommandOutput,
|
|
305
|
+
| Cause.TimeoutException
|
|
295
306
|
| SdkError
|
|
296
307
|
| InvalidAddressError
|
|
297
308
|
| InvalidAttributeNameError
|
|
@@ -309,6 +320,7 @@ interface SQSService$ {
|
|
|
309
320
|
options?: HttpHandlerOptions,
|
|
310
321
|
): Effect.Effect<
|
|
311
322
|
GetQueueUrlCommandOutput,
|
|
323
|
+
| Cause.TimeoutException
|
|
312
324
|
| SdkError
|
|
313
325
|
| InvalidAddressError
|
|
314
326
|
| InvalidSecurityError
|
|
@@ -325,6 +337,7 @@ interface SQSService$ {
|
|
|
325
337
|
options?: HttpHandlerOptions,
|
|
326
338
|
): Effect.Effect<
|
|
327
339
|
ListDeadLetterSourceQueuesCommandOutput,
|
|
340
|
+
| Cause.TimeoutException
|
|
328
341
|
| SdkError
|
|
329
342
|
| InvalidAddressError
|
|
330
343
|
| InvalidSecurityError
|
|
@@ -341,6 +354,7 @@ interface SQSService$ {
|
|
|
341
354
|
options?: HttpHandlerOptions,
|
|
342
355
|
): Effect.Effect<
|
|
343
356
|
ListMessageMoveTasksCommandOutput,
|
|
357
|
+
| Cause.TimeoutException
|
|
344
358
|
| SdkError
|
|
345
359
|
| InvalidAddressError
|
|
346
360
|
| InvalidSecurityError
|
|
@@ -357,6 +371,7 @@ interface SQSService$ {
|
|
|
357
371
|
options?: HttpHandlerOptions,
|
|
358
372
|
): Effect.Effect<
|
|
359
373
|
ListQueueTagsCommandOutput,
|
|
374
|
+
| Cause.TimeoutException
|
|
360
375
|
| SdkError
|
|
361
376
|
| InvalidAddressError
|
|
362
377
|
| InvalidSecurityError
|
|
@@ -373,7 +388,12 @@ interface SQSService$ {
|
|
|
373
388
|
options?: HttpHandlerOptions,
|
|
374
389
|
): Effect.Effect<
|
|
375
390
|
ListQueuesCommandOutput,
|
|
376
|
-
|
|
391
|
+
| Cause.TimeoutException
|
|
392
|
+
| SdkError
|
|
393
|
+
| InvalidAddressError
|
|
394
|
+
| InvalidSecurityError
|
|
395
|
+
| RequestThrottledError
|
|
396
|
+
| UnsupportedOperationError
|
|
377
397
|
>;
|
|
378
398
|
|
|
379
399
|
/**
|
|
@@ -384,6 +404,7 @@ interface SQSService$ {
|
|
|
384
404
|
options?: HttpHandlerOptions,
|
|
385
405
|
): Effect.Effect<
|
|
386
406
|
PurgeQueueCommandOutput,
|
|
407
|
+
| Cause.TimeoutException
|
|
387
408
|
| SdkError
|
|
388
409
|
| InvalidAddressError
|
|
389
410
|
| InvalidSecurityError
|
|
@@ -401,6 +422,7 @@ interface SQSService$ {
|
|
|
401
422
|
options?: HttpHandlerOptions,
|
|
402
423
|
): Effect.Effect<
|
|
403
424
|
ReceiveMessageCommandOutput,
|
|
425
|
+
| Cause.TimeoutException
|
|
404
426
|
| SdkError
|
|
405
427
|
| InvalidAddressError
|
|
406
428
|
| InvalidSecurityError
|
|
@@ -425,6 +447,7 @@ interface SQSService$ {
|
|
|
425
447
|
options?: HttpHandlerOptions,
|
|
426
448
|
): Effect.Effect<
|
|
427
449
|
RemovePermissionCommandOutput,
|
|
450
|
+
| Cause.TimeoutException
|
|
428
451
|
| SdkError
|
|
429
452
|
| InvalidAddressError
|
|
430
453
|
| InvalidSecurityError
|
|
@@ -441,6 +464,7 @@ interface SQSService$ {
|
|
|
441
464
|
options?: HttpHandlerOptions,
|
|
442
465
|
): Effect.Effect<
|
|
443
466
|
SendMessageCommandOutput,
|
|
467
|
+
| Cause.TimeoutException
|
|
444
468
|
| SdkError
|
|
445
469
|
| InvalidAddressError
|
|
446
470
|
| InvalidMessageContentsError
|
|
@@ -465,6 +489,7 @@ interface SQSService$ {
|
|
|
465
489
|
options?: HttpHandlerOptions,
|
|
466
490
|
): Effect.Effect<
|
|
467
491
|
SendMessageBatchCommandOutput,
|
|
492
|
+
| Cause.TimeoutException
|
|
468
493
|
| SdkError
|
|
469
494
|
| BatchEntryIdsNotDistinctError
|
|
470
495
|
| BatchRequestTooLongError
|
|
@@ -493,6 +518,7 @@ interface SQSService$ {
|
|
|
493
518
|
options?: HttpHandlerOptions,
|
|
494
519
|
): Effect.Effect<
|
|
495
520
|
SetQueueAttributesCommandOutput,
|
|
521
|
+
| Cause.TimeoutException
|
|
496
522
|
| SdkError
|
|
497
523
|
| InvalidAddressError
|
|
498
524
|
| InvalidAttributeNameError
|
|
@@ -512,6 +538,7 @@ interface SQSService$ {
|
|
|
512
538
|
options?: HttpHandlerOptions,
|
|
513
539
|
): Effect.Effect<
|
|
514
540
|
StartMessageMoveTaskCommandOutput,
|
|
541
|
+
| Cause.TimeoutException
|
|
515
542
|
| SdkError
|
|
516
543
|
| InvalidAddressError
|
|
517
544
|
| InvalidSecurityError
|
|
@@ -528,6 +555,7 @@ interface SQSService$ {
|
|
|
528
555
|
options?: HttpHandlerOptions,
|
|
529
556
|
): Effect.Effect<
|
|
530
557
|
TagQueueCommandOutput,
|
|
558
|
+
| Cause.TimeoutException
|
|
531
559
|
| SdkError
|
|
532
560
|
| InvalidAddressError
|
|
533
561
|
| InvalidSecurityError
|
|
@@ -544,6 +572,7 @@ interface SQSService$ {
|
|
|
544
572
|
options?: HttpHandlerOptions,
|
|
545
573
|
): Effect.Effect<
|
|
546
574
|
UntagQueueCommandOutput,
|
|
575
|
+
| Cause.TimeoutException
|
|
547
576
|
| SdkError
|
|
548
577
|
| InvalidAddressError
|
|
549
578
|
| InvalidSecurityError
|
|
@@ -560,7 +589,7 @@ interface SQSService$ {
|
|
|
560
589
|
export const makeSQSService = Effect.gen(function*() {
|
|
561
590
|
const client = yield* Instance.SQSClientInstance;
|
|
562
591
|
|
|
563
|
-
return Service.fromClientAndCommands<SQSService$>(
|
|
592
|
+
return yield* Service.fromClientAndCommands<SQSService$>(
|
|
564
593
|
client,
|
|
565
594
|
commands,
|
|
566
595
|
{
|