@effect-aws/client-account 1.9.3 → 1.10.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.
@@ -1,8 +1,9 @@
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";
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
5
  import type { HttpHandlerOptions, SdkError, 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
9
  import type { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, TooManyRequestsError, ValidationError } from "./Errors.js";
@@ -11,51 +12,59 @@ interface AccountService$ {
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, import("effect/Cause").UnknownException, AccountService> : Effect.Effect<X, never, AccountService>;
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,QAAQ,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEvF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,QAAQ,MAAM,4BAA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ACH,qBAAqB,CACnB,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,kCAAkC,EAClC,KAAK,CAAC,gBAAgB,GAAG,QAAQ,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,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,uEAW7B,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;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,4DAuCiC;AAEjC,iDAA8C;AAC9C,mCAAuC;AACvC,qEAAuD;AACvD,gFAAkE;AASlE,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,0BAA0B,EAA1B,2CAA0B;IAC1B,4BAA4B,EAA5B,6CAA4B;IAC5B,sBAAsB,EAAtB,uCAAsB;IACtB,yBAAyB,EAAzB,0CAAyB;IACzB,kBAAkB,EAAlB,mCAAkB;IAClB,0BAA0B,EAA1B,2CAA0B;IAC1B,4BAA4B,EAA5B,6CAA4B;IAC5B,8BAA8B,EAA9B,+CA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,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"}
@@ -1,8 +1,9 @@
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";
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
5
  import type { HttpHandlerOptions, SdkError, 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
9
  import type { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, TooManyRequestsError, ValidationError } from "./Errors.js";
@@ -11,51 +12,59 @@ interface AccountService$ {
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, import("effect/Cause").UnknownException, AccountService> : Effect.Effect<X, never, AccountService>;
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,E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,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;CACF"}
@@ -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,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,QAAQ,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AASlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,QAAQ,GAAG;IACf,+BAA+B;IAC/B,6BAA6B;IAC7B,oBAAoB;IACpB,mBAAmB;IACnB,0BAA0B;IAC1B,4BAA4B;IAC5B,sBAAsB;IACtB,yBAAyB;IACzB,kBAAkB;IAClB,0BAA0B;IAC1B,4BAA4B;IAC5B,8BAA8B;CAC/B,CAAC;AAsJF;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACpD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAErD,OAAO,OAAO,CAAC,qBAAqB,CAClC,MAAM,EACN,QAAQ,EACR;QACE,SAAS,EAAE,gBAAgB;QAC3B,mBAAmB,EAAE,oBAAoB,CAAC,qBAAqB;KAChE,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;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,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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-aws/client-account",
3
- "version": "1.9.3",
3
+ "version": "1.10.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.2.0"
19
+ "@effect-aws/commons": "^0.3.0"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "effect": ">=3.0.4 <4.0.0"
@@ -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,
@@ -43,6 +49,7 @@ import {
43
49
  } from "@aws-sdk/client-account";
44
50
  import type { HttpHandlerOptions, SdkError, 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";
@@ -61,11 +68,13 @@ const commands = {
61
68
  DeleteAlternateContactCommand,
62
69
  DisableRegionCommand,
63
70
  EnableRegionCommand,
71
+ GetAccountInformationCommand,
64
72
  GetAlternateContactCommand,
65
73
  GetContactInformationCommand,
66
74
  GetPrimaryEmailCommand,
67
75
  GetRegionOptStatusCommand,
68
76
  ListRegionsCommand,
77
+ PutAccountNameCommand,
69
78
  PutAlternateContactCommand,
70
79
  PutContactInformationCommand,
71
80
  StartPrimaryEmailUpdateCommand,
@@ -82,6 +91,7 @@ interface AccountService$ {
82
91
  options?: HttpHandlerOptions,
83
92
  ): Effect.Effect<
84
93
  AcceptPrimaryEmailUpdateCommandOutput,
94
+ | Cause.TimeoutException
85
95
  | SdkError
86
96
  | AccessDeniedError
87
97
  | ConflictError
@@ -99,7 +109,13 @@ interface AccountService$ {
99
109
  options?: HttpHandlerOptions,
100
110
  ): Effect.Effect<
101
111
  DeleteAlternateContactCommandOutput,
102
- SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError
112
+ | Cause.TimeoutException
113
+ | SdkError
114
+ | AccessDeniedError
115
+ | InternalServerError
116
+ | ResourceNotFoundError
117
+ | TooManyRequestsError
118
+ | ValidationError
103
119
  >;
104
120
 
105
121
  /**
@@ -110,7 +126,13 @@ interface AccountService$ {
110
126
  options?: HttpHandlerOptions,
111
127
  ): Effect.Effect<
112
128
  DisableRegionCommandOutput,
113
- SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError
129
+ | Cause.TimeoutException
130
+ | SdkError
131
+ | AccessDeniedError
132
+ | ConflictError
133
+ | InternalServerError
134
+ | TooManyRequestsError
135
+ | ValidationError
114
136
  >;
115
137
 
116
138
  /**
@@ -121,7 +143,24 @@ interface AccountService$ {
121
143
  options?: HttpHandlerOptions,
122
144
  ): Effect.Effect<
123
145
  EnableRegionCommandOutput,
124
- SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError
146
+ | Cause.TimeoutException
147
+ | SdkError
148
+ | AccessDeniedError
149
+ | ConflictError
150
+ | InternalServerError
151
+ | TooManyRequestsError
152
+ | ValidationError
153
+ >;
154
+
155
+ /**
156
+ * @see {@link GetAccountInformationCommand}
157
+ */
158
+ getAccountInformation(
159
+ args: GetAccountInformationCommandInput,
160
+ options?: HttpHandlerOptions,
161
+ ): Effect.Effect<
162
+ GetAccountInformationCommandOutput,
163
+ Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
125
164
  >;
126
165
 
127
166
  /**
@@ -132,7 +171,13 @@ interface AccountService$ {
132
171
  options?: HttpHandlerOptions,
133
172
  ): Effect.Effect<
134
173
  GetAlternateContactCommandOutput,
135
- SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError
174
+ | Cause.TimeoutException
175
+ | SdkError
176
+ | AccessDeniedError
177
+ | InternalServerError
178
+ | ResourceNotFoundError
179
+ | TooManyRequestsError
180
+ | ValidationError
136
181
  >;
137
182
 
138
183
  /**
@@ -143,7 +188,13 @@ interface AccountService$ {
143
188
  options?: HttpHandlerOptions,
144
189
  ): Effect.Effect<
145
190
  GetContactInformationCommandOutput,
146
- SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError
191
+ | Cause.TimeoutException
192
+ | SdkError
193
+ | AccessDeniedError
194
+ | InternalServerError
195
+ | ResourceNotFoundError
196
+ | TooManyRequestsError
197
+ | ValidationError
147
198
  >;
148
199
 
149
200
  /**
@@ -154,7 +205,13 @@ interface AccountService$ {
154
205
  options?: HttpHandlerOptions,
155
206
  ): Effect.Effect<
156
207
  GetPrimaryEmailCommandOutput,
157
- SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError
208
+ | Cause.TimeoutException
209
+ | SdkError
210
+ | AccessDeniedError
211
+ | InternalServerError
212
+ | ResourceNotFoundError
213
+ | TooManyRequestsError
214
+ | ValidationError
158
215
  >;
159
216
 
160
217
  /**
@@ -165,7 +222,7 @@ interface AccountService$ {
165
222
  options?: HttpHandlerOptions,
166
223
  ): Effect.Effect<
167
224
  GetRegionOptStatusCommandOutput,
168
- SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
225
+ Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
169
226
  >;
170
227
 
171
228
  /**
@@ -176,7 +233,18 @@ interface AccountService$ {
176
233
  options?: HttpHandlerOptions,
177
234
  ): Effect.Effect<
178
235
  ListRegionsCommandOutput,
179
- SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
236
+ Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
237
+ >;
238
+
239
+ /**
240
+ * @see {@link PutAccountNameCommand}
241
+ */
242
+ putAccountName(
243
+ args: PutAccountNameCommandInput,
244
+ options?: HttpHandlerOptions,
245
+ ): Effect.Effect<
246
+ PutAccountNameCommandOutput,
247
+ Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
180
248
  >;
181
249
 
182
250
  /**
@@ -187,7 +255,7 @@ interface AccountService$ {
187
255
  options?: HttpHandlerOptions,
188
256
  ): Effect.Effect<
189
257
  PutAlternateContactCommandOutput,
190
- SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
258
+ Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
191
259
  >;
192
260
 
193
261
  /**
@@ -198,7 +266,7 @@ interface AccountService$ {
198
266
  options?: HttpHandlerOptions,
199
267
  ): Effect.Effect<
200
268
  PutContactInformationCommandOutput,
201
- SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
269
+ Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
202
270
  >;
203
271
 
204
272
  /**
@@ -209,6 +277,7 @@ interface AccountService$ {
209
277
  options?: HttpHandlerOptions,
210
278
  ): Effect.Effect<
211
279
  StartPrimaryEmailUpdateCommandOutput,
280
+ | Cause.TimeoutException
212
281
  | SdkError
213
282
  | AccessDeniedError
214
283
  | ConflictError
@@ -226,7 +295,7 @@ interface AccountService$ {
226
295
  export const makeAccountService = Effect.gen(function*() {
227
296
  const client = yield* Instance.AccountClientInstance;
228
297
 
229
- return Service.fromClientAndCommands<AccountService$>(
298
+ return yield* Service.fromClientAndCommands<AccountService$>(
230
299
  client,
231
300
  commands,
232
301
  {