Monitoring and logging access points for directory buckets
You can log requests made through access points and requests made to the APIs that
manage access points, such as CreateAccessPoint and
GetAccessPointPolicy, by using Amazon CloudTrail. CloudTrail log entries for requests made through access points include the access point ARN (which includes the access point name) in the
resources section of the log.
For example, suppose you have the following configuration:
-
A bucket named
in Regionamzn-s3-demo-bucket--zone-id--x-s3regionthat contains an object namedmy-image.jpg. -
An access point named
my-bucket-ap--zoneID--xa-s3that is associated withamzn-s3-demo-bucket--zone-id--x-s3 -
An Amazon Web Services account ID of
123456789012
The following example shows the resources section of a CloudTrail log entry
for the preceding configuration:
"resources": [ {"type": "AWS::S3Express::Object", "ARN": "arn:aws-cn:s3express-region:123456789012:bucket/amzn-s3-demo-bucket--zone-id--x-s3/my-image.jpg" }, {"accountId": "c", "type": "AWS::S3Express::DirectoryBucket", "ARN": "arn:aws-cn::s3express:region:123456789012:bucket/amzn-s3-demo-bucket--zone-id--x-s3" }, {"accountId": "123456789012", "type": "AWS::S3::AccessPoint", "ARN": "arn:aws-cn:s3express:region:123456789012:accesspoint/my-bucket-ap--zoneID--xa-s3" } ]
For more information about Amazon CloudTrail, see What is Amazon CloudTrail? in the Amazon CloudTrail User Guide.