@@ -48,8 +48,9 @@ func resourceNotificationTemplate() *schema.Resource {
4848 Optional : true ,
4949 },
5050 "notification_configuration" : {
51- Type : schema .TypeMap ,
51+ Type : schema .TypeString ,
5252 Optional : true ,
53+ Default : "" ,
5354 },
5455 },
5556 }
@@ -65,7 +66,7 @@ func resourceNotificationTemplateCreate(ctx context.Context, d *schema.ResourceD
6566 "description" : d .Get ("description" ).(string ),
6667 "organization" : d .Get ("organization_id" ).(string ),
6768 "notification_type" : d .Get ("notification_type" ).(string ),
68- "notification_configuration" : d .Get ("notification_configuration" ).(map [ string ] interface {} ),
69+ "notification_configuration" : d .Get ("notification_configuration" ).(string ),
6970 }, map [string ]string {})
7071 if err != nil {
7172 log .Printf ("Fail to Create notification_template %v" , err )
@@ -101,7 +102,7 @@ func resourceNotificationTemplateUpdate(ctx context.Context, d *schema.ResourceD
101102 "description" : d .Get ("description" ).(string ),
102103 "organization" : d .Get ("organization_id" ).(string ),
103104 "notification_type" : d .Get ("notification_type" ).(string ),
104- "notification_configuration" : d .Get ("notification_configuration" ).(map [ string ] interface {} ),
105+ "notification_configuration" : d .Get ("notification_configuration" ).(string ),
105106 }, map [string ]string {})
106107 if err != nil {
107108 diags = append (diags , diag.Diagnostic {
0 commit comments