faast.js

faast.js

  • Docs
  • API
  • Community
  • GitHub
  • Blog

faastjs > AwsClientFactory

AwsClientFactory interface

Factory for AWS service clients, which allows for custom construction and configuration. AWS Configuration.

Signature:

export interface AwsClientFactory 

Remarks

This is an advanced option. This provides a way for a faast.js client to instantiate AWS service objects for itself to provide custom options. Note that if you create a service object yourself, it won't have the default options that faast.js would use, which are:

  • maxAttempts (faast.js default: 6) - region (faast.js default: "us-west-2") - logger (faast.js default: log.awssdk)

Properties

Property

Modifiers

Type

Description

createCloudWatchLogs?

() => CloudWatchLogs

(Optional)

createIAM?

() => IAM

(Optional)

createLambda?

() => Lambda

(Optional)

createLambdaForInvocations?

() => Lambda

(Optional) A special AWS Lambda factory for creating lambda functions that are used for faast.js invocations. These special clients have the following options set by default in faast.js:

// Retries are handled by faast.js, not the sdk. maxAttempts: 0,

createPricing?

() => Pricing

(Optional)

createS3?

() => S3

(Optional)

createSNS?

() => SNS

(Optional)

createSQS?

() => SQS

(Optional)

createSts?

() => STS

(Optional)

  • AwsClientFactory interface
  • Remarks
  • Properties
faast.js
Docs
IntroductionAPI ReferenceContributingExamples
Community
DiscordTwitterStack Overflow
More
BlogUser Showcase
Copyright © 2025 Andy Chou