Using Amazon S3 Storage Lens with Amazon Organizations examples using the Amazon CLI - Amazon Simple Storage Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Using Amazon S3 Storage Lens with Amazon Organizations examples using the Amazon CLI

Use Amazon S3 Storage Lens to collect storage metrics and usage data for all accounts that are part of your Amazon Organizations hierarchy. For more information, see Using Amazon S3 Storage Lens with Amazon Organizations.

Enable Organizations trusted access for S3 Storage Lens

Example Enable Organizations trusted access for S3 Storage Lens
aws organizations enable-aws-service-access --service-principal storage-lens.s3.amazonaws.com.cn

Disable Organizations trusted access for S3 Storage Lens

Example Disable Organizations trusted access for S3 Storage Lens
aws organizations disable-aws-service-access --service-principal storage-lens.s3.amazonaws.com.cn

Register Organizations delegated administrators for S3 Storage Lens

Example Register Organizations delegated administrators for S3 Storage Lens

To use this example, replace 111122223333 with the appropriate Amazon Web Services account ID.

aws organizations register-delegated-administrator --service-principal storage-lens.s3.amazonaws.com.cn --account-id 111122223333

Deregister Organizations delegated administrators for S3 Storage Lens

Example Deregister Organizations delegated administrators for S3 Storage Lens

To use this example, replace 111122223333 with the appropriate Amazon Web Services account ID.

aws organizations deregister-delegated-administrator --service-principal storage-lens.s3.amazonaws.com.cn --account-id 111122223333