Class: Ansible::Ruby::Modules::Ec2_vpc_net
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ec2_vpc_net
- Defined in:
- lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc_net.rb
Overview
Create or terminate AWS virtual private clouds. This module has a dependency on python-boto.
Instance Method Summary collapse
-
#cidr_block ⇒ String
The CIDR of the VPC.
-
#dhcp_opts_id ⇒ Object?
The id of the DHCP options to use for this vpc.
-
#dns_hostnames ⇒ Boolean?
Whether to enable AWS hostname support.
-
#dns_support ⇒ Boolean?
Whether to enable AWS DNS support.
-
#multi_ok ⇒ Boolean?
By default the module will not create another VPC if there is another VPC with the same name and CIDR block.
-
#name ⇒ String
The name to give your VPC.
-
#state ⇒ :present, ...
The state of the VPC.
-
#tags ⇒ Hash?
The tags you want attached to the VPC.
-
#tenancy ⇒ :default, ...
Whether to be default or dedicated tenancy.
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 ⇒ String
Returns The CIDR of the VPC.
15 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc_net.rb', line 15 attribute :cidr_block |
#dhcp_opts_id ⇒ Object?
Returns the id of the DHCP options to use for this vpc.
31 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc_net.rb', line 31 attribute :dhcp_opts_id |
#dns_hostnames ⇒ Boolean?
Returns Whether to enable AWS hostname support.
27 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc_net.rb', line 27 attribute :dns_hostnames |
#dns_support ⇒ Boolean?
Returns Whether to enable AWS DNS support.
23 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc_net.rb', line 23 attribute :dns_support |
#multi_ok ⇒ Boolean?
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.
42 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc_net.rb', line 42 attribute :multi_ok |
#name ⇒ String
Returns The name to give your VPC. This is used in combination with the cidr_block paramater to determine if a VPC already exists.
11 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc_net.rb', line 11 attribute :name |
#state ⇒ :present, ...
Returns The state of the VPC. Either absent or present.
38 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc_net.rb', line 38 attribute :state |
#tags ⇒ Hash?
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.
34 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc_net.rb', line 34 attribute :tags |
#tenancy ⇒ :default, ...
Returns Whether to be default or dedicated tenancy. This cannot be changed after the VPC has been created.
19 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc_net.rb', line 19 attribute :tenancy |