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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb

Overview

Note:

When making an API call, you may pass AwsEc2SecurityGroupDetails data as a 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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#group_idString

The ID of the security group.

Returns:

  • (String)


987
988
989
990
991
992
993
994
995
996
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 987

class AwsEc2SecurityGroupDetails < Struct.new(
  :group_name,
  :group_id,
  :owner_id,
  :vpc_id,
  :ip_permissions,
  :ip_permissions_egress)
  SENSITIVE = []
  include Aws::Structure
end

#group_nameString

The name of the security group.

Returns:

  • (String)


987
988
989
990
991
992
993
994
995
996
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 987

class AwsEc2SecurityGroupDetails < Struct.new(
  :group_name,
  :group_id,
  :owner_id,
  :vpc_id,
  :ip_permissions,
  :ip_permissions_egress)
  SENSITIVE = []
  include Aws::Structure
end

#ip_permissionsArray<Types::AwsEc2SecurityGroupIpPermission>

The inbound rules associated with the security group.



987
988
989
990
991
992
993
994
995
996
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 987

class AwsEc2SecurityGroupDetails < Struct.new(
  :group_name,
  :group_id,
  :owner_id,
  :vpc_id,
  :ip_permissions,
  :ip_permissions_egress)
  SENSITIVE = []
  include Aws::Structure
end

#ip_permissions_egressArray<Types::AwsEc2SecurityGroupIpPermission>

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



987
988
989
990
991
992
993
994
995
996
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 987

class AwsEc2SecurityGroupDetails < Struct.new(
  :group_name,
  :group_id,
  :owner_id,
  :vpc_id,
  :ip_permissions,
  :ip_permissions_egress)
  SENSITIVE = []
  include Aws::Structure
end

#owner_idString

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

Returns:

  • (String)


987
988
989
990
991
992
993
994
995
996
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 987

class AwsEc2SecurityGroupDetails < Struct.new(
  :group_name,
  :group_id,
  :owner_id,
  :vpc_id,
  :ip_permissions,
  :ip_permissions_egress)
  SENSITIVE = []
  include Aws::Structure
end

#vpc_idString

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

Returns:

  • (String)


987
988
989
990
991
992
993
994
995
996
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 987

class AwsEc2SecurityGroupDetails < Struct.new(
  :group_name,
  :group_id,
  :owner_id,
  :vpc_id,
  :ip_permissions,
  :ip_permissions_egress)
  SENSITIVE = []
  include Aws::Structure
end