code: func NewRole(name string, spec RoleSpecV3) (Role, error) {
  	role := RoleV3{
  		Kind:    KindRole,
  		Version: V3,
  		Metadata: Metadata{
  			Name:      name,
  			Namespace: defaults.Namespace,
  		},
  		Spec: spec,
  	}
  	if err := role.CheckAndSetDefaults(); err != nil {
  		return nil, trace.Wrap(err)
  	}
  
  	return &role, nil
  }
docs: // NewRole constructs new standard role