This message was deleted.
# getting-started
s
This message was deleted.
1
r
Solved my own problem 🙂 Just needed to put the entire
iam.get_policy_document
call inside of the
bucket.arn.apply
lambda, like this
Copy code
my_bucket.arn.apply(
    lambda bucket_arn:
        iam.get_policy_document(...)
).json
the above produces
Output[str]
which I can then feed to
iam.PolicyArg
a
I'm using C# but for the record, the expression iam.get_policy_document() can be evaluated outside of the apply lambda. It's just accessing properties of the result needs to be done inside the apply().