Skip to content

Commit

Permalink
Merge pull request #30815 from markoskandylis/f-vpclattice-listener-r…
Browse files Browse the repository at this point in the history
…ule-resource

F vpclattice listener rule resource
  • Loading branch information
ewbankkit authored Apr 20, 2023
2 parents 615866f + 70762e2 commit 1e46781
Show file tree
Hide file tree
Showing 7 changed files with 1,487 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/30784.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
aws_vpclattice_listener_rule
```
4 changes: 2 additions & 2 deletions internal/service/vpclattice/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func flattenListenerRuleActions(config types.RuleAction) []interface{} {

switch v := config.(type) {
case *types.RuleActionMemberFixedResponse:
m["fixed_response"] = flattenRuleActionMemberFixedResponse(&v.Value)
m["fixed_response"] = flattenFixedResponseAction(&v.Value)
case *types.RuleActionMemberForward:
m["forward"] = flattenComplexDefaultActionForward(&v.Value)
}
Expand All @@ -344,7 +344,7 @@ func flattenListenerRuleActions(config types.RuleAction) []interface{} {
}

// Flatten function for fixed_response action
func flattenRuleActionMemberFixedResponse(response *types.FixedResponseAction) []interface{} {
func flattenFixedResponseAction(response *types.FixedResponseAction) []interface{} {
tfMap := map[string]interface{}{}

if v := response.StatusCode; v != nil {
Expand Down
Loading

0 comments on commit 1e46781

Please sign in to comment.