How do I assign my Input Asset and Action Map to the new Player Input script?

How do I assign my already-created input asset and action map to my Player Input script on my player? I made this in the gui and created the C# script from it via the button in the gui.

This is about as far as I’ve been able to get:

        GameObject player = new GameObject();
        PlayerInput controls = player.AddComponent<PlayerInput>();
        controls.actions.AddActionMap(...?...) //This is just an assumption due to the name I see in the Player input script

I’m just not sure how to get a reference to my input asset (named Controls) or an action map in it (named PlayerControls). How do I achieve this?

I needed to move my input assets under Resources folder and use Load I guess:

        PlayerInput controls = tutorial.AddComponent<PlayerInput>();
        controls.actions = Resources.Load<InputActionAsset>("Inputs/Controls");