You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: AWS::AutoScaling::LaunchConfiguration

Inherits:
Core::Resource
  • Object
show all
Defined in:
lib/aws/auto_scaling/launch_configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#arnString (readonly)

Returns the current value of arn

Returns:

  • (String)

    the current value of arn



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def arn
  @arn
end

#associate_public_ip_addressBoolean (readonly)

Returns the current value of associate_public_ip_address

Returns:

  • (Boolean)

    the current value of associate_public_ip_address



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def associate_public_ip_address
  @associate_public_ip_address
end

#block_device_mappingsArray<Hash> (readonly)

Returns the current value of block_device_mappings

Returns:

  • (Array<Hash>)

    the current value of block_device_mappings



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def block_device_mappings
  @block_device_mappings
end

Returns the current value of classic_link_vpc_id

Returns:

  • (String)

    the current value of classic_link_vpc_id



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def classic_link_vpc_id
  @classic_link_vpc_id
end

#created_timeTime (readonly) Also known as: created_at

Returns the current value of created_time

Returns:

  • (Time)

    the current value of created_time



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def created_time
  @created_time
end

#detailed_instance_monitoringBoolean (readonly) Also known as: detailed_instance_monitoring?

Returns the current value of detailed_instance_monitoring

Returns:

  • (Boolean)

    the current value of detailed_instance_monitoring



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def detailed_instance_monitoring
  @detailed_instance_monitoring
end

#iam_instance_profileString (readonly)

Returns the current value of iam_instance_profile

Returns:

  • (String)

    the current value of iam_instance_profile



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def iam_instance_profile
  @iam_instance_profile
end

#image_idString (readonly)

Returns the current value of image_id

Returns:

  • (String)

    the current value of image_id



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def image_id
  @image_id
end

#instance_typeString (readonly)

Returns the current value of instance_type

Returns:

  • (String)

    the current value of instance_type



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def instance_type
  @instance_type
end

#kernel_idString? (readonly)

Returns the current value of kernel_id

Returns:

  • (String, nil)

    the current value of kernel_id



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def kernel_id
  @kernel_id
end

#key_nameString? (readonly)

Returns the current value of key_name

Returns:

  • (String, nil)

    the current value of key_name



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def key_name
  @key_name
end

#nameString (readonly)

Returns the current value of name

Returns:

  • (String)

    the current value of name



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def name
  @name
end

#ramdisk_idString? (readonly)

Returns the current value of ramdisk_id

Returns:

  • (String, nil)

    the current value of ramdisk_id



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def ramdisk_id
  @ramdisk_id
end

#spot_priceString (readonly)

Returns the current value of spot_price

Returns:

  • (String)

    the current value of spot_price



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def spot_price
  @spot_price
end

#user_dataString? (readonly)

Returns the current value of user_data

Returns:

  • (String, nil)

    the current value of user_data



48
49
50
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48

def user_data
  @user_data
end

Instance Method Details

Returns:



134
135
136
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 134

def classic_link_vpc_security_groups
  get_security_groups(classic_link_vpc_security_group_details)
end

#deletenil

Deletes the current launch configuration.

Returns:

  • (nil)


145
146
147
148
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 145

def delete
  client.delete_launch_configuration(resource_options)
  nil
end

#exists?Boolean

Returns true if this launch configuration exists.

Returns:

  • (Boolean)

    Returns true if this launch configuration exists.



139
140
141
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 139

def exists?
  !!get_resource.launch_configurations.first
end

#imageEC2::Image

Returns:



117
118
119
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 117

def image
  EC2::Image.new(image_id, :config => config)
end

#key_pairKeyPair?

Returns:

  • (KeyPair, nil)


122
123
124
125
126
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 122

def key_pair
  if key_name
    EC2::KeyPair.new(key_name, :config => config)
  end
end

#security_groupsArray<EC2::SecurityGroup>

Returns:



129
130
131
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 129

def security_groups
  get_security_groups(security_group_details)
end