Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
feat(lambda_function): add EphemeralStorage property (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpizzinidev authored Aug 30, 2023
1 parent 453e598 commit 73f7eb2
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cloudformation/global/function.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions cloudformation/serverless/aws-serverless-function.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions generate/sam-2016-10-31.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,12 @@
"Required": false,
"Type": "FunctionUrlConfig",
"UpdateType": "Immutable"
},
"EphemeralStorage": {
"Documentation": "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-function.html#sam-function-ephemeralstorage",
"Required": false,
"Type": "EphemeralStorage",
"UpdateType": "Immutable"
}
}
},
Expand Down Expand Up @@ -2158,6 +2164,17 @@
}
}
},
"AWS::Serverless::Function.EphemeralStorage": {
"Documentation": "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-function.html#sam-function-ephemeralstorage",
"Properties": {
"Size": {
"Documentation": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-ephemeralstorage.html#cfn-lambda-function-ephemeralstorage-size",
"Required": true,
"PrimitiveType": "Integer",
"UpdateType": "Immutable"
}
}
},
"AWS::Serverless::StateMachine.LoggingConfiguration": {
"Documentation": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-loggingconfiguration.html",
"Properties": {
Expand Down
18 changes: 18 additions & 0 deletions schema/sam.go
Original file line number Diff line number Diff line change
Expand Up @@ -184378,6 +184378,9 @@ var SamSchema = `{
"Environment": {
"$ref": "#/definitions/AWS::Serverless::Function.FunctionEnvironment"
},
"EphemeralStorage": {
"$ref": "#/definitions/AWS::Serverless::Function.EphemeralStorage"
},
"EventInvokeConfig": {
"$ref": "#/definitions/AWS::Serverless::Function.EventInvokeConfig"
},
Expand Down Expand Up @@ -184904,6 +184907,18 @@ var SamSchema = `{
"properties": {},
"type": "object"
},
"AWS::Serverless::Function.EphemeralStorage": {
"additionalProperties": false,
"properties": {
"Size": {
"type": "number"
}
},
"required": [
"Size"
],
"type": "object"
},
"AWS::Serverless::Function.EventBridgeRuleEvent": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -200389,6 +200404,9 @@ var SamSchema = `{
"Environment": {
"$ref": "#/definitions/AWS::Serverless::Function.FunctionEnvironment"
},
"EphemeralStorage": {
"$ref": "#/definitions/AWS::Serverless::Function.EphemeralStorage"
},
"EventInvokeConfig": {
"$ref": "#/definitions/AWS::Serverless::Function.EventInvokeConfig"
},
Expand Down
18 changes: 18 additions & 0 deletions schema/sam.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -184373,6 +184373,9 @@
"Environment": {
"$ref": "#/definitions/AWS::Serverless::Function.FunctionEnvironment"
},
"EphemeralStorage": {
"$ref": "#/definitions/AWS::Serverless::Function.EphemeralStorage"
},
"EventInvokeConfig": {
"$ref": "#/definitions/AWS::Serverless::Function.EventInvokeConfig"
},
Expand Down Expand Up @@ -184899,6 +184902,18 @@
"properties": {},
"type": "object"
},
"AWS::Serverless::Function.EphemeralStorage": {
"additionalProperties": false,
"properties": {
"Size": {
"type": "number"
}
},
"required": [
"Size"
],
"type": "object"
},
"AWS::Serverless::Function.EventBridgeRuleEvent": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -200384,6 +200399,9 @@
"Environment": {
"$ref": "#/definitions/AWS::Serverless::Function.FunctionEnvironment"
},
"EphemeralStorage": {
"$ref": "#/definitions/AWS::Serverless::Function.EphemeralStorage"
},
"EventInvokeConfig": {
"$ref": "#/definitions/AWS::Serverless::Function.EventInvokeConfig"
},
Expand Down
2 changes: 2 additions & 0 deletions test/yaml/aws-serverless-function-2016-10-31.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Resources:
Handler: file.method
Runtime: nodejs
CodeUri: s3://bucket/path/key
EphemeralStorage:
Size: 1024
FunctionName: functionname
FunctionUrlConfig:
AuthType: AWS_IAM
Expand Down

0 comments on commit 73f7eb2

Please sign in to comment.