You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::EC2::Types::SecurityGroup

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Describes a security group

Instance Attribute Summary collapse

Instance Attribute Details

#description ⇒ String

A description of the security group.

Returns:

  • (String) —

    A description of the security group.

#group_id ⇒ String

The ID of the security group.

Returns:

  • (String) —

    The ID of the security group.

#group_name ⇒ String

The name of the security group.

Returns:

  • (String) —

    The name of the security group.

#ip_permissions ⇒ Array<Types::IpPermission>

The inbound rules associated with the security group.

Returns:

#ip_permissions_egress ⇒ Array<Types::IpPermission>

[VPC only] The outbound rules associated with the security group.

Returns:

  • (Array<Types::IpPermission>) —

    [VPC only] The outbound rules associated with the security group.

#owner_id ⇒ String

The AWS account ID of the owner of the security group.

Returns:

  • (String) —

    The AWS account ID of the owner of the security group.

#tags ⇒ Array<Types::Tag>

Any tags assigned to the security group.

Returns:

  • (Array<Types::Tag>) —

    Any tags assigned to the security group.

#vpc_id ⇒ String

[VPC only] The ID of the VPC for the security group.

Returns:

  • (String) —

    [VPC only] The ID of the VPC for the security group.