def describe_api_deployment(restApiId, deploymentId, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  deployment = conn.get_deployment(restApiId=restApiId, deploymentId=deploymentId)
  return {'deployment': _convert_datetime_str(deployment)}
 except ClientError as e:
  return {'error': salt.utils.boto3.get_error(e)}

def describe_api_deployment ( restApiId , deploymentId , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) deployment = conn . get_deployment ( restApiId = restApiId , deploymentId = deploymentId ) return { 'deployment' : _convert_datetime_str ( deployment ) } except ClientError as e : return { 'error' : salt . utils . boto3 . get_error ( e ) }
get api deployment for a given restapiid and deploymentid .