aws_sdk_ssm/client/
delete_inventory.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DeleteInventory`](crate::operation::delete_inventory::builders::DeleteInventoryFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`type_name(impl Into<String>)`](crate::operation::delete_inventory::builders::DeleteInventoryFluentBuilder::type_name) / [`set_type_name(Option<String>)`](crate::operation::delete_inventory::builders::DeleteInventoryFluentBuilder::set_type_name):<br>required: **true**<br><p>The name of the custom inventory type for which you want to delete either all previously collected data or the inventory type itself.</p><br>
7    ///   - [`schema_delete_option(InventorySchemaDeleteOption)`](crate::operation::delete_inventory::builders::DeleteInventoryFluentBuilder::schema_delete_option) / [`set_schema_delete_option(Option<InventorySchemaDeleteOption>)`](crate::operation::delete_inventory::builders::DeleteInventoryFluentBuilder::set_schema_delete_option):<br>required: **false**<br><p>Use the <code>SchemaDeleteOption</code> 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:</p> <p>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 <code>PutInventory</code> operation for a version greater than the disabled version.</p> <p>DeleteSchema: This option deletes the specified custom type from the Inventory service. You can recreate the schema later, if you want.</p><br>
8    ///   - [`dry_run(bool)`](crate::operation::delete_inventory::builders::DeleteInventoryFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::delete_inventory::builders::DeleteInventoryFluentBuilder::set_dry_run):<br>required: **false**<br><p>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 <code>DryRun</code> option.</p><br>
9    ///   - [`client_token(impl Into<String>)`](crate::operation::delete_inventory::builders::DeleteInventoryFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::delete_inventory::builders::DeleteInventoryFluentBuilder::set_client_token):<br>required: **false**<br><p>User-provided idempotency token.</p><br>
10    /// - On success, responds with [`DeleteInventoryOutput`](crate::operation::delete_inventory::DeleteInventoryOutput) with field(s):
11    ///   - [`deletion_id(Option<String>)`](crate::operation::delete_inventory::DeleteInventoryOutput::deletion_id): <p>Every <code>DeleteInventory</code> operation is assigned a unique ID. This option returns a unique ID. You can use this ID to query the status of a delete operation. This option is useful for ensuring that a delete operation has completed before you begin other operations.</p>
12    ///   - [`type_name(Option<String>)`](crate::operation::delete_inventory::DeleteInventoryOutput::type_name): <p>The name of the inventory data type specified in the request.</p>
13    ///   - [`deletion_summary(Option<InventoryDeletionSummary>)`](crate::operation::delete_inventory::DeleteInventoryOutput::deletion_summary): <p>A summary of the delete operation. For more information about this summary, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/inventory-custom.html#delete-custom-inventory-summary">Deleting custom inventory</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
14    /// - On failure, responds with [`SdkError<DeleteInventoryError>`](crate::operation::delete_inventory::DeleteInventoryError)
15    pub fn delete_inventory(&self) -> crate::operation::delete_inventory::builders::DeleteInventoryFluentBuilder {
16        crate::operation::delete_inventory::builders::DeleteInventoryFluentBuilder::new(self.handle.clone())
17    }
18}