# ExternalServiceResource

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

## Definition

```go
type ExternalServiceResource interface {
    Resource
}
```

## Embeds

- [`Resource`](/reference/api/go/aspire.hosting/resource.md)

## Methods

- [WithHttpHealthCheck](/reference/api/go/aspire.hosting/externalserviceresource/withhttphealthcheck.md) -- `method` -- Adds an HTTP health check to the external service for polyglot AppHosts.
  ```go
  WithHttpHealthCheck(options ...*WithHttpHealthCheckOptions) ExternalServiceResource
  ```
