github.com/Jeffail/benthos/v3@v3.65.0/lib/util/aws/lambda/client/docs.go (about)

     1  package client
     2  
     3  import (
     4  	"github.com/Jeffail/benthos/v3/internal/docs"
     5  	"github.com/Jeffail/benthos/v3/lib/util/aws/session"
     6  )
     7  
     8  //------------------------------------------------------------------------------
     9  
    10  // FieldSpecs returns field specs for a lambda client config.
    11  func FieldSpecs() docs.FieldSpecs {
    12  	return docs.FieldSpecs{
    13  		docs.FieldCommon("function", "The function to invoke."),
    14  		docs.FieldAdvanced("rate_limit", "An optional [`rate_limit`](/docs/components/rate_limits/about) to throttle invocations by."),
    15  	}.Merge(session.FieldSpecs()).Add(
    16  		docs.FieldAdvanced("timeout", "The maximum period of time to wait before abandoning an invocation."),
    17  		docs.FieldAdvanced("retries", "The maximum number of retry attempts for each message."),
    18  	)
    19  }
    20  
    21  //------------------------------------------------------------------------------