示例#1
0
 def __init__(self, instance, vpc=None):
     """Composted ec2.Instance(boto3.resources.base.ServiceResource) class"""
     if vpc is not None:
         self.vpc = vpc
     self.instance = instance
     # reflect all attributes of ec2.Instance into self.
     reflect_attrs(self, self.instance)
示例#2
0
 def reflect_attrs(self):
     """reflect all attributes of boto3's vpc resource object into self."""
     reflect_attrs(self, self.vpc, skip_attrs=self.self_attrs)
示例#3
0
 def reflect_attrs(self):
     """reflect all attributes of boto3's vpc resource object into self."""
     reflect_attrs(self, self.vpc, skip_attrs=self.self_attrs)
示例#4
0
 def reflect_attrs(self):
     """reflect all attributes of ec2_object into self."""
     reflect_attrs(self, self.ec2_object, skip_attrs=self.self_attrs)
示例#5
0
 def reflect_attrs(self):
     """reflect all attributes of ec2.Instance into self."""
     reflect_attrs(self, self.instance, skip_attrs=self.self_attrs)
示例#6
0
 def reflect_attrs(self):
     """reflect all attributes of ec2.Instance into self."""
     reflect_attrs(self, self.instance, skip_attrs=self.self_attrs)
示例#7
0
 def reflect_attrs(self):
     """reflect all attributes of ec2_object into self."""
     reflect_attrs(self, self.ec2_object, skip_attrs=self.self_attrs)
示例#8
0
文件: vpc.py 项目: lu-chi/botoform
 def connect(self, vpc_name):
     """connect to VPC and reflect all attributes into self."""
     self.vpc = self.get_vpc_by_name_tag(vpc_name)
     # reflect all attributes of boto3's vpc resource object into self.
     reflect_attrs(self, self.vpc)