delete_inventory
async
¶
delete_inventory(
type_name: InventoryItemTypeName,
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
schema_delete_option: Optional[InventorySchemaDeleteOption] = None,
dry_run: Optional[DryRun] = None,
client_token: Optional[UUID] = None,
) -> DeleteInventoryResult
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.
Parameters:
-
type_name(InventoryItemTypeName) –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(Optional[InventorySchemaDeleteOption], default:None) –Use the
SchemaDeleteOptionto 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, you must call the
PutInventoryoperation for a version greater than the disabled version.DeleteSchema: This option deletes the specified custom type from the Inventory service. You can recreate the schema later, if you want.
-
dry_run(Optional[DryRun], default:None) –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
DryRunoption. -
client_token(Optional[UUID], default:None) –User-provided idempotency token.
Raises:
-
InternalServerError–An error occurred on the server side.
-
InvalidDeleteInventoryParametersException–One or more of the parameters specified for the delete operation isn't valid. Verify all parameters and try again.
-
InvalidInventoryRequestException–The request isn't valid.
-
InvalidOptionException–The delete inventory option specified isn't valid. Verify the option and try again.
-
InvalidTypeNameException–The parameter type name isn't valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/async_ssm.py
2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 | |