Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(11)  |  Call(10)  |  Derive(0)  |  Import(1)

src/b/a/balanced-infra-HEAD/templates/base.py   balanced-infra(Download)
 
import stratosphere
from stratosphere import And, Equals, Not, NoValue, If, GetAtt, Ref, Join, Base64
 
 
            if self._cond_a:
                rules.append(If(
                    self._cond_a,
                    stratosphere.ec2.SecurityGroupRule(
                        'SSHA',
            if self._cond_b:
                rules.append(If(
                    self._cond_b,
                    stratosphere.ec2.SecurityGroupRule(
                        'SSHB',
            if self._cond_c:
                rules.append(If(
                    self._cond_c,
                    stratosphere.ec2.SecurityGroupRule(
                        'SSHC',
                if self._scheme != 'internal':
                    subnet = public_subnet
                subnets.append(If(cond, subnet, NoValue))
        return subnets