code: func newSdNamespaceFilter(namespaceTypeConfig string) *sd.NamespaceFilter {
  	switch namespaceTypeConfig {
  	case sdNamespaceTypePublic:
  		return &sd.NamespaceFilter{
  			Name:   aws.String(sd.NamespaceFilterNameType),
  			Values: []*string{aws.String(sd.NamespaceTypeDnsPublic)},
  		}
  	case sdNamespaceTypePrivate:
  		return &sd.NamespaceFilter{
  			Name:   aws.String(sd.NamespaceFilterNameType),
  			Values: []*string{aws.String(sd.NamespaceTypeDnsPrivate)},
  		}
  	default:
  		return nil
  	}
  }
docs: // newSdNamespaceFilter initialized AWS SD Namespace Filter based on given string config