Skip to content

Commit 649eabe

Browse files
committed
fix: Update function_name description and default value in alias module.
Regenerated doc files.
1 parent 70328bc commit 649eabe

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

modules/alias/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ No modules.
155155
| <a name="input_destination_on_failure"></a> [destination\_on\_failure](#input\_destination\_on\_failure) | Amazon Resource Name (ARN) of the destination resource for failed asynchronous invocations | `string` | `null` | no |
156156
| <a name="input_destination_on_success"></a> [destination\_on\_success](#input\_destination\_on\_success) | Amazon Resource Name (ARN) of the destination resource for successful asynchronous invocations | `string` | `null` | no |
157157
| <a name="input_event_source_mapping"></a> [event\_source\_mapping](#input\_event\_source\_mapping) | Map of event source mapping | `any` | `{}` | no |
158-
| <a name="input_function_name"></a> [function\_name](#input\_function\_name) | Name or ARN of the Lambda function for which you want to create an alias. | `string` | `""` | yes |
158+
| <a name="input_function_name"></a> [function\_name](#input\_function\_name) | Name or ARN of the Lambda function for which you want to create an alias. | `string` | n/a | yes |
159159
| <a name="input_function_version"></a> [function\_version](#input\_function\_version) | Lambda function version for which you are creating the alias. Pattern: ($LATEST\|[0-9]+). | `string` | `""` | no |
160160
| <a name="input_maximum_event_age_in_seconds"></a> [maximum\_event\_age\_in\_seconds](#input\_maximum\_event\_age\_in\_seconds) | Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600. | `number` | `null` | no |
161161
| <a name="input_maximum_retry_attempts"></a> [maximum\_retry\_attempts](#input\_maximum\_retry\_attempts) | Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2. | `number` | `null` | no |

modules/alias/variables.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ variable "description" {
6363
}
6464

6565
variable "function_name" {
66-
description = "The function ARN of the Lambda function for which you want to create an alias."
66+
description = "Name or ARN of the Lambda function for which you want to create an alias."
6767
type = string
68-
default = ""
6968
}
7069

7170
variable "function_version" {

wrappers/alias/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module "wrapper" {
1414
destination_on_failure = try(each.value.destination_on_failure, var.defaults.destination_on_failure, null)
1515
destination_on_success = try(each.value.destination_on_success, var.defaults.destination_on_success, null)
1616
event_source_mapping = try(each.value.event_source_mapping, var.defaults.event_source_mapping, {})
17-
function_name = try(each.value.function_name, var.defaults.function_name, "")
17+
function_name = try(each.value.function_name, var.defaults.function_name)
1818
function_version = try(each.value.function_version, var.defaults.function_version, "")
1919
maximum_event_age_in_seconds = try(each.value.maximum_event_age_in_seconds, var.defaults.maximum_event_age_in_seconds, null)
2020
maximum_retry_attempts = try(each.value.maximum_retry_attempts, var.defaults.maximum_retry_attempts, null)

0 commit comments

Comments
 (0)