Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Amazonka.SSM.PutInventory
Description
Bulk update custom inventory items on one more instance. The request adds an inventory item, if it doesn't already exist, or updates an inventory item, if it does exist.
Synopsis
- data PutInventory = PutInventory' {}
- newPutInventory :: Text -> NonEmpty InventoryItem -> PutInventory
- putInventory_instanceId :: Lens' PutInventory Text
- putInventory_items :: Lens' PutInventory (NonEmpty InventoryItem)
- data PutInventoryResponse = PutInventoryResponse' {
- message :: Maybe Text
- httpStatus :: Int
- newPutInventoryResponse :: Int -> PutInventoryResponse
- putInventoryResponse_message :: Lens' PutInventoryResponse (Maybe Text)
- putInventoryResponse_httpStatus :: Lens' PutInventoryResponse Int
Creating a Request
data PutInventory Source #
See: newPutInventory
smart constructor.
Constructors
PutInventory' | |
Fields
|
Instances
Arguments
:: Text | |
-> NonEmpty InventoryItem | |
-> PutInventory |
Create a value of PutInventory
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:instanceId:PutInventory'
, putInventory_instanceId
- An instance ID where you want to add or update inventory items.
$sel:items:PutInventory'
, putInventory_items
- The inventory items that you want to add or update on instances.
Request Lenses
putInventory_instanceId :: Lens' PutInventory Text Source #
An instance ID where you want to add or update inventory items.
putInventory_items :: Lens' PutInventory (NonEmpty InventoryItem) Source #
The inventory items that you want to add or update on instances.
Destructuring the Response
data PutInventoryResponse Source #
See: newPutInventoryResponse
smart constructor.
Constructors
PutInventoryResponse' | |
Fields
|
Instances
newPutInventoryResponse Source #
Arguments
:: Int | |
-> PutInventoryResponse |
Create a value of PutInventoryResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:message:PutInventoryResponse'
, putInventoryResponse_message
- Information about the request.
$sel:httpStatus:PutInventoryResponse'
, putInventoryResponse_httpStatus
- The response's http status code.
Response Lenses
putInventoryResponse_message :: Lens' PutInventoryResponse (Maybe Text) Source #
Information about the request.
putInventoryResponse_httpStatus :: Lens' PutInventoryResponse Int Source #
The response's http status code.