/// <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); }
IAsyncResult invokeAuthorizeDBSecurityGroupIngress(AuthorizeDBSecurityGroupIngressRequest authorizeDBSecurityGroupIngressRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new AuthorizeDBSecurityGroupIngressRequestMarshaller().Marshall(authorizeDBSecurityGroupIngressRequest); var unmarshaller = AuthorizeDBSecurityGroupIngressResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the AuthorizeDBSecurityGroupIngress operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AuthorizeDBSecurityGroupIngress operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<AuthorizeDBSecurityGroupIngressResponse> AuthorizeDBSecurityGroupIngressAsync(AuthorizeDBSecurityGroupIngressRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AuthorizeDBSecurityGroupIngressRequestMarshaller(); var unmarshaller = AuthorizeDBSecurityGroupIngressResponseUnmarshaller.Instance; return InvokeAsync<AuthorizeDBSecurityGroupIngressRequest,AuthorizeDBSecurityGroupIngressResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// 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). /// /// <note> You cannot authorize ingress from an EC2 security group in one region to an /// Amazon RDS DB instance in another. You cannot authorize ingress from a VPC security /// group in one VPC to an Amazon RDS DB instance in another. </note> /// <para> /// For an overview of CIDR ranges, go to the <a href="http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing">Wikipedia /// Tutorial</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AuthorizeDBSecurityGroupIngress service method.</param> /// /// <returns>The response from the AuthorizeDBSecurityGroupIngress service method, as returned by RDS.</returns> /// <exception cref="Amazon.RDS.Model.AuthorizationAlreadyExistsException"> /// The specified CIDRIP or EC2 security group is already authorized for the specified /// DB security group. /// </exception> /// <exception cref="Amazon.RDS.Model.AuthorizationQuotaExceededException"> /// DB security group authorization quota has been reached. /// </exception> /// <exception cref="Amazon.RDS.Model.DBSecurityGroupNotFoundException"> /// <i>DBSecurityGroupName</i> does not refer to an existing DB security group. /// </exception> /// <exception cref="Amazon.RDS.Model.InvalidDBSecurityGroupStateException"> /// The state of the DB security group does not allow deletion. /// </exception> public AuthorizeDBSecurityGroupIngressResponse AuthorizeDBSecurityGroupIngress(AuthorizeDBSecurityGroupIngressRequest request) { var marshaller = new AuthorizeDBSecurityGroupIngressRequestMarshaller(); var unmarshaller = AuthorizeDBSecurityGroupIngressResponseUnmarshaller.Instance; return Invoke<AuthorizeDBSecurityGroupIngressRequest,AuthorizeDBSecurityGroupIngressResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the AuthorizeDBSecurityGroupIngress operation. /// <seealso cref="Amazon.RDS.IAmazonRDS.AuthorizeDBSecurityGroupIngress"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AuthorizeDBSecurityGroupIngress operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<AuthorizeDBSecurityGroupIngressResponse> AuthorizeDBSecurityGroupIngressAsync(AuthorizeDBSecurityGroupIngressRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AuthorizeDBSecurityGroupIngressRequestMarshaller(); var unmarshaller = AuthorizeDBSecurityGroupIngressResponseUnmarshaller.GetInstance(); return Invoke<IRequest, AuthorizeDBSecurityGroupIngressRequest, AuthorizeDBSecurityGroupIngressResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public void AuthorizeDBSecurityGroupIngressMarshallTest() { var operation = service_model.FindOperation("AuthorizeDBSecurityGroupIngress"); var request = InstantiateClassGenerator.Execute<AuthorizeDBSecurityGroupIngressRequest>(); var marshaller = new AuthorizeDBSecurityGroupIngressRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = AuthorizeDBSecurityGroupIngressResponseUnmarshaller.Instance.Unmarshall(context) as AuthorizeDBSecurityGroupIngressResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> 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). </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. You cannot authorize ingress from a VPC security /// group in one VPC to an Amazon RDS DB instance in another. </para> <para>For an overview of CIDR ranges, go to the <a href="http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing">Wikipedia Tutorial</a> . /// </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="T:Amazon.RDS.Model.DBSecurityGroupNotFoundException" /> /// <exception cref="T:Amazon.RDS.Model.InvalidDBSecurityGroupStateException" /> /// <exception cref="T:Amazon.RDS.Model.AuthorizationAlreadyExistsException" /> /// <exception cref="T:Amazon.RDS.Model.AuthorizationQuotaExceededException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<AuthorizeDBSecurityGroupIngressResponse> AuthorizeDBSecurityGroupIngressAsync(AuthorizeDBSecurityGroupIngressRequest authorizeDBSecurityGroupIngressRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AuthorizeDBSecurityGroupIngressRequestMarshaller(); var unmarshaller = AuthorizeDBSecurityGroupIngressResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, AuthorizeDBSecurityGroupIngressRequest, AuthorizeDBSecurityGroupIngressResponse>(authorizeDBSecurityGroupIngressRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the AuthorizeDBSecurityGroupIngress operation. /// <seealso cref="Amazon.RDS.IAmazonRDS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AuthorizeDBSecurityGroupIngress operation on AmazonRDSClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAuthorizeDBSecurityGroupIngress /// operation.</returns> public IAsyncResult BeginAuthorizeDBSecurityGroupIngress(AuthorizeDBSecurityGroupIngressRequest request, AsyncCallback callback, object state) { var marshaller = new AuthorizeDBSecurityGroupIngressRequestMarshaller(); var unmarshaller = AuthorizeDBSecurityGroupIngressResponseUnmarshaller.Instance; return BeginInvoke<AuthorizeDBSecurityGroupIngressRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para> 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). </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. You cannot authorize ingress from a VPC security /// group in one VPC 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; }