# InteractionInput

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `struct`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Represents an input for an interaction.

## Definition

```go
type InteractionInput struct {
    Name                      string    `json:"Name"`
    Label                     *string   `json:"Label"`
    Description               *string   `json:"Description"`
    EnableDescriptionMarkdown *bool     `json:"EnableDescriptionMarkdown"`
    InputType                 InputType `json:"InputType"`
    Required                  *bool     `json:"Required"`
    Options                   []any     `json:"Options"`
    Value                     *string   `json:"Value"`
    Placeholder               *string   `json:"Placeholder"`
    AllowCustomChoice         *bool     `json:"AllowCustomChoice"`
    Disabled                  bool      `json:"Disabled"`
    MaxLength                 *float64  `json:"MaxLength"`
    AllowMultipleFiles        *bool     `json:"AllowMultipleFiles"`
    FileFilter                *string   `json:"FileFilter"`
    MaxFileSize               *float64  `json:"MaxFileSize"`
}
```

## Fields

- `Name`: `string` -- Gets or sets the name for the input. Used for accessing inputs by name from a keyed collection.
- `Label`: `*string` `optional` -- Gets or sets the label for the input. If not specified, the name will be used as the label.
- `Description`: `*string` `optional` -- Gets or sets the description for the input.
- `EnableDescriptionMarkdown`: `*bool` `optional` -- Gets or sets a value indicating whether the description should be rendered as Markdown. Setting this to `true` allows a description to contain Markdown elements such as links, text decoration and lists.
- `InputType`: [`InputType`](/reference/api/go/aspire.hosting/inputtype.md) -- Gets or sets the type of the input.
- `Required`: `*bool` `optional` -- Gets or sets a value indicating whether the input is required.
- `Options`: `[]any` -- Gets or sets the options for the input. Only used by `Choice` inputs.
- `Value`: `*string` -- Gets or sets the value of the input.
- `Placeholder`: `*string` `optional` -- Gets the placeholder text for the input.
- `AllowCustomChoice`: `*bool` `optional` -- Gets a value indicating whether a custom choice is allowed. Only used by `Choice` inputs.
- `Disabled`: `bool` -- Gets or sets a value indicating whether the input is disabled.
- `MaxLength`: `*float64` `optional` -- gets or sets the maximum length for text inputs.
- `AllowMultipleFiles`: `*bool` `optional` -- Gets or sets a value indicating whether multiple files can be selected. Only used by `File` inputs.
- `FileFilter`: `*string` `optional` -- Gets or sets the file type filter for `File` inputs. Uses the same format as the HTML `accept` attribute, e.g. `".pem,.pfx,.crt"` or `"image/*"`. When set, the file picker restricts selectable files. The CLI validates only dot-prefixed extension filters and does not validate MIME type patterns such as `"image/*"`.
- `MaxFileSize`: `*float64` `optional` -- Gets or sets the maximum file size in bytes for `File` inputs. If not specified, the server applies the configured upload limit (default 100 MB). When specified, the value is capped at the server-side upload limit.
