aws ec2 enable-allowed-images-settings
Enables Allowed AMIs for your account in the specified Amazon Web Services Region. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--allowed-images-settings-stateSpecify enabled to apply the image criteria specified by the Allowed AMIs settings.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.