|
1 | 1 | { |
2 | 2 | "description": "Create an AWS Lambda function URL", |
3 | | - "example": "release {\n\tuse \"lambda-function-url\" {\n\t\tauth_type = \"NONE\"\n\t}\n}", |
| 3 | + "example": "release {\n\tuse \"lambda-function-url\" {\n\t\tauth_type = \"NONE\"\n\t\tcors {\n\t\t\tallow_methods = [\"*\"]\n\t\t}\n\t}\n}", |
4 | 4 | "input": "lambda.Deployment", |
5 | 5 | "mappers": null, |
6 | 6 | "name": "lambda-function-url", |
|
17 | 17 | "Example": "", |
18 | 18 | "SubFields": null |
19 | 19 | }, |
| 20 | + { |
| 21 | + "Field": "cors", |
| 22 | + "Type": "function_url.ReleaserConfigCors", |
| 23 | + "Synopsis": "CORS configuration for the function URL", |
| 24 | + "Summary": "", |
| 25 | + "Optional": false, |
| 26 | + "Default": "NONE", |
| 27 | + "EnvVar": "", |
| 28 | + "Category": true, |
| 29 | + "Example": "", |
| 30 | + "SubFields": [ |
| 31 | + { |
| 32 | + "Field": "allow_credentials", |
| 33 | + "Type": "bool", |
| 34 | + "Synopsis": "Whether to allow cookies or other credentials in requests to your function URL.", |
| 35 | + "Summary": "", |
| 36 | + "Optional": true, |
| 37 | + "Default": "false", |
| 38 | + "EnvVar": "", |
| 39 | + "Category": false, |
| 40 | + "Example": "", |
| 41 | + "SubFields": null |
| 42 | + }, |
| 43 | + { |
| 44 | + "Field": "allow_headers", |
| 45 | + "Type": "list of string", |
| 46 | + "Synopsis": "The HTTP headers that origins can include in requests to your function URL. For example: Date, Keep-Alive, X-Custom-Header.", |
| 47 | + "Summary": "", |
| 48 | + "Optional": true, |
| 49 | + "Default": "[]", |
| 50 | + "EnvVar": "", |
| 51 | + "Category": false, |
| 52 | + "Example": "", |
| 53 | + "SubFields": null |
| 54 | + }, |
| 55 | + { |
| 56 | + "Field": "allow_methods", |
| 57 | + "Type": "list of string", |
| 58 | + "Synopsis": "The HTTP methods that are allowed when calling your function URL. For example: GET, POST, DELETE, or the wildcard character (*).", |
| 59 | + "Summary": "", |
| 60 | + "Optional": true, |
| 61 | + "Default": "[]", |
| 62 | + "EnvVar": "", |
| 63 | + "Category": false, |
| 64 | + "Example": "", |
| 65 | + "SubFields": null |
| 66 | + }, |
| 67 | + { |
| 68 | + "Field": "allow_origins", |
| 69 | + "Type": "list of string", |
| 70 | + "Synopsis": "The origins that can access your function URL. You can list any number of specific origins, separated by a comma. You can grant access to all origins using the wildcard character (*).", |
| 71 | + "Summary": "", |
| 72 | + "Optional": true, |
| 73 | + "Default": "[]", |
| 74 | + "EnvVar": "", |
| 75 | + "Category": false, |
| 76 | + "Example": "", |
| 77 | + "SubFields": null |
| 78 | + }, |
| 79 | + { |
| 80 | + "Field": "expose_headers", |
| 81 | + "Type": "list of string", |
| 82 | + "Synopsis": "The HTTP headers in your function response that you want to expose to origins that call your function URL. For example: Date, Keep-Alive, X-Custom-Header.", |
| 83 | + "Summary": "", |
| 84 | + "Optional": true, |
| 85 | + "Default": "[]", |
| 86 | + "EnvVar": "", |
| 87 | + "Category": false, |
| 88 | + "Example": "", |
| 89 | + "SubFields": null |
| 90 | + }, |
| 91 | + { |
| 92 | + "Field": "max_age", |
| 93 | + "Type": "int64", |
| 94 | + "Synopsis": "The maximum amount of time, in seconds, that web browsers can cache results of a preflight request.", |
| 95 | + "Summary": "", |
| 96 | + "Optional": true, |
| 97 | + "Default": "0", |
| 98 | + "EnvVar": "", |
| 99 | + "Category": false, |
| 100 | + "Example": "", |
| 101 | + "SubFields": null |
| 102 | + } |
| 103 | + ] |
| 104 | + }, |
20 | 105 | { |
21 | 106 | "Field": "principal", |
22 | 107 | "Type": "string", |
|
0 commit comments