Class: Humidifier::EC2::Instance

Inherits:
Resource
  • Object
show all
Defined in:
lib/humidifier/magic.rb

Overview

A dynamically-defined class that represents an AWS::EC2::Instance resource

AWS Resource:

Constant Summary

Constants inherited from Resource

Resource::COMMON_ATTRIBUTES

Instance Method Summary collapse

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_infoObject

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

#affinityObject

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_zoneObject

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_mappingsObject

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_optionsObject

returns the CpuOptions property



50
51
52
# File 'lib/humidifier/magic.rb', line 50

def cpu_options
  properties['cpu_options']
end

#cpu_options=(value) ⇒ Object

sets the CpuOptions property (Structure)



55
56
57
# File 'lib/humidifier/magic.rb', line 55

def cpu_options=(value)
  update_property('cpu_options', value)
end

#credit_specificationObject

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_terminationObject

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_optimizedObject

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_specificationsObject

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_acceleratorsObject

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_optionsObject

returns the EnclaveOptions property



110
111
112
# File 'lib/humidifier/magic.rb', line 110

def enclave_options
  properties['enclave_options']
end

#enclave_options=(value) ⇒ Object

sets the EnclaveOptions property (Structure)



115
116
117
# File 'lib/humidifier/magic.rb', line 115

def enclave_options=(value)
  update_property('enclave_options', value)
end

#hibernation_optionsObject

returns the HibernationOptions property



120
121
122
# File 'lib/humidifier/magic.rb', line 120

def hibernation_options
  properties['hibernation_options']
end

#hibernation_options=(value) ⇒ Object

sets the HibernationOptions property (Structure)



125
126
127
# File 'lib/humidifier/magic.rb', line 125

def hibernation_options=(value)
  update_property('hibernation_options', value)
end

#host_idObject

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_arnObject

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_profileObject

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_idObject

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_behaviorObject

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_typeObject

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_countObject

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_addressesObject

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_idObject

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_nameObject

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_templateObject

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_specificationsObject

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

#monitoringObject

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_interfacesObject

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_nameObject

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_optionsObject

returns the PrivateDnsNameOptions property



280
281
282
# File 'lib/humidifier/magic.rb', line 280

def private_dns_name_options
  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 private_dns_name_options=(value)
  update_property('private_dns_name_options', value)
end

#private_ip_addressObject

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_creationObject

returns the PropagateTagsToVolumeOnCreation property



300
301
302
# File 'lib/humidifier/magic.rb', line 300

def propagate_tags_to_volume_on_creation
  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 propagate_tags_to_volume_on_creation=(value)
  update_property('propagate_tags_to_volume_on_creation', value)
end

#ramdisk_idObject

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_idsObject

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_groupsObject

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_checkObject

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_associationsObject

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_idObject

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

#tagsObject

returns the Tags property



370
371
372
# File 'lib/humidifier/magic.rb', line 370

def tags
  properties['tags']
end

#tags=(value) ⇒ Object

sets the Tags property (List)



375
376
377
# File 'lib/humidifier/magic.rb', line 375

def tags=(value)
  update_property('tags', value)
end

#tenancyObject

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_dataObject

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

#volumesObject

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