本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
透過 AWS CLI 搭配 AWS Organizations 範例使用 Amazon S3 Storage Lens
使用 Amazon S3 Storage Lens,來收集屬於 AWS Organizations 階層之所有帳戶的儲存指標和使用量資料。如需詳細資訊,請參閱將 Amazon S3 Storage Lens 與 AWS Organizations 搭配使用。
啟用 S3 Storage Lens 的 Organizations 受信任存取權
範例 啟用 S3 Storage Lens 的 Organizations 受信任存取權
aws organizations enable-aws-service-access --service-principal storage-lens.s3.amazonaws.com
停用 S3 Storage Lens 的 Organizations 受信任存取權
範例 停用 S3 Storage Lens 的 Organizations 受信任存取權
aws organizations disable-aws-service-access --service-principal storage-lens.s3.amazonaws.com
註冊 S3 Storage Lens 的 Organizations 委派管理員
範例 註冊 S3 Storage Lens 的 Organizations 委派管理員
若要使用此範例,請將
取代為適當的 AWS 帳戶 ID。111122223333
aws organizations register-delegated-administrator --service-principal storage-lens.s3.amazonaws.com --account-id
111122223333
取消註冊 S3 Storage Lens 的 Organizations 委派管理員
範例 取消註冊 S3 Storage Lens 的 Organizations 委派管理員
若要使用此範例,請將
取代為適當的 AWS 帳戶 ID。111122223333
aws organizations deregister-delegated-administrator --service-principal storage-lens.s3.amazonaws.com --account-id
111122223333