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

#descriptionString

A description of the security group.

Returns:

  • (String)

    A description of the security group.

#group_idString

The ID of the security group.

Returns:

  • (String)

    The ID of the security group.

#group_nameString

The name of the security group.

Returns:

  • (String)

    The name of the security group.

#ip_permissionsArray<Types::IpPermission>

The inbound rules associated with the security group.

Returns:

#ip_permissions_egressArray<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_idString

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

Returns:

  • (String)

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

#tagsArray<Types::Tag>

Any tags assigned to the security group.

Returns:

  • (Array<Types::Tag>)

    Any tags assigned to the security group.

#vpc_idString

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

Returns:

  • (String)

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