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
- Core::Resource
- AWS::AutoScaling::LaunchConfiguration
- Defined in:
- lib/aws/auto_scaling/launch_configuration.rb
Instance Attribute Summary collapse
-
#arn ⇒ String
readonly
The current value of arn.
-
#associate_public_ip_address ⇒ Boolean
readonly
The current value of associate_public_ip_address.
-
#block_device_mappings ⇒ Array<Hash>
readonly
The current value of block_device_mappings.
-
#classic_link_vpc_id ⇒ String
readonly
The current value of classic_link_vpc_id.
-
#created_time ⇒ Time
(also: #created_at)
readonly
The current value of created_time.
-
#detailed_instance_monitoring ⇒ Boolean
(also: #detailed_instance_monitoring?)
readonly
The current value of detailed_instance_monitoring.
-
#iam_instance_profile ⇒ String
readonly
The current value of iam_instance_profile.
-
#image_id ⇒ String
readonly
The current value of image_id.
-
#instance_type ⇒ String
readonly
The current value of instance_type.
-
#kernel_id ⇒ String?
readonly
The current value of kernel_id.
-
#key_name ⇒ String?
readonly
The current value of key_name.
-
#name ⇒ String
readonly
The current value of name.
-
#ramdisk_id ⇒ String?
readonly
The current value of ramdisk_id.
-
#spot_price ⇒ String
readonly
The current value of spot_price.
-
#user_data ⇒ String?
readonly
The current value of user_data.
Instance Method Summary collapse
-
#classic_link_vpc_security_groups ⇒ Array<EC2::SecurityGroup>
-
#delete ⇒ nil
Deletes the current launch configuration.
-
#exists? ⇒ Boolean
Returns true if this launch configuration exists.
-
#image ⇒ EC2::Image
-
#key_pair ⇒ KeyPair?
-
#security_groups ⇒ Array<EC2::SecurityGroup>
Instance Attribute Details
#arn ⇒ String (readonly)
Returns 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_address ⇒ Boolean (readonly)
Returns 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_mappings ⇒ Array<Hash> (readonly)
Returns 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 |
#classic_link_vpc_id ⇒ String (readonly)
Returns 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_time ⇒ Time (readonly) Also known as: created_at
Returns 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_monitoring ⇒ Boolean (readonly) Also known as: detailed_instance_monitoring?
Returns 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_profile ⇒ String (readonly)
Returns 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_id ⇒ String (readonly)
Returns 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_type ⇒ String (readonly)
Returns 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_id ⇒ String? (readonly)
Returns 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_name ⇒ String? (readonly)
Returns 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 |
#name ⇒ String (readonly)
Returns the current value of name
48 49 50 |
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 48 def name @name end |
#ramdisk_id ⇒ String? (readonly)
Returns 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_price ⇒ String (readonly)
Returns 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_data ⇒ String? (readonly)
Returns 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
#classic_link_vpc_security_groups ⇒ Array<EC2::SecurityGroup>
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 |
#delete ⇒ nil
Deletes the current launch configuration.
145 146 147 148 |
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 145 def delete client.delete_launch_configuration() nil end |
#exists? ⇒ 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 |
#image ⇒ EC2::Image
117 118 119 |
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 117 def image EC2::Image.new(image_id, :config => config) end |
#key_pair ⇒ KeyPair?
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_groups ⇒ Array<EC2::SecurityGroup>
129 130 131 |
# File 'lib/aws/auto_scaling/launch_configuration.rb', line 129 def security_groups get_security_groups(security_group_details) end |