@project-lakechain/layers
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

📦 Layer Library


Static Badge Static Badge


[!Warning] The Layer Library package has an unstable API and should not be used in a production environment. It should be assumed that the API will undergo heavy changes in upcoming versions.

Overview

The Layer Library provides a set of Lambda Layers constructs that are used as part of Project Lakechain .

It currently supports the following layers :

Usage

MediaInfo

Below is an example of how to use the MediaInfo layer.

import { MediaInfoLayer } from '@project-lakechain/layers/mediainfo';

class MyStack extends Stack {
  constructor(scope: Construct, id: string) {
    super(scope, id);

    // X64 architecture.
    const layer = MediaInfoLayer.x64(this, 'Layer');

    // ARM64 architecture.
    const layer = MediaInfoLayer.arm64(this, 'Layer');
  }
}

AWS Powertools

Below is an example of hoe to use the AWS Powertools layer within a construct.

import { PowerToolsLayer } from '@project-lakechain/layers/powertools';

class MyStack extends Stack {
  constructor(scope: Construct, id: string) {
    super(scope, id);

    // Powertools for TypeScript
    const layer = PowerToolsLayer.typescript().layer(this, 'Layer');

    // Powertools for Lambda (x64).
    const layer = PowerToolsLayer.python().x64(this, 'Layer');

    // Powertools for Lambda (arm64).
    const layer = PowerToolsLayer.python().arm64(this, 'Layer');
  }
}

Sharp

Below is an example of hoe to use the Sharp layer within a construct.

import { SharpLayer } from '@project-lakechain/layers/sharp';

class MyStack extends Stack {
  constructor(scope: Construct, id: string) {
    super(scope, id);

    // X64 architecture.
    const layer = SharpLayer.arm64(this, 'Layer');
  }
}

Package Sidebar

Install

npm i @project-lakechain/layers

Weekly Downloads

6

Version

0.7.0

License

Apache-2.0

Unpacked Size

37.9 kB

Total Files

8

Last publish

Collaborators

  • aws-emea-pace