1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
1
The --filter(s)
parameter uses server-side filtering, returning only the data with matching results.
In contrast, the --query
parameter utilises client-side filtering, returning all data to the client prior to matching.
For more info, take a look at https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html
con risposta 2 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
Thanks, it helps. I'm pasting a sample code from boto3 docs,
instances = ec2.instances.filter( Filters=[{'Name': 'instance-state-name', 'Values': ['running']}])
Can I assume that this 'filter' would work the same way, since both use the same backend API?
Yes, that would be using server-side filtering