Class: Ansible::Ruby::Modules::Ec2_ami
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ec2_ami
- Includes:
- Helpers::Aws
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb,
lib/ansible/ruby/modules/custom/cloud/core/amazon/ec2_ami.rb
Overview
Registers or deregisters ec2 images.
Instance Method Summary collapse
-
#architecture ⇒ String?
The target architecture of the image to register.
-
#billing_products ⇒ Object?
A list of valid billing codes.
-
#delete_snapshot ⇒ :yes, ...
Delete snapshots when deregistering the AMI.
-
#description ⇒ Object?
Human-readable string describing the contents and purpose of the AMI.
-
#device_mapping ⇒ Array<Hash>, ...
List of device hashes/dictionaries with custom configurations (same block-device-mapping parameters).,Valid properties include: device_name, volume_type, size/volume_size (in GB), delete_on_termination (boolean), no_device (boolean), snapshot_id, iops (for io1 volume_type), encryptedrn.
-
#enhanced_networking ⇒ Object?
A boolean representing whether enhanced networking with ENA is enabled or not.
-
#image_id ⇒ String?
Image ID to be deregistered.
-
#image_location ⇒ Object?
The s3 location of an image to use for the AMI.
-
#instance_id ⇒ String?
Instance ID to create the AMI from.
-
#kernel_id ⇒ Object?
The target kernel id of the image to register.
-
#launch_permissions ⇒ Hash?
Users and groups that should be able to launch the AMI.
-
#name ⇒ String?
The name of the new AMI.
-
#no_reboot ⇒ Symbol?
Flag indicating that the bundling process should not attempt to shutdown the instance before bundling.
-
#purge_tags ⇒ String?
Whether to remove existing tags that aren’t passed in the C(tags) parameter.
-
#ramdisk_id ⇒ Object?
The ID of the RAM disk.
-
#root_device_name ⇒ String?
The root device name of the image to register.
-
#sriov_net_support ⇒ Object?
Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the AMI and any instances that you launch from the AMI.
-
#state ⇒ :absent, ...
Register or deregister an AMI.
-
#tags ⇒ Hash?
A dictionary of tags to add to the new image; ‘“key”:“value”’ and ‘“key”:“value”,“key”:“value”’.
-
#virtualization_type ⇒ String?
The virtualization type of the image to register.
-
#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 included from Helpers::Aws
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#architecture ⇒ String?
Returns The target architecture of the image to register.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 20 attribute :architecture |
#billing_products ⇒ Object?
Returns A list of valid billing codes. To be used with valid accounts by aws marketplace vendors.
84 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 84 attribute :billing_products |
#delete_snapshot ⇒ :yes, ...
Returns Delete snapshots when deregistering the AMI.
62 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 62 attribute :delete_snapshot |
#description ⇒ Object?
Returns Human-readable string describing the contents and purpose of the AMI.
47 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 47 attribute :description |
#device_mapping ⇒ Array<Hash>, ...
Returns List of device hashes/dictionaries with custom configurations (same block-device-mapping parameters).,Valid properties include: device_name, volume_type, size/volume_size (in GB), delete_on_termination (boolean), no_device (boolean), snapshot_id, iops (for io1 volume_type), encryptedrn.
58 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 58 attribute :device_mapping |
#enhanced_networking ⇒ Object?
Returns A boolean representing whether enhanced networking with ENA is enabled or not.
81 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 81 attribute :enhanced_networking |
#image_id ⇒ String?
Returns Image ID to be deregistered.
54 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 54 attribute :image_id |
#image_location ⇒ Object?
Returns The s3 location of an image to use for the AMI.
78 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 78 attribute :image_location |
#instance_id ⇒ String?
Returns Instance ID to create the AMI from.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 12 attribute :instance_id |
#kernel_id ⇒ Object?
Returns The target kernel id of the image to register.
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 24 attribute :kernel_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.,You must pass all desired launch permissions if you wish to modify existing launch permissions (passing just groups will remove all users).
74 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 74 attribute :launch_permissions |
#name ⇒ String?
Returns The name of the new AMI.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 16 attribute :name |
#no_reboot ⇒ Symbol?
Returns 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.
50 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 50 attribute :no_reboot |
#purge_tags ⇒ String?
Returns Whether to remove existing tags that aren’t passed in the C(tags) parameter.
70 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 70 attribute :purge_tags |
#ramdisk_id ⇒ Object?
Returns The ID of the RAM disk.
87 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 87 attribute :ramdisk_id |
#root_device_name ⇒ String?
Returns The root device name of the image to register.
31 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 31 attribute :root_device_name |
#sriov_net_support ⇒ Object?
Returns Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the AMI and any instances that you launch from the AMI.
90 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 90 attribute :sriov_net_support |
#state ⇒ :absent, ...
Returns Register or deregister an AMI.
43 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 43 attribute :state |
#tags ⇒ Hash?
Returns A dictionary of tags to add to the new image; ‘“key”:“value”’ and ‘“key”:“value”,“key”:“value”’.
66 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 66 attribute :tags |
#virtualization_type ⇒ String?
Returns The virtualization type of the image to register.
27 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 27 attribute :virtualization_type |
#wait ⇒ :yes, ...
Returns Wait for the AMI to be in state ‘available’ before returning.
35 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 35 attribute :wait |
#wait_timeout ⇒ Integer?
Returns How long before wait gives up, in seconds.
39 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_ami.rb', line 39 attribute :wait_timeout |