<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) &gt; [validateInput](./ibm-cloud-sdk-core.validateinput.md)

## validateInput() function

Validates "options".

**Signature:**

```typescript
export declare function validateInput(options: any, requiredOptions: string[]): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

options


</td><td>

any


</td><td>

a configuration options object


</td></tr>
<tr><td>

requiredOptions


</td><td>

string\[\]


</td><td>

the list of properties that must be present in "options"


</td></tr>
</tbody></table>
**Returns:**

void

## Exceptions

Error: "options" failed validation

