code: def get_endpoint(name, tags=None, region=None, key=None, keyid=None,
                   profile=None):
      '''
      Return the endpoint of an RDS instance.
  
      CLI example::
  
          salt myminion boto_rds.get_endpoint myrds
  
      '''
      endpoint = False
      res = __salt__['boto_rds.exists'](name, tags, region, key, keyid,
                                        profile)
      if res.get('exists'):
          try:
              conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
              if conn:
                  rds = conn.describe_db_instances(DBInstanceIdentifier=name)
  
                  if rds and 'Endpoint' in rds['DBInstances'][0]:
                      endpoint = rds['DBInstances'][0]['Endpoint']['Address']
                      return endpoint
  
          except ClientError as e:
              return {'error': __utils__['boto3.get_error'](e)}
  
      return endpoinf get_endpoint(name, tags=None, region=None, key=None, keyid=None,
                   profile=None):
      '''
      Return the endpoint of an RDS instance.
  
      CLI example::
  
          salt myminion boto_rds.get_endpoint myrds
  
      '''
      endpoint = False
      res = __salt__['boto_rds.exists'](name, tags, region, key, keyid,
                                        profile)
      if res.get('exists'):
          try:
              conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
              if conn:
                  rds = conn.describe_db_instances(DBInstanceIdentifier=name)
  
                  if rds and 'Endpoint' in rds['DBInstances'][0]:
                      endpoint = rds['DBInstances'][0]['Endpoint']['Address']
                      return endpoint
  
          except ClientError as e:
              return {'error': __utils__['boto3.get_error'](e)}
  
      return endpoint
docs: Return the endpoint of an RDS instance.
  
      CLI example::
  
          salt myminion boto_rds.get_endpoint myrds