sparse-intern-71089
10/14/2021, 1:40 PMgreat-sunset-355
10/14/2021, 2:11 PMVCRpy
would worklittle-cartoon-10569
10/14/2021, 6:43 PMfreezing-van-87649
10/14/2021, 7:23 PMfreezing-van-87649
10/14/2021, 7:23 PMimport pulumi
class MyMocks(pulumi.runtime.Mocks):
def new_resource(self, args: pulumi.runtime.MockResourceArgs):
return [args.name + '_id', args.inputs]
def call(self, args: pulumi.runtime.MockCallArgs):
return {}
pulumi.runtime.set_mocks(MyMocks())
freezing-van-87649
10/14/2021, 7:24 PMVCRpy
would help withfreezing-van-87649
10/14/2021, 7:24 PMfreezing-van-87649
10/14/2021, 7:24 PMlittle-cartoon-10569
10/14/2021, 7:51 PMlittle-cartoon-10569
10/14/2021, 7:52 PMcall()
method.little-cartoon-10569
10/14/2021, 7:52 PMlittle-cartoon-10569
10/14/2021, 7:56 PMnew PolicyDocument
. Ignore all that, sorry, I've completely mislead you.little-cartoon-10569
10/14/2021, 7:59 PMPolicyDocument
in call()
. Or maybe even throw an error and tell the user to stop using getPolicyDocument()
since it's never necessary 🙂little-cartoon-10569
10/14/2021, 8:02 PMlittle-cartoon-10569
10/14/2021, 8:10 PMfreezing-van-87649
10/14/2021, 8:13 PMGetPolicyDocumentResult
freezing-van-87649
10/14/2021, 8:14 PMlittle-cartoon-10569
10/14/2021, 8:43 PMgetPolicyDocument()
inline, using some javacript magic. I've been looking for the code, since it would be feasible to duplicate it in the call()
function and essentially re-implement getPolicyDocument()
locally, skipping the AWS SDK.little-cartoon-10569
10/14/2021, 8:43 PMfreezing-van-87649
10/14/2021, 9:09 PMlittle-cartoon-10569
10/14/2021, 9:21 PMlittle-cartoon-10569
10/14/2021, 9:22 PMlittle-cartoon-10569
10/14/2021, 9:23 PMfreezing-van-87649
10/14/2021, 9:30 PMX
, policy should be read only.
For condition Y
, policy should be read/write.