Hay más ejemplos de AWS SDK disponibles en el GitHub repositorio de ejemplos de AWS Doc SDK
Las traducciones son generadas a través de traducción automática. En caso de conflicto entre la traducción y la version original de inglés, prevalecerá la version en inglés.
Utilizar DeleteBucketInventoryConfiguration
con una CLI
Los siguientes ejemplos de código muestran cómo utilizar DeleteBucketInventoryConfiguration
.
- CLI
-
- AWS CLI
-
Eliminar la configuración de inventario de un bucket
En el siguiente ejemplo de
delete-bucket-inventory-configuration
, se elimina la configuración de inventario con el ID1
del bucket especificado.aws s3api delete-bucket-inventory-configuration \ --bucket
amzn-s3-demo-bucket
\ --id1
Este comando no genera ninguna salida.
-
Para obtener más información sobre la API, consulte DeleteBucketInventoryConfiguration
la Referencia de AWS CLI comandos.
-
- PowerShell
-
- Herramientas para la PowerShell versión 4
-
Ejemplo 1: Este comando elimina el inventario denominado 'testInventoryName' correspondiente al depósito de S3 dado.
Remove-S3BucketInventoryConfiguration -BucketName 'amzn-s3-demo-bucket' -InventoryId 'testInventoryName'
Salida:
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
-
Para obtener más información sobre la API, consulte DeleteBucketInventoryConfiguration Herramientas de AWS para PowerShellCmdlet Reference (V4).
-
- Herramientas para la versión 5 PowerShell
-
Ejemplo 1: Este comando elimina el inventario denominado 'testInventoryName' correspondiente al depósito S3 dado.
Remove-S3BucketInventoryConfiguration -BucketName 'amzn-s3-demo-bucket' -InventoryId 'testInventoryName'
Salida:
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
-
Para obtener más información sobre la API, consulte DeleteBucketInventoryConfiguration Herramientas de AWS para PowerShellCmdlet Reference (V5).
-