github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/aws-optionals-pp/aws-optionals.pp (about) 1 policyDocument = invoke("aws:iam:getPolicyDocument", { 2 statements = [{ 3 sid = "1" 4 5 actions = [ 6 "s3:ListAllMyBuckets", 7 "s3:GetBucketLocation", 8 ] 9 10 resources = [ 11 "arn:aws:s3:::*", 12 ] 13 }] 14 }) 15 16 resource example "aws:iam:Policy" { 17 name = "example_policy" 18 path = "/" 19 policy = policyDocument.json 20 }