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 Schedule
- type ScheduleEvent
- 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 `yaml:",inline" json:",inline"` ciam.SetupRolePolicyInput ` json:",inline"` VpcMatcher *ec2.GetVpcConfigInput Triggers []*EventSourceMapping Http *lambda.CreateFunctionUrlConfigInput Schedule *Schedule }
DeployInput setup function, creates or updates existing one
func (*DeployInput) Init ¶ added in v0.29.0
func (i *DeployInput) Init() error
Init initializes deploy request
func (*DeployInput) ScheduleDeployRule ¶ added in v0.43.0
func (i *DeployInput) ScheduleDeployRule() *cloudwatchevents.DeployRuleInput
ScheduleDeployRule returns DeployRuleInput
func (*DeployInput) ScheduleEventsInput ¶ added in v0.43.0
func (i *DeployInput) ScheduleEventsInput(resourceARN *string) (*acloudwatchevents.PutEventsInput, 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 URL string 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 Function invocation of your Function 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 Function 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 Schedule ¶ added in v0.43.0
type Schedule struct { Expression *string Event *ScheduleEvent }
Schedule represents schedule
type ScheduleEvent ¶ added in v0.43.0
func (*ScheduleEvent) Init ¶ added in v0.43.0
func (e *ScheduleEvent) Init() error
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 Timeout *int64 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
Click to show internal directories.
Click to hide internal directories.