# RadiusEnvironmentResource

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

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
  ```
