# RadiusEnvironmentResource

- Module: [Aspire.Hosting.Radius](/reference/api/typescript/aspire.hosting.radius.md)
- Version: `13.5.3-preview.1.26425.3`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/b5f143315ffb6968ea939a9978797a5b20e4c688)

Represents a Radius compute environment in the Aspire app model.

## Definition

```typescript
interface RadiusEnvironmentResource
  extends IComputeEnvironmentResource,
    IResource {
  namespace: string;
  withNamespace(kubernetesNamespace: string): RadiusEnvironmentResource;
}
```

## Properties

- `namespace`: `string` `get - set` -- Gets or sets the Kubernetes namespace for resource deployment.

## Methods

- [withNamespace](/reference/api/typescript/aspire.hosting.radius/radiusenvironmentresource/withnamespace.md) -- `method` -- Sets the Kubernetes namespace for the Radius environment.
    ```typescript
  withNamespace(kubernetesNamespace: string): RadiusEnvironmentResource
  ```
