What is claimed is:1. A first user equipment (UE) for wireless communication, comprising:a memory; andone or more processors, coupled to the memory, configured to:provide, to a physical layer from a higher layer, an indication of a set of sidelink resources or slots that are for an active time of a discontinuous reception (DRX) cycle of a second UE and that are not for an inactive time of the DRX cycle of the second UE; andtransmit, to the second UE, a sidelink communication that is based at least in part on the set of sidelink resources or slots.2. The first UE of claim 1, wherein the sidelink communication includes a data communication that is scheduled for a sidelink resource within the set of sidelink resources or slots.3. The first UE of claim 1, wherein the sidelink communication includes sidelink control information that indicates a sidelink resource reservation within the set of sidelink resources or slots.4. The first UE of claim 1, wherein the one or more processors are configured to use sidelink resources in the set of sidelink resources or slots as an initial set of candidate sidelink resources for sidelink resource selection.5. The first UE of claim 1, wherein the one or more processors are configured to use, for sidelink resource selection, sidelink resources that are both within the set of sidelink resources or slots and within a resource selection window as an initial set of candidate sidelink resources.6. The first UE of claim 1, wherein the indication of the set of sidelink resources or slots identifies one or more sidelink resources.7. The first UE of claim 1, wherein the indication of the set of sidelink resources or slots indicates one or more ranges of slots.8. The first UE of claim 1, wherein the indication of the set of sidelink resources or slots indicates one or more ranges of time points.9. The first UE of claim 1, wherein the one or more processors, to provide the set of sidelink resources or slots, are configured to provide the set of sidelink resources or slots per priority of a transmission.10. The first UE of claim 1, wherein the set of sidelink resources or slots applies to a subset of transmissions.11. The first UE of claim 10, wherein the subset of transmissions is configured or preconfigured per resource pool or indicated via a radio resource control message.12. A first user equipment (UE) for wireless communication, comprising:a memory; andone or more processors, coupled to the memory, configured to:generate, at a physical layer, a set of candidate sidelink resources;provide the set of candidate sidelink resources from the physical layer to a higher layer; andselect, at the higher layer, sidelink resources for one or more transmissions that are within an active time of a discontinuous reception (DRX) cycle of a second UE and that are not within an inactive time of the DRX cycle of the second UE.13. The first UE of claim 12, wherein the one or more processors are configured to transmit, to the second UE, a sidelink communication that is based at least in part on the set of sidelink resources.14. The first UE of claim 13, wherein the sidelink communication includes a data communication that is scheduled for a sidelink resource within the set of sidelink resources.15. The first UE of claim 13, wherein the sidelink communication includes sidelink control information that indicates a sidelink resource reservation within the set of sidelink resources.16. The first UE of claim 12, wherein the set of sidelink resources applies to a subset of transmissions.17. The first UE of claim 16, wherein the subset of transmissions is configured or preconfigured per resource pool or indicated via a radio resource control message.18. The first UE of claim 12, wherein the one or more processors, to select the sidelink resources, are configured to select the sidelink resources based at least in part on a priority of a transmission.19. The first UE of claim 12, wherein the one or more transmissions includes an initial transmission.20. A method of wireless communication performed by a first user equipment (UE), comprising:providing, to a physical layer from a higher layer, an indication of a set of sidelink resources or slots that are for an active time of a discontinuous reception (DRX) cycle of a second UE and that are not for an inactive time of the DRX cycle of the second UE; andtransmitting, to the second UE, a sidelink communication that is based at least in part on the set of sidelink resources or slots.21. The method of claim 20, wherein the sidelink communication includes a data communication that is scheduled for a sidelink resource within the set of sidelink resources or slots.22. The method of claim 20, wherein the sidelink communication includes sidelink control information that indicates a sidelink resource reservation within the set of sidelink resources or slots.23. The method of claim 20, wherein the indication of the set of sidelink resources or slots identifies one or more sidelink resources.24. The method of claim 20, wherein the indication of the set of sidelink resources or slots indicates one or more ranges of slots.25. The method of claim 20, wherein the indication of the set of sidelink resources or slots indicates one or more ranges of time points.26. The method of claim 20, wherein the set of sidelink resources or slots applies to a subset of transmissions.27. A method of wireless communication performed by a first user equipment (UE), comprising:generating, at a physical layer, a set of candidate sidelink resources;providing the set of candidate sidelink resources from the physical layer to a higher layer; andselecting, at the higher layer, sidelink resources for one or more transmissions that are within an active time of a discontinuous reception (DRX) cycle of a second UE and that are not within an inactive time of the DRX cycle of the second UE.28. The method of claim 27, further comprising transmitting, to the second UE, a sidelink communication that is based at least in part on the set of sidelink resources.29. The method of claim 28, wherein the sidelink communication includes a data communication that is scheduled for a sidelink resource within the set of sidelink resources.30. The method of claim 28, wherein the sidelink communication includes sidelink control information that indicates a sidelink resource reservation within the set of sidelink resources.