/// <summary>
        /// <para> Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 Security Groups. Required parameters for this API
        /// are one of CIDRIP or (EC2SecurityGroupName AND EC2SecurityGroupOwnerId). </para>
        /// </summary>
        ///
        /// <param name="revokeDBSecurityGroupIngressRequest">Container for the necessary parameters to execute the RevokeDBSecurityGroupIngress service
        ///           method on AmazonRDS.</param>
        ///
        /// <returns>The response from the RevokeDBSecurityGroupIngress service method, as returned by AmazonRDS.</returns>
        ///
        /// <exception cref="DBSecurityGroupNotFoundException"/>
        /// <exception cref="InvalidDBSecurityGroupStateException"/>
        /// <exception cref="AuthorizationNotFoundException"/>
        public RevokeDBSecurityGroupIngressResponse RevokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest revokeDBSecurityGroupIngressRequest)
        {
            IRequest <RevokeDBSecurityGroupIngressRequest> request  = new RevokeDBSecurityGroupIngressRequestMarshaller().Marshall(revokeDBSecurityGroupIngressRequest);
            RevokeDBSecurityGroupIngressResponse           response = Invoke <RevokeDBSecurityGroupIngressRequest, RevokeDBSecurityGroupIngressResponse> (request, this.signer, RevokeDBSecurityGroupIngressResponseUnmarshaller.GetInstance());

            return(response);
        }
Example #2
0
        private static IDictionary <string, string> ConvertRevokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest request)
        {
            IDictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["Action"] = "RevokeDBSecurityGroupIngress";
            if (request.IsSetDBSecurityGroupName())
            {
                dictionary["DBSecurityGroupName"] = request.DBSecurityGroupName;
            }
            if (request.IsSetCIDRIP())
            {
                dictionary["CIDRIP"] = request.CIDRIP;
            }
            if (request.IsSetEC2SecurityGroupName())
            {
                dictionary["EC2SecurityGroupName"] = request.EC2SecurityGroupName;
            }
            if (request.IsSetEC2SecurityGroupOwnerId())
            {
                dictionary["EC2SecurityGroupOwnerId"] = request.EC2SecurityGroupOwnerId;
            }
            return(dictionary);
        }
Example #3
0
 public RevokeDBSecurityGroupIngressResponse RevokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest request)
 {
     return(this.Invoke <RevokeDBSecurityGroupIngressResponse>(ConvertRevokeDBSecurityGroupIngress(request)));
 }