# NgrokResource

- Module: [CommunityToolkit.Aspire.Hosting.Ngrok](/reference/api/go/communitytoolkit.aspire.hosting.ngrok.md)
- Version: `13.6.1`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

## Definition

```go
type NgrokResource interface {
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Methods

- [WithAuthToken](/reference/api/go/communitytoolkit.aspire.hosting.ngrok/ngrokresource/withauthtoken.md) -- `method` -- Adds a ngrok auth token to a ngrok resource.
  ```go
  WithAuthToken(ngrokAuthToken ParameterResource) NgrokResource
  ```
- [WithAuthTokenValue](/reference/api/go/communitytoolkit.aspire.hosting.ngrok/ngrokresource/withauthtokenvalue.md) -- `method` -- Adds a ngrok auth token to a ngrok resource.
  ```go
  WithAuthTokenValue(ngrokAuthToken string) NgrokResource
  ```
- [WithTunnelEndpoint](/reference/api/go/communitytoolkit.aspire.hosting.ngrok/ngrokresource/withtunnelendpoint.md) -- `method` -- Configures a resource with endpoints as a ngrok tunnel endpoint.
  ```go
  WithTunnelEndpoint(resource ResourceWithEndpoints, endpointName string, options ...*WithTunnelEndpointOptions) NgrokResource
  ```
