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

Class: Aws::SecurityHub::Types::AwsEc2SecurityGroupDetails

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

Overview

Note:

When passing AwsEc2SecurityGroupDetails as input to an Aws::Client method, you can use a vanilla Hash:

{
  group_name: "NonEmptyString",
  group_id: "NonEmptyString",
  owner_id: "NonEmptyString",
  vpc_id: "NonEmptyString",
  ip_permissions: [
    {
      ip_protocol: "NonEmptyString",
      from_port: 1,
      to_port: 1,
      user_id_group_pairs: [
        {
          group_id: "NonEmptyString",
          group_name: "NonEmptyString",
          peering_status: "NonEmptyString",
          user_id: "NonEmptyString",
          vpc_id: "NonEmptyString",
          vpc_peering_connection_id: "NonEmptyString",
        },
      ],
      ip_ranges: [
        {
          cidr_ip: "NonEmptyString",
        },
      ],
      ipv_6_ranges: [
        {
          cidr_ipv_6: "NonEmptyString",
        },
      ],
      prefix_list_ids: [
        {
          prefix_list_id: "NonEmptyString",
        },
      ],
    },
  ],
  ip_permissions_egress: [
    {
      ip_protocol: "NonEmptyString",
      from_port: 1,
      to_port: 1,
      user_id_group_pairs: [
        {
          group_id: "NonEmptyString",
          group_name: "NonEmptyString",
          peering_status: "NonEmptyString",
          user_id: "NonEmptyString",
          vpc_id: "NonEmptyString",
          vpc_peering_connection_id: "NonEmptyString",
        },
      ],
      ip_ranges: [
        {
          cidr_ip: "NonEmptyString",
        },
      ],
      ipv_6_ranges: [
        {
          cidr_ipv_6: "NonEmptyString",
        },
      ],
      prefix_list_ids: [
        {
          prefix_list_id: "NonEmptyString",
        },
      ],
    },
  ],
}

Details about an EC2 security group.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#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::AwsEc2SecurityGroupIpPermission>

The inbound rules associated with the security group.

Returns:

#ip_permissions_egressArray<Types::AwsEc2SecurityGroupIpPermission>

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

Returns:

#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.

#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.