GradientEdge CDK Utils
    Preparing search index...

    Provides operations on AWS Lambda

    • A new instance of this class is injected into CommonConstruct constructor.
    • If a custom construct extends CommonConstruct, an instance is available within the context.
    import { CommonConstruct } from '@gradientedge/cdk-utils'

    class CustomConstruct extends CommonConstruct {
    constructor(parent: Construct, id: string, props: common.CommonStackProps) {
    super(parent, id, props)
    this.props = props
    this.lambdaManager.createLambdaFunction('MyFunction', this, role, layers, code)
    }
    }
    Index

    Constructors

    Methods

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: LambdaEdgeProps

        lambda@edge properties

      • layers: ILayerVersion[]
      • code: AssetCode
      • role: Role
      • Optionalenvironment: any
      • Optionalvpc: IVpc
      • OptionalsecurityGroups: ISecurityGroup[]
      • OptionalaccessPoint: IAccessPoint
      • OptionalmountPath: string

      Returns EdgeFunction

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: LambdaProps
      • role: Role | CfnRole
      • code: DockerImageCode
      • Optionalenvironment: any
      • Optionalvpc: IVpc
      • OptionalsecurityGroups: ISecurityGroup[]
      • OptionalaccessPoint: IAccessPoint
      • OptionalmountPath: string
      • OptionalvpcSubnets: SubnetSelection

      Returns DockerImageFunction

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: LambdaProps
      • role: Role | CfnRole
      • layers: ILayerVersion[]
      • code: AssetCode
      • Optionalhandler: string
      • Optionalenvironment: any
      • Optionalvpc: IVpc
      • OptionalsecurityGroups: ISecurityGroup[]
      • OptionalaccessPoint: IAccessPoint
      • OptionalmountPath: string
      • OptionalvpcSubnets: SubnetSelection

      Returns Function

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • code: AssetCode
      • Optionalarchitectures: Architecture[]

      Returns LayerVersion