Class: Ansible::Ruby::Modules::Ec2_vpc_nacl

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

Overview

Read the AWS documentation for Network ACLS U(docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)

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

#egressObject?

Returns A list of rules for outgoing traffic. Each rule must be specified as a list. Each rule may contain the rule number (integer 1-32766), protocol (one of [‘tcp’, ‘udp’, ‘icmp’, ‘-1’, ‘all’]), the rule action (‘allow’ or ‘deny’) the CIDR of the IPv4 network range to allow or deny, the ICMP type (-1 means all types), the ICMP code (-1 means all codes), the last port in the range for TCP or UDP protocols, and the first port in the range for TCP or UDP protocols. See examples.

Returns:

  • (Object, nil)

    A list of rules for outgoing traffic. Each rule must be specified as a list. Each rule may contain the rule number (integer 1-32766), protocol (one of [‘tcp’, ‘udp’, ‘icmp’, ‘-1’, ‘all’]), the rule action (‘allow’ or ‘deny’) the CIDR of the IPv4 network range to allow or deny, the ICMP type (-1 means all types), the ICMP code (-1 means all codes), the last port in the range for TCP or UDP protocols, and the first port in the range for TCP or UDP protocols. See examples.



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

attribute :egress

#ingressObject?

Returns List of rules for incoming traffic. Each rule must be specified as a list. Each rule may contain the rule number (integer 1-32766), protocol (one of [‘tcp’, ‘udp’, ‘icmp’, ‘-1’, ‘all’]), the rule action (‘allow’ or ‘deny’) the CIDR of the IPv4 network range to allow or deny, the ICMP type (-1 means all types), the ICMP code (-1 means all codes), the last port in the range for TCP or UDP protocols, and the first port in the range for TCP or UDP protocols. See examples.

Returns:

  • (Object, nil)

    List of rules for incoming traffic. Each rule must be specified as a list. Each rule may contain the rule number (integer 1-32766), protocol (one of [‘tcp’, ‘udp’, ‘icmp’, ‘-1’, ‘all’]), the rule action (‘allow’ or ‘deny’) the CIDR of the IPv4 network range to allow or deny, the ICMP type (-1 means all types), the ICMP code (-1 means all codes), the last port in the range for TCP or UDP protocols, and the first port in the range for TCP or UDP protocols. See examples.



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

attribute :ingress

#nacl_idString?

Returns NACL id identifying a network ACL.,One and only one of the I(name) or I(nacl_id) is required.

Returns:

  • (String, nil)

    NACL id identifying a network ACL.,One and only one of the I(name) or I(nacl_id) is required.



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

attribute :nacl_id

#nameString?

Returns Tagged name identifying a network ACL.,One and only one of the I(name) or I(nacl_id) is required.

Returns:

  • (String, nil)

    Tagged name identifying a network ACL.,One and only one of the I(name) or I(nacl_id) is required.



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

attribute :name

#state:present, ...

Returns Creates or modifies an existing NACL,Deletes a NACL and reassociates subnets to the default NACL.

Returns:

  • (:present, :absent, nil)

    Creates or modifies an existing NACL,Deletes a NACL and reassociates subnets to the default NACL



38
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_vpc_nacl.rb', line 38

attribute :state

#subnetsArray<String>, ...

Returns The list of subnets that should be associated with the network ACL.,Must be specified as a list,Each subnet can be specified as subnet ID, or its tagged name.

Returns:

  • (Array<String>, String, nil)

    The list of subnets that should be associated with the network ACL.,Must be specified as a list,Each subnet can be specified as subnet ID, or its tagged name.



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

attribute :subnets

#tagsHash?

Returns Dictionary of tags to look for and apply when creating a network ACL.

Returns:

  • (Hash, nil)

    Dictionary of tags to look for and apply when creating a network ACL.



34
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_vpc_nacl.rb', line 34

attribute :tags

#vpc_idString?

Returns VPC id of the requesting VPC.,Required when state present.

Returns:

  • (String, nil)

    VPC id of the requesting VPC.,Required when state present.



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

attribute :vpc_id