Skip to main content Link Search Menu Expand Document (external link)

Service overview

Added in v0.1.0


Table of contents


constructors

fromClientAndCommands

Signature

export declare const fromClientAndCommands: <Service>(
  client: Client<any, any, any>,
  commands: Record<string, CommandCtor<any>>,
  errorTags?: Array.NonEmptyReadonlyArray<string>
) => Service

Added in v0.1.0

fromCommandsAndServiceFn

Signature

export declare const fromCommandsAndServiceFn: <Service>(
  commands: Record<string, CommandCtor<any>>,
  serviceFnMaker: (CommandCtor: CommandCtor<any>) => ReturnType<typeof makeServiceFn>
) => Service

Added in v0.1.0

makeServiceFn

Signature

export declare const makeServiceFn: (
  client: Client<any, any, any>,
  CommandCtor: CommandCtor<any>,
  errorTags?: Array.NonEmptyReadonlyArray<string>
) => (
  args: any,
  options?: HttpHandlerOptions
) => Effect.Effect<any, TaggedException<ServiceException> | SdkError, never>

Added in v0.1.0

errors

catchServiceExceptions

Signature

export declare const catchServiceExceptions: (
  errorTags?: Array.NonEmptyReadonlyArray<string>
) => (e: unknown) => TaggedException<ServiceException> | SdkError

Added in v0.1.0