aws ec2 get-allowed-images-settings
Gets the current state of the Allowed AMIs setting and the list of Allowed AMIs criteria at the account level in the specified Region. AWS CLI reference
1 option Its page in the AWS CLI reference
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.