Table of Contents
null
values are not included in the final list (unlike multiselect)
id[?…]
(filters):
$ aws ec2 describe-images --owners self --query 'Images[?Description != None && contains(Description,`ed`)].[ImageId,Description]' --output table
arguments are evaluated before calling a function
sort_by(Contents, &Date)
Date would return null (it's not in the outer hash) &Date will be evaluated later
{ "Contents": [ { "Date": "...", ... }, { "Date": "...", ... } ] }
$ aws kms list-aliases --query 'Aliases[*].AliasName' # list of scalars $ aws kms list-aliases --query 'Aliases[*].[AliasName]' --output text # list of lists => newlines $ aws kms list-aliases --query 'Aliases[*].{Alias: AliasName}' --output text # list of objects => newlines