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

# HardDeny

## Supported Types

###

```go theme={null}
hardDeny := components.CreateHardDenyStr(string{/* values here */})
```

### ArmorRule

```go theme={null}
hardDeny := components.CreateHardDenyArmorRule(components.ArmorRule{/* values here */})
```

## Union Discrimination

Use the `Type` field to determine which variant is active, then access the corresponding field:

```go theme={null}
switch hardDeny.Type {
	case components.HardDenyTypeStr:
		// hardDeny.Str is populated
	case components.HardDenyTypeArmorRule:
		// hardDeny.ArmorRule is populated
}
```
