AWS SDK for .NET Documentation
DeleteSecurityGroupRequest Class
AmazonAmazon.EC2.ModelDeleteSecurityGroupRequest Did this page help you?   Yes   No    Tell us about it...
Deletes a security group that you own.
Declaration Syntax
C#
public class DeleteSecurityGroupRequest : EC2Request
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
DeleteSecurityGroupRequest()()()()
Initializes a new instance of the DeleteSecurityGroupRequest class

Equals(Object)
Determines whether the specified Object is equal to the current 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.

Remarks
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.
Inheritance Hierarchy
Object
EC2Request
 DeleteSecurityGroupRequest

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)