@@ -98,6 +98,7 @@ in the format 'organizations/{{org_name}}'.`,
98
98
"access_logging_config" : {
99
99
Type : schema .TypeList ,
100
100
Optional : true ,
101
+ ForceNew : true ,
101
102
Description : `Access logging configuration enables the access logging feature at the instance.
102
103
Apigee customers can enable access logging to ship the access logs to their own project's cloud logging.` ,
103
104
MaxItems : 1 ,
@@ -106,11 +107,13 @@ Apigee customers can enable access logging to ship the access logs to their own
106
107
"enabled" : {
107
108
Type : schema .TypeBool ,
108
109
Required : true ,
110
+ ForceNew : true ,
109
111
Description : `Boolean flag that specifies whether the customer access log feature is enabled.` ,
110
112
},
111
113
"filter" : {
112
114
Type : schema .TypeString ,
113
115
Optional : true ,
116
+ ForceNew : true ,
114
117
Description : `Ship the access log entries that match the statusCode defined in the filter.
115
118
The statusCode is the only expected/supported filter field. (Ex: statusCode)
116
119
The filter will parse it to the Common Expression Language semantics for expression
@@ -400,12 +403,6 @@ func resourceApigeeInstanceUpdate(d *schema.ResourceData, meta interface{}) erro
400
403
} else if v , ok := d .GetOkExists ("consumer_accept_list" ); ! tpgresource .IsEmptyValue (reflect .ValueOf (v )) && (ok || ! reflect .DeepEqual (v , consumerAcceptListProp )) {
401
404
obj ["consumerAcceptList" ] = consumerAcceptListProp
402
405
}
403
- accessLoggingConfigProp , err := expandApigeeInstanceAccessLoggingConfig (d .Get ("access_logging_config" ), d , config )
404
- if err != nil {
405
- return err
406
- } else if v , ok := d .GetOkExists ("access_logging_config" ); ! tpgresource .IsEmptyValue (reflect .ValueOf (v )) && (ok || ! reflect .DeepEqual (v , accessLoggingConfigProp )) {
407
- obj ["accessLoggingConfig" ] = accessLoggingConfigProp
408
- }
409
406
410
407
lockName , err := tpgresource .ReplaceVars (d , config , "{{org_id}}/apigeeInstances" )
411
408
if err != nil {
@@ -426,10 +423,6 @@ func resourceApigeeInstanceUpdate(d *schema.ResourceData, meta interface{}) erro
426
423
if d .HasChange ("consumer_accept_list" ) {
427
424
updateMask = append (updateMask , "consumerAcceptList" )
428
425
}
429
-
430
- if d .HasChange ("access_logging_config" ) {
431
- updateMask = append (updateMask , "accessLoggingConfig" )
432
- }
433
426
// updateMask is a URL parameter but not present in the schema, so ReplaceVars
434
427
// won't set it
435
428
url , err = transport_tpg .AddQueryParams (url , map [string ]string {"updateMask" : strings .Join (updateMask , "," )})
0 commit comments