@mapbox/cloudfriend
Advanced tools
Comparing version 7.2.0-0 to 7.2.0-1
@@ -1,1 +0,1 @@ | ||
{"processes":{"c85e6e5a-f842-4bd6-ad20-6f04ab728aac":{"parent":"f52017b2-43bd-4f2e-a740-f75421866b4a","children":[]},"f52017b2-43bd-4f2e-a740-f75421866b4a":{"parent":null,"children":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac"]}},"files":{"/Users/bilindhajer/cloudfriend/bin/build-template.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac"],"/Users/bilindhajer/cloudfriend/index.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/intrinsic.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/conditions.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/rules.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/pseudo.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/build.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/validate.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/merge.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/index.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/lambda.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/service-role.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/role.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/scheduled-lambda.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/event-lambda.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/queue-lambda.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/stream-lambda.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/cross-account-role.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/queue.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/s3-kinesis-firehose.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/kinesis-firehose-base.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-database.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-table.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-json-table.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-orc-table.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-parquet-table.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-presto-view.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-spark-view.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/hookshot.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/log-subscription-lambda.js":["c85e6e5a-f842-4bd6-ad20-6f04ab728aac","f52017b2-43bd-4f2e-a740-f75421866b4a"]},"externalIds":{}} | ||
{"processes":{"e5f117ab-047a-4a8e-b56e-6dd4198a5fab":{"parent":null,"children":["ee3bde6e-e139-45e3-8559-dd8d9fa90e13"]},"ee3bde6e-e139-45e3-8559-dd8d9fa90e13":{"parent":"e5f117ab-047a-4a8e-b56e-6dd4198a5fab","children":[]}},"files":{"/Users/bilindhajer/cloudfriend/index.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/intrinsic.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/conditions.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/rules.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/pseudo.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/build.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/validate.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/merge.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/index.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/lambda.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/service-role.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/role.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/scheduled-lambda.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/event-lambda.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/queue-lambda.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/stream-lambda.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/cross-account-role.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/queue.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/s3-kinesis-firehose.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/kinesis-firehose-base.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-database.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-table.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-json-table.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-orc-table.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-parquet-table.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-presto-view.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-spark-view.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/hookshot.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/log-subscription-lambda.js":["e5f117ab-047a-4a8e-b56e-6dd4198a5fab","ee3bde6e-e139-45e3-8559-dd8d9fa90e13"],"/Users/bilindhajer/cloudfriend/bin/build-template.js":["ee3bde6e-e139-45e3-8559-dd8d9fa90e13"]},"externalIds":{}} |
@@ -710,3 +710,2 @@ ## Classes | ||
| options.ScheduleExpression | <code>String</code> | | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-scheduleexpression). | | ||
| [options.EventBusName] | <code>String</code> | <code>'default'</code> | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-eventbusname). | | ||
| [options.State] | <code>String</code> | <code>'ENABLED'</code> | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-state). | | ||
@@ -731,28 +730,2 @@ | ||
``` | ||
**Example** | ||
```js | ||
const cf = require('@mapbox/cloudfriend'); | ||
const myTemplate = { | ||
... | ||
Resources: { | ||
MyEventBus: { | ||
Type: 'AWS::Events::EventBus', | ||
Properties: { ... } | ||
} | ||
} | ||
}; | ||
const lambda = new cf.shortcuts.ScheduledLambda({ | ||
LogicalName: 'MyLambda', | ||
Code: { | ||
S3Bucket: 'my-code-bucket', | ||
S3Key: 'path/to/code.zip' | ||
}, | ||
EventBusName: cf.ref('MyEventBus'), | ||
ScheduleExpression: 'cron(45 * * * ? *)', | ||
}); | ||
module.exports = cf.merge(myTemplate, lambda); | ||
``` | ||
<a name="ServiceRole"></a> | ||
@@ -759,0 +732,0 @@ |
@@ -76,3 +76,3 @@ 'use strict'; | ||
EventPattern, | ||
EventBusName, | ||
EventBusName = 'default', | ||
State = 'ENABLED' | ||
@@ -97,2 +97,3 @@ } = options; | ||
State, | ||
EventBusName, | ||
EventPattern, | ||
@@ -110,6 +111,2 @@ Targets: [ | ||
if (EventBusName) { | ||
this.Resources[`${this.LogicalName}Trigger`].Properties.EventBusName = EventBusName; | ||
} | ||
this.Resources[`${this.LogicalName}Permission`] = { | ||
@@ -116,0 +113,0 @@ Type: 'AWS::Lambda::Permission', |
@@ -12,3 +12,2 @@ 'use strict'; | ||
* @param {String} options.ScheduleExpression - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-scheduleexpression). | ||
* @param {String} [options.EventBusName='default'] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-eventbusname). | ||
* @param {String} [options.State='ENABLED'] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-state). | ||
@@ -31,28 +30,2 @@ * | ||
* module.exports = cf.merge(myTemplate, lambda); | ||
* | ||
* @example | ||
* const cf = require('@mapbox/cloudfriend'); | ||
* | ||
* const myTemplate = { | ||
* ... | ||
* Resources: { | ||
* MyEventBus: { | ||
* Type: 'AWS::Events::EventBus', | ||
* Properties: { ... } | ||
* } | ||
* } | ||
* }; | ||
* | ||
* const lambda = new cf.shortcuts.ScheduledLambda({ | ||
* LogicalName: 'MyLambda', | ||
* Code: { | ||
* S3Bucket: 'my-code-bucket', | ||
* S3Key: 'path/to/code.zip' | ||
* }, | ||
* EventBusName: cf.ref('MyEventBus'), | ||
* ScheduleExpression: 'cron(45 * * * ? *)', | ||
* }); | ||
* | ||
* module.exports = cf.merge(myTemplate, lambda); | ||
* | ||
*/ | ||
@@ -65,3 +38,2 @@ class ScheduledLambda extends Lambda { | ||
const { | ||
EventBusName, | ||
ScheduleExpression, | ||
@@ -99,6 +71,2 @@ State = 'ENABLED' | ||
if (EventBusName) { | ||
this.Resources[`${this.LogicalName}Schedule`].Properties.EventBusName = EventBusName; | ||
} | ||
this.Resources[`${this.LogicalName}Permission`] = { | ||
@@ -105,0 +73,0 @@ Type: 'AWS::Lambda::Permission', |
{ | ||
"name": "@mapbox/cloudfriend", | ||
"version": "7.2.0-0", | ||
"version": "7.2.0-1", | ||
"description": "Helper functions for assembling CloudFormation templates in JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -148,2 +148,3 @@ { | ||
"State": "DISABLED", | ||
"EventBusName": "my-cool-eventbus", | ||
"EventPattern": { | ||
@@ -174,4 +175,3 @@ "source": [ | ||
} | ||
], | ||
"EventBusName": "my-cool-eventbus" | ||
] | ||
} | ||
@@ -178,0 +178,0 @@ }, |
@@ -148,2 +148,3 @@ { | ||
"State": "ENABLED", | ||
"EventBusName": "default", | ||
"EventPattern": { | ||
@@ -150,0 +151,0 @@ "source": [ |
@@ -148,2 +148,3 @@ { | ||
"State": "DISABLED", | ||
"EventBusName": "default", | ||
"EventPattern": { | ||
@@ -150,0 +151,0 @@ "source": [ |
@@ -31,3 +31,3 @@ { | ||
"DeploymentId": { | ||
"Ref": "PassDeployment41d722f6" | ||
"Ref": "PassDeployment2d092515" | ||
}, | ||
@@ -51,3 +51,3 @@ "StageName": "hookshot", | ||
}, | ||
"PassDeployment41d722f6": { | ||
"PassDeployment2d092515": { | ||
"Type": "AWS::ApiGateway::Deployment", | ||
@@ -54,0 +54,0 @@ "DependsOn": "PassMethod", |
@@ -27,3 +27,3 @@ { | ||
"DeploymentId": { | ||
"Ref": "PassDeployment41d722f6" | ||
"Ref": "PassDeployment2d092515" | ||
}, | ||
@@ -47,3 +47,3 @@ "StageName": "hookshot", | ||
}, | ||
"PassDeployment41d722f6": { | ||
"PassDeployment2d092515": { | ||
"Type": "AWS::ApiGateway::Deployment", | ||
@@ -50,0 +50,0 @@ "DependsOn": "PassMethod", |
@@ -27,3 +27,3 @@ { | ||
"DeploymentId": { | ||
"Ref": "PassDeployment41d722f6" | ||
"Ref": "PassDeployment2d092515" | ||
}, | ||
@@ -47,3 +47,3 @@ "StageName": "hookshot", | ||
}, | ||
"PassDeployment41d722f6": { | ||
"PassDeployment2d092515": { | ||
"Type": "AWS::ApiGateway::Deployment", | ||
@@ -50,0 +50,0 @@ "DependsOn": "PassMethod", |
@@ -27,3 +27,3 @@ { | ||
"DeploymentId": { | ||
"Ref": "PassDeployment41d722f6" | ||
"Ref": "PassDeployment2d092515" | ||
}, | ||
@@ -56,3 +56,3 @@ "StageName": "hookshot", | ||
}, | ||
"PassDeployment41d722f6": { | ||
"PassDeployment2d092515": { | ||
"Type": "AWS::ApiGateway::Deployment", | ||
@@ -59,0 +59,0 @@ "DependsOn": "PassMethod", |
@@ -27,3 +27,3 @@ { | ||
"DeploymentId": { | ||
"Ref": "PassDeployment41d722f6" | ||
"Ref": "PassDeployment2d092515" | ||
}, | ||
@@ -47,3 +47,3 @@ "StageName": "hookshot", | ||
}, | ||
"PassDeployment41d722f6": { | ||
"PassDeployment2d092515": { | ||
"Type": "AWS::ApiGateway::Deployment", | ||
@@ -50,0 +50,0 @@ "DependsOn": "PassMethod", |
@@ -27,3 +27,3 @@ { | ||
"DeploymentId": { | ||
"Ref": "PassDeployment41d722f6" | ||
"Ref": "PassDeployment2d092515" | ||
}, | ||
@@ -47,3 +47,3 @@ "StageName": "hookshot", | ||
}, | ||
"PassDeployment41d722f6": { | ||
"PassDeployment2d092515": { | ||
"Type": "AWS::ApiGateway::Deployment", | ||
@@ -50,0 +50,0 @@ "DependsOn": "PassMethod", |
@@ -27,3 +27,3 @@ { | ||
"DeploymentId": { | ||
"Ref": "PassDeployment41d722f6" | ||
"Ref": "PassDeployment2d092515" | ||
}, | ||
@@ -47,3 +47,3 @@ "StageName": "hookshot", | ||
}, | ||
"PassDeployment41d722f6": { | ||
"PassDeployment2d092515": { | ||
"Type": "AWS::ApiGateway::Deployment", | ||
@@ -50,0 +50,0 @@ "DependsOn": "PassMethod", |
@@ -27,3 +27,3 @@ { | ||
"DeploymentId": { | ||
"Ref": "PassDeployment41d722f6" | ||
"Ref": "PassDeployment2d092515" | ||
}, | ||
@@ -47,3 +47,3 @@ "StageName": "hookshot", | ||
}, | ||
"PassDeployment41d722f6": { | ||
"PassDeployment2d092515": { | ||
"Type": "AWS::ApiGateway::Deployment", | ||
@@ -50,0 +50,0 @@ "DependsOn": "PassMethod", |
@@ -27,3 +27,3 @@ { | ||
"DeploymentId": { | ||
"Ref": "PassDeployment41d722f6" | ||
"Ref": "PassDeployment2d092515" | ||
}, | ||
@@ -47,3 +47,3 @@ "StageName": "hookshot", | ||
}, | ||
"PassDeployment41d722f6": { | ||
"PassDeployment2d092515": { | ||
"Type": "AWS::ApiGateway::Deployment", | ||
@@ -50,0 +50,0 @@ "DependsOn": "PassMethod", |
@@ -348,20 +348,2 @@ 'use strict'; | ||
); | ||
lambda = new cf.shortcuts.ScheduledLambda({ | ||
LogicalName: 'MyLambda', | ||
Code: { | ||
S3Bucket: 'my-code-bucket', | ||
S3Key: 'path/to/code.zip' | ||
}, | ||
EventBusName: 'my-cool-eventbus', | ||
ScheduleExpression: 'rate(1 hour)', | ||
State: 'DISABLED' | ||
}); | ||
template = cf.merge(lambda); | ||
if (update) fixtures.update('scheduled-lambda-custom-eventbus', template); | ||
assert.deepEqual( | ||
noUndefined(template), | ||
fixtures.get('scheduled-lambda-custom-eventbus'), | ||
'expected resources generated without defaults and a custom eventbus' | ||
); | ||
assert.end(); | ||
@@ -368,0 +350,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
732439
14515