From 4be4229c9c2e2e0c1e84c3ab23974c6305dc41d1 Mon Sep 17 00:00:00 2001 From: Sean Myers Date: Mon, 26 Sep 2022 15:07:26 -0700 Subject: [PATCH] Fix getAZ translation (#68) Turns out it doesn't work. Fixes #67 --- src/synthesizer/typescript_synthesizer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/synthesizer/typescript_synthesizer.rs b/src/synthesizer/typescript_synthesizer.rs index a5ca17b4..f86b80b4 100644 --- a/src/synthesizer/typescript_synthesizer.rs +++ b/src/synthesizer/typescript_synthesizer.rs @@ -346,9 +346,9 @@ pub fn to_string_ir(resource_value: &ResourceIr) -> Option { let str = to_string_ir(x.as_ref()).unwrap(); // This means it's just a "" if str.len() == 2 { - return Option::Some("cdk.Fn.getAZs()".to_string()); + return Option::Some("cdk.Fn.getAzs()".to_string()); } - Option::Some(format!("cdk.Fn.getAZs({})", str)) + Option::Some(format!("cdk.Fn.getAzs({})", str)) } ResourceIr::Select(index, obj) => { let str = to_string_ir(obj.as_ref()).unwrap();