-
Notifications
You must be signed in to change notification settings - Fork 3
Framework Reference Guide
Bruno Galindro da Costa edited this page May 10, 2015
·
1 revision
This package provides exclusive classes and functions to work with aws ec2
class awstools.aws.ec2.Ec2(self, logger, boto_ec2=None, region=settings.DEFAULT_REGION)
-
Parameters:
- logger - instance of python logging.getLogger()
- boto_ec2 - instance of boto.ec2
- region (string) - aws region
-
Returns: an instance of awstools.aws.ec2.Ec2 class
def awstools.aws.ec2.Ec2.get_images(self, image_ids)
-
Parameters:
- image_ids (list of strings) - list of images to search
-
Returns: a list of boto.ec2.image.Image
def awstools.aws.ec2.Ec2.delete_images(self, images, del_snap=False, del_image=False)
-
Parameters:
- images - a list of boto.ec2.image.Image
- del_snap (boolean) - delete snapshots associated with image?
- del_image (boolean) - if true, it will delete images without confirmation
-
Returns: 0 if everything is OK, 1 if an error was ocurred
class awstools.aws.ec2.Autoscaling(self, logger, boto_autoscale=None, region=settings.DEFAULT_REGION)
-
Parameters:
- logger - instance of python logging.getLogger()
- boto_ec2 - instance of boto.ec2.autoscale
- region (string) - aws region
-
Returns: an instance of awstools.aws.ec2.Autoscaling class
def awstools.aws.ec2.Autoscaling.get_launch_configs(self, lcs)
-
Parameters:
- lcs (list of strings) - list of launch configuration names to search
-
Returns: List of boto.ec2.autoscale.launchconfig.LaunchConfiguration instances.
This package provides exclusive classes and functions to work with zabbix monitoring tool
This package provides exclusive classes and functions to work with microsoft windows azure storage