@@ -243,29 +243,29 @@ func resourceCloudIoTRegistryUpdate(d *schema.ResourceData, meta interface{}) er
243
243
244
244
if d .HasChange ("event_notification_config" ) {
245
245
hasChanged = true
246
- updateMask = append (updateMask , "event_notification_config " )
246
+ updateMask = append (updateMask , "event_notification_configs " )
247
247
if v , ok := d .GetOk ("event_notification_config" ); ok {
248
248
deviceRegistry .EventNotificationConfigs = make ([]* cloudiot.EventNotificationConfig , 1 , 1 )
249
249
deviceRegistry .EventNotificationConfigs [0 ] = buildEventNotificationConfig (v .(map [string ]interface {}))
250
250
}
251
251
}
252
252
if d .HasChange ("state_notification_config" ) {
253
253
hasChanged = true
254
- updateMask = append (updateMask , "state_notification_config" )
254
+ updateMask = append (updateMask , "state_notification_config.pubsub_topic_name " )
255
255
if v , ok := d .GetOk ("state_notification_config" ); ok {
256
256
deviceRegistry .StateNotificationConfig = buildStateNotificationConfig (v .(map [string ]interface {}))
257
257
}
258
258
}
259
259
if d .HasChange ("mqtt_config" ) {
260
260
hasChanged = true
261
- updateMask = append (updateMask , "mqtt_config" )
261
+ updateMask = append (updateMask , "mqtt_config.mqtt_enabled_state " )
262
262
if v , ok := d .GetOk ("mqtt_config" ); ok {
263
263
deviceRegistry .MqttConfig = buildMqttConfig (v .(map [string ]interface {}))
264
264
}
265
265
}
266
266
if d .HasChange ("http_config" ) {
267
267
hasChanged = true
268
- updateMask = append (updateMask , "http_config" )
268
+ updateMask = append (updateMask , "http_config.http_enabled_state " )
269
269
if v , ok := d .GetOk ("http_config" ); ok {
270
270
deviceRegistry .HttpConfig = buildHttpConfig (v .(map [string ]interface {}))
271
271
}
0 commit comments