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

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

Overview

creates an EC2 snapshot from an existing EBS volume

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, remove_existing_validations, #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



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

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



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

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



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

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.



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

attribute :last_snapshot_min_age

#snapshot_idString?

Returns snapshot id to remove.

Returns:

  • (String, nil)

    snapshot id to remove



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

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



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

attribute :snapshot_tags

#state:absent, ...

Returns whether to add or create a snapshot.

Returns:

  • (:absent, :present, nil)

    whether to add or create a snapshot



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

attribute :state

#volume_idString?

Returns volume from which to take the snapshot.

Returns:

  • (String, nil)

    volume from which to take the snapshot



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

attribute :volume_id

#waitBoolean?

Returns wait for the snapshot to be ready.

Returns:

  • (Boolean, nil)

    wait for the snapshot to be ready



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

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



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

attribute :wait_timeout