I came across the following command to create AWS SSH key-pair but failed to understand what "--query" parameter is doing here.
aws ec2 create-key-pair --key-name MyKeyPair --query 'KeyMaterial' --output text > MyKeyPair.pem
Can someone please explain me the significance of --query parameter?