Sono disponibili altri esempi AWS SDK nel repository AWS Doc SDK
Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.
Utilizzare DeleteBucketInventoryConfiguration
con una CLI
Gli esempi di codice seguenti mostrano come utilizzare DeleteBucketInventoryConfiguration
.
- CLI
-
- AWS CLI
-
Per eliminare la configurazione di inventario di un bucket
L'
delete-bucket-inventory-configuration
esempio seguente elimina la configurazione dell'inventario con ID1
per il bucket specificato.aws s3api delete-bucket-inventory-configuration \ --bucket
amzn-s3-demo-bucket
\ --id1
Questo comando non produce alcun output.
-
Per i dettagli sull'API, vedere DeleteBucketInventoryConfiguration
in AWS CLI Command Reference.
-
- PowerShell
-
- Strumenti per PowerShell V4
-
Esempio 1: questo comando rimuove l'inventario denominato 'testInventoryName' corrispondente al bucket S3 specificato.
Remove-S3BucketInventoryConfiguration -BucketName 'amzn-s3-demo-bucket' -InventoryId 'testInventoryName'
Output:
Confirm Are you sure you want to perform this action? Performing the operation "Remove-S3BucketInventoryConfiguration (DeleteBucketInventoryConfiguration)" on target "amzn-s3-demo-bucket". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
-
Per i dettagli sull'API, vedere DeleteBucketInventoryConfigurationin AWS Strumenti per PowerShell Cmdlet Reference (V4).
-
- Strumenti per V5 PowerShell
-
Esempio 1: questo comando rimuove l'inventario denominato 'testInventoryName' corrispondente al bucket S3 specificato.
Remove-S3BucketInventoryConfiguration -BucketName 'amzn-s3-demo-bucket' -InventoryId 'testInventoryName'
Output:
Confirm Are you sure you want to perform this action? Performing the operation "Remove-S3BucketInventoryConfiguration (DeleteBucketInventoryConfiguration)" on target "amzn-s3-demo-bucket". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
-
Per i dettagli sull'API, vedere DeleteBucketInventoryConfigurationin AWS Strumenti per PowerShell Cmdlet Reference (V5).
-