搭GetBucketAccelerateConfiguration配使用 AWS SDK或 CLI - Amazon Simple Storage Service

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

GetBucketAccelerateConfiguration配使用 AWS SDK或 CLI

下列程式碼範例會示範如何使用GetBucketAccelerateConfiguration

CLI
AWS CLI

若要擷取值區的加速組態

下列get-bucket-accelerate-configuration範例會擷取指定值區的加速組態。

aws s3api get-bucket-accelerate-configuration \ --bucket my-bucket

輸出:

{ "Status": "Enabled" }
PowerShell
適用的工具 PowerShell

範例 1:如果針對指定值區啟用了傳輸加速設定,此命令會傳回 Enabled 值。

Get-S3BucketAccelerateConfiguration -BucketName 's3testbucket'

輸出:

Value ----- Enabled

有關的完整列表 AWS SDK開發人員指南和代碼示例,請參閱搭配 AWS SDK 使用此服務。本主題也包含有關入門的資訊以及舊SDK版的詳細資訊。