Skip to content

Commit

Permalink
formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunil Kumar Mohanty committed Apr 13, 2021
1 parent 73e3874 commit 8fafcf6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 47 deletions.
33 changes: 0 additions & 33 deletions aws/data_source_aws_lb_target_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
13 changes: 0 additions & 13 deletions aws/resource_aws_lb_target_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion aws/resource_aws_lb_target_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/lb_target_group.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8fafcf6

Please sign in to comment.