Documentation ¶
Index ¶
- type LambdaSpec
- func (l LambdaSpec) FunctionAliasHasVersion(name, qualifier, version string) (res bool, err error)
- func (l LambdaSpec) FunctionExists(name, qualifier string) (res bool, err error)
- func (l LambdaSpec) FunctionHasEnvVarValue(name, qualifier, variable, value string) (res bool, err error)
- func (l LambdaSpec) FunctionHasHandler(name, qualifier, handler string) (res bool, err error)
- func (l LambdaSpec) FunctionHasLayers(name, qualifier string, layers []string) (res bool, err error)
- func (l LambdaSpec) FunctionHasMemorySize(name, qualifier string, memory int) (res bool, err error)
- func (l LambdaSpec) FunctionHasPermissions(name, qualifier, source string) (res bool, err error)
- func (l LambdaSpec) FunctionHasReservedConcurrency(name string, concurrency int) (res bool, err error)
- func (l LambdaSpec) FunctionHasRole(name, qualifier, role string) (res bool, err error)
- func (l LambdaSpec) FunctionHasRuntime(name, qualifier, runtime string) (res bool, err error)
- func (l LambdaSpec) FunctionHasTimeout(name, qualifier string, timeout int) (res bool, err error)
- func (l LambdaSpec) FunctionHasVPCID(name, qualifier, vpc string) (res bool, err error)
- func (l LambdaSpec) FunctionHasVPCWithSecurityGroups(name, qualifier string, sgs []string) (res bool, err error)
- func (l LambdaSpec) FunctionHasVPCWithSubnets(name, qualifier string, subnets []string) (res bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LambdaSpec ¶
LambdaSpec contains the AWS session
func (LambdaSpec) FunctionAliasHasVersion ¶ added in v0.15.0
func (l LambdaSpec) FunctionAliasHasVersion(name, qualifier, version string) (res bool, err error)
FunctionAliasHasVersion returns true if the provided Lambda function alias is associated to the specified version
func (LambdaSpec) FunctionExists ¶
func (l LambdaSpec) FunctionExists(name, qualifier string) (res bool, err error)
FunctionExists returns true if the specified Lambda function exists. An optional qualifier nay be provided for versioned functions or aliases.
func (LambdaSpec) FunctionHasEnvVarValue ¶
func (l LambdaSpec) FunctionHasEnvVarValue(name, qualifier, variable, value string) (res bool, err error)
FunctionHasEnvVarValue returns true if the specified Lambda function has the provided environment variable name and value. It throws an error if no function was found.
func (LambdaSpec) FunctionHasHandler ¶
func (l LambdaSpec) FunctionHasHandler(name, qualifier, handler string) (res bool, err error)
FunctionHasHandler returns true if the specified Lambda function has the provided handler. It throws an error if no function was found.
func (LambdaSpec) FunctionHasLayers ¶
func (l LambdaSpec) FunctionHasLayers(name, qualifier string, layers []string) (res bool, err error)
FunctionHasLayers returns true if the specified Lambda function has exactly the provided layers. It throws an error if no function was found.
func (LambdaSpec) FunctionHasMemorySize ¶
func (l LambdaSpec) FunctionHasMemorySize(name, qualifier string, memory int) (res bool, err error)
FunctionHasMemorySize returns true if the specified Lambda function has the provided memory size. It throws an error if no function was found.
func (LambdaSpec) FunctionHasPermissions ¶ added in v0.14.0
func (l LambdaSpec) FunctionHasPermissions(name, qualifier, source string) (res bool, err error)
FunctionHasPermissions returns true if the specified source ARN can execute the provided Lambda function. It throws an error if no function was found.
func (LambdaSpec) FunctionHasReservedConcurrency ¶ added in v0.18.0
func (l LambdaSpec) FunctionHasReservedConcurrency(name string, concurrency int) (res bool, err error)
FunctionHasReservedConcurrency returns true if the provided Lambda function has the provided reserved concurrency. Use -1 to indicated unreserved concurrency. It throws an error if no function was found.
func (LambdaSpec) FunctionHasRole ¶
func (l LambdaSpec) FunctionHasRole(name, qualifier, role string) (res bool, err error)
FunctionHasRole returns true if the specified Lambda function has the provided role. It throws an error if no function was found.
func (LambdaSpec) FunctionHasRuntime ¶
func (l LambdaSpec) FunctionHasRuntime(name, qualifier, runtime string) (res bool, err error)
FunctionHasRuntime returns true if the specified Lambda function has the provided runtime. It throws an error if no function was found.
func (LambdaSpec) FunctionHasTimeout ¶
func (l LambdaSpec) FunctionHasTimeout(name, qualifier string, timeout int) (res bool, err error)
FunctionHasTimeout returns true if the specified Lambda function has the provided runtime. It throws an error if no function was found.
func (LambdaSpec) FunctionHasVPCID ¶
func (l LambdaSpec) FunctionHasVPCID(name, qualifier, vpc string) (res bool, err error)
FunctionHasVPCID returns true if the specified Lambda function has the provided VPC ID. It throws an error if no function was found.
func (LambdaSpec) FunctionHasVPCWithSecurityGroups ¶
func (l LambdaSpec) FunctionHasVPCWithSecurityGroups(name, qualifier string, sgs []string) (res bool, err error)
FunctionHasVPCWithSecurityGroups returns true if the specified Lambda function has the provided security groups. It throws an error if no function was found.
func (LambdaSpec) FunctionHasVPCWithSubnets ¶
func (l LambdaSpec) FunctionHasVPCWithSubnets(name, qualifier string, subnets []string) (res bool, err error)
FunctionHasVPCWithSubnets returns true if the specified Lambda function has exactly the provided subnets. It throws an error if no function was found.