# IResource.getResourceName

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Defined on: [IResource](/reference/api/typescript/aspire.hosting/iresource.md)
- Version: `13.4.0`
- Kind: `method`

Gets the name of the resource from a builder.

## Definition

```typescript
interface IResource {
  // ... omitted for brevity
  getResourceName(): string;
}
```

## Signature

```typescript
getResourceName(): string
```

## Returns

`string`

## Defined on

- [IResource](/reference/api/typescript/aspire.hosting/iresource.md) -- `interface`
