#[non_exhaustive]pub struct DeleteInventoryInput {
pub type_name: Option<String>,
pub schema_delete_option: Option<InventorySchemaDeleteOption>,
pub dry_run: Option<bool>,
pub client_token: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type_name: Option<String>
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: Option<InventorySchemaDeleteOption>
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, you must call the PutInventory
operation 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: Option<bool>
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: Option<String>
User-provided idempotency token.
Implementations§
source§impl DeleteInventoryInput
impl DeleteInventoryInput
sourcepub fn type_name(&self) -> Option<&str>
pub fn type_name(&self) -> Option<&str>
The name of the custom inventory type for which you want to delete either all previously collected data or the inventory type itself.
sourcepub fn schema_delete_option(&self) -> Option<&InventorySchemaDeleteOption>
pub fn schema_delete_option(&self) -> Option<&InventorySchemaDeleteOption>
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, you must call the PutInventory
operation 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.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
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.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
User-provided idempotency token.
source§impl DeleteInventoryInput
impl DeleteInventoryInput
sourcepub fn builder() -> DeleteInventoryInputBuilder
pub fn builder() -> DeleteInventoryInputBuilder
Creates a new builder-style object to manufacture DeleteInventoryInput
.
Trait Implementations§
source§impl Clone for DeleteInventoryInput
impl Clone for DeleteInventoryInput
source§fn clone(&self) -> DeleteInventoryInput
fn clone(&self) -> DeleteInventoryInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeleteInventoryInput
impl Debug for DeleteInventoryInput
source§impl PartialEq for DeleteInventoryInput
impl PartialEq for DeleteInventoryInput
source§fn eq(&self, other: &DeleteInventoryInput) -> bool
fn eq(&self, other: &DeleteInventoryInput) -> bool
self
and other
values to be equal, and is used
by ==
.