Skip to content

Latest commit

 

History

History
167 lines (95 loc) · 6.92 KB

File metadata and controls

167 lines (95 loc) · 6.92 KB

API Reference

Constructs

LambdaPowertoolsLayer

Defines a new Lambda Layer with Powertools for python library.

Initializers

import { LambdaPowertoolsLayer } from 'cdk-aws-lambda-powertools-layer'

new LambdaPowertoolsLayer(scope: Construct, id: string, props?: PowertoolsLayerProps)
Name Type Description
scope* constructs.Construct No description.
id* string No description.
props cdk-aws-lambda-powertools-layer.PowertoolsLayerProps No description.

scopeRequired

idRequired
  • Type: string

propsOptional

Static Functions

Name Description
constructBuildArgs creates build argument for the Dockerfile.

constructBuildArgs
import { LambdaPowertoolsLayer } from 'cdk-aws-lambda-powertools-layer'

LambdaPowertoolsLayer.constructBuildArgs(runtimeFamily: RuntimeFamily, includeExtras?: boolean, version?: string)
runtimeFamilyRequired

includeExtrasOptional
  • Type: boolean

versionOptional
  • Type: string

Structs

PowertoolsLayerProps

Properties for Powertools layer for python.

Initializer

import { PowertoolsLayerProps } from 'cdk-aws-lambda-powertools-layer'

const powertoolsLayerProps: PowertoolsLayerProps = { ... }

Properties

Name Type Description
compatibleArchitectures aws-cdk-lib.aws_lambda.Architecture[] The compatible architectures for the layer.
includeExtras boolean A flag for the extras dependencies (pydantic, aws-xray-sdk, etc.) This will increase the size of the layer significantly. If you don't use parsing, ignore it.
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.

compatibleArchitecturesOptional
public readonly compatibleArchitectures: Architecture[];

The compatible architectures for the layer.


includeExtrasOptional
public readonly includeExtras: boolean;
  • Type: boolean

A flag for the extras dependencies (pydantic, aws-xray-sdk, etc.) This will increase the size of the layer significantly. If you don't use parsing, ignore it.


layerVersionNameOptional
public readonly layerVersionName: string;
  • Type: string

the name of the layer, will be randomised if empty.


runtimeFamilyOptional
public readonly runtimeFamily: RuntimeFamily;

the runtime of the layer.


versionOptional
public readonly version: string;
  • Type: string

The powertools package version from pypi repository.