

def test_az_and_multiaz_funcs(self):
    AWS_NO_VALUE = 'AWS::NoValue'
    db_az = 'us-east-1'
    db_multi_az = Parameter('dbmultiaz', Type='String')
    i = rds.DBInstance('NoAZAndMultiAZ', MasterUsername='myuser', MasterUserPassword='mypassword', AllocatedStorage=10, DBInstanceClass='db.m1.small', Engine='postgres', AvailabilityZone=If('db_az', Ref(db_az), Ref(AWS_NO_VALUE)), MultiAZ=Ref(db_multi_az))
    i.validate()

dataset/ETHPy150Open cloudtools/troposphere/tests/test_rds.py TestRDS.test_az_and_multiaz_funcs/original