/// <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); }
IAsyncResult invokeRevokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest revokeDBSecurityGroupIngressRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new RevokeDBSecurityGroupIngressRequestMarshaller().Marshall(revokeDBSecurityGroupIngressRequest); var unmarshaller = RevokeDBSecurityGroupIngressResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the RevokeDBSecurityGroupIngress operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RevokeDBSecurityGroupIngress 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<RevokeDBSecurityGroupIngressResponse> RevokeDBSecurityGroupIngressAsync(RevokeDBSecurityGroupIngressRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RevokeDBSecurityGroupIngressRequestMarshaller(); var unmarshaller = RevokeDBSecurityGroupIngressResponseUnmarshaller.Instance; return InvokeAsync<RevokeDBSecurityGroupIngressRequest,RevokeDBSecurityGroupIngressResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// 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). /// </summary> /// <param name="request">Container for the necessary parameters to execute the RevokeDBSecurityGroupIngress service method.</param> /// /// <returns>The response from the RevokeDBSecurityGroupIngress service method, as returned by RDS.</returns> /// <exception cref="Amazon.RDS.Model.AuthorizationNotFoundException"> /// Specified CIDRIP or EC2 security group is not authorized for the specified DB security /// group. /// /// /// <para> /// RDS may not also be authorized via IAM to perform necessary actions on your behalf. /// </para> /// </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 RevokeDBSecurityGroupIngressResponse RevokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest request) { var marshaller = new RevokeDBSecurityGroupIngressRequestMarshaller(); var unmarshaller = RevokeDBSecurityGroupIngressResponseUnmarshaller.Instance; return Invoke<RevokeDBSecurityGroupIngressRequest,RevokeDBSecurityGroupIngressResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the RevokeDBSecurityGroupIngress operation. /// <seealso cref="Amazon.RDS.IAmazonRDS.RevokeDBSecurityGroupIngress"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RevokeDBSecurityGroupIngress 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<RevokeDBSecurityGroupIngressResponse> RevokeDBSecurityGroupIngressAsync(RevokeDBSecurityGroupIngressRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RevokeDBSecurityGroupIngressRequestMarshaller(); var unmarshaller = RevokeDBSecurityGroupIngressResponseUnmarshaller.GetInstance(); return Invoke<IRequest, RevokeDBSecurityGroupIngressRequest, RevokeDBSecurityGroupIngressResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public void RevokeDBSecurityGroupIngressMarshallTest() { var operation = service_model.FindOperation("RevokeDBSecurityGroupIngress"); var request = InstantiateClassGenerator.Execute<RevokeDBSecurityGroupIngressRequest>(); var marshaller = new RevokeDBSecurityGroupIngressRequestMarshaller(); 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 = RevokeDBSecurityGroupIngressResponseUnmarshaller.Instance.Unmarshall(context) as RevokeDBSecurityGroupIngressResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> 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). /// </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="T:Amazon.RDS.Model.DBSecurityGroupNotFoundException" /> /// <exception cref="T:Amazon.RDS.Model.InvalidDBSecurityGroupStateException" /> /// <exception cref="T:Amazon.RDS.Model.AuthorizationNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<RevokeDBSecurityGroupIngressResponse> RevokeDBSecurityGroupIngressAsync(RevokeDBSecurityGroupIngressRequest revokeDBSecurityGroupIngressRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RevokeDBSecurityGroupIngressRequestMarshaller(); var unmarshaller = RevokeDBSecurityGroupIngressResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, RevokeDBSecurityGroupIngressRequest, RevokeDBSecurityGroupIngressResponse>(revokeDBSecurityGroupIngressRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the RevokeDBSecurityGroupIngress operation. /// <seealso cref="Amazon.RDS.IAmazonRDS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RevokeDBSecurityGroupIngress 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 EndRevokeDBSecurityGroupIngress /// operation.</returns> public IAsyncResult BeginRevokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest request, AsyncCallback callback, object state) { var marshaller = new RevokeDBSecurityGroupIngressRequestMarshaller(); var unmarshaller = RevokeDBSecurityGroupIngressResponseUnmarshaller.Instance; return BeginInvoke<RevokeDBSecurityGroupIngressRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para> 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). /// </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; }