Skip to content

Commit a45f2e6

Browse files
authored
feat: support ImageConfig for Lambda
2 parents 7d52491 + e854938 commit a45f2e6

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 8.4.0
4+
5+
- Support `ImageConfig` property for Lambda
6+
37
## 8.3.0
48

59
- Support a default value for cf.findInMap (Fn::FindInMap).

lib/shortcuts/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ Log Group, a Role, an Alarm on function errors, and the Lambda Function itself.
391391
| options | <code>Object</code> | | Options. |
392392
| options.LogicalName | <code>String</code> | | The logical name of the Lambda function within the CloudFormation template. This is used to construct the logical names of the other resources, as well as the Lambda function's name. |
393393
| options.Code | <code>Object</code> | | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html). |
394+
| [options.ImageConfig] | <code>Object</code> | | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig). |
394395
| [options.DeadLetterConfig] | <code>Object</code> | | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig). |
395396
| [options.Description] | <code>String</code> | <code>&#x27;${logical name} in the ${stack name} stack&#x27;</code> | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-description). |
396397
| [options.Environment] | <code>Object</code> | | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment). |

lib/shortcuts/lambda.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const ServiceRole = require('./service-role');
1212
* within the CloudFormation template. This is used to construct the logical
1313
* names of the other resources, as well as the Lambda function's name.
1414
* @param {Object} options.Code - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html).
15+
* @param {Object} [options.ImageConfig=undefined] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig).
1516
* @param {Object} [options.DeadLetterConfig=undefined] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig).
1617
* @param {String} [options.Description='${logical name} in the ${stack name} stack'] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-description).
1718
* @param {Object} [options.Environment=undefined] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment).
@@ -70,6 +71,7 @@ class Lambda {
7071
const {
7172
LogicalName,
7273
Code,
74+
ImageConfig,
7375
DeadLetterConfig,
7476
Description = { 'Fn::Sub': `${LogicalName} in the \${AWS::StackName} stack` },
7577
Environment,
@@ -150,6 +152,7 @@ class Lambda {
150152
DependsOn,
151153
Properties: {
152154
Code,
155+
ImageConfig,
153156
DeadLetterConfig,
154157
Description,
155158
Environment,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mapbox/cloudfriend",
3-
"version": "8.3.0",
3+
"version": "8.4.0",
44
"description": "Helper functions for assembling CloudFormation templates in JavaScript",
55
"main": "index.js",
66
"engines": {

0 commit comments

Comments
 (0)