Class: Ansible::Ruby::Modules::Ec2_vpc_subnet

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

Overview

Manage subnets in AWS virtual private clouds

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

#assign_instances_ipv6:yes, ...

Returns Specify C(yes) to indicate that instances launched into the subnet should be automatically assigned an IPv6 address.

Returns:

  • (:yes, :no, nil)

    Specify C(yes) to indicate that instances launched into the subnet should be automatically assigned an IPv6 address.



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

attribute :assign_instances_ipv6

#azObject?

Returns The availability zone for the subnet.

Returns:

  • (Object, nil)

    The availability zone for the subnet.



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

attribute :az

#cidrString?

Returns The CIDR block for the subnet. E.g. 192.0.2.0/24.

Returns:

  • (String, nil)

    The CIDR block for the subnet. E.g. 192.0.2.0/24.



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

attribute :cidr

#ipv6_cidrString?

Returns The IPv6 CIDR block for the subnet. The VPC must have a /56 block assigned and this value must be a valid IPv6 /64 that falls in the VPC range.,Required if I(assign_instances_ipv6=true).

Returns:

  • (String, nil)

    The IPv6 CIDR block for the subnet. The VPC must have a /56 block assigned and this value must be a valid IPv6 /64 that falls in the VPC range.,Required if I(assign_instances_ipv6=true)



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

attribute :ipv6_cidr

#map_public:yes, ...

Returns Specify C(yes) to indicate that instances launched into the subnet should be assigned public IP address by default.

Returns:

  • (:yes, :no, nil)

    Specify C(yes) to indicate that instances launched into the subnet should be assigned public IP address by default.



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

attribute :map_public

#purge_tags:yes, ...

Returns Whether or not to remove tags that do not appear in the I(tags) list.

Returns:

  • (:yes, :no, nil)

    Whether or not to remove tags that do not appear in the I(tags) list.



50
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_vpc_subnet.rb', line 50

attribute :purge_tags

#state:present, ...

Returns Create or remove the subnet.

Returns:

  • (:present, :absent, nil)

    Create or remove the subnet



26
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_vpc_subnet.rb', line 26

attribute :state

#tagsObject?

Returns A dict of tags to apply to the subnet. Any tags currently applied to the subnet and not present here will be removed.

Returns:

  • (Object, nil)

    A dict of tags to apply to the subnet. Any tags currently applied to the subnet and not present here will be removed.



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

attribute :tags

#vpc_idString

Returns VPC ID of the VPC in which to create or delete the subnet.

Returns:

  • (String)

    VPC ID of the VPC in which to create or delete the subnet.



30
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_vpc_subnet.rb', line 30

attribute :vpc_id

#wait:yes, ...

Returns When specified,I(state=present) module will wait for subnet to be in available state before continuing.

Returns:

  • (:yes, :no, nil)

    When specified,I(state=present) module will wait for subnet to be in available state before continuing.



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

attribute :wait

#wait_timeoutInteger?

Returns Number of seconds to wait for subnet to become available I(wait=True).

Returns:

  • (Integer, nil)

    Number of seconds to wait for subnet to become available I(wait=True).



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

attribute :wait_timeout