title: Python AWS Boto URL Connection Error
body: <p>I'm trying to create an AWS machine learning model in Python BOTO:</p>
  
  <pre><code>import boto3
  from boto3.session import Session
  import uuid
  
  session = Session(aws_access_key_id='...', aws_secret_access_key='...', region_name='us-west-1')
  client = session.client('machinelearning')
  
  response = client.create_ml_model(
      MLModelId=str(uuid.uuid4()),
      MLModelName='banking',
      MLModelType='BINARY',
      TrainingDataSourceId='...',
  )
  </code></pre>
  
  <p>However, I'm getting the following error:</p>
  
  <p>botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "<a href="https://machinelearning.us-west-1.amazonaws.com/" rel="nofollow noreferrer">https://machinelearning.us-west-1.amazonaws.com/</a>"</p>
  
  <p>I don't believe the region_name is the problem. Could this be a permission problem?</p>