GoogleComputeHealthCheck constructor

GoogleComputeHealthCheck({
  1. required String localName,
  2. required TfArg<String> name,
  3. TfArg<String>? description,
  4. TfArg<num>? checkIntervalSec,
  5. TfArg<num>? timeoutSec,
  6. TfArg<num>? healthyThreshold,
  7. TfArg<num>? unhealthyThreshold,
  8. TfArg<List<String>>? sourceRegions,
  9. required ComputeHealthCheckProtocol protocol,
  10. ComputeHealthCheckHealthCheckLogConfig? logConfig,
  11. TfArg<String>? project,
  12. LifecycleOptions? lifecycle,
  13. List<DependencyTarget>? dependsOn,
})

Implementation

GoogleComputeHealthCheck({
  required super.localName,
  required TfArg<String> name,
  TfArg<String>? description,
  TfArg<num>? checkIntervalSec,
  TfArg<num>? timeoutSec,
  TfArg<num>? healthyThreshold,
  TfArg<num>? unhealthyThreshold,
  TfArg<List<String>>? sourceRegions,
  required ComputeHealthCheckProtocol protocol,
  ComputeHealthCheckHealthCheckLogConfig? logConfig,
  TfArg<String>? project,
  super.lifecycle,
  super.dependsOn,
}) : super(
       terraformType: tfType,
       argMap: {
         'name': name,
         if (description != null) 'description': description,
         if (checkIntervalSec != null) 'check_interval_sec': checkIntervalSec,
         if (timeoutSec != null) 'timeout_sec': timeoutSec,
         if (healthyThreshold != null) 'healthy_threshold': healthyThreshold,
         if (unhealthyThreshold != null)
           'unhealthy_threshold': unhealthyThreshold,
         if (sourceRegions != null) 'source_regions': sourceRegions,
         if (logConfig != null)
           'log_config': TfArg.literal([logConfig.toArgMap()]),
         if (project != null) 'project': project,
         protocol.blockKey: TfArg.literal(protocol.encode()),
       },
     );