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

@aws-cdk/aws-cloudformation

Package Overview
Dependencies
Maintainers
5
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-cdk/aws-cloudformation - npm Package Compare versions

Comparing version 0.31.0 to 0.32.0

12

lib/cloudformation.generated.js

@@ -5,3 +5,3 @@ "use strict";

// See: docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html
// @cfn2ts:meta@ {"generated":"2019-05-06T20:40:40.983Z","fingerprint":"+5mgwZQIz6IWQknWqJTtMx0jOcvEJ0MQKXVVnS6ML/A="}
// @cfn2ts:meta@ {"generated":"2019-05-24T10:05:10.884Z","fingerprint":"cOv8OMe5Xz+8f40sFJnsQvtorky1WqLN1eW1YnXB3uI="}
Object.defineProperty(exports, "__esModule", { value: true });

@@ -65,3 +65,3 @@ // tslint:disable:max-line-length | This is generated code - line lengths are difficult to control

renderProperties(properties) {
return cfnCustomResourcePropsToCloudFormation(this.node.resolve(properties));
return cfnCustomResourcePropsToCloudFormation(properties);
}

@@ -140,3 +140,3 @@ }

renderProperties(properties) {
return cfnMacroPropsToCloudFormation(this.node.resolve(properties));
return cfnMacroPropsToCloudFormation(properties);
}

@@ -215,3 +215,3 @@ }

renderProperties(properties) {
return cfnStackPropsToCloudFormation(this.node.resolve(properties));
return cfnStackPropsToCloudFormation(properties);
}

@@ -283,3 +283,3 @@ }

renderProperties(properties) {
return cfnWaitConditionPropsToCloudFormation(this.node.resolve(properties));
return cfnWaitConditionPropsToCloudFormation(properties);
}

@@ -316,2 +316,2 @@ }

exports.CfnWaitConditionHandle = CfnWaitConditionHandle;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xvdWRmb3JtYXRpb24uZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY2xvdWRm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25zdHJ1Y3QsIGlkOiBzdHJpbmcpIHtcbiAgICAgICAgc3VwZXIoc2NvcGUsIGlkLCB7IHR5cGU6IENmbldhaXRDb25kaXRpb25IYW5kbGUucmVzb3VyY2VUeXBlTmFtZSB9KTtcbiAgICAgICAgdGhpcy53YWl0Q29uZGl0aW9uSGFuZGxlVXJsID0gdGhpcy5yZWYudG9TdHJpbmcoKTtcbiAgICB9XG59XG4iXX0=

@@ -37,2 +37,4 @@ import lambda = require('@aws-cdk/aws-lambda');

* Properties to pass to the Lambda
*
* @default - No properties.
*/

@@ -58,2 +60,4 @@ readonly properties?: Properties;

* https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cfn-customresource.html#aws-cfn-resource-type-name
*
* @default - AWS::CloudFormation::CustomResource
*/

@@ -60,0 +64,0 @@ readonly resourceType?: string;

@@ -76,2 +76,2 @@ "use strict";

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLXJlc291cmNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY3VzdG9tLXJlc291cmNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsc0NBQWdFO0FBQ2hFLHlFQUErRDtBQU8vRCxNQUFhLHNCQUFzQjtJQWFqQyxZQUFvQyxZQUFvQjtRQUFwQixpQkFBWSxHQUFaLFlBQVksQ0FBUTtJQUV4RCxDQUFDO0lBZEQ7Ozs7T0FJRztJQUNJLE1BQU0sQ0FBQyxNQUFNLENBQUMsT0FBeUIsSUFBSSxPQUFPLElBQUksc0JBQXNCLENBQUMsT0FBTyxDQUFDLFdBQVcsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUUzRzs7T0FFRztJQUNJLE1BQU0sQ0FBQyxLQUFLLENBQUMsS0FBaUIsSUFBSSxPQUFPLElBQUksc0JBQXNCLENBQUMsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUM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hPZignOjonKSArIDIpO1xuICBpZiAodHlwZU5hbWUubGVuZ3RoID4gNjApIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoYEN1c3RvbSByZXNvdXJjZSB0eXBlIGxlbmd0aCA+IDYwICgke3Jlc291cmNlVHlwZX0pYCk7XG4gIH1cblxuICBpZiAoIS9eW2EtejAtOV9ALV0rJC9pLnRlc3QodHlwZU5hbWUpKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKGBDdXN0b20gcmVzb3VyY2UgdHlwZSBuYW1lIGNhbiBvbmx5IGluY2x1ZGUgYWxwaGFudW1lcmljIGNoYXJhY3RlcnMgYW5kIF9ALSAoJHt0eXBlTmFtZX0pYCk7XG4gIH1cblxuICByZXR1cm4gcmVzb3VyY2VUeXBlO1xufVxuIl19
{
"name": "@aws-cdk/aws-cloudformation",
"version": "0.31.0",
"version": "0.32.0",
"description": "CDK Constructs for AWS CloudFormation",

@@ -43,3 +43,5 @@ "main": "lib/index.js",

"awslint": "cdk-awslint",
"cfn2ts": "cfn2ts"
"cfn2ts": "cfn2ts",
"build+test+package": "npm run build+test && npm run package",
"build+test": "npm run build && npm test"
},

@@ -62,21 +64,21 @@ "cdk-build": {

"devDependencies": {
"@aws-cdk/assert": "^0.31.0",
"@aws-cdk/aws-events": "^0.31.0",
"cdk-build-tools": "^0.31.0",
"cdk-integ-tools": "^0.31.0",
"cfn2ts": "^0.31.0",
"pkglint": "^0.31.0"
"@aws-cdk/assert": "^0.32.0",
"@aws-cdk/aws-events": "^0.32.0",
"cdk-build-tools": "^0.32.0",
"cdk-integ-tools": "^0.32.0",
"cfn2ts": "^0.32.0",
"pkglint": "^0.32.0"
},
"dependencies": {
"@aws-cdk/aws-iam": "^0.31.0",
"@aws-cdk/aws-lambda": "^0.31.0",
"@aws-cdk/aws-sns": "^0.31.0",
"@aws-cdk/cdk": "^0.31.0"
"@aws-cdk/aws-iam": "^0.32.0",
"@aws-cdk/aws-lambda": "^0.32.0",
"@aws-cdk/aws-sns": "^0.32.0",
"@aws-cdk/cdk": "^0.32.0"
},
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/aws-iam": "^0.31.0",
"@aws-cdk/aws-lambda": "^0.31.0",
"@aws-cdk/aws-sns": "^0.31.0",
"@aws-cdk/cdk": "^0.31.0"
"@aws-cdk/aws-iam": "^0.32.0",
"@aws-cdk/aws-lambda": "^0.32.0",
"@aws-cdk/aws-sns": "^0.32.0",
"@aws-cdk/cdk": "^0.32.0"
},

@@ -83,0 +85,0 @@ "engines": {

@@ -54,2 +54,8 @@ {

"path": "../aws-events"
},
{
"path": "../../../tools/cdk-build-tools"
},
{
"path": "../../../tools/pkglint"
}

@@ -56,0 +62,0 @@ ],

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