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
with the appropriate
Amazon Web Services account ID.111122223333
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
with the appropriate
Amazon Web Services account ID.111122223333
aws organizations deregister-delegated-administrator --service-principal storage-lens.s3.amazonaws.com.cn --account-id
111122223333