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>

One or more inbound rules associated with the security group.

Returns:

  • (Array<Types::IpPermission>)

    One or more inbound rules associated with the security group.

#ip_permissions_egressArray<Types::IpPermission>

[EC2-VPC] One or more outbound rules associated with the security group.

Returns:

  • (Array<Types::IpPermission>)

    [EC2-VPC] One or more 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

[EC2-VPC] The ID of the VPC for the security group.

Returns:

  • (String)

    [EC2-VPC] The ID of the VPC for the security group.