本文整理汇总了Python中boto.ec2.ec2object.EC2Object类的典型用法代码示例。如果您正苦于以下问题:Python EC2Object类的具体用法?Python EC2Object怎么用?Python EC2Object使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了EC2Object类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, connection=None):
EC2Object.__init__(self, connection)
self.id = None
self.state = None
self.cidr_block = None
self.available_ip_address_count = 0
self.availability_zone = None
示例2: __init__
def __init__(self, connection=None):
EC2Object.__init__(self, connection)
self.id = None
self.dns_name = None
self.public_dns_name = None
self.private_dns_name = None
self.state = None
self.state_code = None
self.key_name = None
self.shutdown_state = None
self.previous_state = None
self.instance_type = None
self.instance_class = None
self.launch_time = None
self.image_id = None
self.placement = None
self.kernel = None
self.ramdisk = None
self.product_codes = ProductCodes()
self.ami_launch_index = None
self.monitored = False
self.instance_class = None
self.spot_instance_request_id = None
self.subnet_id = None
self.vpc_id = None
self.private_ip_address = None
self.ip_address = None
self.requester_id = None
self._in_monitoring_element = False
self.persistent = False
self.root_device_name = None
self.block_device_mapping = None
示例3: __init__
def __init__(self, connection=None):
EC2Object.__init__(self, connection)
self.price = 0.0
self.instance_type = None
self.product_description = None
self.timestamp = None
self.availability_zone = None
示例4: __init__
def __init__(self, connection=None, owner_id=None,
name=None, description=None):
EC2Object.__init__(self, connection)
self.owner_id = owner_id
self.name = name
self.description = description
self.rules = []
示例5: __init__
def __init__(self, connection=None, name=None, cores=None, memory=None, disk=None):
EC2Object.__init__(self, connection)
self.connection = connection
self.name = name
self.cores = cores
self.memory = memory
self.disk = disk
示例6: __init__
def __init__(self, connection=None):
EC2Object.__init__(self, connection)
self.id = None
self.progress = None
self.start_time = None
self.volume_id = None
self.status = None
示例7: __init__
def __init__(self, connection=None):
EC2Object.__init__(self, connection)
self.id = None
self.type = None
self.state = None
self.availability_zone = None
self.attachments = []
示例8: __init__
def __init__(self, connection=None):
EC2Object.__init__(self, connection)
self.id = None
self.type = None
self.state = None
self.ip_address = None
self.bgp_asn = None
示例9: __init__
def __init__(self, connection=None):
EC2Object.__init__(self, connection)
self.id = None
self.state = None
self.customer_gateway_configuration = None
self.type = None
self.customer_gateway_id = None
self.vpn_gateway_id = None
示例10: __init__
def __init__(self, connection=None, owner_id=None,
bucket=None, prefix=None, state=None,fault=None):
EC2Object.__init__(self, connection)
self.owner_id = owner_id
self.bucket = bucket
self.prefix = prefix
self.state = state
self.fault = fault
示例11: __init__
def __init__(self, connection=None, public_ip=None, instance_id=None):
EC2Object.__init__(self, connection)
self.connection = connection
self.public_ip = public_ip
self.instance_id = instance_id
self.domain = None
self.allocation_id = None
self.association_id = None
示例12: __init__
def __init__(self, connection=None):
EC2Object.__init__(self, connection)
self.id = None
self.create_time = None
self.status = None
self.size = None
self.snapshot_id = None
self.attach_data = None
示例13: __init__
def __init__(self, connection=None):
EC2Object.__init__(self, connection)
self.id = None
self.group_name = None
self.state = None
self.availability_zone = None
self.private_ip_address = None
self.ip_address = None
self.public_dns_name = None
示例14: __init__
def __init__(self, connection=None, id=None, instance_type=None,
availability_zone=None, duration=None, fixed_price=None,
usage_price=None, description=None):
EC2Object.__init__(self, connection)
self.id = id
self.instance_type = instance_type
self.availability_zone = availability_zone
self.duration = duration
self.fixed_price = fixed_price
self.usage_price = usage_price
self.description = description
示例15: __init__
def __init__(self, connection=None, public_ip=None, instance_id=None):
EC2Object.__init__(self, connection)
self.connection = connection
self.public_ip = public_ip
self.instance_id = instance_id
self.domain = None
self.allocation_id = None
self.association_id = None
self.network_interface_id = None
self.network_interface_owner_id = None
self.private_ip_address = None