Skip to content

Commit d10a9f9

Browse files
authored
Update resource_postgresql_subscription.go
Add enabled flag to a set of parameters to allow for customizable replication setup.
1 parent 450ce85 commit d10a9f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

postgresql/resource_postgresql_subscription.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ func resourcePostgreSQLSubscription() *schema.Resource {
6363
Description: "Name of the replication slot to use. The default behavior is to use the name of the subscription for the slot name",
6464
ValidateFunc: validation.StringIsNotEmpty,
6565
},
66+
"enabled": {
67+
Type: schema.TypeBool,
68+
Optional: true,
69+
ForceNew: true,
70+
Default: true,
71+
Description: "Specifies whether the subscription should be actively replicating or whether it should just be set up but not started yet. The default is true.",
72+
},
6673
},
6774
}
6875
}

0 commit comments

Comments
 (0)