Пример #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}
Пример #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}
Пример #3
0
 def __json__(self):
     params = [
         named_as_ref(self.delimiter),
         [named_as_ref(v) for v in self.values]
     ]
     return {'Fn::Join': params}
Пример #4
0
 def __json__(self):
     return {'Fn::GetAZs': named_as_ref(self.region)}
Пример #5
0
 def __json__(self):
     params = [self.resource.object_name, named_as_ref(self.attribute)]
     return {'Fn::GetAtt': params}
Пример #6
0
 def __json__(self):
     return {'Fn::Base64': named_as_ref(self.value)}
Пример #7
0
 def __json__(self):
     params = [named_as_ref(self.lhs), named_as_ref(self.rhs)]
     return {'Fn::Equals': params}
Пример #8
0
def nacor(obj):
    return stratiform.conditions.named_as_cond(named_as_ref(obj))
Пример #9
0
 def __json__(self):
     params = [
         named_as_ref(self.index), [named_as_ref(v) for v in self.values]
     ]
     return {'Fn::Select': params}