From fd6568b1b978f9275ee0b08f6c44ca0e24c24ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20del=20Campo?= Date: Fri, 22 Jan 2021 11:16:53 +0100 Subject: [PATCH] fix: update data_source_aws_lb_listener schema to match aws_lb_listener resource schema --- aws/data_source_aws_lb_listener.go | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/aws/data_source_aws_lb_listener.go b/aws/data_source_aws_lb_listener.go index fed51ee8faa..dd594b6d5b3 100644 --- a/aws/data_source_aws_lb_listener.go +++ b/aws/data_source_aws_lb_listener.go @@ -213,6 +213,46 @@ func dataSourceAwsLbListener() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "forward": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "target_group": { + Type: schema.TypeSet, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "arn": { + Type: schema.TypeString, + Computed: true, + }, + "weight": { + Type: schema.TypeInt, + Computed: true, + }, + }, + }, + }, + "stickiness": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "enabled": { + Type: schema.TypeBool, + Computed: true, + }, + "duration": { + Type: schema.TypeInt, + Computed: true, + }, + }, + }, + }, + }, + }, + }, }, }, },