From 7519d78378268622be6912c305067560c5ae7963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gillet?= Date: Tue, 9 Jan 2024 15:57:29 +0100 Subject: [PATCH] doc: Add trailing slash in lambda urls --- internal/service/lambda/function_url.go | 2 +- internal/service/lambda/function_url_data_source.go | 2 +- website/docs/d/lambda_function_url.html.markdown | 2 +- website/docs/r/lambda_function_url.html.markdown | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/service/lambda/function_url.go b/internal/service/lambda/function_url.go index c32d7e6b589f..e3ce3dce652e 100644 --- a/internal/service/lambda/function_url.go +++ b/internal/service/lambda/function_url.go @@ -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://.lambda-url..on.aws + // https://.lambda-url..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 { diff --git a/internal/service/lambda/function_url_data_source.go b/internal/service/lambda/function_url_data_source.go index f8de891d99d8..4443338cf811 100644 --- a/internal/service/lambda/function_url_data_source.go +++ b/internal/service/lambda/function_url_data_source.go @@ -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://.lambda-url..on.aws + // https://.lambda-url..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 { diff --git a/website/docs/d/lambda_function_url.html.markdown b/website/docs/d/lambda_function_url.html.markdown index bb9bc1bf91fa..7595d6286715 100644 --- a/website/docs/d/lambda_function_url.html.markdown +++ b/website/docs/d/lambda_function_url.html.markdown @@ -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://.lambda-url..on.aws`. +* `function_url` - HTTP URL endpoint for the function in the format `https://.lambda-url..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. diff --git a/website/docs/r/lambda_function_url.html.markdown b/website/docs/r/lambda_function_url.html.markdown index 07f242d064dc..b9dc442cdc48 100644 --- a/website/docs/r/lambda_function_url.html.markdown +++ b/website/docs/r/lambda_function_url.html.markdown @@ -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://.lambda-url..on.aws`. +* `function_url` - The HTTP URL endpoint for the function in the format `https://.lambda-url..on.aws/`. * `url_id` - A generated ID for the endpoint. ## Import