コード例 #1
0
        private static IDictionary <string, string> ConvertAuthorizeDBSecurityGroupIngress(AuthorizeDBSecurityGroupIngressRequest request)
        {
            IDictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["Action"] = "AuthorizeDBSecurityGroupIngress";
            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);
        }
コード例 #2
0
 public AuthorizeDBSecurityGroupIngressResponse AuthorizeDBSecurityGroupIngress(AuthorizeDBSecurityGroupIngressRequest request)
 {
     return(this.Invoke <AuthorizeDBSecurityGroupIngressResponse>(ConvertAuthorizeDBSecurityGroupIngress(request)));
 }
コード例 #3
0
        /// <summary>
        /// <para> Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 Security Groups can be added to the
        /// DBSecurityGroup if the application using the database is running on EC2 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 or (EC2SecurityGroupName AND
        /// EC2SecurityGroupOwnerId). </para> <para><b>NOTE:</b> You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS
        /// DB Instance in another. </para> <para>For an overview of CIDR ranges, go to the Wikipedia Tutorial. </para>
        /// </summary>
        ///
        /// <param name="authorizeDBSecurityGroupIngressRequest">Container for the necessary parameters to execute the AuthorizeDBSecurityGroupIngress
        ///           service method on AmazonRDS.</param>
        ///
        /// <returns>The response from the AuthorizeDBSecurityGroupIngress service method, as returned by AmazonRDS.</returns>
        ///
        /// <exception cref="DBSecurityGroupNotFoundException"/>
        /// <exception cref="InvalidDBSecurityGroupStateException"/>
        /// <exception cref="AuthorizationAlreadyExistsException"/>
        /// <exception cref="AuthorizationQuotaExceededException"/>
        public AuthorizeDBSecurityGroupIngressResponse AuthorizeDBSecurityGroupIngress(AuthorizeDBSecurityGroupIngressRequest authorizeDBSecurityGroupIngressRequest)
        {
            IRequest <AuthorizeDBSecurityGroupIngressRequest> request  = new AuthorizeDBSecurityGroupIngressRequestMarshaller().Marshall(authorizeDBSecurityGroupIngressRequest);
            AuthorizeDBSecurityGroupIngressResponse           response = Invoke <AuthorizeDBSecurityGroupIngressRequest, AuthorizeDBSecurityGroupIngressResponse> (request, this.signer, AuthorizeDBSecurityGroupIngressResponseUnmarshaller.GetInstance());

            return(response);
        }