func NewUserMembershipV3(ctx *pulumi.Context,
	name string, args *UserMembershipV3Args, opts ...pulumi.ResourceOption) (*UserMembershipV3, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.GroupId == nil {
		return nil, errors.New("invalid value for required argument 'GroupId'")
	}
	if args.UserId == nil {
		return nil, errors.New("invalid value for required argument 'UserId'")
	}
	var resource UserMembershipV3
	err := ctx.RegisterResource("openstack:identity/userMembershipV3:UserMembershipV3", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewUserMembershipV3 registers a new resource with the given unique name, arguments, and options.
NewUserMembershipV3 registers a new resource with the given unique name, arguments, and options.
// NewUserMembershipV3 registers a new resource with the given unique name arguments and options .
func NewUserMembershipV3(ctx *pulumi.Context,
	name string, args *UserMembershipV3Args, opts ...pulumi.ResourceOption) (*UserMembershipV3, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.GroupId == nil {
		return nil, errors.New("invalid value for required argument 'GroupId'")
	}
	if args.UserId == nil {
		return nil, errors.New("invalid value for required argument 'UserId'")
	}
	var resource UserMembershipV3
	err := ctx.RegisterResource("openstack:identity/userMembershipV3:UserMembershipV3", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewUserMembershipV3 ( ctx * pulumi . Context , name string , args * UserMembershipV3Args , opts ... pulumi . ResourceOption ) ( * UserMembershipV3 , error ) { if args == nil { return nil , errors . New ( " " ) } if args . GroupId == nil { return nil , errors . New ( " " ) } if args . UserId == nil { return nil , errors . New ( " " ) } var resource UserMembershipV3 err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewUserMembershipV3 registers a new resource with the given unique name, arguments, and options.
NewUserMembershipV3 registers a new resource with the given unique name arguments and options .