AWS Security ChangesHomeSearch

AWS ec2: Add sample output for revoke-security-group-ingress examples

Service: ec2 · 2026-10-31 · Documentation low

File: ec2/latest/devguide/example_ec2_RevokeSecurityGroupIngress_section.md · Type: network

Summary

Adds a line continuation to the --group-name argument and replaces the 'This command produces no output if it succeeds.' text with full JSON sample output showing Return and RevokedSecurityGroupRules for both the CIDR-based and ip-permissions-based revoke examples.

Security assessment

The diff only adds illustrative JSON output for an existing security-group rule revocation example (removing TCP 22 access). It documents expected API response shape, not a new security control, hardening step, or fixed vulnerability.

Evidence

+        "Return": true,

Diff

diff --git a/ec2/latest/devguide/example_ec2_RevokeSecurityGroupIngress_section.md b/ec2/latest/devguide/example_ec2_RevokeSecurityGroupIngress_section.md
index d98324c..b82da72 100644
--- a//ec2/latest/devguide/example_ec2_RevokeSecurityGroupIngress_section.md
+++ b//ec2/latest/devguide/example_ec2_RevokeSecurityGroupIngress_section.md
@@ -34 +34 @@ The following `revoke-security-group-ingress` example removes TCP port 22 access
-        --group-name mySecurityGroup
+        --group-name mySecurityGroup \
@@ -40 +40,17 @@ The following `revoke-security-group-ingress` example removes TCP port 22 access
-This command produces no output if it succeeds.
+Output:
+    
+    
+    {
+        "Return": true,
+        "RevokedSecurityGroupRules": [
+            {
+                "SecurityGroupRuleId": "sgr-0abcdef1234567890",
+                "GroupId": "sg-1234567890abcdef0",
+                "IsEgress": false,
+                "IpProtocol": "tcp",
+                "FromPort": 22,
+                "ToPort": 22,
+                "CidrIpv4": "203.0.113.0/24"
+            }
+        ]
+    }
@@ -54 +70,17 @@ The following `revoke-security-group-ingress` example uses the `ip-permissions`
-This command produces no output if it succeeds.
+Output:
+    
+    
+    {
+        "Return": true,
+        "RevokedSecurityGroupRules": [
+            {
+                "SecurityGroupRuleId": "sgr-0fedcba9876543210",
+                "GroupId": "sg-026c12253ce15eff7",
+                "IsEgress": false,
+                "IpProtocol": "icmp",
+                "FromPort": 3,
+                "ToPort": 4,
+                "CidrIpv4": "0.0.0.0/0"
+            }
+        ]
+    }