In AWS classic, the <documentation> recommends usi...
# aws
m
In AWS classic, the documentation recommends using
aws.iam.getPolicyDocumentOutput()
to create a S3 Bucket Policy that can be fed to
aws.s3.BucketPolicy
. Is there a similar method in AWS native for creating a bucket policy document? I see there is
<http://awsNative.am|awsNative.am>.getUserPolicyOutput()
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.
l
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.
m
Is that only in aws classic?
l
The class is in classic, but it should work in native (I hope?).
m
Ok, thank you