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

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/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, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#azObject?

Returns The availability zone for the subnet. Only required when state=present.

Returns:

  • (Object, nil)

    The availability zone for the subnet. Only required when state=present.



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

attribute :az

#cidrString?

Returns The CIDR block for the subnet. E.g. 10.0.0.0/16. Only required when state=present.

Returns:

  • (String, nil)

    The CIDR block for the subnet. E.g. 10.0.0.0/16. Only required when state=present.



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

attribute :cidr

#state:present, ...

Returns Create or remove the subnet.

Returns:

  • (:present, :absent, nil)

    Create or remove the subnet



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

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.



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

attribute :tags

#vpc_idString?

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

Returns:

  • (String, nil)

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



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

attribute :vpc_id