There are more AWS SDK examples available in the AWS Doc SDK Examples
Allows the AWS Compute Optimizer Automation feature to apply recommended actions
The following code example shows how to This permission-based policy allows the AWS Compute Optimizer Automation feature to apply recommended actions