I couldn't find a way how to disable video recording when using selenium.
Using CLI one can do so as mentioned in this comment:
aws devicefarm schedule-run \
    --project-arn YourProjectArn \
    --app-arn YourApplicationArn \
    --device-pool-arn YourDevicePoolArn \
    --name MyTestRun \
    --test '{"type": "CALABASH","testPackageArn":"YourTestPackageArn","parameters": {"video_recording": "false"}}'
But I'd like to do so using python & selenium. Sample code:
from boto3 import client
from selenium import webdriver
def main():
    device_farm_client = client("devicefarm", region_name='us-west-2')
    test_grid_url_response = device_farm_client.create_test_grid_url(
        expiresInSeconds=666,
        projectArn="arn:aws:devicefarm:us-west-2:..."
    )
    driver = webdriver.Remote(
        command_executor=test_grid_url_response['url'],
        desired_capabilities=webdriver.DesiredCapabilities.CHROME,
    )
    driver.get('https://api.ipify.org')
    print(f"Your IP is: {driver.find_element_by_tag_name('pre').text}")
    driver.quit()
if __name__ == '__main__':
    main()
How do I update the code to disable the video recording?