Class: Humidifier::EC2::Instance
- Defined in:
- lib/humidifier/magic.rb
Overview
A dynamically-defined class that represents an AWS::EC2::Instance resource
Constant Summary
Constants inherited from Resource
Instance Method Summary collapse
-
#additional_info ⇒ Object
returns the AdditionalInfo property.
-
#additional_info=(value) ⇒ Object
sets the AdditionalInfo property (String).
-
#affinity ⇒ Object
returns the Affinity property.
-
#affinity=(value) ⇒ Object
sets the Affinity property (String).
-
#availability_zone ⇒ Object
returns the AvailabilityZone property.
-
#availability_zone=(value) ⇒ Object
sets the AvailabilityZone property (String).
-
#block_device_mappings ⇒ Object
returns the BlockDeviceMappings property.
-
#block_device_mappings=(value) ⇒ Object
sets the BlockDeviceMappings property (List).
-
#cpu_options ⇒ Object
returns the CpuOptions property.
-
#cpu_options=(value) ⇒ Object
sets the CpuOptions property (Structure).
-
#credit_specification ⇒ Object
returns the CreditSpecification property.
-
#credit_specification=(value) ⇒ Object
sets the CreditSpecification property (Structure).
-
#disable_api_termination ⇒ Object
returns the DisableApiTermination property.
-
#disable_api_termination=(value) ⇒ Object
sets the DisableApiTermination property (Boolean).
-
#ebs_optimized ⇒ Object
returns the EbsOptimized property.
-
#ebs_optimized=(value) ⇒ Object
sets the EbsOptimized property (Boolean).
-
#elastic_gpu_specifications ⇒ Object
returns the ElasticGpuSpecifications property.
-
#elastic_gpu_specifications=(value) ⇒ Object
sets the ElasticGpuSpecifications property (List).
-
#elastic_inference_accelerators ⇒ Object
returns the ElasticInferenceAccelerators property.
-
#elastic_inference_accelerators=(value) ⇒ Object
sets the ElasticInferenceAccelerators property (List).
-
#enclave_options ⇒ Object
returns the EnclaveOptions property.
-
#enclave_options=(value) ⇒ Object
sets the EnclaveOptions property (Structure).
-
#hibernation_options ⇒ Object
returns the HibernationOptions property.
-
#hibernation_options=(value) ⇒ Object
sets the HibernationOptions property (Structure).
-
#host_id ⇒ Object
returns the HostId property.
-
#host_id=(value) ⇒ Object
sets the HostId property (String).
-
#host_resource_group_arn ⇒ Object
returns the HostResourceGroupArn property.
-
#host_resource_group_arn=(value) ⇒ Object
sets the HostResourceGroupArn property (String).
-
#iam_instance_profile ⇒ Object
returns the IamInstanceProfile property.
-
#iam_instance_profile=(value) ⇒ Object
sets the IamInstanceProfile property (String).
-
#image_id ⇒ Object
returns the ImageId property.
-
#image_id=(value) ⇒ Object
sets the ImageId property (String).
-
#instance_initiated_shutdown_behavior ⇒ Object
returns the InstanceInitiatedShutdownBehavior property.
-
#instance_initiated_shutdown_behavior=(value) ⇒ Object
sets the InstanceInitiatedShutdownBehavior property (String).
-
#instance_type ⇒ Object
returns the InstanceType property.
-
#instance_type=(value) ⇒ Object
sets the InstanceType property (String).
-
#ipv6_address_count ⇒ Object
returns the Ipv6AddressCount property.
-
#ipv6_address_count=(value) ⇒ Object
sets the Ipv6AddressCount property (Integer).
-
#ipv6_addresses ⇒ Object
returns the Ipv6Addresses property.
-
#ipv6_addresses=(value) ⇒ Object
sets the Ipv6Addresses property (List).
-
#kernel_id ⇒ Object
returns the KernelId property.
-
#kernel_id=(value) ⇒ Object
sets the KernelId property (String).
-
#key_name ⇒ Object
returns the KeyName property.
-
#key_name=(value) ⇒ Object
sets the KeyName property (String).
-
#launch_template ⇒ Object
returns the LaunchTemplate property.
-
#launch_template=(value) ⇒ Object
sets the LaunchTemplate property (Structure).
-
#license_specifications ⇒ Object
returns the LicenseSpecifications property.
-
#license_specifications=(value) ⇒ Object
sets the LicenseSpecifications property (List).
-
#monitoring ⇒ Object
returns the Monitoring property.
-
#monitoring=(value) ⇒ Object
sets the Monitoring property (Boolean).
-
#network_interfaces ⇒ Object
returns the NetworkInterfaces property.
-
#network_interfaces=(value) ⇒ Object
sets the NetworkInterfaces property (List).
-
#placement_group_name ⇒ Object
returns the PlacementGroupName property.
-
#placement_group_name=(value) ⇒ Object
sets the PlacementGroupName property (String).
-
#private_dns_name_options ⇒ Object
returns the PrivateDnsNameOptions property.
-
#private_dns_name_options=(value) ⇒ Object
sets the PrivateDnsNameOptions property (Structure).
-
#private_ip_address ⇒ Object
returns the PrivateIpAddress property.
-
#private_ip_address=(value) ⇒ Object
sets the PrivateIpAddress property (String).
-
#propagate_tags_to_volume_on_creation ⇒ Object
returns the PropagateTagsToVolumeOnCreation property.
-
#propagate_tags_to_volume_on_creation=(value) ⇒ Object
sets the PropagateTagsToVolumeOnCreation property (Boolean).
-
#ramdisk_id ⇒ Object
returns the RamdiskId property.
-
#ramdisk_id=(value) ⇒ Object
sets the RamdiskId property (String).
-
#security_group_ids ⇒ Object
returns the SecurityGroupIds property.
-
#security_group_ids=(value) ⇒ Object
sets the SecurityGroupIds property (List).
-
#security_groups ⇒ Object
returns the SecurityGroups property.
-
#security_groups=(value) ⇒ Object
sets the SecurityGroups property (List).
-
#source_dest_check ⇒ Object
returns the SourceDestCheck property.
-
#source_dest_check=(value) ⇒ Object
sets the SourceDestCheck property (Boolean).
-
#ssm_associations ⇒ Object
returns the SsmAssociations property.
-
#ssm_associations=(value) ⇒ Object
sets the SsmAssociations property (List).
-
#subnet_id ⇒ Object
returns the SubnetId property.
-
#subnet_id=(value) ⇒ Object
sets the SubnetId property (String).
-
#tags ⇒ Object
returns the Tags property.
-
#tags=(value) ⇒ Object
sets the Tags property (List).
-
#tenancy ⇒ Object
returns the Tenancy property.
-
#tenancy=(value) ⇒ Object
sets the Tenancy property (String).
-
#user_data ⇒ Object
returns the UserData property.
-
#user_data=(value) ⇒ Object
sets the UserData property (String).
-
#volumes ⇒ Object
returns the Volumes property.
-
#volumes=(value) ⇒ Object
sets the Volumes property (List).
Methods inherited from Resource
#initialize, #method_missing, prop?, #respond_to_missing?, #to_cf, #update, #update_attributes, #update_property
Constructor Details
This class inherits a constructor from Humidifier::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Humidifier::Resource
Instance Method Details
#additional_info ⇒ Object
returns the AdditionalInfo property
10 11 12 |
# File 'lib/humidifier/magic.rb', line 10 def additional_info properties['additional_info'] end |
#additional_info=(value) ⇒ Object
sets the AdditionalInfo property (String)
15 16 17 |
# File 'lib/humidifier/magic.rb', line 15 def additional_info=(value) update_property('additional_info', value) end |
#affinity ⇒ Object
returns the Affinity property
20 21 22 |
# File 'lib/humidifier/magic.rb', line 20 def affinity properties['affinity'] end |
#affinity=(value) ⇒ Object
sets the Affinity property (String)
25 26 27 |
# File 'lib/humidifier/magic.rb', line 25 def affinity=(value) update_property('affinity', value) end |
#availability_zone ⇒ Object
returns the AvailabilityZone property
30 31 32 |
# File 'lib/humidifier/magic.rb', line 30 def availability_zone properties['availability_zone'] end |
#availability_zone=(value) ⇒ Object
sets the AvailabilityZone property (String)
35 36 37 |
# File 'lib/humidifier/magic.rb', line 35 def availability_zone=(value) update_property('availability_zone', value) end |
#block_device_mappings ⇒ Object
returns the BlockDeviceMappings property
40 41 42 |
# File 'lib/humidifier/magic.rb', line 40 def block_device_mappings properties['block_device_mappings'] end |
#block_device_mappings=(value) ⇒ Object
sets the BlockDeviceMappings property (List)
45 46 47 |
# File 'lib/humidifier/magic.rb', line 45 def block_device_mappings=(value) update_property('block_device_mappings', value) end |
#cpu_options ⇒ Object
returns the CpuOptions property
50 51 52 |
# File 'lib/humidifier/magic.rb', line 50 def properties['cpu_options'] end |
#cpu_options=(value) ⇒ Object
sets the CpuOptions property (Structure)
55 56 57 |
# File 'lib/humidifier/magic.rb', line 55 def (value) update_property('cpu_options', value) end |
#credit_specification ⇒ Object
returns the CreditSpecification property
60 61 62 |
# File 'lib/humidifier/magic.rb', line 60 def credit_specification properties['credit_specification'] end |
#credit_specification=(value) ⇒ Object
sets the CreditSpecification property (Structure)
65 66 67 |
# File 'lib/humidifier/magic.rb', line 65 def credit_specification=(value) update_property('credit_specification', value) end |
#disable_api_termination ⇒ Object
returns the DisableApiTermination property
70 71 72 |
# File 'lib/humidifier/magic.rb', line 70 def disable_api_termination properties['disable_api_termination'] end |
#disable_api_termination=(value) ⇒ Object
sets the DisableApiTermination property (Boolean)
75 76 77 |
# File 'lib/humidifier/magic.rb', line 75 def disable_api_termination=(value) update_property('disable_api_termination', value) end |
#ebs_optimized ⇒ Object
returns the EbsOptimized property
80 81 82 |
# File 'lib/humidifier/magic.rb', line 80 def ebs_optimized properties['ebs_optimized'] end |
#ebs_optimized=(value) ⇒ Object
sets the EbsOptimized property (Boolean)
85 86 87 |
# File 'lib/humidifier/magic.rb', line 85 def ebs_optimized=(value) update_property('ebs_optimized', value) end |
#elastic_gpu_specifications ⇒ Object
returns the ElasticGpuSpecifications property
90 91 92 |
# File 'lib/humidifier/magic.rb', line 90 def elastic_gpu_specifications properties['elastic_gpu_specifications'] end |
#elastic_gpu_specifications=(value) ⇒ Object
sets the ElasticGpuSpecifications property (List)
95 96 97 |
# File 'lib/humidifier/magic.rb', line 95 def elastic_gpu_specifications=(value) update_property('elastic_gpu_specifications', value) end |
#elastic_inference_accelerators ⇒ Object
returns the ElasticInferenceAccelerators property
100 101 102 |
# File 'lib/humidifier/magic.rb', line 100 def elastic_inference_accelerators properties['elastic_inference_accelerators'] end |
#elastic_inference_accelerators=(value) ⇒ Object
sets the ElasticInferenceAccelerators property (List)
105 106 107 |
# File 'lib/humidifier/magic.rb', line 105 def elastic_inference_accelerators=(value) update_property('elastic_inference_accelerators', value) end |
#enclave_options ⇒ Object
returns the EnclaveOptions property
110 111 112 |
# File 'lib/humidifier/magic.rb', line 110 def properties['enclave_options'] end |
#enclave_options=(value) ⇒ Object
sets the EnclaveOptions property (Structure)
115 116 117 |
# File 'lib/humidifier/magic.rb', line 115 def (value) update_property('enclave_options', value) end |
#hibernation_options ⇒ Object
returns the HibernationOptions property
120 121 122 |
# File 'lib/humidifier/magic.rb', line 120 def properties['hibernation_options'] end |
#hibernation_options=(value) ⇒ Object
sets the HibernationOptions property (Structure)
125 126 127 |
# File 'lib/humidifier/magic.rb', line 125 def (value) update_property('hibernation_options', value) end |
#host_id ⇒ Object
returns the HostId property
130 131 132 |
# File 'lib/humidifier/magic.rb', line 130 def host_id properties['host_id'] end |
#host_id=(value) ⇒ Object
sets the HostId property (String)
135 136 137 |
# File 'lib/humidifier/magic.rb', line 135 def host_id=(value) update_property('host_id', value) end |
#host_resource_group_arn ⇒ Object
returns the HostResourceGroupArn property
140 141 142 |
# File 'lib/humidifier/magic.rb', line 140 def host_resource_group_arn properties['host_resource_group_arn'] end |
#host_resource_group_arn=(value) ⇒ Object
sets the HostResourceGroupArn property (String)
145 146 147 |
# File 'lib/humidifier/magic.rb', line 145 def host_resource_group_arn=(value) update_property('host_resource_group_arn', value) end |
#iam_instance_profile ⇒ Object
returns the IamInstanceProfile property
150 151 152 |
# File 'lib/humidifier/magic.rb', line 150 def iam_instance_profile properties['iam_instance_profile'] end |
#iam_instance_profile=(value) ⇒ Object
sets the IamInstanceProfile property (String)
155 156 157 |
# File 'lib/humidifier/magic.rb', line 155 def iam_instance_profile=(value) update_property('iam_instance_profile', value) end |
#image_id ⇒ Object
returns the ImageId property
160 161 162 |
# File 'lib/humidifier/magic.rb', line 160 def image_id properties['image_id'] end |
#image_id=(value) ⇒ Object
sets the ImageId property (String)
165 166 167 |
# File 'lib/humidifier/magic.rb', line 165 def image_id=(value) update_property('image_id', value) end |
#instance_initiated_shutdown_behavior ⇒ Object
returns the InstanceInitiatedShutdownBehavior property
170 171 172 |
# File 'lib/humidifier/magic.rb', line 170 def instance_initiated_shutdown_behavior properties['instance_initiated_shutdown_behavior'] end |
#instance_initiated_shutdown_behavior=(value) ⇒ Object
sets the InstanceInitiatedShutdownBehavior property (String)
175 176 177 |
# File 'lib/humidifier/magic.rb', line 175 def instance_initiated_shutdown_behavior=(value) update_property('instance_initiated_shutdown_behavior', value) end |
#instance_type ⇒ Object
returns the InstanceType property
180 181 182 |
# File 'lib/humidifier/magic.rb', line 180 def instance_type properties['instance_type'] end |
#instance_type=(value) ⇒ Object
sets the InstanceType property (String)
185 186 187 |
# File 'lib/humidifier/magic.rb', line 185 def instance_type=(value) update_property('instance_type', value) end |
#ipv6_address_count ⇒ Object
returns the Ipv6AddressCount property
190 191 192 |
# File 'lib/humidifier/magic.rb', line 190 def ipv6_address_count properties['ipv6_address_count'] end |
#ipv6_address_count=(value) ⇒ Object
sets the Ipv6AddressCount property (Integer)
195 196 197 |
# File 'lib/humidifier/magic.rb', line 195 def ipv6_address_count=(value) update_property('ipv6_address_count', value) end |
#ipv6_addresses ⇒ Object
returns the Ipv6Addresses property
200 201 202 |
# File 'lib/humidifier/magic.rb', line 200 def ipv6_addresses properties['ipv6_addresses'] end |
#ipv6_addresses=(value) ⇒ Object
sets the Ipv6Addresses property (List)
205 206 207 |
# File 'lib/humidifier/magic.rb', line 205 def ipv6_addresses=(value) update_property('ipv6_addresses', value) end |
#kernel_id ⇒ Object
returns the KernelId property
210 211 212 |
# File 'lib/humidifier/magic.rb', line 210 def kernel_id properties['kernel_id'] end |
#kernel_id=(value) ⇒ Object
sets the KernelId property (String)
215 216 217 |
# File 'lib/humidifier/magic.rb', line 215 def kernel_id=(value) update_property('kernel_id', value) end |
#key_name ⇒ Object
returns the KeyName property
220 221 222 |
# File 'lib/humidifier/magic.rb', line 220 def key_name properties['key_name'] end |
#key_name=(value) ⇒ Object
sets the KeyName property (String)
225 226 227 |
# File 'lib/humidifier/magic.rb', line 225 def key_name=(value) update_property('key_name', value) end |
#launch_template ⇒ Object
returns the LaunchTemplate property
230 231 232 |
# File 'lib/humidifier/magic.rb', line 230 def launch_template properties['launch_template'] end |
#launch_template=(value) ⇒ Object
sets the LaunchTemplate property (Structure)
235 236 237 |
# File 'lib/humidifier/magic.rb', line 235 def launch_template=(value) update_property('launch_template', value) end |
#license_specifications ⇒ Object
returns the LicenseSpecifications property
240 241 242 |
# File 'lib/humidifier/magic.rb', line 240 def license_specifications properties['license_specifications'] end |
#license_specifications=(value) ⇒ Object
sets the LicenseSpecifications property (List)
245 246 247 |
# File 'lib/humidifier/magic.rb', line 245 def license_specifications=(value) update_property('license_specifications', value) end |
#monitoring ⇒ Object
returns the Monitoring property
250 251 252 |
# File 'lib/humidifier/magic.rb', line 250 def monitoring properties['monitoring'] end |
#monitoring=(value) ⇒ Object
sets the Monitoring property (Boolean)
255 256 257 |
# File 'lib/humidifier/magic.rb', line 255 def monitoring=(value) update_property('monitoring', value) end |
#network_interfaces ⇒ Object
returns the NetworkInterfaces property
260 261 262 |
# File 'lib/humidifier/magic.rb', line 260 def network_interfaces properties['network_interfaces'] end |
#network_interfaces=(value) ⇒ Object
sets the NetworkInterfaces property (List)
265 266 267 |
# File 'lib/humidifier/magic.rb', line 265 def network_interfaces=(value) update_property('network_interfaces', value) end |
#placement_group_name ⇒ Object
returns the PlacementGroupName property
270 271 272 |
# File 'lib/humidifier/magic.rb', line 270 def placement_group_name properties['placement_group_name'] end |
#placement_group_name=(value) ⇒ Object
sets the PlacementGroupName property (String)
275 276 277 |
# File 'lib/humidifier/magic.rb', line 275 def placement_group_name=(value) update_property('placement_group_name', value) end |
#private_dns_name_options ⇒ Object
returns the PrivateDnsNameOptions property
280 281 282 |
# File 'lib/humidifier/magic.rb', line 280 def properties['private_dns_name_options'] end |
#private_dns_name_options=(value) ⇒ Object
sets the PrivateDnsNameOptions property (Structure)
285 286 287 |
# File 'lib/humidifier/magic.rb', line 285 def (value) update_property('private_dns_name_options', value) end |
#private_ip_address ⇒ Object
returns the PrivateIpAddress property
290 291 292 |
# File 'lib/humidifier/magic.rb', line 290 def private_ip_address properties['private_ip_address'] end |
#private_ip_address=(value) ⇒ Object
sets the PrivateIpAddress property (String)
295 296 297 |
# File 'lib/humidifier/magic.rb', line 295 def private_ip_address=(value) update_property('private_ip_address', value) end |
#propagate_tags_to_volume_on_creation ⇒ Object
returns the PropagateTagsToVolumeOnCreation property
300 301 302 |
# File 'lib/humidifier/magic.rb', line 300 def properties['propagate_tags_to_volume_on_creation'] end |
#propagate_tags_to_volume_on_creation=(value) ⇒ Object
sets the PropagateTagsToVolumeOnCreation property (Boolean)
305 306 307 |
# File 'lib/humidifier/magic.rb', line 305 def (value) update_property('propagate_tags_to_volume_on_creation', value) end |
#ramdisk_id ⇒ Object
returns the RamdiskId property
310 311 312 |
# File 'lib/humidifier/magic.rb', line 310 def ramdisk_id properties['ramdisk_id'] end |
#ramdisk_id=(value) ⇒ Object
sets the RamdiskId property (String)
315 316 317 |
# File 'lib/humidifier/magic.rb', line 315 def ramdisk_id=(value) update_property('ramdisk_id', value) end |
#security_group_ids ⇒ Object
returns the SecurityGroupIds property
320 321 322 |
# File 'lib/humidifier/magic.rb', line 320 def security_group_ids properties['security_group_ids'] end |
#security_group_ids=(value) ⇒ Object
sets the SecurityGroupIds property (List)
325 326 327 |
# File 'lib/humidifier/magic.rb', line 325 def security_group_ids=(value) update_property('security_group_ids', value) end |
#security_groups ⇒ Object
returns the SecurityGroups property
330 331 332 |
# File 'lib/humidifier/magic.rb', line 330 def security_groups properties['security_groups'] end |
#security_groups=(value) ⇒ Object
sets the SecurityGroups property (List)
335 336 337 |
# File 'lib/humidifier/magic.rb', line 335 def security_groups=(value) update_property('security_groups', value) end |
#source_dest_check ⇒ Object
returns the SourceDestCheck property
340 341 342 |
# File 'lib/humidifier/magic.rb', line 340 def source_dest_check properties['source_dest_check'] end |
#source_dest_check=(value) ⇒ Object
sets the SourceDestCheck property (Boolean)
345 346 347 |
# File 'lib/humidifier/magic.rb', line 345 def source_dest_check=(value) update_property('source_dest_check', value) end |
#ssm_associations ⇒ Object
returns the SsmAssociations property
350 351 352 |
# File 'lib/humidifier/magic.rb', line 350 def ssm_associations properties['ssm_associations'] end |
#ssm_associations=(value) ⇒ Object
sets the SsmAssociations property (List)
355 356 357 |
# File 'lib/humidifier/magic.rb', line 355 def ssm_associations=(value) update_property('ssm_associations', value) end |
#subnet_id ⇒ Object
returns the SubnetId property
360 361 362 |
# File 'lib/humidifier/magic.rb', line 360 def subnet_id properties['subnet_id'] end |
#subnet_id=(value) ⇒ Object
sets the SubnetId property (String)
365 366 367 |
# File 'lib/humidifier/magic.rb', line 365 def subnet_id=(value) update_property('subnet_id', value) end |
#tags ⇒ Object
returns the Tags property
370 371 372 |
# File 'lib/humidifier/magic.rb', line 370 def properties['tags'] end |
#tags=(value) ⇒ Object
sets the Tags property (List)
375 376 377 |
# File 'lib/humidifier/magic.rb', line 375 def (value) update_property('tags', value) end |
#tenancy ⇒ Object
returns the Tenancy property
380 381 382 |
# File 'lib/humidifier/magic.rb', line 380 def tenancy properties['tenancy'] end |
#tenancy=(value) ⇒ Object
sets the Tenancy property (String)
385 386 387 |
# File 'lib/humidifier/magic.rb', line 385 def tenancy=(value) update_property('tenancy', value) end |
#user_data ⇒ Object
returns the UserData property
390 391 392 |
# File 'lib/humidifier/magic.rb', line 390 def user_data properties['user_data'] end |
#user_data=(value) ⇒ Object
sets the UserData property (String)
395 396 397 |
# File 'lib/humidifier/magic.rb', line 395 def user_data=(value) update_property('user_data', value) end |
#volumes ⇒ Object
returns the Volumes property
400 401 402 |
# File 'lib/humidifier/magic.rb', line 400 def volumes properties['volumes'] end |
#volumes=(value) ⇒ Object
sets the Volumes property (List)
405 406 407 |
# File 'lib/humidifier/magic.rb', line 405 def volumes=(value) update_property('volumes', value) end |