aws iam put-group-policy
Adds or updates an inline policy document that is embedded in the specified IAM group. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--group-nameThe name of the group to associate the policy with.--policy-documentThe policy document.--policy-nameThe name of the policy document.