def ssm_describe_association(name=None, kwargs=None, instance_id=None, call=None):
 if (call != 'action'):
  raise SaltCloudSystemExit('The ssm_describe_association action must be called with -a or --action.')
 if (not kwargs):
  kwargs = {}
 if ('instance_id' in kwargs):
  instance_id = kwargs['instance_id']
 if (name and (not instance_id)):
  instance_id = _get_node(name)['instanceId']
 if ((not name) and (not instance_id)):
  log.error('Either a name or an instance_id is required.')
  return False
 if ('ssm_document' not in kwargs):
  log.error('A ssm_document is required.')
  return False
 params = {'Action': 'DescribeAssociation', 'InstanceId': instance_id, 'Name': kwargs['ssm_document']}
 result = aws.query(params, return_root=True, location=get_location(), provider=get_provider(), product='ssm', opts=__opts__, sigver='4')
 log.info(result)
 return result

def ssm_describe_association ( name = None , kwargs = None , instance_id = None , call = None ) : if ( call != 'action' ) : raise SaltCloudSystemExit ( 'The ssm_describe_association action must be called with -a or --action.' ) if ( not kwargs ) : kwargs = { } if ( 'instance_id' in kwargs ) : instance_id = kwargs [ 'instance_id' ] if ( name and ( not instance_id ) ) : instance_id = _get_node ( name ) [ 'instanceId' ] if ( ( not name ) and ( not instance_id ) ) : log . error ( 'Either a name or an instance_id is required.' ) return False if ( 'ssm_document' not in kwargs ) : log . error ( 'A ssm_document is required.' ) return False params = { 'Action' : 'DescribeAssociation' , 'InstanceId' : instance_id , 'Name' : kwargs [ 'ssm_document' ] } result = aws . query ( params , return_root = True , location = get_location ( ) , provider = get_provider ( ) , product = 'ssm' , opts = __opts__ , sigver = '4' ) log . info ( result ) return result
describes the associations for the specified ssm document or instance .