Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trailing slash in Lambda URL documentation #35203

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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