Defines a new Lambda Layer with Powertools for python library.
import { LambdaPowertoolsLayer } from 'cdk-lambda-powertools-python-layer'
new LambdaPowertoolsLayer(scope: Construct, id: string, props?: PowertoolsLayerProps)
Name | Type | Description |
---|---|---|
scope * |
constructs.Construct |
No description. |
id * |
string |
No description. |
props |
cdk-lambda-powertools-python-layer.PowertoolsLayerProps |
No description. |
- Type:
constructs.Construct
- Type:
string
Name | Description |
---|---|
constructBuildArgs |
creates build argument for the Dockerfile. |
import { LambdaPowertoolsLayer } from 'cdk-lambda-powertools-python-layer'
LambdaPowertoolsLayer.constructBuildArgs(runtimeFamily: RuntimeFamily, includeExtras?: boolean, version?: string)
- Type:
boolean
- Type:
string
Properties for Powertools layer for python.
import { PowertoolsLayerProps } from 'cdk-lambda-powertools-python-layer'
const powertoolsLayerProps: PowertoolsLayerProps = { ... }
Name | Type | Description |
---|---|---|
includeExtras |
boolean |
A flag for the pydantic extras dependency, used for parsing. |
layerVersionName |
string |
the name of the layer, will be randomised if empty. |
runtimeFamily |
aws-cdk-lib.aws_lambda.RuntimeFamily |
the runtime of the layer. |
version |
string |
The powertools package version from pypi repository. |
public readonly includeExtras: boolean;
- Type:
boolean
A flag for the pydantic extras dependency, used for parsing.
This will increase the size of the layer significantly. If you don't use parsing, ignore it.
public readonly layerVersionName: string;
- Type:
string
the name of the layer, will be randomised if empty.
public readonly runtimeFamily: RuntimeFamily;
the runtime of the layer.
public readonly version: string;
- Type:
string
The powertools package version from pypi repository.