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 CallOutput ¶
type CallOutput struct { *lambda.InvokeOutput Response interface{} }
CallOutput represents a call response
type DeployInput ¶
type DeployInput struct { lambda.CreateFunctionInput `yaml:",inline" json:",inline"` ciam.SetupRolePolicyInput ` json:",inline"` PresetRoleName string `description:"in case that role is set - deployment skip permission setup"` VpcMatcher *ec2.GetVpcConfigInput Triggers []*EventSourceMapping Http *lambda.CreateFunctionUrlConfigInput Schedule *Schedule }
DeployInput setup function, creates or updates existing one
func (*DeployInput) ScheduleDeployRule ¶
func (i *DeployInput) ScheduleDeployRule() *cloudwatchevents.DeployRuleInput
ScheduleDeployRule returns DeployRuleInput
func (*DeployInput) ScheduleEventsInput ¶
func (i *DeployInput) ScheduleEventsInput(resourceARN *string) (*acloudwatchevents.PutEventsInput, error)
func (*DeployInput) Validate ¶
func (i *DeployInput) Validate() error
type DeployOutput ¶
type DeployOutput struct { *lambda.FunctionConfiguration URL string RoleInfo *ciam.GetRoleInfoOutput EventMappings []*lambda.EventSourceMappingConfiguration }
func (*DeployOutput) Messages ¶
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 ¶
type Schedule struct { Expression *string Event *ScheduleEvent }
Schedule represents schedule
type ScheduleEvent ¶
func (*ScheduleEvent) Init ¶
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.