C# Class Amazon.EC2.Model.DeleteSecurityGroupRequest

Container for the parameters to the DeleteSecurityGroup operation. Deletes a security group.

If you attempt to delete a security group that is associated with an instance, or is referenced by another security group, the operation fails with InvalidGroup.InUse in EC2-Classic or DependencyViolation in EC2-VPC.

Inheritance: AmazonEC2Request
Show file Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
DeleteSecurityGroupRequest ( ) : System

Empty constructor used to set properties independently even when a simple constructor is available

DeleteSecurityGroupRequest ( string groupName ) : System

Instantiates DeleteSecurityGroupRequest with the parameterized properties

Private Methods

Method Description
IsSetGroupId ( ) : bool
IsSetGroupName ( ) : bool

Method Details

DeleteSecurityGroupRequest() public method

Empty constructor used to set properties independently even when a simple constructor is available
public DeleteSecurityGroupRequest ( ) : System
return System

DeleteSecurityGroupRequest() public method

Instantiates DeleteSecurityGroupRequest with the parameterized properties
public DeleteSecurityGroupRequest ( string groupName ) : System
groupName string [EC2-Classic, default VPC] The name of the security group. You can specify either the security group name or the security group ID.
return System