Class: Ansible::Ruby::Modules::Ec2_vpc
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ec2_vpc
- Defined in:
- lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb
Overview
Create or terminates AWS virtual private clouds. This module has a dependency on python-boto.
Instance Method Summary collapse
-
#cidr_block ⇒ Object?
The cidr block representing the VPC, e.g.
-
#dns_hostnames ⇒ :yes, ...
Toggles the “Enable DNS hostname support for instances” flag.
-
#dns_support ⇒ :yes, ...
Toggles the “Enable DNS resolution” flag.
-
#instance_tenancy ⇒ :default, ...
The supported tenancy options for instances launched into the VPC.
-
#internet_gateway ⇒ :yes, ...
Toggle whether there should be an Internet gateway attached to the VPC.
-
#resource_tags ⇒ Object
A dictionary array of resource tags of the form: { tag1: value1, tag2: value2 }.
-
#route_tables ⇒ Object?
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: … }.
-
#state ⇒ :present, :absent
Create or terminate the VPC.
-
#subnets ⇒ Object?
A dictionary array of subnets to add of the form: { cidr: …, az: … , resource_tags: … }.
-
#vpc_id ⇒ Object?
A VPC id to terminate when state=absent.
-
#wait ⇒ :yes, ...
Wait for the VPC to be in state ‘available’ before returning.
-
#wait_timeout ⇒ Integer?
How long before wait gives up, in seconds.
Methods inherited from Base
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
#cidr_block ⇒ Object?
11 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb', line 11 attribute :cidr_block |
#dns_hostnames ⇒ :yes, ...
22 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb', line 22 attribute :dns_hostnames |
#dns_support ⇒ :yes, ...
18 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb', line 18 attribute :dns_support |
#instance_tenancy ⇒ :default, ...
14 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb', line 14 attribute :instance_tenancy |
#internet_gateway ⇒ :yes, ...
36 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb', line 36 attribute :internet_gateway |
#resource_tags ⇒ Object
32 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb', line 32 attribute :resource_tags |
#route_tables ⇒ Object?
40 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb', line 40 attribute :route_tables |
#state ⇒ :present, :absent
51 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb', line 51 attribute :state |
#subnets ⇒ Object?
26 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb', line 26 attribute :subnets |
#vpc_id ⇒ Object?
29 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb', line 29 attribute :vpc_id |
#wait ⇒ :yes, ...
43 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb', line 43 attribute :wait |
#wait_timeout ⇒ Integer?
47 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb', line 47 attribute :wait_timeout |