aws ec2 replace-image-criteria-in-allowed-images-settings
Sets or replaces the criteria for Allowed AMIs. AWS CLI reference
2 options 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.--image-criteriaThe list of criteria that are evaluated to determine whether AMIs are discoverable and usable in the account in the specified Amazon Web Services Region.