public void DeleteVpcPeeringConnectionMarshallTest() { var operation = service_model.FindOperation("DeleteVpcPeeringConnection"); var request = InstantiateClassGenerator.Execute<DeleteVpcPeeringConnectionRequest>(); var marshaller = new DeleteVpcPeeringConnectionRequestMarshaller(); 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(); UnmarshallerContext context = new EC2UnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, new WebResponseData()); var response = DeleteVpcPeeringConnectionResponseUnmarshaller.Instance.Unmarshall(context) as DeleteVpcPeeringConnectionResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DeleteVpcPeeringConnection operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteVpcPeeringConnection 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<DeleteVpcPeeringConnectionResponse> DeleteVpcPeeringConnectionAsync(DeleteVpcPeeringConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteVpcPeeringConnectionRequestMarshaller(); var unmarshaller = DeleteVpcPeeringConnectionResponseUnmarshaller.Instance; return InvokeAsync<DeleteVpcPeeringConnectionRequest,DeleteVpcPeeringConnectionResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Deletes a VPC peering connection. Either the owner of the requester VPC or the owner /// of the peer VPC can delete the VPC peering connection if it's in the <code>active</code> /// state. The owner of the requester VPC can delete a VPC peering connection in the <code>pending-acceptance</code> /// state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteVpcPeeringConnection service method.</param> /// /// <returns>The response from the DeleteVpcPeeringConnection service method, as returned by EC2.</returns> public DeleteVpcPeeringConnectionResponse DeleteVpcPeeringConnection(DeleteVpcPeeringConnectionRequest request) { var marshaller = new DeleteVpcPeeringConnectionRequestMarshaller(); var unmarshaller = DeleteVpcPeeringConnectionResponseUnmarshaller.Instance; return Invoke<DeleteVpcPeeringConnectionRequest,DeleteVpcPeeringConnectionResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteVpcPeeringConnection operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteVpcPeeringConnection operation on AmazonEC2Client.</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 EndDeleteVpcPeeringConnection /// operation.</returns> public IAsyncResult BeginDeleteVpcPeeringConnection(DeleteVpcPeeringConnectionRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteVpcPeeringConnectionRequestMarshaller(); var unmarshaller = DeleteVpcPeeringConnectionResponseUnmarshaller.Instance; return BeginInvoke<DeleteVpcPeeringConnectionRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDeleteVpcPeeringConnection(DeleteVpcPeeringConnectionRequest deleteVpcPeeringConnectionRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteVpcPeeringConnectionRequestMarshaller().Marshall(deleteVpcPeeringConnectionRequest); var unmarshaller = DeleteVpcPeeringConnectionResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the peer VPC can delete the VPC peering /// connection if it's in the <c>active</c> state. The owner of the requester VPC can delete a VPC peering connection in the /// <c>pending-acceptance</c> state.</para> /// </summary> /// /// <param name="deleteVpcPeeringConnectionRequest">Container for the necessary parameters to execute the DeleteVpcPeeringConnection service /// method on AmazonEC2.</param> /// /// <returns>The response from the DeleteVpcPeeringConnection service method, as returned by AmazonEC2.</returns> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DeleteVpcPeeringConnectionResponse> DeleteVpcPeeringConnectionAsync(DeleteVpcPeeringConnectionRequest deleteVpcPeeringConnectionRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteVpcPeeringConnectionRequestMarshaller(); var unmarshaller = DeleteVpcPeeringConnectionResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteVpcPeeringConnectionRequest, DeleteVpcPeeringConnectionResponse>(deleteVpcPeeringConnectionRequest, marshaller, unmarshaller, signer, cancellationToken); }