Class: Ansible::Ruby::Modules::Ec2_ami_find

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

Instance Method Summary collapse

Methods inherited from Base

#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

#ami_idObject?

Returns An AMI ID to match.

Returns:

  • (Object, nil)

    An AMI ID to match.



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

attribute :ami_id

#ami_tagsHash?

Returns A hash/dictionary of tags to match for the AMI.

Returns:

  • (Hash, nil)

    A hash/dictionary of tags to match for the AMI.



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

attribute :ami_tags

#architectureObject?

Returns An architecture type to match (e.g. x86_64).

Returns:

  • (Object, nil)

    An architecture type to match (e.g. x86_64).



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

attribute :architecture

#hypervisorObject?

Returns A hypervisor type type to match (e.g. xen).

Returns:

  • (Object, nil)

    A hypervisor type type to match (e.g. xen).



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

attribute :hypervisor

#is_public:yes, ...

Returns Whether or not the image(s) are public.

Returns:

  • (:yes, :no, nil)

    Whether or not the image(s) are public.



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

attribute :is_public

#nameString?

Returns An AMI name to match.

Returns:

  • (String, nil)

    An AMI name to match.



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

attribute :name

#no_result_action:success, ...

Returns What to do when no results are found.,‘success’ reports success and returns an empty array,‘fail’ causes the module to report failure.

Returns:

  • (:success, :fail, nil)

    What to do when no results are found.,‘success’ reports success and returns an empty array,‘fail’ causes the module to report failure



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

attribute :no_result_action

#ownerString?

Returns Search AMIs owned by the specified owner,Can specify an AWS account ID, or one of the special IDs ‘self’, ‘amazon’ or ‘aws-marketplace’,If not specified, all EC2 AMIs in the specified region will be searched.,You can include wildcards in many of the search options. An asterisk (*) matches zero or more characters, and a question mark (?) matches exactly one character. You can escape special characters using a backslash () before the character. For example, a value of *amazon?\ searches for the literal string *amazon?.

Returns:

  • (String, nil)

    Search AMIs owned by the specified owner,Can specify an AWS account ID, or one of the special IDs ‘self’, ‘amazon’ or ‘aws-marketplace’,If not specified, all EC2 AMIs in the specified region will be searched.,You can include wildcards in many of the search options. An asterisk (*) matches zero or more characters, and a question mark (?) matches exactly one character. You can escape special characters using a backslash () before the character. For example, a value of *amazon?\ searches for the literal string *amazon?.



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

attribute :owner

#platformObject?

Returns Platform type to match.

Returns:

  • (Object, nil)

    Platform type to match.



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

attribute :platform

#regionObject

Returns The AWS region to use.

Returns:

  • (Object)

    The AWS region to use.



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

attribute :region

#sort:name, ...

Returns Optional attribute which with to sort the results.,If specifying ‘tag’, the ‘tag_name’ parameter is required.,Starting at version 2.1, additional sort choices of architecture, block_device_mapping, creationDate, hypervisor, is_public, location, owner_id, platform, root_device_name, root_device_type, state, and virtualization_type are supported.

Returns:

  • (:name, :description, :tag, :architecture, :block_device_mapping, :creationDate, :hypervisor, :is_public, :location, :owner_id, :platform, :root_device_name, :root_device_type, :state, :virtualization_type, nil)

    Optional attribute which with to sort the results.,If specifying ‘tag’, the ‘tag_name’ parameter is required.,Starting at version 2.1, additional sort choices of architecture, block_device_mapping, creationDate, hypervisor, is_public, location, owner_id, platform, root_device_name, root_device_type, state, and virtualization_type are supported.



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

attribute :sort

#sort_endInteger?

Returns Which result to end with (when sorting).,Corresponds to Python slice notation.

Returns:

  • (Integer, nil)

    Which result to end with (when sorting).,Corresponds to Python slice notation.



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

attribute :sort_end

#sort_order:ascending, ...

Returns Order in which to sort results.,Only used when the ‘sort’ parameter is specified.

Returns:

  • (:ascending, :descending, nil)

    Order in which to sort results.,Only used when the ‘sort’ parameter is specified.



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

attribute :sort_order

#sort_startObject?

Returns Which result to start with (when sorting).,Corresponds to Python slice notation.

Returns:

  • (Object, nil)

    Which result to start with (when sorting).,Corresponds to Python slice notation.



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

attribute :sort_start

#sort_tagObject?

Returns Tag name with which to sort results.,Required when specifying ‘sort=tag’.

Returns:

  • (Object, nil)

    Tag name with which to sort results.,Required when specifying ‘sort=tag’.



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

attribute :sort_tag

#stateString?

Returns AMI state to match.

Returns:

  • (String, nil)

    AMI state to match.



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

attribute :state

#virtualization_typeObject?

Returns Virtualization type to match (e.g. hvm).

Returns:

  • (Object, nil)

    Virtualization type to match (e.g. hvm).



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

attribute :virtualization_type