# IResourceWithEndpoints.withHttpsEndpointCallback

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

Updates an HTTPS endpoint via callback

## Definition

```typescript
interface IResourceWithEndpoints {
  // ... omitted for brevity
  withHttpsEndpointCallback(callback: (obj: EndpointUpdateContext) => Promise<void>, name?: string, createIfNotExists?: boolean): IResourceWithEndpoints;
}
```

## Signature

```typescript
withHttpsEndpointCallback(callback: (obj: EndpointUpdateContext) => Promise<void>, name?: string, createIfNotExists?: boolean): IResourceWithEndpoints
```

## Parameters

- `callback` (`(obj: EndpointUpdateContext) => Promise<void>`)
- `name` (`string`) `optional`
- `createIfNotExists` (`boolean`) `optional` `= True`

## Returns

[IResourceWithEndpoints](/reference/api/typescript/aspire.hosting/iresourcewithendpoints.md) `builder`

## Defined on

- [IResourceWithEndpoints](/reference/api/typescript/aspire.hosting/iresourcewithendpoints.md) -- `interface`
