revokeDbSecurityGroupIngress
inline suspend fun RdsClient.revokeDbSecurityGroupIngress(crossinline block: RevokeDbSecurityGroupIngressRequest.Builder.() -> Unit): RevokeDbSecurityGroupIngressResponse
Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC security groups. Required parameters for this API are one of CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId).
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see Migrate from EC2-Classic to a VPC in the Amazon EC2 User Guide, the blog EC2-Classic Networking is Retiring – Here’s How to Prepare, and Moving a DB instance not in a VPC into a VPC in the Amazon RDS User Guide.
Samples
fun main() {
//sampleStart
// This example revokes ingress for the specified CIDR block associated with the specified DB security
// group.
val resp = rdsClient.revokeDbSecurityGroupIngress {
dbSecurityGroupName = "mydbsecuritygroup"
cidrip = "203.0.113.5/32"
}
//sampleEnd
}