Home | History | Annotate | Download | only in ec2

Lines Matching refs:ec2

9 import boto.ec2
12 from boto.ec2.blockdevicemapping import BlockDeviceType, BlockDeviceMapping
13 from boto.ec2.connection import EC2Connection
14 from boto.ec2.snapshot import Snapshot
15 from boto.ec2.reservedinstance import ReservedInstancesConfiguration
23 self.ec2 = self.service_connection
85 response = self.ec2.get_all_reserved_instances_offerings()
107 self.ec2.get_all_reserved_instances_offerings(
146 response = self.ec2.purchase_reserved_instance_offering(
161 return b"""<CreateImageResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-01/">
168 response = self.ec2.create_image(
182 response = self.ec2.create_image(
267 response = self.ec2.cancel_reserved_instances_listing()
392 response = self.ec2.create_reserved_instances_listing(
465 response = self.ec2.get_all_spot_instance_requests()
503 <CopySnapshotResponse xmlns="http://ec2.amazonaws.com/doc/2012-12-01/">
511 snapshot_id = self.ec2.copy_snapshot('us-west-2', 'snap-id',
528 <CopyImageResponse xmlns="http://ec2.amazonaws.com/doc/2013-07-15/">
536 copied_ami = self.ec2.copy_image('us-west-2', 'ami-id',
553 copied_ami = self.ec2.copy_image('us-west-2', 'ami-id',
572 <DescribeAccountAttributesResponse xmlns="http://ec2.amazonaws.com/doc/2012-12-01/">
595 <attributeValue>EC2</attributeValue>
616 parsed = self.ec2.describe_account_attributes()
631 <DescribeVpcAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
642 parsed = self.ec2.describe_vpc_attribute('vpc-id',
658 <DescribeNetworkInterfacesResponse xmlns="http://ec2.amazonaws.com/\
710 result = self.ec2.get_all_network_interfaces(network_interface_ids=['eni-0f62d866'])
722 parsed = self.ec2.get_all_network_interfaces()
730 <DescribeImagesResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
787 parsed = self.ec2.get_all_images()
823 xmlns="http://ec2.amazonaws.com/doc/2013-06-15/">
831 self.ec2.modify_network_interface_attribute('id', 'description', 'foo')
843 self.ec2.modify_network_interface_attribute('id', 'sourceDestCheck',
856 self.ec2.modify_network_interface_attribute('id', 'sourceDestCheck',
871 self.ec2.modify_network_interface_attribute('id',
877 self.ec2.modify_network_interface_attribute('id',
892 self.ec2.modify_network_interface_attribute('id',
910 self.ec2.modify_network_interface_attribute('id',
917 self.ec2.modify_network_interface_attribute('id', 'groupSet',
933 self.ec2.modify_network_interface_attribute('id', 'groupSet',
940 self.ec2.modify_network_interface_attribute('id', 'invalid', 0)
950 region = boto.ec2.RegionData.keys()[0]
951 self.ec2 = boto.ec2.connect_to_region(
957 self.assertEqual(boto.ec2.RegionData[region], self.ec2.host)
960 self.ec2 = boto.ec2.connect_to_region(
967 self.assertEqual('https://foo.com/bar', self.ec2.host)
970 self.ec2 = boto.ec2.connect_to_region(
976 self.assertEqual(None, self.ec2)
1012 snap = Snapshot(self.ec2)
1028 'get_all_snapshots': self.ec2.get_all_snapshots,
1029 'delete_snapshot': self.ec2.delete_snapshot
1034 self.ec2.get_all_snapshots = MagicMock(return_value=snaps)
1035 self.ec2.delete_snapshot = MagicMock()
1038 self.ec2.trim_snapshots()
1041 self.assertEqual(True, self.ec2.get_all_snapshots.called)
1042 self.assertEqual(False, self.ec2.delete_snapshot.called)
1045 self.ec2.get_all_snapshots = orig['get_all_snapshots']
1046 self.ec2.delete_snapshot = orig['delete_snapshot']
1056 'get_all_snapshots': self.ec2.get_all_snapshots,
1057 'delete_snapshot': self.ec2.delete_snapshot
1062 self.ec2.get_all_snapshots = MagicMock(return_value=snaps)
1063 self.ec2.delete_snapshot = MagicMock()
1066 self.ec2.trim_snapshots(monthly_backups=1)
1069 self.assertEqual(True, self.ec2.get_all_snapshots.called)
1070 self.assertEqual(2, self.ec2.delete_snapshot.call_count)
1073 self.ec2.get_all_snapshots = orig['get_all_snapshots']
1074 self.ec2.delete_snapshot = orig['delete_snapshot']
1079 return b"""<ModifyReservedInstancesResponse xmlns='http://ec2.amazonaws.com/doc/2013-08-15/'>
1086 response = self.ec2.modify_reserved_instances(
1094 platform='EC2-VPC',
1105 'ReservedInstancesConfigurationSetItemType.0.Platform': 'EC2-VPC',
1119 return b"""<DescribeReservedInstancesModificationsResponse xmlns='http://ec2.amazonaws.com/doc/2013-08-15/'>
1134 <platform>EC2-VPC</platform>
1150 response = self.ec2.describe_reserved_instances_modifications(
1208 'EC2-VPC'
1220 <RegisterImageResponse xmlns="http://ec2.amazonaws.com/doc/2013-08-15/">
1228 self.ec2.register_image('name', 'description',
1244 self.ec2.register_image('name', 'description',
1262 self.ec2.register_image('name', 'description',
1280 self.ec2.register_image('name', 'description',
1299 self.ec2.register_image('name', 'description',
1319 <TerminateInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2013-07-15/">
1339 self.ec2.terminate_instances('foo')
1352 self.ec2.get_all_instances()
1358 self.ec2.get_all_reservations()
1364 self.ec2.get_only_instances()
1372 self.ec2.get_all_instances(
1383 self.ec2.get_all_reservations(
1403 self.ec2.get_all_tags()
1411 self.ec2.get_all_tags(
1431 endpoint='ec2.cn-north-1.amazonaws.com.cn',
1449 <AssociateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/">
1458 result = self.ec2.associate_address(instance_id='i-1234',
1464 result = self.ec2.associate_address_object(instance_id='i-1234',
1486 result = self.ec2.associate_address(instance_id='i-1234',
1494 <DescribeVolumesResponse xmlns="http://ec2.amazonaws.com/doc/2014-02-01/">
1543 result = self.ec2.get_all_volumes(volume_ids=['vol-1a2b3c4d', 'vol-5e6f7a8b'])
1561 <DescribeSnapshotsResponse xmlns="http://ec2.amazonaws.com/doc/2014-02-01/">
1596 result = self.ec2.get_all_snapshots(snapshot_ids=['snap-1a2b3c4d', 'snap-5e6f7a8b'])
1614 <CreateVolumeResponse xmlns="http://ec2.amazonaws.com/doc/2014-05-01/">
1629 result = self.ec2.create_volume(80, 'us-east-1e', snapshot='snap-1a2b3c4d',
1647 <DescribeClassicLinkInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2014-09-01/">
1670 response = self.ec2.get_all_classic_link_instances()
1682 self.ec2.get_all_classic_link_instances(