Class: Ansible::Ruby::Modules::Ec2_vpc_net

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

Overview

Create, modify, and terminate 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

#cidr_blockString

Returns The primary CIDR of the VPC. After 2.5 a list of CIDRs can be provided. The first in the list will be used as the primary CIDR and is used in conjunction with the C(name) to ensure idempotence.

Returns:

  • (String)

    The primary CIDR of the VPC. After 2.5 a list of CIDRs can be provided. The first in the list will be used as the primary CIDR and is used in conjunction with the C(name) to ensure idempotence.



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

attribute :cidr_block

#dhcp_opts_idObject?

Returns the id of the DHCP options to use for this vpc.

Returns:

  • (Object, nil)

    the id of the DHCP options to use for this vpc



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

attribute :dhcp_opts_id

#dns_hostnamesBoolean?

Returns Whether to enable AWS hostname support.

Returns:

  • (Boolean, nil)

    Whether to enable AWS hostname support.



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

attribute :dns_hostnames

#dns_supportBoolean?

Returns Whether to enable AWS DNS support.

Returns:

  • (Boolean, nil)

    Whether to enable AWS DNS support.



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

attribute :dns_support

#multi_okBoolean?

Returns By default the module will not create another VPC if there is another VPC with the same name and CIDR block. Specify this as true if you want duplicate VPCs created.

Returns:

  • (Boolean, nil)

    By default the module will not create another VPC if there is another VPC with the same name and CIDR block. Specify this as true if you want duplicate VPCs created.



47
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_vpc_net.rb', line 47

attribute :multi_ok

#nameString

Returns The name to give your VPC. This is used in combination with C(cidr_block) to determine if a VPC already exists.

Returns:

  • (String)

    The name to give your VPC. This is used in combination with C(cidr_block) to determine if a VPC already exists.



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

attribute :name

#purge_cidrsSymbol?

Returns Remove CIDRs that are associated with the VPC and are not specified in C(cidr_block).

Returns:

  • (Symbol, nil)

    Remove CIDRs that are associated with the VPC and are not specified in C(cidr_block).



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

attribute :purge_cidrs

#state:present, ...

Returns The state of the VPC. Either absent or present.

Returns:

  • (:present, :absent, nil)

    The state of the VPC. Either absent or present.



43
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_vpc_net.rb', line 43

attribute :state

#tagsHash?

Returns The tags you want attached to the VPC. This is independent of the name value, note if you pass a ‘Name’ key it would override the Name of the VPC if it’s different.

Returns:

  • (Hash, nil)

    The tags you want attached to the VPC. This is independent of the name value, note if you pass a ‘Name’ key it would override the Name of the VPC if it’s different.



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

attribute :tags

#tenancy:default, ...

Returns Whether to be default or dedicated tenancy. This cannot be changed after the VPC has been created.

Returns:

  • (:default, :dedicated, nil)

    Whether to be default or dedicated tenancy. This cannot be changed after the VPC has been created.



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

attribute :tenancy