id
int32
0
252k
repo
stringlengths
7
55
path
stringlengths
4
127
func_name
stringlengths
1
88
original_string
stringlengths
75
19.8k
language
stringclasses
1 value
code
stringlengths
75
19.8k
code_tokens
list
docstring
stringlengths
3
17.3k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
87
242
51,300
yyuu/botornado
boto/ec2/connection.py
EC2Connection.register_image
def register_image(self, name=None, description=None, image_location=None, architecture=None, kernel_id=None, ramdisk_id=None, root_device_name=None, block_device_map=None): """ Register an image. :type name: string :param name: The name of ...
python
def register_image(self, name=None, description=None, image_location=None, architecture=None, kernel_id=None, ramdisk_id=None, root_device_name=None, block_device_map=None): """ Register an image. :type name: string :param name: The name of ...
[ "def", "register_image", "(", "self", ",", "name", "=", "None", ",", "description", "=", "None", ",", "image_location", "=", "None", ",", "architecture", "=", "None", ",", "kernel_id", "=", "None", ",", "ramdisk_id", "=", "None", ",", "root_device_name", "...
Register an image. :type name: string :param name: The name of the AMI. Valid only for EBS-based images. :type description: string :param description: The description of the AMI. :type image_location: string :param image_location: Full path to your AMI manifest in ...
[ "Register", "an", "image", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L229-L284
51,301
yyuu/botornado
boto/ec2/connection.py
EC2Connection.deregister_image
def deregister_image(self, image_id, delete_snapshot=False): """ Unregister an AMI. :type image_id: string :param image_id: the ID of the Image to unregister :type delete_snapshot: bool :param delete_snapshot: Set to True if we should delete the ...
python
def deregister_image(self, image_id, delete_snapshot=False): """ Unregister an AMI. :type image_id: string :param image_id: the ID of the Image to unregister :type delete_snapshot: bool :param delete_snapshot: Set to True if we should delete the ...
[ "def", "deregister_image", "(", "self", ",", "image_id", ",", "delete_snapshot", "=", "False", ")", ":", "snapshot_id", "=", "None", "if", "delete_snapshot", ":", "image", "=", "self", ".", "get_image", "(", "image_id", ")", "for", "key", "in", "image", "....
Unregister an AMI. :type image_id: string :param image_id: the ID of the Image to unregister :type delete_snapshot: bool :param delete_snapshot: Set to True if we should delete the snapshot associated with an EBS volume mo...
[ "Unregister", "an", "AMI", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L286-L313
51,302
yyuu/botornado
boto/ec2/connection.py
EC2Connection.create_image
def create_image(self, instance_id, name, description=None, no_reboot=False): """ Will create an AMI from the instance in the running or stopped state. :type instance_id: string :param instance_id: the ID of the instance to image. :type name: string...
python
def create_image(self, instance_id, name, description=None, no_reboot=False): """ Will create an AMI from the instance in the running or stopped state. :type instance_id: string :param instance_id: the ID of the instance to image. :type name: string...
[ "def", "create_image", "(", "self", ",", "instance_id", ",", "name", ",", "description", "=", "None", ",", "no_reboot", "=", "False", ")", ":", "params", "=", "{", "'InstanceId'", ":", "instance_id", ",", "'Name'", ":", "name", "}", "if", "description", ...
Will create an AMI from the instance in the running or stopped state. :type instance_id: string :param instance_id: the ID of the instance to image. :type name: string :param name: The name of the new image :type description: string :param description: An optio...
[ "Will", "create", "an", "AMI", "from", "the", "instance", "in", "the", "running", "or", "stopped", "state", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L315-L348
51,303
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_image_attribute
def get_image_attribute(self, image_id, attribute='launchPermission'): """ Gets an attribute from an image. :type image_id: string :param image_id: The Amazon image id for which you want info about :type attribute: string :param attribute: The attribute you need informa...
python
def get_image_attribute(self, image_id, attribute='launchPermission'): """ Gets an attribute from an image. :type image_id: string :param image_id: The Amazon image id for which you want info about :type attribute: string :param attribute: The attribute you need informa...
[ "def", "get_image_attribute", "(", "self", ",", "image_id", ",", "attribute", "=", "'launchPermission'", ")", ":", "params", "=", "{", "'ImageId'", ":", "image_id", ",", "'Attribute'", ":", "attribute", "}", "return", "self", ".", "get_object", "(", "'Describe...
Gets an attribute from an image. :type image_id: string :param image_id: The Amazon image id for which you want info about :type attribute: string :param attribute: The attribute you need information about. Valid choices are: * launch...
[ "Gets", "an", "attribute", "from", "an", "image", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L352-L373
51,304
yyuu/botornado
boto/ec2/connection.py
EC2Connection.reset_image_attribute
def reset_image_attribute(self, image_id, attribute='launchPermission'): """ Resets an attribute of an AMI to its default value. :type image_id: string :param image_id: ID of the AMI for which an attribute will be described :type attribute: string :param attribute: The ...
python
def reset_image_attribute(self, image_id, attribute='launchPermission'): """ Resets an attribute of an AMI to its default value. :type image_id: string :param image_id: ID of the AMI for which an attribute will be described :type attribute: string :param attribute: The ...
[ "def", "reset_image_attribute", "(", "self", ",", "image_id", ",", "attribute", "=", "'launchPermission'", ")", ":", "params", "=", "{", "'ImageId'", ":", "image_id", ",", "'Attribute'", ":", "attribute", "}", "return", "self", ".", "get_status", "(", "'ResetI...
Resets an attribute of an AMI to its default value. :type image_id: string :param image_id: ID of the AMI for which an attribute will be described :type attribute: string :param attribute: The attribute to reset :rtype: bool :return: Whether the operation succeeded or ...
[ "Resets", "an", "attribute", "of", "an", "AMI", "to", "its", "default", "value", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L413-L428
51,305
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_all_instances
def get_all_instances(self, instance_ids=None, filters=None): """ Retrieve all the instances associated with your account. :type instance_ids: list :param instance_ids: A list of strings of instance IDs :type filters: dict :param filters: Optional filters that can be us...
python
def get_all_instances(self, instance_ids=None, filters=None): """ Retrieve all the instances associated with your account. :type instance_ids: list :param instance_ids: A list of strings of instance IDs :type filters: dict :param filters: Optional filters that can be us...
[ "def", "get_all_instances", "(", "self", ",", "instance_ids", "=", "None", ",", "filters", "=", "None", ")", ":", "params", "=", "{", "}", "if", "instance_ids", ":", "self", ".", "build_list_params", "(", "params", ",", "instance_ids", ",", "'InstanceId'", ...
Retrieve all the instances associated with your account. :type instance_ids: list :param instance_ids: A list of strings of instance IDs :type filters: dict :param filters: Optional filters that can be used to limit the results returned. Filters are provided ...
[ "Retrieve", "all", "the", "instances", "associated", "with", "your", "account", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L432-L466
51,306
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_all_instance_status
def get_all_instance_status(self, instance_ids=None, max_results=None, next_token=None, filters=None): """ Retrieve all the instances in your account scheduled for maintenance. :type instance_ids: list :param instance_ids: ...
python
def get_all_instance_status(self, instance_ids=None, max_results=None, next_token=None, filters=None): """ Retrieve all the instances in your account scheduled for maintenance. :type instance_ids: list :param instance_ids: ...
[ "def", "get_all_instance_status", "(", "self", ",", "instance_ids", "=", "None", ",", "max_results", "=", "None", ",", "next_token", "=", "None", ",", "filters", "=", "None", ")", ":", "params", "=", "{", "}", "if", "instance_ids", ":", "self", ".", "bui...
Retrieve all the instances in your account scheduled for maintenance. :type instance_ids: list :param instance_ids: A list of strings of instance IDs :type max_results: int :param max_results: The maximum number of paginated instance items per response. :type next_...
[ "Retrieve", "all", "the", "instances", "in", "your", "account", "scheduled", "for", "maintenance", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L468-L508
51,307
yyuu/botornado
boto/ec2/connection.py
EC2Connection.run_instances
def run_instances(self, image_id, min_count=1, max_count=1, key_name=None, security_groups=None, user_data=None, addressing_type=None, instance_type='m1.small', placement=None, kernel_id=None, ramdisk_id=None, ...
python
def run_instances(self, image_id, min_count=1, max_count=1, key_name=None, security_groups=None, user_data=None, addressing_type=None, instance_type='m1.small', placement=None, kernel_id=None, ramdisk_id=None, ...
[ "def", "run_instances", "(", "self", ",", "image_id", ",", "min_count", "=", "1", ",", "max_count", "=", "1", ",", "key_name", "=", "None", ",", "security_groups", "=", "None", ",", "user_data", "=", "None", ",", "addressing_type", "=", "None", ",", "ins...
Runs an image on EC2. :type image_id: string :param image_id: The ID of the image to run :type min_count: int :param min_count: The minimum number of instances to launch :type max_count: int :param max_count: The maximum number of instances to launch :type key...
[ "Runs", "an", "image", "on", "EC2", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L510-L670
51,308
yyuu/botornado
boto/ec2/connection.py
EC2Connection.terminate_instances
def terminate_instances(self, instance_ids=None): """ Terminate the instances specified :type instance_ids: list :param instance_ids: A list of strings of the Instance IDs to terminate :rtype: list :return: A list of the instances terminated """ params =...
python
def terminate_instances(self, instance_ids=None): """ Terminate the instances specified :type instance_ids: list :param instance_ids: A list of strings of the Instance IDs to terminate :rtype: list :return: A list of the instances terminated """ params =...
[ "def", "terminate_instances", "(", "self", ",", "instance_ids", "=", "None", ")", ":", "params", "=", "{", "}", "if", "instance_ids", ":", "self", ".", "build_list_params", "(", "params", ",", "instance_ids", ",", "'InstanceId'", ")", "return", "self", ".", ...
Terminate the instances specified :type instance_ids: list :param instance_ids: A list of strings of the Instance IDs to terminate :rtype: list :return: A list of the instances terminated
[ "Terminate", "the", "instances", "specified" ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L672-L686
51,309
yyuu/botornado
boto/ec2/connection.py
EC2Connection.stop_instances
def stop_instances(self, instance_ids=None, force=False): """ Stop the instances specified :type instance_ids: list :param instance_ids: A list of strings of the Instance IDs to stop :type force: bool :param force: Forces the instance to stop :rtype: list ...
python
def stop_instances(self, instance_ids=None, force=False): """ Stop the instances specified :type instance_ids: list :param instance_ids: A list of strings of the Instance IDs to stop :type force: bool :param force: Forces the instance to stop :rtype: list ...
[ "def", "stop_instances", "(", "self", ",", "instance_ids", "=", "None", ",", "force", "=", "False", ")", ":", "params", "=", "{", "}", "if", "force", ":", "params", "[", "'Force'", "]", "=", "'true'", "if", "instance_ids", ":", "self", ".", "build_list...
Stop the instances specified :type instance_ids: list :param instance_ids: A list of strings of the Instance IDs to stop :type force: bool :param force: Forces the instance to stop :rtype: list :return: A list of the instances stopped
[ "Stop", "the", "instances", "specified" ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L688-L707
51,310
yyuu/botornado
boto/ec2/connection.py
EC2Connection.start_instances
def start_instances(self, instance_ids=None): """ Start the instances specified :type instance_ids: list :param instance_ids: A list of strings of the Instance IDs to start :rtype: list :return: A list of the instances started """ params = {} if ...
python
def start_instances(self, instance_ids=None): """ Start the instances specified :type instance_ids: list :param instance_ids: A list of strings of the Instance IDs to start :rtype: list :return: A list of the instances started """ params = {} if ...
[ "def", "start_instances", "(", "self", ",", "instance_ids", "=", "None", ")", ":", "params", "=", "{", "}", "if", "instance_ids", ":", "self", ".", "build_list_params", "(", "params", ",", "instance_ids", ",", "'InstanceId'", ")", "return", "self", ".", "g...
Start the instances specified :type instance_ids: list :param instance_ids: A list of strings of the Instance IDs to start :rtype: list :return: A list of the instances started
[ "Start", "the", "instances", "specified" ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L709-L723
51,311
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_console_output
def get_console_output(self, instance_id): """ Retrieves the console output for the specified instance. :type instance_id: string :param instance_id: The instance ID of a running instance on the cloud. :rtype: :class:`boto.ec2.instance.ConsoleOutput` :return: The consol...
python
def get_console_output(self, instance_id): """ Retrieves the console output for the specified instance. :type instance_id: string :param instance_id: The instance ID of a running instance on the cloud. :rtype: :class:`boto.ec2.instance.ConsoleOutput` :return: The consol...
[ "def", "get_console_output", "(", "self", ",", "instance_id", ")", ":", "params", "=", "{", "}", "self", ".", "build_list_params", "(", "params", ",", "[", "instance_id", "]", ",", "'InstanceId'", ")", "return", "self", ".", "get_object", "(", "'GetConsoleOu...
Retrieves the console output for the specified instance. :type instance_id: string :param instance_id: The instance ID of a running instance on the cloud. :rtype: :class:`boto.ec2.instance.ConsoleOutput` :return: The console output as a ConsoleOutput object
[ "Retrieves", "the", "console", "output", "for", "the", "specified", "instance", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L725-L738
51,312
yyuu/botornado
boto/ec2/connection.py
EC2Connection.reboot_instances
def reboot_instances(self, instance_ids=None): """ Reboot the specified instances. :type instance_ids: list :param instance_ids: The instances to terminate and reboot """ params = {} if instance_ids: self.build_list_params(params, instance_ids, 'Insta...
python
def reboot_instances(self, instance_ids=None): """ Reboot the specified instances. :type instance_ids: list :param instance_ids: The instances to terminate and reboot """ params = {} if instance_ids: self.build_list_params(params, instance_ids, 'Insta...
[ "def", "reboot_instances", "(", "self", ",", "instance_ids", "=", "None", ")", ":", "params", "=", "{", "}", "if", "instance_ids", ":", "self", ".", "build_list_params", "(", "params", ",", "instance_ids", ",", "'InstanceId'", ")", "return", "self", ".", "...
Reboot the specified instances. :type instance_ids: list :param instance_ids: The instances to terminate and reboot
[ "Reboot", "the", "specified", "instances", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L740-L750
51,313
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_instance_attribute
def get_instance_attribute(self, instance_id, attribute): """ Gets an attribute from an instance. :type instance_id: string :param instance_id: The Amazon id of the instance :type attribute: string :param attribute: The attribute you need information about ...
python
def get_instance_attribute(self, instance_id, attribute): """ Gets an attribute from an instance. :type instance_id: string :param instance_id: The Amazon id of the instance :type attribute: string :param attribute: The attribute you need information about ...
[ "def", "get_instance_attribute", "(", "self", ",", "instance_id", ",", "attribute", ")", ":", "params", "=", "{", "'InstanceId'", ":", "instance_id", "}", "if", "attribute", ":", "params", "[", "'Attribute'", "]", "=", "attribute", "return", "self", ".", "ge...
Gets an attribute from an instance. :type instance_id: string :param instance_id: The Amazon id of the instance :type attribute: string :param attribute: The attribute you need information about Valid choices are: * instanceType|kern...
[ "Gets", "an", "attribute", "from", "an", "instance", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L761-L785
51,314
yyuu/botornado
boto/ec2/connection.py
EC2Connection.modify_instance_attribute
def modify_instance_attribute(self, instance_id, attribute, value): """ Changes an attribute of an instance :type instance_id: string :param instance_id: The instance id you wish to change :type attribute: string :param attribute: The attribute you wish to change. ...
python
def modify_instance_attribute(self, instance_id, attribute, value): """ Changes an attribute of an instance :type instance_id: string :param instance_id: The instance id you wish to change :type attribute: string :param attribute: The attribute you wish to change. ...
[ "def", "modify_instance_attribute", "(", "self", ",", "instance_id", ",", "attribute", ",", "value", ")", ":", "# Allow a bool to be passed in for value of disableApiTermination", "if", "attribute", "==", "'disableApiTermination'", ":", "if", "isinstance", "(", "value", "...
Changes an attribute of an instance :type instance_id: string :param instance_id: The instance id you wish to change :type attribute: string :param attribute: The attribute you wish to change. * AttributeName - Expected value (default) ...
[ "Changes", "an", "attribute", "of", "an", "instance" ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L787-L822
51,315
yyuu/botornado
boto/ec2/connection.py
EC2Connection.reset_instance_attribute
def reset_instance_attribute(self, instance_id, attribute): """ Resets an attribute of an instance to its default value. :type instance_id: string :param instance_id: ID of the instance :type attribute: string :param attribute: The attribute to reset. Valid values are: ...
python
def reset_instance_attribute(self, instance_id, attribute): """ Resets an attribute of an instance to its default value. :type instance_id: string :param instance_id: ID of the instance :type attribute: string :param attribute: The attribute to reset. Valid values are: ...
[ "def", "reset_instance_attribute", "(", "self", ",", "instance_id", ",", "attribute", ")", ":", "params", "=", "{", "'InstanceId'", ":", "instance_id", ",", "'Attribute'", ":", "attribute", "}", "return", "self", ".", "get_status", "(", "'ResetInstanceAttribute'",...
Resets an attribute of an instance to its default value. :type instance_id: string :param instance_id: ID of the instance :type attribute: string :param attribute: The attribute to reset. Valid values are: kernel|ramdisk :rtype: bool :return: ...
[ "Resets", "an", "attribute", "of", "an", "instance", "to", "its", "default", "value", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L824-L840
51,316
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_all_spot_instance_requests
def get_all_spot_instance_requests(self, request_ids=None, filters=None): """ Retrieve all the spot instances requests associated with your account. :type request_ids: list :param request_ids: A list of strings of spot instance request IDs ...
python
def get_all_spot_instance_requests(self, request_ids=None, filters=None): """ Retrieve all the spot instances requests associated with your account. :type request_ids: list :param request_ids: A list of strings of spot instance request IDs ...
[ "def", "get_all_spot_instance_requests", "(", "self", ",", "request_ids", "=", "None", ",", "filters", "=", "None", ")", ":", "params", "=", "{", "}", "if", "request_ids", ":", "self", ".", "build_list_params", "(", "params", ",", "request_ids", ",", "'SpotI...
Retrieve all the spot instances requests associated with your account. :type request_ids: list :param request_ids: A list of strings of spot instance request IDs :type filters: dict :param filters: Optional filters that can be used to limit the results returned....
[ "Retrieve", "all", "the", "spot", "instances", "requests", "associated", "with", "your", "account", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L844-L880
51,317
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_spot_price_history
def get_spot_price_history(self, start_time=None, end_time=None, instance_type=None, product_description=None, availability_zone=None): """ Retrieve the recent history of spot instances pricing. :type start_time: str :param s...
python
def get_spot_price_history(self, start_time=None, end_time=None, instance_type=None, product_description=None, availability_zone=None): """ Retrieve the recent history of spot instances pricing. :type start_time: str :param s...
[ "def", "get_spot_price_history", "(", "self", ",", "start_time", "=", "None", ",", "end_time", "=", "None", ",", "instance_type", "=", "None", ",", "product_description", "=", "None", ",", "availability_zone", "=", "None", ")", ":", "params", "=", "{", "}", ...
Retrieve the recent history of spot instances pricing. :type start_time: str :param start_time: An indication of how far back to provide price changes for. An ISO8601 DateTime string. :type end_time: str :param end_time: An indication of how far forward to pr...
[ "Retrieve", "the", "recent", "history", "of", "spot", "instances", "pricing", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L882-L923
51,318
yyuu/botornado
boto/ec2/connection.py
EC2Connection.request_spot_instances
def request_spot_instances(self, price, image_id, count=1, type='one-time', valid_from=None, valid_until=None, launch_group=None, availability_zone_group=None, key_name=None, security_groups=None, ...
python
def request_spot_instances(self, price, image_id, count=1, type='one-time', valid_from=None, valid_until=None, launch_group=None, availability_zone_group=None, key_name=None, security_groups=None, ...
[ "def", "request_spot_instances", "(", "self", ",", "price", ",", "image_id", ",", "count", "=", "1", ",", "type", "=", "'one-time'", ",", "valid_from", "=", "None", ",", "valid_until", "=", "None", ",", "launch_group", "=", "None", ",", "availability_zone_gr...
Request instances on the spot market at a particular price. :type price: str :param price: The maximum price of your bid :type image_id: string :param image_id: The ID of the image to run :type count: int :param count: The of instances to requested :type type:...
[ "Request", "instances", "on", "the", "spot", "market", "at", "a", "particular", "price", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L925-L1060
51,319
yyuu/botornado
boto/ec2/connection.py
EC2Connection.cancel_spot_instance_requests
def cancel_spot_instance_requests(self, request_ids): """ Cancel the specified Spot Instance Requests. :type request_ids: list :param request_ids: A list of strings of the Request IDs to terminate :rtype: list :return: A list of the instances terminated """ ...
python
def cancel_spot_instance_requests(self, request_ids): """ Cancel the specified Spot Instance Requests. :type request_ids: list :param request_ids: A list of strings of the Request IDs to terminate :rtype: list :return: A list of the instances terminated """ ...
[ "def", "cancel_spot_instance_requests", "(", "self", ",", "request_ids", ")", ":", "params", "=", "{", "}", "if", "request_ids", ":", "self", ".", "build_list_params", "(", "params", ",", "request_ids", ",", "'SpotInstanceRequestId'", ")", "return", "self", ".",...
Cancel the specified Spot Instance Requests. :type request_ids: list :param request_ids: A list of strings of the Request IDs to terminate :rtype: list :return: A list of the instances terminated
[ "Cancel", "the", "specified", "Spot", "Instance", "Requests", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1063-L1077
51,320
yyuu/botornado
boto/ec2/connection.py
EC2Connection.create_spot_datafeed_subscription
def create_spot_datafeed_subscription(self, bucket, prefix): """ Create a spot instance datafeed subscription for this account. :type bucket: str or unicode :param bucket: The name of the bucket where spot instance data will be written. The account issuing this r...
python
def create_spot_datafeed_subscription(self, bucket, prefix): """ Create a spot instance datafeed subscription for this account. :type bucket: str or unicode :param bucket: The name of the bucket where spot instance data will be written. The account issuing this r...
[ "def", "create_spot_datafeed_subscription", "(", "self", ",", "bucket", ",", "prefix", ")", ":", "params", "=", "{", "'Bucket'", ":", "bucket", "}", "if", "prefix", ":", "params", "[", "'Prefix'", "]", "=", "prefix", "return", "self", ".", "get_object", "(...
Create a spot instance datafeed subscription for this account. :type bucket: str or unicode :param bucket: The name of the bucket where spot instance data will be written. The account issuing this request must have FULL_CONTROL access to the bucket ...
[ "Create", "a", "spot", "instance", "datafeed", "subscription", "for", "this", "account", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1090-L1111
51,321
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_all_zones
def get_all_zones(self, zones=None, filters=None): """ Get all Availability Zones associated with the current region. :type zones: list :param zones: Optional list of zones. If this list is present, only the Zones associated with these zone names ...
python
def get_all_zones(self, zones=None, filters=None): """ Get all Availability Zones associated with the current region. :type zones: list :param zones: Optional list of zones. If this list is present, only the Zones associated with these zone names ...
[ "def", "get_all_zones", "(", "self", ",", "zones", "=", "None", ",", "filters", "=", "None", ")", ":", "params", "=", "{", "}", "if", "zones", ":", "self", ".", "build_list_params", "(", "params", ",", "zones", ",", "'ZoneName'", ")", "if", "filters", ...
Get all Availability Zones associated with the current region. :type zones: list :param zones: Optional list of zones. If this list is present, only the Zones associated with these zone names will be returned. :type filters: dict :param filt...
[ "Get", "all", "Availability", "Zones", "associated", "with", "the", "current", "region", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1126-L1154
51,322
yyuu/botornado
boto/ec2/connection.py
EC2Connection.associate_address
def associate_address(self, instance_id, public_ip=None, allocation_id=None): """ Associate an Elastic IP address with a currently running instance. This requires one of ``public_ip`` or ``allocation_id`` depending on if you're associating a VPC address or a plain EC2 address. :...
python
def associate_address(self, instance_id, public_ip=None, allocation_id=None): """ Associate an Elastic IP address with a currently running instance. This requires one of ``public_ip`` or ``allocation_id`` depending on if you're associating a VPC address or a plain EC2 address. :...
[ "def", "associate_address", "(", "self", ",", "instance_id", ",", "public_ip", "=", "None", ",", "allocation_id", "=", "None", ")", ":", "params", "=", "{", "'InstanceId'", ":", "instance_id", "}", "if", "public_ip", "is", "not", "None", ":", "params", "["...
Associate an Elastic IP address with a currently running instance. This requires one of ``public_ip`` or ``allocation_id`` depending on if you're associating a VPC address or a plain EC2 address. :type instance_id: string :param instance_id: The ID of the instance :type public_...
[ "Associate", "an", "Elastic", "IP", "address", "with", "a", "currently", "running", "instance", ".", "This", "requires", "one", "of", "public_ip", "or", "allocation_id", "depending", "on", "if", "you", "re", "associating", "a", "VPC", "address", "or", "a", "...
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1208-L1233
51,323
yyuu/botornado
boto/ec2/connection.py
EC2Connection.disassociate_address
def disassociate_address(self, public_ip=None, association_id=None): """ Disassociate an Elastic IP address from a currently running instance. :type public_ip: string :param public_ip: The public IP address for EC2 elastic IPs. :type association_id: string :param associ...
python
def disassociate_address(self, public_ip=None, association_id=None): """ Disassociate an Elastic IP address from a currently running instance. :type public_ip: string :param public_ip: The public IP address for EC2 elastic IPs. :type association_id: string :param associ...
[ "def", "disassociate_address", "(", "self", ",", "public_ip", "=", "None", ",", "association_id", "=", "None", ")", ":", "params", "=", "{", "}", "if", "public_ip", "is", "not", "None", ":", "params", "[", "'PublicIp'", "]", "=", "public_ip", "elif", "as...
Disassociate an Elastic IP address from a currently running instance. :type public_ip: string :param public_ip: The public IP address for EC2 elastic IPs. :type association_id: string :param association_id: The association ID for a VPC based elastic ip. :rtype: bool :r...
[ "Disassociate", "an", "Elastic", "IP", "address", "from", "a", "currently", "running", "instance", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1235-L1255
51,324
yyuu/botornado
boto/ec2/connection.py
EC2Connection.release_address
def release_address(self, public_ip=None, allocation_id=None): """ Free up an Elastic IP address. :type public_ip: string :param public_ip: The public IP address for EC2 elastic IPs. :type allocation_id: string :param allocation_id: The ID for VPC elastic IPs. ...
python
def release_address(self, public_ip=None, allocation_id=None): """ Free up an Elastic IP address. :type public_ip: string :param public_ip: The public IP address for EC2 elastic IPs. :type allocation_id: string :param allocation_id: The ID for VPC elastic IPs. ...
[ "def", "release_address", "(", "self", ",", "public_ip", "=", "None", ",", "allocation_id", "=", "None", ")", ":", "params", "=", "{", "}", "if", "public_ip", "is", "not", "None", ":", "params", "[", "'PublicIp'", "]", "=", "public_ip", "elif", "allocati...
Free up an Elastic IP address. :type public_ip: string :param public_ip: The public IP address for EC2 elastic IPs. :type allocation_id: string :param allocation_id: The ID for VPC elastic IPs. :rtype: bool :return: True if successful
[ "Free", "up", "an", "Elastic", "IP", "address", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1257-L1277
51,325
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_all_volumes
def get_all_volumes(self, volume_ids=None, filters=None): """ Get all Volumes associated with the current credentials. :type volume_ids: list :param volume_ids: Optional list of volume ids. If this list is present, only the volumes associated with ...
python
def get_all_volumes(self, volume_ids=None, filters=None): """ Get all Volumes associated with the current credentials. :type volume_ids: list :param volume_ids: Optional list of volume ids. If this list is present, only the volumes associated with ...
[ "def", "get_all_volumes", "(", "self", ",", "volume_ids", "=", "None", ",", "filters", "=", "None", ")", ":", "params", "=", "{", "}", "if", "volume_ids", ":", "self", ".", "build_list_params", "(", "params", ",", "volume_ids", ",", "'VolumeId'", ")", "i...
Get all Volumes associated with the current credentials. :type volume_ids: list :param volume_ids: Optional list of volume ids. If this list is present, only the volumes associated with these volume ids will be returned. :type filters: dic...
[ "Get", "all", "Volumes", "associated", "with", "the", "current", "credentials", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1281-L1309
51,326
yyuu/botornado
boto/ec2/connection.py
EC2Connection.create_volume
def create_volume(self, size, zone, snapshot=None): """ Create a new EBS Volume. :type size: int :param size: The size of the new volume, in GiB :type zone: string or :class:`boto.ec2.zone.Zone` :param zone: The availability zone in which the Volume will be created. ...
python
def create_volume(self, size, zone, snapshot=None): """ Create a new EBS Volume. :type size: int :param size: The size of the new volume, in GiB :type zone: string or :class:`boto.ec2.zone.Zone` :param zone: The availability zone in which the Volume will be created. ...
[ "def", "create_volume", "(", "self", ",", "size", ",", "zone", ",", "snapshot", "=", "None", ")", ":", "if", "isinstance", "(", "zone", ",", "Zone", ")", ":", "zone", "=", "zone", ".", "name", "params", "=", "{", "'AvailabilityZone'", ":", "zone", "}...
Create a new EBS Volume. :type size: int :param size: The size of the new volume, in GiB :type zone: string or :class:`boto.ec2.zone.Zone` :param zone: The availability zone in which the Volume will be created. :type snapshot: string or :class:`boto.ec2.snapshot.Snapshot` ...
[ "Create", "a", "new", "EBS", "Volume", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1311-L1333
51,327
yyuu/botornado
boto/ec2/connection.py
EC2Connection.attach_volume
def attach_volume(self, volume_id, instance_id, device): """ Attach an EBS volume to an EC2 instance. :type volume_id: str :param volume_id: The ID of the EBS volume to be attached. :type instance_id: str :param instance_id: The ID of the EC2 instance to which it will ...
python
def attach_volume(self, volume_id, instance_id, device): """ Attach an EBS volume to an EC2 instance. :type volume_id: str :param volume_id: The ID of the EBS volume to be attached. :type instance_id: str :param instance_id: The ID of the EC2 instance to which it will ...
[ "def", "attach_volume", "(", "self", ",", "volume_id", ",", "instance_id", ",", "device", ")", ":", "params", "=", "{", "'InstanceId'", ":", "instance_id", ",", "'VolumeId'", ":", "volume_id", ",", "'Device'", ":", "device", "}", "return", "self", ".", "ge...
Attach an EBS volume to an EC2 instance. :type volume_id: str :param volume_id: The ID of the EBS volume to be attached. :type instance_id: str :param instance_id: The ID of the EC2 instance to which it will be attached. :type device: str :p...
[ "Attach", "an", "EBS", "volume", "to", "an", "EC2", "instance", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1348-L1369
51,328
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_all_snapshots
def get_all_snapshots(self, snapshot_ids=None, owner=None, restorable_by=None, filters=None): """ Get all EBS Snapshots associated with the current credentials. :type snapshot_ids: list :param snapshot_ids: Optional list of snapshot id...
python
def get_all_snapshots(self, snapshot_ids=None, owner=None, restorable_by=None, filters=None): """ Get all EBS Snapshots associated with the current credentials. :type snapshot_ids: list :param snapshot_ids: Optional list of snapshot id...
[ "def", "get_all_snapshots", "(", "self", ",", "snapshot_ids", "=", "None", ",", "owner", "=", "None", ",", "restorable_by", "=", "None", ",", "filters", "=", "None", ")", ":", "params", "=", "{", "}", "if", "snapshot_ids", ":", "self", ".", "build_list_p...
Get all EBS Snapshots associated with the current credentials. :type snapshot_ids: list :param snapshot_ids: Optional list of snapshot ids. If this list is present, only the Snapshots associated with these snapshot ids will be returned. ...
[ "Get", "all", "EBS", "Snapshots", "associated", "with", "the", "current", "credentials", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1410-L1456
51,329
yyuu/botornado
boto/ec2/connection.py
EC2Connection.create_snapshot
def create_snapshot(self, volume_id, description=None): """ Create a snapshot of an existing EBS Volume. :type volume_id: str :param volume_id: The ID of the volume to be snapshot'ed :type description: str :param description: A description of the snapshot. ...
python
def create_snapshot(self, volume_id, description=None): """ Create a snapshot of an existing EBS Volume. :type volume_id: str :param volume_id: The ID of the volume to be snapshot'ed :type description: str :param description: A description of the snapshot. ...
[ "def", "create_snapshot", "(", "self", ",", "volume_id", ",", "description", "=", "None", ")", ":", "params", "=", "{", "'VolumeId'", ":", "volume_id", "}", "if", "description", ":", "params", "[", "'Description'", "]", "=", "description", "[", "0", ":", ...
Create a snapshot of an existing EBS Volume. :type volume_id: str :param volume_id: The ID of the volume to be snapshot'ed :type description: str :param description: A description of the snapshot. Limited to 255 characters. :rtype: bool :ret...
[ "Create", "a", "snapshot", "of", "an", "existing", "EBS", "Volume", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1458-L1481
51,330
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_snapshot_attribute
def get_snapshot_attribute(self, snapshot_id, attribute='createVolumePermission'): """ Get information about an attribute of a snapshot. Only one attribute can be specified per call. :type snapshot_id: str :param snapshot_id: The ID of the snapsho...
python
def get_snapshot_attribute(self, snapshot_id, attribute='createVolumePermission'): """ Get information about an attribute of a snapshot. Only one attribute can be specified per call. :type snapshot_id: str :param snapshot_id: The ID of the snapsho...
[ "def", "get_snapshot_attribute", "(", "self", ",", "snapshot_id", ",", "attribute", "=", "'createVolumePermission'", ")", ":", "params", "=", "{", "'Attribute'", ":", "attribute", "}", "if", "snapshot_id", ":", "params", "[", "'SnapshotId'", "]", "=", "snapshot_...
Get information about an attribute of a snapshot. Only one attribute can be specified per call. :type snapshot_id: str :param snapshot_id: The ID of the snapshot. :type attribute: str :param attribute: The requested attribute. Valid values are: * cr...
[ "Get", "information", "about", "an", "attribute", "of", "a", "snapshot", ".", "Only", "one", "attribute", "can", "be", "specified", "per", "call", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1635-L1656
51,331
yyuu/botornado
boto/ec2/connection.py
EC2Connection.reset_snapshot_attribute
def reset_snapshot_attribute(self, snapshot_id, attribute='createVolumePermission'): """ Resets an attribute of a snapshot to its default value. :type snapshot_id: string :param snapshot_id: ID of the snapshot :type attribute: string :pa...
python
def reset_snapshot_attribute(self, snapshot_id, attribute='createVolumePermission'): """ Resets an attribute of a snapshot to its default value. :type snapshot_id: string :param snapshot_id: ID of the snapshot :type attribute: string :pa...
[ "def", "reset_snapshot_attribute", "(", "self", ",", "snapshot_id", ",", "attribute", "=", "'createVolumePermission'", ")", ":", "params", "=", "{", "'SnapshotId'", ":", "snapshot_id", ",", "'Attribute'", ":", "attribute", "}", "return", "self", ".", "get_status",...
Resets an attribute of a snapshot to its default value. :type snapshot_id: string :param snapshot_id: ID of the snapshot :type attribute: string :param attribute: The attribute to reset :rtype: bool :return: Whether the operation succeeded or not
[ "Resets", "an", "attribute", "of", "a", "snapshot", "to", "its", "default", "value", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1692-L1708
51,332
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_all_key_pairs
def get_all_key_pairs(self, keynames=None, filters=None): """ Get all key pairs associated with your account. :type keynames: list :param keynames: A list of the names of keypairs to retrieve. If not provided, all key pairs will be returned. :type filte...
python
def get_all_key_pairs(self, keynames=None, filters=None): """ Get all key pairs associated with your account. :type keynames: list :param keynames: A list of the names of keypairs to retrieve. If not provided, all key pairs will be returned. :type filte...
[ "def", "get_all_key_pairs", "(", "self", ",", "keynames", "=", "None", ",", "filters", "=", "None", ")", ":", "params", "=", "{", "}", "if", "keynames", ":", "self", ".", "build_list_params", "(", "params", ",", "keynames", ",", "'KeyName'", ")", "if", ...
Get all key pairs associated with your account. :type keynames: list :param keynames: A list of the names of keypairs to retrieve. If not provided, all key pairs will be returned. :type filters: dict :param filters: Optional filters that can be used to limit ...
[ "Get", "all", "key", "pairs", "associated", "with", "your", "account", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1712-L1739
51,333
yyuu/botornado
boto/ec2/connection.py
EC2Connection.create_key_pair
def create_key_pair(self, key_name): """ Create a new key pair for your account. This will create the key pair within the region you are currently connected to. :type key_name: string :param key_name: The name of the new keypair :rtype: :class:`boto.ec2.keypair....
python
def create_key_pair(self, key_name): """ Create a new key pair for your account. This will create the key pair within the region you are currently connected to. :type key_name: string :param key_name: The name of the new keypair :rtype: :class:`boto.ec2.keypair....
[ "def", "create_key_pair", "(", "self", ",", "key_name", ")", ":", "params", "=", "{", "'KeyName'", ":", "key_name", "}", "return", "self", ".", "get_object", "(", "'CreateKeyPair'", ",", "params", ",", "KeyPair", ",", "verb", "=", "'POST'", ")" ]
Create a new key pair for your account. This will create the key pair within the region you are currently connected to. :type key_name: string :param key_name: The name of the new keypair :rtype: :class:`boto.ec2.keypair.KeyPair` :return: The newly created :class:`boto....
[ "Create", "a", "new", "key", "pair", "for", "your", "account", ".", "This", "will", "create", "the", "key", "pair", "within", "the", "region", "you", "are", "currently", "connected", "to", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1759-L1774
51,334
yyuu/botornado
boto/ec2/connection.py
EC2Connection.import_key_pair
def import_key_pair(self, key_name, public_key_material): """ mports the public key from an RSA key pair that you created with a third-party tool. Supported formats: * OpenSSH public key format (e.g., the format in ~/.ssh/authorized_keys) * Base64 encoded DER...
python
def import_key_pair(self, key_name, public_key_material): """ mports the public key from an RSA key pair that you created with a third-party tool. Supported formats: * OpenSSH public key format (e.g., the format in ~/.ssh/authorized_keys) * Base64 encoded DER...
[ "def", "import_key_pair", "(", "self", ",", "key_name", ",", "public_key_material", ")", ":", "public_key_material", "=", "base64", ".", "b64encode", "(", "public_key_material", ")", "params", "=", "{", "'KeyName'", ":", "key_name", ",", "'PublicKeyMaterial'", ":"...
mports the public key from an RSA key pair that you created with a third-party tool. Supported formats: * OpenSSH public key format (e.g., the format in ~/.ssh/authorized_keys) * Base64 encoded DER format * SSH public key file format as specified in RFC4716 ...
[ "mports", "the", "public", "key", "from", "an", "RSA", "key", "pair", "that", "you", "created", "with", "a", "third", "-", "party", "tool", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1786-L1821
51,335
yyuu/botornado
boto/ec2/connection.py
EC2Connection.delete_security_group
def delete_security_group(self, name=None, group_id=None): """ Delete a security group from your account. :type name: string :param name: The name of the security group to delete. :type group_id: string :param group_id: The ID of the security group to delete within ...
python
def delete_security_group(self, name=None, group_id=None): """ Delete a security group from your account. :type name: string :param name: The name of the security group to delete. :type group_id: string :param group_id: The ID of the security group to delete within ...
[ "def", "delete_security_group", "(", "self", ",", "name", "=", "None", ",", "group_id", "=", "None", ")", ":", "params", "=", "{", "}", "if", "name", "is", "not", "None", ":", "params", "[", "'GroupName'", "]", "=", "name", "elif", "group_id", "is", ...
Delete a security group from your account. :type name: string :param name: The name of the security group to delete. :type group_id: string :param group_id: The ID of the security group to delete within a VPC. :rtype: bool :return: True if successful.
[ "Delete", "a", "security", "group", "from", "your", "account", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1896-L1917
51,336
yyuu/botornado
boto/ec2/connection.py
EC2Connection.authorize_security_group
def authorize_security_group(self, group_name=None, src_security_group_name=None, src_security_group_owner_id=None, ip_protocol=None, from_port=None, to_port=None, cidr_ip=None, group_id=N...
python
def authorize_security_group(self, group_name=None, src_security_group_name=None, src_security_group_owner_id=None, ip_protocol=None, from_port=None, to_port=None, cidr_ip=None, group_id=N...
[ "def", "authorize_security_group", "(", "self", ",", "group_name", "=", "None", ",", "src_security_group_name", "=", "None", ",", "src_security_group_owner_id", "=", "None", ",", "ip_protocol", "=", "None", ",", "from_port", "=", "None", ",", "to_port", "=", "No...
Add a new rule to an existing security group. You need to pass in either src_security_group_name and src_security_group_owner_id OR ip_protocol, from_port, to_port, and cidr_ip. In other words, either you are authorizing another group or you are authorizing some ip-based rule. ...
[ "Add", "a", "new", "rule", "to", "an", "existing", "security", "group", ".", "You", "need", "to", "pass", "in", "either", "src_security_group_name", "and", "src_security_group_owner_id", "OR", "ip_protocol", "from_port", "to_port", "and", "cidr_ip", ".", "In", "...
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L1973-L2057
51,337
yyuu/botornado
boto/ec2/connection.py
EC2Connection.authorize_security_group_egress
def authorize_security_group_egress(self, group_id, ip_protocol, from_port=None, to_port=None, src_group_id=None, ...
python
def authorize_security_group_egress(self, group_id, ip_protocol, from_port=None, to_port=None, src_group_id=None, ...
[ "def", "authorize_security_group_egress", "(", "self", ",", "group_id", ",", "ip_protocol", ",", "from_port", "=", "None", ",", "to_port", "=", "None", ",", "src_group_id", "=", "None", ",", "cidr_ip", "=", "None", ")", ":", "params", "=", "{", "'GroupId'", ...
The action adds one or more egress rules to a VPC security group. Specifically, this action permits instances in a security group to send traffic to one or more destination CIDR IP address ranges, or to one or more destination security groups in the same VPC.
[ "The", "action", "adds", "one", "or", "more", "egress", "rules", "to", "a", "VPC", "security", "group", ".", "Specifically", "this", "action", "permits", "instances", "in", "a", "security", "group", "to", "send", "traffic", "to", "one", "or", "more", "dest...
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2059-L2088
51,338
yyuu/botornado
boto/ec2/connection.py
EC2Connection.revoke_security_group
def revoke_security_group(self, group_name=None, src_security_group_name=None, src_security_group_owner_id=None, ip_protocol=None, from_port=None, to_port=None, cidr_ip=None, group_id=None, src_securi...
python
def revoke_security_group(self, group_name=None, src_security_group_name=None, src_security_group_owner_id=None, ip_protocol=None, from_port=None, to_port=None, cidr_ip=None, group_id=None, src_securi...
[ "def", "revoke_security_group", "(", "self", ",", "group_name", "=", "None", ",", "src_security_group_name", "=", "None", ",", "src_security_group_owner_id", "=", "None", ",", "ip_protocol", "=", "None", ",", "from_port", "=", "None", ",", "to_port", "=", "None"...
Remove an existing rule from an existing security group. You need to pass in either src_security_group_name and src_security_group_owner_id OR ip_protocol, from_port, to_port, and cidr_ip. In other words, either you are revoking another group or you are revoking some ip-based rule. ...
[ "Remove", "an", "existing", "rule", "from", "an", "existing", "security", "group", ".", "You", "need", "to", "pass", "in", "either", "src_security_group_name", "and", "src_security_group_owner_id", "OR", "ip_protocol", "from_port", "to_port", "and", "cidr_ip", ".", ...
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2162-L2230
51,339
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_all_regions
def get_all_regions(self, region_names=None, filters=None): """ Get all available regions for the EC2 service. :type region_names: list of str :param region_names: Names of regions to limit output :type filters: dict :param filters: Optional filters that can be used to ...
python
def get_all_regions(self, region_names=None, filters=None): """ Get all available regions for the EC2 service. :type region_names: list of str :param region_names: Names of regions to limit output :type filters: dict :param filters: Optional filters that can be used to ...
[ "def", "get_all_regions", "(", "self", ",", "region_names", "=", "None", ",", "filters", "=", "None", ")", ":", "params", "=", "{", "}", "if", "region_names", ":", "self", ".", "build_list_params", "(", "params", ",", "region_names", ",", "'RegionName'", "...
Get all available regions for the EC2 service. :type region_names: list of str :param region_names: Names of regions to limit output :type filters: dict :param filters: Optional filters that can be used to limit the results returned. Filters are provided ...
[ "Get", "all", "available", "regions", "for", "the", "EC2", "service", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2289-L2318
51,340
yyuu/botornado
boto/ec2/connection.py
EC2Connection.monitor_instances
def monitor_instances(self, instance_ids): """ Enable CloudWatch monitoring for the supplied instances. :type instance_id: list of strings :param instance_id: The instance ids :rtype: list :return: A list of :class:`boto.ec2.instanceinfo.InstanceInfo` """ ...
python
def monitor_instances(self, instance_ids): """ Enable CloudWatch monitoring for the supplied instances. :type instance_id: list of strings :param instance_id: The instance ids :rtype: list :return: A list of :class:`boto.ec2.instanceinfo.InstanceInfo` """ ...
[ "def", "monitor_instances", "(", "self", ",", "instance_ids", ")", ":", "params", "=", "{", "}", "self", ".", "build_list_params", "(", "params", ",", "instance_ids", ",", "'InstanceId'", ")", "return", "self", ".", "get_list", "(", "'MonitorInstances'", ",", ...
Enable CloudWatch monitoring for the supplied instances. :type instance_id: list of strings :param instance_id: The instance ids :rtype: list :return: A list of :class:`boto.ec2.instanceinfo.InstanceInfo`
[ "Enable", "CloudWatch", "monitoring", "for", "the", "supplied", "instances", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2439-L2452
51,341
yyuu/botornado
boto/ec2/connection.py
EC2Connection.unmonitor_instances
def unmonitor_instances(self, instance_ids): """ Disable CloudWatch monitoring for the supplied instance. :type instance_id: list of string :param instance_id: The instance id :rtype: list :return: A list of :class:`boto.ec2.instanceinfo.InstanceInfo` """ ...
python
def unmonitor_instances(self, instance_ids): """ Disable CloudWatch monitoring for the supplied instance. :type instance_id: list of string :param instance_id: The instance id :rtype: list :return: A list of :class:`boto.ec2.instanceinfo.InstanceInfo` """ ...
[ "def", "unmonitor_instances", "(", "self", ",", "instance_ids", ")", ":", "params", "=", "{", "}", "self", ".", "build_list_params", "(", "params", ",", "instance_ids", ",", "'InstanceId'", ")", "return", "self", ".", "get_list", "(", "'UnmonitorInstances'", "...
Disable CloudWatch monitoring for the supplied instance. :type instance_id: list of string :param instance_id: The instance id :rtype: list :return: A list of :class:`boto.ec2.instanceinfo.InstanceInfo`
[ "Disable", "CloudWatch", "monitoring", "for", "the", "supplied", "instance", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2467-L2480
51,342
yyuu/botornado
boto/ec2/connection.py
EC2Connection.bundle_instance
def bundle_instance(self, instance_id, s3_bucket, s3_prefix, s3_upload_policy): """ Bundle Windows instance. :type instance_id: string :param instance_id: The instance id :type s3_bucket: string :pa...
python
def bundle_instance(self, instance_id, s3_bucket, s3_prefix, s3_upload_policy): """ Bundle Windows instance. :type instance_id: string :param instance_id: The instance id :type s3_bucket: string :pa...
[ "def", "bundle_instance", "(", "self", ",", "instance_id", ",", "s3_bucket", ",", "s3_prefix", ",", "s3_upload_policy", ")", ":", "params", "=", "{", "'InstanceId'", ":", "instance_id", ",", "'Storage.S3.Bucket'", ":", "s3_bucket", ",", "'Storage.S3.Prefix'", ":",...
Bundle Windows instance. :type instance_id: string :param instance_id: The instance id :type s3_bucket: string :param s3_bucket: The bucket in which the AMI should be stored. :type s3_prefix: string :param s3_prefix: The beginning of the file name for the AMI. ...
[ "Bundle", "Windows", "instance", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2499-L2531
51,343
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_all_bundle_tasks
def get_all_bundle_tasks(self, bundle_ids=None, filters=None): """ Retrieve current bundling tasks. If no bundle id is specified, all tasks are retrieved. :type bundle_ids: list :param bundle_ids: A list of strings containing identifiers for previously...
python
def get_all_bundle_tasks(self, bundle_ids=None, filters=None): """ Retrieve current bundling tasks. If no bundle id is specified, all tasks are retrieved. :type bundle_ids: list :param bundle_ids: A list of strings containing identifiers for previously...
[ "def", "get_all_bundle_tasks", "(", "self", ",", "bundle_ids", "=", "None", ",", "filters", "=", "None", ")", ":", "params", "=", "{", "}", "if", "bundle_ids", ":", "self", ".", "build_list_params", "(", "params", ",", "bundle_ids", ",", "'BundleId'", ")",...
Retrieve current bundling tasks. If no bundle id is specified, all tasks are retrieved. :type bundle_ids: list :param bundle_ids: A list of strings containing identifiers for previously created bundling tasks. :type filters: dict :param filters: Optio...
[ "Retrieve", "current", "bundling", "tasks", ".", "If", "no", "bundle", "id", "is", "specified", "all", "tasks", "are", "retrieved", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2533-L2560
51,344
yyuu/botornado
boto/ec2/connection.py
EC2Connection.cancel_bundle_task
def cancel_bundle_task(self, bundle_id): """ Cancel a previously submitted bundle task :type bundle_id: string :param bundle_id: The identifier of the bundle task to cancel. """ params = {'BundleId' : bundle_id} return self.get_object('CancelBundleTask', params,...
python
def cancel_bundle_task(self, bundle_id): """ Cancel a previously submitted bundle task :type bundle_id: string :param bundle_id: The identifier of the bundle task to cancel. """ params = {'BundleId' : bundle_id} return self.get_object('CancelBundleTask', params,...
[ "def", "cancel_bundle_task", "(", "self", ",", "bundle_id", ")", ":", "params", "=", "{", "'BundleId'", ":", "bundle_id", "}", "return", "self", ".", "get_object", "(", "'CancelBundleTask'", ",", "params", ",", "BundleInstanceTask", ",", "verb", "=", "'POST'",...
Cancel a previously submitted bundle task :type bundle_id: string :param bundle_id: The identifier of the bundle task to cancel.
[ "Cancel", "a", "previously", "submitted", "bundle", "task" ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2562-L2572
51,345
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_password_data
def get_password_data(self, instance_id): """ Get encrypted administrator password for a Windows instance. :type instance_id: string :param instance_id: The identifier of the instance to retrieve the password for. """ params = {'InstanceId' :...
python
def get_password_data(self, instance_id): """ Get encrypted administrator password for a Windows instance. :type instance_id: string :param instance_id: The identifier of the instance to retrieve the password for. """ params = {'InstanceId' :...
[ "def", "get_password_data", "(", "self", ",", "instance_id", ")", ":", "params", "=", "{", "'InstanceId'", ":", "instance_id", "}", "rs", "=", "self", ".", "get_object", "(", "'GetPasswordData'", ",", "params", ",", "ResultSet", ",", "verb", "=", "'POST'", ...
Get encrypted administrator password for a Windows instance. :type instance_id: string :param instance_id: The identifier of the instance to retrieve the password for.
[ "Get", "encrypted", "administrator", "password", "for", "a", "Windows", "instance", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2574-L2585
51,346
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_all_placement_groups
def get_all_placement_groups(self, groupnames=None, filters=None): """ Get all placement groups associated with your account in a region. :type groupnames: list :param groupnames: A list of the names of placement groups to retrieve. If not provided, all placem...
python
def get_all_placement_groups(self, groupnames=None, filters=None): """ Get all placement groups associated with your account in a region. :type groupnames: list :param groupnames: A list of the names of placement groups to retrieve. If not provided, all placem...
[ "def", "get_all_placement_groups", "(", "self", ",", "groupnames", "=", "None", ",", "filters", "=", "None", ")", ":", "params", "=", "{", "}", "if", "groupnames", ":", "self", ".", "build_list_params", "(", "params", ",", "groupnames", ",", "'GroupName'", ...
Get all placement groups associated with your account in a region. :type groupnames: list :param groupnames: A list of the names of placement groups to retrieve. If not provided, all placement groups will be returned. :type filters: dict ...
[ "Get", "all", "placement", "groups", "associated", "with", "your", "account", "in", "a", "region", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2591-L2619
51,347
yyuu/botornado
boto/ec2/connection.py
EC2Connection.create_placement_group
def create_placement_group(self, name, strategy='cluster'): """ Create a new placement group for your account. This will create the placement group within the region you are currently connected to. :type name: string :param name: The name of the new placement group ...
python
def create_placement_group(self, name, strategy='cluster'): """ Create a new placement group for your account. This will create the placement group within the region you are currently connected to. :type name: string :param name: The name of the new placement group ...
[ "def", "create_placement_group", "(", "self", ",", "name", ",", "strategy", "=", "'cluster'", ")", ":", "params", "=", "{", "'GroupName'", ":", "name", ",", "'Strategy'", ":", "strategy", "}", "group", "=", "self", ".", "get_status", "(", "'CreatePlacementGr...
Create a new placement group for your account. This will create the placement group within the region you are currently connected to. :type name: string :param name: The name of the new placement group :type strategy: string :param strategy: The placement strategy of th...
[ "Create", "a", "new", "placement", "group", "for", "your", "account", ".", "This", "will", "create", "the", "placement", "group", "within", "the", "region", "you", "are", "currently", "connected", "to", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2621-L2639
51,348
yyuu/botornado
boto/ec2/connection.py
EC2Connection.get_all_tags
def get_all_tags(self, filters=None): """ Retrieve all the metadata tags associated with your account. :type filters: dict :param filters: Optional filters that can be used to limit the results returned. Filters are provided in the form o...
python
def get_all_tags(self, filters=None): """ Retrieve all the metadata tags associated with your account. :type filters: dict :param filters: Optional filters that can be used to limit the results returned. Filters are provided in the form o...
[ "def", "get_all_tags", "(", "self", ",", "filters", "=", "None", ")", ":", "params", "=", "{", "}", "if", "filters", ":", "self", ".", "build_filter_params", "(", "params", ",", "filters", ")", "return", "self", ".", "get_list", "(", "'DescribeTags'", ",...
Retrieve all the metadata tags associated with your account. :type filters: dict :param filters: Optional filters that can be used to limit the results returned. Filters are provided in the form of a dictionary consisting of filte...
[ "Retrieve", "all", "the", "metadata", "tags", "associated", "with", "your", "account", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2664-L2685
51,349
yyuu/botornado
boto/ec2/connection.py
EC2Connection.create_network_interface
def create_network_interface(self, subnet_id, private_ip_address=None, description=None, groups=None): """ Creates a network interface in the specified subnet. :type subnet_id: str :param subnet_id: The ID of the subnet to associate with the ...
python
def create_network_interface(self, subnet_id, private_ip_address=None, description=None, groups=None): """ Creates a network interface in the specified subnet. :type subnet_id: str :param subnet_id: The ID of the subnet to associate with the ...
[ "def", "create_network_interface", "(", "self", ",", "subnet_id", ",", "private_ip_address", "=", "None", ",", "description", "=", "None", ",", "groups", "=", "None", ")", ":", "params", "=", "{", "'SubnetId'", ":", "subnet_id", "}", "if", "private_ip_address"...
Creates a network interface in the specified subnet. :type subnet_id: str :param subnet_id: The ID of the subnet to associate with the network interface. :type private_ip_address: str :param private_ip_address: The private IP address of the network interface. I...
[ "Creates", "a", "network", "interface", "in", "the", "specified", "subnet", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2756-L2795
51,350
yyuu/botornado
boto/ec2/connection.py
EC2Connection.attach_network_interface
def attach_network_interface(self, network_interface_id, instance_id, device_index): """ Attaches a network interface to an instance. :type network_interface_id: str :param network_interface_id: The ID of the network interface to attach. :type i...
python
def attach_network_interface(self, network_interface_id, instance_id, device_index): """ Attaches a network interface to an instance. :type network_interface_id: str :param network_interface_id: The ID of the network interface to attach. :type i...
[ "def", "attach_network_interface", "(", "self", ",", "network_interface_id", ",", "instance_id", ",", "device_index", ")", ":", "params", "=", "{", "'NetworkInterfaceId'", ":", "network_interface_id", ",", "'InstanceId'", ":", "instance_id", ",", "'Deviceindex'", ":",...
Attaches a network interface to an instance. :type network_interface_id: str :param network_interface_id: The ID of the network interface to attach. :type instance_id: str :param instance_id: The ID of the instance that will be attached to the network interface. :t...
[ "Attaches", "a", "network", "interface", "to", "an", "instance", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2797-L2816
51,351
yyuu/botornado
boto/ec2/connection.py
EC2Connection.detach_network_interface
def detach_network_interface(self, network_interface_id, force=False): """ Detaches a network interface from an instance. :type network_interface_id: str :param network_interface_id: The ID of the network interface to detach. :type force: bool :param force: Set to true ...
python
def detach_network_interface(self, network_interface_id, force=False): """ Detaches a network interface from an instance. :type network_interface_id: str :param network_interface_id: The ID of the network interface to detach. :type force: bool :param force: Set to true ...
[ "def", "detach_network_interface", "(", "self", ",", "network_interface_id", ",", "force", "=", "False", ")", ":", "params", "=", "{", "'NetworkInterfaceId'", ":", "network_interface_id", "}", "if", "force", ":", "params", "[", "'Force'", "]", "=", "'true'", "...
Detaches a network interface from an instance. :type network_interface_id: str :param network_interface_id: The ID of the network interface to detach. :type force: bool :param force: Set to true to force a detachment.
[ "Detaches", "a", "network", "interface", "from", "an", "instance", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/connection.py#L2818-L2832
51,352
yyuu/botornado
boto/ec2/autoscale/group.py
AutoScalingGroup.set_capacity
def set_capacity(self, capacity): """ Set the desired capacity for the group. """ params = {'AutoScalingGroupName' : self.name, 'DesiredCapacity' : capacity} req = self.connection.get_object('SetDesiredCapacity', params, ...
python
def set_capacity(self, capacity): """ Set the desired capacity for the group. """ params = {'AutoScalingGroupName' : self.name, 'DesiredCapacity' : capacity} req = self.connection.get_object('SetDesiredCapacity', params, ...
[ "def", "set_capacity", "(", "self", ",", "capacity", ")", ":", "params", "=", "{", "'AutoScalingGroupName'", ":", "self", ".", "name", ",", "'DesiredCapacity'", ":", "capacity", "}", "req", "=", "self", ".", "connection", ".", "get_object", "(", "'SetDesired...
Set the desired capacity for the group.
[ "Set", "the", "desired", "capacity", "for", "the", "group", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/autoscale/group.py#L232-L241
51,353
yyuu/botornado
boto/ec2/autoscale/group.py
AutoScalingGroup.shutdown_instances
def shutdown_instances(self): """ Convenience method which shuts down all instances associated with this group. """ self.min_size = 0 self.max_size = 0 self.desired_capacity = 0 self.update()
python
def shutdown_instances(self): """ Convenience method which shuts down all instances associated with this group. """ self.min_size = 0 self.max_size = 0 self.desired_capacity = 0 self.update()
[ "def", "shutdown_instances", "(", "self", ")", ":", "self", ".", "min_size", "=", "0", "self", ".", "max_size", "=", "0", "self", ".", "desired_capacity", "=", "0", "self", ".", "update", "(", ")" ]
Convenience method which shuts down all instances associated with this group.
[ "Convenience", "method", "which", "shuts", "down", "all", "instances", "associated", "with", "this", "group", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/autoscale/group.py#L249-L257
51,354
yyuu/botornado
boto/ec2/autoscale/group.py
AutoScalingGroup.delete
def delete(self, force_delete=False): """ Delete this auto-scaling group if no instances attached or no scaling activities in progress. """ return self.connection.delete_auto_scaling_group(self.name, force_delete)
python
def delete(self, force_delete=False): """ Delete this auto-scaling group if no instances attached or no scaling activities in progress. """ return self.connection.delete_auto_scaling_group(self.name, force_delete)
[ "def", "delete", "(", "self", ",", "force_delete", "=", "False", ")", ":", "return", "self", ".", "connection", ".", "delete_auto_scaling_group", "(", "self", ".", "name", ",", "force_delete", ")" ]
Delete this auto-scaling group if no instances attached or no scaling activities in progress.
[ "Delete", "this", "auto", "-", "scaling", "group", "if", "no", "instances", "attached", "or", "no", "scaling", "activities", "in", "progress", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/autoscale/group.py#L259-L264
51,355
yyuu/botornado
boto/ec2/autoscale/group.py
AutoScalingGroup.get_activities
def get_activities(self, activity_ids=None, max_records=50): """ Get all activies for this group. """ return self.connection.get_all_activities(self, activity_ids, max_records)
python
def get_activities(self, activity_ids=None, max_records=50): """ Get all activies for this group. """ return self.connection.get_all_activities(self, activity_ids, max_records)
[ "def", "get_activities", "(", "self", ",", "activity_ids", "=", "None", ",", "max_records", "=", "50", ")", ":", "return", "self", ".", "connection", ".", "get_all_activities", "(", "self", ",", "activity_ids", ",", "max_records", ")" ]
Get all activies for this group.
[ "Get", "all", "activies", "for", "this", "group", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ec2/autoscale/group.py#L266-L271
51,356
yyuu/botornado
boto/iam/connection.py
IAMConnection.get_response
def get_response(self, action, params, path='/', parent=None, verb='GET', list_marker='Set'): """ Utility method to handle calls to IAM and parsing of responses. """ if not parent: parent = self response = self.make_request(action, params, path, v...
python
def get_response(self, action, params, path='/', parent=None, verb='GET', list_marker='Set'): """ Utility method to handle calls to IAM and parsing of responses. """ if not parent: parent = self response = self.make_request(action, params, path, v...
[ "def", "get_response", "(", "self", ",", "action", ",", "params", ",", "path", "=", "'/'", ",", "parent", "=", "None", ",", "verb", "=", "'GET'", ",", "list_marker", "=", "'Set'", ")", ":", "if", "not", "parent", ":", "parent", "=", "self", "response...
Utility method to handle calls to IAM and parsing of responses.
[ "Utility", "method", "to", "handle", "calls", "to", "IAM", "and", "parsing", "of", "responses", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L49-L68
51,357
yyuu/botornado
boto/iam/connection.py
IAMConnection.get_all_groups
def get_all_groups(self, path_prefix='/', marker=None, max_items=None): """ List the groups that have the specified path prefix. :type path_prefix: string :param path_prefix: If provided, only groups whose paths match the provided prefix will be returned. ...
python
def get_all_groups(self, path_prefix='/', marker=None, max_items=None): """ List the groups that have the specified path prefix. :type path_prefix: string :param path_prefix: If provided, only groups whose paths match the provided prefix will be returned. ...
[ "def", "get_all_groups", "(", "self", ",", "path_prefix", "=", "'/'", ",", "marker", "=", "None", ",", "max_items", "=", "None", ")", ":", "params", "=", "{", "}", "if", "path_prefix", ":", "params", "[", "'PathPrefix'", "]", "=", "path_prefix", "if", ...
List the groups that have the specified path prefix. :type path_prefix: string :param path_prefix: If provided, only groups whose paths match the provided prefix will be returned. :type marker: string :param marker: Use this only when paginating results and ...
[ "List", "the", "groups", "that", "have", "the", "specified", "path", "prefix", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L74-L102
51,358
yyuu/botornado
boto/iam/connection.py
IAMConnection.get_group
def get_group(self, group_name, marker=None, max_items=None): """ Return a list of users that are in the specified group. :type group_name: string :param group_name: The name of the group whose information should be returned. :type marker: string ...
python
def get_group(self, group_name, marker=None, max_items=None): """ Return a list of users that are in the specified group. :type group_name: string :param group_name: The name of the group whose information should be returned. :type marker: string ...
[ "def", "get_group", "(", "self", ",", "group_name", ",", "marker", "=", "None", ",", "max_items", "=", "None", ")", ":", "params", "=", "{", "'GroupName'", ":", "group_name", "}", "if", "marker", ":", "params", "[", "'Marker'", "]", "=", "marker", "if"...
Return a list of users that are in the specified group. :type group_name: string :param group_name: The name of the group whose information should be returned. :type marker: string :param marker: Use this only when paginating results and only in ...
[ "Return", "a", "list", "of", "users", "that", "are", "in", "the", "specified", "group", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L104-L128
51,359
yyuu/botornado
boto/iam/connection.py
IAMConnection.get_all_group_policies
def get_all_group_policies(self, group_name, marker=None, max_items=None): """ List the names of the policies associated with the specified group. :type group_name: string :param group_name: The name of the group the policy is associated with. :type marker: string :para...
python
def get_all_group_policies(self, group_name, marker=None, max_items=None): """ List the names of the policies associated with the specified group. :type group_name: string :param group_name: The name of the group the policy is associated with. :type marker: string :para...
[ "def", "get_all_group_policies", "(", "self", ",", "group_name", ",", "marker", "=", "None", ",", "max_items", "=", "None", ")", ":", "params", "=", "{", "'GroupName'", ":", "group_name", "}", "if", "marker", ":", "params", "[", "'Marker'", "]", "=", "ma...
List the names of the policies associated with the specified group. :type group_name: string :param group_name: The name of the group the policy is associated with. :type marker: string :param marker: Use this only when paginating results and only in follow-up re...
[ "List", "the", "names", "of", "the", "policies", "associated", "with", "the", "specified", "group", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L229-L254
51,360
yyuu/botornado
boto/iam/connection.py
IAMConnection.delete_group_policy
def delete_group_policy(self, group_name, policy_name): """ Deletes the specified policy document for the specified group. :type group_name: string :param group_name: The name of the group the policy is associated with. :type policy_name: string :param policy_name: The ...
python
def delete_group_policy(self, group_name, policy_name): """ Deletes the specified policy document for the specified group. :type group_name: string :param group_name: The name of the group the policy is associated with. :type policy_name: string :param policy_name: The ...
[ "def", "delete_group_policy", "(", "self", ",", "group_name", ",", "policy_name", ")", ":", "params", "=", "{", "'GroupName'", ":", "group_name", ",", "'PolicyName'", ":", "policy_name", "}", "return", "self", ".", "get_response", "(", "'DeleteGroupPolicy'", ","...
Deletes the specified policy document for the specified group. :type group_name: string :param group_name: The name of the group the policy is associated with. :type policy_name: string :param policy_name: The policy document to delete.
[ "Deletes", "the", "specified", "policy", "document", "for", "the", "specified", "group", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L271-L284
51,361
yyuu/botornado
boto/iam/connection.py
IAMConnection.get_all_users
def get_all_users(self, path_prefix='/', marker=None, max_items=None): """ List the users that have the specified path prefix. :type path_prefix: string :param path_prefix: If provided, only users whose paths match the provided prefix will be returned. ...
python
def get_all_users(self, path_prefix='/', marker=None, max_items=None): """ List the users that have the specified path prefix. :type path_prefix: string :param path_prefix: If provided, only users whose paths match the provided prefix will be returned. ...
[ "def", "get_all_users", "(", "self", ",", "path_prefix", "=", "'/'", ",", "marker", "=", "None", ",", "max_items", "=", "None", ")", ":", "params", "=", "{", "'PathPrefix'", ":", "path_prefix", "}", "if", "marker", ":", "params", "[", "'Marker'", "]", ...
List the users that have the specified path prefix. :type path_prefix: string :param path_prefix: If provided, only users whose paths match the provided prefix will be returned. :type marker: string :param marker: Use this only when paginating results and on...
[ "List", "the", "users", "that", "have", "the", "specified", "path", "prefix", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L286-L311
51,362
yyuu/botornado
boto/iam/connection.py
IAMConnection.get_user
def get_user(self, user_name=None): """ Retrieve information about the specified user. If the user_name is not specified, the user_name is determined implicitly based on the AWS Access Key ID used to sign the request. :type user_name: string :param user_name: The name o...
python
def get_user(self, user_name=None): """ Retrieve information about the specified user. If the user_name is not specified, the user_name is determined implicitly based on the AWS Access Key ID used to sign the request. :type user_name: string :param user_name: The name o...
[ "def", "get_user", "(", "self", ",", "user_name", "=", "None", ")", ":", "params", "=", "{", "}", "if", "user_name", ":", "params", "[", "'UserName'", "]", "=", "user_name", "return", "self", ".", "get_response", "(", "'GetUser'", ",", "params", ")" ]
Retrieve information about the specified user. If the user_name is not specified, the user_name is determined implicitly based on the AWS Access Key ID used to sign the request. :type user_name: string :param user_name: The name of the user to delete. If not s...
[ "Retrieve", "information", "about", "the", "specified", "user", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L347-L363
51,363
yyuu/botornado
boto/iam/connection.py
IAMConnection.get_all_user_policies
def get_all_user_policies(self, user_name, marker=None, max_items=None): """ List the names of the policies associated with the specified user. :type user_name: string :param user_name: The name of the user the policy is associated with. :type marker: string :param mark...
python
def get_all_user_policies(self, user_name, marker=None, max_items=None): """ List the names of the policies associated with the specified user. :type user_name: string :param user_name: The name of the user the policy is associated with. :type marker: string :param mark...
[ "def", "get_all_user_policies", "(", "self", ",", "user_name", ",", "marker", "=", "None", ",", "max_items", "=", "None", ")", ":", "params", "=", "{", "'UserName'", ":", "user_name", "}", "if", "marker", ":", "params", "[", "'Marker'", "]", "=", "marker...
List the names of the policies associated with the specified user. :type user_name: string :param user_name: The name of the user the policy is associated with. :type marker: string :param marker: Use this only when paginating results and only in follow-up reques...
[ "List", "the", "names", "of", "the", "policies", "associated", "with", "the", "specified", "user", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L388-L413
51,364
yyuu/botornado
boto/iam/connection.py
IAMConnection.delete_user_policy
def delete_user_policy(self, user_name, policy_name): """ Deletes the specified policy document for the specified user. :type user_name: string :param user_name: The name of the user the policy is associated with. :type policy_name: string :param policy_name: The policy...
python
def delete_user_policy(self, user_name, policy_name): """ Deletes the specified policy document for the specified user. :type user_name: string :param user_name: The name of the user the policy is associated with. :type policy_name: string :param policy_name: The policy...
[ "def", "delete_user_policy", "(", "self", ",", "user_name", ",", "policy_name", ")", ":", "params", "=", "{", "'UserName'", ":", "user_name", ",", "'PolicyName'", ":", "policy_name", "}", "return", "self", ".", "get_response", "(", "'DeleteUserPolicy'", ",", "...
Deletes the specified policy document for the specified user. :type user_name: string :param user_name: The name of the user the policy is associated with. :type policy_name: string :param policy_name: The policy document to delete.
[ "Deletes", "the", "specified", "policy", "document", "for", "the", "specified", "user", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L449-L462
51,365
yyuu/botornado
boto/iam/connection.py
IAMConnection.get_groups_for_user
def get_groups_for_user(self, user_name, marker=None, max_items=None): """ List the groups that a specified user belongs to. :type user_name: string :param user_name: The name of the user to list groups for. :type marker: string :param marker: Use this only when paginat...
python
def get_groups_for_user(self, user_name, marker=None, max_items=None): """ List the groups that a specified user belongs to. :type user_name: string :param user_name: The name of the user to list groups for. :type marker: string :param marker: Use this only when paginat...
[ "def", "get_groups_for_user", "(", "self", ",", "user_name", ",", "marker", "=", "None", ",", "max_items", "=", "None", ")", ":", "params", "=", "{", "'UserName'", ":", "user_name", "}", "if", "marker", ":", "params", "[", "'Marker'", "]", "=", "marker",...
List the groups that a specified user belongs to. :type user_name: string :param user_name: The name of the user to list groups for. :type marker: string :param marker: Use this only when paginating results and only in follow-up request after you've received a re...
[ "List", "the", "groups", "that", "a", "specified", "user", "belongs", "to", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L464-L489
51,366
yyuu/botornado
boto/iam/connection.py
IAMConnection.get_all_access_keys
def get_all_access_keys(self, user_name, marker=None, max_items=None): """ Get all access keys associated with an account. :type user_name: string :param user_name: The username of the user :type marker: string :param marker: Use this only when paginating results and on...
python
def get_all_access_keys(self, user_name, marker=None, max_items=None): """ Get all access keys associated with an account. :type user_name: string :param user_name: The username of the user :type marker: string :param marker: Use this only when paginating results and on...
[ "def", "get_all_access_keys", "(", "self", ",", "user_name", ",", "marker", "=", "None", ",", "max_items", "=", "None", ")", ":", "params", "=", "{", "'UserName'", ":", "user_name", "}", "if", "marker", ":", "params", "[", "'Marker'", "]", "=", "marker",...
Get all access keys associated with an account. :type user_name: string :param user_name: The username of the user :type marker: string :param marker: Use this only when paginating results and only in follow-up request after you've received a response ...
[ "Get", "all", "access", "keys", "associated", "with", "an", "account", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L495-L520
51,367
yyuu/botornado
boto/iam/connection.py
IAMConnection.update_access_key
def update_access_key(self, access_key_id, status, user_name=None): """ Changes the status of the specified access key from Active to Inactive or vice versa. This action can be used to disable a user's key as part of a key rotation workflow. If the user_name is not specified, t...
python
def update_access_key(self, access_key_id, status, user_name=None): """ Changes the status of the specified access key from Active to Inactive or vice versa. This action can be used to disable a user's key as part of a key rotation workflow. If the user_name is not specified, t...
[ "def", "update_access_key", "(", "self", ",", "access_key_id", ",", "status", ",", "user_name", "=", "None", ")", ":", "params", "=", "{", "'AccessKeyId'", ":", "access_key_id", ",", "'Status'", ":", "status", "}", "if", "user_name", ":", "params", "[", "'...
Changes the status of the specified access key from Active to Inactive or vice versa. This action can be used to disable a user's key as part of a key rotation workflow. If the user_name is not specified, the user_name is determined implicitly based on the AWS Access Key ID used to sig...
[ "Changes", "the", "status", "of", "the", "specified", "access", "key", "from", "Active", "to", "Inactive", "or", "vice", "versa", ".", "This", "action", "can", "be", "used", "to", "disable", "a", "user", "s", "key", "as", "part", "of", "a", "key", "rot...
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L537-L560
51,368
yyuu/botornado
boto/iam/connection.py
IAMConnection.delete_access_key
def delete_access_key(self, access_key_id, user_name=None): """ Delete an access key associated with a user. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the request. :type access_key_id: string :param access...
python
def delete_access_key(self, access_key_id, user_name=None): """ Delete an access key associated with a user. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the request. :type access_key_id: string :param access...
[ "def", "delete_access_key", "(", "self", ",", "access_key_id", ",", "user_name", "=", "None", ")", ":", "params", "=", "{", "'AccessKeyId'", ":", "access_key_id", "}", "if", "user_name", ":", "params", "[", "'UserName'", "]", "=", "user_name", "return", "sel...
Delete an access key associated with a user. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the request. :type access_key_id: string :param access_key_id: The ID of the access key to be deleted. :type user_name: strin...
[ "Delete", "an", "access", "key", "associated", "with", "a", "user", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L562-L579
51,369
yyuu/botornado
boto/iam/connection.py
IAMConnection.get_all_signing_certs
def get_all_signing_certs(self, marker=None, max_items=None, user_name=None): """ Get all signing certificates associated with an account. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the request...
python
def get_all_signing_certs(self, marker=None, max_items=None, user_name=None): """ Get all signing certificates associated with an account. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the request...
[ "def", "get_all_signing_certs", "(", "self", ",", "marker", "=", "None", ",", "max_items", "=", "None", ",", "user_name", "=", "None", ")", ":", "params", "=", "{", "}", "if", "marker", ":", "params", "[", "'Marker'", "]", "=", "marker", "if", "max_ite...
Get all signing certificates associated with an account. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the request. :type marker: string :param marker: Use this only when paginating results and only in ...
[ "Get", "all", "signing", "certificates", "associated", "with", "an", "account", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L585-L617
51,370
yyuu/botornado
boto/iam/connection.py
IAMConnection.update_signing_cert
def update_signing_cert(self, cert_id, status, user_name=None): """ Change the status of the specified signing certificate from Active to Inactive or vice versa. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the reques...
python
def update_signing_cert(self, cert_id, status, user_name=None): """ Change the status of the specified signing certificate from Active to Inactive or vice versa. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the reques...
[ "def", "update_signing_cert", "(", "self", ",", "cert_id", ",", "status", ",", "user_name", "=", "None", ")", ":", "params", "=", "{", "'CertificateId'", ":", "cert_id", ",", "'Status'", ":", "status", "}", "if", "user_name", ":", "params", "[", "'UserName...
Change the status of the specified signing certificate from Active to Inactive or vice versa. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the request. :type cert_id: string :param cert_id: The ID of the signing cert...
[ "Change", "the", "status", "of", "the", "specified", "signing", "certificate", "from", "Active", "to", "Inactive", "or", "vice", "versa", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L619-L640
51,371
yyuu/botornado
boto/iam/connection.py
IAMConnection.upload_signing_cert
def upload_signing_cert(self, cert_body, user_name=None): """ Uploads an X.509 signing certificate and associates it with the specified user. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the request. :type ce...
python
def upload_signing_cert(self, cert_body, user_name=None): """ Uploads an X.509 signing certificate and associates it with the specified user. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the request. :type ce...
[ "def", "upload_signing_cert", "(", "self", ",", "cert_body", ",", "user_name", "=", "None", ")", ":", "params", "=", "{", "'CertificateBody'", ":", "cert_body", "}", "if", "user_name", ":", "params", "[", "'UserName'", "]", "=", "user_name", "return", "self"...
Uploads an X.509 signing certificate and associates it with the specified user. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the request. :type cert_body: string :param cert_body: The body of the signing certificate....
[ "Uploads", "an", "X", ".", "509", "signing", "certificate", "and", "associates", "it", "with", "the", "specified", "user", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L642-L661
51,372
yyuu/botornado
boto/iam/connection.py
IAMConnection.delete_signing_cert
def delete_signing_cert(self, cert_id, user_name=None): """ Delete a signing certificate associated with a user. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the request. :type user_name: string :param user_n...
python
def delete_signing_cert(self, cert_id, user_name=None): """ Delete a signing certificate associated with a user. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the request. :type user_name: string :param user_n...
[ "def", "delete_signing_cert", "(", "self", ",", "cert_id", ",", "user_name", "=", "None", ")", ":", "params", "=", "{", "'CertificateId'", ":", "cert_id", "}", "if", "user_name", ":", "params", "[", "'UserName'", "]", "=", "user_name", "return", "self", "....
Delete a signing certificate associated with a user. If the user_name is not specified, it is determined implicitly based on the AWS Access Key ID used to sign the request. :type user_name: string :param user_name: The username of the user :type cert_id: string :param ...
[ "Delete", "a", "signing", "certificate", "associated", "with", "a", "user", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L663-L680
51,373
yyuu/botornado
boto/iam/connection.py
IAMConnection.get_all_server_certs
def get_all_server_certs(self, path_prefix='/', marker=None, max_items=None): """ Lists the server certificates that have the specified path prefix. If none exist, the action returns an empty list. :type path_prefix: string :param path_prefix: If pro...
python
def get_all_server_certs(self, path_prefix='/', marker=None, max_items=None): """ Lists the server certificates that have the specified path prefix. If none exist, the action returns an empty list. :type path_prefix: string :param path_prefix: If pro...
[ "def", "get_all_server_certs", "(", "self", ",", "path_prefix", "=", "'/'", ",", "marker", "=", "None", ",", "max_items", "=", "None", ")", ":", "params", "=", "{", "}", "if", "path_prefix", ":", "params", "[", "'PathPrefix'", "]", "=", "path_prefix", "i...
Lists the server certificates that have the specified path prefix. If none exist, the action returns an empty list. :type path_prefix: string :param path_prefix: If provided, only certificates whose paths match the provided prefix will be returned. :type mar...
[ "Lists", "the", "server", "certificates", "that", "have", "the", "specified", "path", "prefix", ".", "If", "none", "exist", "the", "action", "returns", "an", "empty", "list", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L686-L718
51,374
yyuu/botornado
boto/iam/connection.py
IAMConnection.upload_server_cert
def upload_server_cert(self, cert_name, cert_body, private_key, cert_chain=None, path=None): """ Uploads a server certificate entity for the AWS Account. The server certificate entity includes a public key certificate, a private key, and an optional certificate...
python
def upload_server_cert(self, cert_name, cert_body, private_key, cert_chain=None, path=None): """ Uploads a server certificate entity for the AWS Account. The server certificate entity includes a public key certificate, a private key, and an optional certificate...
[ "def", "upload_server_cert", "(", "self", ",", "cert_name", ",", "cert_body", ",", "private_key", ",", "cert_chain", "=", "None", ",", "path", "=", "None", ")", ":", "params", "=", "{", "'ServerCertificateName'", ":", "cert_name", ",", "'CertificateBody'", ":"...
Uploads a server certificate entity for the AWS Account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded. :type cert_name: string :param cert_name: The name for the server certific...
[ "Uploads", "a", "server", "certificate", "entity", "for", "the", "AWS", "Account", ".", "The", "server", "certificate", "entity", "includes", "a", "public", "key", "certificate", "a", "private", "key", "and", "an", "optional", "certificate", "chain", "which", ...
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L745-L782
51,375
yyuu/botornado
boto/iam/connection.py
IAMConnection.get_all_mfa_devices
def get_all_mfa_devices(self, user_name, marker=None, max_items=None): """ Get all MFA devices associated with an account. :type user_name: string :param user_name: The username of the user :type marker: string :param marker: Use this only when paginating results and on...
python
def get_all_mfa_devices(self, user_name, marker=None, max_items=None): """ Get all MFA devices associated with an account. :type user_name: string :param user_name: The username of the user :type marker: string :param marker: Use this only when paginating results and on...
[ "def", "get_all_mfa_devices", "(", "self", ",", "user_name", ",", "marker", "=", "None", ",", "max_items", "=", "None", ")", ":", "params", "=", "{", "'UserName'", ":", "user_name", "}", "if", "marker", ":", "params", "[", "'Marker'", "]", "=", "marker",...
Get all MFA devices associated with an account. :type user_name: string :param user_name: The username of the user :type marker: string :param marker: Use this only when paginating results and only in follow-up request after you've received a response ...
[ "Get", "all", "MFA", "devices", "associated", "with", "an", "account", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L812-L838
51,376
yyuu/botornado
boto/iam/connection.py
IAMConnection.enable_mfa_device
def enable_mfa_device(self, user_name, serial_number, auth_code_1, auth_code_2): """ Enables the specified MFA device and associates it with the specified user. :type user_name: string :param user_name: The username of the user :type se...
python
def enable_mfa_device(self, user_name, serial_number, auth_code_1, auth_code_2): """ Enables the specified MFA device and associates it with the specified user. :type user_name: string :param user_name: The username of the user :type se...
[ "def", "enable_mfa_device", "(", "self", ",", "user_name", ",", "serial_number", ",", "auth_code_1", ",", "auth_code_2", ")", ":", "params", "=", "{", "'UserName'", ":", "user_name", ",", "'SerialNumber'", ":", "serial_number", ",", "'AuthenticationCode1'", ":", ...
Enables the specified MFA device and associates it with the specified user. :type user_name: string :param user_name: The username of the user :type serial_number: string :param seriasl_number: The serial number which uniquely identifies t...
[ "Enables", "the", "specified", "MFA", "device", "and", "associates", "it", "with", "the", "specified", "user", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L840-L865
51,377
yyuu/botornado
boto/iam/connection.py
IAMConnection.deactivate_mfa_device
def deactivate_mfa_device(self, user_name, serial_number): """ Deactivates the specified MFA device and removes it from association with the user. :type user_name: string :param user_name: The username of the user :type serial_number: string :param seria...
python
def deactivate_mfa_device(self, user_name, serial_number): """ Deactivates the specified MFA device and removes it from association with the user. :type user_name: string :param user_name: The username of the user :type serial_number: string :param seria...
[ "def", "deactivate_mfa_device", "(", "self", ",", "user_name", ",", "serial_number", ")", ":", "params", "=", "{", "'UserName'", ":", "user_name", ",", "'SerialNumber'", ":", "serial_number", "}", "return", "self", ".", "get_response", "(", "'DeactivateMFADevice'"...
Deactivates the specified MFA device and removes it from association with the user. :type user_name: string :param user_name: The username of the user :type serial_number: string :param seriasl_number: The serial number which uniquely identifies ...
[ "Deactivates", "the", "specified", "MFA", "device", "and", "removes", "it", "from", "association", "with", "the", "user", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L867-L882
51,378
yyuu/botornado
boto/iam/connection.py
IAMConnection.resync_mfa_device
def resync_mfa_device(self, user_name, serial_number, auth_code_1, auth_code_2): """ Syncronizes the specified MFA device with the AWS servers. :type user_name: string :param user_name: The username of the user :type serial_number: string ...
python
def resync_mfa_device(self, user_name, serial_number, auth_code_1, auth_code_2): """ Syncronizes the specified MFA device with the AWS servers. :type user_name: string :param user_name: The username of the user :type serial_number: string ...
[ "def", "resync_mfa_device", "(", "self", ",", "user_name", ",", "serial_number", ",", "auth_code_1", ",", "auth_code_2", ")", ":", "params", "=", "{", "'UserName'", ":", "user_name", ",", "'SerialNumber'", ":", "serial_number", ",", "'AuthenticationCode1'", ":", ...
Syncronizes the specified MFA device with the AWS servers. :type user_name: string :param user_name: The username of the user :type serial_number: string :param seriasl_number: The serial number which uniquely identifies the MFA device. :...
[ "Syncronizes", "the", "specified", "MFA", "device", "with", "the", "AWS", "servers", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L884-L908
51,379
yyuu/botornado
boto/iam/connection.py
IAMConnection.update_login_profile
def update_login_profile(self, user_name, password): """ Resets the password associated with the user's login profile. :type user_name: string :param user_name: The name of the user :type password: string :param password: The new password for the user """ ...
python
def update_login_profile(self, user_name, password): """ Resets the password associated with the user's login profile. :type user_name: string :param user_name: The name of the user :type password: string :param password: The new password for the user """ ...
[ "def", "update_login_profile", "(", "self", ",", "user_name", ",", "password", ")", ":", "params", "=", "{", "'UserName'", ":", "user_name", ",", "'Password'", ":", "password", "}", "return", "self", ".", "get_response", "(", "'UpdateLoginProfile'", ",", "para...
Resets the password associated with the user's login profile. :type user_name: string :param user_name: The name of the user :type password: string :param password: The new password for the user
[ "Resets", "the", "password", "associated", "with", "the", "user", "s", "login", "profile", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L952-L965
51,380
yyuu/botornado
boto/iam/connection.py
IAMConnection.get_signin_url
def get_signin_url(self, service='ec2'): """ Get the URL where IAM users can use their login profile to sign in to this account's console. :type service: string :param service: Default service to go to in the console. """ alias = self.get_account_alias() ...
python
def get_signin_url(self, service='ec2'): """ Get the URL where IAM users can use their login profile to sign in to this account's console. :type service: string :param service: Default service to go to in the console. """ alias = self.get_account_alias() ...
[ "def", "get_signin_url", "(", "self", ",", "service", "=", "'ec2'", ")", ":", "alias", "=", "self", ".", "get_account_alias", "(", ")", "if", "not", "alias", ":", "raise", "Exception", "(", "'No alias associated with this account. Please use iam.create_account_alias(...
Get the URL where IAM users can use their login profile to sign in to this account's console. :type service: string :param service: Default service to go to in the console.
[ "Get", "the", "URL", "where", "IAM", "users", "can", "use", "their", "login", "profile", "to", "sign", "in", "to", "this", "account", "s", "console", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/iam/connection.py#L1006-L1018
51,381
yyuu/botornado
boto/ecs/item.py
ItemSet.next
def next(self): """Special paging functionality""" if self.iter == None: self.iter = iter(self.objs) try: return self.iter.next() except StopIteration: self.iter = None self.objs = [] if int(self.page) < int(self.total_pages): ...
python
def next(self): """Special paging functionality""" if self.iter == None: self.iter = iter(self.objs) try: return self.iter.next() except StopIteration: self.iter = None self.objs = [] if int(self.page) < int(self.total_pages): ...
[ "def", "next", "(", "self", ")", ":", "if", "self", ".", "iter", "==", "None", ":", "self", ".", "iter", "=", "iter", "(", "self", ".", "objs", ")", "try", ":", "return", "self", ".", "iter", ".", "next", "(", ")", "except", "StopIteration", ":",...
Special paging functionality
[ "Special", "paging", "functionality" ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/ecs/item.py#L130-L144
51,382
staggerpkg/stagger
stagger/fileutil.py
xread
def xread(file, length): "Read exactly length bytes from file; raise EOFError if file ends sooner." data = file.read(length) if len(data) != length: raise EOFError return data
python
def xread(file, length): "Read exactly length bytes from file; raise EOFError if file ends sooner." data = file.read(length) if len(data) != length: raise EOFError return data
[ "def", "xread", "(", "file", ",", "length", ")", ":", "data", "=", "file", ".", "read", "(", "length", ")", "if", "len", "(", "data", ")", "!=", "length", ":", "raise", "EOFError", "return", "data" ]
Read exactly length bytes from file; raise EOFError if file ends sooner.
[ "Read", "exactly", "length", "bytes", "from", "file", ";", "raise", "EOFError", "if", "file", "ends", "sooner", "." ]
6530db14afc5d7d8a4599b7f3b26158fb367d786
https://github.com/staggerpkg/stagger/blob/6530db14afc5d7d8a4599b7f3b26158fb367d786/stagger/fileutil.py#L43-L48
51,383
staggerpkg/stagger
stagger/fileutil.py
opened
def opened(filename, mode): "Open filename, or do nothing if filename is already an open file object" if isinstance(filename, str): file = open(filename, mode) try: yield file finally: if not file.closed: file.close() else: yield file...
python
def opened(filename, mode): "Open filename, or do nothing if filename is already an open file object" if isinstance(filename, str): file = open(filename, mode) try: yield file finally: if not file.closed: file.close() else: yield file...
[ "def", "opened", "(", "filename", ",", "mode", ")", ":", "if", "isinstance", "(", "filename", ",", "str", ")", ":", "file", "=", "open", "(", "filename", ",", "mode", ")", "try", ":", "yield", "file", "finally", ":", "if", "not", "file", ".", "clos...
Open filename, or do nothing if filename is already an open file object
[ "Open", "filename", "or", "do", "nothing", "if", "filename", "is", "already", "an", "open", "file", "object" ]
6530db14afc5d7d8a4599b7f3b26158fb367d786
https://github.com/staggerpkg/stagger/blob/6530db14afc5d7d8a4599b7f3b26158fb367d786/stagger/fileutil.py#L51-L61
51,384
staggerpkg/stagger
stagger/fileutil.py
replace_chunk
def replace_chunk(filename, offset, length, chunk, in_place=True, max_mem=5): """Replace length bytes of data with chunk, starting at offset. Any KeyboardInterrupts arriving while replace_chunk is runnning are deferred until the operation is complete. If in_place is true, the operation works directly o...
python
def replace_chunk(filename, offset, length, chunk, in_place=True, max_mem=5): """Replace length bytes of data with chunk, starting at offset. Any KeyboardInterrupts arriving while replace_chunk is runnning are deferred until the operation is complete. If in_place is true, the operation works directly o...
[ "def", "replace_chunk", "(", "filename", ",", "offset", ",", "length", ",", "chunk", ",", "in_place", "=", "True", ",", "max_mem", "=", "5", ")", ":", "with", "suppress_interrupt", "(", ")", ":", "_replace_chunk", "(", "filename", ",", "offset", ",", "le...
Replace length bytes of data with chunk, starting at offset. Any KeyboardInterrupts arriving while replace_chunk is runnning are deferred until the operation is complete. If in_place is true, the operation works directly on the original file; this is fast and works on files that are already open, but ...
[ "Replace", "length", "bytes", "of", "data", "with", "chunk", "starting", "at", "offset", ".", "Any", "KeyboardInterrupts", "arriving", "while", "replace_chunk", "is", "runnning", "are", "deferred", "until", "the", "operation", "is", "complete", "." ]
6530db14afc5d7d8a4599b7f3b26158fb367d786
https://github.com/staggerpkg/stagger/blob/6530db14afc5d7d8a4599b7f3b26158fb367d786/stagger/fileutil.py#L83-L102
51,385
staggerpkg/stagger
stagger/fileutil.py
_copy_chunk
def _copy_chunk(src, dst, length): "Copy length bytes from file src to file dst." BUFSIZE = 128 * 1024 while length > 0: l = min(BUFSIZE, length) buf = src.read(l) assert len(buf) == l dst.write(buf) length -= l
python
def _copy_chunk(src, dst, length): "Copy length bytes from file src to file dst." BUFSIZE = 128 * 1024 while length > 0: l = min(BUFSIZE, length) buf = src.read(l) assert len(buf) == l dst.write(buf) length -= l
[ "def", "_copy_chunk", "(", "src", ",", "dst", ",", "length", ")", ":", "BUFSIZE", "=", "128", "*", "1024", "while", "length", ">", "0", ":", "l", "=", "min", "(", "BUFSIZE", ",", "length", ")", "buf", "=", "src", ".", "read", "(", "l", ")", "as...
Copy length bytes from file src to file dst.
[ "Copy", "length", "bytes", "from", "file", "src", "to", "file", "dst", "." ]
6530db14afc5d7d8a4599b7f3b26158fb367d786
https://github.com/staggerpkg/stagger/blob/6530db14afc5d7d8a4599b7f3b26158fb367d786/stagger/fileutil.py#L145-L153
51,386
getsentry/symsynd
symsynd/symbolizer.py
Symbolizer.symbolize
def symbolize(self, dsym_path, image_vmaddr, image_addr, instruction_addr, cpu_name, symbolize_inlined=False): """Symbolizes a single frame based on the information provided. If the symbolication fails a `SymbolicationError` is raised. `dsym_path` is the pat...
python
def symbolize(self, dsym_path, image_vmaddr, image_addr, instruction_addr, cpu_name, symbolize_inlined=False): """Symbolizes a single frame based on the information provided. If the symbolication fails a `SymbolicationError` is raised. `dsym_path` is the pat...
[ "def", "symbolize", "(", "self", ",", "dsym_path", ",", "image_vmaddr", ",", "image_addr", ",", "instruction_addr", ",", "cpu_name", ",", "symbolize_inlined", "=", "False", ")", ":", "if", "self", ".", "_closed", ":", "raise", "RuntimeError", "(", "'Symbolizer...
Symbolizes a single frame based on the information provided. If the symbolication fails a `SymbolicationError` is raised. `dsym_path` is the path to the dsym file on the file system. `image_vmaddr` is the slide of the image. For most situations this can just be set to `0`. If it's ze...
[ "Symbolizes", "a", "single", "frame", "based", "on", "the", "information", "provided", ".", "If", "the", "symbolication", "fails", "a", "SymbolicationError", "is", "raised", "." ]
13825f10bfb9291fe7bcd13937ddf398e7104234
https://github.com/getsentry/symsynd/blob/13825f10bfb9291fe7bcd13937ddf398e7104234/symsynd/symbolizer.py#L43-L89
51,387
yyuu/botornado
boto/dynamodb/layer1.py
Layer1.list_tables
def list_tables(self, limit=None, start_table=None): """ Return a list of table names associated with the current account and endpoint. :type limit: int :param limit: The maximum number of tables to return. :type start_table: str :param limit: The name of the ta...
python
def list_tables(self, limit=None, start_table=None): """ Return a list of table names associated with the current account and endpoint. :type limit: int :param limit: The maximum number of tables to return. :type start_table: str :param limit: The name of the ta...
[ "def", "list_tables", "(", "self", ",", "limit", "=", "None", ",", "start_table", "=", "None", ")", ":", "data", "=", "{", "}", "if", "limit", ":", "data", "[", "'Limit'", "]", "=", "limit", "if", "start_table", ":", "data", "[", "'ExclusiveStartTableN...
Return a list of table names associated with the current account and endpoint. :type limit: int :param limit: The maximum number of tables to return. :type start_table: str :param limit: The name of the table that starts the list. If you ran a previous list_tables ...
[ "Return", "a", "list", "of", "table", "names", "associated", "with", "the", "current", "account", "and", "endpoint", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/dynamodb/layer1.py#L151-L172
51,388
yyuu/botornado
boto/dynamodb/layer1.py
Layer1.describe_table
def describe_table(self, table_name): """ Returns information about the table including current state of the table, primary key schema and when the table was created. :type table_name: str :param table_name: The name of the table to describe. """ data = {...
python
def describe_table(self, table_name): """ Returns information about the table including current state of the table, primary key schema and when the table was created. :type table_name: str :param table_name: The name of the table to describe. """ data = {...
[ "def", "describe_table", "(", "self", ",", "table_name", ")", ":", "data", "=", "{", "'TableName'", ":", "table_name", "}", "json_input", "=", "json", ".", "dumps", "(", "data", ")", "return", "self", ".", "make_request", "(", "'DescribeTable'", ",", "json...
Returns information about the table including current state of the table, primary key schema and when the table was created. :type table_name: str :param table_name: The name of the table to describe.
[ "Returns", "information", "about", "the", "table", "including", "current", "state", "of", "the", "table", "primary", "key", "schema", "and", "when", "the", "table", "was", "created", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/dynamodb/layer1.py#L174-L185
51,389
yyuu/botornado
boto/dynamodb/layer1.py
Layer1.create_table
def create_table(self, table_name, schema, provisioned_throughput): """ Add a new table to your account. The table name must be unique among those associated with the account issuing the request. This request triggers an asynchronous workflow to begin creating the table. When t...
python
def create_table(self, table_name, schema, provisioned_throughput): """ Add a new table to your account. The table name must be unique among those associated with the account issuing the request. This request triggers an asynchronous workflow to begin creating the table. When t...
[ "def", "create_table", "(", "self", ",", "table_name", ",", "schema", ",", "provisioned_throughput", ")", ":", "data", "=", "{", "'TableName'", ":", "table_name", ",", "'KeySchema'", ":", "schema", ",", "'ProvisionedThroughput'", ":", "provisioned_throughput", "}"...
Add a new table to your account. The table name must be unique among those associated with the account issuing the request. This request triggers an asynchronous workflow to begin creating the table. When the workflow is complete, the state of the table will be ACTIVE. :type t...
[ "Add", "a", "new", "table", "to", "your", "account", ".", "The", "table", "name", "must", "be", "unique", "among", "those", "associated", "with", "the", "account", "issuing", "the", "request", ".", "This", "request", "triggers", "an", "asynchronous", "workfl...
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/dynamodb/layer1.py#L187-L213
51,390
yyuu/botornado
boto/dynamodb/layer1.py
Layer1.delete_table
def delete_table(self, table_name): """ Deletes the table and all of it's data. After this request the table will be in the DELETING state until DynamoDB completes the delete operation. :type table_name: str :param table_name: The name of the table to delete. ""...
python
def delete_table(self, table_name): """ Deletes the table and all of it's data. After this request the table will be in the DELETING state until DynamoDB completes the delete operation. :type table_name: str :param table_name: The name of the table to delete. ""...
[ "def", "delete_table", "(", "self", ",", "table_name", ")", ":", "data", "=", "{", "'TableName'", ":", "table_name", "}", "json_input", "=", "json", ".", "dumps", "(", "data", ")", "return", "self", ".", "make_request", "(", "'DeleteTable'", ",", "json_inp...
Deletes the table and all of it's data. After this request the table will be in the DELETING state until DynamoDB completes the delete operation. :type table_name: str :param table_name: The name of the table to delete.
[ "Deletes", "the", "table", "and", "all", "of", "it", "s", "data", ".", "After", "this", "request", "the", "table", "will", "be", "in", "the", "DELETING", "state", "until", "DynamoDB", "completes", "the", "delete", "operation", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/dynamodb/layer1.py#L232-L243
51,391
yyuu/botornado
boto/dynamodb/layer1.py
Layer1.get_item
def get_item(self, table_name, key, attributes_to_get=None, consistent_read=False, object_hook=None): """ Return a set of attributes for an item that matches the supplied key. :type table_name: str :param table_name: The name of the table containing the item. ...
python
def get_item(self, table_name, key, attributes_to_get=None, consistent_read=False, object_hook=None): """ Return a set of attributes for an item that matches the supplied key. :type table_name: str :param table_name: The name of the table containing the item. ...
[ "def", "get_item", "(", "self", ",", "table_name", ",", "key", ",", "attributes_to_get", "=", "None", ",", "consistent_read", "=", "False", ",", "object_hook", "=", "None", ")", ":", "data", "=", "{", "'TableName'", ":", "table_name", ",", "'Key'", ":", ...
Return a set of attributes for an item that matches the supplied key. :type table_name: str :param table_name: The name of the table containing the item. :type key: dict :param key: A Python version of the Key data structure defined by DynamoDB. :type attri...
[ "Return", "a", "set", "of", "attributes", "for", "an", "item", "that", "matches", "the", "supplied", "key", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/dynamodb/layer1.py#L245-L281
51,392
yyuu/botornado
boto/dynamodb/layer1.py
Layer1.delete_item
def delete_item(self, table_name, key, expected=None, return_values=None, object_hook=None): """ Delete an item and all of it's attributes by primary key. You can perform a conditional delete by specifying an expected rule. :type table_nam...
python
def delete_item(self, table_name, key, expected=None, return_values=None, object_hook=None): """ Delete an item and all of it's attributes by primary key. You can perform a conditional delete by specifying an expected rule. :type table_nam...
[ "def", "delete_item", "(", "self", ",", "table_name", ",", "key", ",", "expected", "=", "None", ",", "return_values", "=", "None", ",", "object_hook", "=", "None", ")", ":", "data", "=", "{", "'TableName'", ":", "table_name", ",", "'Key'", ":", "key", ...
Delete an item and all of it's attributes by primary key. You can perform a conditional delete by specifying an expected rule. :type table_name: str :param table_name: The name of the table containing the item. :type key: dict :param key: A Python version of the Key dat...
[ "Delete", "an", "item", "and", "all", "of", "it", "s", "attributes", "by", "primary", "key", ".", "You", "can", "perform", "a", "conditional", "delete", "by", "specifying", "an", "expected", "rule", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/dynamodb/layer1.py#L378-L412
51,393
yyuu/botornado
boto/dynamodb/layer1.py
Layer1.query
def query(self, table_name, hash_key_value, range_key_conditions=None, attributes_to_get=None, limit=None, consistent_read=False, scan_index_forward=True, exclusive_start_key=None, object_hook=None): """ Perform a query of DynamoDB. This version is currently pu...
python
def query(self, table_name, hash_key_value, range_key_conditions=None, attributes_to_get=None, limit=None, consistent_read=False, scan_index_forward=True, exclusive_start_key=None, object_hook=None): """ Perform a query of DynamoDB. This version is currently pu...
[ "def", "query", "(", "self", ",", "table_name", ",", "hash_key_value", ",", "range_key_conditions", "=", "None", ",", "attributes_to_get", "=", "None", ",", "limit", "=", "None", ",", "consistent_read", "=", "False", ",", "scan_index_forward", "=", "True", ","...
Perform a query of DynamoDB. This version is currently punting and expecting you to provide a full and correct JSON body which is passed as is to DynamoDB. :type table_name: str :param table_name: The name of the table to query. :type hash_key_value: dict :param key: A...
[ "Perform", "a", "query", "of", "DynamoDB", ".", "This", "version", "is", "currently", "punting", "and", "expecting", "you", "to", "provide", "a", "full", "and", "correct", "JSON", "body", "which", "is", "passed", "as", "is", "to", "DynamoDB", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/dynamodb/layer1.py#L414-L473
51,394
yyuu/botornado
boto/dynamodb/layer1.py
Layer1.scan
def scan(self, table_name, scan_filter=None, attributes_to_get=None, limit=None, count=False, exclusive_start_key=None, object_hook=None): """ Perform a scan of DynamoDB. This version is currently punting and expecting you to provide a full and correct JSO...
python
def scan(self, table_name, scan_filter=None, attributes_to_get=None, limit=None, count=False, exclusive_start_key=None, object_hook=None): """ Perform a scan of DynamoDB. This version is currently punting and expecting you to provide a full and correct JSO...
[ "def", "scan", "(", "self", ",", "table_name", ",", "scan_filter", "=", "None", ",", "attributes_to_get", "=", "None", ",", "limit", "=", "None", ",", "count", "=", "False", ",", "exclusive_start_key", "=", "None", ",", "object_hook", "=", "None", ")", "...
Perform a scan of DynamoDB. This version is currently punting and expecting you to provide a full and correct JSON body which is passed as is to DynamoDB. :type table_name: str :param table_name: The name of the table to scan. :type scan_filter: dict :param scan_filter...
[ "Perform", "a", "scan", "of", "DynamoDB", ".", "This", "version", "is", "currently", "punting", "and", "expecting", "you", "to", "provide", "a", "full", "and", "correct", "JSON", "body", "which", "is", "passed", "as", "is", "to", "DynamoDB", "." ]
fffb056f5ff2324d1d5c1304014cfb1d899f602e
https://github.com/yyuu/botornado/blob/fffb056f5ff2324d1d5c1304014cfb1d899f602e/boto/dynamodb/layer1.py#L475-L521
51,395
gmichaeljaison/cv-utils
cv_utils/img_utils.py
remove_bg
def remove_bg(img, th=(240, 255)): """ Removes similar colored background in the given image. :param img: Input image :param th: Tuple(2) Background color threshold (lower-limit, upper-limit) :return: Background removed image as result """ if img.size == 0: return img i...
python
def remove_bg(img, th=(240, 255)): """ Removes similar colored background in the given image. :param img: Input image :param th: Tuple(2) Background color threshold (lower-limit, upper-limit) :return: Background removed image as result """ if img.size == 0: return img i...
[ "def", "remove_bg", "(", "img", ",", "th", "=", "(", "240", ",", "255", ")", ")", ":", "if", "img", ".", "size", "==", "0", ":", "return", "img", "img", "=", "gray3", "(", "img", ")", "# delete rows with complete background color", "h", ",", "w", "="...
Removes similar colored background in the given image. :param img: Input image :param th: Tuple(2) Background color threshold (lower-limit, upper-limit) :return: Background removed image as result
[ "Removes", "similar", "colored", "background", "in", "the", "given", "image", "." ]
a8251c870165a7428d8c468a6436aa41d0cf7c09
https://github.com/gmichaeljaison/cv-utils/blob/a8251c870165a7428d8c468a6436aa41d0cf7c09/cv_utils/img_utils.py#L20-L60
51,396
gmichaeljaison/cv-utils
cv_utils/img_utils.py
add_bg
def add_bg(img, padding, color=COL_WHITE): """ Adds a padding to the given image as background of specified color :param img: Input image. :param padding: constant padding around the image. :param color: background color that needs to filled for the newly padded region. :return: New image with ...
python
def add_bg(img, padding, color=COL_WHITE): """ Adds a padding to the given image as background of specified color :param img: Input image. :param padding: constant padding around the image. :param color: background color that needs to filled for the newly padded region. :return: New image with ...
[ "def", "add_bg", "(", "img", ",", "padding", ",", "color", "=", "COL_WHITE", ")", ":", "img", "=", "gray3", "(", "img", ")", "h", ",", "w", ",", "d", "=", "img", ".", "shape", "new_img", "=", "np", ".", "ones", "(", "(", "h", "+", "2", "*", ...
Adds a padding to the given image as background of specified color :param img: Input image. :param padding: constant padding around the image. :param color: background color that needs to filled for the newly padded region. :return: New image with background.
[ "Adds", "a", "padding", "to", "the", "given", "image", "as", "background", "of", "specified", "color" ]
a8251c870165a7428d8c468a6436aa41d0cf7c09
https://github.com/gmichaeljaison/cv-utils/blob/a8251c870165a7428d8c468a6436aa41d0cf7c09/cv_utils/img_utils.py#L63-L77
51,397
gmichaeljaison/cv-utils
cv_utils/img_utils.py
img_box
def img_box(img, box): """ Selects the sub-image inside the given box :param img: Image to crop from :param box: Box to crop from. Box can be either Box object or array of [x, y, width, height] :return: Cropped sub-image from the main image """ if isinstance(box, tuple): box = Box.f...
python
def img_box(img, box): """ Selects the sub-image inside the given box :param img: Image to crop from :param box: Box to crop from. Box can be either Box object or array of [x, y, width, height] :return: Cropped sub-image from the main image """ if isinstance(box, tuple): box = Box.f...
[ "def", "img_box", "(", "img", ",", "box", ")", ":", "if", "isinstance", "(", "box", ",", "tuple", ")", ":", "box", "=", "Box", ".", "from_tup", "(", "box", ")", "if", "len", "(", "img", ".", "shape", ")", "==", "3", ":", "return", "img", "[", ...
Selects the sub-image inside the given box :param img: Image to crop from :param box: Box to crop from. Box can be either Box object or array of [x, y, width, height] :return: Cropped sub-image from the main image
[ "Selects", "the", "sub", "-", "image", "inside", "the", "given", "box" ]
a8251c870165a7428d8c468a6436aa41d0cf7c09
https://github.com/gmichaeljaison/cv-utils/blob/a8251c870165a7428d8c468a6436aa41d0cf7c09/cv_utils/img_utils.py#L80-L94
51,398
gmichaeljaison/cv-utils
cv_utils/img_utils.py
add_text_img
def add_text_img(img, text, pos, box=None, color=None, thickness=1, scale=1, vertical=False): """ Adds the given text in the image. :param img: Input image :param text: String text :param pos: (x, y) in the image or relative to the given Box object :param box: Box object. If not None, the text ...
python
def add_text_img(img, text, pos, box=None, color=None, thickness=1, scale=1, vertical=False): """ Adds the given text in the image. :param img: Input image :param text: String text :param pos: (x, y) in the image or relative to the given Box object :param box: Box object. If not None, the text ...
[ "def", "add_text_img", "(", "img", ",", "text", ",", "pos", ",", "box", "=", "None", ",", "color", "=", "None", ",", "thickness", "=", "1", ",", "scale", "=", "1", ",", "vertical", "=", "False", ")", ":", "if", "color", "is", "None", ":", "color"...
Adds the given text in the image. :param img: Input image :param text: String text :param pos: (x, y) in the image or relative to the given Box object :param box: Box object. If not None, the text is placed inside the box. :param color: Color of the text. :param thickness: Thickness of the font...
[ "Adds", "the", "given", "text", "in", "the", "image", "." ]
a8251c870165a7428d8c468a6436aa41d0cf7c09
https://github.com/gmichaeljaison/cv-utils/blob/a8251c870165a7428d8c468a6436aa41d0cf7c09/cv_utils/img_utils.py#L115-L157
51,399
gmichaeljaison/cv-utils
cv_utils/img_utils.py
add_rect
def add_rect(img, box, color=None, thickness=1): """ Draws a bounding box inside the image. :param img: Input image :param box: Box object that defines the bounding box. :param color: Color of the box :param thickness: Thickness of line :return: Rectangle added image """ if color is...
python
def add_rect(img, box, color=None, thickness=1): """ Draws a bounding box inside the image. :param img: Input image :param box: Box object that defines the bounding box. :param color: Color of the box :param thickness: Thickness of line :return: Rectangle added image """ if color is...
[ "def", "add_rect", "(", "img", ",", "box", ",", "color", "=", "None", ",", "thickness", "=", "1", ")", ":", "if", "color", "is", "None", ":", "color", "=", "COL_GRAY", "box", "=", "box", ".", "to_int", "(", ")", "cv", ".", "rectangle", "(", "img"...
Draws a bounding box inside the image. :param img: Input image :param box: Box object that defines the bounding box. :param color: Color of the box :param thickness: Thickness of line :return: Rectangle added image
[ "Draws", "a", "bounding", "box", "inside", "the", "image", "." ]
a8251c870165a7428d8c468a6436aa41d0cf7c09
https://github.com/gmichaeljaison/cv-utils/blob/a8251c870165a7428d8c468a6436aa41d0cf7c09/cv_utils/img_utils.py#L160-L174