Class: Ansible::Ruby::Modules::Ec2_ami
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ec2_ami
- Defined in:
- lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb
Instance Method Summary collapse
-
#delete_snapshot ⇒ :yes, ...
Whether or not to delete snapshots when deregistering AMI.
-
#description ⇒ Object?
An optional human-readable string describing the contents and purpose of the AMI.
-
#device_mapping ⇒ Array<Hash>, ...
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).
-
#image_id ⇒ String?
Image ID to be deregistered.
-
#instance_id ⇒ String?
Instance id of the image to create.
-
#launch_permissions ⇒ Hash?
Users and groups that should be able to launch the ami.
-
#name ⇒ String?
The name of the new image to create.
-
#no_reboot ⇒ Boolean?
An optional flag indicating that the bundling process should not attempt to shutdown the instance before bundling.
-
#state ⇒ String?
Create or deregister/delete image.
-
#tags ⇒ Hash?
A dictionary of tags to add to the new image; ‘“key”:“value”’ and ‘“key”:“value”,“key”:“value”’.
-
#wait ⇒ :yes, ...
Wait for the AMI to be in state ‘available’ before returning.
-
#wait_timeout ⇒ Integer?
How long before wait gives up, in seconds.
Methods inherited from Base
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.
45 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 45 attribute :delete_snapshot |
#description ⇒ Object?
Returns 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_mapping ⇒ Array<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).
41 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 41 attribute :device_mapping |
#image_id ⇒ String?
Returns Image ID to be deregistered.
37 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 37 attribute :image_id |
#instance_id ⇒ String?
Returns 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_permissions ⇒ Hash?
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.
53 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 53 attribute :launch_permissions |
#name ⇒ String?
Returns 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_reboot ⇒ Boolean?
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”.
33 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 33 attribute :no_reboot |
#state ⇒ String?
Returns create or deregister/delete image.
26 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 26 attribute :state |
#tags ⇒ Hash?
Returns 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.
18 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb', line 18 attribute :wait |
#wait_timeout ⇒ Integer?
Returns 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 |