@effect-aws/client-sns 1.6.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/SNSClientInstance/package.json +6 -0
- package/SNSService/package.json +6 -0
- package/SNSServiceConfig/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 +42 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/SNSClientInstance.d.ts +24 -0
- package/dist/cjs/SNSClientInstance.d.ts.map +1 -0
- package/dist/cjs/SNSClientInstance.js +50 -0
- package/dist/cjs/SNSClientInstance.js.map +1 -0
- package/dist/cjs/SNSService.d.ts +209 -0
- package/dist/cjs/SNSService.d.ts.map +1 -0
- package/dist/cjs/SNSService.js +101 -0
- package/dist/cjs/SNSService.js.map +1 -0
- package/dist/cjs/SNSServiceConfig.d.ts +25 -0
- package/dist/cjs/SNSServiceConfig.d.ts.map +1 -0
- package/dist/cjs/SNSServiceConfig.js +35 -0
- package/dist/cjs/SNSServiceConfig.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 +41 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/SNSClientInstance.d.ts +24 -0
- package/dist/dts/SNSClientInstance.d.ts.map +1 -0
- package/dist/dts/SNSService.d.ts +209 -0
- package/dist/dts/SNSService.d.ts.map +1 -0
- package/dist/dts/SNSServiceConfig.d.ts +25 -0
- package/dist/dts/SNSServiceConfig.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 +39 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/SNSClientInstance.js +23 -0
- package/dist/esm/SNSClientInstance.js.map +1 -0
- package/dist/esm/SNSService.js +74 -0
- package/dist/esm/SNSService.js.map +1 -0
- package/dist/esm/SNSServiceConfig.js +31 -0
- package/dist/esm/SNSServiceConfig.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 +113 -0
- package/src/SNSClientInstance.ts +33 -0
- package/src/SNSService.ts +846 -0
- package/src/SNSServiceConfig.ts +51 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -113
- package/docgen.json +0 -8
- package/lib/Errors.js +0 -42
- package/lib/SNSClientInstance.d.ts +0 -31
- package/lib/SNSClientInstance.js +0 -57
- package/lib/SNSClientInstanceConfig.d.ts +0 -23
- package/lib/SNSClientInstanceConfig.js +0 -44
- package/lib/SNSService.d.ts +0 -275
- package/lib/SNSService.js +0 -130
- package/lib/esm/Errors.js +0 -39
- package/lib/esm/SNSClientInstance.js +0 -30
- package/lib/esm/SNSClientInstanceConfig.js +0 -40
- package/lib/esm/SNSService.js +0 -126
- package/lib/esm/index.js +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -21
- package/project.json +0 -77
- package/vitest.config.ts +0 -3
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { SNSService } from "./SNSService.js";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export * from "./Errors.js";
|
|
9
|
+
/**
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
export * as SNSClientInstance from "./SNSClientInstance.js";
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*/
|
|
16
|
+
export * as SNSServiceConfig from "./SNSServiceConfig.js";
|
|
17
|
+
/**
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
export * from "./SNSService.js";
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
* @category exports
|
|
24
|
+
* @alias SNSService
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace SNS {
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
* @alias SNSService.Config
|
|
30
|
+
*/
|
|
31
|
+
type Config = SNSService.Config;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category exports
|
|
36
|
+
* @alias SNSService
|
|
37
|
+
*/
|
|
38
|
+
export declare const SNS: typeof SNSService;
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,cAAc,iBAAiB,CAAC;AAEhC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B;;;OAGG;IACH,KAAY,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;CACxC;AAED;;;;GAIG;AACH,eAAO,MAAM,GAAG,mBAAa,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.SNS = exports.SNSServiceConfig = exports.SNSClientInstance = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* @since 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
const SNSService_js_1 = require("./SNSService.js");
|
|
34
|
+
/**
|
|
35
|
+
* @since 1.0.0
|
|
36
|
+
*/
|
|
37
|
+
__exportStar(require("./Errors.js"), exports);
|
|
38
|
+
/**
|
|
39
|
+
* @since 1.0.0
|
|
40
|
+
*/
|
|
41
|
+
exports.SNSClientInstance = __importStar(require("./SNSClientInstance.js"));
|
|
42
|
+
/**
|
|
43
|
+
* @since 1.0.0
|
|
44
|
+
*/
|
|
45
|
+
exports.SNSServiceConfig = __importStar(require("./SNSServiceConfig.js"));
|
|
46
|
+
/**
|
|
47
|
+
* @since 1.0.0
|
|
48
|
+
*/
|
|
49
|
+
__exportStar(require("./SNSService.js"), exports);
|
|
50
|
+
/**
|
|
51
|
+
* @since 1.0.0
|
|
52
|
+
* @category exports
|
|
53
|
+
* @alias SNSService
|
|
54
|
+
*/
|
|
55
|
+
exports.SNS = SNSService_js_1.SNSService;
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,mDAA6C;AAE7C;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,4EAA4D;AAE5D;;GAEG;AACH,0EAA0D;AAE1D;;GAEG;AACH,kDAAgC;AAehC;;;;GAIG;AACU,QAAA,GAAG,GAAG,0BAAU,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { AuthorizationErrorException, BatchEntryIdsNotDistinctException, BatchRequestTooLongException, ConcurrentAccessException, EmptyBatchRequestException, EndpointDisabledException, FilterPolicyLimitExceededException, InternalErrorException, InvalidBatchEntryIdException, InvalidParameterException, InvalidParameterValueException, InvalidSecurityException, InvalidStateException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, NotFoundException, OptedOutException, PlatformApplicationDisabledException, ReplayLimitExceededException, ResourceNotFoundException, StaleTagException, SubscriptionLimitExceededException, TagLimitExceededException, TagPolicyException, ThrottledException, TooManyEntriesInBatchRequestException, TopicLimitExceededException, UserErrorException, ValidationException, VerificationException } from "@aws-sdk/client-sns";
|
|
2
|
+
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
|
+
export declare const AllServiceErrors: readonly ["AuthorizationErrorException", "BatchEntryIdsNotDistinctException", "BatchRequestTooLongException", "ConcurrentAccessException", "EmptyBatchRequestException", "EndpointDisabledException", "FilterPolicyLimitExceededException", "InternalErrorException", "InvalidBatchEntryIdException", "InvalidParameterException", "InvalidParameterValueException", "InvalidSecurityException", "InvalidStateException", "KMSAccessDeniedException", "KMSDisabledException", "KMSInvalidStateException", "KMSNotFoundException", "KMSOptInRequired", "KMSThrottlingException", "NotFoundException", "OptedOutException", "PlatformApplicationDisabledException", "ReplayLimitExceededException", "ResourceNotFoundException", "StaleTagException", "SubscriptionLimitExceededException", "TagLimitExceededException", "TagPolicyException", "ThrottledException", "TooManyEntriesInBatchRequestException", "TopicLimitExceededException", "UserErrorException", "ValidationException", "VerificationException"];
|
|
5
|
+
export type AuthorizationError = TaggedException<AuthorizationErrorException>;
|
|
6
|
+
export type BatchEntryIdsNotDistinctError = TaggedException<BatchEntryIdsNotDistinctException>;
|
|
7
|
+
export type BatchRequestTooLongError = TaggedException<BatchRequestTooLongException>;
|
|
8
|
+
export type ConcurrentAccessError = TaggedException<ConcurrentAccessException>;
|
|
9
|
+
export type EmptyBatchRequestError = TaggedException<EmptyBatchRequestException>;
|
|
10
|
+
export type EndpointDisabledError = TaggedException<EndpointDisabledException>;
|
|
11
|
+
export type FilterPolicyLimitExceededError = TaggedException<FilterPolicyLimitExceededException>;
|
|
12
|
+
export type InternalError = TaggedException<InternalErrorException>;
|
|
13
|
+
export type InvalidBatchEntryIdError = TaggedException<InvalidBatchEntryIdException>;
|
|
14
|
+
export type InvalidParameterError = TaggedException<InvalidParameterException>;
|
|
15
|
+
export type InvalidParameterValueError = TaggedException<InvalidParameterValueException>;
|
|
16
|
+
export type InvalidSecurityError = TaggedException<InvalidSecurityException>;
|
|
17
|
+
export type InvalidStateError = TaggedException<InvalidStateException>;
|
|
18
|
+
export type KMSAccessDeniedError = TaggedException<KMSAccessDeniedException>;
|
|
19
|
+
export type KMSDisabledError = TaggedException<KMSDisabledException>;
|
|
20
|
+
export type KMSInvalidStateError = TaggedException<KMSInvalidStateException>;
|
|
21
|
+
export type KMSNotFoundError = TaggedException<KMSNotFoundException>;
|
|
22
|
+
export type KMSOptInRequiredError = TaggedException<KMSOptInRequired>;
|
|
23
|
+
export type KMSThrottlingError = TaggedException<KMSThrottlingException>;
|
|
24
|
+
export type NotFoundError = TaggedException<NotFoundException>;
|
|
25
|
+
export type OptedOutError = TaggedException<OptedOutException>;
|
|
26
|
+
export type PlatformApplicationDisabledError = TaggedException<PlatformApplicationDisabledException>;
|
|
27
|
+
export type ReplayLimitExceededError = TaggedException<ReplayLimitExceededException>;
|
|
28
|
+
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
29
|
+
export type StaleTagError = TaggedException<StaleTagException>;
|
|
30
|
+
export type SubscriptionLimitExceededError = TaggedException<SubscriptionLimitExceededException>;
|
|
31
|
+
export type TagLimitExceededError = TaggedException<TagLimitExceededException>;
|
|
32
|
+
export type TagPolicyError = TaggedException<TagPolicyException>;
|
|
33
|
+
export type ThrottledError = TaggedException<ThrottledException>;
|
|
34
|
+
export type TooManyEntriesInBatchRequestError = TaggedException<TooManyEntriesInBatchRequestException>;
|
|
35
|
+
export type TopicLimitExceededError = TaggedException<TopicLimitExceededException>;
|
|
36
|
+
export type UserError = TaggedException<UserErrorException>;
|
|
37
|
+
export type ValidationError = TaggedException<ValidationException>;
|
|
38
|
+
export type VerificationError = TaggedException<VerificationException>;
|
|
39
|
+
export type SdkError = CommonSdkError;
|
|
40
|
+
export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
|
|
41
|
+
//# sourceMappingURL=Errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,iCAAiC,EACjC,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,yBAAyB,EACzB,kCAAkC,EAClC,sBAAsB,EACtB,4BAA4B,EAC5B,yBA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G,eAAe,CAAC,qCAAqC,CAAC,CAAC;AACvG,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AAEvE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { SNSClient } from "@aws-sdk/client-sns";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
declare const SNSClientInstance_base: Context.TagClass<SNSClientInstance, "@effect-aws/client-sns/SNSClientInstance", SNSClient>;
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export declare class SNSClientInstance extends SNSClientInstance_base {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export declare const make: Effect.Effect<SNSClient, never, import("effect/Scope").Scope>;
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export declare const layer: Layer.Layer<SNSClientInstance, never, never>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=SNSClientInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SNSClientInstance.d.ts","sourceRoot":"","sources":["../../src/SNSClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,sBAEN;CAAG;AAEpC;;;GAGG;AACH,eAAO,MAAM,IAAI,+DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,8CAAwC,CAAC"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { type AddPermissionCommandInput, type AddPermissionCommandOutput, type CheckIfPhoneNumberIsOptedOutCommandInput, type CheckIfPhoneNumberIsOptedOutCommandOutput, type ConfirmSubscriptionCommandInput, type ConfirmSubscriptionCommandOutput, type CreatePlatformApplicationCommandInput, type CreatePlatformApplicationCommandOutput, type CreatePlatformEndpointCommandInput, type CreatePlatformEndpointCommandOutput, type CreateSMSSandboxPhoneNumberCommandInput, type CreateSMSSandboxPhoneNumberCommandOutput, type CreateTopicCommandInput, type CreateTopicCommandOutput, type DeleteEndpointCommandInput, type DeleteEndpointCommandOutput, type DeletePlatformApplicationCommandInput, type DeletePlatformApplicationCommandOutput, type DeleteSMSSandboxPhoneNumberCommandInput, type DeleteSMSSandboxPhoneNumberCommandOutput, type DeleteTopicCommandInput, type DeleteTopicCommandOutput, type GetDataProtectionPolicyCommandInput, type GetDataProtectionPolicyCommandOutput, type GetEndpointAttributesCommandInput, type GetEndpointAttributesCommandOutput, type GetPlatformApplicationAttributesCommandInput, type GetPlatformApplicationAttributesCommandOutput, type GetSMSAttributesCommandInput, type GetSMSAttributesCommandOutput, type GetSMSSandboxAccountStatusCommandInput, type GetSMSSandboxAccountStatusCommandOutput, type GetSubscriptionAttributesCommandInput, type GetSubscriptionAttributesCommandOutput, type GetTopicAttributesCommandInput, type GetTopicAttributesCommandOutput, type ListEndpointsByPlatformApplicationCommandInput, type ListEndpointsByPlatformApplicationCommandOutput, type ListOriginationNumbersCommandInput, type ListOriginationNumbersCommandOutput, type ListPhoneNumbersOptedOutCommandInput, type ListPhoneNumbersOptedOutCommandOutput, type ListPlatformApplicationsCommandInput, type ListPlatformApplicationsCommandOutput, type ListSMSSandboxPhoneNumbersCommandInput, type ListSMSSandboxPhoneNumbersCommandOutput, type ListSubscriptionsByTopicCommandInput, type ListSubscriptionsByTopicCommandOutput, type ListSubscriptionsCommandInput, type ListSubscriptionsCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type ListTopicsCommandInput, type ListTopicsCommandOutput, type OptInPhoneNumberCommandInput, type OptInPhoneNumberCommandOutput, type PublishBatchCommandInput, type PublishBatchCommandOutput, type PublishCommandInput, type PublishCommandOutput, type PutDataProtectionPolicyCommandInput, type PutDataProtectionPolicyCommandOutput, type RemovePermissionCommandInput, type RemovePermissionCommandOutput, type SetEndpointAttributesCommandInput, type SetEndpointAttributesCommandOutput, type SetPlatformApplicationAttributesCommandInput, type SetPlatformApplicationAttributesCommandOutput, type SetSMSAttributesCommandInput, type SetSMSAttributesCommandOutput, type SetSubscriptionAttributesCommandInput, type SetSubscriptionAttributesCommandOutput, type SetTopicAttributesCommandInput, type SetTopicAttributesCommandOutput, type SNSClient, type SNSClientConfig, type SubscribeCommandInput, type SubscribeCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UnsubscribeCommandInput, type UnsubscribeCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type VerifySMSSandboxPhoneNumberCommandInput, type VerifySMSSandboxPhoneNumberCommandOutput } from "@aws-sdk/client-sns";
|
|
5
|
+
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import { Effect, Layer } from "effect";
|
|
7
|
+
import type { AuthorizationError, BatchEntryIdsNotDistinctError, BatchRequestTooLongError, ConcurrentAccessError, EmptyBatchRequestError, EndpointDisabledError, FilterPolicyLimitExceededError, InternalError, InvalidBatchEntryIdError, InvalidParameterError, InvalidParameterValueError, InvalidSecurityError, InvalidStateError, KMSAccessDeniedError, KMSDisabledError, KMSInvalidStateError, KMSNotFoundError, KMSOptInRequiredError, KMSThrottlingError, NotFoundError, OptedOutError, PlatformApplicationDisabledError, ReplayLimitExceededError, ResourceNotFoundError, StaleTagError, SubscriptionLimitExceededError, TagLimitExceededError, TagPolicyError, ThrottledError, TooManyEntriesInBatchRequestError, TopicLimitExceededError, UserError, ValidationError, VerificationError } from "./Errors.js";
|
|
8
|
+
import * as Instance from "./SNSClientInstance.js";
|
|
9
|
+
interface SNSService$ {
|
|
10
|
+
readonly _: unique symbol;
|
|
11
|
+
/**
|
|
12
|
+
* @see {@link AddPermissionCommand}
|
|
13
|
+
*/
|
|
14
|
+
addPermission(args: AddPermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddPermissionCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
|
|
15
|
+
/**
|
|
16
|
+
* @see {@link CheckIfPhoneNumberIsOptedOutCommand}
|
|
17
|
+
*/
|
|
18
|
+
checkIfPhoneNumberIsOptedOut(args: CheckIfPhoneNumberIsOptedOutCommandInput, options?: HttpHandlerOptions): Effect.Effect<CheckIfPhoneNumberIsOptedOutCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError>;
|
|
19
|
+
/**
|
|
20
|
+
* @see {@link ConfirmSubscriptionCommand}
|
|
21
|
+
*/
|
|
22
|
+
confirmSubscription(args: ConfirmSubscriptionCommandInput, options?: HttpHandlerOptions): Effect.Effect<ConfirmSubscriptionCommandOutput, SdkError | AuthorizationError | FilterPolicyLimitExceededError | InternalError | InvalidParameterError | NotFoundError | ReplayLimitExceededError | SubscriptionLimitExceededError>;
|
|
23
|
+
/**
|
|
24
|
+
* @see {@link CreatePlatformApplicationCommand}
|
|
25
|
+
*/
|
|
26
|
+
createPlatformApplication(args: CreatePlatformApplicationCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreatePlatformApplicationCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError>;
|
|
27
|
+
/**
|
|
28
|
+
* @see {@link CreatePlatformEndpointCommand}
|
|
29
|
+
*/
|
|
30
|
+
createPlatformEndpoint(args: CreatePlatformEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreatePlatformEndpointCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
|
|
31
|
+
/**
|
|
32
|
+
* @see {@link CreateSMSSandboxPhoneNumberCommand}
|
|
33
|
+
*/
|
|
34
|
+
createSMSSandboxPhoneNumber(args: CreateSMSSandboxPhoneNumberCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateSMSSandboxPhoneNumberCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | OptedOutError | ThrottledError | UserError>;
|
|
35
|
+
/**
|
|
36
|
+
* @see {@link CreateTopicCommand}
|
|
37
|
+
*/
|
|
38
|
+
createTopic(args: CreateTopicCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTopicCommandOutput, SdkError | AuthorizationError | ConcurrentAccessError | InternalError | InvalidParameterError | InvalidSecurityError | StaleTagError | TagLimitExceededError | TagPolicyError | TopicLimitExceededError>;
|
|
39
|
+
/**
|
|
40
|
+
* @see {@link DeleteEndpointCommand}
|
|
41
|
+
*/
|
|
42
|
+
deleteEndpoint(args: DeleteEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteEndpointCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError>;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link DeletePlatformApplicationCommand}
|
|
45
|
+
*/
|
|
46
|
+
deletePlatformApplication(args: DeletePlatformApplicationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeletePlatformApplicationCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError>;
|
|
47
|
+
/**
|
|
48
|
+
* @see {@link DeleteSMSSandboxPhoneNumberCommand}
|
|
49
|
+
*/
|
|
50
|
+
deleteSMSSandboxPhoneNumber(args: DeleteSMSSandboxPhoneNumberCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteSMSSandboxPhoneNumberCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ResourceNotFoundError | ThrottledError | UserError>;
|
|
51
|
+
/**
|
|
52
|
+
* @see {@link DeleteTopicCommand}
|
|
53
|
+
*/
|
|
54
|
+
deleteTopic(args: DeleteTopicCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTopicCommandOutput, SdkError | AuthorizationError | ConcurrentAccessError | InternalError | InvalidParameterError | InvalidStateError | NotFoundError | StaleTagError | TagPolicyError>;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link GetDataProtectionPolicyCommand}
|
|
57
|
+
*/
|
|
58
|
+
getDataProtectionPolicy(args: GetDataProtectionPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetDataProtectionPolicyCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | InvalidSecurityError | NotFoundError>;
|
|
59
|
+
/**
|
|
60
|
+
* @see {@link GetEndpointAttributesCommand}
|
|
61
|
+
*/
|
|
62
|
+
getEndpointAttributes(args: GetEndpointAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetEndpointAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link GetPlatformApplicationAttributesCommand}
|
|
65
|
+
*/
|
|
66
|
+
getPlatformApplicationAttributes(args: GetPlatformApplicationAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPlatformApplicationAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
|
|
67
|
+
/**
|
|
68
|
+
* @see {@link GetSMSAttributesCommand}
|
|
69
|
+
*/
|
|
70
|
+
getSMSAttributes(args: GetSMSAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSMSAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError>;
|
|
71
|
+
/**
|
|
72
|
+
* @see {@link GetSMSSandboxAccountStatusCommand}
|
|
73
|
+
*/
|
|
74
|
+
getSMSSandboxAccountStatus(args: GetSMSSandboxAccountStatusCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSMSSandboxAccountStatusCommandOutput, SdkError | AuthorizationError | InternalError | ThrottledError>;
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link GetSubscriptionAttributesCommand}
|
|
77
|
+
*/
|
|
78
|
+
getSubscriptionAttributes(args: GetSubscriptionAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSubscriptionAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
|
|
79
|
+
/**
|
|
80
|
+
* @see {@link GetTopicAttributesCommand}
|
|
81
|
+
*/
|
|
82
|
+
getTopicAttributes(args: GetTopicAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetTopicAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | InvalidSecurityError | NotFoundError>;
|
|
83
|
+
/**
|
|
84
|
+
* @see {@link ListEndpointsByPlatformApplicationCommand}
|
|
85
|
+
*/
|
|
86
|
+
listEndpointsByPlatformApplication(args: ListEndpointsByPlatformApplicationCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListEndpointsByPlatformApplicationCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
|
|
87
|
+
/**
|
|
88
|
+
* @see {@link ListOriginationNumbersCommand}
|
|
89
|
+
*/
|
|
90
|
+
listOriginationNumbers(args: ListOriginationNumbersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListOriginationNumbersCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError | ValidationError>;
|
|
91
|
+
/**
|
|
92
|
+
* @see {@link ListPhoneNumbersOptedOutCommand}
|
|
93
|
+
*/
|
|
94
|
+
listPhoneNumbersOptedOut(args: ListPhoneNumbersOptedOutCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListPhoneNumbersOptedOutCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError>;
|
|
95
|
+
/**
|
|
96
|
+
* @see {@link ListPlatformApplicationsCommand}
|
|
97
|
+
*/
|
|
98
|
+
listPlatformApplications(args: ListPlatformApplicationsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListPlatformApplicationsCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError>;
|
|
99
|
+
/**
|
|
100
|
+
* @see {@link ListSMSSandboxPhoneNumbersCommand}
|
|
101
|
+
*/
|
|
102
|
+
listSMSSandboxPhoneNumbers(args: ListSMSSandboxPhoneNumbersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSMSSandboxPhoneNumbersCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ResourceNotFoundError | ThrottledError>;
|
|
103
|
+
/**
|
|
104
|
+
* @see {@link ListSubscriptionsCommand}
|
|
105
|
+
*/
|
|
106
|
+
listSubscriptions(args: ListSubscriptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSubscriptionsCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError>;
|
|
107
|
+
/**
|
|
108
|
+
* @see {@link ListSubscriptionsByTopicCommand}
|
|
109
|
+
*/
|
|
110
|
+
listSubscriptionsByTopic(args: ListSubscriptionsByTopicCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSubscriptionsByTopicCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
|
|
111
|
+
/**
|
|
112
|
+
* @see {@link ListTagsForResourceCommand}
|
|
113
|
+
*/
|
|
114
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, SdkError | AuthorizationError | ConcurrentAccessError | InvalidParameterError | ResourceNotFoundError | TagPolicyError>;
|
|
115
|
+
/**
|
|
116
|
+
* @see {@link ListTopicsCommand}
|
|
117
|
+
*/
|
|
118
|
+
listTopics(args: ListTopicsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTopicsCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError>;
|
|
119
|
+
/**
|
|
120
|
+
* @see {@link OptInPhoneNumberCommand}
|
|
121
|
+
*/
|
|
122
|
+
optInPhoneNumber(args: OptInPhoneNumberCommandInput, options?: HttpHandlerOptions): Effect.Effect<OptInPhoneNumberCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError>;
|
|
123
|
+
/**
|
|
124
|
+
* @see {@link PublishCommand}
|
|
125
|
+
*/
|
|
126
|
+
publish(args: PublishCommandInput, options?: HttpHandlerOptions): Effect.Effect<PublishCommandOutput, SdkError | AuthorizationError | EndpointDisabledError | InternalError | InvalidParameterError | InvalidParameterValueError | InvalidSecurityError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | NotFoundError | PlatformApplicationDisabledError | ValidationError>;
|
|
127
|
+
/**
|
|
128
|
+
* @see {@link PublishBatchCommand}
|
|
129
|
+
*/
|
|
130
|
+
publishBatch(args: PublishBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<PublishBatchCommandOutput, SdkError | AuthorizationError | BatchEntryIdsNotDistinctError | BatchRequestTooLongError | EmptyBatchRequestError | EndpointDisabledError | InternalError | InvalidBatchEntryIdError | InvalidParameterError | InvalidParameterValueError | InvalidSecurityError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | NotFoundError | PlatformApplicationDisabledError | TooManyEntriesInBatchRequestError | ValidationError>;
|
|
131
|
+
/**
|
|
132
|
+
* @see {@link PutDataProtectionPolicyCommand}
|
|
133
|
+
*/
|
|
134
|
+
putDataProtectionPolicy(args: PutDataProtectionPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutDataProtectionPolicyCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | InvalidSecurityError | NotFoundError>;
|
|
135
|
+
/**
|
|
136
|
+
* @see {@link RemovePermissionCommand}
|
|
137
|
+
*/
|
|
138
|
+
removePermission(args: RemovePermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemovePermissionCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
|
|
139
|
+
/**
|
|
140
|
+
* @see {@link SetEndpointAttributesCommand}
|
|
141
|
+
*/
|
|
142
|
+
setEndpointAttributes(args: SetEndpointAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetEndpointAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
|
|
143
|
+
/**
|
|
144
|
+
* @see {@link SetPlatformApplicationAttributesCommand}
|
|
145
|
+
*/
|
|
146
|
+
setPlatformApplicationAttributes(args: SetPlatformApplicationAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetPlatformApplicationAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
|
|
147
|
+
/**
|
|
148
|
+
* @see {@link SetSMSAttributesCommand}
|
|
149
|
+
*/
|
|
150
|
+
setSMSAttributes(args: SetSMSAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetSMSAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError>;
|
|
151
|
+
/**
|
|
152
|
+
* @see {@link SetSubscriptionAttributesCommand}
|
|
153
|
+
*/
|
|
154
|
+
setSubscriptionAttributes(args: SetSubscriptionAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetSubscriptionAttributesCommandOutput, SdkError | AuthorizationError | FilterPolicyLimitExceededError | InternalError | InvalidParameterError | NotFoundError | ReplayLimitExceededError>;
|
|
155
|
+
/**
|
|
156
|
+
* @see {@link SetTopicAttributesCommand}
|
|
157
|
+
*/
|
|
158
|
+
setTopicAttributes(args: SetTopicAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetTopicAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | InvalidSecurityError | NotFoundError>;
|
|
159
|
+
/**
|
|
160
|
+
* @see {@link SubscribeCommand}
|
|
161
|
+
*/
|
|
162
|
+
subscribe(args: SubscribeCommandInput, options?: HttpHandlerOptions): Effect.Effect<SubscribeCommandOutput, SdkError | AuthorizationError | FilterPolicyLimitExceededError | InternalError | InvalidParameterError | InvalidSecurityError | NotFoundError | ReplayLimitExceededError | SubscriptionLimitExceededError>;
|
|
163
|
+
/**
|
|
164
|
+
* @see {@link TagResourceCommand}
|
|
165
|
+
*/
|
|
166
|
+
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, SdkError | AuthorizationError | ConcurrentAccessError | InvalidParameterError | ResourceNotFoundError | StaleTagError | TagLimitExceededError | TagPolicyError>;
|
|
167
|
+
/**
|
|
168
|
+
* @see {@link UnsubscribeCommand}
|
|
169
|
+
*/
|
|
170
|
+
unsubscribe(args: UnsubscribeCommandInput, options?: HttpHandlerOptions): Effect.Effect<UnsubscribeCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | InvalidSecurityError | NotFoundError>;
|
|
171
|
+
/**
|
|
172
|
+
* @see {@link UntagResourceCommand}
|
|
173
|
+
*/
|
|
174
|
+
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, SdkError | AuthorizationError | ConcurrentAccessError | InvalidParameterError | ResourceNotFoundError | StaleTagError | TagLimitExceededError | TagPolicyError>;
|
|
175
|
+
/**
|
|
176
|
+
* @see {@link VerifySMSSandboxPhoneNumberCommand}
|
|
177
|
+
*/
|
|
178
|
+
verifySMSSandboxPhoneNumber(args: VerifySMSSandboxPhoneNumberCommandInput, options?: HttpHandlerOptions): Effect.Effect<VerifySMSSandboxPhoneNumberCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ResourceNotFoundError | ThrottledError | VerificationError>;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* @since 1.0.0
|
|
182
|
+
* @category constructors
|
|
183
|
+
*/
|
|
184
|
+
export declare const makeSNSService: Effect.Effect<SNSService$, never, Instance.SNSClientInstance>;
|
|
185
|
+
declare const SNSService_base: import("effect/Context").TagClass<SNSService, "@effect-aws/client-sns/SNSService", SNSService$> & Effect.Tag.Proxy<SNSService, SNSService$> & {
|
|
186
|
+
use: <X>(body: (_: SNSService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SNSService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, SNSService> : Effect.Effect<X, never, SNSService>;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* @since 1.0.0
|
|
190
|
+
* @category models
|
|
191
|
+
*/
|
|
192
|
+
export declare class SNSService extends SNSService_base {
|
|
193
|
+
static readonly defaultLayer: Layer.Layer<SNSService, never, never>;
|
|
194
|
+
static readonly layer: (config: SNSService.Config) => Layer.Layer<SNSService, never, never>;
|
|
195
|
+
static readonly baseLayer: (evaluate: (defaultConfig: SNSClientConfig) => SNSClient) => Layer.Layer<SNSService, never, never>;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* @since 1.0.0
|
|
199
|
+
*/
|
|
200
|
+
export declare namespace SNSService {
|
|
201
|
+
/**
|
|
202
|
+
* @since 1.0.0
|
|
203
|
+
*/
|
|
204
|
+
interface Config extends Omit<SNSClientConfig, "logger"> {
|
|
205
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
export {};
|
|
209
|
+
//# sourceMappingURL=SNSService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SNSService.d.ts","sourceRoot":"","sources":["../../src/SNSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,yBAAyB,EAC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AAC;QAC7D,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import type { SNSClientConfig } from "@aws-sdk/client-sns";
|
|
5
|
+
import { Effect, Layer } from "effect";
|
|
6
|
+
import type { SNSService } from "./SNSService.js";
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category sns service config
|
|
10
|
+
*/
|
|
11
|
+
export declare const withSNSServiceConfig: {
|
|
12
|
+
(config: SNSService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
13
|
+
<A, E, R>(effect: Effect.Effect<A, E, R>, config: SNSService.Config): Effect.Effect<A, E, R>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
* @category sns service config
|
|
18
|
+
*/
|
|
19
|
+
export declare const setSNSServiceConfig: (config: SNSService.Config) => Layer.Layer<never, never, never>;
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category adapters
|
|
23
|
+
*/
|
|
24
|
+
export declare const toSNSClientConfig: Effect.Effect<SNSClientConfig>;
|
|
25
|
+
//# sourceMappingURL=SNSServiceConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SNSServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SNSServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAWlD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE;IACjC,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK9F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,WAAY,WAAW,MAAM,qCAAyD,CAAC;AAEvH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAQ3D,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { SNSService } from "./SNSService.js";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export * from "./Errors.js";
|
|
9
|
+
/**
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
export * as SNSClientInstance from "./SNSClientInstance.js";
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*/
|
|
16
|
+
export * as SNSServiceConfig from "./SNSServiceConfig.js";
|
|
17
|
+
/**
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
export * from "./SNSService.js";
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
* @category exports
|
|
24
|
+
* @alias SNSService
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace SNS {
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
* @alias SNSService.Config
|
|
30
|
+
*/
|
|
31
|
+
type Config = SNSService.Config;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category exports
|
|
36
|
+
* @alias SNSService
|
|
37
|
+
*/
|
|
38
|
+
export declare const SNS: typeof SNSService;
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,cAAc,iBAAiB,CAAC;AAEhC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B;;;OAGG;IACH,KAAY,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;CACxC;AAED;;;;GAIG;AACH,eAAO,MAAM,GAAG,mBAAa,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
2
|
+
export const AllServiceErrors = [
|
|
3
|
+
"AuthorizationErrorException",
|
|
4
|
+
"BatchEntryIdsNotDistinctException",
|
|
5
|
+
"BatchRequestTooLongException",
|
|
6
|
+
"ConcurrentAccessException",
|
|
7
|
+
"EmptyBatchRequestException",
|
|
8
|
+
"EndpointDisabledException",
|
|
9
|
+
"FilterPolicyLimitExceededException",
|
|
10
|
+
"InternalErrorException",
|
|
11
|
+
"InvalidBatchEntryIdException",
|
|
12
|
+
"InvalidParameterException",
|
|
13
|
+
"InvalidParameterValueException",
|
|
14
|
+
"InvalidSecurityException",
|
|
15
|
+
"InvalidStateException",
|
|
16
|
+
"KMSAccessDeniedException",
|
|
17
|
+
"KMSDisabledException",
|
|
18
|
+
"KMSInvalidStateException",
|
|
19
|
+
"KMSNotFoundException",
|
|
20
|
+
"KMSOptInRequired",
|
|
21
|
+
"KMSThrottlingException",
|
|
22
|
+
"NotFoundException",
|
|
23
|
+
"OptedOutException",
|
|
24
|
+
"PlatformApplicationDisabledException",
|
|
25
|
+
"ReplayLimitExceededException",
|
|
26
|
+
"ResourceNotFoundException",
|
|
27
|
+
"StaleTagException",
|
|
28
|
+
"SubscriptionLimitExceededException",
|
|
29
|
+
"TagLimitExceededException",
|
|
30
|
+
"TagPolicyException",
|
|
31
|
+
"ThrottledException",
|
|
32
|
+
"TooManyEntriesInBatchRequestException",
|
|
33
|
+
"TopicLimitExceededException",
|
|
34
|
+
"UserErrorException",
|
|
35
|
+
"ValidationException",
|
|
36
|
+
"VerificationException",
|
|
37
|
+
];
|
|
38
|
+
export const SdkError = CommonSdkError;
|
|
39
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAqCA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,6BAA6B;IAC7B,mCAAmC;IACnC,8BAA8B;IAC9B,2BAA2B;IAC3B,4BAA4B;IAC5B,2BAA2B;IAC3B,oCAAoC;IACpC,wBAAwB;IACxB,8BAA8B;IAC9B,2BAA2B;IAC3B,gCAAgC;IAChC,0BAA0B;IAC1B,uBAAuB;IACvB,0BAA0B;IAC1B,sBAAsB;IACtB,0BAA0B;IAC1B,sBAAsB;IACtB,kBAAkB;IAClB,wBAAwB;IACxB,mBAAmB;IACnB,mBAAmB;IACnB,sCAAsC;IACtC,8BAA8B;IAC9B,2BAA2B;IAC3B,mBAAmB;IACnB,oCAAoC;IACpC,2BAA2B;IAC3B,oBAAoB;IACpB,oBAAoB;IACpB,uCAAuC;IACvC,6BAA6B;IAC7B,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;CACf,CAAC;AAsCX,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { SNSClient } from "@aws-sdk/client-sns";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
import * as SNSServiceConfig from "./SNSServiceConfig.js";
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export class SNSClientInstance extends Context.Tag("@effect-aws/client-sns/SNSClientInstance")() {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export const make = Effect.flatMap(SNSServiceConfig.toSNSClientConfig, (config) => Effect.acquireRelease(Effect.sync(() => new SNSClient(config)), (client) => Effect.sync(() => client.destroy())));
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export const layer = Layer.scoped(SNSClientInstance, make);
|
|
23
|
+
//# sourceMappingURL=SNSClientInstance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SNSClientInstance.js","sourceRoot":"","sources":["../../src/SNSClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;;GAGG;AACH,MAAM,OAAO,iBAAkB,SAAQ,OAAO,CAAC,GAAG,CAChD,0CAA0C,CAC3C,EAAgC;CAAG;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,gBAAgB,CAAC,iBAAiB,EAClC,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC,EACxC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC"}
|