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

Class: Aws::EC2::Types::CreateSecurityGroupRequest

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

Overview

Note:

When making an API call, you may pass CreateSecurityGroupRequest data as a hash:

{
  description: "String", # required
  group_name: "String", # required
  vpc_id: "String",
  dry_run: false,
}

Contains the parameters for CreateSecurityGroup.

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

A description for the security group. This is informational only.

Constraints: Up to 255 characters in length

Constraints for EC2-Classic: ASCII characters

Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{\}!$*

Returns:

  • (String)


3661
3662
3663
3664
3665
3666
3667
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 3661

class CreateSecurityGroupRequest < Struct.new(
  :description,
  :group_name,
  :vpc_id,
  :dry_run)
  include Aws::Structure
end

#dry_runBoolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Returns:

  • (Boolean)


3661
3662
3663
3664
3665
3666
3667
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 3661

class CreateSecurityGroupRequest < Struct.new(
  :description,
  :group_name,
  :vpc_id,
  :dry_run)
  include Aws::Structure
end

#group_nameString

The name of the security group.

Constraints: Up to 255 characters in length

Constraints for EC2-Classic: ASCII characters

Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{\}!$*

Returns:

  • (String)


3661
3662
3663
3664
3665
3666
3667
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 3661

class CreateSecurityGroupRequest < Struct.new(
  :description,
  :group_name,
  :vpc_id,
  :dry_run)
  include Aws::Structure
end

#vpc_idString

[EC2-VPC] The ID of the VPC. Required for EC2-VPC.

Returns:

  • (String)


3661
3662
3663
3664
3665
3666
3667
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 3661

class CreateSecurityGroupRequest < Struct.new(
  :description,
  :group_name,
  :vpc_id,
  :dry_run)
  include Aws::Structure
end