Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface StandardSkillBuilder

An interface containing help functions to build a CustomSkill with dynamoDB configuration options.

Hierarchy

  • BaseSkillBuilder
    • StandardSkillBuilder

Index

Methods

addErrorHandler

  • addErrorHandler(matcher: function, executor: function): this
  • Parameters

    • matcher: function
        • (input: HandlerInput, error: Error): Promise<boolean> | boolean
        • Parameters

          • input: HandlerInput
          • error: Error

          Returns Promise<boolean> | boolean

    • executor: function
        • (input: HandlerInput, error: Error): Promise<Response> | Response
        • Parameters

          • input: HandlerInput
          • error: Error

          Returns Promise<Response> | Response

    Returns this

addErrorHandlers

  • addErrorHandlers(...errorHandlers: CustomSkillErrorHandler[]): this
  • Parameters

    • Rest ...errorHandlers: CustomSkillErrorHandler[]

    Returns this

addRequestHandler

  • addRequestHandler(matcher: function | string, executor: function): this
  • Parameters

    • matcher: function | string
    • executor: function
        • (input: HandlerInput): Promise<Response> | Response
        • Parameters

          • input: HandlerInput

          Returns Promise<Response> | Response

    Returns this

addRequestHandlers

  • addRequestHandlers(...requestHandlers: CustomSkillRequestHandler[]): this
  • Parameters

    • Rest ...requestHandlers: CustomSkillRequestHandler[]

    Returns this

addRequestInterceptors

  • addRequestInterceptors(...executors: Array<CustomSkillRequestInterceptor | function>): this
  • Parameters

    • Rest ...executors: Array<CustomSkillRequestInterceptor | function>

    Returns this

addResponseInterceptors

  • addResponseInterceptors(...executors: Array<CustomSkillResponseInterceptor | function>): this
  • Parameters

    • Rest ...executors: Array<CustomSkillResponseInterceptor | function>

    Returns this

create

  • create(): CustomSkill
  • Returns CustomSkill

getSkillConfiguration

  • getSkillConfiguration(): CustomSkillConfiguration
  • Returns CustomSkillConfiguration

lambda

  • Returns LambdaHandler

withAutoCreateTable

  • withAutoCreateTable(autoCreateTable: boolean): this

withCustomUserAgent

  • withCustomUserAgent(customUserAgent: string): this
  • Parameters

    • customUserAgent: string

    Returns this

withDynamoDbClient

  • withDynamoDbClient(customDynamoDBClient: DynamoDB): this

withPartitionKeyGenerator

withSkillId

  • withSkillId(skillId: string): this
  • Parameters

    • skillId: string

    Returns this

withTableName

  • withTableName(tableName: string): this