In AWS classic, the <documentation> recommends usi...
# aws
In AWS classic, the documentation recommends using
to create a S3 Bucket Policy that can be fed to
. Is there a similar method in AWS native for creating a bucket policy document? I see there is
but the arguments require a policy name, so I don't think that is the right method. I assume I could use AWS classic and use it's method, but I wanted to see if I could avoid that do everything in native.
You can use the PolicyDocument type from aws, and avoid outputs entirely. The outputs in the object get handled inline, so you don't need to build a wrapping output.
Is that only in aws classic?
The class is in classic, but it should work in native (I hope?).
Ok, thank you