Class: Ansible::Ruby::Modules::Ec2_vol

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

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #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_on_termination:yes, ...

Returns When set to “yes”, the volume will be deleted upon instance termination.

Returns:

  • (:yes, :no, nil)

    When set to “yes”, the volume will be deleted upon instance termination.



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

attribute :delete_on_termination

#device_nameString?

Returns device id to override device mapping. Assumes /dev/sdf for Linux/UNIX and /dev/xvdf for Windows.

Returns:

  • (String, nil)

    device id to override device mapping. Assumes /dev/sdf for Linux/UNIX and /dev/xvdf for Windows.



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

attribute :device_name

#encryptedBoolean?

Returns Enable encryption at rest for this volume.

Returns:

  • (Boolean, nil)

    Enable encryption at rest for this volume.



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

attribute :encrypted

#idString?

Returns volume id if you wish to attach an existing volume (requires instance) or remove an existing volume.

Returns:

  • (String, nil)

    volume id if you wish to attach an existing volume (requires instance) or remove an existing volume



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

attribute :id

#instanceString?

Returns instance ID if you wish to attach the volume. Since 1.9 you can set to None to detach.

Returns:

  • (String, nil)

    instance ID if you wish to attach the volume. Since 1.9 you can set to None to detach.



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

attribute :instance

#iopsInteger?

Returns the provisioned IOPs you want to associate with this volume (integer).

Returns:

  • (Integer, nil)

    the provisioned IOPs you want to associate with this volume (integer).



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

attribute :iops

#nameString?

Returns volume Name tag if you wish to attach an existing volume (requires instance).

Returns:

  • (String, nil)

    volume Name tag if you wish to attach an existing volume (requires instance)



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

attribute :name

#snapshotString?

Returns snapshot ID on which to base the volume.

Returns:

  • (String, nil)

    snapshot ID on which to base the volume



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

attribute :snapshot

#state:absent, ...

Returns whether to ensure the volume is present or absent, or to list existing volumes (The C(list) option was added in version 1.8).

Returns:

  • (:absent, :present, :list, nil)

    whether to ensure the volume is present or absent, or to list existing volumes (The C(list) option was added in version 1.8).



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

attribute :state

#validate_certs:yes, ...

Returns When set to “no”, SSL certificates will not be validated for boto versions >= 2.6.0.

Returns:

  • (:yes, :no, nil)

    When set to “no”, SSL certificates will not be validated for boto versions >= 2.6.0.



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

attribute :validate_certs

#volume_sizeInteger?

Returns size of volume (in GB) to create.

Returns:

  • (Integer, nil)

    size of volume (in GB) to create.



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

attribute :volume_size

#volume_typeString?

Returns Type of EBS volume; standard (magnetic), gp2 (SSD), io1 (Provisioned IOPS). “Standard” is the old EBS default and continues to remain the Ansible default for backwards compatibility.

Returns:

  • (String, nil)

    Type of EBS volume; standard (magnetic), gp2 (SSD), io1 (Provisioned IOPS). “Standard” is the old EBS default and continues to remain the Ansible default for backwards compatibility.



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

attribute :volume_type

#zoneString?

Returns zone in which to create the volume, if unset uses the zone the instance is in (if set).

Returns:

  • (String, nil)

    zone in which to create the volume, if unset uses the zone the instance is in (if set)



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

attribute :zone