Class: AwsVpc

Inherits:
Object
  • Object
show all
Includes:
AwsSingularResourceMixin
Defined in:
lib/resources/aws/aws_vpc.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

#cidr_blockObject (readonly)

Returns the value of attribute cidr_block.



18
19
20
# File 'lib/resources/aws/aws_vpc.rb', line 18

def cidr_block
  @cidr_block
end

#dhcp_options_idObject (readonly)

Returns the value of attribute dhcp_options_id.



18
19
20
# File 'lib/resources/aws/aws_vpc.rb', line 18

def dhcp_options_id
  @dhcp_options_id
end

#instance_tenancyObject (readonly)

Returns the value of attribute instance_tenancy.



18
19
20
# File 'lib/resources/aws/aws_vpc.rb', line 18

def instance_tenancy
  @instance_tenancy
end

#is_defaultObject (readonly) Also known as: default?

Returns the value of attribute is_default.



18
19
20
# File 'lib/resources/aws/aws_vpc.rb', line 18

def is_default
  @is_default
end

#stateObject (readonly)

Returns the value of attribute state.



18
19
20
# File 'lib/resources/aws/aws_vpc.rb', line 18

def state
  @state
end

#vpc_idObject (readonly)

Returns the value of attribute vpc_id.



18
19
20
# File 'lib/resources/aws/aws_vpc.rb', line 18

def vpc_id
  @vpc_id
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/resources/aws/aws_vpc.rb', line 14

def to_s
  "VPC #{vpc_id}"
end