本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
搭DeleteBucketInventoryConfiguration
配使用 AWS SDK或 CLI
下列程式碼範例會示範如何使用DeleteBucketInventoryConfiguration
。
- CLI
-
- AWS CLI
-
若要刪除值區的庫存組態
下列
delete-bucket-inventory-configuration
範例會刪除具有指定值區之識別碼的1
詳細目錄組態。aws s3api delete-bucket-inventory-configuration \ --bucket
my-bucket
\ --id1
此命令不會產生輸出。
-
有API關詳細資訊,請參閱 DeleteBucketInventoryConfiguration
(AWS CLI 指令參考。
-
- PowerShell
-
- 適用的工具 PowerShell
-
範例 1:此命令會移除與指定 S3 儲存貯體對應的名為 testInventoryName '' 的入侵項目。
Remove-S3BucketInventoryConfiguration -BucketName 's3testbucket' -InventoryId 'testInventoryName'
輸出:
Confirm Are you sure you want to perform this action? Performing the operation "Remove-S3BucketInventoryConfiguration (DeleteBucketInventoryConfiguration)" on target "s3testbucket". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
-
有API關詳細資訊,請參閱 DeleteBucketInventoryConfiguration(AWS Tools for PowerShell 指令程式參照。
-
如需完整清單 AWS SDK開發人員指南和代碼示例,請參閱搭配 AWS SDK 使用此服務。本主題也包含有關入門的資訊以及舊SDK版的詳細資訊。
DeleteBucketEncryption
DeleteBucketLifecycle