Open niroam opened 2 years ago
With the rust code, when building a policy the add_method uses this code to serialize the Method enum
serde_json::to_string(&method).unwrap()
this creates a policy with double quotes in the method ARN "arn:aws:execute-api:ap-southeast-2:XXXXXXXXXX:YYYYYYYYYY/ESTestInvoke-stage/\"*\"/*"
"arn:aws:execute-api:ap-southeast-2:XXXXXXXXXX:YYYYYYYYYY/ESTestInvoke-stage/\"*\"/*"
Consider using something like this instead ?
json!(&method).as_str().unwrap()
With the rust code, when building a policy the add_method uses this code to serialize the Method enum
serde_json::to_string(&method).unwrap()
this creates a policy with double quotes in the method ARN
"arn:aws:execute-api:ap-southeast-2:XXXXXXXXXX:YYYYYYYYYY/ESTestInvoke-stage/\"*\"/*"
Consider using something like this instead ?
json!(&method).as_str().unwrap()