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

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/b/a/balanced-infra-HEAD/templates/base.py   balanced-infra(Download)
    def post_add(self, template):
        if self._allow_self:
            template.add_resource(stratosphere.ec2.SecurityGroupIngress(
                self.name + 'SelfTCPIngress',
                IpProtocol='tcp',
            ))
            template.add_resource(stratosphere.ec2.SecurityGroupIngress(
                self.name + 'SelfUDPIngress',
                IpProtocol='udp',
                FromPort='0',
            ))
            template.add_resource(stratosphere.ec2.SecurityGroupIngress(
                self.name + 'SelfICMPIngress',
                IpProtocol='icmp',
                FromPort='-1',