def show_term_protect(name=None, instance_id=None, call=None, quiet=False):
 if (call != 'action'):
  raise SaltCloudSystemExit('The show_term_protect action must be called with -a or --action.')
 if (not instance_id):
  instance_id = _get_node(name)['instanceId']
 params = {'Action': 'DescribeInstanceAttribute', 'InstanceId': instance_id, 'Attribute': 'disableApiTermination'}
 result = aws.query(params, location=get_location(), provider=get_provider(), return_root=True, opts=__opts__, sigver='4')
 disable_protect = False
 for item in result:
  if ('value' in item):
   disable_protect = item['value']
   break
 log.log((logging.DEBUG if (quiet is True) else logging.INFO), 'Termination Protection is {0} for {1}'.format((((disable_protect == 'true') and 'enabled') or 'disabled'), name))
 return disable_protect

def show_term_protect ( name = None , instance_id = None , call = None , quiet = False ) : if ( call != 'action' ) : raise SaltCloudSystemExit ( 'The show_term_protect action must be called with -a or --action.' ) if ( not instance_id ) : instance_id = _get_node ( name ) [ 'instanceId' ] params = { 'Action' : 'DescribeInstanceAttribute' , 'InstanceId' : instance_id , 'Attribute' : 'disableApiTermination' } result = aws . query ( params , location = get_location ( ) , provider = get_provider ( ) , return_root = True , opts = __opts__ , sigver = '4' ) disable_protect = False for item in result : if ( 'value' in item ) : disable_protect = item [ 'value' ] break log . log ( ( logging . DEBUG if ( quiet is True ) else logging . INFO ) , 'Termination Protection is {0} for {1}' . format ( ( ( ( disable_protect == 'true' ) and 'enabled' ) or 'disabled' ) , name ) ) return disable_protect
show the details from ec2 concerning an ami .