SSMClient.delete_inventory
rboto-ssm==0.4.0 · Service index · Types
Model summary (excerpt): Delete a custom inventory type or the data associated with a custom Inventory type. Deleting a custom inventory type is also referred to as deleting a custom inventory schema.
Install and imports
from rboto import SSMClient
from rboto_ssm.types import (
DeleteInventoryOutput,
InventorySchemaDeleteOption,
)
Signature
async def delete_inventory(
*,
type_name: str,
schema_delete_option: InventorySchemaDeleteOption | None = None,
dry_run: bool | None = None,
client_token: str | None = None,
) -> DeleteInventoryOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
type_name |
Yes | The name of the custom inventory type for which you want to delete either all previously collected data or the inventory type itself. |
schema_delete_option |
No | Use the SchemaDeleteOption to delete a custom inventory type (schema). If you don't choose this option, the system only deletes existing inventory data associated with the custom inventory type. Choose one of the following options: DisableSchema: If you choose this option, the system ignores all inventory data for the specified version, and any earlier versions. To enable this schema again,... |
dry_run |
No | Use this option to view a summary of the deletion request without deleting any data or the data type. This option is useful when you only want to understand what will be deleted. Once you validate that the data to be deleted is what you intend to delete, you can run the same command without specifying the DryRun option. |
client_token |
No | User-provided idempotency token. |
Output
DeleteInventoryOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
deletion_id |
str | None |
Always present | — |
type_name |
str | None |
Always present | — |
deletion_summary |
InventoryDeletionSummaryOutput | None |
Always present | InventoryDeletionSummaryOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
DeleteInventoryOutput, InventorySchemaDeleteOption
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_ssm.exceptions:
InternalServerError, InvalidDeleteInventoryParametersError, InvalidInventoryRequestError, InvalidOptionError, InvalidTypeNameError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.