simulate-custom-policy — AWS CLI 2.32.24 Command Reference
Use the AWS CLI 2.32.24 to run the iam simulate-custom-policy command.