title: python boto3 parameter validation error
body: <p>Here I have written a python program to start an instance that matches all the conditions. But The following error is displayed while executing the program.<code>botocore.exceptions.ParamValidationError: Parameter validation failed:
  Invalid type for parameter InstanceIds, value: i-012345678, type: &lt;type 'str'&gt;, valid types: &lt;type 'list'&gt;, &lt;type 'tuple'&gt;</code> .Below is my code: </p>
  
  <pre><code>import boto3
  ec2=boto3.client('ec2',region_name='ap-south-1')
  a=ec2.describe_instances()
  for i in a['Reservations']:
      for x in i['Instances']:
         if x['InstanceId']=="i-12345678" and x['State'['Name']=='stopped':
              n = x['InstanceId']
              ec2.start_instances(InstanceIds=n)`
  </code></pre>