MCPcopy
hub / github.com/aws/aws-lambda-go / WithDisallowUnknownFields

Function WithDisallowUnknownFields

lambda/handler.go:78–82  ·  view source on GitHub ↗

WithDisallowUnknownFields sets the DisallowUnknownFields option on the underlying json decoder

(disallowUnknownFields bool)

Source from the content-addressed store, hash-verified

76
77// WithDisallowUnknownFields sets the DisallowUnknownFields option on the underlying json decoder
78func WithDisallowUnknownFields(disallowUnknownFields bool) Option {
79 return Option(func(h *handlerOptions) {
80 h.jsonRequestDisallowUnknownFields = disallowUnknownFields
81 })
82}
83
84// WithEnableSIGTERM enables SIGTERM behavior within the Lambda platform on container spindown.
85// SIGKILL will occur ~500ms after SIGTERM.

Callers 2

TestInvokesFunction · 0.85

Calls 1

OptionFuncType · 0.85

Tested by 2

TestInvokesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…