aws ec2 revoke-security-group-ingress
Removes the specified inbound (ingress) rules from a security group. AWS CLI reference
11 options Its page in the AWS CLI reference
Options
--cidr-ipThe CIDR IP address range.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--from-portIf the protocol is TCP or UDP, this is the start of the port range.--group-idThe ID of the security group.--group-name[Default VPC] The name of the security group.--ip-permissionsThe sets of IP permissions.--ip-protocolThe IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers).--security-group-rule-idsThe IDs of the security group rules.--source-security-group-name[Default VPC] The name of the source security group.--source-security-group-owner-idNot supported.--to-portIf the protocol is TCP or UDP, this is the end of the port range.