Difference between revisions of "S3:GetObject"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
  [[PutBucketNotificationConfiguration]]
 
  [[PutBucketNotificationConfiguration]]
 
  [[s3:ListBucket]]
 
  [[s3:ListBucket]]
 +
 +
 +
[[select]] userIdentity.arn as user,
 +
    element_at(requestParameters, 'bucketName') as bucket,
 +
    element_at(requestParameters, 'key') as key,
 +
    count(*) as attempts
 +
from xxxxx-yyyyy-xxxxx-zzzz-xxxxx
 +
where eventSource = '[[s3.amazonaws.com]]'
 +
    and eventName = 'GetObject'
 +
    and userIdentity.arn = '[[arn:aws:sts]]::0987654321:[[assumed-role/]]your-role/[email protected]'
 +
group by 1,
 +
    2,
 +
    3
 +
order by attempts desc
  
 
== See also ==
 
== See also ==

Revision as of 06:26, 11 July 2024

aws s3api put-bucket-notification-configuration


PutBucketNotificationConfiguration
s3:ListBucket


select userIdentity.arn as user,
   element_at(requestParameters, 'bucketName') as bucket,
   element_at(requestParameters, 'key') as key,
   count(*) as attempts
from xxxxx-yyyyy-xxxxx-zzzz-xxxxx
where eventSource = 's3.amazonaws.com'
   and eventName = 'GetObject'
   and userIdentity.arn = 'arn:aws:sts::0987654321:assumed-role/your-role/[email protected]'

group by 1,

   2,
   3
order by attempts desc

See also

  • https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html
  • Advertising: