AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC security groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

You can't authorize ingress from an EC2 security group in one AWS Region to an Amazon RDS DB instance in another. You can't authorize ingress from a VPC security group in one VPC to an Amazon RDS DB instance in another.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to AuthorizeDBSecurityGroupIngressAsync.

Namespace: Amazon.RDS
Assembly: AWSSDK.RDS.dll
Version: 3.x.y.z


public virtual AuthorizeDBSecurityGroupIngressResponse AuthorizeDBSecurityGroupIngress(
         AuthorizeDBSecurityGroupIngressRequest request
Type: Amazon.RDS.Model.AuthorizeDBSecurityGroupIngressRequest

Container for the necessary parameters to execute the AuthorizeDBSecurityGroupIngress service method.

Return Value
The response from the AuthorizeDBSecurityGroupIngress service method, as returned by RDS.


AuthorizationAlreadyExistsException The specified CIDRIP or Amazon EC2 security group is already authorized for the specified DB security group.
AuthorizationQuotaExceededException The DB security group authorization quota has been reached.
DBSecurityGroupNotFoundException DBSecurityGroupName doesn't refer to an existing DB security group.
InvalidDBSecurityGroupStateException The state of the DB security group doesn't allow deletion.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also