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.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DeleteSecurityGroup.html
- data DeleteSecurityGroup
- deleteSecurityGroup :: DeleteSecurityGroup
- dsgDryRun :: Lens' DeleteSecurityGroup (Maybe Bool)
- dsgGroupId :: Lens' DeleteSecurityGroup (Maybe Text)
- dsgGroupName :: Lens' DeleteSecurityGroup (Maybe Text)
- data DeleteSecurityGroupResponse
- deleteSecurityGroupResponse :: DeleteSecurityGroupResponse
Request
data DeleteSecurityGroup Source
Request constructor
deleteSecurityGroup :: DeleteSecurityGroup Source
DeleteSecurityGroup
constructor.
The fields accessible through corresponding lenses are:
dsgDryRun
::
Maybe
Bool
dsgGroupId
::
Maybe
Text
dsgGroupName
::
Maybe
Text
Request lenses
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
.
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.