Class: Ansible::Ruby::Modules::Ec2_group

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

Overview

maintains ec2 security groups. This module has a dependency on python-boto >= 2.5

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 of the security group.

Returns:

  • (String)

    Description of the security group.



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

attribute :description

#nameString

Returns Name of the security group.

Returns:

  • (String)

    Name of the security group.



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

attribute :name

#purge_rulesString?

Returns Purge existing rules on security group that are not found in rules.

Returns:

  • (String, nil)

    Purge existing rules on security group that are not found in rules



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

attribute :purge_rules

#purge_rules_egressString?

Returns Purge existing rules_egress on security group that are not found in rules_egress.

Returns:

  • (String, nil)

    Purge existing rules_egress on security group that are not found in rules_egress



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

attribute :purge_rules_egress

#rulesArray<Hash>, ...

Returns List of firewall inbound rules to enforce in this group (see example). If none are supplied, a default all-out rule is assumed. If an empty list is supplied, no inbound rules will be enabled.

Returns:

  • (Array<Hash>, Hash, nil)

    List of firewall inbound rules to enforce in this group (see example). If none are supplied, a default all-out rule is assumed. If an empty list is supplied, no inbound rules will be enabled.



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

attribute :rules

#rules_egressArray<Hash>, ...

Returns List of firewall outbound rules to enforce in this group (see example). If none are supplied, a default all-out rule is assumed. If an empty list is supplied, no outbound rules will be enabled.

Returns:

  • (Array<Hash>, Hash, nil)

    List of firewall outbound rules to enforce in this group (see example). If none are supplied, a default all-out rule is assumed. If an empty list is supplied, no outbound rules will be enabled.



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

attribute :rules_egress

#state:present, ...

Returns Create or delete a security group.

Returns:

  • (:present, :absent, nil)

    Create or delete a security group



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

attribute :state

#vpc_idInteger?

Returns ID of the VPC to create the group in.

Returns:

  • (Integer, nil)

    ID of the VPC to create the group in.



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

attribute :vpc_id