Struct aws_sdk_ssm::types::InventoryItem
source · #[non_exhaustive]pub struct InventoryItem {
pub type_name: String,
pub schema_version: String,
pub capture_time: String,
pub content_hash: Option<String>,
pub content: Option<Vec<HashMap<String, String>>>,
pub context: Option<HashMap<String, String>>,
}
Expand description
Information collected from managed nodes based on your inventory policy document
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type_name: String
The name of the inventory type. Default inventory item type names start with AWS
. Custom inventory type names will start with Custom. Default inventory item types include the following: AWS:AWSComponent
, AWS:Application
, AWS:InstanceInformation
, AWS:Network
, and AWS:WindowsUpdate
.
schema_version: String
The schema version for the inventory item.
capture_time: String
The time the inventory information was collected.
content_hash: Option<String>
MD5 hash of the inventory item type contents. The content hash is used to determine whether to update inventory information. The PutInventory API doesn't update the inventory item type contents if the MD5 hash hasn't changed since last update.
content: Option<Vec<HashMap<String, String>>>
The inventory data of the inventory type.
context: Option<HashMap<String, String>>
A map of associated properties for a specified inventory type. For example, with this attribute, you can specify the ExecutionId
, ExecutionType
, ComplianceType
properties of the AWS:ComplianceItem
type.
Implementations§
source§impl InventoryItem
impl InventoryItem
sourcepub fn type_name(&self) -> &str
pub fn type_name(&self) -> &str
The name of the inventory type. Default inventory item type names start with AWS
. Custom inventory type names will start with Custom. Default inventory item types include the following: AWS:AWSComponent
, AWS:Application
, AWS:InstanceInformation
, AWS:Network
, and AWS:WindowsUpdate
.
sourcepub fn schema_version(&self) -> &str
pub fn schema_version(&self) -> &str
The schema version for the inventory item.
sourcepub fn capture_time(&self) -> &str
pub fn capture_time(&self) -> &str
The time the inventory information was collected.
sourcepub fn content_hash(&self) -> Option<&str>
pub fn content_hash(&self) -> Option<&str>
MD5 hash of the inventory item type contents. The content hash is used to determine whether to update inventory information. The PutInventory API doesn't update the inventory item type contents if the MD5 hash hasn't changed since last update.
source§impl InventoryItem
impl InventoryItem
sourcepub fn builder() -> InventoryItemBuilder
pub fn builder() -> InventoryItemBuilder
Creates a new builder-style object to manufacture InventoryItem
.
Trait Implementations§
source§impl Clone for InventoryItem
impl Clone for InventoryItem
source§fn clone(&self) -> InventoryItem
fn clone(&self) -> InventoryItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InventoryItem
impl Debug for InventoryItem
source§impl PartialEq for InventoryItem
impl PartialEq for InventoryItem
source§fn eq(&self, other: &InventoryItem) -> bool
fn eq(&self, other: &InventoryItem) -> bool
self
and other
values to be equal, and is used
by ==
.