GET /#Action=RevokeSecurityGroupEgress

[VPC only] Removes the specified outbound (egress) rules from a security group for EC2-VPC. This action does not apply to security groups for use in EC2-Classic.

You can specify rules using either rule IDs or security group rule properties. If you use rule properties, the values that you specify (for example, ports) must match the existing rule's values exactly. Each rule has a protocol, from and to ports, and destination (CIDR range, security group, or prefix list). For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not need to specify the description to revoke the rule.

[Default VPC] If the values you specify do not match the existing rule's values, no error is returned, and the output describes the security group rules that were not revoked.

Amazon Web Services recommends that you describe the security group to verify that the rules were removed.

Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

Servers

Request headers

Name Type Required Description
X-Amz-Content-Sha256 String No
X-Amz-Credential String No
X-Amz-Date String No
X-Amz-Algorithm String No
X-Amz-SignedHeaders String No
X-Amz-Security-Token String No
X-Amz-Signature String No

Query parameters

Name Type Required Description
Version String Yes

Possible values:

  • "2016-11-15"
IpProtocol String No

Not supported. Use a set of IP permissions to specify the protocol name or number.

IpPermissions[] Array No

The sets of IP permissions. You can't specify a destination security group and a CIDR IP address range in the same set of permissions.

SourceSecurityGroupOwnerId String No

Not supported. Use a set of IP permissions to specify a destination security group.

SecurityGroupRuleId[] Array No

The IDs of the security group rules.

FromPort Integer No

Not supported. Use a set of IP permissions to specify the port.

ToPort Integer No

Not supported. Use a set of IP permissions to specify the port.

GroupId String Yes

The ID of the security group.

CidrIp String No

Not supported. Use a set of IP permissions to specify the CIDR.

DryRun Boolean No

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.

SourceSecurityGroupName String No

Not supported. Use a set of IP permissions to specify a destination security group.

Action String Yes

Possible values:

  • "RevokeSecurityGroupEgress"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.