特定のVPC EndpointからのみPut/Get/Deleteを許可するS3バケットポリシーの記述例。
{ "Version": "2012-10-17", "Statement": [ { "Sid": "Access-to-specific-VPCE-only", "Effect": "Deny", "Principal": "*", "Action": [ "s3:PutObject", "s3:GetObject", "s3:DeleteObject" ], "Resource": [ "arn:aws:s3:::s3-bucket-name", "arn:aws:s3:::s3-bucket-name/*" ], "Condition": { "StringNotEquals": { "aws:sourceVpce": [ "vpce-*********************", "vpce-*********************" ] } } } ] }