Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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 InUse
in EC2-Classic or DependencyViolation
in EC2-VPC.
- deleteSecurityGroup :: DeleteSecurityGroup
- data DeleteSecurityGroup
- dsgGroupId :: Lens' DeleteSecurityGroup (Maybe Text)
- dsgGroupName :: Lens' DeleteSecurityGroup (Maybe Text)
- dsgDryRun :: Lens' DeleteSecurityGroup (Maybe Bool)
- deleteSecurityGroupResponse :: DeleteSecurityGroupResponse
- data DeleteSecurityGroupResponse
Creating a Request
deleteSecurityGroup :: DeleteSecurityGroup Source #
Creates a value of DeleteSecurityGroup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeleteSecurityGroup Source #
Contains the parameters for DeleteSecurityGroup.
See: deleteSecurityGroup
smart constructor.
Request Lenses
dsgGroupId :: Lens' DeleteSecurityGroup (Maybe Text) Source #
The ID of the security group. Required for a nondefault VPC.
dsgGroupName :: Lens' DeleteSecurityGroup (Maybe Text) Source #
- EC2-Classic, default VPC
- The name of the security group. You can specify either the security group name or the security group ID.
dsgDryRun :: Lens' DeleteSecurityGroup (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
Destructuring the Response
deleteSecurityGroupResponse :: DeleteSecurityGroupResponse Source #
Creates a value of DeleteSecurityGroupResponse
with the minimum fields required to make a request.
data DeleteSecurityGroupResponse Source #
See: deleteSecurityGroupResponse
smart constructor.