/// <summary> /// Initiates the asynchronous execution of the ChangeResourceRecordSets operation. /// <seealso cref="Amazon.Route53.IAmazonRoute53.ChangeResourceRecordSets"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ChangeResourceRecordSets 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 <ChangeResourceRecordSetsResponse> ChangeResourceRecordSetsAsync(ChangeResourceRecordSetsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ChangeResourceRecordSetsRequestMarshaller(); var unmarshaller = ChangeResourceRecordSetsResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, ChangeResourceRecordSetsRequest, ChangeResourceRecordSetsResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
internal ChangeResourceRecordSetsResponse ChangeResourceRecordSets(ChangeResourceRecordSetsRequest request) { var marshaller = new ChangeResourceRecordSetsRequestMarshaller(); var unmarshaller = ChangeResourceRecordSetsResponseUnmarshaller.Instance; return(Invoke <ChangeResourceRecordSetsRequest, ChangeResourceRecordSetsResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the ChangeResourceRecordSets operation. /// <seealso cref="Amazon.Route53.IAmazonRoute53"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ChangeResourceRecordSets 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 <ChangeResourceRecordSetsResponse> ChangeResourceRecordSetsAsync(ChangeResourceRecordSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ChangeResourceRecordSetsRequestMarshaller(); var unmarshaller = ChangeResourceRecordSetsResponseUnmarshaller.Instance; return(InvokeAsync <ChangeResourceRecordSetsRequest, ChangeResourceRecordSetsResponse>(request, marshaller, unmarshaller, cancellationToken)); }
IAsyncResult invokeChangeResourceRecordSets(ChangeResourceRecordSetsRequest changeResourceRecordSetsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ChangeResourceRecordSetsRequestMarshaller().Marshall(changeResourceRecordSetsRequest); var unmarshaller = ChangeResourceRecordSetsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return(result); }
/// <summary> /// <para>Use this action to create or change your authoritative DNS information. To use this action, send a <c>POST</c> request to the /// <c>2013-04-01/hostedzone/hosted Zone ID/rrset</c> resource. The request body must include an XML document with a /// <c>ChangeResourceRecordSetsRequest</c> element.</para> <para>Changes are a list of change items and are considered transactional. For more /// information on transactional changes, also known as change batches, see <a href="http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/RRSchanges.html#RRSchanges_API">Creating, Changing, and Deleting Resource /// Record Sets Using the Route 53 API</a> in the <i>Amazon Route 53 Developer Guide</i> .</para> <para><b>IMPORTANT:</b>Due to the nature of /// transactional changes, you cannot delete the same resource record set more than once in a single change batch. If you attempt to delete the /// same change batch more than once, Route 53 returns an InvalidChangeBatch error.</para> <para>In response to a /// <c>ChangeResourceRecordSets</c> request, your DNS data is changed on all Route 53 DNS servers. Initially, the status of a change is /// <c>PENDING</c> . This means the change has not yet propagated to all the authoritative Route 53 DNS servers. When the change is propagated /// to all hosts, the change returns a status of <c>INSYNC</c> .</para> <para>Note the following limitations on a /// <c>ChangeResourceRecordSets</c> request:</para> <para>- A request cannot contain more than 100 Change elements.</para> <para>- A request /// cannot contain more than 1000 ResourceRecord elements.</para> <para>The sum of the number of characters (including spaces) in all /// <c>Value</c> elements in a request cannot exceed 32,000 characters.</para> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ChangeResourceRecordSets service method /// on AmazonRoute53.</param> /// /// <returns>The response from the ChangeResourceRecordSets service method, as returned by AmazonRoute53.</returns> /// /// <exception cref="T:Amazon.Route53.Model.PriorRequestNotCompleteException" /> /// <exception cref="T:Amazon.Route53.Model.NoSuchHealthCheckException" /> /// <exception cref="T:Amazon.Route53.Model.NoSuchHostedZoneException" /> /// <exception cref="T:Amazon.Route53.Model.InvalidInputException" /> /// <exception cref="T:Amazon.Route53.Model.InvalidChangeBatchException" /> public ChangeResourceRecordSetsResponse ChangeResourceRecordSets(ChangeResourceRecordSetsRequest request) { var task = ChangeResourceRecordSetsAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }
/// <summary> /// Initiates the asynchronous execution of the ChangeResourceRecordSets operation. /// <seealso cref="Amazon.Route53.AmazonRoute53.ChangeResourceRecordSets"/> /// </summary> /// /// <param name="changeResourceRecordSetsRequest">Container for the necessary parameters to execute the ChangeResourceRecordSets operation on /// AmazonRoute53.</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 /// EndChangeResourceRecordSets operation.</returns> public IAsyncResult BeginChangeResourceRecordSets(ChangeResourceRecordSetsRequest changeResourceRecordSetsRequest, AsyncCallback callback, object state) { return(invokeChangeResourceRecordSets(changeResourceRecordSetsRequest, callback, state, false)); }
/// <summary> /// <para>Use this action to create or change your authoritative DNS information. To use this action, send a <c>POST</c> request to the /// <c>2012-02-29/hostedzone/hosted Zone ID/rrset</c> resource. The request body must include an XML document with a /// <c>ChangeResourceRecordSetsRequest</c> element.</para> <para>Changes are a list of change items and are considered transactional. For more /// information on transactional changes, also known as change batches, see Creating, Changing, and Deleting Resource Record Sets Using the /// Route 53 API in the <i>Amazon Route 53 Developer Guide</i> .</para> <para><b>IMPORTANT:</b>Due to the nature of transactional changes, you /// cannot delete the same resource record set more than once in a single change batch. If you attempt to delete the same change batch more than /// once, Route 53 returns an InvalidChangeBatch error.</para> <para>In response to a <c>ChangeResourceRecordSets</c> request, your DNS data is /// changed on all Route 53 DNS servers. Initially, the status of a change is <c>PENDING</c> . This means the change has not yet propagated to /// all the authoritative Route 53 DNS servers. When the change is propagated to all hosts, the change returns a status of <c>INSYNC</c> /// .</para> <para>Note the following limitations on a <c>ChangeResourceRecordSets</c> request:</para> <para>- A request cannot contain more /// than 100 Change elements.</para> <para>- A request cannot contain more than 1000 ResourceRecord elements.</para> <para>The sum of the number /// of characters (including spaces) in all <c>Value</c> elements in a request cannot exceed 32,000 characters.</para> /// </summary> /// /// <param name="changeResourceRecordSetsRequest">Container for the necessary parameters to execute the ChangeResourceRecordSets service method /// on AmazonRoute53.</param> /// /// <returns>The response from the ChangeResourceRecordSets service method, as returned by AmazonRoute53.</returns> /// /// <exception cref="InvalidChangeBatchException"/> /// <exception cref="NoSuchHostedZoneException"/> /// <exception cref="InvalidInputException"/> public ChangeResourceRecordSetsResponse ChangeResourceRecordSets(ChangeResourceRecordSetsRequest changeResourceRecordSetsRequest) { IAsyncResult asyncResult = invokeChangeResourceRecordSets(changeResourceRecordSetsRequest, null, null, true); return(EndChangeResourceRecordSets(asyncResult)); }
public async Task <ChangeResourceRecordSetsResponse> ChangeResourceRecordSetsAsync(string hostedZoneId, ChangeResourceRecordSetsRequest request) { return(await PostXmlAsync <ChangeResourceRecordSetsRequest, ChangeResourceRecordSetsResponse>( path : $"/hostedzone/{hostedZoneId}/rrset", instance : request )); }