put_inventory
async
¶
put_inventory(
instance_id: InstanceId,
items: InventoryItemList,
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
) -> PutInventoryResult
Bulk update custom inventory items on one or more managed nodes. The request adds an inventory item, if it doesn't already exist, or updates an inventory item, if it does exist.
Parameters:
-
instance_id(InstanceId) –An managed node ID where you want to add or update inventory items.
-
items(InventoryItemList) –The inventory items that you want to add or update on managed nodes.
Raises:
-
CustomSchemaCountLimitExceededException–You have exceeded the limit for custom schemas. Delete one or more custom schemas and try again.
-
InternalServerError–An error occurred on the server side.
-
InvalidInstanceId–The following problems can cause this exception:
-
You don't have permission to access the managed node.
-
Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
-
SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
-
The managed node isn't in a valid state. Valid states are:
Running,Pending,Stopped, andStopping. Invalid states are:Shutting-downandTerminated.
-
-
InvalidInventoryItemContextException–You specified invalid keys or values in the
Contextattribute forInventoryItem. Verify the keys and values, and try again. -
InvalidItemContentException–One or more content items isn't valid.
-
InvalidTypeNameException–The parameter type name isn't valid.
-
ItemContentMismatchException–The inventory item has invalid content.
-
ItemSizeLimitExceededException–The inventory item size has exceeded the size limit.
-
SubTypeCountLimitExceededException–The sub-type count exceeded the limit for the inventory type.
-
TotalSizeLimitExceededException–The size of inventory data has exceeded the total size limit for the resource.
-
UnsupportedInventoryItemContextException–The
Contextattribute that you specified for theInventoryItemisn't allowed for this inventory type. You can only use theContextattribute with inventory types likeAWS:ComplianceItem. -
UnsupportedInventorySchemaVersionException–Inventory item type schema version has to match supported versions in the service. Check output of GetInventorySchema to see the available schema version for each type.
-
UnknownServiceError–The service returned an error code this client does not model.