> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ubiquex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# space

> The space block defines a named logical namespace for grouping configuration.

The `space` block declares a named configuration namespace. It is used to group related configuration fields that don't fit the `input` model — for example, environment-wide settings shared across multiple stacks.

## Syntax

```xcl theme={"theme":"css-variables"}
space "name" {
    field = value
    field = value
}
```

## Example

```xcl theme={"theme":"css-variables"}
space "prod" {
    region      = "us-east-1"
    environment = "production"
    cost_center = "platform"
}
```

## Current status

The `space` block is parsed and its structure is validated by the XCL parser. It appears in the AST as a `SpaceBlock` with a name label and a list of field assignments. The typechecker does not currently perform reference resolution or validation within `space` blocks.

Full runtime semantics — how space values propagate to resources and how they interact with provider configuration — are implemented at the Pulumi execution layer.

## Fields

Space fields use `=` assignment (same as `locals` and `output`):

```xcl theme={"theme":"css-variables"}
space "shared" {
    tags = {
        ManagedBy = "ubx"
        Team      = "platform"
    }
    owner = "platform-eng"
}
```
