@effect-aws/client-account 1.10.8 → 1.11.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/dist/cjs/AccountClientInstance.d.ts +3 -1
- package/dist/cjs/AccountClientInstance.d.ts.map +1 -1
- package/dist/cjs/AccountClientInstance.js +6 -4
- package/dist/cjs/AccountClientInstance.js.map +1 -1
- package/dist/cjs/AccountService.d.ts +7 -3
- package/dist/cjs/AccountService.d.ts.map +1 -1
- package/dist/cjs/AccountService.js +13 -9
- package/dist/cjs/AccountService.js.map +1 -1
- package/dist/cjs/AccountServiceConfig.d.ts +2 -1
- package/dist/cjs/AccountServiceConfig.d.ts.map +1 -1
- package/dist/cjs/AccountServiceConfig.js +34 -9
- package/dist/cjs/AccountServiceConfig.js.map +1 -1
- package/dist/cjs/Errors.d.ts +1 -1
- package/dist/cjs/Errors.d.ts.map +1 -1
- package/dist/dts/AccountClientInstance.d.ts +3 -1
- package/dist/dts/AccountClientInstance.d.ts.map +1 -1
- package/dist/dts/AccountService.d.ts +7 -3
- package/dist/dts/AccountService.d.ts.map +1 -1
- package/dist/dts/AccountServiceConfig.d.ts +2 -1
- package/dist/dts/AccountServiceConfig.d.ts.map +1 -1
- package/dist/dts/Errors.d.ts +1 -1
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/esm/AccountClientInstance.js +3 -1
- package/dist/esm/AccountClientInstance.js.map +1 -1
- package/dist/esm/AccountService.js +8 -4
- package/dist/esm/AccountService.js.map +1 -1
- package/dist/esm/AccountServiceConfig.js +4 -2
- package/dist/esm/AccountServiceConfig.js.map +1 -1
- package/package.json +2 -2
- package/src/AccountClientInstance.ts +3 -1
- package/src/AccountService.ts +21 -4
- package/src/AccountServiceConfig.ts +4 -2
- package/src/Errors.ts +1 -1
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { AccountClient } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
5
|
+
import * as Context from "effect/Context";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
6
8
|
declare const AccountClientInstance_base: Context.TagClass<AccountClientInstance, "@effect-aws/client-account/AccountClientInstance", AccountClient>;
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountClientInstance.d.ts","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountClientInstance.d.ts","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;;AAGtC;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,0BAEF;CAAG;AAE5C;;;GAGG;AACH,eAAO,MAAM,IAAI,mEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,kDAA4C,CAAC"}
|
|
@@ -28,23 +28,25 @@ exports.layer = exports.make = exports.AccountClientInstance = void 0;
|
|
|
28
28
|
* @since 1.0.0
|
|
29
29
|
*/
|
|
30
30
|
const client_account_1 = require("@aws-sdk/client-account");
|
|
31
|
-
const
|
|
31
|
+
const Context = __importStar(require("effect/Context"));
|
|
32
|
+
const Effect = __importStar(require("effect/Effect"));
|
|
33
|
+
const Layer = __importStar(require("effect/Layer"));
|
|
32
34
|
const AccountServiceConfig = __importStar(require("./AccountServiceConfig.js"));
|
|
33
35
|
/**
|
|
34
36
|
* @since 1.0.0
|
|
35
37
|
* @category tags
|
|
36
38
|
*/
|
|
37
|
-
class AccountClientInstance extends
|
|
39
|
+
class AccountClientInstance extends Context.Tag("@effect-aws/client-account/AccountClientInstance")() {
|
|
38
40
|
}
|
|
39
41
|
exports.AccountClientInstance = AccountClientInstance;
|
|
40
42
|
/**
|
|
41
43
|
* @since 1.0.0
|
|
42
44
|
* @category constructors
|
|
43
45
|
*/
|
|
44
|
-
exports.make =
|
|
46
|
+
exports.make = Effect.flatMap(AccountServiceConfig.toAccountClientConfig, (config) => Effect.acquireRelease(Effect.sync(() => new client_account_1.AccountClient(config)), (client) => Effect.sync(() => client.destroy())));
|
|
45
47
|
/**
|
|
46
48
|
* @since 1.0.0
|
|
47
49
|
* @category layers
|
|
48
50
|
*/
|
|
49
|
-
exports.layer =
|
|
51
|
+
exports.layer = Layer.scoped(AccountClientInstance, exports.make);
|
|
50
52
|
//# sourceMappingURL=AccountClientInstance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountClientInstance.js","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4DAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"AccountClientInstance.js","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4DAAwD;AACxD,wDAA0C;AAC1C,sDAAwC;AACxC,oDAAsC;AACtC,gFAAkE;AAElE;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,OAAO,CAAC,GAAG,CACpD,kDAAkD,CACnD,EAAwC;CAAG;AAF5C,sDAE4C;AAE5C;;;GAGG;AACU,QAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,oBAAoB,CAAC,qBAAqB,EAC1C,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,8BAAa,CAAC,MAAM,CAAC,CAAC,EAC5C,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,qBAAqB,EAAE,YAAI,CAAC,CAAC"}
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { type AcceptPrimaryEmailUpdateCommandInput, type AcceptPrimaryEmailUpdateCommandOutput, type AccountClient, type AccountClientConfig, type DeleteAlternateContactCommandInput, type DeleteAlternateContactCommandOutput, type DisableRegionCommandInput, type DisableRegionCommandOutput, type EnableRegionCommandInput, type EnableRegionCommandOutput, type GetAccountInformationCommandInput, type GetAccountInformationCommandOutput, type GetAlternateContactCommandInput, type GetAlternateContactCommandOutput, type GetContactInformationCommandInput, type GetContactInformationCommandOutput, type GetGovCloudAccountInformationCommandInput, type GetGovCloudAccountInformationCommandOutput, type GetPrimaryEmailCommandInput, type GetPrimaryEmailCommandOutput, type GetRegionOptStatusCommandInput, type GetRegionOptStatusCommandOutput, type ListRegionsCommandInput, type ListRegionsCommandOutput, type PutAccountNameCommandInput, type PutAccountNameCommandOutput, type PutAlternateContactCommandInput, type PutAlternateContactCommandOutput, type PutContactInformationCommandInput, type PutContactInformationCommandOutput, type StartPrimaryEmailUpdateCommandInput, type StartPrimaryEmailUpdateCommandOutput } from "@aws-sdk/client-account";
|
|
5
|
-
import type
|
|
6
|
-
import type {
|
|
7
|
-
import
|
|
5
|
+
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
6
|
+
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
|
|
7
|
+
import type * as Cause from "effect/Cause";
|
|
8
|
+
import * as Effect from "effect/Effect";
|
|
9
|
+
import * as Layer from "effect/Layer";
|
|
10
|
+
import type * as Stream from "effect/Stream";
|
|
8
11
|
import * as Instance from "./AccountClientInstance.js";
|
|
9
12
|
import type { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ResourceUnavailableError, SdkError, TooManyRequestsError, ValidationError } from "./Errors.js";
|
|
10
13
|
interface AccountService$ {
|
|
@@ -53,6 +56,7 @@ interface AccountService$ {
|
|
|
53
56
|
* @see {@link ListRegionsCommand}
|
|
54
57
|
*/
|
|
55
58
|
listRegions(args: ListRegionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListRegionsCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
59
|
+
listRegionsStream(args: ListRegionsCommandInput, options?: HttpHandlerOptions): Stream.Stream<ListRegionsCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
56
60
|
/**
|
|
57
61
|
* @see {@link PutAccountNameCommand}
|
|
58
62
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountService.d.ts","sourceRoot":"","sources":["../../src/AccountService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAC1C,KAAK,aAAa,EAClB,KAAK,mBAAmB,EAExB,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EAExC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAE/C,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,uBAAuB,EAC5B,KA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G,eAAe,CACrH,CAAC;IAEF;;OAEG;IACH,uBAAuB,CACrB,IAAI,EAAE,mCAAmC,EACzC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,oCAAoC,EAClC,KAAK,CAAC,gBAAgB,GACtB,QAAQ,GACR,iBAAiB,GACjB,aAAa,GACb,mBAAmB,GACnB,qBAAqB,GACrB,oBAAoB,GACpB,eAAe,CAClB,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uEAY7B,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,cAAe,SAAQ,mBAGjC;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,4CAA8E;IAC1G,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,eAAe,MAAM,+CAIlD;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,mBAAmB,KAAK,aAAa,+CAS7D;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC;QACjE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,eAAe,CAAC;CACpC"}
|
|
@@ -28,8 +28,9 @@ exports.AccountService = exports.makeAccountService = void 0;
|
|
|
28
28
|
* @since 1.0.0
|
|
29
29
|
*/
|
|
30
30
|
const client_account_1 = require("@aws-sdk/client-account");
|
|
31
|
-
const
|
|
32
|
-
const
|
|
31
|
+
const Service = __importStar(require("@effect-aws/commons/Service"));
|
|
32
|
+
const Effect = __importStar(require("effect/Effect"));
|
|
33
|
+
const Layer = __importStar(require("effect/Layer"));
|
|
33
34
|
const Instance = __importStar(require("./AccountClientInstance.js"));
|
|
34
35
|
const AccountServiceConfig = __importStar(require("./AccountServiceConfig.js"));
|
|
35
36
|
const Errors_js_1 = require("./Errors.js");
|
|
@@ -50,25 +51,28 @@ const commands = {
|
|
|
50
51
|
PutContactInformationCommand: client_account_1.PutContactInformationCommand,
|
|
51
52
|
StartPrimaryEmailUpdateCommand: client_account_1.StartPrimaryEmailUpdateCommand,
|
|
52
53
|
};
|
|
54
|
+
const paginators = {
|
|
55
|
+
paginateListRegions: client_account_1.paginateListRegions,
|
|
56
|
+
};
|
|
53
57
|
/**
|
|
54
58
|
* @since 1.0.0
|
|
55
59
|
* @category constructors
|
|
56
60
|
*/
|
|
57
|
-
exports.makeAccountService =
|
|
61
|
+
exports.makeAccountService = Effect.gen(function* () {
|
|
58
62
|
const client = yield* Instance.AccountClientInstance;
|
|
59
|
-
return yield*
|
|
63
|
+
return yield* Service.fromClientAndCommands(client, commands, {
|
|
60
64
|
errorTags: Errors_js_1.AllServiceErrors,
|
|
61
65
|
resolveClientConfig: AccountServiceConfig.toAccountClientConfig,
|
|
62
|
-
});
|
|
66
|
+
}, paginators);
|
|
63
67
|
});
|
|
64
68
|
/**
|
|
65
69
|
* @since 1.0.0
|
|
66
70
|
* @category models
|
|
67
71
|
*/
|
|
68
|
-
class AccountService extends
|
|
69
|
-
static defaultLayer =
|
|
70
|
-
static layer = (config) =>
|
|
71
|
-
static baseLayer = (evaluate) =>
|
|
72
|
+
class AccountService extends Effect.Tag("@effect-aws/client-account/AccountService")() {
|
|
73
|
+
static defaultLayer = Layer.effect(this, exports.makeAccountService).pipe(Layer.provide(Instance.layer));
|
|
74
|
+
static layer = (config) => Layer.effect(this, exports.makeAccountService).pipe(Layer.provide(Instance.layer), Layer.provide(AccountServiceConfig.setAccountServiceConfig(config)));
|
|
75
|
+
static baseLayer = (evaluate) => Layer.effect(this, exports.makeAccountService).pipe(Layer.provide(Layer.effect(Instance.AccountClientInstance, Effect.map(AccountServiceConfig.toAccountClientConfig, evaluate))));
|
|
72
76
|
}
|
|
73
77
|
exports.AccountService = AccountService;
|
|
74
78
|
//# sourceMappingURL=AccountService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountService.js","sourceRoot":"","sources":["../../src/AccountService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"AccountService.js","sourceRoot":"","sources":["../../src/AccountService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4DAiDiC;AACjC,qEAAuD;AAIvD,sDAAwC;AACxC,oDAAsC;AAEtC,qEAAuD;AACvD,gFAAkE;AAWlE,2CAA+C;AAE/C,MAAM,QAAQ,GAAG;IACf,+BAA+B,EAA/B,gDAA+B;IAC/B,6BAA6B,EAA7B,8CAA6B;IAC7B,oBAAoB,EAApB,qCAAoB;IACpB,mBAAmB,EAAnB,oCAAmB;IACnB,4BAA4B,EAA5B,6CAA4B;IAC5B,0BAA0B,EAA1B,2CAA0B;IAC1B,4BAA4B,EAA5B,6CAA4B;IAC5B,oCAAoC,EAApC,qDAAoC;IACpC,sBAAsB,EAAtB,uCAAsB;IACtB,yBAAyB,EAAzB,0CAAyB;IACzB,kBAAkB,EAAlB,mCAAkB;IAClB,qBAAqB,EAArB,sCAAqB;IACrB,0BAA0B,EAA1B,2CAA0B;IAC1B,4BAA4B,EAA5B,6CAA4B;IAC5B,8BAA8B,EAA9B,+CAA8B;CAC/B,CAAC;AAEF,MAAM,UAAU,GAAG;IACjB,mBAAmB,EAAnB,oCAAmB;CACpB,CAAC;AA4OF;;;GAGG;AACU,QAAA,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACpD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAErD,OAAO,KAAK,CAAC,CAAC,OAAO,CAAC,qBAAqB,CACzC,MAAM,EACN,QAAQ,EACR;QACE,SAAS,EAAE,4BAAgB;QAC3B,mBAAmB,EAAE,oBAAoB,CAAC,qBAAqB;KAChE,EACD,UAAU,CACX,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC,EAGxF;IACD,MAAM,CAAU,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAAkB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1G,MAAM,CAAU,KAAK,GAAG,CAAC,MAA6B,EAAE,EAAE,CACxD,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAAkB,CAAC,CAAC,IAAI,CACzC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,KAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC,CACpE,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAA+D,EAC/D,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAAkB,CAAC,CAAC,IAAI,CACzC,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,qBAAqB,EAC9B,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CACjE,CACF,CACF,CAAC;;AApBN,wCAqBC"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { AccountClientConfig } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
6
7
|
import type { AccountService } from "./AccountService.js";
|
|
7
8
|
/**
|
|
8
9
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountServiceConfig.d.ts","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountServiceConfig.d.ts","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAW1D;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE;IACrC,CAAC,MAAM,EAAE,cAAc,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;IACrG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKlG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,WAAY,eAAe,MAAM,qCACX,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAQnE,CAAC"}
|
|
@@ -1,35 +1,60 @@
|
|
|
1
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
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.toAccountClientConfig = exports.setAccountServiceConfig = exports.withAccountServiceConfig = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
27
|
+
const ServiceLogger = __importStar(require("@effect-aws/commons/ServiceLogger"));
|
|
28
|
+
const Effect = __importStar(require("effect/Effect"));
|
|
29
|
+
const FiberRef = __importStar(require("effect/FiberRef"));
|
|
6
30
|
const Function_1 = require("effect/Function");
|
|
7
31
|
const GlobalValue_1 = require("effect/GlobalValue");
|
|
32
|
+
const Layer = __importStar(require("effect/Layer"));
|
|
8
33
|
/**
|
|
9
34
|
* @since 1.0.0
|
|
10
35
|
* @category account service config
|
|
11
36
|
*/
|
|
12
|
-
const currentAccountServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-account/currentAccountServiceConfig", () =>
|
|
37
|
+
const currentAccountServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-account/currentAccountServiceConfig", () => FiberRef.unsafeMake({}));
|
|
13
38
|
/**
|
|
14
39
|
* @since 1.0.0
|
|
15
40
|
* @category account service config
|
|
16
41
|
*/
|
|
17
|
-
exports.withAccountServiceConfig = (0, Function_1.dual)(2, (effect, config) =>
|
|
42
|
+
exports.withAccountServiceConfig = (0, Function_1.dual)(2, (effect, config) => Effect.locally(effect, currentAccountServiceConfig, config));
|
|
18
43
|
/**
|
|
19
44
|
* @since 1.0.0
|
|
20
45
|
* @category account service config
|
|
21
46
|
*/
|
|
22
|
-
const setAccountServiceConfig = (config) =>
|
|
47
|
+
const setAccountServiceConfig = (config) => Layer.locallyScoped(currentAccountServiceConfig, config);
|
|
23
48
|
exports.setAccountServiceConfig = setAccountServiceConfig;
|
|
24
49
|
/**
|
|
25
50
|
* @since 1.0.0
|
|
26
51
|
* @category adapters
|
|
27
52
|
*/
|
|
28
|
-
exports.toAccountClientConfig =
|
|
29
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
53
|
+
exports.toAccountClientConfig = Effect.gen(function* () {
|
|
54
|
+
const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentAccountServiceConfig);
|
|
30
55
|
const logger = serviceLogger === true
|
|
31
|
-
? yield*
|
|
32
|
-
: (serviceLogger ? yield*
|
|
56
|
+
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
57
|
+
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
33
58
|
return { logger, ...config };
|
|
34
59
|
});
|
|
35
60
|
//# sourceMappingURL=AccountServiceConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountServiceConfig.js","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3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EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
|
package/dist/cjs/Errors.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ResourceUnavailableException, TooManyRequestsException, ValidationException } from "@aws-sdk/client-account";
|
|
2
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
2
|
+
import type { TaggedException } from "@effect-aws/commons/Errors";
|
|
3
3
|
export declare const AllServiceErrors: readonly ["AccessDeniedException", "ConflictException", "InternalServerException", "ResourceNotFoundException", "ResourceUnavailableException", "TooManyRequestsException", "ValidationException"];
|
|
4
4
|
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
5
5
|
export type ConflictError = TaggedException<ConflictException>;
|
package/dist/cjs/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,eAAO,MAAM,gBAAgB,oMAQnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AACrF,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { AccountClient } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
5
|
+
import * as Context from "effect/Context";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
6
8
|
declare const AccountClientInstance_base: Context.TagClass<AccountClientInstance, "@effect-aws/client-account/AccountClientInstance", AccountClient>;
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountClientInstance.d.ts","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountClientInstance.d.ts","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;;AAGtC;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,0BAEF;CAAG;AAE5C;;;GAGG;AACH,eAAO,MAAM,IAAI,mEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,kDAA4C,CAAC"}
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { type AcceptPrimaryEmailUpdateCommandInput, type AcceptPrimaryEmailUpdateCommandOutput, type AccountClient, type AccountClientConfig, type DeleteAlternateContactCommandInput, type DeleteAlternateContactCommandOutput, type DisableRegionCommandInput, type DisableRegionCommandOutput, type EnableRegionCommandInput, type EnableRegionCommandOutput, type GetAccountInformationCommandInput, type GetAccountInformationCommandOutput, type GetAlternateContactCommandInput, type GetAlternateContactCommandOutput, type GetContactInformationCommandInput, type GetContactInformationCommandOutput, type GetGovCloudAccountInformationCommandInput, type GetGovCloudAccountInformationCommandOutput, type GetPrimaryEmailCommandInput, type GetPrimaryEmailCommandOutput, type GetRegionOptStatusCommandInput, type GetRegionOptStatusCommandOutput, type ListRegionsCommandInput, type ListRegionsCommandOutput, type PutAccountNameCommandInput, type PutAccountNameCommandOutput, type PutAlternateContactCommandInput, type PutAlternateContactCommandOutput, type PutContactInformationCommandInput, type PutContactInformationCommandOutput, type StartPrimaryEmailUpdateCommandInput, type StartPrimaryEmailUpdateCommandOutput } from "@aws-sdk/client-account";
|
|
5
|
-
import type
|
|
6
|
-
import type {
|
|
7
|
-
import
|
|
5
|
+
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
6
|
+
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
|
|
7
|
+
import type * as Cause from "effect/Cause";
|
|
8
|
+
import * as Effect from "effect/Effect";
|
|
9
|
+
import * as Layer from "effect/Layer";
|
|
10
|
+
import type * as Stream from "effect/Stream";
|
|
8
11
|
import * as Instance from "./AccountClientInstance.js";
|
|
9
12
|
import type { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ResourceUnavailableError, SdkError, TooManyRequestsError, ValidationError } from "./Errors.js";
|
|
10
13
|
interface AccountService$ {
|
|
@@ -53,6 +56,7 @@ interface AccountService$ {
|
|
|
53
56
|
* @see {@link ListRegionsCommand}
|
|
54
57
|
*/
|
|
55
58
|
listRegions(args: ListRegionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListRegionsCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
59
|
+
listRegionsStream(args: ListRegionsCommandInput, options?: HttpHandlerOptions): Stream.Stream<ListRegionsCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
56
60
|
/**
|
|
57
61
|
* @see {@link PutAccountNameCommand}
|
|
58
62
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountService.d.ts","sourceRoot":"","sources":["../../src/AccountService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAC1C,KAAK,aAAa,EAClB,KAAK,mBAAmB,EAExB,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EAExC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAE/C,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,
|
|
1
|
+
{"version":3,"file":"AccountService.d.ts","sourceRoot":"","sources":["../../src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AmC,EACzC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,oCAAoC,EAClC,KAAK,CAAC,gBAAgB,GACtB,QAAQ,GACR,iBAAiB,GACjB,aAAa,GACb,mBAAmB,GACnB,qBAAqB,GACrB,oBAAoB,GACpB,eAAe,CAClB,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uEAY7B,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,cAAe,SAAQ,mBAGjC;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,4CAA8E;IAC1G,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,eAAe,MAAM,+CAIlD;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,mBAAmB,KAAK,aAAa,+CAS7D;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC;QACjE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,eAAe,CAAC;CACpC"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { AccountClientConfig } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
6
7
|
import type { AccountService } from "./AccountService.js";
|
|
7
8
|
/**
|
|
8
9
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountServiceConfig.d.ts","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountServiceConfig.d.ts","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAW1D;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE;IACrC,CAAC,MAAM,EAAE,cAAc,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;IACrG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKlG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,WAAY,eAAe,MAAM,qCACX,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAQnE,CAAC"}
|
package/dist/dts/Errors.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ResourceUnavailableException, TooManyRequestsException, ValidationException } from "@aws-sdk/client-account";
|
|
2
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
2
|
+
import type { TaggedException } from "@effect-aws/commons/Errors";
|
|
3
3
|
export declare const AllServiceErrors: readonly ["AccessDeniedException", "ConflictException", "InternalServerException", "ResourceNotFoundException", "ResourceUnavailableException", "TooManyRequestsException", "ValidationException"];
|
|
4
4
|
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
5
5
|
export type ConflictError = TaggedException<ConflictException>;
|
package/dist/dts/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,eAAO,MAAM,gBAAgB,oMAQnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AACrF,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { AccountClient } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
5
|
+
import * as Context from "effect/Context";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
6
8
|
import * as AccountServiceConfig from "./AccountServiceConfig.js";
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountClientInstance.js","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountClientInstance.js","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAElE;;;GAGG;AACH,MAAM,OAAO,qBAAsB,SAAQ,OAAO,CAAC,GAAG,CACpD,kDAAkD,CACnD,EAAwC;CAAG;AAE5C;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,oBAAoB,CAAC,qBAAqB,EAC1C,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC,EAC5C,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,qBAAqB,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import { AcceptPrimaryEmailUpdateCommand, DeleteAlternateContactCommand, DisableRegionCommand, EnableRegionCommand, GetAccountInformationCommand, GetAlternateContactCommand, GetContactInformationCommand, GetGovCloudAccountInformationCommand, GetPrimaryEmailCommand, GetRegionOptStatusCommand, ListRegionsCommand, PutAccountNameCommand, PutAlternateContactCommand, PutContactInformationCommand, StartPrimaryEmailUpdateCommand, } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import { AcceptPrimaryEmailUpdateCommand, DeleteAlternateContactCommand, DisableRegionCommand, EnableRegionCommand, GetAccountInformationCommand, GetAlternateContactCommand, GetContactInformationCommand, GetGovCloudAccountInformationCommand, GetPrimaryEmailCommand, GetRegionOptStatusCommand, ListRegionsCommand, paginateListRegions, PutAccountNameCommand, PutAlternateContactCommand, PutContactInformationCommand, StartPrimaryEmailUpdateCommand, } from "@aws-sdk/client-account";
|
|
5
|
+
import * as Service from "@effect-aws/commons/Service";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
7
8
|
import * as Instance from "./AccountClientInstance.js";
|
|
8
9
|
import * as AccountServiceConfig from "./AccountServiceConfig.js";
|
|
9
10
|
import { AllServiceErrors } from "./Errors.js";
|
|
@@ -24,6 +25,9 @@ const commands = {
|
|
|
24
25
|
PutContactInformationCommand,
|
|
25
26
|
StartPrimaryEmailUpdateCommand,
|
|
26
27
|
};
|
|
28
|
+
const paginators = {
|
|
29
|
+
paginateListRegions,
|
|
30
|
+
};
|
|
27
31
|
/**
|
|
28
32
|
* @since 1.0.0
|
|
29
33
|
* @category constructors
|
|
@@ -33,7 +37,7 @@ export const makeAccountService = Effect.gen(function* () {
|
|
|
33
37
|
return yield* Service.fromClientAndCommands(client, commands, {
|
|
34
38
|
errorTags: AllServiceErrors,
|
|
35
39
|
resolveClientConfig: AccountServiceConfig.toAccountClientConfig,
|
|
36
|
-
});
|
|
40
|
+
}, paginators);
|
|
37
41
|
});
|
|
38
42
|
/**
|
|
39
43
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountService.js","sourceRoot":"","sources":["../../src/AccountService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,+BAA+B,EAK/B,6BAA6B,EAG7B,oBAAoB,EAGpB,mBAAmB,EAGnB,4BAA4B,EAG5B,0BAA0B,EAG1B,4BAA4B,EAG5B,oCAAoC,EAGpC,sBAAsB,EAGtB,yBAAyB,EAGzB,kBAAkB,EAGlB,qBAAqB,EAGrB,0BAA0B,EAG1B,4BAA4B,EAG5B,8BAA8B,GAG/B,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"AccountService.js","sourceRoot":"","sources":["../../src/AccountService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,+BAA+B,EAK/B,6BAA6B,EAG7B,oBAAoB,EAGpB,mBAAmB,EAGnB,4BAA4B,EAG5B,0BAA0B,EAG1B,4BAA4B,EAG5B,oCAAoC,EAGpC,sBAAsB,EAGtB,yBAAyB,EAGzB,kBAAkB,EAGlB,mBAAmB,EACnB,qBAAqB,EAGrB,0BAA0B,EAG1B,4BAA4B,EAG5B,8BAA8B,GAG/B,MAAM,yBAAyB,CAAC;A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AC,MAA6B,EAAE,EAAE,CACxD,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,IAAI,CACzC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,KAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC,CACpE,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAA+D,EAC/D,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,IAAI,CACzC,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,qBAAqB,EAC9B,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CACjE,CACF,CACF,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as FiberRef from "effect/FiberRef";
|
|
3
4
|
import { dual } from "effect/Function";
|
|
4
5
|
import { globalValue } from "effect/GlobalValue";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
5
7
|
/**
|
|
6
8
|
* @since 1.0.0
|
|
7
9
|
* @category account service config
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountServiceConfig.js","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountServiceConfig.js","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,aAAa,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,IAAI,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@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-account",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "Effectful AWS Account client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/client-account",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-account": "^3",
|
|
19
|
-
"@effect-aws/commons": "^0.
|
|
19
|
+
"@effect-aws/commons": "^0.4.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"effect": ">=3.0.4 <4.0.0"
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { AccountClient } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
5
|
+
import * as Context from "effect/Context";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
6
8
|
import * as AccountServiceConfig from "./AccountServiceConfig.js";
|
|
7
9
|
|
|
8
10
|
/**
|
package/src/AccountService.ts
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
ListRegionsCommand,
|
|
38
38
|
type ListRegionsCommandInput,
|
|
39
39
|
type ListRegionsCommandOutput,
|
|
40
|
+
paginateListRegions,
|
|
40
41
|
PutAccountNameCommand,
|
|
41
42
|
type PutAccountNameCommandInput,
|
|
42
43
|
type PutAccountNameCommandOutput,
|
|
@@ -50,10 +51,13 @@ import {
|
|
|
50
51
|
type StartPrimaryEmailUpdateCommandInput,
|
|
51
52
|
type StartPrimaryEmailUpdateCommandOutput,
|
|
52
53
|
} from "@aws-sdk/client-account";
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import type {
|
|
56
|
-
import
|
|
54
|
+
import * as Service from "@effect-aws/commons/Service";
|
|
55
|
+
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
56
|
+
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
|
|
57
|
+
import type * as Cause from "effect/Cause";
|
|
58
|
+
import * as Effect from "effect/Effect";
|
|
59
|
+
import * as Layer from "effect/Layer";
|
|
60
|
+
import type * as Stream from "effect/Stream";
|
|
57
61
|
import * as Instance from "./AccountClientInstance.js";
|
|
58
62
|
import * as AccountServiceConfig from "./AccountServiceConfig.js";
|
|
59
63
|
import type {
|
|
@@ -86,6 +90,10 @@ const commands = {
|
|
|
86
90
|
StartPrimaryEmailUpdateCommand,
|
|
87
91
|
};
|
|
88
92
|
|
|
93
|
+
const paginators = {
|
|
94
|
+
paginateListRegions,
|
|
95
|
+
};
|
|
96
|
+
|
|
89
97
|
interface AccountService$ {
|
|
90
98
|
readonly _: unique symbol;
|
|
91
99
|
|
|
@@ -260,6 +268,14 @@ interface AccountService$ {
|
|
|
260
268
|
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
261
269
|
>;
|
|
262
270
|
|
|
271
|
+
listRegionsStream(
|
|
272
|
+
args: ListRegionsCommandInput,
|
|
273
|
+
options?: HttpHandlerOptions,
|
|
274
|
+
): Stream.Stream<
|
|
275
|
+
ListRegionsCommandOutput,
|
|
276
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
277
|
+
>;
|
|
278
|
+
|
|
263
279
|
/**
|
|
264
280
|
* @see {@link PutAccountNameCommand}
|
|
265
281
|
*/
|
|
@@ -326,6 +342,7 @@ export const makeAccountService = Effect.gen(function*() {
|
|
|
326
342
|
errorTags: AllServiceErrors,
|
|
327
343
|
resolveClientConfig: AccountServiceConfig.toAccountClientConfig,
|
|
328
344
|
},
|
|
345
|
+
paginators,
|
|
329
346
|
);
|
|
330
347
|
});
|
|
331
348
|
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { AccountClientConfig } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as FiberRef from "effect/FiberRef";
|
|
7
8
|
import { dual } from "effect/Function";
|
|
8
9
|
import { globalValue } from "effect/GlobalValue";
|
|
10
|
+
import * as Layer from "effect/Layer";
|
|
9
11
|
import type { AccountService } from "./AccountService.js";
|
|
10
12
|
|
|
11
13
|
/**
|
package/src/Errors.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type {
|
|
|
7
7
|
TooManyRequestsException,
|
|
8
8
|
ValidationException,
|
|
9
9
|
} from "@aws-sdk/client-account";
|
|
10
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
10
|
+
import type { TaggedException } from "@effect-aws/commons/Errors";
|
|
11
11
|
|
|
12
12
|
export const AllServiceErrors = [
|
|
13
13
|
"AccessDeniedException",
|