We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Documentation of security_groups argument doesn't mention VPC
The documentation for the 'security_groups' parameter for a LaunchConfiguration object could be better. As stated on:

http://docs.aws.amazon.com/cli/latest/reference/autoscaling/create-launch-configuration.html

"--security-groups (list)

The names of the security groups with which to associate Amazon EC2 or Amazon VPC instances. Specify Amazon EC2 security groups using security group names, such as websrv . Specify Amazon VPC security groups using security group IDs, such as sg-12345678 ."

In the Boto documentation for creating a launch configuration (http://boto.readthedocs.org/en/latest/ref/autoscale.html#boto.ec2.autoscale.launchconfig.LaunchConfiguration), the comment for the 'security_groups' parameter says:

"Names of the security groups with which to associate the EC2 instances."

In this comment, there is no mention of VPC instances or security group id's as seen in Amazon's own docs. I lost about a day of productivity figuring this out so I'm hoping that the documentation can be improved.


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `boto/ec2/autoscale/launchconfig.py`
Content:
```
1 # Copyright (c) 2009 Reza Lotun http://reza.lotun.name/
2 # Copyright (c) 2012 Amazon.com, Inc. or its affiliates.  All Rights Reserved
3 #
4 # Permission is hereby granted, free of charge, to any person obtaining a
5 # copy of this software and associated documentation files (the
6 # "Software"), to deal in the Software without restriction, including
7 # without limitation the rights to use, copy, modify, merge, publish, dis-
8 # tribute, sublicense, and/or sell copies of the Software, and to permit
9 # persons to whom the Software is furnished to do so, subject to the fol-
10 # lowing conditions:
11 #
12 # The above copyright notice and this permission notice shall be included
13 # in all copies or substantial portions of the Software.
14 #
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
17 # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
18 # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 # IN THE SOFTWARE.
22 
23 from datetime import datetime
24 from boto.resultset import ResultSet
25 from boto.ec2.elb.listelement import ListElement
26 import boto.utils
27 import base64
28 
29 # this should use the corresponding object from boto.ec2
30 
31 
32 class Ebs(object):
33     def __init__(self, connection=None, snapshot_id=None, volume_size=None):
34         self.connection = connection
35         self.snapshot_id = snapshot_id
36         self.volume_size = volume_size
37 
38     def __repr__(self):
39         return 'Ebs(%s, %s)' % (self.snapshot_id, self.volume_size)
40 
41     def startElement(self, name, attrs, connection):
42         pass
43 
44     def endElement(self, name, value, connection):
45         if name == 'SnapshotId':
46             self.snapshot_id = value
47         elif name == 'VolumeSize':
48             self.volume_size = value
49 
50 
51 class InstanceMonitoring(object):
52     def __init__(self, connection=None, enabled='false'):
53         self.connection = connection
54         self.enabled = enabled
55 
56     def __repr__(self):
57         return 'InstanceMonitoring(%s)' % self.enabled
58 
59     def startElement(self, name, attrs, connection):
60         pass
61 
62     def endElement(self, name, value, connection):
63         if name == 'Enabled':
64             self.enabled = value
65 
66 
67 # this should use the BlockDeviceMapping from boto.ec2.blockdevicemapping
68 class BlockDeviceMapping(object):
69     def __init__(self, connection=None, device_name=None, virtual_name=None):
70         self.connection = connection
71         self.device_name = None
72         self.virtual_name = None
73         self.ebs = None
74 
75     def __repr__(self):
76         return 'BlockDeviceMapping(%s, %s)' % (self.device_name,
77                                                self.virtual_name)
78 
79     def startElement(self, name, attrs, connection):
80         if name == 'Ebs':
81             self.ebs = Ebs(self)
82             return self.ebs
83 
84     def endElement(self, name, value, connection):
85         if name == 'DeviceName':
86             self.device_name = value
87         elif name == 'VirtualName':
88             self.virtual_name = value
89 
90 
91 class LaunchConfiguration(object):
92     def __init__(self, connection=None, name=None, image_id=None,
93                  key_name=None, security_groups=None, user_data=None,
94                  instance_type='m1.small', kernel_id=None,
95                  ramdisk_id=None, block_device_mappings=None,
96                  instance_monitoring=False, spot_price=None,
97                  instance_profile_name=None, ebs_optimized=False,
98                  associate_public_ip_address=None):
99         """
100         A launch configuration.
101 
102         :type name: str
103         :param name: Name of the launch configuration to create.
104 
105         :type image_id: str
106         :param image_id: Unique ID of the Amazon Machine Image (AMI) which was
107             assigned during registration.
108 
109         :type key_name: str
110         :param key_name: The name of the EC2 key pair.
111 
112         :type security_groups: list
113         :param security_groups: Names of the security groups with which to
114             associate the EC2 instances.
115 
116         :type user_data: str
117         :param user_data: The user data available to launched EC2 instances.
118 
119         :type instance_type: str
120         :param instance_type: The instance type
121 
122         :type kern_id: str
123         :param kern_id: Kernel id for instance
124 
125         :type ramdisk_id: str
126         :param ramdisk_id: RAM disk id for instance
127 
128         :type block_device_mappings: list
129         :param block_device_mappings: Specifies how block devices are exposed
130             for instances
131 
132         :type instance_monitoring: bool
133         :param instance_monitoring: Whether instances in group are launched
134             with detailed monitoring.
135 
136         :type spot_price: float
137         :param spot_price: The spot price you are bidding.  Only applies
138             if you are building an autoscaling group with spot instances.
139 
140         :type instance_profile_name: string
141         :param instance_profile_name: The name or the Amazon Resource
142             Name (ARN) of the instance profile associated with the IAM
143             role for the instance.
144 
145         :type ebs_optimized: bool
146         :param ebs_optimized: Specifies whether the instance is optimized
147             for EBS I/O (true) or not (false).
148 
149         :type associate_public_ip_address: bool
150         :param associate_public_ip_address: Used for Auto Scaling groups that launch instances into an Amazon Virtual Private Cloud. 
151             Specifies whether to assign a public IP address to each instance launched in a Amazon VPC.
152         """
153         self.connection = connection
154         self.name = name
155         self.instance_type = instance_type
156         self.block_device_mappings = block_device_mappings
157         self.key_name = key_name
158         sec_groups = security_groups or []
159         self.security_groups = ListElement(sec_groups)
160         self.image_id = image_id
161         self.ramdisk_id = ramdisk_id
162         self.created_time = None
163         self.kernel_id = kernel_id
164         self.user_data = user_data
165         self.created_time = None
166         self.instance_monitoring = instance_monitoring
167         self.spot_price = spot_price
168         self.instance_profile_name = instance_profile_name
169         self.launch_configuration_arn = None
170         self.ebs_optimized = ebs_optimized
171         self.associate_public_ip_address = associate_public_ip_address
172 
173     def __repr__(self):
174         return 'LaunchConfiguration:%s' % self.name
175 
176     def startElement(self, name, attrs, connection):
177         if name == 'SecurityGroups':
178             return self.security_groups
179         elif name == 'BlockDeviceMappings':
180             self.block_device_mappings = ResultSet([('member',
181                                                      BlockDeviceMapping)])
182             return self.block_device_mappings
183         elif name == 'InstanceMonitoring':
184             self.instance_monitoring = InstanceMonitoring(self)
185             return self.instance_monitoring
186 
187     def endElement(self, name, value, connection):
188         if name == 'InstanceType':
189             self.instance_type = value
190         elif name == 'LaunchConfigurationName':
191             self.name = value
192         elif name == 'KeyName':
193             self.key_name = value
194         elif name == 'ImageId':
195             self.image_id = value
196         elif name == 'CreatedTime':
197             self.created_time = boto.utils.parse_ts(value)
198         elif name == 'KernelId':
199             self.kernel_id = value
200         elif name == 'RamdiskId':
201             self.ramdisk_id = value
202         elif name == 'UserData':
203             try:
204                 self.user_data = base64.b64decode(value)
205             except TypeError:
206                 self.user_data = value
207         elif name == 'LaunchConfigurationARN':
208             self.launch_configuration_arn = value
209         elif name == 'InstanceMonitoring':
210             self.instance_monitoring = value
211         elif name == 'SpotPrice':
212             self.spot_price = float(value)
213         elif name == 'IamInstanceProfile':
214             self.instance_profile_name = value
215         elif name == 'EbsOptimized':
216             self.ebs_optimized = True if value.lower() == 'true' else False
217         else:
218             setattr(self, name, value)
219 
220     def delete(self):
221         """ Delete this launch configuration. """
222         return self.connection.delete_launch_configuration(self.name)
223
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/boto/ec2/autoscale/launchconfig.py b/boto/ec2/autoscale/launchconfig.py
--- a/boto/ec2/autoscale/launchconfig.py
+++ b/boto/ec2/autoscale/launchconfig.py
@@ -110,8 +110,9 @@
         :param key_name: The name of the EC2 key pair.
 
         :type security_groups: list
-        :param security_groups: Names of the security groups with which to
-            associate the EC2 instances.
+        :param security_groups: Names or security group id's of the security
+            groups with which to associate the EC2 instances or VPC instances,
+            respectively.
 
         :type user_data: str
         :param user_data: The user data available to launched EC2 instances.

{"golden_diff": "diff --git a/boto/ec2/autoscale/launchconfig.py b/boto/ec2/autoscale/launchconfig.py\n--- a/boto/ec2/autoscale/launchconfig.py\n+++ b/boto/ec2/autoscale/launchconfig.py\n@@ -110,8 +110,9 @@\n         :param key_name: The name of the EC2 key pair.\n \n         :type security_groups: list\n-        :param security_groups: Names of the security groups with which to\n-            associate the EC2 instances.\n+        :param security_groups: Names or security group id's of the security\n+            groups with which to associate the EC2 instances or VPC instances,\n+            respectively.\n \n         :type user_data: str\n         :param user_data: The user data available to launched EC2 instances.\n", "issue": "Documentation of security_groups argument doesn't mention VPC\nThe documentation for the 'security_groups' parameter for a LaunchConfiguration object could be better. As stated on:\n\nhttp://docs.aws.amazon.com/cli/latest/reference/autoscaling/create-launch-configuration.html\n\n\"--security-groups (list)\n\nThe names of the security groups with which to associate Amazon EC2 or Amazon VPC instances. Specify Amazon EC2 security groups using security group names, such as websrv . Specify Amazon VPC security groups using security group IDs, such as sg-12345678 .\"\n\nIn the Boto documentation for creating a launch configuration (http://boto.readthedocs.org/en/latest/ref/autoscale.html#boto.ec2.autoscale.launchconfig.LaunchConfiguration), the comment for the 'security_groups' parameter says:\n\n\"Names of the security groups with which to associate the EC2 instances.\"\n\nIn this comment, there is no mention of VPC instances or security group id's as seen in Amazon's own docs. I lost about a day of productivity figuring this out so I'm hoping that the documentation can be improved.\n\n", "before_files": [{"content": "# Copyright (c) 2009 Reza Lotun http://reza.lotun.name/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates.  All Rights Reserved\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitation the rights to use, copy, modify, merge, publish, dis-\n# tribute, sublicense, and/or sell copies of the Software, and to permit\n# persons to whom the Software is furnished to do so, subject to the fol-\n# lowing conditions:\n#\n# The above copyright notice and this permission notice shall be included\n# in all copies or substantial portions of the Software.\n#\n# THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-\n# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\n# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n# IN THE SOFTWARE.\n\nfrom datetime import datetime\nfrom boto.resultset import ResultSet\nfrom boto.ec2.elb.listelement import ListElement\nimport boto.utils\nimport base64\n\n# this should use the corresponding object from boto.ec2\n\n\nclass Ebs(object):\n    def __init__(self, connection=None, snapshot_id=None, volume_size=None):\n        self.connection = connection\n        self.snapshot_id = snapshot_id\n        self.volume_size = volume_size\n\n    def __repr__(self):\n        return 'Ebs(%s, %s)' % (self.snapshot_id, self.volume_size)\n\n    def startElement(self, name, attrs, connection):\n        pass\n\n    def endElement(self, name, value, connection):\n        if name == 'SnapshotId':\n            self.snapshot_id = value\n        elif name == 'VolumeSize':\n            self.volume_size = value\n\n\nclass InstanceMonitoring(object):\n    def __init__(self, connection=None, enabled='false'):\n        self.connection = connection\n        self.enabled = enabled\n\n    def __repr__(self):\n        return 'InstanceMonitoring(%s)' % self.enabled\n\n    def startElement(self, name, attrs, connection):\n        pass\n\n    def endElement(self, name, value, connection):\n        if name == 'Enabled':\n            self.enabled = value\n\n\n# this should use the BlockDeviceMapping from boto.ec2.blockdevicemapping\nclass BlockDeviceMapping(object):\n    def __init__(self, connection=None, device_name=None, virtual_name=None):\n        self.connection = connection\n        self.device_name = None\n        self.virtual_name = None\n        self.ebs = None\n\n    def __repr__(self):\n        return 'BlockDeviceMapping(%s, %s)' % (self.device_name,\n                                               self.virtual_name)\n\n    def startElement(self, name, attrs, connection):\n        if name == 'Ebs':\n            self.ebs = Ebs(self)\n            return self.ebs\n\n    def endElement(self, name, value, connection):\n        if name == 'DeviceName':\n            self.device_name = value\n        elif name == 'VirtualName':\n            self.virtual_name = value\n\n\nclass LaunchConfiguration(object):\n    def __init__(self, connection=None, name=None, image_id=None,\n                 key_name=None, security_groups=None, user_data=None,\n                 instance_type='m1.small', kernel_id=None,\n                 ramdisk_id=None, block_device_mappings=None,\n                 instance_monitoring=False, spot_price=None,\n                 instance_profile_name=None, ebs_optimized=False,\n                 associate_public_ip_address=None):\n        \"\"\"\n        A launch configuration.\n\n        :type name: str\n        :param name: Name of the launch configuration to create.\n\n        :type image_id: str\n        :param image_id: Unique ID of the Amazon Machine Image (AMI) which was\n            assigned during registration.\n\n        :type key_name: str\n        :param key_name: The name of the EC2 key pair.\n\n        :type security_groups: list\n        :param security_groups: Names of the security groups with which to\n            associate the EC2 instances.\n\n        :type user_data: str\n        :param user_data: The user data available to launched EC2 instances.\n\n        :type instance_type: str\n        :param instance_type: The instance type\n\n        :type kern_id: str\n        :param kern_id: Kernel id for instance\n\n        :type ramdisk_id: str\n        :param ramdisk_id: RAM disk id for instance\n\n        :type block_device_mappings: list\n        :param block_device_mappings: Specifies how block devices are exposed\n            for instances\n\n        :type instance_monitoring: bool\n        :param instance_monitoring: Whether instances in group are launched\n            with detailed monitoring.\n\n        :type spot_price: float\n        :param spot_price: The spot price you are bidding.  Only applies\n            if you are building an autoscaling group with spot instances.\n\n        :type instance_profile_name: string\n        :param instance_profile_name: The name or the Amazon Resource\n            Name (ARN) of the instance profile associated with the IAM\n            role for the instance.\n\n        :type ebs_optimized: bool\n        :param ebs_optimized: Specifies whether the instance is optimized\n            for EBS I/O (true) or not (false).\n\n        :type associate_public_ip_address: bool\n        :param associate_public_ip_address: Used for Auto Scaling groups that launch instances into an Amazon Virtual Private Cloud. \n            Specifies whether to assign a public IP address to each instance launched in a Amazon VPC.\n        \"\"\"\n        self.connection = connection\n        self.name = name\n        self.instance_type = instance_type\n        self.block_device_mappings = block_device_mappings\n        self.key_name = key_name\n        sec_groups = security_groups or []\n        self.security_groups = ListElement(sec_groups)\n        self.image_id = image_id\n        self.ramdisk_id = ramdisk_id\n        self.created_time = None\n        self.kernel_id = kernel_id\n        self.user_data = user_data\n        self.created_time = None\n        self.instance_monitoring = instance_monitoring\n        self.spot_price = spot_price\n        self.instance_profile_name = instance_profile_name\n        self.launch_configuration_arn = None\n        self.ebs_optimized = ebs_optimized\n        self.associate_public_ip_address = associate_public_ip_address\n\n    def __repr__(self):\n        return 'LaunchConfiguration:%s' % self.name\n\n    def startElement(self, name, attrs, connection):\n        if name == 'SecurityGroups':\n            return self.security_groups\n        elif name == 'BlockDeviceMappings':\n            self.block_device_mappings = ResultSet([('member',\n                                                     BlockDeviceMapping)])\n            return self.block_device_mappings\n        elif name == 'InstanceMonitoring':\n            self.instance_monitoring = InstanceMonitoring(self)\n            return self.instance_monitoring\n\n    def endElement(self, name, value, connection):\n        if name == 'InstanceType':\n            self.instance_type = value\n        elif name == 'LaunchConfigurationName':\n            self.name = value\n        elif name == 'KeyName':\n            self.key_name = value\n        elif name == 'ImageId':\n            self.image_id = value\n        elif name == 'CreatedTime':\n            self.created_time = boto.utils.parse_ts(value)\n        elif name == 'KernelId':\n            self.kernel_id = value\n        elif name == 'RamdiskId':\n            self.ramdisk_id = value\n        elif name == 'UserData':\n            try:\n                self.user_data = base64.b64decode(value)\n            except TypeError:\n                self.user_data = value\n        elif name == 'LaunchConfigurationARN':\n            self.launch_configuration_arn = value\n        elif name == 'InstanceMonitoring':\n            self.instance_monitoring = value\n        elif name == 'SpotPrice':\n            self.spot_price = float(value)\n        elif name == 'IamInstanceProfile':\n            self.instance_profile_name = value\n        elif name == 'EbsOptimized':\n            self.ebs_optimized = True if value.lower() == 'true' else False\n        else:\n            setattr(self, name, value)\n\n    def delete(self):\n        \"\"\" Delete this launch configuration. \"\"\"\n        return self.connection.delete_launch_configuration(self.name)\n", "path": "boto/ec2/autoscale/launchconfig.py"}], "after_files": [{"content": "# Copyright (c) 2009 Reza Lotun http://reza.lotun.name/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates.  All Rights Reserved\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitation the rights to use, copy, modify, merge, publish, dis-\n# tribute, sublicense, and/or sell copies of the Software, and to permit\n# persons to whom the Software is furnished to do so, subject to the fol-\n# lowing conditions:\n#\n# The above copyright notice and this permission notice shall be included\n# in all copies or substantial portions of the Software.\n#\n# THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-\n# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\n# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n# IN THE SOFTWARE.\n\nfrom datetime import datetime\nfrom boto.resultset import ResultSet\nfrom boto.ec2.elb.listelement import ListElement\nimport boto.utils\nimport base64\n\n# this should use the corresponding object from boto.ec2\n\n\nclass Ebs(object):\n    def __init__(self, connection=None, snapshot_id=None, volume_size=None):\n        self.connection = connection\n        self.snapshot_id = snapshot_id\n        self.volume_size = volume_size\n\n    def __repr__(self):\n        return 'Ebs(%s, %s)' % (self.snapshot_id, self.volume_size)\n\n    def startElement(self, name, attrs, connection):\n        pass\n\n    def endElement(self, name, value, connection):\n        if name == 'SnapshotId':\n            self.snapshot_id = value\n        elif name == 'VolumeSize':\n            self.volume_size = value\n\n\nclass InstanceMonitoring(object):\n    def __init__(self, connection=None, enabled='false'):\n        self.connection = connection\n        self.enabled = enabled\n\n    def __repr__(self):\n        return 'InstanceMonitoring(%s)' % self.enabled\n\n    def startElement(self, name, attrs, connection):\n        pass\n\n    def endElement(self, name, value, connection):\n        if name == 'Enabled':\n            self.enabled = value\n\n\n# this should use the BlockDeviceMapping from boto.ec2.blockdevicemapping\nclass BlockDeviceMapping(object):\n    def __init__(self, connection=None, device_name=None, virtual_name=None):\n        self.connection = connection\n        self.device_name = None\n        self.virtual_name = None\n        self.ebs = None\n\n    def __repr__(self):\n        return 'BlockDeviceMapping(%s, %s)' % (self.device_name,\n                                               self.virtual_name)\n\n    def startElement(self, name, attrs, connection):\n        if name == 'Ebs':\n            self.ebs = Ebs(self)\n            return self.ebs\n\n    def endElement(self, name, value, connection):\n        if name == 'DeviceName':\n            self.device_name = value\n        elif name == 'VirtualName':\n            self.virtual_name = value\n\n\nclass LaunchConfiguration(object):\n    def __init__(self, connection=None, name=None, image_id=None,\n                 key_name=None, security_groups=None, user_data=None,\n                 instance_type='m1.small', kernel_id=None,\n                 ramdisk_id=None, block_device_mappings=None,\n                 instance_monitoring=False, spot_price=None,\n                 instance_profile_name=None, ebs_optimized=False,\n                 associate_public_ip_address=None):\n        \"\"\"\n        A launch configuration.\n\n        :type name: str\n        :param name: Name of the launch configuration to create.\n\n        :type image_id: str\n        :param image_id: Unique ID of the Amazon Machine Image (AMI) which was\n            assigned during registration.\n\n        :type key_name: str\n        :param key_name: The name of the EC2 key pair.\n\n        :type security_groups: list\n        :param security_groups: Names or security group id's of the security\n            groups with which to associate the EC2 instances or VPC instances,\n            respectively.\n\n        :type user_data: str\n        :param user_data: The user data available to launched EC2 instances.\n\n        :type instance_type: str\n        :param instance_type: The instance type\n\n        :type kern_id: str\n        :param kern_id: Kernel id for instance\n\n        :type ramdisk_id: str\n        :param ramdisk_id: RAM disk id for instance\n\n        :type block_device_mappings: list\n        :param block_device_mappings: Specifies how block devices are exposed\n            for instances\n\n        :type instance_monitoring: bool\n        :param instance_monitoring: Whether instances in group are launched\n            with detailed monitoring.\n\n        :type spot_price: float\n        :param spot_price: The spot price you are bidding.  Only applies\n            if you are building an autoscaling group with spot instances.\n\n        :type instance_profile_name: string\n        :param instance_profile_name: The name or the Amazon Resource\n            Name (ARN) of the instance profile associated with the IAM\n            role for the instance.\n\n        :type ebs_optimized: bool\n        :param ebs_optimized: Specifies whether the instance is optimized\n            for EBS I/O (true) or not (false).\n\n        :type associate_public_ip_address: bool\n        :param associate_public_ip_address: Used for Auto Scaling groups that launch instances into an Amazon Virtual Private Cloud. \n            Specifies whether to assign a public IP address to each instance launched in a Amazon VPC.\n        \"\"\"\n        self.connection = connection\n        self.name = name\n        self.instance_type = instance_type\n        self.block_device_mappings = block_device_mappings\n        self.key_name = key_name\n        sec_groups = security_groups or []\n        self.security_groups = ListElement(sec_groups)\n        self.image_id = image_id\n        self.ramdisk_id = ramdisk_id\n        self.created_time = None\n        self.kernel_id = kernel_id\n        self.user_data = user_data\n        self.created_time = None\n        self.instance_monitoring = instance_monitoring\n        self.spot_price = spot_price\n        self.instance_profile_name = instance_profile_name\n        self.launch_configuration_arn = None\n        self.ebs_optimized = ebs_optimized\n        self.associate_public_ip_address = associate_public_ip_address\n\n    def __repr__(self):\n        return 'LaunchConfiguration:%s' % self.name\n\n    def startElement(self, name, attrs, connection):\n        if name == 'SecurityGroups':\n            return self.security_groups\n        elif name == 'BlockDeviceMappings':\n            self.block_device_mappings = ResultSet([('member',\n                                                     BlockDeviceMapping)])\n            return self.block_device_mappings\n        elif name == 'InstanceMonitoring':\n            self.instance_monitoring = InstanceMonitoring(self)\n            return self.instance_monitoring\n\n    def endElement(self, name, value, connection):\n        if name == 'InstanceType':\n            self.instance_type = value\n        elif name == 'LaunchConfigurationName':\n            self.name = value\n        elif name == 'KeyName':\n            self.key_name = value\n        elif name == 'ImageId':\n            self.image_id = value\n        elif name == 'CreatedTime':\n            self.created_time = boto.utils.parse_ts(value)\n        elif name == 'KernelId':\n            self.kernel_id = value\n        elif name == 'RamdiskId':\n            self.ramdisk_id = value\n        elif name == 'UserData':\n            try:\n                self.user_data = base64.b64decode(value)\n            except TypeError:\n                self.user_data = value\n        elif name == 'LaunchConfigurationARN':\n            self.launch_configuration_arn = value\n        elif name == 'InstanceMonitoring':\n            self.instance_monitoring = value\n        elif name == 'SpotPrice':\n            self.spot_price = float(value)\n        elif name == 'IamInstanceProfile':\n            self.instance_profile_name = value\n        elif name == 'EbsOptimized':\n            self.ebs_optimized = True if value.lower() == 'true' else False\n        else:\n            setattr(self, name, value)\n\n    def delete(self):\n        \"\"\" Delete this launch configuration. \"\"\"\n        return self.connection.delete_launch_configuration(self.name)\n", "path": "boto/ec2/autoscale/launchconfig.py"}]}