@effect-aws/client-account 1.9.5 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AccountService.d.ts +25 -16
- package/dist/cjs/AccountService.d.ts.map +1 -1
- package/dist/cjs/AccountService.js +3 -1
- package/dist/cjs/AccountService.js.map +1 -1
- package/dist/cjs/Errors.d.ts +3 -3
- package/dist/cjs/Errors.d.ts.map +1 -1
- package/dist/cjs/Errors.js +1 -3
- package/dist/cjs/Errors.js.map +1 -1
- package/dist/dts/AccountService.d.ts +25 -16
- package/dist/dts/AccountService.d.ts.map +1 -1
- package/dist/dts/Errors.d.ts +3 -3
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/esm/AccountService.js +4 -2
- package/dist/esm/AccountService.js.map +1 -1
- package/dist/esm/Errors.js +0 -2
- package/dist/esm/Errors.js.map +1 -1
- package/package.json +2 -2
- package/src/AccountService.ts +82 -12
- package/src/Errors.ts +1 -4
|
@@ -1,61 +1,70 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import { type AcceptPrimaryEmailUpdateCommandInput, type AcceptPrimaryEmailUpdateCommandOutput, type AccountClient, type AccountClientConfig, type DeleteAlternateContactCommandInput, type DeleteAlternateContactCommandOutput, type DisableRegionCommandInput, type DisableRegionCommandOutput, type EnableRegionCommandInput, type EnableRegionCommandOutput, type GetAlternateContactCommandInput, type GetAlternateContactCommandOutput, type GetContactInformationCommandInput, type GetContactInformationCommandOutput, type GetPrimaryEmailCommandInput, type GetPrimaryEmailCommandOutput, type GetRegionOptStatusCommandInput, type GetRegionOptStatusCommandOutput, type ListRegionsCommandInput, type ListRegionsCommandOutput, type PutAlternateContactCommandInput, type PutAlternateContactCommandOutput, type PutContactInformationCommandInput, type PutContactInformationCommandOutput, type StartPrimaryEmailUpdateCommandInput, type StartPrimaryEmailUpdateCommandOutput } from "@aws-sdk/client-account";
|
|
5
|
-
import type { HttpHandlerOptions,
|
|
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 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 { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import type { Cause } from "effect";
|
|
6
7
|
import { Effect, Layer } from "effect";
|
|
7
8
|
import * as Instance from "./AccountClientInstance.js";
|
|
8
|
-
import type { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, TooManyRequestsError, ValidationError } from "./Errors.js";
|
|
9
|
+
import type { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, SdkError, TooManyRequestsError, ValidationError } from "./Errors.js";
|
|
9
10
|
interface AccountService$ {
|
|
10
11
|
readonly _: unique symbol;
|
|
11
12
|
/**
|
|
12
13
|
* @see {@link AcceptPrimaryEmailUpdateCommand}
|
|
13
14
|
*/
|
|
14
|
-
acceptPrimaryEmailUpdate(args: AcceptPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<AcceptPrimaryEmailUpdateCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
15
|
+
acceptPrimaryEmailUpdate(args: AcceptPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<AcceptPrimaryEmailUpdateCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
15
16
|
/**
|
|
16
17
|
* @see {@link DeleteAlternateContactCommand}
|
|
17
18
|
*/
|
|
18
|
-
deleteAlternateContact(args: DeleteAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAlternateContactCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
19
|
+
deleteAlternateContact(args: DeleteAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAlternateContactCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
19
20
|
/**
|
|
20
21
|
* @see {@link DisableRegionCommand}
|
|
21
22
|
*/
|
|
22
|
-
disableRegion(args: DisableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisableRegionCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
23
|
+
disableRegion(args: DisableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisableRegionCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
23
24
|
/**
|
|
24
25
|
* @see {@link EnableRegionCommand}
|
|
25
26
|
*/
|
|
26
|
-
enableRegion(args: EnableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnableRegionCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
27
|
+
enableRegion(args: EnableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnableRegionCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
28
|
+
/**
|
|
29
|
+
* @see {@link GetAccountInformationCommand}
|
|
30
|
+
*/
|
|
31
|
+
getAccountInformation(args: GetAccountInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccountInformationCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
27
32
|
/**
|
|
28
33
|
* @see {@link GetAlternateContactCommand}
|
|
29
34
|
*/
|
|
30
|
-
getAlternateContact(args: GetAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAlternateContactCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
35
|
+
getAlternateContact(args: GetAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAlternateContactCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
31
36
|
/**
|
|
32
37
|
* @see {@link GetContactInformationCommand}
|
|
33
38
|
*/
|
|
34
|
-
getContactInformation(args: GetContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetContactInformationCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
39
|
+
getContactInformation(args: GetContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetContactInformationCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
35
40
|
/**
|
|
36
41
|
* @see {@link GetPrimaryEmailCommand}
|
|
37
42
|
*/
|
|
38
|
-
getPrimaryEmail(args: GetPrimaryEmailCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPrimaryEmailCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
43
|
+
getPrimaryEmail(args: GetPrimaryEmailCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPrimaryEmailCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
39
44
|
/**
|
|
40
45
|
* @see {@link GetRegionOptStatusCommand}
|
|
41
46
|
*/
|
|
42
|
-
getRegionOptStatus(args: GetRegionOptStatusCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetRegionOptStatusCommandOutput, SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
47
|
+
getRegionOptStatus(args: GetRegionOptStatusCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetRegionOptStatusCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
43
48
|
/**
|
|
44
49
|
* @see {@link ListRegionsCommand}
|
|
45
50
|
*/
|
|
46
|
-
listRegions(args: ListRegionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListRegionsCommandOutput, SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
51
|
+
listRegions(args: ListRegionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListRegionsCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
52
|
+
/**
|
|
53
|
+
* @see {@link PutAccountNameCommand}
|
|
54
|
+
*/
|
|
55
|
+
putAccountName(args: PutAccountNameCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutAccountNameCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
47
56
|
/**
|
|
48
57
|
* @see {@link PutAlternateContactCommand}
|
|
49
58
|
*/
|
|
50
|
-
putAlternateContact(args: PutAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutAlternateContactCommandOutput, SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
59
|
+
putAlternateContact(args: PutAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutAlternateContactCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
51
60
|
/**
|
|
52
61
|
* @see {@link PutContactInformationCommand}
|
|
53
62
|
*/
|
|
54
|
-
putContactInformation(args: PutContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutContactInformationCommandOutput, SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
63
|
+
putContactInformation(args: PutContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutContactInformationCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
55
64
|
/**
|
|
56
65
|
* @see {@link StartPrimaryEmailUpdateCommand}
|
|
57
66
|
*/
|
|
58
|
-
startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartPrimaryEmailUpdateCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
67
|
+
startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartPrimaryEmailUpdateCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
59
68
|
}
|
|
60
69
|
/**
|
|
61
70
|
* @since 1.0.0
|
|
@@ -63,7 +72,7 @@ interface AccountService$ {
|
|
|
63
72
|
*/
|
|
64
73
|
export declare const makeAccountService: Effect.Effect<AccountService$, never, Instance.AccountClientInstance>;
|
|
65
74
|
declare const AccountService_base: import("effect/Context").TagClass<AccountService, "@effect-aws/client-account/AccountService", AccountService$> & Effect.Tag.Proxy<AccountService, AccountService$> & {
|
|
66
|
-
use: <X>(body: (_: AccountService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, AccountService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1,
|
|
75
|
+
use: <X>(body: (_: AccountService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, AccountService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, AccountService> : Effect.Effect<X, never, AccountService>;
|
|
67
76
|
};
|
|
68
77
|
/**
|
|
69
78
|
* @since 1.0.0
|
|
@@ -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,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAC1C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"AccountService.d.ts","sourceRoot":"","sources":["../../src/AccountService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,oCAAoC,EACzC,KA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CAAC;KACtE;CACF"}
|
|
@@ -38,11 +38,13 @@ const commands = {
|
|
|
38
38
|
DeleteAlternateContactCommand: client_account_1.DeleteAlternateContactCommand,
|
|
39
39
|
DisableRegionCommand: client_account_1.DisableRegionCommand,
|
|
40
40
|
EnableRegionCommand: client_account_1.EnableRegionCommand,
|
|
41
|
+
GetAccountInformationCommand: client_account_1.GetAccountInformationCommand,
|
|
41
42
|
GetAlternateContactCommand: client_account_1.GetAlternateContactCommand,
|
|
42
43
|
GetContactInformationCommand: client_account_1.GetContactInformationCommand,
|
|
43
44
|
GetPrimaryEmailCommand: client_account_1.GetPrimaryEmailCommand,
|
|
44
45
|
GetRegionOptStatusCommand: client_account_1.GetRegionOptStatusCommand,
|
|
45
46
|
ListRegionsCommand: client_account_1.ListRegionsCommand,
|
|
47
|
+
PutAccountNameCommand: client_account_1.PutAccountNameCommand,
|
|
46
48
|
PutAlternateContactCommand: client_account_1.PutAlternateContactCommand,
|
|
47
49
|
PutContactInformationCommand: client_account_1.PutContactInformationCommand,
|
|
48
50
|
StartPrimaryEmailUpdateCommand: client_account_1.StartPrimaryEmailUpdateCommand,
|
|
@@ -53,7 +55,7 @@ const commands = {
|
|
|
53
55
|
*/
|
|
54
56
|
exports.makeAccountService = effect_1.Effect.gen(function* () {
|
|
55
57
|
const client = yield* Instance.AccountClientInstance;
|
|
56
|
-
return commons_1.Service.fromClientAndCommands(client, commands, {
|
|
58
|
+
return yield* commons_1.Service.fromClientAndCommands(client, commands, {
|
|
57
59
|
errorTags: Errors_js_1.AllServiceErrors,
|
|
58
60
|
resolveClientConfig: AccountServiceConfig.toAccountClientConfig,
|
|
59
61
|
});
|
|
@@ -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.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AC,MAA6B,EAAE,EAAE,CACxD,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAAkB,CAAC,CAAC,IAAI,CACzC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC,CACpE,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAA+D,EAC/D,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAAkB,CAAC,CAAC,IAAI,CACzC,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,qBAAqB,EAC9B,eAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CACjE,CACF,CACF,CAAC;;AApBN,wCAqBC"}
|
package/dist/cjs/Errors.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, TooManyRequestsException, ValidationException } from "@aws-sdk/client-account";
|
|
2
2
|
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
3
|
export declare const AllServiceErrors: readonly ["AccessDeniedException", "ConflictException", "InternalServerException", "ResourceNotFoundException", "TooManyRequestsException", "ValidationException"];
|
|
5
4
|
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
6
5
|
export type ConflictError = TaggedException<ConflictException>;
|
|
@@ -8,6 +7,7 @@ export type InternalServerError = TaggedException<InternalServerException>;
|
|
|
8
7
|
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
9
8
|
export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
|
|
10
9
|
export type ValidationError = TaggedException<ValidationException>;
|
|
11
|
-
export type SdkError =
|
|
12
|
-
|
|
10
|
+
export type SdkError = TaggedException<Error & {
|
|
11
|
+
name: "SdkError";
|
|
12
|
+
}>;
|
|
13
13
|
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,oKAOnB,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,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"}
|
package/dist/cjs/Errors.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const commons_1 = require("@effect-aws/commons");
|
|
3
|
+
exports.AllServiceErrors = void 0;
|
|
5
4
|
exports.AllServiceErrors = [
|
|
6
5
|
"AccessDeniedException",
|
|
7
6
|
"ConflictException",
|
|
@@ -10,5 +9,4 @@ exports.AllServiceErrors = [
|
|
|
10
9
|
"TooManyRequestsException",
|
|
11
10
|
"ValidationException",
|
|
12
11
|
];
|
|
13
|
-
exports.SdkError = commons_1.SdkError;
|
|
14
12
|
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAUa,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,mBAAmB;IACnB,yBAAyB;IACzB,2BAA2B;IAC3B,0BAA0B;IAC1B,qBAAqB;CACb,CAAC"}
|
|
@@ -1,61 +1,70 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import { type AcceptPrimaryEmailUpdateCommandInput, type AcceptPrimaryEmailUpdateCommandOutput, type AccountClient, type AccountClientConfig, type DeleteAlternateContactCommandInput, type DeleteAlternateContactCommandOutput, type DisableRegionCommandInput, type DisableRegionCommandOutput, type EnableRegionCommandInput, type EnableRegionCommandOutput, type GetAlternateContactCommandInput, type GetAlternateContactCommandOutput, type GetContactInformationCommandInput, type GetContactInformationCommandOutput, type GetPrimaryEmailCommandInput, type GetPrimaryEmailCommandOutput, type GetRegionOptStatusCommandInput, type GetRegionOptStatusCommandOutput, type ListRegionsCommandInput, type ListRegionsCommandOutput, type PutAlternateContactCommandInput, type PutAlternateContactCommandOutput, type PutContactInformationCommandInput, type PutContactInformationCommandOutput, type StartPrimaryEmailUpdateCommandInput, type StartPrimaryEmailUpdateCommandOutput } from "@aws-sdk/client-account";
|
|
5
|
-
import type { HttpHandlerOptions,
|
|
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 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 { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import type { Cause } from "effect";
|
|
6
7
|
import { Effect, Layer } from "effect";
|
|
7
8
|
import * as Instance from "./AccountClientInstance.js";
|
|
8
|
-
import type { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, TooManyRequestsError, ValidationError } from "./Errors.js";
|
|
9
|
+
import type { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, SdkError, TooManyRequestsError, ValidationError } from "./Errors.js";
|
|
9
10
|
interface AccountService$ {
|
|
10
11
|
readonly _: unique symbol;
|
|
11
12
|
/**
|
|
12
13
|
* @see {@link AcceptPrimaryEmailUpdateCommand}
|
|
13
14
|
*/
|
|
14
|
-
acceptPrimaryEmailUpdate(args: AcceptPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<AcceptPrimaryEmailUpdateCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
15
|
+
acceptPrimaryEmailUpdate(args: AcceptPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<AcceptPrimaryEmailUpdateCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
15
16
|
/**
|
|
16
17
|
* @see {@link DeleteAlternateContactCommand}
|
|
17
18
|
*/
|
|
18
|
-
deleteAlternateContact(args: DeleteAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAlternateContactCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
19
|
+
deleteAlternateContact(args: DeleteAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAlternateContactCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
19
20
|
/**
|
|
20
21
|
* @see {@link DisableRegionCommand}
|
|
21
22
|
*/
|
|
22
|
-
disableRegion(args: DisableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisableRegionCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
23
|
+
disableRegion(args: DisableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisableRegionCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
23
24
|
/**
|
|
24
25
|
* @see {@link EnableRegionCommand}
|
|
25
26
|
*/
|
|
26
|
-
enableRegion(args: EnableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnableRegionCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
27
|
+
enableRegion(args: EnableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnableRegionCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
28
|
+
/**
|
|
29
|
+
* @see {@link GetAccountInformationCommand}
|
|
30
|
+
*/
|
|
31
|
+
getAccountInformation(args: GetAccountInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccountInformationCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
27
32
|
/**
|
|
28
33
|
* @see {@link GetAlternateContactCommand}
|
|
29
34
|
*/
|
|
30
|
-
getAlternateContact(args: GetAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAlternateContactCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
35
|
+
getAlternateContact(args: GetAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAlternateContactCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
31
36
|
/**
|
|
32
37
|
* @see {@link GetContactInformationCommand}
|
|
33
38
|
*/
|
|
34
|
-
getContactInformation(args: GetContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetContactInformationCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
39
|
+
getContactInformation(args: GetContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetContactInformationCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
35
40
|
/**
|
|
36
41
|
* @see {@link GetPrimaryEmailCommand}
|
|
37
42
|
*/
|
|
38
|
-
getPrimaryEmail(args: GetPrimaryEmailCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPrimaryEmailCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
43
|
+
getPrimaryEmail(args: GetPrimaryEmailCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPrimaryEmailCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
39
44
|
/**
|
|
40
45
|
* @see {@link GetRegionOptStatusCommand}
|
|
41
46
|
*/
|
|
42
|
-
getRegionOptStatus(args: GetRegionOptStatusCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetRegionOptStatusCommandOutput, SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
47
|
+
getRegionOptStatus(args: GetRegionOptStatusCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetRegionOptStatusCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
43
48
|
/**
|
|
44
49
|
* @see {@link ListRegionsCommand}
|
|
45
50
|
*/
|
|
46
|
-
listRegions(args: ListRegionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListRegionsCommandOutput, SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
51
|
+
listRegions(args: ListRegionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListRegionsCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
52
|
+
/**
|
|
53
|
+
* @see {@link PutAccountNameCommand}
|
|
54
|
+
*/
|
|
55
|
+
putAccountName(args: PutAccountNameCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutAccountNameCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
47
56
|
/**
|
|
48
57
|
* @see {@link PutAlternateContactCommand}
|
|
49
58
|
*/
|
|
50
|
-
putAlternateContact(args: PutAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutAlternateContactCommandOutput, SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
59
|
+
putAlternateContact(args: PutAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutAlternateContactCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
51
60
|
/**
|
|
52
61
|
* @see {@link PutContactInformationCommand}
|
|
53
62
|
*/
|
|
54
|
-
putContactInformation(args: PutContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutContactInformationCommandOutput, SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
63
|
+
putContactInformation(args: PutContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutContactInformationCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
55
64
|
/**
|
|
56
65
|
* @see {@link StartPrimaryEmailUpdateCommand}
|
|
57
66
|
*/
|
|
58
|
-
startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartPrimaryEmailUpdateCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
67
|
+
startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartPrimaryEmailUpdateCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
59
68
|
}
|
|
60
69
|
/**
|
|
61
70
|
* @since 1.0.0
|
|
@@ -63,7 +72,7 @@ interface AccountService$ {
|
|
|
63
72
|
*/
|
|
64
73
|
export declare const makeAccountService: Effect.Effect<AccountService$, never, Instance.AccountClientInstance>;
|
|
65
74
|
declare const AccountService_base: import("effect/Context").TagClass<AccountService, "@effect-aws/client-account/AccountService", AccountService$> & Effect.Tag.Proxy<AccountService, AccountService$> & {
|
|
66
|
-
use: <X>(body: (_: AccountService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, AccountService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1,
|
|
75
|
+
use: <X>(body: (_: AccountService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, AccountService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, AccountService> : Effect.Effect<X, never, AccountService>;
|
|
67
76
|
};
|
|
68
77
|
/**
|
|
69
78
|
* @since 1.0.0
|
|
@@ -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,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAC1C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,
|
|
1
|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B,MAAO,SAAQ,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC;QACjE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
package/dist/dts/Errors.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, TooManyRequestsException, ValidationException } from "@aws-sdk/client-account";
|
|
2
2
|
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
3
|
export declare const AllServiceErrors: readonly ["AccessDeniedException", "ConflictException", "InternalServerException", "ResourceNotFoundException", "TooManyRequestsException", "ValidationException"];
|
|
5
4
|
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
6
5
|
export type ConflictError = TaggedException<ConflictException>;
|
|
@@ -8,6 +7,7 @@ export type InternalServerError = TaggedException<InternalServerException>;
|
|
|
8
7
|
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
9
8
|
export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
|
|
10
9
|
export type ValidationError = TaggedException<ValidationException>;
|
|
11
|
-
export type SdkError =
|
|
12
|
-
|
|
10
|
+
export type SdkError = TaggedException<Error & {
|
|
11
|
+
name: "SdkError";
|
|
12
|
+
}>;
|
|
13
13
|
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/dts/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,oKAOnB,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,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import { AcceptPrimaryEmailUpdateCommand, DeleteAlternateContactCommand, DisableRegionCommand, EnableRegionCommand, GetAlternateContactCommand, GetContactInformationCommand, GetPrimaryEmailCommand, GetRegionOptStatusCommand, ListRegionsCommand, PutAlternateContactCommand, PutContactInformationCommand, StartPrimaryEmailUpdateCommand, } from "@aws-sdk/client-account";
|
|
4
|
+
import { AcceptPrimaryEmailUpdateCommand, DeleteAlternateContactCommand, DisableRegionCommand, EnableRegionCommand, GetAccountInformationCommand, GetAlternateContactCommand, GetContactInformationCommand, GetPrimaryEmailCommand, GetRegionOptStatusCommand, ListRegionsCommand, PutAccountNameCommand, PutAlternateContactCommand, PutContactInformationCommand, StartPrimaryEmailUpdateCommand, } from "@aws-sdk/client-account";
|
|
5
5
|
import { Service } from "@effect-aws/commons";
|
|
6
6
|
import { Effect, Layer } from "effect";
|
|
7
7
|
import * as Instance from "./AccountClientInstance.js";
|
|
@@ -12,11 +12,13 @@ const commands = {
|
|
|
12
12
|
DeleteAlternateContactCommand,
|
|
13
13
|
DisableRegionCommand,
|
|
14
14
|
EnableRegionCommand,
|
|
15
|
+
GetAccountInformationCommand,
|
|
15
16
|
GetAlternateContactCommand,
|
|
16
17
|
GetContactInformationCommand,
|
|
17
18
|
GetPrimaryEmailCommand,
|
|
18
19
|
GetRegionOptStatusCommand,
|
|
19
20
|
ListRegionsCommand,
|
|
21
|
+
PutAccountNameCommand,
|
|
20
22
|
PutAlternateContactCommand,
|
|
21
23
|
PutContactInformationCommand,
|
|
22
24
|
StartPrimaryEmailUpdateCommand,
|
|
@@ -27,7 +29,7 @@ const commands = {
|
|
|
27
29
|
*/
|
|
28
30
|
export const makeAccountService = Effect.gen(function* () {
|
|
29
31
|
const client = yield* Instance.AccountClientInstance;
|
|
30
|
-
return Service.fromClientAndCommands(client, commands, {
|
|
32
|
+
return yield* Service.fromClientAndCommands(client, commands, {
|
|
31
33
|
errorTags: AllServiceErrors,
|
|
32
34
|
resolveClientConfig: AccountServiceConfig.toAccountClientConfig,
|
|
33
35
|
});
|
|
@@ -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,0BAA0B,EAG1B,4BAA4B,EAG5B,sBAAsB,EAGtB,yBAAyB,EAGzB,kBAAkB,EAGlB,0BAA0B,EAG1B,4BAA4B,EAG5B,8BAA8B,GAG/B,MAAM,yBAAyB,CA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AC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,OAAO,cAAe,SAAQ,MAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC,EAGxF;IACD,MAAM,CAAU,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,kBAAkB,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,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"}
|
package/dist/esm/Errors.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
2
1
|
export const AllServiceErrors = [
|
|
3
2
|
"AccessDeniedException",
|
|
4
3
|
"ConflictException",
|
|
@@ -7,5 +6,4 @@ export const AllServiceErrors = [
|
|
|
7
6
|
"TooManyRequestsException",
|
|
8
7
|
"ValidationException",
|
|
9
8
|
];
|
|
10
|
-
export const SdkError = CommonSdkError;
|
|
11
9
|
//# sourceMappingURL=Errors.js.map
|
package/dist/esm/Errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,mBAAmB;IACnB,yBAAyB;IACzB,2BAA2B;IAC3B,0BAA0B;IAC1B,qBAAqB;CACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-account",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.2",
|
|
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.3.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"effect": ">=3.0.4 <4.0.0"
|
package/src/AccountService.ts
CHANGED
|
@@ -16,6 +16,9 @@ import {
|
|
|
16
16
|
EnableRegionCommand,
|
|
17
17
|
type EnableRegionCommandInput,
|
|
18
18
|
type EnableRegionCommandOutput,
|
|
19
|
+
GetAccountInformationCommand,
|
|
20
|
+
type GetAccountInformationCommandInput,
|
|
21
|
+
type GetAccountInformationCommandOutput,
|
|
19
22
|
GetAlternateContactCommand,
|
|
20
23
|
type GetAlternateContactCommandInput,
|
|
21
24
|
type GetAlternateContactCommandOutput,
|
|
@@ -31,6 +34,9 @@ import {
|
|
|
31
34
|
ListRegionsCommand,
|
|
32
35
|
type ListRegionsCommandInput,
|
|
33
36
|
type ListRegionsCommandOutput,
|
|
37
|
+
PutAccountNameCommand,
|
|
38
|
+
type PutAccountNameCommandInput,
|
|
39
|
+
type PutAccountNameCommandOutput,
|
|
34
40
|
PutAlternateContactCommand,
|
|
35
41
|
type PutAlternateContactCommandInput,
|
|
36
42
|
type PutAlternateContactCommandOutput,
|
|
@@ -41,8 +47,9 @@ import {
|
|
|
41
47
|
type StartPrimaryEmailUpdateCommandInput,
|
|
42
48
|
type StartPrimaryEmailUpdateCommandOutput,
|
|
43
49
|
} from "@aws-sdk/client-account";
|
|
44
|
-
import type { HttpHandlerOptions,
|
|
50
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
45
51
|
import { Service } from "@effect-aws/commons";
|
|
52
|
+
import type { Cause } from "effect";
|
|
46
53
|
import { Effect, Layer } from "effect";
|
|
47
54
|
import * as Instance from "./AccountClientInstance.js";
|
|
48
55
|
import * as AccountServiceConfig from "./AccountServiceConfig.js";
|
|
@@ -51,6 +58,7 @@ import type {
|
|
|
51
58
|
ConflictError,
|
|
52
59
|
InternalServerError,
|
|
53
60
|
ResourceNotFoundError,
|
|
61
|
+
SdkError,
|
|
54
62
|
TooManyRequestsError,
|
|
55
63
|
ValidationError,
|
|
56
64
|
} from "./Errors.js";
|
|
@@ -61,11 +69,13 @@ const commands = {
|
|
|
61
69
|
DeleteAlternateContactCommand,
|
|
62
70
|
DisableRegionCommand,
|
|
63
71
|
EnableRegionCommand,
|
|
72
|
+
GetAccountInformationCommand,
|
|
64
73
|
GetAlternateContactCommand,
|
|
65
74
|
GetContactInformationCommand,
|
|
66
75
|
GetPrimaryEmailCommand,
|
|
67
76
|
GetRegionOptStatusCommand,
|
|
68
77
|
ListRegionsCommand,
|
|
78
|
+
PutAccountNameCommand,
|
|
69
79
|
PutAlternateContactCommand,
|
|
70
80
|
PutContactInformationCommand,
|
|
71
81
|
StartPrimaryEmailUpdateCommand,
|
|
@@ -82,6 +92,7 @@ interface AccountService$ {
|
|
|
82
92
|
options?: HttpHandlerOptions,
|
|
83
93
|
): Effect.Effect<
|
|
84
94
|
AcceptPrimaryEmailUpdateCommandOutput,
|
|
95
|
+
| Cause.TimeoutException
|
|
85
96
|
| SdkError
|
|
86
97
|
| AccessDeniedError
|
|
87
98
|
| ConflictError
|
|
@@ -99,7 +110,13 @@ interface AccountService$ {
|
|
|
99
110
|
options?: HttpHandlerOptions,
|
|
100
111
|
): Effect.Effect<
|
|
101
112
|
DeleteAlternateContactCommandOutput,
|
|
102
|
-
|
|
113
|
+
| Cause.TimeoutException
|
|
114
|
+
| SdkError
|
|
115
|
+
| AccessDeniedError
|
|
116
|
+
| InternalServerError
|
|
117
|
+
| ResourceNotFoundError
|
|
118
|
+
| TooManyRequestsError
|
|
119
|
+
| ValidationError
|
|
103
120
|
>;
|
|
104
121
|
|
|
105
122
|
/**
|
|
@@ -110,7 +127,13 @@ interface AccountService$ {
|
|
|
110
127
|
options?: HttpHandlerOptions,
|
|
111
128
|
): Effect.Effect<
|
|
112
129
|
DisableRegionCommandOutput,
|
|
113
|
-
|
|
130
|
+
| Cause.TimeoutException
|
|
131
|
+
| SdkError
|
|
132
|
+
| AccessDeniedError
|
|
133
|
+
| ConflictError
|
|
134
|
+
| InternalServerError
|
|
135
|
+
| TooManyRequestsError
|
|
136
|
+
| ValidationError
|
|
114
137
|
>;
|
|
115
138
|
|
|
116
139
|
/**
|
|
@@ -121,7 +144,24 @@ interface AccountService$ {
|
|
|
121
144
|
options?: HttpHandlerOptions,
|
|
122
145
|
): Effect.Effect<
|
|
123
146
|
EnableRegionCommandOutput,
|
|
124
|
-
|
|
147
|
+
| Cause.TimeoutException
|
|
148
|
+
| SdkError
|
|
149
|
+
| AccessDeniedError
|
|
150
|
+
| ConflictError
|
|
151
|
+
| InternalServerError
|
|
152
|
+
| TooManyRequestsError
|
|
153
|
+
| ValidationError
|
|
154
|
+
>;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @see {@link GetAccountInformationCommand}
|
|
158
|
+
*/
|
|
159
|
+
getAccountInformation(
|
|
160
|
+
args: GetAccountInformationCommandInput,
|
|
161
|
+
options?: HttpHandlerOptions,
|
|
162
|
+
): Effect.Effect<
|
|
163
|
+
GetAccountInformationCommandOutput,
|
|
164
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
125
165
|
>;
|
|
126
166
|
|
|
127
167
|
/**
|
|
@@ -132,7 +172,13 @@ interface AccountService$ {
|
|
|
132
172
|
options?: HttpHandlerOptions,
|
|
133
173
|
): Effect.Effect<
|
|
134
174
|
GetAlternateContactCommandOutput,
|
|
135
|
-
|
|
175
|
+
| Cause.TimeoutException
|
|
176
|
+
| SdkError
|
|
177
|
+
| AccessDeniedError
|
|
178
|
+
| InternalServerError
|
|
179
|
+
| ResourceNotFoundError
|
|
180
|
+
| TooManyRequestsError
|
|
181
|
+
| ValidationError
|
|
136
182
|
>;
|
|
137
183
|
|
|
138
184
|
/**
|
|
@@ -143,7 +189,13 @@ interface AccountService$ {
|
|
|
143
189
|
options?: HttpHandlerOptions,
|
|
144
190
|
): Effect.Effect<
|
|
145
191
|
GetContactInformationCommandOutput,
|
|
146
|
-
|
|
192
|
+
| Cause.TimeoutException
|
|
193
|
+
| SdkError
|
|
194
|
+
| AccessDeniedError
|
|
195
|
+
| InternalServerError
|
|
196
|
+
| ResourceNotFoundError
|
|
197
|
+
| TooManyRequestsError
|
|
198
|
+
| ValidationError
|
|
147
199
|
>;
|
|
148
200
|
|
|
149
201
|
/**
|
|
@@ -154,7 +206,13 @@ interface AccountService$ {
|
|
|
154
206
|
options?: HttpHandlerOptions,
|
|
155
207
|
): Effect.Effect<
|
|
156
208
|
GetPrimaryEmailCommandOutput,
|
|
157
|
-
|
|
209
|
+
| Cause.TimeoutException
|
|
210
|
+
| SdkError
|
|
211
|
+
| AccessDeniedError
|
|
212
|
+
| InternalServerError
|
|
213
|
+
| ResourceNotFoundError
|
|
214
|
+
| TooManyRequestsError
|
|
215
|
+
| ValidationError
|
|
158
216
|
>;
|
|
159
217
|
|
|
160
218
|
/**
|
|
@@ -165,7 +223,7 @@ interface AccountService$ {
|
|
|
165
223
|
options?: HttpHandlerOptions,
|
|
166
224
|
): Effect.Effect<
|
|
167
225
|
GetRegionOptStatusCommandOutput,
|
|
168
|
-
SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
226
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
169
227
|
>;
|
|
170
228
|
|
|
171
229
|
/**
|
|
@@ -176,7 +234,18 @@ interface AccountService$ {
|
|
|
176
234
|
options?: HttpHandlerOptions,
|
|
177
235
|
): Effect.Effect<
|
|
178
236
|
ListRegionsCommandOutput,
|
|
179
|
-
SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
237
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
238
|
+
>;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @see {@link PutAccountNameCommand}
|
|
242
|
+
*/
|
|
243
|
+
putAccountName(
|
|
244
|
+
args: PutAccountNameCommandInput,
|
|
245
|
+
options?: HttpHandlerOptions,
|
|
246
|
+
): Effect.Effect<
|
|
247
|
+
PutAccountNameCommandOutput,
|
|
248
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
180
249
|
>;
|
|
181
250
|
|
|
182
251
|
/**
|
|
@@ -187,7 +256,7 @@ interface AccountService$ {
|
|
|
187
256
|
options?: HttpHandlerOptions,
|
|
188
257
|
): Effect.Effect<
|
|
189
258
|
PutAlternateContactCommandOutput,
|
|
190
|
-
SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
259
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
191
260
|
>;
|
|
192
261
|
|
|
193
262
|
/**
|
|
@@ -198,7 +267,7 @@ interface AccountService$ {
|
|
|
198
267
|
options?: HttpHandlerOptions,
|
|
199
268
|
): Effect.Effect<
|
|
200
269
|
PutContactInformationCommandOutput,
|
|
201
|
-
SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
270
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
202
271
|
>;
|
|
203
272
|
|
|
204
273
|
/**
|
|
@@ -209,6 +278,7 @@ interface AccountService$ {
|
|
|
209
278
|
options?: HttpHandlerOptions,
|
|
210
279
|
): Effect.Effect<
|
|
211
280
|
StartPrimaryEmailUpdateCommandOutput,
|
|
281
|
+
| Cause.TimeoutException
|
|
212
282
|
| SdkError
|
|
213
283
|
| AccessDeniedError
|
|
214
284
|
| ConflictError
|
|
@@ -226,7 +296,7 @@ interface AccountService$ {
|
|
|
226
296
|
export const makeAccountService = Effect.gen(function*() {
|
|
227
297
|
const client = yield* Instance.AccountClientInstance;
|
|
228
298
|
|
|
229
|
-
return Service.fromClientAndCommands<AccountService$>(
|
|
299
|
+
return yield* Service.fromClientAndCommands<AccountService$>(
|
|
230
300
|
client,
|
|
231
301
|
commands,
|
|
232
302
|
{
|
package/src/Errors.ts
CHANGED
|
@@ -7,7 +7,6 @@ import type {
|
|
|
7
7
|
ValidationException,
|
|
8
8
|
} from "@aws-sdk/client-account";
|
|
9
9
|
import type { TaggedException } from "@effect-aws/commons";
|
|
10
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
11
10
|
|
|
12
11
|
export const AllServiceErrors = [
|
|
13
12
|
"AccessDeniedException",
|
|
@@ -24,6 +23,4 @@ export type InternalServerError = TaggedException<InternalServerException>;
|
|
|
24
23
|
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
25
24
|
export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
|
|
26
25
|
export type ValidationError = TaggedException<ValidationException>;
|
|
27
|
-
|
|
28
|
-
export type SdkError = CommonSdkError;
|
|
29
|
-
export const SdkError = CommonSdkError;
|
|
26
|
+
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
|