aws-cdk-lib.lambda_layer_node_proxy_agent module
Language | Package |
---|---|
.NET | Amazon.CDK.LambdaLayer.NodeProxyAgent |
Go | github.com/aws/aws-cdk-go/awscdk/v2/lambdalayernodeproxyagent |
Java | software.amazon.awscdk.lambda.layer.node.proxy.agent |
Python | aws_cdk.lambda_layer_node_proxy_agent |
TypeScript | aws-cdk-lib » lambda_layer_node_proxy_agent |
AWS Lambda Layer with the NPM dependency proxy-agent
This module exports a single class called NodeProxyAgentLayer
which is a lambda.Layer
that bundles the NPM dependency proxy-agent
.
- proxy-agent Version: 5.0.0
Usage:
import { NodeProxyAgentLayer } from 'aws-cdk-lib/lambda-layer-node-proxy-agent';
import * as lambda from 'aws-cdk-lib/aws-lambda';
declare const fn: lambda.Function;
fn.addLayers(new NodeProxyAgentLayer(this, 'NodeProxyAgentLayer'));
proxy-agent
will be installed under /nodejs/node_modules
.