Class: Ansible::Ruby::Modules::Ec2_vpc

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.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

#cidr_blockObject?

Returns The cidr block representing the VPC, e.g. 10.0.0.0/16, required when I(state) is ‘present’.

Returns:

  • (Object, nil)

    The cidr block representing the VPC, e.g. 10.0.0.0/16, required when I(state) is ‘present’.



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

attribute :cidr_block

#dns_hostnames:yes, ...

Returns toggles the “Enable DNS hostname support for instances” flag.

Returns:

  • (:yes, :no, nil)

    toggles the “Enable DNS hostname support for instances” flag



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

attribute :dns_hostnames

#dns_support:yes, ...

Returns toggles the “Enable DNS resolution” flag.

Returns:

  • (:yes, :no, nil)

    toggles the “Enable DNS resolution” flag



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

attribute :dns_support

#instance_tenancy:default, ...

Returns The supported tenancy options for instances launched into the VPC.

Returns:

  • (:default, :dedicated, nil)

    The supported tenancy options for instances launched into the VPC.



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

attribute :instance_tenancy

#internet_gateway:yes, ...

Returns Toggle whether there should be an Internet gateway attached to the VPC.

Returns:

  • (:yes, :no, nil)

    Toggle whether there should be an Internet gateway attached to the VPC



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

attribute :internet_gateway

#resource_tagsObject

Returns A dictionary array of resource tags of the form: { tag1: value1, tag2: value2 }. Tags in this list are used in conjunction with CIDR block to uniquely identify a VPC in lieu of vpc_id. Therefore, if CIDR/Tag combination does not exist, a new VPC will be created. VPC tags not on this list will be ignored. Prior to 1.7, specifying a resource tag was optional.

Returns:

  • (Object)

    A dictionary array of resource tags of the form: { tag1: value1, tag2: value2 }. Tags in this list are used in conjunction with CIDR block to uniquely identify a VPC in lieu of vpc_id. Therefore, if CIDR/Tag combination does not exist, a new VPC will be created. VPC tags not on this list will be ignored. Prior to 1.7, specifying a resource tag was optional.



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

attribute :resource_tags

#route_tablesObject?

Returns A dictionary array of route tables to add of the form: { subnets: [172.22.2.0/24, 172.22.3.0/24,], routes: [{ dest: 0.0.0.0/0, gw: igw},], resource_tags: … }. Where the subnets list is those subnets the route table should be associated with, and the routes list is a list of routes to be in the table. The special keyword for the gw of igw specifies that you should the route should go through the internet gateway attached to the VPC. gw also accepts instance-ids, interface-ids, and vpc-peering-connection-ids in addition igw. resource_tags is optional and uses dictionary form: { “Name”: “public”, … }. This module is currently unable to affect the “main” route table due to some limitations in boto, so you must explicitly define the associated subnets or they will be attached to the main table implicitly. As of 1.8, if the route_tables parameter is not specified, no existing routes will be modified.

Returns:

  • (Object, nil)

    A dictionary array of route tables to add of the form: { subnets: [172.22.2.0/24, 172.22.3.0/24,], routes: [{ dest: 0.0.0.0/0, gw: igw},], resource_tags: … }. Where the subnets list is those subnets the route table should be associated with, and the routes list is a list of routes to be in the table. The special keyword for the gw of igw specifies that you should the route should go through the internet gateway attached to the VPC. gw also accepts instance-ids, interface-ids, and vpc-peering-connection-ids in addition igw. resource_tags is optional and uses dictionary form: { “Name”: “public”, … }. This module is currently unable to affect the “main” route table due to some limitations in boto, so you must explicitly define the associated subnets or they will be attached to the main table implicitly. As of 1.8, if the route_tables parameter is not specified, no existing routes will be modified.



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

attribute :route_tables

#state:present, :absent

Returns Create or terminate the VPC.

Returns:

  • (:present, :absent)

    Create or terminate the VPC



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

attribute :state

#subnetsObject?

Returns A dictionary array of subnets to add of the form: { cidr: …, az: … , resource_tags: … }. Where az is the desired availability zone of the subnet, but it is not required. Tags (i.e.: resource_tags) is also optional and use dictionary form: { “Environment”:“Dev”, “Tier”:“Web”, …}. All VPC subnets not in this list will be removed as well. As of 1.8, if the subnets parameter is not specified, no existing subnets will be modified.

Returns:

  • (Object, nil)

    A dictionary array of subnets to add of the form: { cidr: …, az: … , resource_tags: … }. Where az is the desired availability zone of the subnet, but it is not required. Tags (i.e.: resource_tags) is also optional and use dictionary form: { “Environment”:“Dev”, “Tier”:“Web”, …}. All VPC subnets not in this list will be removed as well. As of 1.8, if the subnets parameter is not specified, no existing subnets will be modified.



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

attribute :subnets

#vpc_idObject?

Returns A VPC id to terminate when state=absent.

Returns:

  • (Object, nil)

    A VPC id to terminate when state=absent



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

attribute :vpc_id

#wait:yes, ...

Returns wait for the VPC to be in state ‘available’ before returning.

Returns:

  • (:yes, :no, nil)

    wait for the VPC to be in state ‘available’ before returning



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

attribute :wait

#wait_timeoutInteger?

Returns how long before wait gives up, in seconds.

Returns:

  • (Integer, nil)

    how long before wait gives up, in seconds



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

attribute :wait_timeout