JSPM

@project-lakechain/layers

0.10.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q35600F
  • License Apache-2.0

Lambda layer library used by Project Lakechain.

Package Exports

  • @project-lakechain/layers/lancedb
  • @project-lakechain/layers/mediainfo
  • @project-lakechain/layers/powertools
  • @project-lakechain/layers/sharp

Readme

📦 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');
  }
}

LanceDB

Below is an example of how to use the LanceDB layer within a construct.

import { LanceDbLayer } from '@project-lakechain/layers/lancedb';

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

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