The CreateSecurityGroup operation creates a new security group.
Every instance is launched in a security group. If no security group is specified during launch, the instances are launched in the default security group. Instances within the same security group have unrestricted network access to each other. Instances will reject network access attempts from other instances in a different security group. As the owner of instances you can grant or revoke specific permissions using the AuthorizeSecurityGroupIngress and RevokeSecurityGroupIngress operations.
Namespace: Amazon.EC2
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public virtual CreateSecurityGroupResponse CreateSecurityGroup( CreateSecurityGroupRequest request )
Parameters
- request
-
Type: Amazon.EC2.Model.CreateSecurityGroupRequest
Return Value
Type: Amazon.EC2.Model.CreateSecurityGroupResponse
The response from the CreateSecurityGroup service method, as returned by AmazonEC2.
Type: Amazon.EC2.Model.CreateSecurityGroupResponse
The response from the CreateSecurityGroup service method, as returned by AmazonEC2.
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5