https://docs.aws.amazon.com/opensearch-service/latest/developerguide/auto-tune.html document has wrong cli command for update domain config.
aws opensearch update-domain-config \ --domain-name my-domain \ --auto-tune-options DesiredState=ENABLED,UseOffPeakWindow=true,MaintenanceSchedules=null
It throws,
Parameter validation failed:
Invalid type for parameter AutoTuneOptions.MaintenanceSchedules[0], value: null, type: <class 'str'>, valid types: <class 'dict'>
It has to be updated to,
aws opensearch update-domain-config --domain-name my-domain --auto-tune-options DesiredState=ENABLED,UseOffPeakWindow=true,MaintenanceSchedules={}