Creates a new security group. Group names must be
unique per account.
Declaration Syntax
C# |
public CreateSecurityGroupResponse CreateSecurityGroup( CreateSecurityGroupRequest request )
Parameters
- request (CreateSecurityGroupRequest)
- Create Security Group request
Return Value
Create Security Group Response from the service
Remarks
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.
Exceptions
Exception | Condition |
---|---|
WebException | |
AmazonEC2Exception |