@effect-aws/client-mq 1.2.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.
Files changed (69) hide show
  1. package/Errors/package.json +6 -0
  2. package/MqClientInstance/package.json +6 -0
  3. package/MqService/package.json +6 -0
  4. package/MqServiceConfig/package.json +6 -0
  5. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  6. package/dist/cjs/Errors.d.ts.map +1 -0
  7. package/dist/cjs/Errors.js +14 -0
  8. package/dist/cjs/Errors.js.map +1 -0
  9. package/dist/cjs/MqClientInstance.d.ts +24 -0
  10. package/dist/cjs/MqClientInstance.d.ts.map +1 -0
  11. package/dist/cjs/MqClientInstance.js +50 -0
  12. package/dist/cjs/MqClientInstance.js.map +1 -0
  13. package/dist/cjs/MqService.d.ts +133 -0
  14. package/dist/cjs/MqService.d.ts.map +1 -0
  15. package/dist/cjs/MqService.js +82 -0
  16. package/dist/cjs/MqService.js.map +1 -0
  17. package/dist/cjs/MqServiceConfig.d.ts +25 -0
  18. package/dist/cjs/MqServiceConfig.d.ts.map +1 -0
  19. package/dist/cjs/MqServiceConfig.js +35 -0
  20. package/dist/cjs/MqServiceConfig.js.map +1 -0
  21. package/dist/cjs/index.d.ts +39 -0
  22. package/dist/cjs/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +56 -0
  24. package/dist/cjs/index.js.map +1 -0
  25. package/dist/dts/Errors.d.ts +13 -0
  26. package/dist/dts/Errors.d.ts.map +1 -0
  27. package/dist/dts/MqClientInstance.d.ts +24 -0
  28. package/dist/dts/MqClientInstance.d.ts.map +1 -0
  29. package/dist/dts/MqService.d.ts +133 -0
  30. package/dist/dts/MqService.d.ts.map +1 -0
  31. package/dist/dts/MqServiceConfig.d.ts +25 -0
  32. package/dist/dts/MqServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/index.d.ts +39 -0
  34. package/dist/dts/index.d.ts.map +1 -0
  35. package/dist/esm/Errors.js +11 -0
  36. package/dist/esm/Errors.js.map +1 -0
  37. package/dist/esm/MqClientInstance.js +23 -0
  38. package/dist/esm/MqClientInstance.js.map +1 -0
  39. package/dist/esm/MqService.js +55 -0
  40. package/dist/esm/MqService.js.map +1 -0
  41. package/dist/esm/MqServiceConfig.js +31 -0
  42. package/dist/esm/MqServiceConfig.js.map +1 -0
  43. package/dist/esm/index.js +27 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/package.json +4 -0
  46. package/package.json +60 -43
  47. package/src/Errors.ts +29 -0
  48. package/src/MqClientInstance.ts +33 -0
  49. package/src/MqService.ts +429 -0
  50. package/src/MqServiceConfig.ts +51 -0
  51. package/src/index.ts +44 -0
  52. package/CHANGELOG.md +0 -35
  53. package/docgen.json +0 -8
  54. package/lib/Errors.js +0 -14
  55. package/lib/MqClientInstance.d.ts +0 -31
  56. package/lib/MqClientInstance.js +0 -57
  57. package/lib/MqClientInstanceConfig.d.ts +0 -23
  58. package/lib/MqClientInstanceConfig.js +0 -44
  59. package/lib/MqService.d.ts +0 -180
  60. package/lib/MqService.js +0 -111
  61. package/lib/esm/Errors.js +0 -11
  62. package/lib/esm/MqClientInstance.js +0 -30
  63. package/lib/esm/MqClientInstanceConfig.js +0 -40
  64. package/lib/esm/MqService.js +0 -107
  65. package/lib/esm/index.js +0 -5
  66. package/lib/index.d.ts +0 -4
  67. package/lib/index.js +0 -21
  68. package/project.json +0 -77
  69. package/vitest.config.ts +0 -3
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/Errors.js",
3
+ "module": "../dist/esm/Errors.js",
4
+ "types": "../dist/dts/Errors.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/MqClientInstance.js",
3
+ "module": "../dist/esm/MqClientInstance.js",
4
+ "types": "../dist/dts/MqClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/MqService.js",
3
+ "module": "../dist/esm/MqService.js",
4
+ "types": "../dist/dts/MqService.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/MqServiceConfig.js",
3
+ "module": "../dist/esm/MqServiceConfig.js",
4
+ "types": "../dist/dts/MqServiceConfig.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -1,18 +1,13 @@
1
1
  import type { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, UnauthorizedException } from "@aws-sdk/client-mq";
2
- import { Data } from "effect";
3
- export declare const AllServiceErrors: string[];
4
- export type TaggedException<T extends {
5
- name: string;
6
- }> = T & {
7
- readonly _tag: T["name"];
8
- };
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["BadRequestException", "ConflictException", "ForbiddenException", "InternalServerErrorException", "NotFoundException", "UnauthorizedException"];
9
5
  export type BadRequestError = TaggedException<BadRequestException>;
10
6
  export type ConflictError = TaggedException<ConflictException>;
11
7
  export type ForbiddenError = TaggedException<ForbiddenException>;
12
8
  export type InternalServerError = TaggedException<InternalServerErrorException>;
13
9
  export type NotFoundError = TaggedException<NotFoundException>;
14
10
  export type UnauthorizedError = TaggedException<UnauthorizedException>;
15
- export type SdkError = TaggedException<Error & {
16
- name: "SdkError";
17
- }>;
18
- export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
11
+ export type SdkError = CommonSdkError;
12
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
13
+ //# 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,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,4BAA4B,EAC5B,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,2JAOnB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AAChF,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,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,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdkError = exports.AllServiceErrors = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ exports.AllServiceErrors = [
6
+ "BadRequestException",
7
+ "ConflictException",
8
+ "ForbiddenException",
9
+ "InternalServerErrorException",
10
+ "NotFoundException",
11
+ "UnauthorizedException",
12
+ ];
13
+ exports.SdkError = commons_1.SdkError;
14
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AASA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,qBAAqB;IACrB,mBAAmB;IACnB,oBAAoB;IACpB,8BAA8B;IAC9B,mBAAmB;IACnB,uBAAuB;CACf,CAAC;AAUE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { MqClient } from "@aws-sdk/client-mq";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const MqClientInstance_base: Context.TagClass<MqClientInstance, "@effect-aws/client-mq/MqClientInstance", MqClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class MqClientInstance extends MqClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<MqClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<MqClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=MqClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MqClientInstance.d.ts","sourceRoot":"","sources":["../../src/MqClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,qBAEP;CAAG;AAElC;;;GAGG;AACH,eAAO,MAAM,IAAI,8DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,6CAAuC,CAAC"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.layer = exports.make = exports.MqClientInstance = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_mq_1 = require("@aws-sdk/client-mq");
31
+ const effect_1 = require("effect");
32
+ const MqServiceConfig = __importStar(require("./MqServiceConfig.js"));
33
+ /**
34
+ * @since 1.0.0
35
+ * @category tags
36
+ */
37
+ class MqClientInstance extends effect_1.Context.Tag("@effect-aws/client-mq/MqClientInstance")() {
38
+ }
39
+ exports.MqClientInstance = MqClientInstance;
40
+ /**
41
+ * @since 1.0.0
42
+ * @category constructors
43
+ */
44
+ exports.make = effect_1.Effect.flatMap(MqServiceConfig.toMqClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_mq_1.MqClient(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
45
+ /**
46
+ * @since 1.0.0
47
+ * @category layers
48
+ */
49
+ exports.layer = effect_1.Layer.scoped(MqClientInstance, exports.make);
50
+ //# sourceMappingURL=MqClientInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MqClientInstance.js","sourceRoot":"","sources":["../../src/MqClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,kDAA8C;AAC9C,mCAAgD;AAChD,sEAAwD;AAExD;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,gBAAO,CAAC,GAAG,CAC/C,wCAAwC,CACzC,EAA8B;CAAG;AAFlC,4CAEkC;AAElC;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,eAAe,CAAC,gBAAgB,EAChC,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,oBAAQ,CAAC,MAAM,CAAC,CAAC,EACvC,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAI,CAAC,CAAC"}
@@ -0,0 +1,133 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { type CreateBrokerCommandInput, type CreateBrokerCommandOutput, type CreateConfigurationCommandInput, type CreateConfigurationCommandOutput, type CreateTagsCommandInput, type CreateTagsCommandOutput, type CreateUserCommandInput, type CreateUserCommandOutput, type DeleteBrokerCommandInput, type DeleteBrokerCommandOutput, type DeleteTagsCommandInput, type DeleteTagsCommandOutput, type DeleteUserCommandInput, type DeleteUserCommandOutput, type DescribeBrokerCommandInput, type DescribeBrokerCommandOutput, type DescribeBrokerEngineTypesCommandInput, type DescribeBrokerEngineTypesCommandOutput, type DescribeBrokerInstanceOptionsCommandInput, type DescribeBrokerInstanceOptionsCommandOutput, type DescribeConfigurationCommandInput, type DescribeConfigurationCommandOutput, type DescribeConfigurationRevisionCommandInput, type DescribeConfigurationRevisionCommandOutput, type DescribeUserCommandInput, type DescribeUserCommandOutput, type ListBrokersCommandInput, type ListBrokersCommandOutput, type ListConfigurationRevisionsCommandInput, type ListConfigurationRevisionsCommandOutput, type ListConfigurationsCommandInput, type ListConfigurationsCommandOutput, type ListTagsCommandInput, type ListTagsCommandOutput, type ListUsersCommandInput, type ListUsersCommandOutput, type MqClient, type MqClientConfig, type PromoteCommandInput, type PromoteCommandOutput, type RebootBrokerCommandInput, type RebootBrokerCommandOutput, type UpdateBrokerCommandInput, type UpdateBrokerCommandOutput, type UpdateConfigurationCommandInput, type UpdateConfigurationCommandOutput, type UpdateUserCommandInput, type UpdateUserCommandOutput } from "@aws-sdk/client-mq";
5
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
6
+ import { Effect, Layer } from "effect";
7
+ import type { BadRequestError, ConflictError, ForbiddenError, InternalServerError, NotFoundError, UnauthorizedError } from "./Errors.js";
8
+ import * as Instance from "./MqClientInstance.js";
9
+ interface MqService$ {
10
+ readonly _: unique symbol;
11
+ /**
12
+ * @see {@link CreateBrokerCommand}
13
+ */
14
+ createBroker(args: CreateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBrokerCommandOutput, SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | UnauthorizedError>;
15
+ /**
16
+ * @see {@link CreateConfigurationCommand}
17
+ */
18
+ createConfiguration(args: CreateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateConfigurationCommandOutput, SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError>;
19
+ /**
20
+ * @see {@link CreateTagsCommand}
21
+ */
22
+ createTags(args: CreateTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTagsCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
23
+ /**
24
+ * @see {@link CreateUserCommand}
25
+ */
26
+ createUser(args: CreateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateUserCommandOutput, SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
27
+ /**
28
+ * @see {@link DeleteBrokerCommand}
29
+ */
30
+ deleteBroker(args: DeleteBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteBrokerCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
31
+ /**
32
+ * @see {@link DeleteTagsCommand}
33
+ */
34
+ deleteTags(args: DeleteTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTagsCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
35
+ /**
36
+ * @see {@link DeleteUserCommand}
37
+ */
38
+ deleteUser(args: DeleteUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteUserCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
39
+ /**
40
+ * @see {@link DescribeBrokerCommand}
41
+ */
42
+ describeBroker(args: DescribeBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
43
+ /**
44
+ * @see {@link DescribeBrokerEngineTypesCommand}
45
+ */
46
+ describeBrokerEngineTypes(args: DescribeBrokerEngineTypesCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerEngineTypesCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError>;
47
+ /**
48
+ * @see {@link DescribeBrokerInstanceOptionsCommand}
49
+ */
50
+ describeBrokerInstanceOptions(args: DescribeBrokerInstanceOptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerInstanceOptionsCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError>;
51
+ /**
52
+ * @see {@link DescribeConfigurationCommand}
53
+ */
54
+ describeConfiguration(args: DescribeConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
55
+ /**
56
+ * @see {@link DescribeConfigurationRevisionCommand}
57
+ */
58
+ describeConfigurationRevision(args: DescribeConfigurationRevisionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationRevisionCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
59
+ /**
60
+ * @see {@link DescribeUserCommand}
61
+ */
62
+ describeUser(args: DescribeUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeUserCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
63
+ /**
64
+ * @see {@link ListBrokersCommand}
65
+ */
66
+ listBrokers(args: ListBrokersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListBrokersCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError>;
67
+ /**
68
+ * @see {@link ListConfigurationRevisionsCommand}
69
+ */
70
+ listConfigurationRevisions(args: ListConfigurationRevisionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationRevisionsCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
71
+ /**
72
+ * @see {@link ListConfigurationsCommand}
73
+ */
74
+ listConfigurations(args: ListConfigurationsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationsCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError>;
75
+ /**
76
+ * @see {@link ListTagsCommand}
77
+ */
78
+ listTags(args: ListTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
79
+ /**
80
+ * @see {@link ListUsersCommand}
81
+ */
82
+ listUsers(args: ListUsersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListUsersCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
83
+ /**
84
+ * @see {@link PromoteCommand}
85
+ */
86
+ promote(args: PromoteCommandInput, options?: HttpHandlerOptions): Effect.Effect<PromoteCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
87
+ /**
88
+ * @see {@link RebootBrokerCommand}
89
+ */
90
+ rebootBroker(args: RebootBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<RebootBrokerCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
91
+ /**
92
+ * @see {@link UpdateBrokerCommand}
93
+ */
94
+ updateBroker(args: UpdateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateBrokerCommandOutput, SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
95
+ /**
96
+ * @see {@link UpdateConfigurationCommand}
97
+ */
98
+ updateConfiguration(args: UpdateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateConfigurationCommandOutput, SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
99
+ /**
100
+ * @see {@link UpdateUserCommand}
101
+ */
102
+ updateUser(args: UpdateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateUserCommandOutput, SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
103
+ }
104
+ /**
105
+ * @since 1.0.0
106
+ * @category constructors
107
+ */
108
+ export declare const makeMqService: Effect.Effect<MqService$, never, Instance.MqClientInstance>;
109
+ declare const MqService_base: import("effect/Context").TagClass<MqService, "@effect-aws/client-mq/MqService", MqService$> & Effect.Tag.Proxy<MqService, MqService$> & {
110
+ use: <X>(body: (_: MqService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, MqService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, MqService> : Effect.Effect<X, never, MqService>;
111
+ };
112
+ /**
113
+ * @since 1.0.0
114
+ * @category models
115
+ */
116
+ export declare class MqService extends MqService_base {
117
+ static readonly defaultLayer: Layer.Layer<MqService, never, never>;
118
+ static readonly layer: (config: MqService.Config) => Layer.Layer<MqService, never, never>;
119
+ static readonly baseLayer: (evaluate: (defaultConfig: MqClientConfig) => MqClient) => Layer.Layer<MqService, never, never>;
120
+ }
121
+ /**
122
+ * @since 1.0.0
123
+ */
124
+ export declare namespace MqService {
125
+ /**
126
+ * @since 1.0.0
127
+ */
128
+ interface Config extends Omit<MqClientConfig, "logger"> {
129
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
130
+ }
131
+ }
132
+ export {};
133
+ //# sourceMappingURL=MqService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MqService.d.ts","sourceRoot":"","sources":["../../src/MqService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAE/C,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAE/C,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,sCAAsC,EAC3C,KAAK,uCAAuC,EAE5C,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAE1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,QAAQ,EACb,KAAK,cAAc,EAEnB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAEzB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC7B,MAAM,oBAAo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Ac,GAAG,mBAAmB,GAAG,aAAa,CAClG,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,6DAWxB,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,SAAU,SAAQ,cAG5B;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,uCAAyE;IACrG,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,UAAU,MAAM,0CAI7C;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,cAAc,KAAK,QAAQ,0CASnD;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC;QAC5D,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.MqService = exports.makeMqService = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_mq_1 = require("@aws-sdk/client-mq");
31
+ const commons_1 = require("@effect-aws/commons");
32
+ const effect_1 = require("effect");
33
+ const Errors_js_1 = require("./Errors.js");
34
+ const Instance = __importStar(require("./MqClientInstance.js"));
35
+ const MqServiceConfig = __importStar(require("./MqServiceConfig.js"));
36
+ const commands = {
37
+ CreateBrokerCommand: client_mq_1.CreateBrokerCommand,
38
+ CreateConfigurationCommand: client_mq_1.CreateConfigurationCommand,
39
+ CreateTagsCommand: client_mq_1.CreateTagsCommand,
40
+ CreateUserCommand: client_mq_1.CreateUserCommand,
41
+ DeleteBrokerCommand: client_mq_1.DeleteBrokerCommand,
42
+ DeleteTagsCommand: client_mq_1.DeleteTagsCommand,
43
+ DeleteUserCommand: client_mq_1.DeleteUserCommand,
44
+ DescribeBrokerCommand: client_mq_1.DescribeBrokerCommand,
45
+ DescribeBrokerEngineTypesCommand: client_mq_1.DescribeBrokerEngineTypesCommand,
46
+ DescribeBrokerInstanceOptionsCommand: client_mq_1.DescribeBrokerInstanceOptionsCommand,
47
+ DescribeConfigurationCommand: client_mq_1.DescribeConfigurationCommand,
48
+ DescribeConfigurationRevisionCommand: client_mq_1.DescribeConfigurationRevisionCommand,
49
+ DescribeUserCommand: client_mq_1.DescribeUserCommand,
50
+ ListBrokersCommand: client_mq_1.ListBrokersCommand,
51
+ ListConfigurationRevisionsCommand: client_mq_1.ListConfigurationRevisionsCommand,
52
+ ListConfigurationsCommand: client_mq_1.ListConfigurationsCommand,
53
+ ListTagsCommand: client_mq_1.ListTagsCommand,
54
+ ListUsersCommand: client_mq_1.ListUsersCommand,
55
+ PromoteCommand: client_mq_1.PromoteCommand,
56
+ RebootBrokerCommand: client_mq_1.RebootBrokerCommand,
57
+ UpdateBrokerCommand: client_mq_1.UpdateBrokerCommand,
58
+ UpdateConfigurationCommand: client_mq_1.UpdateConfigurationCommand,
59
+ UpdateUserCommand: client_mq_1.UpdateUserCommand,
60
+ };
61
+ /**
62
+ * @since 1.0.0
63
+ * @category constructors
64
+ */
65
+ exports.makeMqService = effect_1.Effect.gen(function* () {
66
+ const client = yield* Instance.MqClientInstance;
67
+ return commons_1.Service.fromClientAndCommands(client, commands, {
68
+ errorTags: Errors_js_1.AllServiceErrors,
69
+ resolveClientConfig: MqServiceConfig.toMqClientConfig,
70
+ });
71
+ });
72
+ /**
73
+ * @since 1.0.0
74
+ * @category models
75
+ */
76
+ class MqService extends effect_1.Effect.Tag("@effect-aws/client-mq/MqService")() {
77
+ static defaultLayer = effect_1.Layer.effect(this, exports.makeMqService).pipe(effect_1.Layer.provide(Instance.layer));
78
+ static layer = (config) => effect_1.Layer.effect(this, exports.makeMqService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(MqServiceConfig.setMqServiceConfig(config)));
79
+ static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeMqService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.MqClientInstance, effect_1.Effect.map(MqServiceConfig.toMqClientConfig, evaluate))));
80
+ }
81
+ exports.MqService = MqService;
82
+ //# sourceMappingURL=MqService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MqService.js","sourceRoot":"","sources":["../../src/MqService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,kDAwE4B;AAE5B,iDAA8C;AAC9C,mCAAuC;AASvC,2CAA+C;AAC/C,gEAAkD;AAClD,sEAAwD;AAExD,MAAM,QAAQ,GAAG;IACf,mBAAmB,EAAnB,+BAAmB;IACnB,0BAA0B,EAA1B,sCAA0B;IAC1B,iBAAiB,EAAjB,6BAAiB;IACjB,iBAAiB,EAAjB,6BAAiB;IACjB,mBAAmB,EAAnB,+BAAmB;IACnB,iBAAiB,EAAjB,6BAAiB;IACjB,iBAAiB,EAAjB,6BAAiB;IACjB,q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AAO,CAAC,eAAe,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAC1D,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAqD,EACrD,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,qBAAa,CAAC,CAAC,IAAI,CACpC,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,gBAAgB,EACzB,eAAM,CAAC,GAAG,CAAC,eAAe,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CACvD,CACF,CACF,CAAC;;AApBN,8BAqBC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { MqClientConfig } from "@aws-sdk/client-mq";
5
+ import { Effect, Layer } from "effect";
6
+ import type { MqService } from "./MqService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category mq service config
10
+ */
11
+ export declare const withMqServiceConfig: {
12
+ (config: MqService.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: MqService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category mq service config
18
+ */
19
+ export declare const setMqServiceConfig: (config: MqService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toMqClientConfig: Effect.Effect<MqClientConfig>;
25
+ //# sourceMappingURL=MqServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MqServiceConfig.d.ts","sourceRoot":"","sources":["../../src/MqServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAWhD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE;IAChC,CAAC,MAAM,EAAE,SAAS,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;IAChG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK7F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,WAAY,UAAU,MAAM,qCAAwD,CAAC;AAEpH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,cAAc,CAQzD,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toMqClientConfig = exports.setMqServiceConfig = exports.withMqServiceConfig = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ const effect_1 = require("effect");
6
+ const Function_1 = require("effect/Function");
7
+ const GlobalValue_1 = require("effect/GlobalValue");
8
+ /**
9
+ * @since 1.0.0
10
+ * @category mq service config
11
+ */
12
+ const currentMqServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-mq/currentMqServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
13
+ /**
14
+ * @since 1.0.0
15
+ * @category mq service config
16
+ */
17
+ exports.withMqServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentMqServiceConfig, config));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category mq service config
21
+ */
22
+ const setMqServiceConfig = (config) => effect_1.Layer.locallyScoped(currentMqServiceConfig, config);
23
+ exports.setMqServiceConfig = setMqServiceConfig;
24
+ /**
25
+ * @since 1.0.0
26
+ * @category adapters
27
+ */
28
+ exports.toMqClientConfig = effect_1.Effect.gen(function* () {
29
+ const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentMqServiceConfig);
30
+ const logger = serviceLogger === true
31
+ ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.defaultServiceLogger)
32
+ : (serviceLogger ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.make(serviceLogger)) : undefined);
33
+ return { logger, ...config };
34
+ });
35
+ //# sourceMappingURL=MqServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MqServiceConfig.js","sourceRoot":"","sources":["../../src/MqServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,sBAAsB,GAAG,IAAA,yBAAW,EACxC,8CAA8C,EAC9C,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAAmB,EAAE,CAAC,CAChD,CAAC;AAEF;;;GAGG;AACU,QAAA,mBAAmB,GAG5B,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAwB,EAA0B,EAAE,CAC5F,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,sBAAsB,EAAE,MAAM,CAAC,CACzD,CAAC;AAEF;;;GAGG;AACI,MAAM,kBAAkB,GAAG,CAAC,MAAwB,EAAE,EAAE,CAAC,cAAK,CAAC,aAAa,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;AAAvG,QAAA,kBAAkB,sBAAqF;AAEpH;;;GAGG;AACU,QAAA,gBAAgB,GAAkC,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACjF,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;IAEzF,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { MqService } from "./MqService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as MqClientInstance from "./MqClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as MqServiceConfig from "./MqServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./MqService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias MqService
25
+ */
26
+ export declare namespace Mq {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias MqService.Config
30
+ */
31
+ type Config = MqService.Config;
32
+ }
33
+ /**
34
+ * @since 1.0.0
35
+ * @category exports
36
+ * @alias MqService
37
+ */
38
+ export declare const Mq: typeof MqService;
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,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AAExD;;GAEG;AACH,cAAc,gBAAgB,CAAC;AAE/B;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B;;;OAGG;IACH,KAAY,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;CACvC;AAED;;;;GAIG;AACH,eAAO,MAAM,EAAE,kBAAY,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.Mq = exports.MqServiceConfig = exports.MqClientInstance = void 0;
30
+ /**
31
+ * @since 1.0.0
32
+ */
33
+ const MqService_js_1 = require("./MqService.js");
34
+ /**
35
+ * @since 1.0.0
36
+ */
37
+ __exportStar(require("./Errors.js"), exports);
38
+ /**
39
+ * @since 1.0.0
40
+ */
41
+ exports.MqClientInstance = __importStar(require("./MqClientInstance.js"));
42
+ /**
43
+ * @since 1.0.0
44
+ */
45
+ exports.MqServiceConfig = __importStar(require("./MqServiceConfig.js"));
46
+ /**
47
+ * @since 1.0.0
48
+ */
49
+ __exportStar(require("./MqService.js"), exports);
50
+ /**
51
+ * @since 1.0.0
52
+ * @category exports
53
+ * @alias MqService
54
+ */
55
+ exports.Mq = MqService_js_1.MqService;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,iDAA2C;AAE3C;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,0EAA0D;AAE1D;;GAEG;AACH,wEAAwD;AAExD;;GAEG;AACH,iDAA+B;AAe/B;;;;GAIG;AACU,QAAA,EAAE,GAAG,wBAAS,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, UnauthorizedException } from "@aws-sdk/client-mq";
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["BadRequestException", "ConflictException", "ForbiddenException", "InternalServerErrorException", "NotFoundException", "UnauthorizedException"];
5
+ export type BadRequestError = TaggedException<BadRequestException>;
6
+ export type ConflictError = TaggedException<ConflictException>;
7
+ export type ForbiddenError = TaggedException<ForbiddenException>;
8
+ export type InternalServerError = TaggedException<InternalServerErrorException>;
9
+ export type NotFoundError = TaggedException<NotFoundException>;
10
+ export type UnauthorizedError = TaggedException<UnauthorizedException>;
11
+ export type SdkError = CommonSdkError;
12
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
13
+ //# 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,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,4BAA4B,EAC5B,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,2JAOnB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AAChF,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,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 { MqClient } from "@aws-sdk/client-mq";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const MqClientInstance_base: Context.TagClass<MqClientInstance, "@effect-aws/client-mq/MqClientInstance", MqClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class MqClientInstance extends MqClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<MqClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<MqClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=MqClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MqClientInstance.d.ts","sourceRoot":"","sources":["../../src/MqClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,qBAEP;CAAG;AAElC;;;GAGG;AACH,eAAO,MAAM,IAAI,8DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,6CAAuC,CAAC"}