def create_api_stage(restApiId, stageName, deploymentId, description='', cacheClusterEnabled=False, cacheClusterSize='0.5', variables=None, region=None, key=None, keyid=None, profile=None):
 try:
  variables = (dict() if (variables is None) else variables)
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  stage = conn.create_stage(restApiId=restApiId, stageName=stageName, deploymentId=deploymentId, description=description, cacheClusterEnabled=cacheClusterEnabled, cacheClusterSize=cacheClusterSize, variables=variables)
  return {'created': True, 'stage': _convert_datetime_str(stage)}
 except ClientError as e:
  return {'created': False, 'error': salt.utils.boto3.get_error(e)}

def create_api_stage ( restApiId , stageName , deploymentId , description = '' , cacheClusterEnabled = False , cacheClusterSize = '0.5' , variables = None , region = None , key = None , keyid = None , profile = None ) : try : variables = ( dict ( ) if ( variables is None ) else variables ) conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) stage = conn . create_stage ( restApiId = restApiId , stageName = stageName , deploymentId = deploymentId , description = description , cacheClusterEnabled = cacheClusterEnabled , cacheClusterSize = cacheClusterSize , variables = variables ) return { 'created' : True , 'stage' : _convert_datetime_str ( stage ) } except ClientError as e : return { 'created' : False , 'error' : salt . utils . boto3 . get_error ( e ) }
creates a new api stage for a given restapiid and deploymentid .