Skip to content

Commit

Permalink
feat(lambda_function): add FunctionUrlConfig property
Browse files Browse the repository at this point in the history
  • Loading branch information
lpizzinidev committed Aug 24, 2023
1 parent a891842 commit 25103fc
Show file tree
Hide file tree
Showing 9 changed files with 376 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.

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

76 changes: 76 additions & 0 deletions cloudformation/serverless/function_cors.go

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

69 changes: 69 additions & 0 deletions generate/sam-2016-10-31.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@
"Type": "List",
"PrimitiveItemType": "String",
"UpdateType": "Immutable"
},
"FunctionUrlConfig": {
"Documentation": "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-functionurlconfig.html",
"Required": false,
"Type": "FunctionUrlConfig",
"UpdateType": "Immutable"
}
}
},
Expand Down Expand Up @@ -2089,6 +2095,69 @@
}
}
},
"AWS::Serverless::Function.FunctionUrlConfig": {
"Documentation": "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-functionurlconfig.html",
"Properties": {
"AuthType": {
"Documentation": "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-functionurlconfig.html#sam-function-functionurlconfig-authtype",
"Required": true,
"PrimitiveType": "String",
"UpdateType": "Immutable"
},
"Cors": {
"Documentation": "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-functionurlconfig.html#sam-function-functionurlconfig-cors",
"Required": false,
"PrimitiveTypes": [
"String"
],
"Types": [
"CorsConfiguration"
],
"UpdateType": "Immutable"
},
"InvokeMode": {
"Documentation": "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-functionurlconfig.html#sam-function-functionurlconfig-invokemode",
"Required": false,
"PrimitiveType": "String",
"UpdateType": "Immutable"
}
}
},
"AWS::Serverless::Function.CorsConfiguration": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#cors-configuration",
"Properties": {
"AllowMethods": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#cors-configuration",
"Required": false,
"PrimitiveType": "String",
"UpdateType": "Immutable"
},
"AllowHeaders": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#cors-configuration",
"Required": false,
"PrimitiveType": "String",
"UpdateType": "Immutable"
},
"AllowOrigin": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#cors-configuration",
"Required": true,
"PrimitiveType": "String",
"UpdateType": "Immutable"
},
"MaxAge": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#cors-configuration",
"Required": false,
"PrimitiveType": "String",
"UpdateType": "Immutable"
},
"AllowCredentials": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#cors-configuration",
"Required": false,
"PrimitiveType": "Boolean",
"UpdateType": "Immutable"
}
}
},
"AWS::Serverless::StateMachine.LoggingConfiguration": {
"Documentation": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-loggingconfiguration.html",
"Properties": {
Expand Down
57 changes: 57 additions & 0 deletions schema/sam.go
Original file line number Diff line number Diff line change
Expand Up @@ -183816,6 +183816,9 @@ var SamSchema = `{
"FunctionName": {
"type": "string"
},
"FunctionUrlConfig": {
"$ref": "#/definitions/AWS::Serverless::Function.FunctionUrlConfig"
},
"Handler": {
"type": "string"
},
Expand Down Expand Up @@ -184164,6 +184167,30 @@ var SamSchema = `{
],
"type": "object"
},
"AWS::Serverless::Function.CorsConfiguration": {
"additionalProperties": false,
"properties": {
"AllowCredentials": {
"type": "boolean"
},
"AllowHeaders": {
"type": "string"
},
"AllowMethods": {
"type": "string"
},
"AllowOrigin": {
"type": "string"
},
"MaxAge": {
"type": "string"
}
},
"required": [
"AllowOrigin"
],
"type": "object"
},
"AWS::Serverless::Function.DeadLetterQueue": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -184447,6 +184474,33 @@ var SamSchema = `{
],
"type": "object"
},
"AWS::Serverless::Function.FunctionUrlConfig": {
"additionalProperties": false,
"properties": {
"AuthType": {
"type": "string"
},
"Cors": {
"anyOf": [
{
"type": [
"string"
]
},
{
"$ref": "#/definitions/AWS::Serverless::Function.CorsConfiguration"
}
]
},
"InvokeMode": {
"type": "string"
}
},
"required": [
"AuthType"
],
"type": "object"
},
"AWS::Serverless::Function.HttpApiEvent": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -199064,6 +199118,9 @@ var SamSchema = `{
"EventInvokeConfig": {
"$ref": "#/definitions/AWS::Serverless::Function.EventInvokeConfig"
},
"FunctionUrlConfig": {
"$ref": "#/definitions/AWS::Serverless::Function.FunctionUrlConfig"
},
"Handler": {
"type": "string"
},
Expand Down
Loading

0 comments on commit 25103fc

Please sign in to comment.