def activate_api_deployment(restApiId, stageName, deploymentId, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  response = conn.update_stage(restApiId=restApiId, stageName=stageName, patchOperations=[{'op': 'replace', 'path': '/deploymentId', 'value': deploymentId}])
  return {'set': True, 'response': _convert_datetime_str(response)}
 except ClientError as e:
  return {'set': False, 'error': salt.utils.boto3.get_error(e)}

def activate_api_deployment ( restApiId , stageName , deploymentId , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) response = conn . update_stage ( restApiId = restApiId , stageName = stageName , patchOperations = [ { 'op' : 'replace' , 'path' : '/deploymentId' , 'value' : deploymentId } ] ) return { 'set' : True , 'response' : _convert_datetime_str ( response ) } except ClientError as e : return { 'set' : False , 'error' : salt . utils . boto3 . get_error ( e ) }
activates previously deployed deployment for a given stage cli example: .