Did I find the right examples for you? yes no

All Samples(40)  |  Call(40)  |  Derive(0)  |  Import(0)
:type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID

:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key

:rtype: :class:`boto.ec2.autoscale.AutoScaleConnection`
:return: A connection to Amazon's Auto Scaling Service

:type use_block_device_types bool(more...)

        def connect_autoscale(aws_access_key_id=None, aws_secret_access_key=None,
                      **kwargs):
    """
    :type aws_access_key_id: string
    :param aws_access_key_id: Your AWS Access Key ID

    :type aws_secret_access_key: string
    :param aws_secret_access_key: Your AWS Secret Access Key

    :rtype: :class:`boto.ec2.autoscale.AutoScaleConnection`
    :return: A connection to Amazon's Auto Scaling Service

    :type use_block_device_types bool
    :param use_block_device_types: Specifies whether to return described Launch Configs with block device mappings containing
        block device types, or a list of old style block device mappings (deprecated).  This defaults to false for compatability
        with the old incorrect style.
    """
    from boto.ec2.autoscale import AutoScaleConnection
    return AutoScaleConnection(aws_access_key_id, aws_secret_access_key,
                               **kwargs)
        


src/a/u/autoscaler-0.0.10/autoscaler/core.py   autoscaler(Download)
def groups_for_token(token):
    groups = []
 
    conn = boto.connect_autoscale(use_block_device_types=True)
    groups_iter = conn.get_all_groups(next_token=token)
def get_config_values(name):
    conn = boto.connect_autoscale(use_block_device_types=True)
    default_configs = conn.get_all_launch_configurations(names=[name])
    if not default_configs:
        return copy.deepcopy(empty_launch_config_attrs)
    return attrs_from_config(default_configs[0])
 
 
def add_launch_config(name, base=DEFAULT_CONFIG_NAME, **kwargs):
    conn = boto.connect_autoscale(use_block_device_types=True)
def edit_launch_config(name, **kwargs):
    conn = boto.connect_autoscale(use_block_device_types=True)
    configs = conn.get_all_launch_configurations(names=[name])
    if not configs:
        raise AutoScalerException("No launch configuration could be found for %s", name)
def get_group_attributes_or_defaults(group_name):
    conn = boto.connect_autoscale(use_block_device_types=True)
    groups = conn.get_all_groups(names=[group_name])
    if groups:
        return attrs_from_group(groups[0])

src/f/a/fabix-0.0.3/fabix/aws/ec2.py   fabix(Download)
    sp_down_name = '{0}-scaling-down'.format(name)
 
    conn_as = boto.connect_autoscale()
    lc = LaunchConfiguration(name=launch_config, image_id=ami_id,
                             key_name=key_name,
def replace_launch_config(name, image_id=None, key_name=None,
        security_groups=None, instance_type=None, instance_monitoring=None):
    """Replace launch configuration associated with auto scaling group."""
 
    conn = boto.connect_autoscale()

src/f/a/fabix-HEAD/fabix/aws/ec2.py   fabix(Download)
    sp_down_name = '{0}-scaling-down'.format(name)
 
    conn_as = boto.connect_autoscale()
    lc = LaunchConfiguration(name=launch_config, image_id=ami_id,
                             key_name=key_name,
def replace_launch_config(name, image_id=None, key_name=None,
        security_groups=None, instance_type=None, instance_monitoring=None):
    """Replace launch configuration associated with auto scaling group."""
 
    conn = boto.connect_autoscale()

src/m/o/moto-HEAD/tests/test_autoscaling/test_launch_configurations.py   moto(Download)
def test_create_launch_configuration():
    conn = boto.connect_autoscale()
    config = LaunchConfiguration(
        name='tester',
        image_id='ami-abcd1234',
    block_device_mapping['/dev/xvdh'] = ebs_drive
 
    conn = boto.connect_autoscale(use_block_device_types=True)
    config = LaunchConfiguration(
        name='tester',
def test_create_launch_configuration_for_2_12():
    conn = boto.connect_autoscale()
    config = LaunchConfiguration(
        name='tester',
        image_id='ami-abcd1234',
def test_create_launch_configuration_using_ip_association():
    conn = boto.connect_autoscale()
    config = LaunchConfiguration(
        name='tester',
        image_id='ami-abcd1234',
def test_create_launch_configuration_using_ip_association_should_default_to_false():
    conn = boto.connect_autoscale()
    config = LaunchConfiguration(
        name='tester',
        image_id='ami-abcd1234',    )

src/m/o/moto-HEAD/tests/test_cloudformation/test_cloudformation_stack_integration.py   moto(Download)
    )
 
    autoscale_conn = boto.connect_autoscale()
    autoscale_group = autoscale_conn.get_all_groups()[0]
    autoscale_group.launch_config_name.should.equal("my-launch-config")
    instance_profile.role_id.should.equal(role.role_id)
 
    autoscale_conn = boto.connect_autoscale()
    launch_config = autoscale_conn.get_all_launch_configurations()[0]
    launch_config.instance_profile_name.should.equal("my-instance-profile")

src/m/o/moto-HEAD/tests/test_autoscaling/test_policies.py   moto(Download)
def setup_autoscale_group():
    conn = boto.connect_autoscale()
    config = LaunchConfiguration(
        name='tester',
        image_id='ami-abcd1234',
def test_create_policy():
    setup_autoscale_group()
    conn = boto.connect_autoscale()
    policy = ScalingPolicy(
        name='ScaleUp',
def test_create_policy_default_values():
    setup_autoscale_group()
    conn = boto.connect_autoscale()
    policy = ScalingPolicy(
        name='ScaleUp',
def test_update_policy():
    setup_autoscale_group()
    conn = boto.connect_autoscale()
    policy = ScalingPolicy(
        name='ScaleUp',
def test_delete_policy():
    setup_autoscale_group()
    conn = boto.connect_autoscale()
    policy = ScalingPolicy(
        name='ScaleUp',

src/m/o/moto-HEAD/tests/test_autoscaling/test_autoscaling.py   moto(Download)
def test_create_autoscaling_group():
    conn = boto.connect_autoscale()
    config = LaunchConfiguration(
        name='tester',
        image_id='ami-abcd1234',
def test_create_autoscaling_groups_defaults():
    """ Test with the minimum inputs and check that all of the proper defaults
    are assigned for the other attributes """
    conn = boto.connect_autoscale()
    config = LaunchConfiguration(
def test_autoscaling_group_describe_filter():
    conn = boto.connect_autoscale()
    config = LaunchConfiguration(
        name='tester',
        image_id='ami-abcd1234',
def test_autoscaling_update():
    conn = boto.connect_autoscale()
    config = LaunchConfiguration(
        name='tester',
        image_id='ami-abcd1234',
def test_autoscaling_group_delete():
    conn = boto.connect_autoscale()
    config = LaunchConfiguration(
        name='tester',
        image_id='ami-abcd1234',