Class: Ansible::Ruby::Modules::Ec2_ami

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb

Instance Method Summary collapse

Methods inherited from Base

#to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#delete_snapshot:yes, ...

Returns Whether or not to delete snapshots when deregistering AMI.

Returns:

  • (:yes, :no, nil)

    Whether or not to delete snapshots when deregistering AMI.



45
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 45

attribute :delete_snapshot

#descriptionObject?

Returns An optional human-readable string describing the contents and purpose of the AMI.

Returns:

  • (Object, nil)

    An optional human-readable string describing the contents and purpose of the AMI.



30
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 30

attribute :description

#device_mappingArray<Hash>, ...

Returns An optional list of device hashes/dictionaries with custom configurations (same block-device-mapping parameters),Valid properties include: device_name, volume_type, size (in GB), delete_on_termination (boolean), no_device (boolean), snapshot_id, iops (for io1 volume_type).

Returns:

  • (Array<Hash>, Hash, nil)

    An optional list of device hashes/dictionaries with custom configurations (same block-device-mapping parameters),Valid properties include: device_name, volume_type, size (in GB), delete_on_termination (boolean), no_device (boolean), snapshot_id, iops (for io1 volume_type)



41
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 41

attribute :device_mapping

#image_idString?

Returns Image ID to be deregistered.

Returns:

  • (String, nil)

    Image ID to be deregistered.



37
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 37

attribute :image_id

#instance_idString?

Returns instance id of the image to create.

Returns:

  • (String, nil)

    instance id of the image to create



10
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 10

attribute :instance_id

#launch_permissionsHash?

Returns Users and groups that should be able to launch the ami. Expects dictionary with a key of user_ids and/or group_names. user_ids should be a list of account ids. group_name should be a list of groups, “all” is the only acceptable value currently.

Returns:

  • (Hash, nil)

    Users and groups that should be able to launch the ami. Expects dictionary with a key of user_ids and/or group_names. user_ids should be a list of account ids. group_name should be a list of groups, “all” is the only acceptable value currently.



53
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 53

attribute :launch_permissions

#nameString?

Returns The name of the new image to create.

Returns:

  • (String, nil)

    The name of the new image to create



14
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 14

attribute :name

#no_rebootBoolean?

Returns An optional flag indicating that the bundling process should not attempt to shutdown the instance before bundling. If this flag is True, the responsibility of maintaining file system integrity is left to the owner of the instance. The default choice is “no”.

Returns:

  • (Boolean, nil)

    An optional flag indicating that the bundling process should not attempt to shutdown the instance before bundling. If this flag is True, the responsibility of maintaining file system integrity is left to the owner of the instance. The default choice is “no”.



33
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 33

attribute :no_reboot

#stateString?

Returns create or deregister/delete image.

Returns:

  • (String, nil)

    create or deregister/delete image



26
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 26

attribute :state

#tagsHash?

Returns a dictionary of tags to add to the new image; ‘“key”:“value”’ and ‘“key”:“value”,“key”:“value”’.

Returns:

  • (Hash, nil)

    a dictionary of tags to add to the new image; ‘“key”:“value”’ and ‘“key”:“value”,“key”:“value”’



49
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 49

attribute :tags

#wait:yes, ...

Returns wait for the AMI to be in state ‘available’ before returning.

Returns:

  • (:yes, :no, nil)

    wait for the AMI to be in state ‘available’ before returning.



18
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 18

attribute :wait

#wait_timeoutInteger?

Returns how long before wait gives up, in seconds.

Returns:

  • (Integer, nil)

    how long before wait gives up, in seconds



22
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 22

attribute :wait_timeout