GetBackendServiceLogConfig constructor

const GetBackendServiceLogConfig({
  1. required Input<bool> enable,
  2. required Input<List<String>> optionalFields,
  3. required Input<String> optionalMode,
  4. required Input<List<GetBackendServiceLogConfigRequestHeader>> requestHeaders,
  5. required Input<List<GetBackendServiceLogConfigResponseHeader>> responseHeaders,
  6. required Input<double> sampleRate,
})

Creates a new GetBackendServiceLogConfig. enable Whether to enable logging for the load balancer traffic served by this backend service. optionalFields This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" optionalMode Specifies the optional logging mode for the load balancer traffic. requestHeaders This field can only be specified if logging is enabled for this backend service and if the BackendService protocol is one of HTTP, HTTPS, HTTP2 and GRPC. Contains a list of request headers to be logged. responseHeaders This field can only be specified if logging is enabled for this backend service and if the BackendService protocol is one of HTTP, HTTPS, HTTP2 and GRPC. Contains a list of response headers to be logged. sampleRate This field can only be specified if logging is enabled for this backend service. The value of

Implementation

const GetBackendServiceLogConfig({
  required this.enable,
  required this.optionalFields,
  required this.optionalMode,
  required this.requestHeaders,
  required this.responseHeaders,
  required this.sampleRate,
});