aws ec2 revoke-security-group-egress
Removes the specified outbound (egress) rules from the specified security group. AWS CLI reference
5 options Its page in the AWS CLI reference
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--group-idThe ID of the security group.--ip-permissionsThe sets of IP permissions.--security-group-rule-idsThe IDs of the security group rules.--source-security-group-owner-id, --source-security-group-name, --ip-protocol, --from-port, --cidr-ip, --to-portNot supported.