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)


22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 22243

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)


22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 22243

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)


22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 22243

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>

One or more inbound rules associated with the security group.

Returns:



22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 22243

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] One or more outbound rules associated with the security group.

Returns:



22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 22243

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)


22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 22243

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:



22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 22243

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)


22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 22243

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