POST /2021-10-31/functions/{FunctionName}/url
Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated HTTP(S) endpoint that you can use to invoke your function.
Servers
- https://lambda.{region}.amazonaws.com
- https://lambda.{region}.amazonaws.com.cn
Path parameters
Name | Type | Required | Description |
---|---|---|---|
FunctionName |
String | Yes |
The name of the Lambda function. Name formats
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
X-Amz-Content-Sha256 |
String | No | |
X-Amz-Credential |
String | No | |
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
X-Amz-Date |
String | No | |
X-Amz-Algorithm |
String | No | |
X-Amz-SignedHeaders |
String | No | |
X-Amz-Security-Token |
String | No | |
X-Amz-Signature |
String | No |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
Qualifier |
String | No |
The alias name. |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
InvokeMode |
String | No |
Use one of the following options:
Possible values:
|
Cors |
Object | No |
The cross-origin resource sharing (CORS) settings for your Lambda function URL. Use CORS to grant access to your function URL from any origin. You can also use CORS to control access for specific HTTP headers and methods in requests to your function URL. |
Cors.MaxAge |
Integer | No |
The maximum amount of time, in seconds, that web browsers can cache results of a preflight request. By default, this is set to |
Cors.ExposeHeaders[] |
Array | No |
The HTTP headers in your function response that you want to expose to origins that call your function URL. For example: |
Cors.AllowHeaders[] |
Array | No |
The HTTP headers that origins can include in requests to your function URL. For example: |
Cors.AllowCredentials |
Boolean | No |
Whether to allow cookies or other credentials in requests to your function URL. The default is |
Cors.AllowMethods[] |
Array | No |
The HTTP methods that are allowed when calling your function URL. For example: |
Cors.AllowOrigins[] |
Array | No |
The origins that can access your function URL. You can list any number of specific origins, separated by a comma. For example: Alternatively, you can grant access to all origins using the wildcard character ( |
AuthType |
String | Yes |
The type of authentication that your function URL uses. Set to Possible values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.