Deletes a security group that you own.

C# |
public class DeleteSecurityGroupRequest : EC2Request

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | DeleteSecurityGroupRequest()()()() | Initializes a new instance of the DeleteSecurityGroupRequest class |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) |
![]() | GroupId |
ID of the security group to delete.
|
![]() | GroupName |
Name of the security group to delete.
|
![]() | IsSetGroupId()()()() |
Checks if GroupId property is set
|
![]() | IsSetGroupName()()()() |
Checks if GroupName property is set
|
![]() | ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WithGroupId(String) | Obsolete.
Sets the ID of the security group to delete.
|
![]() | WithGroupName(String) | Obsolete.
Sets the name of the security group to delete.
|

If you attempt to delete a security group that contains instances, an
error is returned.
If you attempt to delete a security group that is referenced by
another security group, an error 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.

Object | ||
![]() | EC2Request | |
![]() | DeleteSecurityGroupRequest |