diff --git a/aws/data_source_aws_lb_target_group.go b/aws/data_source_aws_lb_target_group.go index 4616a0ee952..af5c95b6fdd 100644 --- a/aws/data_source_aws_lb_target_group.go +++ b/aws/data_source_aws_lb_target_group.go @@ -26,39 +26,6 @@ func dataSourceAwsLbTargetGroup() *schema.Resource { Type: schema.TypeInt, Computed: true, }, - "health_check": { - Type: schema.TypeList, - Computed: true, - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "enabled": { - Type: schema.TypeBool, - Computed: true, - }, - "healthy_threshold": { - Type: schema.TypeInt, - Computed: true, - }, - "app_cookie": { - Type: schema.TypeList, - Computed: true, - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "cookie_name": { - Type: schema.TypeString, - Computed: true, - }, - "duration_seconds": { - Type: schema.TypeInt, - Computed: true, - }, - }, - }, - }, - }, - }, - }, - "health_check": { Type: schema.TypeList, Computed: true, diff --git a/aws/resource_aws_lb_target_group.go b/aws/resource_aws_lb_target_group.go index c3d5ef1a92e..e07a965884a 100644 --- a/aws/resource_aws_lb_target_group.go +++ b/aws/resource_aws_lb_target_group.go @@ -249,19 +249,6 @@ func resourceAwsLbTargetGroup() *schema.Resource { return false }, }, - "cookie_duration": { - Type: schema.TypeInt, - Optional: true, - Default: 86400, - ValidateFunc: validation.IntBetween(0, 604800), - DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { - switch d.Get("protocol").(string) { - case elbv2.ProtocolEnumTcp, elbv2.ProtocolEnumUdp, elbv2.ProtocolEnumTcpUdp, elbv2.ProtocolEnumTls: - return true - } - return false - }, - }, "app_cookie": { Type: schema.TypeList, Optional: true, diff --git a/aws/resource_aws_lb_target_group_test.go b/aws/resource_aws_lb_target_group_test.go index 5cda4f11260..8a1edbc1c24 100644 --- a/aws/resource_aws_lb_target_group_test.go +++ b/aws/resource_aws_lb_target_group_test.go @@ -2516,7 +2516,6 @@ resource "aws_vpc" "test" { `, targetGroupName, appSstickinessBlock) } - func testAccAWSLBTargetGroupConfig_namePrefix(rName string) string { return fmt.Sprintf(` resource "aws_lb_target_group" "test" { diff --git a/website/docs/r/lb_target_group.html.markdown b/website/docs/r/lb_target_group.html.markdown index afd8bda2fda..14da2d2d9c2 100644 --- a/website/docs/r/lb_target_group.html.markdown +++ b/website/docs/r/lb_target_group.html.markdown @@ -103,6 +103,7 @@ Application Cookie Blocks (`app_coookie`) support the following: * `cookie_name` - (Required). Name of the application based cookie. Name of the cookie should not start with the following names: AWSALB, AWSALBAPP, and AWSALBTG. They're reserved for use by the load balancer. * `duration_seconds` - (Optional). The time period, in seconds, during which requests from a client should be routed to the same target. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). + ## Attributes Reference In addition to all arguments above, the following attributes are exported: