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.



22
23
24
# File 'lib/resources/aws/aws_vpc.rb', line 22

def cidr_block
  @cidr_block
end

#dhcp_options_idObject (readonly)

Returns the value of attribute dhcp_options_id.



22
23
24
# File 'lib/resources/aws/aws_vpc.rb', line 22

def dhcp_options_id
  @dhcp_options_id
end

#instance_tenancyObject (readonly)

Returns the value of attribute instance_tenancy.



22
23
24
# File 'lib/resources/aws/aws_vpc.rb', line 22

def instance_tenancy
  @instance_tenancy
end

#is_defaultObject (readonly) Also known as: default?

Returns the value of attribute is_default.



22
23
24
# File 'lib/resources/aws/aws_vpc.rb', line 22

def is_default
  @is_default
end

#stateObject (readonly)

Returns the value of attribute state.



22
23
24
# File 'lib/resources/aws/aws_vpc.rb', line 22

def state
  @state
end

#vpc_idObject (readonly)

Returns the value of attribute vpc_id.



22
23
24
# File 'lib/resources/aws/aws_vpc.rb', line 22

def vpc_id
  @vpc_id
end

Instance Method Details

#to_sObject



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

def to_s
  "VPC #{vpc_id}"
end