'Deploys an application revision to the specified deployment
group.
:type application_name: string
:param application_name: The name of an existing AWS CodeDeploy
application within the AWS user account.
:type deployment_group_name: string
:param deployment_group_name: The deployment group\'s name.
:type revision: dict
:param revision: The type of revision to deploy, along with information
about the revision\'s location.
:type deployment_config_name: string
:param deployment_config_name: The name of an existing deployment
configuration within the AWS user account.
If not specified, the value configured in the deployment group will be
used as the default. If the deployment group does not have a
deployment configuration associated with it, then
CodeDeployDefault.OneAtATime will be used by default.
:type description: string
:param description: A comment about the deployment.
:type ignore_application_stop_failures: boolean
:param ignore_application_stop_failures: If set to true, then if the
deployment causes the ApplicationStop deployment lifecycle event to
fail to a specific instance, the deployment will not be considered
to have failed to that instance at that point and will continue on
to the BeforeInstall deployment lifecycle event.
If set to false or not specified, then if the deployment causes the
ApplicationStop deployment lifecycle event to fail to a specific
instance, the deployment will stop to that instance, and the
deployment to that instance will be considered to have failed.'

def create_deployment(self, application_name, deployment_group_name=None, revision=None, deployment_config_name=None, description=None, ignore_application_stop_failures=None):

    params = {'applicationName': application_name}
    if (deployment_group_name is not None):
        params['deploymentGroupName'] = deployment_group_name
    if (revision is not None):
        params['revision'] = revision
    if (deployment_config_name is not None):
        params['deploymentConfigName'] = deployment_config_name
    if (description is not None):
        params['description'] = description
    if (ignore_application_stop_failures is not None):
        params['ignoreApplicationStopFailures'] = ignore_application_stop_failures
    return self.make_request(action='CreateDeployment', body=json.dumps(params))
