class
Amazonite::Ssm::InventoryFilter
- Amazonite::Ssm::InventoryFilter
- Reference
- Object
Overview
One or more filters. Use a filter to return a more specific list of results.
Example formats for the aws ssm get-inventory command:
--filters Key=AWS:InstanceInformation.AgentType,Values=amazon-ssm-agent,Type=Equal
--filters Key=AWS:InstanceInformation.AgentVersion,Values=3.3.2299.0,Type=Equal
--filters Key=AWS:InstanceInformation.ComputerName,Values=ip-192.0.2.0.us-east-2.compute.internal,Type=Equal
--filters Key=AWS:InstanceInformation.InstanceId,Values=i-0a4cd6ceffEXAMPLE,i-1a2b3c4d5e6EXAMPLE,Type=Equal
--filters Key=AWS:InstanceInformation.InstanceStatus,Values=Active,Type=Equal
--filters Key=AWS:InstanceInformation.IpAddress,Values=198.51.100.0,Type=Equal
--filters Key=AWS:InstanceInformation.PlatformName,Values="Amazon Linux",Type=Equal
--filters Key=AWS:InstanceInformation.PlatformType,Values=Linux,Type=Equal
--filters Key=AWS:InstanceInformation.PlatformVersion,Values=2023,Type=BeginWith
--filters Key=AWS:InstanceInformation.ResourceType,Values=EC2Instance,Type=Equal
Included Modules
- JSON::Serializable
Defined in:
ssm/inventory_filter.crConstructors
- .new(key : String, values : Array(String), type : InventoryQueryOperatorType | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#key : String
The name of the filter key.
-
#key=(key : String)
The name of the filter key.
-
#type : InventoryQueryOperatorType | Nil
The type of filter.
-
#type=(type : InventoryQueryOperatorType | Nil)
The type of filter.
- #validate! : Nil
-
#values : Array(String)
Inventory filter values.
-
#values=(values : Array(String))
Inventory filter values.
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The type of filter.
The Exists filter must be used with aggregators. For more information, see Aggregating
inventory
data in
the Amazon Web Services Systems Manager User Guide.
The type of filter.
The Exists filter must be used with aggregators. For more information, see Aggregating
inventory
data in
the Amazon Web Services Systems Manager User Guide.