Method: AWS::EC2::SecurityGroup#vpc_id

Defined in:
lib/aws/ec2/security_group.rb

#vpc_idString? (readonly)

If this is a VPC security group, vpc_id is the ID of the VPC this group was created in. Returns false otherwise.

Returns:

  • (String, nil)

    the current value of vpc_id



30
31
32
# File 'lib/aws/ec2/security_group.rb', line 30

def vpc_id
  @vpc_id
end