Class: Ansible::Ruby::Modules::Ec2_snapshot

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_snapshot.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

#descriptionString?

Returns description to be applied to the snapshot.

Returns:

  • (String, nil)

    description to be applied to the snapshot



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

attribute :description

#device_nameString?

Returns device name of a mounted volume to be snapshotted.

Returns:

  • (String, nil)

    device name of a mounted volume to be snapshotted



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

attribute :device_name

#instance_idString?

Returns instance that has the required volume to snapshot mounted.

Returns:

  • (String, nil)

    instance that has the required volume to snapshot mounted



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

attribute :instance_id

#last_snapshot_min_ageInteger?

Returns If the volume’s most recent snapshot has started less than ‘last_snapshot_min_age’ minutes ago, a new snapshot will not be created.

Returns:

  • (Integer, nil)

    If the volume’s most recent snapshot has started less than ‘last_snapshot_min_age’ minutes ago, a new snapshot will not be created.



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

attribute :last_snapshot_min_age

#snapshot_idString?

Returns snapshot id to remove.

Returns:

  • (String, nil)

    snapshot id to remove



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

attribute :snapshot_id

#snapshot_tagsHash?

Returns a hash/dictionary of tags to add to the snapshot.

Returns:

  • (Hash, nil)

    a hash/dictionary of tags to add to the snapshot



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

attribute :snapshot_tags

#state:absent, ...

Returns whether to add or create a snapshot.

Returns:

  • (:absent, :present, nil)

    whether to add or create a snapshot



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

attribute :state

#volume_idString?

Returns volume from which to take the snapshot.

Returns:

  • (String, nil)

    volume from which to take the snapshot



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

attribute :volume_id

#waitBoolean?

Returns wait for the snapshot to be ready.

Returns:

  • (Boolean, nil)

    wait for the snapshot to be ready



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

attribute :wait

#wait_timeoutInteger?

Returns how long before wait gives up, in seconds,specify 0 to wait forever.

Returns:

  • (Integer, nil)

    how long before wait gives up, in seconds,specify 0 to wait forever



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

attribute :wait_timeout