File tree 4 files changed +63
-0
lines changed
4 files changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## Requirements
2
+
3
+ | Name | Version |
4
+ | ------| ---------|
5
+ | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.9 |
6
+ | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.20.0 |
7
+
8
+ ## Providers
9
+
10
+ | Name | Version |
11
+ | ------| ---------|
12
+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.20.0 |
13
+
14
+ ## Modules
15
+
16
+ No modules.
17
+
18
+ ## Resources
19
+
20
+ | Name | Type |
21
+ | ------| ------|
22
+ | [ aws_api_gateway_gateway_response.wrapper] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/api_gateway_gateway_response ) | resource |
23
+
24
+ ## Inputs
25
+
26
+ | Name | Description | Type | Default | Required |
27
+ | ------| -------------| ------| ---------| :--------:|
28
+ | <a name =" input_gateway_responses " ></a > [ gateway\_ responses] ( #input\_ gateway\_ responses ) | map of gateway responses | ` map(any) ` | ` {} ` | no |
29
+ | <a name =" input_rest_api_id " ></a > [ rest\_ api\_ id] ( #input\_ rest\_ api\_ id ) | The ID of the REST API | ` string ` | ` "" ` | no |
30
+
31
+ ## Outputs
32
+
33
+ No outputs.
Original file line number Diff line number Diff line change
1
+ resource "aws_api_gateway_gateway_response" "wrapper" {
2
+ for_each = var. gateway_responses
3
+
4
+ rest_api_id = var. rest_api_id
5
+ response_type = each. key
6
+ status_code = each. value . status_code
7
+
8
+ response_templates = each. value . response_templates
9
+ response_parameters = each. value . response_parameters
10
+ }
Original file line number Diff line number Diff line change
1
+ variable "rest_api_id" {
2
+ description = " The ID of the REST API"
3
+ type = string
4
+ default = " "
5
+ }
6
+
7
+ variable "gateway_responses" {
8
+ description = " map of gateway responses"
9
+ type = map (any )
10
+ default = {}
11
+ }
Original file line number Diff line number Diff line change
1
+ terraform {
2
+ required_version = " >= 1.9"
3
+ required_providers {
4
+ aws = {
5
+ source = " hashicorp/aws"
6
+ version = " >= 5.20.0"
7
+ }
8
+ }
9
+ }
You can’t perform that action at this time.
0 commit comments