nodeproxyagentv5

module
v2.0.128 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2023 License: Apache-2.0

README

AWS Lambda Layer with the NPM dependency proxy-agent

---


This module bundles the NPM dependency proxy-agent as a local asset. It exposes constants ASSET_FILE and LAYER_SOURCE_DIR that can be consumed via the CDK Asset construct.

  • proxy-agent Version: 5.0.0

Usage:

// Example automatically generated from non-compiling source. May contain errors.
import "github.com/aws-samples/dummy/awscdkassetnodeproxyagent"
import "github.com/aws/aws-cdk-go/awscdk"
import s3_assets "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var fn function

asset := s3_assets.NewAsset(this, jsii.String("layer-asset"), &AssetProps{
	Path: awscdkassetnodeproxyagent.ASSET_FILE,
	AssetHash: awscdk.FileSystem_Fingerprint(*awscdkassetnodeproxyagent.LAYER_SOURCE_DIR),
})

fn.AddLayers(lambda.NewLayerVersion(this, jsii.String("ProxyAgentLayer"), &LayerVersionProps{
	Code: lambda.Code_FromBucket(asset.Bucket, asset.S3ObjectKey),
}))

proxy-agent will be installed under /nodejs/node_modules.

Directories

Path Synopsis
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL