/// <summary> /// Initiates the asynchronous execution of the DeleteVPCAssociationAuthorization operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteVPCAssociationAuthorization operation on AmazonRoute53Client.</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 EndDeleteVPCAssociationAuthorization /// operation.</returns> public IAsyncResult BeginDeleteVPCAssociationAuthorization(DeleteVPCAssociationAuthorizationRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteVPCAssociationAuthorizationRequestMarshaller(); var unmarshaller = DeleteVPCAssociationAuthorizationResponseUnmarshaller.Instance; return BeginInvoke<DeleteVPCAssociationAuthorizationRequest>(request, marshaller, unmarshaller, callback, state); }
public void DeleteVPCAssociationAuthorizationMarshallTest() { var operation = service_model.FindOperation("DeleteVPCAssociationAuthorization"); var request = InstantiateClassGenerator.Execute<DeleteVPCAssociationAuthorizationRequest>(); var marshaller = new DeleteVPCAssociationAuthorizationRequestMarshaller(); var internalRequest = marshaller.Marshall(request); RequestValidator.Validate("DeleteVPCAssociationAuthorization", request, internalRequest, service_model); var webResponse = new WebResponseData { Headers = { {"x-amzn-RequestId", Guid.NewGuid().ToString()}, {"x-amz-crc32","0"} } }; var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = DeleteVPCAssociationAuthorizationResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as DeleteVPCAssociationAuthorizationResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Removes authorization to submit an <code>AssociateVPCWithHostedZone</code> request /// to associate a specified VPC with a hosted zone that was created by a different account. /// You must use the account that created the hosted zone to submit a <code>DeleteVPCAssociationAuthorization</code> /// request. /// /// <important> /// <para> /// Sending this request only prevents the AWS account that created the VPC from associating /// the VPC with the Amazon Route 53 hosted zone in the future. If the VPC is already /// associated with the hosted zone, <code>DeleteVPCAssociationAuthorization</code> won't /// disassociate the VPC from the hosted zone. If you want to delete an existing association, /// use <code>DisassociateVPCFromHostedZone</code>. /// </para> /// </important> /// <para> /// Send a <code>DELETE</code> request to the <code>/2013-04-01/hostedzone/<i>hosted zone /// ID</i>/deauthorizevpcassociation</code> resource. The request body must include a /// document with a <code>DeleteVPCAssociationAuthorizationRequest</code> element. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteVPCAssociationAuthorization service method.</param> /// /// <returns>The response from the DeleteVPCAssociationAuthorization service method, as returned by Route53.</returns> /// <exception cref="Amazon.Route53.Model.InvalidInputException"> /// The input is not valid. /// </exception> /// <exception cref="Amazon.Route53.Model.InvalidVPCIdException"> /// The VPC ID that you specified either isn't a valid ID or the current account is not /// authorized to access this VPC. /// </exception> /// <exception cref="Amazon.Route53.Model.NoSuchHostedZoneException"> /// No hosted zone exists with the ID that you specified. /// </exception> /// <exception cref="Amazon.Route53.Model.VPCAssociationAuthorizationNotFoundException"> /// The VPC that you specified is not authorized to be associated with the hosted zone. /// </exception> public DeleteVPCAssociationAuthorizationResponse DeleteVPCAssociationAuthorization(DeleteVPCAssociationAuthorizationRequest request) { var marshaller = new DeleteVPCAssociationAuthorizationRequestMarshaller(); var unmarshaller = DeleteVPCAssociationAuthorizationResponseUnmarshaller.Instance; return Invoke<DeleteVPCAssociationAuthorizationRequest,DeleteVPCAssociationAuthorizationResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteVPCAssociationAuthorization operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteVPCAssociationAuthorization 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<DeleteVPCAssociationAuthorizationResponse> DeleteVPCAssociationAuthorizationAsync(DeleteVPCAssociationAuthorizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteVPCAssociationAuthorizationRequestMarshaller(); var unmarshaller = DeleteVPCAssociationAuthorizationResponseUnmarshaller.Instance; return InvokeAsync<DeleteVPCAssociationAuthorizationRequest,DeleteVPCAssociationAuthorizationResponse>(request, marshaller, unmarshaller, cancellationToken); }