Class: Aws::EC2::Types::CreateSecurityGroupRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::CreateSecurityGroupRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
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
-
#description ⇒ String
A description for the security group.
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#group_name ⇒ String
The name of the security group.
-
#vpc_id ⇒ String
[EC2-VPC] The ID of the VPC.
Instance Attribute Details
#description ⇒ String
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 ._-:/()#,@+=&;{\}!$*
3586 3587 3588 3589 3590 3591 3592 |
# File 'lib/aws-sdk-ec2/types.rb', line 3586 class CreateSecurityGroupRequest < Struct.new( :description, :group_name, :vpc_id, :dry_run) include Aws::Structure end |
#dry_run ⇒ Boolean
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`.
3586 3587 3588 3589 3590 3591 3592 |
# File 'lib/aws-sdk-ec2/types.rb', line 3586 class CreateSecurityGroupRequest < Struct.new( :description, :group_name, :vpc_id, :dry_run) include Aws::Structure end |
#group_name ⇒ String
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 ._-:/()#,@+=&;{\}!$*
3586 3587 3588 3589 3590 3591 3592 |
# File 'lib/aws-sdk-ec2/types.rb', line 3586 class CreateSecurityGroupRequest < Struct.new( :description, :group_name, :vpc_id, :dry_run) include Aws::Structure end |
#vpc_id ⇒ String
[EC2-VPC] The ID of the VPC. Required for EC2-VPC.
3586 3587 3588 3589 3590 3591 3592 |
# File 'lib/aws-sdk-ec2/types.rb', line 3586 class CreateSecurityGroupRequest < Struct.new( :description, :group_name, :vpc_id, :dry_run) include Aws::Structure end |