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

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/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, fix_inclusion, #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



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

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



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

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



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

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.



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

attribute :last_snapshot_min_age

#snapshot_idString?

Returns snapshot id to remove.

Returns:

  • (String, nil)

    snapshot id to remove



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

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



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

attribute :snapshot_tags

#state:absent, ...

Returns whether to add or create a snapshot.

Returns:

  • (:absent, :present, nil)

    whether to add or create a snapshot



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

attribute :state

#volume_idString?

Returns volume from which to take the snapshot.

Returns:

  • (String, nil)

    volume from which to take the snapshot



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

attribute :volume_id

#waitBoolean?

Returns wait for the snapshot to be ready.

Returns:

  • (Boolean, nil)

    wait for the snapshot to be ready



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

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



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

attribute :wait_timeout