Class: AwsSubnet

Inherits:
Object
  • Object
show all
Includes:
AwsSingularResourceMixin
Defined in:
lib/resources/aws/aws_subnet.rb

Defined Under Namespace

Classes: Backend

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AwsSingularResourceMixin

#exists?, included

Methods included from AwsResourceMixin

#catch_aws_errors, #check_resource_param_names, #initialize, #inspec_runner

Instance Attribute Details

#assigning_ipv_6_address_on_creationObject (readonly) Also known as: assigning_ipv_6_address_on_creation?

Returns the value of attribute assigning_ipv_6_address_on_creation.



13
14
15
# File 'lib/resources/aws/aws_subnet.rb', line 13

def assigning_ipv_6_address_on_creation
  @assigning_ipv_6_address_on_creation
end

#availability_zoneObject (readonly)

Returns the value of attribute availability_zone.



13
14
15
# File 'lib/resources/aws/aws_subnet.rb', line 13

def availability_zone
  @availability_zone
end

#availableObject (readonly) Also known as: available?

Returns the value of attribute available.



13
14
15
# File 'lib/resources/aws/aws_subnet.rb', line 13

def available
  @available
end

#available_ip_address_countObject (readonly)

Returns the value of attribute available_ip_address_count.



13
14
15
# File 'lib/resources/aws/aws_subnet.rb', line 13

def available_ip_address_count
  @available_ip_address_count
end

#cidr_blockObject (readonly)

Returns the value of attribute cidr_block.



13
14
15
# File 'lib/resources/aws/aws_subnet.rb', line 13

def cidr_block
  @cidr_block
end

#default_for_azObject (readonly) Also known as: default_for_az?

Returns the value of attribute default_for_az.



13
14
15
# File 'lib/resources/aws/aws_subnet.rb', line 13

def default_for_az
  @default_for_az
end

#ipv_6_cidr_block_association_setObject (readonly)

Returns the value of attribute ipv_6_cidr_block_association_set.



13
14
15
# File 'lib/resources/aws/aws_subnet.rb', line 13

def ipv_6_cidr_block_association_set
  @ipv_6_cidr_block_association_set
end

#mapping_public_ip_on_launchObject (readonly) Also known as: mapping_public_ip_on_launch?

Returns the value of attribute mapping_public_ip_on_launch.



13
14
15
# File 'lib/resources/aws/aws_subnet.rb', line 13

def mapping_public_ip_on_launch
  @mapping_public_ip_on_launch
end

#subnet_idObject (readonly)

Returns the value of attribute subnet_id.



13
14
15
# File 'lib/resources/aws/aws_subnet.rb', line 13

def subnet_id
  @subnet_id
end

#vpc_idObject (readonly)

Returns the value of attribute vpc_id.



13
14
15
# File 'lib/resources/aws/aws_subnet.rb', line 13

def vpc_id
  @vpc_id
end

Instance Method Details

#to_sObject



21
22
23
# File 'lib/resources/aws/aws_subnet.rb', line 21

def to_s
  "VPC Subnet #{@subnet_id}"
end