1
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
6
"github.com/aws/aws-sdk-go/aws"
7
"github.com/aws/aws-sdk-go/aws/defaults"
8
"github.com/aws/aws-sdk-go/aws/request"
9
"github.com/aws/aws-sdk-go/aws/service"
10
"github.com/aws/aws-sdk-go/aws/service/serviceinfo"
11
"github.com/aws/aws-sdk-go/internal/protocol/restjson"
12
"github.com/aws/aws-sdk-go/internal/signer/v4"
17
// This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides
18
// additional information. For the service overview, go to What is AWS Lambda
19
// (http://docs.aws.amazon.com/lambda/latest/dg/welcome.html), and for information
20
// about how the service works, go to AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html)
21
// in the AWS Lambda Developer Guide.
26
// Used for custom service initialization logic
27
var initService func(*service.Service)
29
// Used for custom request initialization logic
30
var initRequest func(*request.Request)
32
// New returns a new Lambda client.
33
func New(config *aws.Config) *Lambda {
34
service := &service.Service{
35
ServiceInfo: serviceinfo.ServiceInfo{
36
Config: defaults.DefaultConfig.Merge(config),
37
ServiceName: "lambda",
38
APIVersion: "2015-03-31",
44
service.Handlers.Sign.PushBack(v4.Sign)
45
service.Handlers.Build.PushBack(restjson.Build)
46
service.Handlers.Unmarshal.PushBack(restjson.Unmarshal)
47
service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta)
48
service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError)
50
// Run custom service initialization if present
51
if initService != nil {
55
return &Lambda{service}
58
// newRequest creates a new request for a Lambda operation and runs any
59
// custom request initialization.
60
func (c *Lambda) newRequest(op *request.Operation, params, data interface{}) *request.Request {
61
req := c.NewRequest(op, params, data)
63
// Run custom request initialization if present
64
if initRequest != nil {