Skip to content

Commit

Permalink
Merge pull request #35203 from gileri/d-lambda-url-trailing-slash
Browse files Browse the repository at this point in the history
Add trailing slash in Lambda URL documentation
  • Loading branch information
ewbankkit authored Jan 10, 2024
2 parents d5dfc33 + 7519d78 commit 6f2869b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/service/lambda/function_url.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func resourceFunctionURLRead(ctx context.Context, d *schema.ResourceData, meta i
d.Set("qualifier", qualifier)

// Function URL endpoints have the following format:
// https://<url-id>.lambda-url.<region>.on.aws
// https://<url-id>.lambda-url.<region>.on.aws/
if v, err := url.Parse(functionURL); err != nil {
return sdkdiag.AppendErrorf(diags, "parsing URL (%s): %s", functionURL, err)
} else if v := strings.Split(v.Host, "."); len(v) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion internal/service/lambda/function_url_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func dataSourceFunctionURLRead(ctx context.Context, d *schema.ResourceData, meta
d.Set("qualifier", qualifier)

// Function URL endpoints have the following format:
// https://<url-id>.lambda-url.<region>.on.aws
// https://<url-id>.lambda-url.<region>.on.aws/
if v, err := url.Parse(functionURL); err != nil {
return sdkdiag.AppendErrorf(diags, "parsing URL (%s): %s", functionURL, err)
} else if v := strings.Split(v.Host, "."); len(v) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/lambda_function_url.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ This data source exports the following attributes in addition to the arguments a
* `cors` - The [cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for the function URL. See the [`aws_lambda_function_url` resource](/docs/providers/aws/r/lambda_function_url.html) documentation for more details.
* `creation_time` - When the function URL was created, in [ISO-8601 format](https://www.w3.org/TR/NOTE-datetime).
* `function_arn` - ARN of the function.
* `function_url` - HTTP URL endpoint for the function in the format `https://<url_id>.lambda-url.<region>.on.aws`.
* `function_url` - HTTP URL endpoint for the function in the format `https://<url_id>.lambda-url.<region>.on.aws/`.
* `invoke_mode` - Whether the Lambda function responds in `BUFFERED` or `RESPONSE_STREAM` mode.
* `last_modified_time` - When the function URL configuration was last updated, in [ISO-8601 format](https://www.w3.org/TR/NOTE-datetime).
* `url_id` - Generated ID for the endpoint.
2 changes: 1 addition & 1 deletion website/docs/r/lambda_function_url.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ This configuration block supports the following attributes:
This resource exports the following attributes in addition to the arguments above:

* `function_arn` - The Amazon Resource Name (ARN) of the function.
* `function_url` - The HTTP URL endpoint for the function in the format `https://<url_id>.lambda-url.<region>.on.aws`.
* `function_url` - The HTTP URL endpoint for the function in the format `https://<url_id>.lambda-url.<region>.on.aws/`.
* `url_id` - A generated ID for the endpoint.

## Import
Expand Down

0 comments on commit 6f2869b

Please sign in to comment.