AmazonEC2Client.DeleteSecurityGroup Method (DeleteSecurityGroupRequest)

.NET Framework 3.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...

The DeleteSecurityGroup operation deletes a security group.

NOTE: If you attempt to delete a security group that contains instances, a fault is returned. If you attempt to delete a security group that is referenced by another security group, a fault is returned. For example, if security group B has a rule that allows access from security group A, security group A cannot be deleted until the allow rule is removed.

Namespace: Amazon.EC2
Assembly: AWSSDK.dll
Version: 2.0.0.3

Syntax

C#
public virtual DeleteSecurityGroupResponse DeleteSecurityGroup(
         DeleteSecurityGroupRequest deleteSecurityGroupRequest
)

Parameters

deleteSecurityGroupRequest
Type: Amazon.EC2.Model.DeleteSecurityGroupRequest

Container for the necessary parameters to execute the DeleteSecurityGroup service method on AmazonEC2.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5