> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# v1.StringParameterConstraints

- Package: [@gooddata/sdk-code-schemas](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/index.md)
- Kind: interface
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-code-schemas/src/v1/metadata.ts

Optional restrictions the parameter value must satisfy. Length bounds and 'allowedValues' are mutually exclusive.

**Signature:**

```typescript
export interface StringParameterConstraints 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [allowedValues?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.stringparameterconstraints/index.md#v1stringparameterconstraintsallowedvalues) |  | [[ParameterAllowedValue](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.parameterallowedvalue/index.md), ...[ParameterAllowedValue](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.parameterallowedvalue/index.md)[]] | _(Optional)_ When present, the parameter value must equal one of the listed values. |
| [maxLength?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.stringparameterconstraints/index.md#v1stringparameterconstraintsmaxlength) |  | number | _(Optional)_ The longest accepted value length, inclusive. |
| [minLength?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.stringparameterconstraints/index.md#v1stringparameterconstraintsminlength) |  | number | _(Optional)_ The shortest accepted value length, inclusive. |

## Property details

### v1.StringParameterConstraints.allowedValues

When present, the parameter value must equal one of the listed values.

**Signature:**

```typescript
allowedValues?: [ParameterAllowedValue, ...ParameterAllowedValue[]];
```

### v1.StringParameterConstraints.maxLength

The longest accepted value length, inclusive.

**Signature:**

```typescript
maxLength?: number;
```

### v1.StringParameterConstraints.minLength

The shortest accepted value length, inclusive.

**Signature:**

```typescript
minLength?: number;
```
