/// <summary> /// Initiates the asynchronous execution of the ListTrafficPolicyVersions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTrafficPolicyVersions 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 EndListTrafficPolicyVersions /// operation.</returns> public IAsyncResult BeginListTrafficPolicyVersions(ListTrafficPolicyVersionsRequest request, AsyncCallback callback, object state) { var marshaller = new ListTrafficPolicyVersionsRequestMarshaller(); var unmarshaller = ListTrafficPolicyVersionsResponseUnmarshaller.Instance; return BeginInvoke<ListTrafficPolicyVersionsRequest>(request, marshaller, unmarshaller, callback, state); }
public void ListTrafficPolicyVersionsMarshallTest() { var operation = service_model.FindOperation("ListTrafficPolicyVersions"); var request = InstantiateClassGenerator.Execute<ListTrafficPolicyVersionsRequest>(); var marshaller = new ListTrafficPolicyVersionsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); RequestValidator.Validate("ListTrafficPolicyVersions", 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 = ListTrafficPolicyVersionsResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as ListTrafficPolicyVersionsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Gets information about all of the versions for a specified traffic policy. /// /// /// <para> /// Send a <code>GET</code> request to the <code>/<i>Amazon Route 53 API version</i>/trafficpolicy</code> /// resource and specify the ID of the traffic policy for which you want to list versions. /// </para> /// /// <para> /// Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot /// of traffic policies, you can use the <code>maxitems</code> parameter to list them /// in groups of up to 100. /// </para> /// /// <para> /// The response includes three values that help you navigate from one group of <code>maxitems</code> /// traffic policies to the next: /// </para> /// <ul> <li> /// <para> /// <b>IsTruncated</b> /// </para> /// /// <para> /// If the value of <code>IsTruncated</code> in the response is <code>true</code>, there /// are more traffic policy versions associated with the specified traffic policy. /// </para> /// /// <para> /// If <code>IsTruncated</code> is <code>false</code>, this response includes the last /// traffic policy version that is associated with the specified traffic policy. /// </para> /// </li> <li> /// <para> /// <b>TrafficPolicyVersionMarker</b> /// </para> /// /// <para> /// The ID of the next traffic policy version that is associated with the current AWS /// account. If you want to list more traffic policies, make another call to <code>ListTrafficPolicyVersions</code>, /// and specify the value of the <code>TrafficPolicyVersionMarker</code> element in the /// <code>TrafficPolicyVersionMarker</code> request parameter. /// </para> /// /// <para> /// If <code>IsTruncated</code> is <code>false</code>, Amazon Route 53 omits the <code>TrafficPolicyVersionMarker</code> /// element from the response. /// </para> /// </li> <li> /// <para> /// <b>MaxItems</b> /// </para> /// /// <para> /// The value that you specified for the <code>MaxItems</code> parameter in the request /// that produced the current response. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTrafficPolicyVersions service method.</param> /// /// <returns>The response from the ListTrafficPolicyVersions service method, as returned by Route53.</returns> /// <exception cref="Amazon.Route53.Model.InvalidInputException"> /// The input is not valid. /// </exception> /// <exception cref="Amazon.Route53.Model.NoSuchTrafficPolicyException"> /// No traffic policy exists with the specified ID. /// </exception> public ListTrafficPolicyVersionsResponse ListTrafficPolicyVersions(ListTrafficPolicyVersionsRequest request) { var marshaller = new ListTrafficPolicyVersionsRequestMarshaller(); var unmarshaller = ListTrafficPolicyVersionsResponseUnmarshaller.Instance; return Invoke<ListTrafficPolicyVersionsRequest,ListTrafficPolicyVersionsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ListTrafficPolicyVersions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTrafficPolicyVersions 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<ListTrafficPolicyVersionsResponse> ListTrafficPolicyVersionsAsync(ListTrafficPolicyVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListTrafficPolicyVersionsRequestMarshaller(); var unmarshaller = ListTrafficPolicyVersionsResponseUnmarshaller.Instance; return InvokeAsync<ListTrafficPolicyVersionsRequest,ListTrafficPolicyVersionsResponse>(request, marshaller, unmarshaller, cancellationToken); }