Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssetCodeGo ¶
AssetCodeGo bundles lambda function from source code
func NewFunctionGo ¶
func NewFunctionGo(scope constructs.Construct, id *string, spec *FunctionGoProps) awslambda.Function
NewFunctionGo creates Golang Lambda Function from "inline" code
Types ¶
type Compiler ¶ added in v0.6.0
type Compiler interface {
awscdk.ILocalBundling
SourceCodePackage() string
SourceCodeLambda() string
}
type FunctionGoProps ¶
type FunctionGoProps struct {
*awslambda.FunctionProps
SourceCodePackage string
SourceCodeLambda string
GoEnv map[string]string
}
FunctionGoProps is properties of the function
type Gateway ¶
type Gateway interface {
constructs.Construct
RestApi() apigw2.HttpApi
WithAuthorizerIAM()
WithAuthorizerCognito(cognitoArn string)
AddResource(resourceRootPath string, resourceHandler awslambda.Function, requiredAccessScope ...string)
}
Gateway is RESTful API Gateway Construct pattern
func NewGateway ¶
func NewGateway(scope constructs.Construct, id *string, props *GatewayProps) Gateway
NewGateway creates new instance of Gateway
type GatewayProps ¶ added in v0.7.0
type GatewayProps struct {
*apigw2.HttpApiProps
Host *string
TlsArn *string
}
type GoCompiler ¶ added in v0.6.0
type GoCompiler struct {
// contains filtered or unexported fields
}
func NewGoCompiler ¶ added in v0.6.0
func NewGoCompiler( sourceCodePackage string, sourceCodeLambda string, env map[string]string, ) *GoCompiler
func (*GoCompiler) SourceCodeLambda ¶ added in v0.6.0
func (g *GoCompiler) SourceCodeLambda() string
func (*GoCompiler) SourceCodePackage ¶ added in v0.6.0
func (g *GoCompiler) SourceCodePackage() string
func (*GoCompiler) TryBundle ¶ added in v0.6.0
func (g *GoCompiler) TryBundle(outputDir *string, options *awscdk.BundlingOptions) *bool
Click to show internal directories.
Click to hide internal directories.