Documentation ¶
Index ¶
- Constants
- func GetClient(context *endly.Context) (*lambda.Lambda, error)
- func New() endly.Service
- type CallInput
- type CallOutput
- type DeployInput
- type DeployOutput
- type DropFunctionInput
- type EventSourceMapping
- type EventTriggerInfo
- type FunctionInfo
- type RecreateFunctionInput
- type SetupFunctionEvent
- type SetupPermissionInput
- type SetupTriggerSourceInput
- type SetupTriggerSourceOutput
Constants ¶
View Source
const DefaultTrustPolicy = `` /* 193-byte string literal not displayed */
DefaultTrustPolicy represents default trust policy
View Source
const (
//ServiceID aws lambda service id.
ServiceID = "aws/lambda"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallInput ¶ added in v0.29.0
type CallInput lambda.InvokeInput
CallInput represents a call request
type CallOutput ¶ added in v0.29.0
type CallOutput struct { *lambda.InvokeOutput Response interface{} }
CallOutput represents a call response
type DeployInput ¶ added in v0.29.0
type DeployInput struct { lambda.CreateFunctionInput ciam.SetupRolePolicyInput Triggers []*EventSourceMapping }
DeployInput setup function, creates or updates existing one
func (*DeployInput) Init ¶ added in v0.29.0
func (i *DeployInput) Init() error
func (*DeployInput) Validate ¶ added in v0.29.0
func (i *DeployInput) Validate() error
type DeployOutput ¶ added in v0.29.0
type DeployOutput struct { *lambda.FunctionConfiguration RoleInfo *ciam.GetRoleInfoOutput EventMappings []*lambda.EventSourceMappingConfiguration }
func (*DeployOutput) Messages ¶ added in v0.29.0
func (i *DeployOutput) Messages() []*msg.Message
type DropFunctionInput ¶
type DropFunctionInput lambda.DeleteFunctionInput
DropFunctionInput remove a function with all dependencies
type EventSourceMapping ¶
type EventTriggerInfo ¶
type EventTriggerInfo struct { // The identifier of the event source mapping. UUID *string `yaml:"uuid,omitempty" type:"string"` // The maximum number of items to retrieve in a single batch. BatchSize *int64 `yaml:"batchSize,omitempty" min:"1" type:"integer"` // The Amazon Resource Name (ARN) of the event source. EventSourceArn *string `yaml:"sourceARN,omitempty" type:"string"` // The date that the event source mapping was last updated, in Unix time seconds. LastModified *time.Time `yaml:"modified,omitempty" type:"timestamp"` // The result of the last AWS Lambda invocation of your Lambda function. LastProcessingResult *string `yaml:"lastProcessingResult,omitempty" type:"string"` // The state of the event source mapping. It can be one of the following: Creating, // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string `yaml:"state,omitempty" type:"string"` // The cause of the last state change, either User initiated or Lambda initiated. StateTransitionReason *string `yaml:"stateTransitionReason,omitempty" type:"string"` }
type FunctionInfo ¶
type RecreateFunctionInput ¶
type RecreateFunctionInput lambda.CreateFunctionInput
RecreateFunctionInput drops function if exist to create a new one
type SetupFunctionEvent ¶
type SetupFunctionEvent struct { Function *FunctionInfo Triggers []*EventTriggerInfo `yaml:"triggers,omitempty"` }
func NewSetupFunctionEvent ¶
func NewSetupFunctionEvent(output *DeployOutput) *SetupFunctionEvent
func (*SetupFunctionEvent) Messages ¶
func (e *SetupFunctionEvent) Messages() []*msg.Message
type SetupPermissionInput ¶
type SetupPermissionInput lambda.AddPermissionInput
SetupPermissionInput creates a permission if it does not exists
type SetupTriggerSourceInput ¶
type SetupTriggerSourceInput struct { FunctionName *string Triggers []*EventSourceMapping }
SetupTriggerSourceInput represents setup triggers input
func (*SetupTriggerSourceInput) Validate ¶
func (i *SetupTriggerSourceInput) Validate() error
type SetupTriggerSourceOutput ¶
type SetupTriggerSourceOutput struct {
EventMappings []*lambda.EventSourceMappingConfiguration
}
SetupTriggerSourceOutput represents setup triggers output
Source Files ¶
Click to show internal directories.
Click to hide internal directories.