BackendServiceState constructor

const BackendServiceState({
  1. Input<int?>? affinityCookieTtlSec,
  2. Input<List<BackendServiceBackend>?>? backends,
  3. Input<BackendServiceCdnPolicy?>? cdnPolicy,
  4. Input<BackendServiceCircuitBreakers?>? circuitBreakers,
  5. Input<String?>? compressionMode,
  6. Input<int?>? connectionDrainingTimeoutSec,
  7. Input<BackendServiceConsistentHash?>? consistentHash,
  8. Input<String?>? creationTimestamp,
  9. Input<List<BackendServiceCustomMetric>?>? customMetrics,
  10. Input<List<String>?>? customRequestHeaders,
  11. Input<List<String>?>? customResponseHeaders,
  12. Input<String?>? deletionPolicy,
  13. Input<String?>? description,
  14. Input<BackendServiceDynamicForwarding?>? dynamicForwarding,
  15. Input<String?>? edgeSecurityPolicy,
  16. Input<bool?>? enableCdn,
  17. Input<String?>? externalManagedMigrationState,
  18. Input<double?>? externalManagedMigrationTestingPercentage,
  19. Input<String?>? fingerprint,
  20. Input<int?>? generatedId,
  21. Input<String?>? healthChecks,
  22. Input<BackendServiceIap?>? iap,
  23. Input<String?>? ipAddressSelectionPolicy,
  24. Input<String?>? loadBalancingScheme,
  25. Input<List<BackendServiceLocalityLbPolicy>?>? localityLbPolicies,
  26. Input<String?>? localityLbPolicy,
  27. Input<BackendServiceLogConfig?>? logConfig,
  28. Input<BackendServiceMaxStreamDuration?>? maxStreamDuration,
  29. Input<String?>? name,
  30. Input<BackendServiceNetworkPassThroughLbTrafficPolicy?>? networkPassThroughLbTrafficPolicy,
  31. Input<BackendServiceOutlierDetection?>? outlierDetection,
  32. Input<BackendServiceParams?>? params,
  33. Input<String?>? portName,
  34. Input<String?>? project,
  35. Input<String?>? protocol,
  36. Input<String?>? securityPolicy,
  37. Input<BackendServiceSecuritySettings?>? securitySettings,
  38. Input<String?>? selfLink,
  39. Input<String?>? serviceLbPolicy,
  40. Input<String?>? sessionAffinity,
  41. Input<BackendServiceStrongSessionAffinityCookie?>? strongSessionAffinityCookie,
  42. Input<int?>? timeoutSec,
  43. Input<BackendServiceTlsSettings?>? tlsSettings,
})

Creates a new BackendServiceState. affinityCookieTtlSec Lifetime of cookies in seconds if sessionAffinity is backends The set of backends that serve this BackendService. cdnPolicy Cloud CDN configuration for this BackendService. circuitBreakers Settings controlling the volume of connections to a backend service. This field compressionMode Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. connectionDrainingTimeoutSec Time for which instance will be drained (not accept new consistentHash Consistent Hash-based load balancing can be used to provide soft session creationTimestamp Creation timestamp in RFC3339 text format. customMetrics List of custom metrics that are used for the WEIGHTED_ROUND_ROBIN locality_lb_policy. customRequestHeaders Headers that the HTTP/S load balancer should add to proxied customResponseHeaders Headers that the HTTP/S load balancer should add to proxied deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. description An optional description of this resource. dynamicForwarding (Optional, Beta) edgeSecurityPolicy The resource URL for the edge security policy associated with this backend service. enableCdn If true, enable Cloud CDN for this BackendService. externalManagedMigrationState Specifies the canary migration state. Possible values are PREPARE, TEST_BY_PERCENTAGE, and externalManagedMigrationTestingPercentage Determines the fraction of requests that should be processed by the Global external fingerprint Fingerprint of this resource. A hash of the contents stored in this generatedId The unique identifier for the resource. This identifier is defined by the server. healthChecks The set of URLs to the HttpHealthCheck or HttpsHealthCheck resource iap Settings for enabling Cloud Identity Aware Proxy. ipAddressSelectionPolicy Specifies preference of traffic to the backend (from the proxy and from the client for proxyless gRPC). loadBalancingScheme Indicates whether the backend service will be used with internal or localityLbPolicies A list of locality load balancing policies to be used in order of localityLbPolicy The load balancing algorithm used within the scope of the locality. logConfig This field denotes the logging options for the load balancer traffic served by this backend service. maxStreamDuration Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the name Name of the resource. Provided by the client when the resource is networkPassThroughLbTrafficPolicy (Optional, Beta) outlierDetection Settings controlling eviction of unhealthy hosts from the load balancing pool. params Additional params passed with the request, but not persisted as part of resource payload portName Name of backend port. The same name should appear in the instance project The ID of the project in which the resource belongs. protocol The protocol this BackendService uses to communicate with backends. securityPolicy The security policy associated with this backend service. securitySettings The security settings that apply to this backend service. This field is applicable to either selfLink The URI of the created resource. serviceLbPolicy URL to networkservices.ServiceLbPolicy resource. sessionAffinity Type of session affinity to use. The default is NONE. Session affinity is strongSessionAffinityCookie Describes the HTTP cookie used for stateful session affinity. This field is applicable and required if the sessionAffinity is set to STRONG_COOKIE_AFFINITY. timeoutSec The backend service timeout has a different meaning depending on the type of load balancer. tlsSettings Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.

Implementation

const BackendServiceState({
  this.affinityCookieTtlSec,
  this.backends,
  this.cdnPolicy,
  this.circuitBreakers,
  this.compressionMode,
  this.connectionDrainingTimeoutSec,
  this.consistentHash,
  this.creationTimestamp,
  this.customMetrics,
  this.customRequestHeaders,
  this.customResponseHeaders,
  this.deletionPolicy,
  this.description,
  this.dynamicForwarding,
  this.edgeSecurityPolicy,
  this.enableCdn,
  this.externalManagedMigrationState,
  this.externalManagedMigrationTestingPercentage,
  this.fingerprint,
  this.generatedId,
  this.healthChecks,
  this.iap,
  this.ipAddressSelectionPolicy,
  this.loadBalancingScheme,
  this.localityLbPolicies,
  this.localityLbPolicy,
  this.logConfig,
  this.maxStreamDuration,
  this.name,
  this.networkPassThroughLbTrafficPolicy,
  this.outlierDetection,
  this.params,
  this.portName,
  this.project,
  this.protocol,
  this.securityPolicy,
  this.securitySettings,
  this.selfLink,
  this.serviceLbPolicy,
  this.sessionAffinity,
  this.strongSessionAffinityCookie,
  this.timeoutSec,
  this.tlsSettings,
});