# ConnectionStringAvailableEvent

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

The `ConnectionStringAvailableEvent` is raised when a connection string becomes available for a resource.

## Definition

```go
type ConnectionStringAvailableEvent interface {
    DistributedApplicationEvent
    DistributedApplicationResourceEvent
}
```

## Embeds

- [`DistributedApplicationEvent`](/reference/api/go/aspire.hosting/distributedapplicationevent.md)
- [`DistributedApplicationResourceEvent`](/reference/api/go/aspire.hosting/distributedapplicationresourceevent.md)

## Properties

- `Resource`: [`Resource`](/reference/api/go/aspire.hosting/resource.md) `get` -- Gets the Resource property
- `Services`: [`ServiceProvider`](/reference/api/go/aspire.hosting/serviceprovider.md) `get` -- Gets the Services property
