Class: Ansible::Ruby::Modules::Lightsail

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

Overview

Creates or instances in AWS Lightsail and optionally wait for it to be ‘running’.

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

#blueprint_idString?

Returns ID of the instance blueprint image. Required when state=‘present’.

Returns:

  • (String, nil)

    ID of the instance blueprint image. Required when state=‘present’



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

attribute :blueprint_id

#bundle_idString?

Returns Bundle of specification info for the instance. Required when state=‘present’.

Returns:

  • (String, nil)

    Bundle of specification info for the instance. Required when state=‘present’



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

attribute :bundle_id

#key_pair_nameString?

Returns Name of the key pair to use with the instance.

Returns:

  • (String, nil)

    Name of the key pair to use with the instance



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

attribute :key_pair_name

#nameString

Returns Name of the instance.

Returns:

  • (String)

    Name of the instance



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

attribute :name

#state:present, ...

Returns Indicate desired state of the target.

Returns:

  • (:present, :absent, :running, :restarted, :stopped, nil)

    Indicate desired state of the target.



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

attribute :state

#user_dataString?

Returns Launch script that can configure the instance with additional data.

Returns:

  • (String, nil)

    Launch script that can configure the instance with additional data



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

attribute :user_data

#wait:yes, ...

Returns Wait for the instance to be in state ‘running’ before returning. If wait is “no” an ip_address may not be returned.

Returns:

  • (:yes, :no, nil)

    Wait for the instance to be in state ‘running’ before returning. If wait is “no” an ip_address may not be returned



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

attribute :wait

#wait_timeoutInteger?

Returns How long before wait gives up, in seconds.

Returns:

  • (Integer, nil)

    How long before wait gives up, in seconds.



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

attribute :wait_timeout

#zoneString?

Returns AWS availability zone in which to launch the instance. Required when state=‘present’.

Returns:

  • (String, nil)

    AWS availability zone in which to launch the instance. Required when state=‘present’



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

attribute :zone