Hello @NyiNyiZin03487,
yes it should be possible in the outbound direction.
Using modular QoS you define a policy-map
policy-map SHAPE-20MBPS
class class-default
shape average 20000000
interface type x/y.z
service-policy out SHAPE-20MBPS
More complex configuration are possible the policy-map can invoke a child map to manage the virtual 20 Mbps pipe for different type of traffic
Hope to help
Giuseppe