Skip to content

Commit df35afe

Browse files
Divya-Singh1693hkantare
authored andcommitted
added validator invoaction on verification field
1 parent 04ae9c8 commit df35afe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ibm/service/eventnotification/resource_ibm_en_destination_custom_email.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ import (
1111
"github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns"
1212
"github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex"
1313
"github.com/IBM-Cloud/terraform-provider-ibm/ibm/validate"
14+
en "github.com/IBM/event-notifications-go-admin-sdk/eventnotificationsv1"
1415
"github.com/IBM/go-sdk-core/v5/core"
1516
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
1617
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
17-
18-
en "github.com/IBM/event-notifications-go-admin-sdk/eventnotificationsv1"
1918
)
2019

2120
func ResourceIBMEnCustomEmailDestination() *schema.Resource {
@@ -54,9 +53,10 @@ func ResourceIBMEnCustomEmailDestination() *schema.Resource {
5453
Description: "Whether to collect the failed event in Cloud Object Storage bucket",
5554
},
5655
"verification_type": &schema.Schema{
57-
Type: schema.TypeString,
58-
Optional: true,
59-
Description: "Verification Method spf/dkim.",
56+
Type: schema.TypeString,
57+
Optional: true,
58+
ValidateFunc: validate.InvokeValidator("ibm_en_destination_custom_email", "verification_type"),
59+
Description: "Verification Method spf/dkim.",
6060
},
6161
"config": {
6262
Type: schema.TypeList,

0 commit comments

Comments
 (0)