本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
搭ListBucketInventoryConfigurations
配使用 AWS SDK或 CLI
下列程式碼範例會示範如何使用ListBucketInventoryConfigurations
。
- CLI
-
- AWS CLI
-
擷取值區的庫存組態清單
下列
list-bucket-inventory-configurations
範例會列出指定值區的庫存組態。aws s3api list-bucket-inventory-configurations \ --bucket
my-bucket
輸出:
{ "InventoryConfigurationList": [ { "IsEnabled": true, "Destination": { "S3BucketDestination": { "Format": "ORC", "Bucket": "arn:aws:s3:::my-bucket", "AccountId": "123456789012" } }, "IncludedObjectVersions": "Current", "Id": "1", "Schedule": { "Frequency": "Weekly" } }, { "IsEnabled": true, "Destination": { "S3BucketDestination": { "Format": "CSV", "Bucket": "arn:aws:s3:::my-bucket", "AccountId": "123456789012" } }, "IncludedObjectVersions": "Current", "Id": "2", "Schedule": { "Frequency": "Daily" } } ], "IsTruncated": false }
-
有API關詳細資訊,請參閱 ListBucketInventoryConfigurations
(AWS CLI 指令參考。
-
- PowerShell
-
- 適用的工具 PowerShell
-
範例 1:此命令會傳回指定 S3 儲存貯體的前 100 個庫存組態。
Get-S3BucketInventoryConfigurationList -BucketName 's3testbucket'
-
有API關詳細資訊,請參閱 ListBucketInventoryConfigurations(AWS Tools for PowerShell 指令程式參照。
-
有關的完整列表 AWS SDK開發人員指南和代碼示例,請參閱搭配 AWS SDK 使用此服務。本主題也包含有關入門的資訊以及舊SDK版的詳細資訊。
ListBucketAnalyticsConfigurations
ListBuckets