Example #1
0
 def __json__(self):
     params = [
         self.map_name,
         named_as_ref(self.top_level_key),
         named_as_ref(self.second_level_key)
     ]
     return {'Fn::FindInMap': params}
Example #2
0
 def __json__(self):
     name = self.condition.object_name
     params = [
         name,
         named_as_ref(self.true_value),
         named_as_ref(self.false_value)
     ]
     return {'Fn::If': params}
Example #3
0
 def __json__(self):
     params = [
         named_as_ref(self.delimiter),
         [named_as_ref(v) for v in self.values]
     ]
     return {'Fn::Join': params}
Example #4
0
 def __json__(self):
     return {'Fn::GetAZs': named_as_ref(self.region)}
Example #5
0
 def __json__(self):
     params = [self.resource.object_name, named_as_ref(self.attribute)]
     return {'Fn::GetAtt': params}
Example #6
0
 def __json__(self):
     return {'Fn::Base64': named_as_ref(self.value)}
Example #7
0
 def __json__(self):
     params = [named_as_ref(self.lhs), named_as_ref(self.rhs)]
     return {'Fn::Equals': params}
Example #8
0
def nacor(obj):
    return stratiform.conditions.named_as_cond(named_as_ref(obj))
Example #9
0
 def __json__(self):
     params = [
         named_as_ref(self.index), [named_as_ref(v) for v in self.values]
     ]
     return {'Fn::Select': params}