Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-cdk/asset-awscli-v1

Package Overview
Dependencies
Maintainers
4
Versions
263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-cdk/asset-awscli-v1 - npm Package Compare versions

Comparing version 2.2.122 to 2.2.123

28

.jsii.tabl.json

@@ -8,15 +8,15 @@ {

"python": {
"source": "# AwsCliLayer bundles the AWS CLI in a lambda layer\nfrom aws_cdk.asset_awscli_v1 import ASSET_FILE, LAYER_SOURCE_DIR\nimport aws_cdk.aws_lambda as lambda_\nimport aws_cdk.aws_s3_assets as s3_assets\nfrom aws_cdk import FileSystem\n\n# fn: lambda.Function\n\nasset = s3_assets.Asset(self, \"layer-asset\",\n path=ASSET_FILE,\n asset_hash=FileSystem.fingerprint(LAYER_SOURCE_DIR)\n)\nfn.add_layers(lambda_.LayerVersion(self, \"AwsCliLayer\",\n code=lambda_.Code.from_bucket(asset.bucket, asset.s3_object_key)\n))",
"source": "# AwsCliLayer bundles the AWS CLI in a lambda layer\nfrom aws_cdk.asset_awscli_v1 import ASSET_FILE, LAYER_SOURCE_DIR\nimport aws_cdk_lib.aws_lambda as lambda_\nimport aws_cdk_lib.aws_s3_assets as s3_assets\nfrom aws_cdk_lib import FileSystem\n\n# fn: lambda.Function\n\nasset = s3_assets.Asset(self, \"layer-asset\",\n path=ASSET_FILE,\n asset_hash=FileSystem.fingerprint(LAYER_SOURCE_DIR)\n)\nfn.add_layers(lambda_.LayerVersion(self, \"AwsCliLayer\",\n code=lambda_.Code.from_bucket(asset.bucket, asset.s3_object_key)\n))",
"version": "2"
},
"csharp": {
"source": "// AwsCliLayer bundles the AWS CLI in a lambda layer\nusing Aws.Cdk.Asset.Awscli.V1;\nusing Amazon.CDK.AWS.Lambda;\nusing Amazon.CDK.AWS.S3.Assets;\nusing Amazon.CDK;\n\nFunction fn;\n\nvar asset = new Asset(this, \"layer-asset\", new AssetProps {\n Path = ASSET_FILE,\n AssetHash = FileSystem.Fingerprint(LAYER_SOURCE_DIR)\n});\nfn.AddLayers(new LayerVersion(this, \"AwsCliLayer\", new LayerVersionProps {\n Code = Code.FromBucket(asset.Bucket, asset.S3ObjectKey)\n}));",
"source": "// AwsCliLayer bundles the AWS CLI in a lambda layer\nusing Aws.Cdk.Asset.Awscli.V1;\nusing Aws.Cdk.Lib.Aws.Lambda;\nusing Aws.Cdk.Lib.Aws.S3.Assets;\nusing Aws.Cdk.Lib;\n\nlambda.Function fn;\n\nvar asset = new Asset(this, \"layer-asset\", new Struct {\n Path = ASSET_FILE,\n AssetHash = FileSystem.Fingerprint(LAYER_SOURCE_DIR)\n});\nfn.AddLayers(new LayerVersion(this, \"AwsCliLayer\", new Struct {\n Code = Code.FromBucket(asset.Bucket, asset.S3ObjectKey)\n}));",
"version": "1"
},
"java": {
"source": "// AwsCliLayer bundles the AWS CLI in a lambda layer\nimport aws.cdk.asset.awscli.v1.ASSET_FILE;\nimport aws.cdk.asset.awscli.v1.LAYER_SOURCE_DIR;\nimport software.amazon.awscdk.services.lambda.*;\nimport software.amazon.awscdk.services.s3.assets.*;\nimport software.amazon.awscdk.FileSystem;\n\nFunction fn;\n\nAsset asset = Asset.Builder.create(this, \"layer-asset\")\n .path(ASSET_FILE)\n .assetHash(FileSystem.fingerprint(LAYER_SOURCE_DIR))\n .build();\nfn.addLayers(LayerVersion.Builder.create(this, \"AwsCliLayer\")\n .code(Code.fromBucket(asset.getBucket(), asset.getS3ObjectKey()))\n .build());",
"source": "// AwsCliLayer bundles the AWS CLI in a lambda layer\nimport aws.cdk.asset.awscli.v1.ASSET_FILE;\nimport aws.cdk.asset.awscli.v1.LAYER_SOURCE_DIR;\nimport aws.cdk.lib.aws.lambda.*;\nimport aws.cdk.lib.aws.s3.assets.*;\nimport aws.cdk.lib.FileSystem;\n\nlambda.Function fn;\n\nObject asset = Asset.Builder.create(this, \"layer-asset\")\n .path(ASSET_FILE)\n .assetHash(FileSystem.fingerprint(LAYER_SOURCE_DIR))\n .build();\nfn.addLayers(LayerVersion.Builder.create(this, \"AwsCliLayer\")\n .code(Code.fromBucket(asset.getBucket(), asset.getS3ObjectKey()))\n .build());",
"version": "1"
},
"go": {
"source": "// AwsCliLayer bundles the AWS CLI in a lambda layer\nimport \"github.com/aws-samples/dummy/awscdkassetawscliv1\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\nimport s3_assets \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar fn function\n\nasset := s3_assets.NewAsset(this, jsii.String(\"layer-asset\"), &AssetProps{\n\tPath: awscdkassetawscliv1.ASSET_FILE,\n\tAssetHash: awscdk.FileSystem_Fingerprint(*awscdkassetawscliv1.LAYER_SOURCE_DIR),\n})\nfn.AddLayers(lambda.NewLayerVersion(this, jsii.String(\"AwsCliLayer\"), &LayerVersionProps{\n\tCode: lambda.Code_FromBucket(asset.Bucket, asset.S3ObjectKey),\n}))",
"source": "// AwsCliLayer bundles the AWS CLI in a lambda layer\nimport \"github.com/aws-samples/dummy/awscdkassetawscliv1\"\nimport \"github.com/aws-samples/dummy/awscdklib/awslambda\"\nimport s3_assets \"github.com/aws-samples/dummy/awscdklib/awss3assets\"\nimport \"github.com/aws-samples/dummy/awscdklib\"\n\nvar fn lambda.Function\n\nasset := s3_assets.NewAsset(this, jsii.String(\"layer-asset\"), map[string]*string{\n\t\"path\": awscdkassetawscliv1.ASSET_FILE,\n\t\"assetHash\": awscdklib.FileSystem_fingerprint(awscdkassetawscliv1.LAYER_SOURCE_DIR),\n})\nfn.addLayers(lambda.NewLayerVersion(this, jsii.String(\"AwsCliLayer\"), map[string]interface{}{\n\t\"code\": lambda.Code_fromBucket(asset.bucket, asset.s3ObjectKey),\n}))",
"version": "1"

@@ -39,18 +39,4 @@ },

},
"didCompile": true,
"fqnsReferenced": [
"aws-cdk-lib.FileSystem#fingerprint",
"aws-cdk-lib.aws_lambda.Code",
"aws-cdk-lib.aws_lambda.Code#fromBucket",
"aws-cdk-lib.aws_lambda.Function#addLayers",
"aws-cdk-lib.aws_lambda.ILayerVersion",
"aws-cdk-lib.aws_lambda.LayerVersion",
"aws-cdk-lib.aws_lambda.LayerVersionProps",
"aws-cdk-lib.aws_s3.IBucket",
"aws-cdk-lib.aws_s3_assets.Asset",
"aws-cdk-lib.aws_s3_assets.Asset#bucket",
"aws-cdk-lib.aws_s3_assets.Asset#s3ObjectKey",
"aws-cdk-lib.aws_s3_assets.AssetProps",
"constructs.Construct"
],
"didCompile": false,
"fqnsReferenced": [],
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// AwsCliLayer bundles the AWS CLI in a lambda layer\nimport { ASSET_FILE, LAYER_SOURCE_DIR } from '@aws-cdk/asset-awscli-v1';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\nimport * as s3_assets from 'aws-cdk-lib/aws-s3-assets';\nimport { FileSystem } from 'aws-cdk-lib';\n\ndeclare const fn: lambda.Function;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport {\n Stack,\n} from 'aws-cdk-lib';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst asset = new s3_assets.Asset(this, 'layer-asset', {\n path: ASSET_FILE,\n assetHash: FileSystem.fingerprint(LAYER_SOURCE_DIR),\n});\nfn.addLayers(new lambda.LayerVersion(this, 'AwsCliLayer', {\n code: lambda.Code.fromBucket(asset.bucket, asset.s3ObjectKey),\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",

@@ -80,5 +66,5 @@ "syntaxKindCounter": {

},
"fqnsFingerprint": "62f5a38e295e2fd500946ee82fb1f0c3aa53e67b27938800aa23545bbcfec9af"
"fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}
}
}

@@ -55,3 +55,3 @@ {

"eslint-import-resolver-node": "^0.3.7",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-import-resolver-typescript": "^3.5.4",
"eslint-plugin-import": "^2.27.5",

@@ -62,6 +62,6 @@ "jest": "^27",

"jsii-diff": "^1.79.0",
"jsii-docgen": "^7.1.39",
"jsii-docgen": "^7.1.40",
"jsii-pacmak": "^1.79.0",
"npm-check-updates": "^16",
"projen": "^0.69.15",
"projen": "^0.70.0",
"standard-version": "^9",

@@ -81,3 +81,3 @@ "ts-jest": "^27",

},
"version": "2.2.122",
"version": "2.2.123",
"jest": {

@@ -84,0 +84,0 @@ "testMatch": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc