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

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

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

Overview

Describes a security group

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

A description of the security group.

Returns:

  • (String)


33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33443

class SecurityGroup < Struct.new(
  :description,
  :group_name,
  :ip_permissions,
  :owner_id,
  :group_id,
  :ip_permissions_egress,
  :tags,
  :vpc_id)
  include Aws::Structure
end

#group_idString

The ID of the security group.

Returns:

  • (String)


33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33443

class SecurityGroup < Struct.new(
  :description,
  :group_name,
  :ip_permissions,
  :owner_id,
  :group_id,
  :ip_permissions_egress,
  :tags,
  :vpc_id)
  include Aws::Structure
end

#group_nameString

The name of the security group.

Returns:

  • (String)


33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33443

class SecurityGroup < Struct.new(
  :description,
  :group_name,
  :ip_permissions,
  :owner_id,
  :group_id,
  :ip_permissions_egress,
  :tags,
  :vpc_id)
  include Aws::Structure
end

#ip_permissionsArray<Types::IpPermission>

The inbound rules associated with the security group.

Returns:



33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33443

class SecurityGroup < Struct.new(
  :description,
  :group_name,
  :ip_permissions,
  :owner_id,
  :group_id,
  :ip_permissions_egress,
  :tags,
  :vpc_id)
  include Aws::Structure
end

#ip_permissions_egressArray<Types::IpPermission>

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

Returns:



33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33443

class SecurityGroup < Struct.new(
  :description,
  :group_name,
  :ip_permissions,
  :owner_id,
  :group_id,
  :ip_permissions_egress,
  :tags,
  :vpc_id)
  include Aws::Structure
end

#owner_idString

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

Returns:

  • (String)


33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33443

class SecurityGroup < Struct.new(
  :description,
  :group_name,
  :ip_permissions,
  :owner_id,
  :group_id,
  :ip_permissions_egress,
  :tags,
  :vpc_id)
  include Aws::Structure
end

#tagsArray<Types::Tag>

Any tags assigned to the security group.

Returns:



33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33443

class SecurityGroup < Struct.new(
  :description,
  :group_name,
  :ip_permissions,
  :owner_id,
  :group_id,
  :ip_permissions_egress,
  :tags,
  :vpc_id)
  include Aws::Structure
end

#vpc_idString

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

Returns:

  • (String)


33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33443

class SecurityGroup < Struct.new(
  :description,
  :group_name,
  :ip_permissions,
  :owner_id,
  :group_id,
  :ip_permissions_egress,
  :tags,
  :vpc_id)
  include Aws::Structure
end