Delete Security Group
ec2_delete_security_group | R Documentation |
Deletes a security group¶
Description¶
Deletes a security group.
If you attempt to delete a security group that is associated with an
instance or network interface, is referenced by another security group
in the same VPC, or has a VPC association, the operation fails with
DependencyViolation
.
Usage¶
ec2_delete_security_group(GroupId, GroupName, DryRun)
Arguments¶
GroupId |
The ID of the security group. |
GroupName |
[Default VPC] The name of the security group. You can specify either the security group name or the security group ID. For security groups in a nondefault VPC, you must specify the security group ID. |
DryRun |
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
|
Value¶
A list with the following syntax:
list(
Return = TRUE|FALSE,
GroupId = "string"
)
Request syntax¶
svc$delete_security_group(
GroupId = "string",
GroupName = "string",
DryRun = TRUE|FALSE
)
Examples¶
## Not run:
# This example deletes the specified security group.
svc$delete_security_group(
GroupId = "sg-903004f8"
)
## End(Not run)