updateSecurityGroupRuleDescriptionsEgress

Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.

Samples

import aws.sdk.kotlin.services.ec2.model.IpPermission
import aws.sdk.kotlin.services.ec2.model.IpRange

fun main() { 
   //sampleStart 
   // This example updates the description for the specified security group rule.
val resp = ec2Client.updateSecurityGroupRuleDescriptionsEgress {
    groupId = "sg-123abc12"
    ipPermissions = listOf<IpPermission>(
        IpPermission {
            ipProtocol = "tcp"
            fromPort = 80
            toPort = 80
            ipRanges = listOf<IpRange>(
                IpRange {
                    cidrIp = "203.0.113.0/24"
                    description = "Outbound HTTP access to server 2"
                }                    
            )
        }            
    )
} 
   //sampleEnd
}