@effect-aws/client-mq 1.10.3 → 2.0.0-beta.0
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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/MqClientInstance.d.ts +2 -2
- package/dist/dts/MqClientInstance.d.ts.map +1 -1
- package/dist/dts/MqService.d.ts +26 -28
- package/dist/dts/MqService.d.ts.map +1 -1
- package/dist/dts/MqServiceConfig.d.ts.map +1 -1
- package/dist/esm/MqClientInstance.js +3 -3
- package/dist/esm/MqClientInstance.js.map +1 -1
- package/dist/esm/MqService.js +2 -2
- package/dist/esm/MqService.js.map +1 -1
- package/dist/esm/MqServiceConfig.js +5 -6
- package/dist/esm/MqServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/MqClientInstance.ts +4 -4
- package/src/MqService.ts +27 -27
- package/src/MqServiceConfig.ts +6 -7
- package/dist/cjs/Errors.d.ts +0 -13
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -12
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/MqClientInstance.d.ts +0 -24
- package/dist/cjs/MqClientInstance.d.ts.map +0 -1
- package/dist/cjs/MqClientInstance.js +0 -50
- package/dist/cjs/MqClientInstance.js.map +0 -1
- package/dist/cjs/MqService.d.ts +0 -142
- package/dist/cjs/MqService.d.ts.map +0 -1
- package/dist/cjs/MqService.js +0 -83
- package/dist/cjs/MqService.js.map +0 -1
- package/dist/cjs/MqServiceConfig.d.ts +0 -25
- package/dist/cjs/MqServiceConfig.d.ts.map +0 -1
- package/dist/cjs/MqServiceConfig.js +0 -35
- package/dist/cjs/MqServiceConfig.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
package/src/MqService.ts
CHANGED
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
81
81
|
import { Service } from "@effect-aws/commons";
|
|
82
82
|
import type { Cause } from "effect";
|
|
83
|
-
import { Effect, Layer } from "effect";
|
|
83
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
84
84
|
import type {
|
|
85
85
|
BadRequestError,
|
|
86
86
|
ConflictError,
|
|
@@ -132,7 +132,7 @@ interface MqService$ {
|
|
|
132
132
|
options?: HttpHandlerOptions,
|
|
133
133
|
): Effect.Effect<
|
|
134
134
|
CreateBrokerCommandOutput,
|
|
135
|
-
| Cause.
|
|
135
|
+
| Cause.TimeoutError
|
|
136
136
|
| SdkError
|
|
137
137
|
| BadRequestError
|
|
138
138
|
| ConflictError
|
|
@@ -149,7 +149,7 @@ interface MqService$ {
|
|
|
149
149
|
options?: HttpHandlerOptions,
|
|
150
150
|
): Effect.Effect<
|
|
151
151
|
CreateConfigurationCommandOutput,
|
|
152
|
-
Cause.
|
|
152
|
+
Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError
|
|
153
153
|
>;
|
|
154
154
|
|
|
155
155
|
/**
|
|
@@ -160,7 +160,7 @@ interface MqService$ {
|
|
|
160
160
|
options?: HttpHandlerOptions,
|
|
161
161
|
): Effect.Effect<
|
|
162
162
|
CreateTagsCommandOutput,
|
|
163
|
-
Cause.
|
|
163
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
|
|
164
164
|
>;
|
|
165
165
|
|
|
166
166
|
/**
|
|
@@ -171,7 +171,7 @@ interface MqService$ {
|
|
|
171
171
|
options?: HttpHandlerOptions,
|
|
172
172
|
): Effect.Effect<
|
|
173
173
|
CreateUserCommandOutput,
|
|
174
|
-
| Cause.
|
|
174
|
+
| Cause.TimeoutError
|
|
175
175
|
| SdkError
|
|
176
176
|
| BadRequestError
|
|
177
177
|
| ConflictError
|
|
@@ -188,7 +188,7 @@ interface MqService$ {
|
|
|
188
188
|
options?: HttpHandlerOptions,
|
|
189
189
|
): Effect.Effect<
|
|
190
190
|
DeleteBrokerCommandOutput,
|
|
191
|
-
Cause.
|
|
191
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
|
|
192
192
|
>;
|
|
193
193
|
|
|
194
194
|
/**
|
|
@@ -199,7 +199,7 @@ interface MqService$ {
|
|
|
199
199
|
options?: HttpHandlerOptions,
|
|
200
200
|
): Effect.Effect<
|
|
201
201
|
DeleteConfigurationCommandOutput,
|
|
202
|
-
| Cause.
|
|
202
|
+
| Cause.TimeoutError
|
|
203
203
|
| SdkError
|
|
204
204
|
| BadRequestError
|
|
205
205
|
| ConflictError
|
|
@@ -216,7 +216,7 @@ interface MqService$ {
|
|
|
216
216
|
options?: HttpHandlerOptions,
|
|
217
217
|
): Effect.Effect<
|
|
218
218
|
DeleteTagsCommandOutput,
|
|
219
|
-
Cause.
|
|
219
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
|
|
220
220
|
>;
|
|
221
221
|
|
|
222
222
|
/**
|
|
@@ -227,7 +227,7 @@ interface MqService$ {
|
|
|
227
227
|
options?: HttpHandlerOptions,
|
|
228
228
|
): Effect.Effect<
|
|
229
229
|
DeleteUserCommandOutput,
|
|
230
|
-
Cause.
|
|
230
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
|
|
231
231
|
>;
|
|
232
232
|
|
|
233
233
|
/**
|
|
@@ -238,7 +238,7 @@ interface MqService$ {
|
|
|
238
238
|
options?: HttpHandlerOptions,
|
|
239
239
|
): Effect.Effect<
|
|
240
240
|
DescribeBrokerCommandOutput,
|
|
241
|
-
Cause.
|
|
241
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
|
|
242
242
|
>;
|
|
243
243
|
|
|
244
244
|
/**
|
|
@@ -249,7 +249,7 @@ interface MqService$ {
|
|
|
249
249
|
options?: HttpHandlerOptions,
|
|
250
250
|
): Effect.Effect<
|
|
251
251
|
DescribeBrokerEngineTypesCommandOutput,
|
|
252
|
-
Cause.
|
|
252
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError
|
|
253
253
|
>;
|
|
254
254
|
|
|
255
255
|
/**
|
|
@@ -260,7 +260,7 @@ interface MqService$ {
|
|
|
260
260
|
options?: HttpHandlerOptions,
|
|
261
261
|
): Effect.Effect<
|
|
262
262
|
DescribeBrokerInstanceOptionsCommandOutput,
|
|
263
|
-
Cause.
|
|
263
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError
|
|
264
264
|
>;
|
|
265
265
|
|
|
266
266
|
/**
|
|
@@ -271,7 +271,7 @@ interface MqService$ {
|
|
|
271
271
|
options?: HttpHandlerOptions,
|
|
272
272
|
): Effect.Effect<
|
|
273
273
|
DescribeConfigurationCommandOutput,
|
|
274
|
-
Cause.
|
|
274
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
|
|
275
275
|
>;
|
|
276
276
|
|
|
277
277
|
/**
|
|
@@ -282,7 +282,7 @@ interface MqService$ {
|
|
|
282
282
|
options?: HttpHandlerOptions,
|
|
283
283
|
): Effect.Effect<
|
|
284
284
|
DescribeConfigurationRevisionCommandOutput,
|
|
285
|
-
Cause.
|
|
285
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
|
|
286
286
|
>;
|
|
287
287
|
|
|
288
288
|
/**
|
|
@@ -293,7 +293,7 @@ interface MqService$ {
|
|
|
293
293
|
options?: HttpHandlerOptions,
|
|
294
294
|
): Effect.Effect<
|
|
295
295
|
DescribeUserCommandOutput,
|
|
296
|
-
Cause.
|
|
296
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
|
|
297
297
|
>;
|
|
298
298
|
|
|
299
299
|
/**
|
|
@@ -304,7 +304,7 @@ interface MqService$ {
|
|
|
304
304
|
options?: HttpHandlerOptions,
|
|
305
305
|
): Effect.Effect<
|
|
306
306
|
ListBrokersCommandOutput,
|
|
307
|
-
Cause.
|
|
307
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError
|
|
308
308
|
>;
|
|
309
309
|
|
|
310
310
|
/**
|
|
@@ -315,7 +315,7 @@ interface MqService$ {
|
|
|
315
315
|
options?: HttpHandlerOptions,
|
|
316
316
|
): Effect.Effect<
|
|
317
317
|
ListConfigurationRevisionsCommandOutput,
|
|
318
|
-
Cause.
|
|
318
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
|
|
319
319
|
>;
|
|
320
320
|
|
|
321
321
|
/**
|
|
@@ -326,7 +326,7 @@ interface MqService$ {
|
|
|
326
326
|
options?: HttpHandlerOptions,
|
|
327
327
|
): Effect.Effect<
|
|
328
328
|
ListConfigurationsCommandOutput,
|
|
329
|
-
Cause.
|
|
329
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError
|
|
330
330
|
>;
|
|
331
331
|
|
|
332
332
|
/**
|
|
@@ -337,7 +337,7 @@ interface MqService$ {
|
|
|
337
337
|
options?: HttpHandlerOptions,
|
|
338
338
|
): Effect.Effect<
|
|
339
339
|
ListTagsCommandOutput,
|
|
340
|
-
Cause.
|
|
340
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
|
|
341
341
|
>;
|
|
342
342
|
|
|
343
343
|
/**
|
|
@@ -348,7 +348,7 @@ interface MqService$ {
|
|
|
348
348
|
options?: HttpHandlerOptions,
|
|
349
349
|
): Effect.Effect<
|
|
350
350
|
ListUsersCommandOutput,
|
|
351
|
-
Cause.
|
|
351
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
|
|
352
352
|
>;
|
|
353
353
|
|
|
354
354
|
/**
|
|
@@ -359,7 +359,7 @@ interface MqService$ {
|
|
|
359
359
|
options?: HttpHandlerOptions,
|
|
360
360
|
): Effect.Effect<
|
|
361
361
|
PromoteCommandOutput,
|
|
362
|
-
Cause.
|
|
362
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
|
|
363
363
|
>;
|
|
364
364
|
|
|
365
365
|
/**
|
|
@@ -370,7 +370,7 @@ interface MqService$ {
|
|
|
370
370
|
options?: HttpHandlerOptions,
|
|
371
371
|
): Effect.Effect<
|
|
372
372
|
RebootBrokerCommandOutput,
|
|
373
|
-
Cause.
|
|
373
|
+
Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
|
|
374
374
|
>;
|
|
375
375
|
|
|
376
376
|
/**
|
|
@@ -381,7 +381,7 @@ interface MqService$ {
|
|
|
381
381
|
options?: HttpHandlerOptions,
|
|
382
382
|
): Effect.Effect<
|
|
383
383
|
UpdateBrokerCommandOutput,
|
|
384
|
-
| Cause.
|
|
384
|
+
| Cause.TimeoutError
|
|
385
385
|
| SdkError
|
|
386
386
|
| BadRequestError
|
|
387
387
|
| ConflictError
|
|
@@ -398,7 +398,7 @@ interface MqService$ {
|
|
|
398
398
|
options?: HttpHandlerOptions,
|
|
399
399
|
): Effect.Effect<
|
|
400
400
|
UpdateConfigurationCommandOutput,
|
|
401
|
-
| Cause.
|
|
401
|
+
| Cause.TimeoutError
|
|
402
402
|
| SdkError
|
|
403
403
|
| BadRequestError
|
|
404
404
|
| ConflictError
|
|
@@ -415,7 +415,7 @@ interface MqService$ {
|
|
|
415
415
|
options?: HttpHandlerOptions,
|
|
416
416
|
): Effect.Effect<
|
|
417
417
|
UpdateUserCommandOutput,
|
|
418
|
-
| Cause.
|
|
418
|
+
| Cause.TimeoutError
|
|
419
419
|
| SdkError
|
|
420
420
|
| BadRequestError
|
|
421
421
|
| ConflictError
|
|
@@ -446,10 +446,10 @@ export const makeMqService = Effect.gen(function*() {
|
|
|
446
446
|
* @since 1.0.0
|
|
447
447
|
* @category models
|
|
448
448
|
*/
|
|
449
|
-
export class MqService extends
|
|
449
|
+
export class MqService extends ServiceMap.Service<
|
|
450
450
|
MqService,
|
|
451
451
|
MqService$
|
|
452
|
-
>() {
|
|
452
|
+
>()("@effect-aws/client-mq/MqService") {
|
|
453
453
|
static readonly defaultLayer = Layer.effect(this, makeMqService).pipe(Layer.provide(Instance.layer));
|
|
454
454
|
static readonly layer = (config: MqService.Config) =>
|
|
455
455
|
Layer.effect(this, makeMqService).pipe(
|
package/src/MqServiceConfig.ts
CHANGED
|
@@ -3,18 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { MqClientConfig } from "@aws-sdk/client-mq";
|
|
5
5
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import { Effect,
|
|
6
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
7
7
|
import { dual } from "effect/Function";
|
|
8
|
-
import { globalValue } from "effect/GlobalValue";
|
|
9
8
|
import type { MqService } from "./MqService.js";
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* @since 1.0.0
|
|
13
12
|
* @category mq service config
|
|
14
13
|
*/
|
|
15
|
-
const currentMqServiceConfig =
|
|
14
|
+
const currentMqServiceConfig = ServiceMap.Reference<MqService.Config>(
|
|
16
15
|
"@effect-aws/client-mq/currentMqServiceConfig",
|
|
17
|
-
() =>
|
|
16
|
+
{ defaultValue: () => ({}) },
|
|
18
17
|
);
|
|
19
18
|
|
|
20
19
|
/**
|
|
@@ -27,21 +26,21 @@ export const withMqServiceConfig: {
|
|
|
27
26
|
} = dual(
|
|
28
27
|
2,
|
|
29
28
|
<A, E, R>(effect: Effect.Effect<A, E, R>, config: MqService.Config): Effect.Effect<A, E, R> =>
|
|
30
|
-
Effect.
|
|
29
|
+
Effect.provideService(effect, currentMqServiceConfig, config),
|
|
31
30
|
);
|
|
32
31
|
|
|
33
32
|
/**
|
|
34
33
|
* @since 1.0.0
|
|
35
34
|
* @category mq service config
|
|
36
35
|
*/
|
|
37
|
-
export const setMqServiceConfig = (config: MqService.Config) => Layer.
|
|
36
|
+
export const setMqServiceConfig = (config: MqService.Config) => Layer.succeed(currentMqServiceConfig, config);
|
|
38
37
|
|
|
39
38
|
/**
|
|
40
39
|
* @since 1.0.0
|
|
41
40
|
* @category adapters
|
|
42
41
|
*/
|
|
43
42
|
export const toMqClientConfig: Effect.Effect<MqClientConfig> = Effect.gen(function*() {
|
|
44
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
43
|
+
const { logger: serviceLogger, ...config } = yield* currentMqServiceConfig;
|
|
45
44
|
|
|
46
45
|
const logger = serviceLogger === true
|
|
47
46
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
package/dist/cjs/Errors.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, UnauthorizedException } from "@aws-sdk/client-mq";
|
|
2
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
export declare const AllServiceErrors: readonly ["BadRequestException", "ConflictException", "ForbiddenException", "InternalServerErrorException", "NotFoundException", "UnauthorizedException"];
|
|
4
|
-
export type BadRequestError = TaggedException<BadRequestException>;
|
|
5
|
-
export type ConflictError = TaggedException<ConflictException>;
|
|
6
|
-
export type ForbiddenError = TaggedException<ForbiddenException>;
|
|
7
|
-
export type InternalServerError = TaggedException<InternalServerErrorException>;
|
|
8
|
-
export type NotFoundError = TaggedException<NotFoundException>;
|
|
9
|
-
export type UnauthorizedError = TaggedException<UnauthorizedException>;
|
|
10
|
-
export type SdkError = TaggedException<Error & {
|
|
11
|
-
name: "SdkError";
|
|
12
|
-
}>;
|
|
13
|
-
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;AAE3D,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;AACvE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/cjs/Errors.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllServiceErrors = void 0;
|
|
4
|
-
exports.AllServiceErrors = [
|
|
5
|
-
"BadRequestException",
|
|
6
|
-
"ConflictException",
|
|
7
|
-
"ForbiddenException",
|
|
8
|
-
"InternalServerErrorException",
|
|
9
|
-
"NotFoundException",
|
|
10
|
-
"UnauthorizedException",
|
|
11
|
-
];
|
|
12
|
-
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAUa,QAAA,gBAAgB,GAAG;IAC9B,qBAAqB;IACrB,mBAAmB;IACnB,oBAAoB;IACpB,8BAA8B;IAC9B,mBAAmB;IACnB,uBAAuB;CACf,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/cjs/MqService.d.ts
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
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 DeleteConfigurationCommandInput, type DeleteConfigurationCommandOutput, 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, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import type { Cause } from "effect";
|
|
7
|
-
import { Effect, Layer } from "effect";
|
|
8
|
-
import type { BadRequestError, ConflictError, ForbiddenError, InternalServerError, NotFoundError, SdkError, UnauthorizedError } from "./Errors.js";
|
|
9
|
-
import * as Instance from "./MqClientInstance.js";
|
|
10
|
-
interface MqService$ {
|
|
11
|
-
readonly _: unique symbol;
|
|
12
|
-
/**
|
|
13
|
-
* @see {@link CreateBrokerCommand}
|
|
14
|
-
*/
|
|
15
|
-
createBroker(args: CreateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBrokerCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | UnauthorizedError>;
|
|
16
|
-
/**
|
|
17
|
-
* @see {@link CreateConfigurationCommand}
|
|
18
|
-
*/
|
|
19
|
-
createConfiguration(args: CreateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateConfigurationCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError>;
|
|
20
|
-
/**
|
|
21
|
-
* @see {@link CreateTagsCommand}
|
|
22
|
-
*/
|
|
23
|
-
createTags(args: CreateTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTagsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
24
|
-
/**
|
|
25
|
-
* @see {@link CreateUserCommand}
|
|
26
|
-
*/
|
|
27
|
-
createUser(args: CreateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateUserCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
28
|
-
/**
|
|
29
|
-
* @see {@link DeleteBrokerCommand}
|
|
30
|
-
*/
|
|
31
|
-
deleteBroker(args: DeleteBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteBrokerCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
32
|
-
/**
|
|
33
|
-
* @see {@link DeleteConfigurationCommand}
|
|
34
|
-
*/
|
|
35
|
-
deleteConfiguration(args: DeleteConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteConfigurationCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
36
|
-
/**
|
|
37
|
-
* @see {@link DeleteTagsCommand}
|
|
38
|
-
*/
|
|
39
|
-
deleteTags(args: DeleteTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTagsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
40
|
-
/**
|
|
41
|
-
* @see {@link DeleteUserCommand}
|
|
42
|
-
*/
|
|
43
|
-
deleteUser(args: DeleteUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteUserCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
44
|
-
/**
|
|
45
|
-
* @see {@link DescribeBrokerCommand}
|
|
46
|
-
*/
|
|
47
|
-
describeBroker(args: DescribeBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
48
|
-
/**
|
|
49
|
-
* @see {@link DescribeBrokerEngineTypesCommand}
|
|
50
|
-
*/
|
|
51
|
-
describeBrokerEngineTypes(args: DescribeBrokerEngineTypesCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerEngineTypesCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
|
|
52
|
-
/**
|
|
53
|
-
* @see {@link DescribeBrokerInstanceOptionsCommand}
|
|
54
|
-
*/
|
|
55
|
-
describeBrokerInstanceOptions(args: DescribeBrokerInstanceOptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerInstanceOptionsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
|
|
56
|
-
/**
|
|
57
|
-
* @see {@link DescribeConfigurationCommand}
|
|
58
|
-
*/
|
|
59
|
-
describeConfiguration(args: DescribeConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
60
|
-
/**
|
|
61
|
-
* @see {@link DescribeConfigurationRevisionCommand}
|
|
62
|
-
*/
|
|
63
|
-
describeConfigurationRevision(args: DescribeConfigurationRevisionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationRevisionCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
64
|
-
/**
|
|
65
|
-
* @see {@link DescribeUserCommand}
|
|
66
|
-
*/
|
|
67
|
-
describeUser(args: DescribeUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeUserCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
68
|
-
/**
|
|
69
|
-
* @see {@link ListBrokersCommand}
|
|
70
|
-
*/
|
|
71
|
-
listBrokers(args: ListBrokersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListBrokersCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
|
|
72
|
-
/**
|
|
73
|
-
* @see {@link ListConfigurationRevisionsCommand}
|
|
74
|
-
*/
|
|
75
|
-
listConfigurationRevisions(args: ListConfigurationRevisionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationRevisionsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
76
|
-
/**
|
|
77
|
-
* @see {@link ListConfigurationsCommand}
|
|
78
|
-
*/
|
|
79
|
-
listConfigurations(args: ListConfigurationsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
|
|
80
|
-
/**
|
|
81
|
-
* @see {@link ListTagsCommand}
|
|
82
|
-
*/
|
|
83
|
-
listTags(args: ListTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
84
|
-
/**
|
|
85
|
-
* @see {@link ListUsersCommand}
|
|
86
|
-
*/
|
|
87
|
-
listUsers(args: ListUsersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListUsersCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
88
|
-
/**
|
|
89
|
-
* @see {@link PromoteCommand}
|
|
90
|
-
*/
|
|
91
|
-
promote(args: PromoteCommandInput, options?: HttpHandlerOptions): Effect.Effect<PromoteCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
92
|
-
/**
|
|
93
|
-
* @see {@link RebootBrokerCommand}
|
|
94
|
-
*/
|
|
95
|
-
rebootBroker(args: RebootBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<RebootBrokerCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
96
|
-
/**
|
|
97
|
-
* @see {@link UpdateBrokerCommand}
|
|
98
|
-
*/
|
|
99
|
-
updateBroker(args: UpdateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateBrokerCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
100
|
-
/**
|
|
101
|
-
* @see {@link UpdateConfigurationCommand}
|
|
102
|
-
*/
|
|
103
|
-
updateConfiguration(args: UpdateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateConfigurationCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
104
|
-
/**
|
|
105
|
-
* @see {@link UpdateUserCommand}
|
|
106
|
-
*/
|
|
107
|
-
updateUser(args: UpdateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateUserCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* @since 1.0.0
|
|
111
|
-
* @category constructors
|
|
112
|
-
*/
|
|
113
|
-
export declare const makeMqService: Effect.Effect<MqService$, never, Instance.MqClientInstance>;
|
|
114
|
-
declare const MqService_base: import("effect/Context").TagClass<MqService, "@effect-aws/client-mq/MqService", MqService$> & Effect.Tag.Proxy<MqService, MqService$> & {
|
|
115
|
-
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, Cause.UnknownException, MqService> : Effect.Effect<X, never, MqService>;
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* @since 1.0.0
|
|
119
|
-
* @category models
|
|
120
|
-
*/
|
|
121
|
-
export declare class MqService extends MqService_base {
|
|
122
|
-
static readonly defaultLayer: Layer.Layer<MqService, never, never>;
|
|
123
|
-
static readonly layer: (config: MqService.Config) => Layer.Layer<MqService, never, never>;
|
|
124
|
-
static readonly baseLayer: (evaluate: (defaultConfig: MqClientConfig) => MqClient) => Layer.Layer<MqService, never, never>;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* @since 1.0.0
|
|
128
|
-
*/
|
|
129
|
-
export declare namespace MqService {
|
|
130
|
-
/**
|
|
131
|
-
* @since 1.0.0
|
|
132
|
-
*/
|
|
133
|
-
interface Config extends Omit<MqClientConfig, "logger"> {
|
|
134
|
-
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* @since 1.0.0
|
|
138
|
-
*/
|
|
139
|
-
type Type = MqService$;
|
|
140
|
-
}
|
|
141
|
-
export {};
|
|
142
|
-
//# sourceMappingURL=MqService.d.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;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;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,UAAU,CAAC;CAC/B"}
|
package/dist/cjs/MqService.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.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
|
-
DeleteConfigurationCommand: client_mq_1.DeleteConfigurationCommand,
|
|
43
|
-
DeleteTagsCommand: client_mq_1.DeleteTagsCommand,
|
|
44
|
-
DeleteUserCommand: client_mq_1.DeleteUserCommand,
|
|
45
|
-
DescribeBrokerCommand: client_mq_1.DescribeBrokerCommand,
|
|
46
|
-
DescribeBrokerEngineTypesCommand: client_mq_1.DescribeBrokerEngineTypesCommand,
|
|
47
|
-
DescribeBrokerInstanceOptionsCommand: client_mq_1.DescribeBrokerInstanceOptionsCommand,
|
|
48
|
-
DescribeConfigurationCommand: client_mq_1.DescribeConfigurationCommand,
|
|
49
|
-
DescribeConfigurationRevisionCommand: client_mq_1.DescribeConfigurationRevisionCommand,
|
|
50
|
-
DescribeUserCommand: client_mq_1.DescribeUserCommand,
|
|
51
|
-
ListBrokersCommand: client_mq_1.ListBrokersCommand,
|
|
52
|
-
ListConfigurationRevisionsCommand: client_mq_1.ListConfigurationRevisionsCommand,
|
|
53
|
-
ListConfigurationsCommand: client_mq_1.ListConfigurationsCommand,
|
|
54
|
-
ListTagsCommand: client_mq_1.ListTagsCommand,
|
|
55
|
-
ListUsersCommand: client_mq_1.ListUsersCommand,
|
|
56
|
-
PromoteCommand: client_mq_1.PromoteCommand,
|
|
57
|
-
RebootBrokerCommand: client_mq_1.RebootBrokerCommand,
|
|
58
|
-
UpdateBrokerCommand: client_mq_1.UpdateBrokerCommand,
|
|
59
|
-
UpdateConfigurationCommand: client_mq_1.UpdateConfigurationCommand,
|
|
60
|
-
UpdateUserCommand: client_mq_1.UpdateUserCommand,
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* @since 1.0.0
|
|
64
|
-
* @category constructors
|
|
65
|
-
*/
|
|
66
|
-
exports.makeMqService = effect_1.Effect.gen(function* () {
|
|
67
|
-
const client = yield* Instance.MqClientInstance;
|
|
68
|
-
return yield* commons_1.Service.fromClientAndCommands(client, commands, {
|
|
69
|
-
errorTags: Errors_js_1.AllServiceErrors,
|
|
70
|
-
resolveClientConfig: MqServiceConfig.toMqClientConfig,
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
/**
|
|
74
|
-
* @since 1.0.0
|
|
75
|
-
* @category models
|
|
76
|
-
*/
|
|
77
|
-
class MqService extends effect_1.Effect.Tag("@effect-aws/client-mq/MqService")() {
|
|
78
|
-
static defaultLayer = effect_1.Layer.effect(this, exports.makeMqService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
79
|
-
static layer = (config) => effect_1.Layer.effect(this, exports.makeMqService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(MqServiceConfig.setMqServiceConfig(config)));
|
|
80
|
-
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))));
|
|
81
|
-
}
|
|
82
|
-
exports.MqService = MqService;
|
|
83
|
-
//# sourceMappingURL=MqService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MqService.js","sourceRoot":"","sources":["../../src/MqService.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