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
255
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.188 to 2.2.189

2

.jsii.tabl.json

@@ -1,1 +0,1 @@

{"version":"2","toolVersion":"1.82.0","snippets":{"ee64d1d87ed8dbf0d7ef6309b39a074fbeadcea9d27c461650c4f33577a5df5d":{"translations":{"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))","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}));","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());","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}))","version":"1"},"$":{"source":"// 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;\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}));","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/asset-awscli-v1"},"field":{"field":"markdown","line":21}},"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"],"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","syntaxKindCounter":{"10":6,"75":29,"104":2,"130":1,"153":1,"169":1,"193":2,"194":8,"196":3,"197":2,"225":2,"226":1,"242":2,"243":2,"254":4,"255":4,"256":2,"257":2,"258":3,"281":3,"290":1},"fqnsFingerprint":"62f5a38e295e2fd500946ee82fb1f0c3aa53e67b27938800aa23545bbcfec9af"}}}
{"version":"2","toolVersion":"5.1.1","snippets":{"ee64d1d87ed8dbf0d7ef6309b39a074fbeadcea9d27c461650c4f33577a5df5d":{"translations":{"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))","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}));","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());","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}))","version":"1"},"$":{"source":"// 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;\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}));","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/asset-awscli-v1"},"field":{"field":"markdown","line":21}},"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"],"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","syntaxKindCounter":{"11":6,"80":29,"110":2,"138":1,"165":1,"182":1,"209":2,"210":8,"212":3,"213":2,"242":2,"243":1,"259":2,"260":2,"271":4,"272":4,"273":2,"274":2,"275":3,"302":3,"311":1},"fqnsFingerprint":"62f5a38e295e2fd500946ee82fb1f0c3aa53e67b27938800aa23545bbcfec9af"}}}

@@ -9,4 +9,6 @@ import { CdklabsConstructLibrary } from 'cdklabs-projen-project-types';

const project = new CdklabsConstructLibrary({
setNodeEngineVersion: false,
stability: 'stable',
private: false,
projenrcTs: true,
private: false,
author: 'Amazon Web Services, Inc.',

@@ -39,4 +41,3 @@ authorAddress: 'aws-cdk-dev@amazon.com',

minNodeVersion: '16.0.0',
stability: 'stable',
setNodeEngineVersion: false,
jsiiVersion: '^5',
publishToPypi: {

@@ -72,7 +73,14 @@ distName: `aws-cdk.asset-awscli-v${MAJOR_VERSION}`,

project.deps.addDependency('aws-cdk-lib@^2.0.0', DependencyType.DEVENV);
project.deps.addDependency('@aws-cdk/integ-runner@^2.45.0', DependencyType.DEVENV);
project.deps.addDependency('@aws-cdk/integ-tests-alpha@^2.45.0-alpha.0', DependencyType.DEVENV);
// Rosetta
project.deps.addDependency('jsii-rosetta@^5', DependencyType.DEVENV);
project.package.addField('jsiiRosetta', {
exampleDependencies: {
'aws-cdk-lib': '^2.0.0',
'constructs': '^10.0.5',
},
});
project.preCompileTask.exec('layer/build.sh');
project.synth();
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -10,6 +14,6 @@ if (k2 === undefined) k2 = k;

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./awscli-asset"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsaURBQStCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hd3NjbGktYXNzZXQnO1xuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLGlEQUErQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYXdzY2xpLWFzc2V0JztcbiJdfQ==

@@ -46,5 +46,5 @@ {

"devDependencies": {
"@aws-cdk/integ-runner": "^2.45.0",
"@aws-cdk/integ-tests-alpha": "^2.45.0-alpha.0",
"@types/jest": "^27",
"@aws-cdk/integ-runner": "latest",
"@aws-cdk/integ-tests-alpha": "latest",
"@types/jest": "^29",
"@types/node": "^16",

@@ -54,3 +54,3 @@ "@typescript-eslint/eslint-plugin": "^5",

"aws-cdk-lib": "^2.0.0",
"cdklabs-projen-project-types": "^0.1.135",
"cdklabs-projen-project-types": "^0.1.136",
"constructs": "^10.0.5",

@@ -61,19 +61,16 @@ "eslint": "^8",

"eslint-plugin-import": "^2.27.5",
"jest": "^27",
"jest": "^29",
"jest-junit": "^15",
"jsii": "1.x",
"jsii-diff": "^1.82.0",
"jsii": "^5",
"jsii-diff": "^1.83.0",
"jsii-docgen": "^7.2.9",
"jsii-pacmak": "^1.82.0",
"jsii-pacmak": "^1.83.0",
"jsii-rosetta": "^5",
"npm-check-updates": "^16",
"projen": "^0.71.90",
"projen": "^0.71.91",
"standard-version": "^9",
"ts-jest": "^27",
"ts-jest": "^29",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
"typescript": "^5"
},
"resolutions": {
"@types/babel__traverse": "7.18.2",
"@types/prettier": "2.6.0"
},
"keywords": [

@@ -88,3 +85,3 @@ "cdk"

},
"version": "2.2.188",
"version": "2.2.189",
"jest": {

@@ -160,3 +157,9 @@ "testMatch": [

},
"jsiiRosetta": {
"exampleDependencies": {
"aws-cdk-lib": "^2.0.0",
"constructs": "^10.0.5"
}
},
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
}

Sorry, the diff of this file is not supported yet

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